| Command | Input | Output | Description |
|---|---|---|---|
| D.fill | Int 0-12 typed |
Usage: D.fill <handle> Description: This is a debug command to fill a variable with sequential byte value numbers. It starts with the integer part<PHONE_NUMBER>060708<PHONE_NUMBER>151617 followed by the fraction part<PHONE_NUMBER>262728 292A2B2C2D2E2F30... This is very useful to check low level functions, such as shifting memory left or right 1 bit. Use the "hex" command to display handle numbers. |
|
| D.ofst | This shows the offset values of the variables in both hexadecimal and decimal. This is intended for use with the gdb debugger to identify the memory map. | ||
| D.vars | This shows the current value of internal varaibles used to specify the size of a number and it's different parts, such as integer part, fraction part, guard words, etc. | ||
| hex hex <r> |
"hex" will print summary of all registers in abbreviated hexadecimal format. This will also show register index numbers. Adding an integer index number from 0 to 12 will show a specific register. The index numbers are different from register name. (Reg2 is index 11). | ||
| test | This will do a subroutine call the "Command_test" label in parser.s. Custom assembly code can be inserted at this location, then executed from inside the program using the "test" command. |
The typical method to debug this type of mathematics is to run the program inside the Linux gdb debugger. If you try this, the D.ofst and D.vars commands will be helpful to determine a memory map of the variables.
A simpler approach is to use the hex command to display a summary of each internal fixed point variable. If the handle number 0 to 12 is provided, the full variable will be displayed. A lot of this is demonstrated in the youtube video.


{% extends "base.html" %} {% load staticfiles %} {% block content %} {% include "navbar.html" %}
Share your unique link below via Email, Facebook, or Twitter to earn rewards from ForexBull.com


when you work with us,you are part of a team of commited collaborations.All aspects of our software development process are intergrated,interactive and agile.
Our approach unifies design,development and product management to create exceptional products.
We start each project by understanding your business goals, the user's needs and the product requirments.
Then we help trasalte them into effective and elegant solutions.
Before we sign a contract or write a line of code our team will spend the necessary time needed to understand your product vision.
The outcome of this scoping session is proposal or high-level statement of work
based on your requirements, We can provide acomplete affering or just the pieces you need.
Our design offers a full range of services including brand strategy, interaction and visual design and user experience testing throughout your project,
Our designers create and implement visual designs and our workflow, solicit user feedback and work with youto make sure what gets built is what is needed
DESIGN
All engineers are fluent in the latest enterprise, mobile and web development technologies.
They collaborate with your team to write and improve code on daily basis, using proven practices such as test-driven development and pair programming
DEVELOPMENT
planning and development is iterative because we are constantly coding and testing the products we build are always ready to go live.
This iterative process allows for changes as business requirements evolve
PRODUCT MANAGEMENT


Item Crud
Item-CRUD Operations
Item No
1
Name
Desc
Price
URL
Add
Delete
Search
Update
Save
Load
Sort
Save to Server
Clear
Item List
Id
Name
Description
Price
Image
Operations


THE WHOLE NINE YARDS A film review by Steve Rhodes Copyright 2000 Steve Rhodes RATING (0 TO ****): **
Who says Hollywood has run out of ideas? How about a comedy about the mob? That's pretty fresh, right?
Jonathan Lynn's THE WHOLE NINE YARDS features a convoluted plot about ever-changing mob factions that are trying to whack each other. Add to that lots of slapstick with guys running into doors and letting off gas, and you can see the creative juices flowing like molasses going upstream. Mitchell Kapner's script, of course, has been done many times before and usually much better (ANALYZE THIS and GOODFELLAS being just two examples). While THE WHOLE NINE YARDS is frequently cute, it's rarely more than that. The infrequent laughs are forced, and the movie feels as stale as a month-old focaccia.
Bad accents are prominently featured, and none is worse than that of Rosanna Arquette, who plays the obnoxious wife of a Montreal dentist, whom she's trying to get murdered. Matthew Perry, an actor with a highly limited comedic range, is appallingly bad as her husband, Nick "Oz" Oseransky. Perry's numerous physical comedy routines are more embarrassing than funny.
One day, Jimmy Jones a.k.a. Jimmy the Tulip Tudeski (Bruce Willis) moves in next door to Oz. In a complicated plot, the Chicago mob, led by Yanni Gogolack (Kevin Pollak with a repulsively bad accent), wants Jimmy dead. Jimmy in turn wants Yanni wasted. And Jimmy's wife, Cynthia (Natasha Henstridge), also has murderous intentions, although she's somewhat more negotiable on exactly who dies.
The humor is so droll that it usually isn't funny at all. "It's not important how many people I've killed," Jimmy tells Oz. "It's how I get along with those still alive."
The film's only real enjoyment comes from two members of the supporting cast. Michael Clarke Duncan (THE GREEN MILE) plays Frankie Figs, Jimmy's lovable bear of a sidekick. When Duncan comes on the screen, he has so much charisma that you want to stop the movie and hug him right then and there.
The best character, Oz's receptionist, Jill, is played by Amanda Peet from last year's atrocious BODY SHOTS. Jill is a toothy brunette with enthusiasm to burn.  When he invites her to help him, it's like Mick Jagger asking her to come on stage and join him singing at a gig. She's ready, literally, to give Jimmy the shirt off of her back to help him with his plans.
Movie goers -- both of them -- who've never seen a Mafioso comedy will probably find this picture funny. Everyone else will leave wishing that they had stayed at home and rented something like GOODFELLAS instead.
THE WHOLE NINE YARDS runs 1:39. It is rated R for some violence, nudity, sexual situations and language and would be acceptable for most teenagers.
Email<EMAIL_ADDRESS>Web: http://www.InternetReviews.com
The review above was posted to the
rec.arts.movies.reviews newsgroup (de.rec.film.kritiken for German reviews).
The Internet Movie Database accepts no responsibility for the contents of the
review and has no editorial control. Unless stated otherwise, the copyright
belongs to the author.
Please direct comments/criticisms of the review to relevant newsgroups.
Broken URLs inthe reviews are the responsibility of the author.
The formatting of the review is likely to differ from the original due
to ASCII to HTML conversion.
Related links: index of all rec.arts.movies.reviews reviews


City Details
Simulation Duration
Disease Progression
Transmission Coefficients
Initialisation
Intervention


[§466L-12] Consent to service of process. An applicant for registration under this chapter that is not domiciled in the State shall complete an irrevocable consent to service of process, in a form approved by the attorney general. [L 2017, c 118, pt of §2]


Let Me See!

Go to Reddit


--- layout: post title: Dealing with SQLite's limit on maximum number of variables date: type: post parent_id: '0' published: false password: '' status: draft categories: [] tags: - c# - SQLite meta: _edit_last: '1' _syntaxhighlighter_encoded: '1' _su_title: '' author: login: akropp email<EMAIL_ADDRESS>display_name: akropp first_name: '' last_name: '' permalink: "/" ---
SQLite and other database engines allow you to construct a sql clause searching for all items in a range, looking something like:
[sql]
SELECT * From Table
Where TableItems In (1, 2, 3, 4);
[/sql]
This is great since now you can pull a bunch of elements back in a single SQL call, minimizing the time spent doing work on disk. The fewer SQL calls you can make the better, so its best to pull a lot at once. But, careless coding can lead to building SQL like this:
[csharp]
List<Users> GetUsers(List<int> userIds)
{
var sql = @"SELECT * From USERS where UserID IN (" + userIds.ToCommaList() + ")";
return GetData.ExecuteSql(sql);
}
[/csharp]
Looks fine, but what happens as your software grows and now that passed in list of userIds
gets pretty big? Unforutnately SQLite has a default limitation on the maximum number of variables that a SQL statement can have, and if you encounter this you'll get this fun message
too many SQL variables
So what do we do? You may think to loop over your sql calls and do it one by one, but that'll just slow things down considerably. You could increase the default parameter limit in sqlite (SQLITE_MAX_VARIABLE_NUMBER
), but that also comes at the risk of using more memory since that limit is there for a reason:
To prevent excessive memory allocations, the maximum value of a host parameter number is SQLITE_MAX_VARIABLE_NUMBER, defaults to 999
A simple solution if all you are doing is pulling back data using "IN" statements and if you don't need any dependent data (such as where clauses relating to data you are pulling back) is to break the call up into separate calls. So you can do
[sql]SELECT * From Tables Where Items IN (1-100)[/sql]
and then add the result of that to
[sql]SELECT * From Tables Where Items IN (101-200)[/sql]
etc.
I wanted to generalize this and wrap all my basic sql getters in something that could do this for me. The idea was I wanted something like this
[csharp]var totalList = BuildAndAppend(SourceList, (subset) => ReturnsListUsingDataFromSubset(subset));[/csharp]
SourceList
could be anything, for example it could be a List of TableItems (sticking with the generic example). The ReturnListFunction would take a List
and return lets say a list of Table objects. The build and append would be responsible for stitching it all together. This way we've seperated out the problem from our internal storage calls so we don't have to worry about this when writing the SQL.
Here is the BuildAndAppend function
[csharp]
/// <summary>
/// Passes max items from the source subset to the supplied builder function
/// and aggregates the results
/// </summary>
/// <typeparam name="T"></typeparam>
/// <typeparam name="Y"></typeparam>
/// <param name="source"></param>
/// <param name="builder"></param>
/// <param name="max"></param>
/// <returns></returns>
public static List<T> BuildAndAppend<T, Y>(List<Y> source, Func<List<Y>, List<T>> builder, int max = 900)
{
if (source.Count() < max)
{
return builder(source);
}
// create a local copy of the list so to not modify the original
var list = new List<Y>(source);
// create a list to store the resulting set
var items = new List<T>(source.Count());
// take up to the first max items
var subItems = list.TakeAndRemove(max).ToList();
// while we have pending items, keep building new ones and
// append to the resulting list
while (subItems.Count() > 0)
{
items.AddRange(builder(subItems));
subItems = list.TakeAndRemove(max).ToList();
}
return items;
}
[/csharp]
It uses an extension method called TakeAndRemove
that is this:
[csharp]
public static IEnumerable<T> TakeAndRemove<T>(this List<T> source, int val)
{
if(source.Count() < val)
{
var copy = source.ToList();
source.Clear();
return copy;
}
var found = source.Take(val).ToList();
source.RemoveRange(0, found.Count() - 1);
return found;
}
[/csharp]
As a final example, assume we have a function like
[csharp]
public List<Tables> GetTables(List<TableItems> sourceItems)
{
var sql = "SELECT * From Tables where TableItems IN ( " + GetTableItemIdsAsParameters(sourceItems) + ")";
return BuildListFromSql(sql);
}
[/csharp]
Which by itself returns to you a list of tables based on the id's of the source table items. Then we can use our new BuildAndAppend
function like this without having to worry about how large the table items list is
[csharp]
List<Tables> tables = BuildAndAppend(sourceItems, GetTables);
[/csharp]
While this does work, the best solution for this problem would be to understand your dataset and to make sure you aren't pulling back more than you need to. But if you do need to pull back in clause sql with over 999 items then you can use this function to do it in large chunks. This certainly beats looping 999+ times and allows your application to not crash if it does encounter large sets.


Hulk
Caught in a gamma bomb explosion while trying to save the life of a
teenager, Dr. Bruce Banner was transformed into the incredibly powerful
creature called the Hulk. An all too often misunderstood hero, the angrier
the Hulk gets, the stronger the Hulk gets.
- Real Name - Robert Bruce Banner
- Height - 5' 9½" (Banner); 6'6" (gray Hulk); 7' – 8' (green/savageHulk);
7'6" (green/Professor Hulk)
- Weight - 128 lbs. (Banner); 900 lbs. (gray Hulk); 1,040 – 1,400 lbs.
(green/savage Hulk); 1,150 lbs. (green/Professor Hulk)
- Abilities - The Hulk possesses an incredible level of superhuman physical
ability. His capacity for physical strength is potentially
limitless due to the fact that the Hulk's strength increases
proportionally with his level of great emotional stress, anger in particular.
The Hulk uses his superhumanly strong leg muscles to leap great distances.
The Hulk has been known to cover hundreds of miles in a single bound and once
leaped almost into orbit around the Earth.
- Group Affiliations - Formerly Avengers, Defenders, Fantastic Four, Pantheon, Horsemen of Apocalypse, Warbound
- First Appearance - Incredible Hulk #1 (1962)
- Origin - Incredible Hulk #1 (1962)
- Powers - Dr. Bruce Banner is a genius in nuclear physics, possessing
a mind so brilliant that it cannot be measured on any known intelligence test.
When Banner is the Hulk, Banner's consciousness is buried
within the Hulk's, and can influence the Hulk's behavior
only to a very limited extent


Maihama Migueldora
(LastaFlute Example)
Products
Members
Withdrawal
Welcome,
Mr.Guest
Profile
Sign out


Interface IWritesStreamToTextWriter
An object which writes the contents of a System.IO.Stream to a System.IO.TextWriter.
Namespace: ZptSharp
Assembly: ZptSharp.Abstractions.dll
Syntax
public interface IWritesStreamToTextWriter
Remarks
This service is provided as a convenience for when the developer wishes to write the contents of a stream into a text writer. This could be useful when dealing with the result of WriteDocumentAsync(IDocument, RenderingConfig, CancellationToken).
Methods
| Improve this Doc View SourceWriteToTextWriterAsync(Stream, TextWriter, CancellationToken)
Writes the contents of the stream
to the specified
writer
.
Declaration
Task WriteToTextWriterAsync(Stream stream, TextWriter writer, CancellationToken token = default(CancellationToken))
Parameters
| Type | Name | Description |
|---|---|---|
| System.IO.Stream | stream | The stream (source). |
| System.IO.TextWriter | writer | The text writer (destination). |
| System.Threading.CancellationToken | token | An optional cancellation token |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task | A task which indicates when the stream has been completely written to the text writer. |
Remarks
The implementation of this method provides a well-performing, asynchronous API to write the specified stream into the specified text writer.


You have been denied access to a page that requires a Visitor Pass. This page is marked as 'self-service', which means that you can grant yourself access by filling in the details below.
{% if DEBUG %}Running in DEBUG mode this demo does not send out email notifications once the visitor pass is created, but will instead display a success page. In production you should handle the `self_service_visitor_created` signal to send out the email.
NB in production the visitor pass will be emailed to you, as we require confirmation that you are the owner of the email address.
{% endif %}


You didn't look at the screen for a while.
Please tell us what you were doing by selecting the option that comes closest.
Reading related
I had to make a note, look up a term, or translate a word.
Interruption
I was interrupted by a notification, a call, or another person.
Distraction
I distracted myself by checking social networks, reading articles, or my phone.


Landing Page
Special Projects
This story is part of a series of specially designed stories that represents some of the best journalism The Post has to offer. Check out the rest of the special projects here.
04.12.18
As the end of the academic year nears, The Post staff wanted to produce a paper that everyone could relate to, so we chose do a special food edition.
Matt Starkey | FILE
Of course, we write about food during our day-to-day reporting. During this academic year, we reported on the food pantry in Baker Center, the new grocery store in Vinton County, a local farm where students grow their own food and more. In past years, we wrote about people’s favorite late-night eateries and had an entire Post Modern feature dedicated to Union Street Diner.
But this time, we wanted to take a deeper dive into some of the different aspects of food. In Athens, a lot of human interaction revolves around food. Sometimes, it’s meeting someone at a bar over food or a drink, or sometimes it’s catching up with old friends at brunch on a Sunday.
Each year, people compete to see who will leave a legacy in Athens by creating a new sandwich at Bagel Street Deli after winning Pickle Fest. Or for some, that means re-examining a love for pickles after partaking in the competition. People also have the chance to try new foods every year at the International Street Fair, and people can bond with alumni over their favorite Athens-only cuisine during Homecoming.
In this issue, we take a closer look at the importance of a balanced diet and how fad diets typically do not work out in the long run.
We address the challenges that food truck vendors face, such as inconsistent weather and obtaining a vending license that allows them to sell food on East State Street.
For some, the atmosphere of a restaurant adds to the experience, so we dive into how certain restaurants decorate to enhance the meal.
Aside from the articles going in the print edition, we also have multimedia content related to food along with a few fun food blogs about the best food apps to download. All of our food-related content from this week can be found on an online landing page created by our digital team.
In many ways, food brings us together, and we hope this issue gives you a little taste of Athens.
Elizabeth Backo is a senior studying journalism and the editor-in-chief of The Post. What restaurants make Athens special for you? Tell Liz at<EMAIL_ADDRESS>or send her a tweet at @liz_backo.
Landing Page
This story is part of a series of specially designed stories that represents some of the best journalism The Post has to offer. Check out the rest of the special projects here.


Dash: the multi-micro-service dash board
QR Gen. M.S.
Email M.S.
QR Short Service
PDF Gen.
Eth Sign M.S.
Live Monitor
QR Short
Auth Key
Get Config
Pull back current configuration information. Requries AUTH KEY above.
Status
Get QR M.S. Status - Displayed in "output" below.
Exit Micro Service
Exit M.S. (In Production will restart
automatically
) Requries AUTH KEY above.
Output


git range-diff
Compare two commit ranges (e.g. two versions of a branch).
More information: home page
- Diff the changes of two individual commits:
git range-diff commit_1^! commit_2^!
- Diff the changes of ours and theirs from their common ancestor, e.g. after an interactive rebase:
git range-diff theirshome page..ours
- Diff the changes of two commit ranges, e.g. to check whether conflicts have been resolved appropriately when rebasing commits from `base1` to `base2`:
git range-diff base1home page.rev1 base2home page.rev2


§607-16 In both courts, when; set off against judgment, when. Whenever costs are awarded to the appellant, the appellant shall be allowed to tax as part thereof, the costs in the lower court, in addition to the costs of the court appealed to. If, upon an appeal, a recovery for any debt or damages is had by one party, and costs are awarded to the other party, the court shall set off such costs against such debt or damages, and render judgment for the balance. [CC 1859, §1014; RL 1925, §2553; RL 1935, §3802; RL 1945, §9756; RL 1955, §219-16; HRS §607-16; am L 1972, c 88, §5(r); gen ch 1985]
Case Notes
Final liability to pay costs is not determined until final judgment. 5 H. 181 (1884).
Costs on appeal. 32 H. 426 (1932); 32 H. 430 (1932).
Allowance of circuit court costs to party prevailing on appeal in supreme court. 43 H. 130 (1959).
Cited: 19 H. 433, 434 (1909).


Tutorials can be published all of the same ways that Shiny applications can, including running locally on an end-user’s machine or running on a Shiny Server or hosting service like shinyapps.io.
A very convenient way to publish tutorials is within R packages. Tutorials included within R packages can be run via the learnr::run_tutorial
function. For example, the following functions runs the “hello” and “slidy” sample tutorials built in to the learnr package:
learnr::run_tutorial("hello", package = "learnr")
learnr::run_tutorial("slidy", package = "learnr")
To bundle a tutorial into an R package and make it available for running via the run_tutorial
function you should:
Create a tutorials
directory within the inst
sub-directory of your package and then create a directory for your tutorial there (e.g. inst/tutorials/hello
, inst/tutorials/slidy
, etc.).
Add the .Rmd
associated with your tutorial in that directory. (You may see a ..._files/
directory or a .html
file that periodically get generated adjacent to your .Rmd
tutorial. You can safely ignore, delete, or exclude these from your package and from version control. They are temporary artifacts produced while rendering the tutorial on your specific system and aren’t likely to be portable to other environments.)
Once you’ve done this users can run your tutorial as follows (note they should be sure to install the learnr package before attempting to run the tutorial):
Users would then simply install learnr directly before running your tutorial, for example:
install.packages("learnr")
learnr::run_tutorial("introduction", package = "mypackage")
Note that if your tutorial performs exercise checking via an external package then you should be sure to add the package you use for checking as an Imports
dependency of your package so it’s installed automatically along with your package.
Note that it’s likely that the learnr package will eventually include or depend on another package that provides checking functions. For the time being though explicit installation of external checking packages is a requirement.
You can also deploy tutorials on a server as you’d deploy any other Shiny application. There are several ways to do this, two of which are:
Publish to the shinyapps.io cloud service.
Publish to an RStudio Connect server.
For both of these methods, you can use the RStudio IDE’s integrated one-click publishing to publish directly from your desktop:
A third way of publishing your tutorial is to serve it as a .Rmd
document in a hosted directory of Shiny Server.
Shiny Server fully supports interactive R Markdown documents. To take advantage of this capability, you will need to make sure that rmarkdown
is installed and available for all users. You can do so by running the following command:
sudo su - -c "R -e \"install.packages('rmarkdown')\""
If a hosted directory does not include an app.R
or a server.R
file, Shiny Server will look to see if it contains any .Rmd
files. If so, Shiny Server will host that directory in “R Markdown” mode using rmarkdown::run()
.
Particular .Rmd
files can be accessed by referencing their full path including the filename, e.g., http://myserver.org/mydocs/hello.Rmd. (Note that you need to finish the url with .Rmd
, not .html
). If a request is made to a directory rather than to a particular .Rmd
file, Shiny Server will attempt to serve the file index.Rmd
. If that file does not exist, the user will get an error alerting them that the file is not available.
Since users can execute arbitrary R code within a tutorial, this code can also consume arbitrary resources and time! (e.g. users could create an infinite loop or allocate all available memory on the machine).
To limit the time taken for the execution of exercises you can use the exercise.timelimit
option. see the documentation on Exercise Time Limits for additional details.
You can use various features of RStudio Connect and Shiny Server Pro to run tutorials within a resource and/or filesystem sandbox.
See also the section below on Exercise Execution for details on further customizing the evaluation environment for exercises.
Since tutorials enable end users to submit R code for execution on the server, you need to architect your deployment of tutorials so that code is placed in an appropriate sandbox. There are a variety of ways to accomplish this including placing the entire Shiny Server in a container or Linux namespace that limits it’s access to the filesystem and/or other system resources.
Note that by default when running on UNIX systems the learnr package runs exercise code within a forked child process. This means that it’s not possible for exercise code to modify the state of the parent Shiny Server process. You can further customize the evaluation environment for exercises using AppArmor and other system resource management facilities (see the Exercise Execution section below for details).
If your tutorial contains broken code within exercises for users to fix, the CRAN version of packrat
will not find all of your dependencies to install when the tutorial is deployed. To deploy tutorials containing broken exercise code, install the development version of packrat
. This version of packrat
is able to find dependencies per R chunk, allowing for broken R chunks within the tutorial file.
devtools::install_github("rstudio/packrat")
Publishing tutorials to a server makes them instantly accessible to any user with a web browser, and requires no local installation of R or R packages. It also opens up the possibility of collecting data on user interactions with tutorials (progress made, errors encountered, etc.).
The learnr package includes a variety of mechanisms intended to make it easy to deploy within a tutorial hosting service, each of which are described below. As of this writing there are no publicly available tutorial hosting services, however we hope this will change soon, and will update this documentation as services become available.
Tutorials save the state of inputs and outputs (e.g. exercise and question submissions) and automatically restore them when users revisit the tutorial. For locally deployed tutorials (e.g. tutorials run from within an R package) this state is saved within the local filesystem.
For server deployed tutorials the state is saved within the per-domain storage provided by the end user’s web browser. This has the benefit of saving and restoring state on a per-user basis without any notion of user authentication or identity, however will only work within a single web browser (i.e. state won’t be restored if the users accesses the same tutorial from another machine).
Hosting services will typically want to provide a custom implementation for the storage of tutorial state which is tied to their tutorial provisioning and user identity system.
A custom storage provider is specified by assigning an R list which includes the storage functions to the tutorial.storage
global option. For example, here is a “no-op” storage provider:
The parameters passed to the storage provider’s functions are as follows (note that the various ID fields can be customized by a hosting provider, see the Tutorial Identifiers section below for details):
| ID | Default |
|---|---|
| tutorial_id | Unique identfier for tutorial. |
| tutorial_version | Tutorial version. |
| user_id | Unique identfier for user. |
| object_id | Unique identifier for R object. |
| data | R object to be saved |
Note that by default when running on UNIX systems the learnr package runs exercise code within a forked child process. This means that it’s not possible for exercise code to modify the state of the parent Shiny Server process. The section below describe the various ways of further customizing exercise execution.
The learnr package can have it’s exercise evaluation environment customized using onstart
and oncleanup
hooks. Within these hooks you can use functions from RAppArmor package or another package that provides interfaces to system resource management functions.
Using this method you can apply time limits, resource limits, and filesystem limits. Here are the steps required to use RAppArmor with the onstart
and oncleanup
hooks:
Install and configure the RAppArmor package as described here: https://github.com/jeroenooms/RAppArmor#readme
Add the following line to the /etc/apparmor.d/rapparmor.d/r-user
profile (this is required so that the default AppArmor profile also support calling the pandoc markdown renderer):
/usr/lib/rstudio/bin/pandoc/* rix,
Define onstart
and oncleaup
hooks by setting the tutorial.exercise.evaluator.onstart
and tutorial.exercise.evaluator.oncleanup
global options. For example:
You’d likely set these options within Rprofile.site
or another R source file that is evaluated prior to running the tutorial with rmarkdown::run
.
You can replace the default exercise evaluation code entirely with your own via the tutorial.exercise.evaluator
global R option. The evaluator is an R function that accepts four arguments:
It returns a list of functions (start
, completed
, and result
) to use for execution.
The two default evaluators (used for Windows/MacOS and UNIX systems, respectively, are):
inline_evaluator
— Evaluate exercises inline within the main Shiny Server process (this is the default on Windows and Mac OS systems).
forked_evaluator
— Evaluate exercises within a forked child process (this is the default on UNIX systems).
You can see the source code for these evaluators here: https://github.com/rstudio/learnr/blob/master/R/evaluators.R.
The pararmeters provided to the evaluator may be expanded in the future, so custom evaluators should permit additional arguments that have not yet been defined.
In versions of learnr later than 0.10.1, there is also support for a external_evaluator
. This evaluator allows exercises to be executed on a remote host rather than on the host running the Shiny process. You can use this evaluator by specifying a tutorial.external.host
option or setting a TUTORIAL_EXTERNAL_EVALUATOR_HOST
environment variable. If set, learnr will submit exercises over HTTP to the specified host.
The given host is expected to fulfill this OpenAPI specification. In other words, it has two HTTP endpoints:
POST /learnr/
- Initiate a sessionPOST /learnr/<session ID>
- Submit an exercise to run as a part of a sessionLearnr has an event system which can be used for recording information about usage, or for causing code to run when events occur.
As part of deploying a tutorial you might want to record the various user events which occur within tutorials (e.g. exercise and question submissions, requests for hints/solutions, etc.).
The event system can also be used to cause arbitrary code to run when the events occur.
You can capture events by using a custom event recorder function. This function is specified via the tutorial.event_recorder
global option. For example, here’s how you would define a simple event recorder function that prints to stdout:
The following parameters are passed to the event recorder function (note that the various ID fields can be customized by a hosting provider, see the Tutorial Identifiers section below for details):
| ID | Default |
|---|---|
| tutorial_id | Unique identfier for tutorial. |
| tutorial_version | Tutorial version. |
| user_id | Unique identfier for user. |
| event | Event name (see below for various valid values). |
| data | Custom event data. |
The event
parameter is one of the following values:
| Event | Description |
|---|---|
| exercise_hint | User requested a hint or solution for an exercise. |
| exercise_submitted | User submitted an answer for an exercise. |
| exercise_result | The evaluation of an exercise has completed. |
| question_submission | User submitted an answer for a multiple-choice question. |
| video_progress | User watched a segment of a video. |
| section_skipped | A section of the tutorial was skipped. |
| section_viewed | A section of the tutorial became visible. |
| session_start | A new session has been initiated |
| session_stop | A session has been terminated |
The data
parameter is an R list which provides additional data that varies depending on which event
is being recorded.
It can also be useful to cause code to run when an event occurs. The event_register_handler()
function can be used for this. For example, this will cause a a message to be printed to the console when the "section_viewed"
event is triggered:
```{r context="server-start"}
event_register_handler("section_viewed", function(session, event, data) {
message("event: section_viewed: ", data$sectionId)
})
```
Note that event_register_handler()
should be called in a code chunk with context="server-start"
!
The callback must take three parameters:
session
: This is a Shiny session object.event
: The name of the event (like "section_viewed"
).data
: This is a list that contains arbitrary data.In some cases it is useful to have handlers that are triggered just once in the tutorial. This can be done with the one_time()
function. Inside of the handler, call one_time()
, and pass it the session
object, cond
, a condition expression, and expr
, the code expression to run.
The first time cond
is true, expr
will be evaluated; after that, expr
will not be evaluated again. In the example here, cond
is true when time the section with ID "section-exercise-with-hint"
is viewed, and so the first time that section is visible, it will print out a message.
```{r context="server-start"}
event_register_handler("section_viewed",
function(session, event, data) {
one_time(
session,
cond = data$sectionId == "section-exercise-with-hint",
expr = { message("Seeing ", data$sectionId, " for the first time.") }
)
}
)
```
Technical note: The reason that one_time()
has an unusual interface is because it needs to be able to store data that persists across runs of the tutorial. The code will run one time, even if the user stops the document and starts it again; it resets when the user clicks on “Start Over”.
The section IDs are generated automatically from the section title. For example, if this is the section heading:
### This is a section
Then the ID will be section-this-is-a-section
. If you want to use a different ID, you can supply it in curly braces, and it will be prepended with section-
. This will set the ID to section-myid
:
### This is a section {#myid}
You can even have sections that don’t have a title, but do have an ID:
### {#myid}
The Tutorial Storage and Recording Events sections above describe various ways to record user progress and actions within tutorials. Storage of tutorial state requires unique identifiers for tutorials (and their versions) as well as users.
Tutorial hosting services will often need to customize these identifiers based on their own notions of tutorial provisioning and user identify. This section describes how to do this.
The default tutorial and user identifiers are determined as follows:
| ID | Default |
|---|---|
| tutorial_id | Network origin and path of tutorial. |
| tutorial_version | 1.0 |
| user_id | Account name of server user executing the tutorial |
In addition, tutorial authors can use YAML metadata to provide custom tutorial IDs and versions. For example:
Tutorial hosting services will very often need to provide custom external definitions for tutorial IDs/versions and user IDs. This can be accomplished by adding HTTP headers to the requests that route to the tutorial. The names of the headers are configurable, and should be specified using the tutorial.http_header_tutorial_id
, tutorial.http_header_tutorial_version
and tutorial.http_header_user_id
global options. For example:
Once configuring these custom header names you’d then need to ensure that the HTTP proxy layer mediating traffic to tutorials set them to the appropriate values.


Simple map showcasing the bases and research stations in Antarctica. Used Python for webscraping the data from a wikipedia table and save it to JSON file with all the necessary formatting.
For the map itslef I decided to us mapBoxJs.
There is also a desktop version made with ElectronJs
Link to the repository for the desktop version: here


The variable yourName contains:
The variable numberSold contains:
The variable totalSales contains:
The variable goodMonth contains:
The variable annualSales contains:


I’ve been thinking for the past week or so about how I can contribute something back to the mac development community - a lot of good people spend a lot of time helping me out with my issues as they come up, and I believe improving our toolchain is probably the best way for me to contribute. Documentation, to be specific.
If we take the time to properly document and comment our source code, we’re unlikely to want to have to re-document that into a human readable format such as HTML or PDF, right? I’ve previously used tools such as HeaderDoc and NaturalDocs depending on the language and framework I’m coding in to achieve this end – with wildly varying results. HeaderDoc’s default output is quite ugly, and has some glaring omissions in terms of it’s parsing of some of the newer documentation tags.
So I’m thinking about starting up a Google Code project around this, and I’m just trying to get a feel for what people think about this idea, what they would use, and how they would see this working. So far I’ve solicited a little feedback and the following are things I know I’d like to see:
Comments ahoy, my peers!


The best Christmas afternoon teas to try in London
The chill is setting in, the décor is getting a whole lot sparklier and the speakers seem to be wired to only play Mariah Carey.
These three vital clues mean it’s festive season, so it’s now socially acceptable to dedicate an entire afternoon to nibbling mini sandwiches and gulping down mulled wine in some of the city’s most picturesque venues.
Here’s our pick of the best Christmas afternoon teas in London.
For music
The Corinthia, Westminster
You’ll feel revitalised and ready for the busy holiday season after treating yourself The Corinthia’s champagne packages and kicking back to the hotel pianist tickling the ivories.
The festive afternoon tea is guaranteed to fill you up with an array of finger sandwiches including poached salmon, roast turkey and cranberry, and salt beef, horseradish cream and watercress.
Advertisement Advertisement
The luxury hotel also offers tasty vegetarian options including earthy truffle egg mayonnaise on malted granary bread and cucumber, radish and cream cheese.
If you’ve got space in that festive belly of yours, go to town on the chestnut and rum tartlets, spiced pineapple eclairs and The Corinthia’s housemade marshmallows
£60 per person. £70-£80 with a glass of champagne.
For doggos
The Egerton House Hotel, Knightsbridge
It doesn’t feel particularly festive to leave your pooch alone at home, does it? Wave that leash or wrangle that doggo into a Christmas-themed carrier, because you’re headed to The Egerton House Hotel.
The Knightsbridge establishment offers a doggy afternoon tea featuring ‘bowl-licking’ chicken and beef meatloaf, homemade dog biscuit ice-cream and ‘Pawsecco’ in rose or white.
For the human in your canine’s life, there’s also a festive spread of homemade cakes, fresh sandwiches and home-baked scones with clotted cream and preserves.
£65.00 per person. £25.00 per dog. £6.00 for a glass of pawsecco.
For views
TĪNG at The Shangri-La Hotel, London Bridge
To reflect on the year that was, you’ll need to get some perspective. Considering its Level 35 spot in The Shard, TĪNG should get you there.
Take in the 360-degree views over turkey and cranberry sandwiches followed by mulled wine pear compote and passion fruit and cardamom mousse.
Advertisement Advertisement
If you know your brews, the restaurant also offers more than 30 varieties of tea including white apricot with marigold flowers, China milky oolong and the Shangri-La’s signature afternoon blend.
£68 per person. £78 with a glass of champagne.
For vegans
Brigit’s Bakery, Covent Garden
A festive afternoon tea needn’t be all about the beef and horseradish sandwiches.
For a tasty plant-based alternative, Brigit’s Bakery has you covered with vegan offerings including quinoa verrine and mixed roasted vegetables on ciabatta, plus an assortment of homemade cakes and tarts including vanilla pannacotta and lemon drizzle slice.
The plant-based treats aren’t even the star of the bakery’s festive offerings. Brigit’s is known for its impressive set of wheels.
The afternoon tours take place on a double-decker bus that cruises through the Christmas light displays on Regent’s Street.
From £45 per person.
For Indian cuisine
Taj 51 Buckingham Gate Suites and Residences, Westminster
If cucumber sandwiches and scones aren’t enough to stoke the festive fire in you, indulge in something spicier.
The almost entirely vegetarian afternoon tea at Taj 51 boasts a selection of Indian fusion delights including curried egg scrolls, spiced potato toasts with fig chutney, and sweet shots of salted caramel lassi with chikki toffee crunch.
Advertisement
If you’ve been nice this year, you can wrap up the afternoon tea with a naughty selection of desserts.
There are cardamon srikhand tarts, gold leaf Gulab Jamun and macaroons flavoured like Gajar Halwa, a rich carrot-based pudding.
£45 per person.
For mulled wine
The Rubens at the Palace, Westminster
It’s winter and you’re an adult, damn it! The marshmallow is still in your court if you’d rather drink hot chocolate, but there are many other heated – and boozy – beverages on offer this season.
Check out the festive afternoon tea at The Rubens at the Palace. Your insides will be warm and your spirits high thanks to the restaurant’s unlimited mulled wine.
£55 per person. £19 for children under 12.
For the kids
Sanderson, Fitzrovia
Treat the little ones to a real-life Mad Hatter’s tea party featuring menus hidden within vintage books and a ‘Drink Me’ potion.
Feast on Alice in Wonderland themed-delights with a festive twist, including Queen of Hearts rose and strawberry jammy dodger and the Mad March Hare vanilla pocket watch macaroon.
£48-58 per person. £35 for children between 4-11 years old.
For extravagance
The Landmark, Marylebone
While this 5-star hotel is striking with its elegant British architecture and lofty atrium, it’s hard to take the focus of its festive dessert menu which includes gingerbread mousse, cognac macaroon and a chocolate brownie with redcurrant honey.
Advertisement
£58 per person. Includes a glass of champagne.
For biscuits
Biscuiteers, Battersea
If you’re a simple punter and all you want for Christmas is a biccie, pay a visit to Biscuiteers in Battersea. The dessert-connoisseurs will look after you with mini versions of their most in-demand cakes and patisseries in seasonal flavours.
£30 per person.


Key Partners
Key Activities
10
11
12
Key Resources
.col-lg-2
Value Proposition
1
2
3
Customer Relationships
Channels
.col-lg-2
Customer Segments
.col-lg-2
Cost Structure
.col-lg-10
Revenue Streams
.col-lg-10


Almost every project depends upon others to build and run correctly. Maven downloads and links the dependencies for you on compilation and other goals that require them. Additionally, Maven brings in the dependencies of those dependencies (transitive dependencies), allowing your list to focus solely on the dependencies your project requires. More information on Dependencies section from the official Maven Documentation.


Pandas are probably the most easily recognized bear in the world.  Their legs, shoulders, and tail are also black, and the rest of their body is white. Pandas, like most bears, have short tails, measuring between 4 and 6 inches long. They are moderately large bears, and males can weigh up to 350 lbs. or more. However, most pandas average between 220 and 254 pounds or so.
Pandas must live in habitats with plenty of bamboo forest to feed from. In addition to high volumes of bamboo, they must also have more than one species of bamboo to survive. In their natural range, most bears live in mountainous regions or valleys. They will also move to various habitats to follow the growth of bamboo shoots, because leaves are much more nutritious, and grow at different altitudes in different seasons.
In the wild, humans have restricted pandas to a few tiny ranges of habitat. There are populations across a few mountain ranges in central China, but these populations are fragmented. This means that they are far enough apart to prevent breeding between two populations, resulting in lower genetic diversity and increased inbreeding. Most pandas reside in the Sichuan, Shaanxi, and Gansu Mountains. Historically, they also inhabited the surrounding lowland areas, but habitat loss has driven them out of these areas.
The primary dangers to panda survival are habitat loss, poaching, and fragmented populations. Hunting of these bears has occurred for hundreds of years, primarily because their fur is so soft and strikingly colored. As human populations increased, people began to develop more and more land. This reduced the usable habitat for pandas, causing additional decline. Conservation efforts were poorly conducted until the 1990s, and to this day pandas are still threatened with extinction. The IUCN Red List classifies pandas as Vulnerable.


MISHA is a research group at Bennett University focused on multidisciplinary applications of Machine Intelligence for research in ‘smart’ living and better healthcare.
Our work primarily derives from Artificial Intelligence, Data Science, Machine Learning, and Natural Language Processing. The group focuses on solving challenging problems in the domain of Healthcare, Bioinformatics, Cyber Physical Systems, Internet of Things with the help of advanced algorithms for Machine Learning and Deep Learning.
Vision
- To be recognised as one of the leading research group in the areas related to Machine Learning.
- To develop efficient tools and techniques for various application domains.
- To actively engage decision makers to gain new insights for better planning and management for the benefit of the society
Mission
- To work in a systematic manner with defined goals and targets for fulfilling the vision.
- To engage and collaborate with peer institutions for active research network; To generate funds with quality proposals.
- To enrol, train and develop quality workforce; To establish synergistic relationship with leaders of industry, academia and government.


#include <timer.h>
Public Member Functions | |
| Timer (VoidFunctionPtr timerHandler, int callArg, bool doRandom) | |
| ~Timer () | |
| void | TimerExpired () |
| int | TimeOfNextInterrupt () |
Private Attributes | |
| bool | randomize |
| VoidFunctionPtr | handler |
| int | arg |
|
|
Initialize the timer, to call the interrupt handler "timerHandler" every time slice. |
|
|
|
|
|
figure out when the timer will generate its next interrupt |
|
|
called internally when the hardware timer generates an interrupt |
|
|
argument to pass to interrupt handler
|
|
|
timer interrupt handler
|
|
|
set if we need to use a random timeout delay
|


Preparation time
less than 30 mins
Cooking time
10 to 30 mins
Serves
Serves 4
Tender lamb fillets are a snap to cook, and the sweet coconut and tangy tamarind make this stir-fry sensational.
Season the lamb fillets with salt and black pepper.
Heat a frying pan until hot, add one tablespoon of the oil and fry the lamb on all sides until browned. Remove from the pan and set aside.
Heat a wok until hot, add the remaining oil, then add the chillies, garlic, ginger and spring onions and stir fry for one minute.
Add the leek and spring cabbage and stir fry for another two minutes then add the fish sauce, tamarind paste and coconut milk and bring to a simmer.
Cut the lamb into thick slices then add to the vegetables and toss through to combine.
Cook for one more minute then remove from the heat and add the mint, coriander and mizuna leaves and toss to combine. Add the lime juice and check the seasoning.
To serve, lay a banana leaf into each of four soup plates then spoon the stir-fry on top.


Celebrating 25 years
ABC Electronics has been engage on portable electronics items retail for 25 years. Founded in 1991, the company has grown to 150 branches all over the world.
Vision
To be a leader in portable electronic items retail.
Mission
To provide only quality products that customers can be proud to own.


Need an interactive vector keyboard for your web audio project? Qwerty Hancock is just the thing.
Specify the number of keys, give it a height and a width then you're ready to use your mouse or keyboard to have the time of your life.
The example above is hooked-up to a basic square wave synth using the Web Audio API. That means you'll only hear something in Chrome for the moment, but don't worry, you can use Qwerty Hancock for any project in any browser (apart from the old rubbish ones).
The best way to start playing with Qwerty Hancock is to grab it from GitHub
Qwerty Hancock relies on a couple of things, namely:
Once you've included Raphael in your project, a keyboard is created by calling the following function with an object containing some fairly self-explanitory attributes.
A real-world example might look like this:
var keyboard = qwertyHancock({ id: 'keyboard', width: 600, height: 150, octaves: 2, startNote: 'A3', whiteNotesColour: 'white', blackNotesColour: 'black', hoverColour: '#f3e939', keyboardLayout: 'en' });
This will show us a lovely keyboard, but how do we get it to make some noise? Qwerty Hancock provides two handy hooks into which you can add your own functions.
keyboard.keyDown(function (note, frequency) { // Your code here }); keyboard.keyUp(function (note, frequency) { // Your code here });
If you want to tie your keyboard into the Web Audio API, just view the source of this very page.
No problem, just give me a shout on Twitter.


{% extends "base.html" %} {% load staticfiles %} {% block content %} {% for band in bands %} {% url 'band_info' band.name as band_url %} {{ band.name }} {{ band.reason|truncatechars:200 }} Read full {% empty %} No bands were found with the name '{{ search_term }}' Go back to the band list Or if you know how {{ search_term }} got their name then please help us and add how using the add a new band feature {% endfor %} {% include "pagination.html" %} {% endblock content %}
Go back to the band list
Or if you know how {{ search_term }} got their name then please help us and add how using the add a new band feature


FitLife is a mobile application created for the INFO3113 - Mobile Web Development class at Fanshawe.
Created using Apache Cordova/PhoneGap.
Created by: Brandon Stewart, China Nallagatla, Kurt Lane, and Michael Arounlasy.


UCare Caregiver Provider
Find
A State Help Sign In Become A Provider
----------------------------------------------------------------------------------
You Are Not
Alone
While everyone else is helping your loved one, UCare is here to help you
.
Note:
This should be a scroller expand to see full text
For The Health Care Providers The Experience Is Powerful The
HIPAA compliant UCare Support experience is so
powerful for Family Caregivers because of the exceptional compassion,
qualifications, and experience of Health Care Providers like you. See More Reasons
to Provide Support via UCare Reach More People In Need Of Your
Services With UCare you can connect with Family Caregivers who are
not in your normal service area. Many are in rural areas which are
underserved by professionals with your skills and many are urban but cannot
afford the time or expense of regularly scheduled services. With UCare, these Family Caregivers are clients. See More Reasons
to Provide Support via UCare Convenient For You Fill
gaps in your schedule. Earn in spite of a last minute cancellation. Work in
the early morning or late night if thatÕs when you are most awake. Work
from home or when you are on travel.  See More Reasons
to Provide Support via UCare
UCare Caregiver Provider
Find
A State Help Sign In Become A Provider
----------------------------------------------------------------------------------
You Are Not
Alone
The best way to get what you need when you need it.
Medical Procedures Nurses are available to walk you
through procedures. Day-To-Day Care Home Health Care professionals
are available to answer your questions.
Pricing Home
Health: Support for Day-To-Day Care: Licensed
Nurse: Instructions for Medical Procedures: Counseling:
A Kind and Caring Ear to Talk to: 10 Minute Call $a.aa -
$b.bb $c.cc - $d.dd $e.ee - $f.ff Privacy / Confidence From beginning to end, a support
engagement you can trust. ThatÕs why UCare
complies with the Health Information privacy and security law, HIPAA. And
why we implement many additional features that make every engagement
private and secure. See How UCare Protects Your Privacy And Safety
Sign Up To Get
Caregiver Support
Welcome
to UCare, the smartest, cheapest, and easiest way to
get Caregiver Support. Create your account and get Caregiver Support in
minutes.
A) Account *
Required
<EMAIL_ADDRESS>*Email
At least 8 characters
*Password
B) Profile
First First
*Name
Note: Drop down box with English and Spanish. Add to
list as Providers add languages.<PHONE_NUMBER>
*Mobile Number
English
*Primary Language Secondary Language
C) Promotion or Referral Code
PromotionOrReferral
D) Caregiving Situation (Optional)
(You do not need to
complete this section. Completing will help us serve you better.)
Male/female Note: Husband, wife, father, mother, brother, sister,
(in-law for all above), chronically or terminally ill child).
1. I am a
year old
2. Caring for my
year old
3.
Note: List of conditions, ailments
Whi is experiencing or recovering from
4. I look forward to using UCare for (click all that apply)
Home Health: Day-To-Day
Care (ExamplesÉ)
Nursing:
Medical Procedure Instructions (ExamplesÉ)
Counseling:
For those moments I am overwhelmed (ExamplesÉ)
Create
Your Account
By clicking
ÒCreate Your AccountÓ you agree to UCareÕs Terms and Conditions and Privacy
Policy.
UCare Caregiver Provider
Find
A State Help Sign In Become A Provider
----------------------------------------------------------------------------------
You Are Not
Alone
The best way to get what you need when you need it.


Shinning Gambas Software
Thanks for playing
Game Design
Development
Graphic Design
Thomas "Lord Nazdar" Poulet
Development
Game Design
Sébastien "Rodyll" Morinière
Development
Sound Design
Victor "Padawan" Haffreingue
Development
Game Design
David "Dalzark" Auriac
Team


Preparation time
over 2 hours
Cooking time
1 to 2 hours
Serves
Serves 4
Give chicken the Middle Eastern treatment with the enchanting spices of za'atar and sumac. Serve with a zesty homemade mayonnaise for a special supper.
 Put on a baking tray and cook for approximately 40-50 minutes or until golden and crisp.  Once the skin has cooled finely chop into little pieces. Turn the oven up to 200C/180C Fan/Gas 6.
To make the brine bring 200ml/7fl oz of water to the boil with the paprika and salt. Tip into a bowl and add 800ml/1¼ cold water. Once the brine is at room temperature tip onto the chicken pieces and put in the fridge for 3 hours. After 3 hours rinse the chicken under cold water and pat dry
For the glaze, put the chillies and garlic into a food processor and blend to a coarse purée. Put the sugar in pan over a medium heat until it starts to caramelise (CAUTION: boiling sugar is extremely hot). Add in the purée and hot chilli paste and cook for 10-20 minutes. Then add in the cider vinegar - be careful it will spit a bit. Cook for 10-20 minutes or until the glaze is at a syrup consistency.
Meanwhile, make the mayonnaise. Blend the egg yolks in a small processor along with the mustard and vinegar. Whilst the motor is running very slowly drizzle in the oil to form a mayonnaise. Finally, blend in the lime pickle and juice and adjust the seasoning if necessary.
 Cook in the oven for about 30 minutes, we are looking to cook the chicken two-thirds of the way through.
Remove the chicken from the oven and generously ladle the glaze over all the pieces, use about half the glaze. Place back into the oven for 5 mins. Take out and repeat the process.
Meanwhile make the crumb, combine all of the ingredients and place on a tray.
Once the chicken is cooked through and glazed well take out of the oven. Coat the chicken in the crumb. Serve with the lime mayo on the side and wedges of lime.


Creating Project
Lets begin with creating a very basic widget that displays a red square. Just something simple so we can test our Theos setup and also understand a little bit about how custom widgets work under the hood.
First we must create the project using Theos's NIC that we setup previously. If you are bored or aren't using Theos, you can try to create the project manually (the file structure and content is described in the File Structure section).
NIC 2.0 - New Instance Creator
------------------------------
[1.] iphone/activator_event
[2.] iphone/application_modern
[3.] iphone/application_swift
[4.] iphone/flipswitch_switch
[5.] iphone/framework
[6.] iphone/hswidget
[7.] iphone/library
[8.] iphone/preference_bundle_modern
[9.] iphone/tool
[10.] iphone/tool_swift
[11.] iphone/tweak
[12.] iphone/xpc_service
Choose a Template (required): 6
Project Name (required): HSCustomWidget
Package Name [com.dgh0st.hscustomwidget]: com.dgh0st.hscustomwidget
[iphone/hswidget] HSWidgets class name prefix (needs to be unique) [HSCustomWidget]: HSCustomWidget
[iphone/hswidget] HSWidgets display name [Custom Widget]: Custom Widget
[iphone/hswidget] HSWidgets creator [Unknown]: DGh0st
Instantiating iphone/hswidget in hscustomwidget/...
Done.
Just to reiterate:
Make sure the HSWidgets class name prefix is unique when creating a new project, otherwise your widget class name will conflict with another widget leading to your widget not being loaded. If you do get a conflict, you can rename the custom widget view controller class and update the principal class in Resources/Info.plist.
HSWidgets widget follow a similar design as iOS extensions, as in they are bundles that get loaded at runtime. HSWidgets loads these bundles at runtime, specifically all bundles that are installed to a specific directory. It'll then look for the principal class of the bundle to figure out what class corresponds to widget view controller in executable. So all we need to do is make sure that our bundle gets installed to the correct location and that the principal class is a valid widget view controller. Both of which should be taken care of by the Theos template.
File Structure
Template should have created these files:
<Project Directory>
| Resources
| | Info.plist
| | icon.png (not created by template, but can be added if supporting 32-bit devices on iOS 10)
| |<EMAIL_ADDRESS>(not created by template, but can be added)
| |<EMAIL_ADDRESS>(not created by template, but can be added)
| control
| HSCustomWidgetViewController.h
| HSCustomWidgetViewController.mm
| Makefile
We could compile and run this project, which should display "Custom Widget" as one of the widgets that can be added through HSWidgets' adding view. Doing so will add an empty widget that has no content. But before adding our content, lets better understand how widgets function by looking at what each of these files are used for.
Resources/Info.plist
Provides information about the bundle and also be used to specify some metadata about our widget. Things like icon image name, widget display name, widget view controller class, etc. Here is a list of fields that can be set:
CFBundleIdentifier: (Required) identifier of bundle.
NSPrincipalClass: (Required) principal class that is used as widget view controller. The class needs to be subclass of HSWidgetViewController.
HSWidgetDisplayName: name of widget displayed to users.
HSWidgetIcon: name of icon image.
HSWidgetCreator: name of creator, take credit for your awesome work.
HSWidgetAddNewOptionsControllerClass: class used for displaying additional options via HSWidgets' adding view. This class needs to conform to HSWidgetAdditionalOptions protocol and must be a view controller.
HSWidgetPreferencesControllerClass: class used for adding settings preferences to widgets, specifying a valid class here will enable the settings button as well. This class may conform to HSWidgetPreferences (but is not enforced) and can be any view controller.
Some of these fields can also be set dynamically.
control
Contains information about the package, has same functionality as other Theos projects. There is only one unique things in this file for custom widgets and that is to depend on HSWidgets so that your package manager will install it if not already installed. We can do this by adding com.dgh0st.hswidgets to Depends field.
HSCustomWidgetViewController.h
Header file that interfaces our custom widget that we created. Most important thing to note here is the widget needs to be a subclass of HSWidgetViewController.
#import <HSWidgets/HSWidgetViewController.h>
@interface HSCustomWidgetViewController : HSWidgetViewController
@end
Lets add a property for red square that we are going to add.
@property (nonatomic, strong) UIView *square;
HSCustomWidgetViewController.mm
Now to the fun part, coding the widget. The template should have generated following code in this file:
#import "HSCustomWidgetViewController.h"
@implementation HSCustomWidgetViewController
-(void)viewDidLoad {
[super viewDidLoad];
// add custom view
}
+(HSWidgetSize)minimumSize {
return HSWidgetSizeMake(1, 1);
}
@end
Notice the new type here called HSWidgetSize, which is defined as:
typedef struct HSWidgetSize {
NSUInteger numRows;
NSUInteger numCols;
} HSWidgetSize;
Its a struct for managing number of rows and columns.
Overriding minimumSize is specifying that our widget requires a minimum of 1 row and 1 column. HSWidgets uses this size to determine if the widget can currently be added to home screen page. If we were to change this size to 2x2, it would only show in HSWidgets' adding view if there was enough space to fit 2x2 widget.
Widgets are just view controllers so we can add our custom square view as a subview of the view controller's view. Lets add our squre in viewDidLoad:
self.square = [[UIView alloc] initWithFrame:CGRectMake(5, 5, 50, 50)];
self.square.backgroundColor = [[UIColor redColor] colorWithAlphaComponent:0.5];
self.square.layer.cornerRadius = 5;
[self.view addSubview:self.square];
That is all we need to do add a custom view.
Makefile
Last but not least, the makefile that Theos can use to package the deb correctly. Custom widgets are just bundles as explained earlier, so we only need to setup bundle variables that Theos can then use to create the package. First we need to link HSWidgets framework that compiler can use to find header files and that linker can use to link against symbols in tbd. We do this by adding:
<Bundle Name>_EXTRA_FRAMEWORKS = HSWidgets
This will look for HSWidgets framework in your framework search paths ($THEOS/lib for instance) so make sure you setup your Theos Environment correctly.
Next is getting the widget bundle to be installed to correct spot so that HSWidgets can load it. HSWidgets loads all widget bundles in /Library/HSWidgets directory so add:
<Bundle Name>_INSTALL_PATH = /Libary/HSWidgets
The generated file should already have both of these so the final version of makefile should have something like this:
INSTALL_TARGET_PROCESSES = SpringBoard
include $(THEOS)/makefiles/common.mk
BUNDLE_NAME = HSCustomWidget
HSCustomWidget_FILES = HSCustomWidgetViewController.mm
HSCustomWidget_FRAMEWORKS = UIKit
HSCustomWidget_EXTRA_FRAMEWORKS = HSWidgets
HSCustomWidget_INSTALL_PATH = /Library/HSWidgets
HSCustomWidget_CFLAGS = -fobjc-arc
include $(THEOS_MAKE_PATH)/bundle.mk
Testing/Running
Compiling and running above code should add "Custom Widget" as one of the options when going into HSWidgets' adding view. Then adding the widget should display our red square.
But that looks funky with the corner radius not matching and editing view being bigger than our content view. To fix the corner radius we just need to get current corner radius from super class via self.cornerRadius (alternatively we could also set that property to a custom value).
For the sizing issue we can increase size of our content to match container size. Auto layout with anchors would be really easy to implement here to do exactly that so lets do it. All sides of our square need to be anchored to corresponding sides of container view (self.view), which we can do right after creating our view inside viewDidLoad:
self.square.translatesAutoresizingMaskIntoConstraints = NO;
[self.square.topAnchor constraintEqualToAnchor:self.view.topAnchor].active = YES;
[self.square.bottomAnchor constraintEqualToAnchor:self.view.bottomAnchor].active = YES;
[self.square.leadingAnchor constraintEqualToAnchor:self.view.leadingAnchor].active = YES;
[self.square.trailingAnchor constraintEqualToAnchor:self.view.trailingAnchor].active = YES;
That looks much nicer but thats not really a square anymore, so what if we wanted to keep our previous size? Well we can resize the editing view instead. HSWidgets supports this by letting subclasses override calculatedFrame.
-(CGRect)calculatedFrame {
return CGRectMake(5, 5, 50, 50);
}
For consistency, we could also call this method to set frame of our square but I'll leave that for you to practice.
Finally rounded square widget! Yay!


Gourmet Burgers
Home
Main Creation
Sides
Drinks
View Current Order
Checkout
{% block body %} {% endblock %}


The amount of IPv4 space is just about used up. That means IPv4 addresses are scarce resources. Scarcity can limit future expansion of the Internet. Those who wish to connect to the world, but do not have a global IP address, cannot do so. This is especially true in the developing world, which has less IPv4 space allocated to it. A transition to IPv6 removes this scarcity and balances the IP addresses allocated to each continent.
Countries and continents which have not had large access to Internet infrastructure have received less IPv4 addresses than countries where the global Internet was rapidly adopted. IPv4 addresses have been allocated based on how many IPs were used up in each region. If a continent was using most of its IP addresses, then it was likely to get a new block. What this means is that developed countries, which connected to the Internet early and in larger numbers have more IPv4 addresses to use, reuse and reallocate. If the world were to stay with IPv4, the lack of IP addresses allocated to the developing world would create a bottleneck and barrier to the development of Internet technologies in those countries.
IP address space is distributed by the Internet Assigned Numbers Authority (IANA). The IANA distributed blocks of IPs (usually a /8) to a Regional Internet Registry (RIR) who then distributes it out to Internet Service Providers and others. RIRs are:
As you can see the USA and Canada alone take up almost half the IPv4 allocation of the whole world, while Africa and Latin America have small slivers of IP space. IPv6 is a whole new ball game. First off, the sheer size of IPv6 address space is so gigantic that most of it has not been allocated at all and is reserved.
The small slices are all the world's IPv6 allocation so far.
Each RIR has been assigned a /12 along with a few /23s and other blocks. There has been little need to request more space than these /12s, and because of this, IPv6 RIR allocation is fairly evenly distributed at the moment. As IPv6 usage grows this may slowly change, but because IPv6 addresses will not become scarce resources, developing countries do not have to worry about not being able to receive the IP addresses they desire as their demand grows. The adoption of IPv6 ensures more equal opportunities to develop the Internet. Current IPv6 allocation, excluding reserved address space looks like this:
Finally, just to put things into size perspectives, all the IPv4 address space is 2^32=4,294,967,296 IP addresses. Every IPv6 RIR has been assigned more than a /12. A single /12 has 2^52=4,503,599,627,370,496 /64s! Each /64 contains 2^64 IP addresses. Comparing 2^32 and 2^52 visual is meaningless, the IPv4 number doesn't even render:
Source: IPv6 Global Unicast Address Assignments and IANA IPv4 Address Space Registry


Israeli kingmaker refuses support to Netanyahu or Gantz as country set for third elections in a year
Lieberman, a right-wing nationalist leader said that both Netanyahu and Gantz have not done enough to convince him ahead of a midnight deadline for Gantz to form a government.
Israeli kingmaker Avigdor Lieberman refused to support Benjamin Netanyahu or rival Benny Gantz for prime minister, pushing the Jewish country closer to the third round of elections in a year.
Lieberman, a right-wing nationalist leader said that both Netanyahu and Gantz have not done enough to convince him ahead of a midnight deadline for Gantz to form a government.
"Both are responsible," he said. "As things stand, we are on our way to new elections."
Lieberman's Yisrael Beitenu party has won enough seats in the Israel elections to put either of Netanyahu or Gantz into power.
Earlier, both Netanyahu and Gantz failed to gain a clear majority yet again in the September elections. Israel's President Reuven Rivlin gave 28 days to Gantz to form the government after Netanyahu failed to garner support from other parties in a similar deadline.
Netanyahu and Gantz tried holding talks to form a government together with the support of Lieberman's party. However, talks failed when both leaders accused each other of non-cooperation through tweets on Wednesday.
"Unfortunately, during our meeting last night, Benny Gantz refused to accept the conditions put by Avigdor Lieberman, that is, to accept the President's solution that, as Prime Minister, I will be the first in rotation," Netanyahu said.
Gantz accused Netanyahu of rejecting unity and doing "everything possible" for another round of elections.
"Benjamin Netanyahu is rejecting unity and will do everything possible to drag us into elections for the third time," Gantz tweeted.
Once Gantz's deadline to form a government is over, Israeli lawmakers will get 21 days to propose a candidate who has to establish majority to the president. Once this deadline of 21 days comes to end, the road for another round of elections in Israel will become clear.


--- layout: page use-site-title: true ---
Bitcoin ABC is a full node implementation of the Bitcoin Cash protocol.
We aim to provide a solid, stable software and help lead Bitcoin Cash
protocol development with an open and collaborative process.


Provide assistance for elderly and disabled by transporting heavy objects, with a simple and easy to use interface
Account for human characteristics in a following algorithm that uses data from a variety of sensors
Buddy Bot is simple to use, working directly out of the box with no necessary additional configurations
Computer Engineering, Class of 2020
Computer Engineering, Class of 2020
Computer Engineering, Class of 2020


This application demonstrates secure AWS communication using the Microchip ATECC508A secure element. The "AWS Zero Touch Secure Provisioning" kit accesses the ThingShadow registers on the Amazon AWS-IOT platform to retreive the reported state of the Microchip SAMG55 Xplained board
For more information and to download the latest version of this application please view available links in the Help menu
Application Version 1.0.0(1.0.0)


Pixie
A small, fast, native lisp with "magical" powers
Pixie is a lightweight lisp suitable for both general use as well as shell scripting. The standard library is heavily inspired by Clojure as well as several other functional programming languages. It is written in RPython and as such supports a fairly fast GC and an amazingly fast tracing JIT.
Pixie implements its own virtual machine. It does not run on the JVM, CLR or Python VM. It implements its own bytecode, has its own GC and JIT. And it's small. Currently the interpreter, JIT, GC, and stdlib clock in at about 10.3MB once compiled down to an executable
If you like Clojure, but are unhappy with the start-up time, or if you want something outside of the JVM ecosystem, then Pixie may be for you. The language is still in a "pre-alpha" phase and as such changes fairly quickly.
Hello Pixie
It's quite straight forward to go to Neverland
(println "Goodbye world!") (loop [x 5] (when (> x 0) (print (str x "\n")) (recur (- x 1)))) ;And we're off (println "Hello Neverland!")
FAQs
A bit more about the magic
So this is written in Python?
It's actually written in RPython, the same language PyPy is written in. make build_with_jit will compile Pixie using the PyPy toolchain. After some time, it will produce an executable called pixie-vm. This executable is a full blown native interpreter with a JIT, GC, etc. So yes, the guts are written in RPython, just like the guts of most lisp interpreters are written in C. At runtime the only thing that is interpreted is the Pixie bytecode, that is until the JIT kicks in...
What's this bit about "magical powers"
First of all, the word "magic" is in quotes as it's partly a play on words, pixies are small, light and often considered to have magical powers.
However there are a few features of pixie that although may not be uncommon, are perhaps unexpected from a lisp.
- Pixie implements its own virtual machine. It does not run on the JVM, CLR or Python VM. It implements its own bytecode, has its own GC and JIT. And it's small. Currently the interpreter, JIT, GC, and stdlib clock in at about 10.3MB once compiled down to an executable.
- The JIT makes some things fast. Very fast. Code like the following compiles down to a loop with 6 CPU instructions. While this may not be too impressive for any language that uses a tracing jit, it is fairly unique for a language as young as Pixie.
;; This code adds up to 10000 from 0 via calling a function that takes a ;; variable number of arguments. ;; That function then reduces over the argument list to ;; add up all given arguments. (defn add-fn [& args] (reduce -add 0 args)) (loop [x 0] (if (eq x 10000) x (recur (add-fn x 1))))
(Planned "magical" Features)
- Influencing the JIT from user code. (Still in research) Eventually it would be nice to allow Pixie to hint to the JIT that certain values are constants, that certain functions are pure, etc. This can all be done from inside RPython, and the plan is to expose parts of that to the user via hints in the Pixie language, to what extent this will be possible is not yet known.
- STM for parallelism. Once STM gets merged into the mainline branch of PyPy, we'll adopt it pretty quickly.
- CSP for concurrency. We already have stacklets, it's not that hard to use them for CSP style concurrency as well.
Where can I find other Pixie developers?
Mostly on FreeNode at #pixie-lang or gitter. Stop by and say "hello".
The origins of Pixie
"I've always had it in the back of my head that a lisp on RPython would be a good project."
"I've been a language hacker for years, and have played around with RPython (PyPy’s tool-chain) for some time. I've always had it in the back of my head that a lisp on RPython would be a good project. But it seems like this time it’s really taken off. I started the project about 3 months ago, and by now it’s grown quite a bit. The standard library is about to hit 2000 loc (lines of code), and we have about half a dozen contributors. Not bad for only a few months work." - Timothy Baldridge (2014)
Read the full interview with Timothy Baldridge here.


Contact Application
Add New Contact
Search
Contact Name:
Address:
City:
Province:
Postal Code:
Please enter valid Postal Code.
Phone Number:
Please enter valid Phone Number.
Email:
Notes:


Test run report
Back
Prev
Next
Latest
Main statistics
Test list
Timeline
Run information:
Name:
Sprint:
Start datetime:
Finish datetime:
Duration:
Run summary:
Total:
Success:
Errors:
Failures:
Inconclusive:
Ignored:
Unknown:
Passed
Failed
Broken
Ignored
Inconclusive
Unknown
Test list:
Run timeline:


Try out our Premium Member services: Virtual Legal Assistant, Query Alert Service and an ad-free experience. Free for one month and pay only if you like it.
1 Mcrc.No.13107/15 HIGH COURT OF MADHYA PRADESH BENCH AT GWALIOR. ***
(SB: SHEEL NAGU, J) *** (Misc. Cri.C. No.13107/15) Manu Anand Managing Director Vs.
Madhya Pradesh Pollution Control Board
----------------------------------------------------------------------------------------
Shri Surendra Singh, Senior Advocate with Shri Saurabh Agrawal, Advocate for the petitioner.
Shri Harish Dixit, Advocate for the respondent/Pollution Control Board.
----------------------------------------------------------------------------------------
Whether Reportable YES/NO Order (Passed on 20/6/2016) SHEEL NAGU, J. -
1. Inherent powers of this court under Section 482 of Cr.P.C . are invoked for quashment of criminal complaint alleging offences under Sections 43, 44 and 49 of Water (Prevention and Control of Pollution), Act, 1974 (for brevity the Act), cognizance of which has been taken by order dated 3/7/2015 (Annexure-P/2) passed in Cri. Case No. 434/15 by JMFC Gohad, district Bhind (M.P.) against the petitioner,who happens to be the Managing Director of the Cadbury India Ltd. (now known as Mondelez India Foods Private Limited), which is a company registered under the Companies Act having its headquarters at Mumbai and factory at Malanpur Industrial Area, district Bhind.
2. The respondents by the complaint in question alleged offences punishable under Sections 43, 44 and 49 of the Act on 2 Mcrc.No.13107/15 the allegation of contravention of sections 24,25 and 26 of the Act of exuding untreated industrial effluent. The court of competent criminal jurisdiction has taken cognizance by issuing summons against three persons including the petitioner herein, impleaded as accused of the said complaint.
2.1 Pertinently, other two accused impleaded in the complaint were Company itself and one Jai Kumar Nair, Vice President of the said company.
3. Shri Surendra Singh, learned Senior Advocate alongwith Shri Saurabh Agrawal, counsel for the petitioner has raised singular ground of challenge to the said complaint by contending that the petitioner being Managing Director of the said company was not the person in day-to-day control of the affairs of the factory of the company from where the industrial effluent is alleged to have been discharged. In continuation, it is alleged that when one of the accused namely Jai Kumar Nair, Vice President of the said company had been appointed as Factory Manager w.e.f. 1/4/2014 by resolution vide Annexure-P/7 of the Board of Directors of the said company dated 23/5/2014 then, there was neither any occasion nor any lawful authority with the respondents to implead the petitioner as an accused in the complaint. In support of his submission, learned counsel placed reliance on the decisions in the cases of Pepsico India Holdings (P) Ltd. v. Food Inspector & another (2011) 1 SCC 176 (para 50), Girdhari Lal Gupta v. D.H. Mehta & Another (AIR 1971 SC 2162) (para 6) and Puja Ravinder Devidasani v. State of Maharashtra & another (AIR 2015 SC 675 (paras 18, 19 and 20).
3.1 Shri Harish Dixit, learned counsel for the respondent on the 3 Mcrc.No.13107/15 other hand contends that the petitioner being Managing Director of the company was very much in charge and responsible for day- to-day affairs of the company and its business and therefore he cannot wriggle out of the clutches of section 47 by shifting liability to any other person.
4. Learned counsel for the rival parties are head.
5. In the present case, the factual matrix discloses that the incident is said to have taken place on 14/8/14. The impugned complaint, Annexure-P/1, filed by the respondent describes the said company in para 1 followed by para 2 containing the factum that the company was issued environmental clearance under sections 25 and 26 of the said Act vide letter dated 22/8/2013 subject to fulfillment of two conditions mentioned therein. Thereafter para 3 describes facts which gave rise to the cause of action to the effect that on 14/8/2014 the employees of Water Pollution Control Board on inspection found industrial untreated effluent flowing from the drains and also detected food oil and polluted water including chemicals in the tank, which impelled the inspecting team to take samples and send them to laboratory for examination. Paras 4 and 5 relate to chemical examination by the laboratory which found the effluents to be polluted. Finally, para 7 of the complaint alleges that in view of above cause of action, offence under sections 43, 44 and 49 of the Act has been committed by the accused-petitioner which is endorsed by the prayer to the JMFC to punish the accused.
5.1 Noticeably, there is not even a whisper in the complaint that the alleged offence has been committed with the consent or connivance and/or due to neglect of the Director, Manager and 4 Mcrc.No.13107/15 Secretary or any other persons of the company.
5.2 At this stage, it would be appropriate to reproduce the provisions of section 47 of the Act as under:-
"47. OFFENCES BY COMPANIES.
(1) Where an offence under this Act has been committed by a company, every person who at the time the offence was committed was in charge of, and was responsible to the company for the conduct of, the business of the company, as well as the company, shall be deemed to the guilty of the offence and shall be liable to be proceeded against and punished accordingly:
Provided that nothing contained in this sub-section shall render any such person liable to any punishment provided in this Act if he proves that the offence was committed without his knowledge for that he exercised all due diligence to prevent the commission of such offence.
(2) Notwithstanding anything contained in sub-section (1), where an offence under this Act has been committed by a company and it is proved that the offence has been committed with the consent or connivance of, or is attributable to any neglect on the part of, any director , manager, secretary or other officer of the company, such director, manager, secretary or other officer shall also be deemed to be guilty of that offence and shall be liable to be proceeded against and punished accordingly."
5.3 Bare reading of section 47(1) of the Act indicates that the person who is in charge of and responsible to the company for the conduct of the business of the company, as well as company, shall be deemed to be guilty of the offence and shall be liable to be proceeded against for the contravention of the provision of the 5 Mcrc.No.13107/15 said Act. The said section carves out an exception by way of proviso that the said person mentioned in Section 47(1) shall not be liable to be proceeded against if he is able to establish that the offence was committed without his knowledge or that the same was committed despite the said person exercising due diligence to prevent the offence.
5.4 Sub-section (2) of section 47 qualifies sub-section (1) by employing a non-obstinate clause providing that the penal provision nonetheless shall be attracted if consent, connivance or neglect is attributed to the Director, Manager, Secretary or any other officer of the company 5.5 In the instant case, the company by its resolution dated 23/5/14 (Annexure-P/7) has appointed Mr. Jai Kumar Nair as Factory Manager w.e.f. 1/4/14 and has expressly conferred upon said Shri Jai Kumar Nair inter alia the powers to comply with provisions of different enactments including the provisions of the Act. The relevant portion of the said resolution dated 23/5/14, Annexure-P/7 is reproduced below:-
"AN EXTRACT OF THE MINUTES OF THE MEETING OF THE BOARD OF DIRECTORS OF MONDELEZ INDIA FOODS LIMITED (FORMERLY CADBURY INDIA LIMITED) HELD ON FRIDAY, 23RD MAY, 2014 AT BOARD ROOM, CADBURY HOUSE, BHULABHAI DESAI ROAD, MUMBAI 400 026.
Appointment of Factory Manager for Malanpur Factory:
"RESOLVED THAT in supersession to all earlier resolutio, Mr. Jai Kumar Nair is hereby appointed as Factory Manager for the Malanpur Factory effective 1 st April 2014.
RESOLVED FURTHER THAT without prejudice to the generality of the Powers of Attorney granted or to be 6 Mcrc.No.13107/15 granted to the Factory Manager in respect of the Malanpur Factory ("Factory"), the Factory Manager is hereby expressly conferred with the following powers in respect of the Factory:
(i) The power to comply with various provisions of the Factories Act, the
Environmental (Protection) Act, the Water (Prevention and Control of Pollution) Act, the Water (Prevention and Control of Pollution) Cess Act, the Air (Prevention and Control and Pollution) Act, the industrial Disputes Act and other State and Central Legislations, and the Rules framed thereunder, with regard to labour and factory administration and the products manufactured at the Factory;
(ii) to (xxxiv) ..... ........ ......
RESOLVED FURTHER THAT Mr. Jai Kumar Nair being the person who has the ultimate control over the affairs of the Factory shall continue to be in ultimate control over the affairs of the said Factory and as such shall continue to perform and discharge all duties, obligations and responsibilities under the Factories Act, 1948 and the Rules framed thereunder as amended to date and from time to time, in respect of the Factories under his charge and he is hereby authorized and vested with full powers to do all such acts, deeds, matters and things as may be necessary or expedient for the aforesaid purposes. "
5.6 From the above, it is crystal clear that Mr. Jai Kumar Nair w.e.f. 1/4/14 was in charge and in control of the day-to-day affairs of the factory belonging to the company.
5.7 The power vested upon Mr. Jai Kumar Nair was that of an "occupier" as defined in section 2(d) of the said Act. Section 2(d) being relevant is reproduced below:-
"2[(d) "occupier", in relation to any factory or premises, means the person who has control over the 7 Mcrc.No.13107/15 affairs of the factory or the premises, and includes, in relation to any substance, the person in possession of the substance."
5.8 The liability upon any person apart from the persons mentioned in section 47(1) of the Act can be fastened only when the complaint contains express allegation of presence of ingredients of element of consent, connivance or neglect on the part of Director, Manager, Secretary or other officer of the company. In the instant case, the impugned complaint in question is bereft of any such allegations against the petitioner who is Managing Director of the company. Moreover, the complaint further does not allege that the petitioner being Managing Director was in charge of day-to-day affairs of the factory/company in question.
5.9 Thus, arraying of the petitioner as an accused in the complaint is uncalled for and unlawful. This court in this respect draws support from the law laid down by the Apex Court in the case of Pepsi Food India Ltd. (supra) which in para 50 observed thus:
"50. As mentioned hereinbefore, the High Court erred in giving its own interpretation to the decision of this Court in S.M.S. Pharmaceuticals Ltd.'s case (supra), which was reiterated subsequently in several judgments, some of which have been indicated hereinabove, and relying instead on the decision of Rangachari's case (supra), the facts of which were entirely different from the facts of this case. It is now well established that in a complaint against a Company and its Directors, the Complainant has to indicate in the complaint itself as to whether the Directors concerned were either in charge of or responsible to the Company for its day-to-day management, or whether they were responsible to the Company for the conduct of its business. A mere bald statement that a person was a Director of the 8 Mcrc.No.13107/15 Company against which certain allegations had been made is not sufficient to make such Director liable in the absence of any specific allegations regarding his role in the management of the Company."
5.10 Further assistance can be drawn from the observations made by the Apex Court in para 6 in the case of Girdhari Lal Gupta (supra). Para 6 reads thus:-
"6. What then does the expression "a person in- charge and responsible for the conduct of the affairs of a company mean" ? It will be noticed that the word 'company' includes a firm or other association and the same test must apply to a director in-charge and a partner of a firm in-charge of a business. It seems to us that in the context a person 'in-charge' must mean that the person should be in over all control of the day to day business of the company or firm. This inference follows from the wording of Section 23C(2). It mentions director, who may be a party to the policy being followed by a company and yet not be in-charge of the business of the company. Further it mentions manager, who usually is in charge of the business but not in over-all-charge. Similarly the other officers may be in charge of only some part of business."
5.11 Further inspiration may also be drawn from observations made in paras 18, 19 and 20 by the Apex court in the case of Puja Ravinder Devidasani (supra), which read thus:
"18. In Girdhari Lal Gupta Vs. D.H. Mehta & Anr. (1971) 3 SCC 189, this Court observed that a person 'in charge of a business' means that the person should be in overall control of the day to day business of the Company.
19. A Director of a Company is liable to be convicted for an offence committed by the Company if he/she was in charge of and was responsible to the Company for the conduct of its business or if it is proved that the offence was committed with the consent or connivance of, or was attributable to any negligence on the part of the Director concerned 9 Mcrc.No.13107/15 [See: State of Karnataka Vs. Pratap Chand & Ors. (1981) 2 SCC 335].
20. In other words, the law laid down by this Court is that for making a Director of a Company liable for the offences committed by the Company under Section 141 of the N.I. Act, there must be specific averments against the Director showing as to how and in what manner the Director was responsible for the conduct of the business of the Company."
6. From the above, it is evident that the petitioner who is Managing Director of the Factory as per allegation made in the complaint neither falls within the term "every person" mentioned in section 47(1) nor can be made an accused under Section 47(2) in the absence of any allegation of consent,connivance or neglect.
7. Before parting, it would not be out of place to mention that the prosecution is not remedy-less. It is always open to the prosecution to initiate proceedings under the Act against Mr. Jai Kumar Nair who being occupier has control over the affairs of the factory as per resolution, Annexure-P/7.
8. Consequently, the present petition is allowed. The impugned order dated 3/7/2015 passed in Cri. Case No. 434/15 by JMFC Gohad, district Bhind (M.P.) taking cognizance of the offence against the petitioner is quashed.
9. Copy of this order be sent to the concerning Court for information and compliance.
10. No cost.
(Sheel Nagu) Judge (Bu)


The orientation of planes or linears is described by azimuth of dip and angle
of dip. You have to fill in the orientations of the two fabric
elements which shall be used in the calculation. Filling in the input
fields and
pressing the return key starts the calculation. Input data and
calculated fabric elements appear in the list field.
After pressing the "Terminate input" button, the input data and/or
the results can be saved or printed.
Maximum number of data indicates the
number of data sets which can be calculated. This number can be changed
at the starting form of each program.


We're sorry but instabug doesn't work properly without JavaScript enabled. Please enable it to continue.