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.
THE NATIONAL GREEN TRIBUNAL (PRINCIPAL BENCH), NEW DELHI APPEAL No. 43/2012 15th March, 2013 CORAM: 1. Hon'ble Shri Justice V.R. Kingaonkar (Judicial Member) 2. Hon'ble Shri Justice U.D. Salvi (Judicial Member) 3. Hon'ble Dr. P.C. Mishra (Expert Member) 4. Hon'ble Shri Ranjan Chatterjee (Expert Member) 5. Hon'ble Shri Bikram Singh Sajwan (Expert Member) B E T W E E N: DVC Emta Coal Mines Limited, through its Authorized representative, having its place of business at 5B, Nandalal Basu Sarani, Kolkata-700 071 ....Appellant AND 1. Pollution Control Appellate Authority (W.B.) At " Paribesh Bhawan", 4th Floor, 10A, LA Block, Sector-III, Salt Lake City, Kolkata- 700 098 Page 1 of 13 2. West Bengal Pollution Control Board, "Paribesh Bhavan", 4th Floor, 10A, LA Block, Sector-III, Salt Lake City, Kolkata-700 098 3. Sri Sanjay Singh, Executive Engineer, Mayurakshi South Canal Division, Birbhum, West Bengal-731101 (Advocates appeared : Mr. Kallol Basu, Advocate along with Mr. Mangaljit Mukherjee, Advocate for Appellant. Mr. Nayan Chand Bihani, Advocate along with Mr. Amit Agarwal, Advocate and Ms. Asha Nayar Basu, Advocate for Respondent No. 2) J U D G M E N T
By means of this Appeal under Section 16(1) (h) of the National Green Tribunal Act, 2010 the Appellant has challenged order dated 24th July, 2012 rendered by Pollution Control Appellate Authority (PCAA) of West Bengal (W.B.), upholding order dated 27th March, 2012 passed by Sr. Environmental Engineer & In-charge (Operation & Execution Cell) of West Bengal Pollution Control Board (in short, WBPCB). The WBPCB by order dated 27.03.2012 gave certain directions to the Appellant (M/s DVC Emta Coal Mines Ltd.). The Appellant is aggrieved by the direction to deposit of Rs. 10 lakh towards pollution cost for non-compliance of the environmental norms on account of dumping overburden generated from mining activity, in the nearby area, i.e. to construct a temporary barrier in the Hingla River, a tributary of river Ajoy. Challenge to other directions is waived by the Appellant during course of the hearing.
2. The Appellant was issued Consent to Establish (NOC),vide order dated 09.09.2011 for an open-cast coal mine at Khagra-Joydev Block in District Page 2 of 13 Birbhum by WBPCB on certain conditions. The project has not yet been granted the "Consent to Operate" . Therefore, the mining operation has not yet been started. Ajoy River passes from nearby place of the open-cast coal mine site . There is a Tributary of said river known as "Hingla" River. Before onset of dry season of the year 2012 some of the villagers of Joplai and Palashdanga under Loba Gram Panchayat submitted a mass petition to the Village Pradhan, informing that the residents of village had urged the Appellant to construct a temporary dam of 2 feet height in "Hingla" River in order to make available the river water for agriculture and other purpose during the dry season.
3. In the course of State Legislative Assembly Session, Hon'ble MLA of the Constituency raised a question pertaining to blockage of the natural flow of river Ajoy by dumping of overburden by the private sector collieries on the river bed. The WBPCB conducted enquiry in this context. The WB PCB found that the natural flow of river Ajoy was obstructed and diverted due to dumping of over-burden over a part of "Hingla" River i.e. the tributary thereof. The local irrigation department intervened in the matter and got partially removed the barriers. The Sr. Environmental Engineer & In-charge (Operation & Execution Cell) of the WB PCB thereafter gave direction to the Appellant vide communication dated 27.03.2012, holding the Appellant responsible for pollution due to dumping of over-burden and obstructing the natural flow of water in the river and hence directed him to deposit cost of Rs. 10 lakh as pollution cost on account of non-compliance of the environmental norms. Feeling aggrieved thereby, the Appellant preferred appeal no. A- 05/2012 before the Pollution Control Appellate Authority (for short, P.C.A.A.) Page 3 of 13 (W.B.) challenging the impugned order dated 27.3.2012 issued by WB PCB. The appeal was dismissed by the P.C.A.A. (WB) vide the impugned order. Hence the present appeal.
4. The Learned Counsel for the Appellant submits that the mining operation has not yet been started and therefore there could not be any violation of the conditions enumerated in the letter dated 09.09.2011 of consent to establish. He further submits that the inspection report was not made available to him by the WB PCB. Thus the Appellant was deprived of opportunity to show as to how the inspection report was incorrect and improper. The communication dated 27.03.2012 issued by the WB PCB and the impugned order of the Appellate Authority are in clear violation of principles of natural justice. He submits that both the authorities failed to establish that overburden of the mining material was generated by the Appellant. He submits that the local villagers used to erect small "bunds" to hold water in a small patch of 'Hingla' River for their use in dry season so as to meet their domestic requirements. They, as usual, had raised such "bunds" and obstructed the natural flow of the river during the lean water-flow period. He submits that the authorities of the WBPCB had failed to restrain the local inhabitants from making the 'bunds' and in order to cover up such inaction the liability has been fastened on the Appellant. He submits that the Appellant is not proved to be polluter and as such, is not liable to pay the pollution cost. Consequently, he urged to allow the Appeal.
5. The Appellant raised several grounds in the Appeal Memo regarding the nature of directions dated 27.03.2012 issued by the WB Pollution Control Board through the Sr. Environmental Engineer & In-charge (Operation & Page 4 of 13 Execution Cell). During the course of the arguments, Mr. Kallol Basu, Advocate appearing for the Appellant made a statement that he has no objection to other directions shown at serial nos. 1 to 4 in the said communication. He restricted his argument only to the extent of the direction no. 5 whereby the Appellant has been directed to pay Rs. 10 lakh as pollution cost. He submits that the Appellant shall comply with the other four (4) directions shown at serial nos.1 to 4 of the communication dated 27.03.2012 issued by the Sr. Environmental Engineer & In-charge (Operation & Execution Cell) of West Bengal Pollution Control Board.
6. The Learned Counsel for the Respondent supported the communication dated 27.03.2012 issued by the WB PCB as well as the impugned order. He submits that the representatives of the Appellant were called upon to participate in the enquiry and an enquiry was held in the presence of the representatives of the Appellant and minutes of the hearing dated 17.02.2012, were drawn in accordance with the discussions. The fact that the natural flow of the river was obstructed by raising temporary barrier on account of overburden extracted from the site of the proposed open-cast coal mine was not disputed during the course of the meeting. The representatives of the Appellant had not denied that the dumping was done by using the waste material generated due to land development activity at the site of the proposed mine of the Appellant. The representatives of the Appellant were heard during the course of the discussions in the meeting dated 17.02.2012 and as such the WB PCB did not violate principles of natural justice. He submits that the Appellant's purported story of dumping the overburden generated from the mining site by some villagers was found to Page 5 of 13 be untenable because the Appellant never gave any such report nor filed FIR for so called removal of the waste material from the site of the mine. He submits that the Appellant failed to adduce any evidence in support of such removal of the material from the site of the proposed mine by use of force and gave no details to identity so called persons who have done such act. He further submits that the Appellant failed to raise any ground before the first Appellate Authority in the context of quantum of the pollution cost which is directed to be paid under the directions issued by the concerned authority of the WB PCB. He submits that the Memorandum of Appeal filed before the Pollution Control Appellate Authority (P.C.A.A.) (W.B.) does not contain any specific ground as regards the quantification of the pollution cost. He submits that the Appellate Authority has not committed any irregularity or illegality in passing of the impugned order. He urged, therefore, to dismiss the Appeal.
7. Before we proceed to consider merits of the matter, let it be noted that we entertained doubt whether the Appeal can be straightway admitted or it being in the nature of second Appeal, it may not be admitted at all unless it is demonstrated that it involves "substantial question of law" and satisfies the parameters of Section 100 of C.P. Code. No such objection is, however, raised by the Respondents. The Counsel for the Appellant pointed out that the directions issued vide communication dated 27.03.2012 cannot be equated with "Decree" of the Civil Court. The term "Decree" is defined under Section 2 (2) of the C.P. Code. Section 2 (2) reads as follows:
" 2. Definitions. - In this Act, unless there is anything repugnant in the subject or context, -
Page 6 of 13 (1). Xxxxxxxxxxx (2). "Decree" means the formal expression of an adjudication which, so far as regards the Court expressing it, conclusively determines the rights of the parties with regard to all or any of the matters in controversy in the suit and may be either preliminary or final. It shall be deemed to include the rejection of a plaint and the determination of any question within section 144, but shall not include -
(a) any adjudication from which an appeal lies as an appeal from an order, or
(b) any order of dismissal for default."
8. The plain reading of the above provision would make it amply clear that the decree is an outcome of formal expression of adjudication of lis between the parties. The directions issued by the WB Pollution Control Board cannot be treated as 'Decree'. For, the WB Pollution Control Board gave the directions on the basis of inspection report and on the basis of finding that the Appellant did not abide itself by certain conditions laid down in the NOC issued vide Memo No. 539-2N-246/2006(E) dated 09.09.2011.There was no trial as such. The delegated authority of WB Pollution Control Board did not raise specific issues and gave specific findings on such issues, by recording of evidence, or holding trial. In other words, the delegated authority of the WB Pollution Control Board did not have "trappings of a court".
9. Apart from the nature of order passed by the delegated authority of the WB Pollution Control Board, it is pertinent to note that the National Green Tribunal Act, 2010 specifically provides for an Appeal under Section 16(a) against an order or decision of the Appellate Authority under Section 28, so also, Section 33 A of the Water (Prevention and Control of Pollution) Act, 1974 (for short, Water Pollution Act) to the National Green Tribunal. Thus, the National Green Tribunal has appellate powers against such orders passed by Page 7 of 13 the State Pollution Control Board or Appellate Authority. It may be mentioned here that Section 28 (1) provides for an Appeal against order made by the State Pollution Control Board under Section 25, Section 26 and Section 27 of the Water (Prevention and Control of Pollution) Act, 1974. However, it appears that directions were given by the (WB) Pollution Control Board in the exercise of powers under Section 33 (A) of the Water Pollution Act. It would be useful to refer Section 33 (B) of the Water Pollution Act. It reads as under:
"33B. Appeal to National Green Tribunal. - Any person aggrieved by, -
(a) an order or decision of the appellate authority under section 28, made on or after the commencement of the National Green Tribunal Act, 2010; or
(b) an order passed by the State Government under section 29, on or after the commencement of the National Green Tribunal Act, 2010; or
(c) directions issued under section 33A by a Board, on or after the commencement of the National Green Tribunal Act, 2010, may file an appeal to the National Green Tribunal established under section 3 of the National Green Tribunal Act, 2010, in accordance with the provisions of that act."
10. It is necessary to examine whether the delegated authority of the WB Pollution Control Board had the power to direct payment of Rs. 10 lakh as pollution costs. What appears from the record is that the villagers urged the Appellant to construct a temporary dam in the midst of the river "Hingla" so that in the dry season water can be made available for agriculture and other purposes. It appears that the Appellant raised barrier of 2 feet height in the river as per the request of the villagers of Joplai and Palashdanga under Loba Gram Panchayat. There is no serious dispute about the fact that inspection was carried out by the competent authority. The relevant inspection report is Page 8 of 13 placed on record. It was found that the natural flow of the river "Hingla" diminished due to construction of a temporary dam by dumping over-burden on the main course of the flow. An enquiry conducted by the local authority showed that the over-burden was obtained from the mining activities of the Appellant. The Appellant did not file any report with the Police regarding illegal removal of the soil/over-burden from the site of open-cast coal mine. The Appellant did not give any information to the police as to who had taken away the soil for construction of the temporary dam. The representatives of the Appellant were present when minutes of the hearing, held on 17.02.2012, were drawn. Perusal of the said minutes reveal that the representatives of the Appellant failed to give any tangible evidence in support of their claim that the soil extracted from the open-cast coal mine site was forcibly taken away by the local villagers. As stated before, representation made by the local villagers to the Gram Pradhan of Loba Gram Panchayat also reveals that the barrier was constructed by the Appellant. The minutes of the meeting dated 17.02.2012 further show that it was decided to impose penalty on the Appellant for recovery of pollution cost for its "indifferent attitude" in the matter. It was decided that the amount of pollution costs may be determined by the competent authority. It is in accordance with such decision taken in the meeting dated 17.02.2012 that the Sr. Environmental Engineer & In-charge (Operation & Execution Cell) who appears to be a delegated authority of WB Pollution Control Board, issued the directions dated 27.03.2012.
11. Now, the most important legal issue involved in the appeal is : Page 9 of 13
(i) Whether the WB Pollution Control Board is competent to give direction for recovery of such pollution cost in exercise of the powers available in Section 33 and Section 33(A) of the Water Pollution Act ?
12. It may be pointed out here that no such question was raised by the advocate for the Appellant. We were rather surprised to take note of the fact that the Advocate for the Appellant failed to argue that the WB Pollution Control Board had no competency to give direction for recovery of the pollution cost (Rs. 10 lakh) . We are also dismayed to note that the counsel for the respondent did not pinpoint as to how the WB Pollution Control Board was or is competent to direct the Appellant to deposit pollution cost of Rs. 10 lakh.
13. Perusal of Section 33 and Section 33(A) of the Water Pollution Act clearly shows that the Board is required to file an application to the concerned Magistrate for injunction or for removal of any matter from stream or well and in case it is not removed by the person concerned, then to take action under sub-section 4 of Section 33. We did not find any kind of power available to the Pollution Control Board to give direction for recovery of the pollution cost.
14. In Splendor Landbase Ltd. vs. Delhi Pollution Control committee, reported in 173(2010) Delhi Law Times-52 , Hon'ble Delhi High Court had an occasion to interpret Section 33(A) of the Water Pollution Act. Relying upon judgment of the Apex Court in the case of M/s. Khemka & Co. (Agencies) private limited vs. State of Maharashtra (1975) 2 SCC 22, the Hon'ble Delhi High Court observed :
"In the considered view of this Court, the power to levy a penalty on any party is in the nature of a penal power. It is settled law that Page 10 of 13 unless there is a specific power in the Statute enabling the authority to do so, it cannot levy penalties or damages with reference to the general power under Section 31A of the Air Act or Section 33A of Water Act."
xxxxxxxxxxxxxxxx "This court has, therefore, no hesitation, in coming to the conclusion that orders issued by the CMC or even the DPCC in the instant case levying penalty and requiring furnishing of bank guarantees and making the grant of consent to establish under the Water Act and consent to operate under the Air Act conditional upon payment of such penalties and furnishing of such bank guarantees, are entirely without the authority of law and require to be set aside."
15. Let it be noted that Section 25 of the Water Pollution Act empowers the Board to impose conditions on the industrial units which may apply for consent to operate. There are penal provisions which make a person liable for punishment when it is found that conditions set-out under Section 25 or Section 26 of the Water Pollution Act are not complied with. The powers available under Section 33(A) of the Water Pollution Act are circumscribed by the other provisions of Water Pollution Act. Moreover, the competent authority is required to follow the procedure enumerated in the Water (Prevention and Control of Pollution) Rules, 1975. Rule 34 envisages the manner in which such directions are required to be issued by the competent authority. Significantly, Rule 34(3) categorically provides that a copy of the proposed direction shall be given to the person against whom the same are required to be issued. It will be beneficial to reproduce Section 34(3) for ready reference.
It reads as follows:-
Page 11 of 13
"34. Directions. - (1) xxxxxx (2). Xxxxxx (3) The person, officer or authority to whom any direction is sought to be issued shall be served with a copy of the proposed direction and shall be given an opportunity of not less than fifteen days from the date of service of a notice to file with an officer designated in this behalf the objections, if any, to the issue of the proposed direction."
16. There is nothing on record to show that proposed directions were communicated to the Appellant as required in the manner stated above. Needless to say there is non-compliance of Rule 34(3) of the Water (Prevention and Control of Pollution) Rules, 1975. For this reason, the impugned direction issued by the WB Pollution Control Board is bad in law since it has been issued without having any legal authority. We are of the opinion that the Pollution Control Appellate Authority (P.C.A.A.) (WB) failed to take into account this important legal flaw while passing the impugned order dated 24.07.2012. The Appellate Authority committed error while holding the Appellant vicariously liable and to uphold the direction to pay pollution cost. We are of the opinion that the WB Pollution Control Board may not issue consent to operate the unit unless the other conditions enumerated at serial nos. 1 to 4 in the directions issued by the WB Pollution Control Board are complied with by the Appellant. The grant of consent to operate or to refuse the same if certain conditions are not complied with by the Appellant, is within the discretion of the Board (WB PCB).
Page 12 of 13
17. Similarly, this Tribunal in Appeal No. 10/2011 Hindustan Cocacola Beverages Pvt. Ltd. vs. WB Pollution Control Board examined identical question of law and held that the Board has no power to direct recovery of pollution cost. Considering the reasons discussed above, we have no hesitation in holding that the WB Pollution Control Board committed patent error while directing the Appellant to pay pollution cost of Rs. 10 lakh and the Appellate Authority also erred in confirming such order. Hence the Appeal will have to be allowed.
18. In the result, the Appeal is allowed and the impugned direction to deposit pollution cost of Rs. 10 lakh by the Appellant is set-aside. We make it clear that if the other conditions shown at serial nos.1 to 4 of the impugned order dated 27.3.2012 of WB PCB are not complied with by the Appellant, the Pollution Control Board is at liberty to take further action in accordance with law, including refusal to grant consent to operate.
The Appeal is accordingly partly allowed and disposed of with no order as to costs.
.........................................., JM (V. R. Kingaonkar) .........................................., JM (U. D. Salvi) ........................................, EM (Dr. P.C. Mishra) ........................................., EM (RanjanChatterjee) ..........................................., EM (B.S. Sajwan) Page 13 of 13


coverage.py tool use for measuring the code coverage Python program. It check your program which part of the code have been executed.
The idea bhiend using the coverage tool is that it is easy way to become acquainted with python code, to increase the test coverage for python stdlib. we like to have 100% of coverage, but any increase is good one but getting 100% coverage it not always possible there could be platform-specific code that will not execute for you, error in the output.
Installation of coverage.py
$ pip dnf install coverage
$ coverage --version
Coverage.py, version 4.0.3
$ python -m coverage --version
Coverage.py, version 4.0.3.


Index
A B C D E F G H I K L M N O P Q R S T U V W
All Classes|All Packages
All Classes|All Packages
All Classes|All Packages
S
- search(E) - Method in class SkipList
-
searches for an element in the list and returns references of predecing nodes
- searchBook() - Method in class User
-
This methods search given book name in the system
- searchBook() - Method in interface UserInterface
-
This methods search given book name in the system
- searchBook(String) - Static method in class LibrarySystem
-
It search book in library with name of book and show book's details.
- SearchTree<E> - Interface in <Unnamed>
- setAuthor(String) - Method in class Book
-
Setter sets author of the Book
- setBookCounter(Integer) - Method in class Student
-
Sets book counter
- setCategory(String) - Method in class Book
-
Setter sets category of the Book
- setID(String) - Method in class Inventory
-
Setter sets ID of the Book, table
- setID(String) - Method in class User
-
Sets ID
- setInLine(boolean) - Method in class Student
-
Sets student's status(line or not)
- setMyTable(String) - Method in class Student
-
Sets student's table ID
- setName(String) - Method in class Book
-
Setter sets name of the Book
- setName(String) - Method in class User
-
Sets name
- setOnBreak(boolean) - Method in class Student
-
Sets flag of break
- setPassword(String) - Method in class User
-
Sets password
- setStatus(String) - Method in class Inventory
-
Setter sets status of the Book, table
- setSurname(String) - Method in class User
-
Sets surname
- setTableCounter(Integer) - Method in class Student
-
Sets table counter
- setTime(Integer) - Method in class Inventory
-
Setter sets time of the Book, table
- setTimeExtendCounter(int) - Method in class Book
-
Setter sets value for timeExtendCounter
- showBook() - Static method in class LibrarySystem
-
This method travel tree and add them to a list after for Id it categorize books for categories and for authors and we implemented MultiMap class for it it hold books in same Key in MultiMap and it show the book's details if this category or author doesn't exist it doesn't print and print error to screen
- showBook() - Method in class User
-
This methods shows all book in the system
- showBook() - Method in interface UserInterface
-
This methods shows all book in the system
- showBookInfo() - Method in class Student
-
This method shows all book student have
- showBookInfo(ArrayList<String>) - Static method in class LibrarySystem
-
Method to show student's book(s) informations It prints books according to their time values (lower to higher)
- showTable() - Static method in class LibrarySystem
-
Shows all tables with its information
- showTable() - Method in class User
-
This methods shows all table in the system
- showTable() - Method in interface UserInterface
-
This methods shows all table in the system
- signUp() - Method in class LibrarySystem
-
3 options are registered to the system with the sign up menu, one of them is student.
- size - Variable in class SkipList
-
Size of skip list
- size() - Method in class MultiMap
-
Returns the number of key-value mappings in this multimap.
- SkipList<E extends java.lang.Comparable> - Class in <Unnamed>
-
The type Skip list.
- SkipList() - Constructor for class SkipList
-
Default constructor of a SkipList class Initializes data for all fields in the appropriate class.
- SkipList.SLNode<E> - Class in <Unnamed>
-
SLNode class for a node in SkipList
- SkipListInterface<E extends java.lang.Comparable> - Interface in <Unnamed>
-
The interface Skip list ınterface.
- SLNode(E, int) - Constructor for class SkipList.SLNode
-
Instantiates a new Sl node.
- sortFL(T[], int, int) - Static method in class QuickSort
-
Sort table[first], table[middle], and table[last].
- source - Variable in class Edge
-
Source vertex for an edge
- status - Variable in class Inventory
-
Holds status of a book, table
- student - Variable in class BookReminder
-
student object
- student - Variable in class TableReminder
-
student object
- Student - Class in <Unnamed>
- Student(String, String, String, String) - Constructor for class Student
-
Constructor Initializes student name, surname, ID and password
- studentBookOption(Student) - Method in class LibrarySystem
-
There are 6 options for the Student Book menu.
- studentMenu(String, Student) - Method in class LibrarySystem
-
If the incoming student object is not null, the transaction is performed.
- students - Static variable in class LibrarySystem
-
students also registers those who are registered as students.
- studentTableOption(Student) - Method in class LibrarySystem
-
There are 7 options for the student table menu.
- surname - Variable in class User
-
Holds user's surname
- swap(T[], int, int) - Static method in class QuickSort
-
Swap the items in table[i] and table[j].
All Classes|All Packages


Dynamic PDF Export example
This is a simple example of creating a PDF from content that is not actually shown on screen
Print PDF


This project contains various generic functions, structs, classes and definitions that extend the functionality of Phobos. Thery are used in several Jaypha projects and are kept separate to avoid repetition. They are also useful on their own.
| jaypha.types | Commonly used type aliases |
| jaypha.traits | Some extra constraints. |
| jaypha.algorithm | Some algorithm routines and templates |
| jaypha.conv | Some conversion routines |
| jaypha.json | Functions to complement std.json |
| jaypha.range | Extra range utilities |
| jaypha.rnd | Wrapper for std.random.rndGen and some useful routines |
| jaypha.string | String utilities |
| jaypha.container.hash | Hash table container |
| jaypha.container.queue | Queue |
| jaypha.container.set | Set and indexable set |
| jaypha.container.stack | Stack |
| jaypha.io.binarywriter | Binary writer for files |
| jaypha.io.print | write like output for ranges |
| jaypha.io.serialize | Serialization |


--- layout: post title: ! 'Google instant search: A better spell checker and calculator' date: 2010-09-16 15:06:30.000000000 +03:00 categories: - fun tags: - calculate - fun - google - search - tech status: publish type: post published: true meta: _edit_last: '10173910' _wp_old_slug: '' _wpas_done_twitter: '1' author: login: saherneklawy email<EMAIL_ADDRESS>display_name: saherneklawy first_name: '' last_name: '' excerpt: !ruby/object:Hpricot::Doc options: {} ---
One of my main uses for Google search is not the searching, but has slowing move towards often queries just for the sake of spell checking. Recently Google released its instant search. With that, I can easily see my spelling mistakes as I type, no more need to press enter :).
What I found by accident and found it even more useful is using instant search as a calculator. Some of you might know the Google easter egg about the answer to life universe and everything. Google calculator has been part of Google's search features for some time now. With the instant search, the results of the calculator is also changed live. A cool and useful example (that was the way that made me discover this) is the binomial coefficient function. Give it a try and play around with it here.
Happy lazy calculating :)


Brett Zamir
on 2012-04-06 02:47:13
@Pavel: Ok, good point, but it still suffers from the ability to set globals. So while it may be a little safer, it still doesn't solve the root problem of complete encapsulation, though if the regex are working, eval() will be equally safe. I suggest this be refactored to use a real parser if we're going to do anything about it.
Pavel Kukov
on 2012-04-05 20:30:28
•eval() evaluates a string as a JavaScript expression within the current execution scope and can affect local variables.
•new Function() parses the JavaScript code stored in a string into a function object, which can then be called. It cannot affect local variables because the code runs in a separate scope.
Brett Zamir
on 2012-04-05 02:40:47
@Pavel:
1) Function() suffers from the same problem as eval(). So does the first argument to setTimeout or setInterval when set to a string.
2) The function comments mention that the regular expressions are already ensuring that the characters in the expression are safe for evaluation. We could use a genuine parser, as I believe exist at json.org , but I'm not sure that there is anything wrong as long as the regex we are using is fail-safe (except that a real parser should be able to give better reporting of errors).
Pavel Kukov
on 2012-04-04 16:16:04
On line: #68: eval is evil fix
j=new Function('return '+text); return j();
Brett Zamir
on 2011-06-05 18:16:58
@Miguel: Could you offer your code or a snippet thereof by any chance? I really understood our namespaced version was including this.window, and that in the non-namespaced version, window.window (this.window) was recursively self-referential.
Miguel Espinoza
on 2011-06-05 04:02:27
I ran into a situation today with Firefox 3.6.17 (didnt test with other browsers) and Firebug 1.7.1 where "this.window" was not recognized, it came from a pseudo pop up (div), I fixed this by editing line 20 from:
var json = this.window.JSON;
to:
var json = (typeof this.window != 'undefined' ? this.window.JSON : undefined);
Brett Zamir
on 2010-12-15 15:16:38
@Anes: First make sure you don't have line breaks when you make the string. When I tried pasting your string now, it was broken into separate lines which will not work in JS. If that is fixed, then you can just use it like this:
var obj = json_decode('{"user":"test"}');
alert(obj.user); // 'test'
Anes
on 2010-12-15 10:46:19
Hi pals ,
I am really stuck in parsing a JSON string and take it's values. I got the json string as
{"user":{"id":"1","firstname":"Freelogin","created":"0000-00-00
<EMAIL_ADDRESS>"usergroup_id":"1","status":"1","ip_enable":"N","priv":"0","expire":""},"data":{
"1":{"5":{"last_update":"2010-12-13
16:16:16","status":"0"},"3":{"last_update":"2010-12-13
16:41:48","status":"1"}},"2":{"6":{"last_update":"2010-12-13
16:41:48","status":"1"}}},"server_array":[{"id":"1","name":"anes.yyy.net"},{
"id":"2","name":"neseema.xxx.net"}],"service_array":[{"id":"5","name":"POP3"},
{"id":"6","name":"Cpanel"},{"id":"3","name":"SMTP"}],"sort_by":"servername",
"sort_order":"ASC","pagelinks":"","totrows":"2","offset":"0","limitvalue":"10",
"rows_monitor":2,"current":"monitor","uri":false}
Friends How to Parse this and take the Results for further
processing in javascript.... I am waiting to hear from you
Soon..
Regards
Anes P.A
Brett Zamir
on 2009-10-26 00:48:57
Have made a fix (NULL to null) and added support for json_last_error(); see commits at http://github.com/kvz/phpjs/commits/master/
Kevin van Zonneveld
on 2009-10-25 14:08:36
@ Michael White: Just now saw your comment on json_encode & implemented the fixes!
http://github.com/kvz/phpjs/commit/cae72555c08c11ec416f1c8ecfcd5e42509cb46d
Kevin van Zonneveld
on 2009-10-25 13:49:22
Yeah we need to look into this. Could be much better but I don't have enough time to work it myself right now. Maybe someone else reading this can have a go at it?
Would be much appreciated!
Michael White
on 2009-10-20 03:01:11
@kevin Hey - sorry. that's my fault. It should indeed return NULL if there's an error. My main point was that we should use the try/catch to prevent exceptions from causing the JS to just stop unexpectedly.
Brett Zamir
on 2009-10-18 07:18:08
@Michael: Thanks, but is that really how PHP handles it? the docs for json_decode say "NULL is returned if the json cannot be decoded or if the encoded data is deeper than the recursion limit." Would be nice if someone could check for all possible json.parse/json.stringify errors (and the rest of the function when these are not available) to check for the type of errors also recorded by json_last_error (and to add a property to the "this.php_js" global so that json_last_error() can retrieve this info). Ditto for json_encode().
Michael White
on 2009-10-18 02:34:40
The part that uses native browser JSON objects should be contained in a try/catch block and return the proper value in accordance with how PHP handles bad JSON data.
try {
return json.parse(str_json);
}
catch(err) {
return str_json;
}
Kevin van Zonneveld
on 2009-06-18 14:17:44
@ T.J. Leahy + Brett Zamir: Awesome!
Brett Zamir
on 2009-06-18 06:53:48
Fixed in SVN. Thanks for the report!
FYI, if you reference a variable like JSON and it doesn't exist, it will cause a failure in JS, so we have to either enclose such a reference in a try-catch block (ugly) or reference it as a property of the window object--since referencing an undefined property does not give an error in JS.
As far as why I used "this.window" ("window" would be fine for most environments), it is because this will both refer to:
1) the window object in the non-namespaced version (it resolves to "window.window" which, in JS, thankfully for our needs, happens to be a recursive reference to window), and
2) the window attached to the object itself in the namespaced version (our namespaced version allows for the window to be set to a value other than the global "window" object for environments like JavaScript modules in Firefox extensions where 'window' is not available as a global but is passed in during object construction, and should automatically set it to the window global otherwise).
T.J. Leahy
on 2009-06-17 06:04:03
This function should check to see if the browser has native JSON decoding first (IE8, FF 3.5) and use that when available. Would make it faster and safer then running the input against multiple regular expressions. See http://hacks.mozilla.org/2009/06/security-performance-native-json/
if (typeof JSON == "object" && typeof JSON.parse == "function") {
return JSON.parse(str_json);
}


Informed Pregnancy
by Adherence To Antenatal and Postnatal Services
It's a thrill to follow along as your baby or child grows and see what's new every week. ATAPS is a Pregnancy, Baby, and Child Development Calendar.
Use ATAPS to find out what is going on with your baby during your pregnancy and what changes to expect during pregnancy.


Interface: tos.chips.rf230.NeighborhoodFlag
interface NeighborhoodFlag
This interface provides one bit storage for each neighbor in a very
fast and conveint way (without using shifts for example).
Commands
command void clear(uint8_t index)
command void clearAll()
command bool get(uint8_t index)
command void set(uint8_t index)
Commands - Details
clear
command void clear(uint8_t index)
clearAll
command void clearAll()
get
command bool get(uint8_t index)
set
command void set(uint8_t index)


We love to code. We love building and creating fun games and programs in Javascript, CSS and HTML that can work on any mobile or desktop browser. Our mission is to have fun while teaching and learning coding.
Comical Coders is a coding club at Frank S. Greene Middle School, run by students for students. The club is lead by Crystal, David, Julian, and Vince. Each club member is given their own personal portfolio where he/she work on personal coding projects. Comical Coders is mentored by Tasha and sponsored by Wisen Space.
Mondays at lunch
Come check us out and have some fun coding!
Email<EMAIL_ADDRESS>for room information.


Stamped template goes here:
I say "
{{mustache}}
"
Probably can't see me.
Inverted via CSS class.
Inverted via CSS class.
I'm stylish
I'm stylish
I'm stylish, and red.
I'm also stylish, but not red.
Events!
More points:
{{more_li}}
{{point}}


| AllstarFull {Lahman} | R Documentation |
All Star appearances by players
data(AllstarFull)
A data frame with 5375 observations on the following 8 variables.
playerID
Player ID code
yearID
Year
gameNum
Game number (for years in which more than one game was played)
gameID
Game ID code
teamID
Team; a factor
lgID
League; a factor with levels AL
NL
GP
Game played (zero if player did not appear in game)
startingPos
If the player started, what position he played
Lahman, S. (2021) Lahman's Baseball Database, 1871-2020, 2020 version, http://www.seanlahman.com/baseball-archive/statistics/
data(AllstarFull) # find number of appearances by players in the All Star games player_appearances <- with(AllstarFull, rev(sort(table(playerID)))) # How many All-Star players, in total? length(player_appearances) # density plot of the whole distribution plot(density(player_appearances), main="Player appearances in All Star Games") rug(jitter(player_appearances)) # who has played in more than 10 ASGs? player_appearances[player_appearances > 10] hist(player_appearances[player_appearances > 10]) # Hank Aaron's All-Star record: subset(AllstarFull, playerID == "aaronha01") # Years that Stan Musial played in the ASG: with(AllstarFull, yearID[playerID == "musiast01"]) # Starting positions he played (NA means did not start) with(AllstarFull, startingPos[playerID == "musiast01"]) # All-Star rosters from the 1966 ASG subset(AllstarFull, gameID == "NLS196607120") # All-Stars from the Washington Nationals subset(AllstarFull, teamID == "WAS") # Teams with the fewest All-Stars rare <- names(which(table(AllstarFull$teamID) < 10)) # Records associated with the 'rare' teams: # (There are a few teamID typos: can you spot them?) subset(AllstarFull, teamID %in% rare)


--- layout: post title: The Little Kitty date: '2007-03-12T00:00:00-04:00' tags: - '2007' tumblr_url: http://poetry.liabogoev.com/post/49078159572/the-little-kitty ---
There’s a little kitty,
He lives in the barn,
He likes to play with me,
He prefers me over yarn.
Black in appearance,
With little white paws,
He would chase after birds,
Who made one too many caws.
Once in a while,
He’d get vivacious,
And scratch me on the arm,
It would really test my patience.
Then I’d chase him away,
And tell him goodbye,
And I couldn’t get him to leave,
No matter how I’d try.
He stayed with me the whole day,
Followed me around,
The little kitty,
A friend I had found.


Elyse Daly
About
Portfolio
Contact
Portfolio
Hangman
RPG Game
Trivia Game
Rutgers Info Widget
Rock Paper Scissors
Connect with Me


An easy to use module to send email messages via SMTP asynchronously.
This module can be used in two modes:
The email subject and body will always be encoded using UTF-8. If you use the module from JavaScript and include non-US characters, make sure to encode the source code file in UTF-8, too. Otherwise your email content might get mangled.
This module can be used in two modes:
- As a CommonJS module: Include this module as a resource in your
Vert.x project by specifying
var a_mailer = require('jslibs/a-mailer/lib/a-mailer');
in your JavaScript file. - As a runnable Vert.x module: Deploy as a Vert.x module and send your email messages through the event bus.
getMailer
method needs some configuration to work properly:
address
{string} Event bus address on which the module is listening for send requests. Only required when the module is used as a runnable Vert.x module.host
{string} SMTP server hostport
{integer} SMTP server portssl
{boolean} If set totrue
uses an encrypted connection to the server right from the start. Often combined withport
set to 465, e.g. in the case of Gmail. Default isfalse
.auth
{boolean} Set totrue
if the server requires authentication. Default isfalse
.username
{string} Authentication user.password
{string} Authentication password.content_type
{string} Default MIME type/subtype for the main email body; can be set totext/html
. Every other or no value will be interpreted astext/plain
. Character set encoding specification as intext/plain; charset=Cp1252
is NOT allowed here, UTF-8 is always assumed for the main body.sendTimeout
Max. time in ms for asend
orsendSeq
operation to finish. Otherwise will result in an error.debug
{boolean} Enable debugging. Withdebug
set to true, the smtp client-server communication will be sent to the "debug channel", implemented as an event handler on the Mailer object in case of the CommonJS usage or as an event bus handler in case of the Vert.x module usage.debugAddress
{string} Event bus address to which debug messages will be published in casedebug
is true and the module is run as a Vert.x module. Debug messages are simple strings, not JSON structures.
The email subject and body will always be encoded using UTF-8. If you use the module from JavaScript and include non-US characters, make sure to encode the source code file in UTF-8, too. Otherwise your email content might get mangled.
- License:
- MIT Copyright (c) 2013 Matthias Ohlemeyer
- Source:
Classes
Methods
-
<static> getMailer(configData) → {Mailer}
-
Retrieve a new mailer object
Returns an individually configured (host and authentication data) mailer object, with method(s) to send email messages.
Currently the object has a singlesend
method (see the documentation for the innersend
method of this module; it is attached to the retrieved mailer object).Parameters:
Name Type Description configData
object Configuration data as mentioned in the module description, except for the address
anddebugAddress
properties.- Source:
Returns:
A new mailer object.- Type
- Mailer


Extension Settings are located in the Player on the YouTube website.
Marked with
If the alien doesn't load just refresh the card.


The Anderson Tapes (1971)
Grade: 71
"The Anderson Tapes" is part comedy, part crime drama, easily and effectively shifting gears. Sean Connery is John Anderson, a safecracker who has spent the past ten years in prison. Once freed, he returns to his former girlfriend Ingrid (Dyan Cannon), staying at her apartment. They are so glad to see each other that they make love at every opportunity.
He also returns to his old ways, planning a major heist of the apartment complex. He forms a team, mostly of old buddies from prison. Crooked antiques dealer Tommy Haskins (Martin Balsam) is needed to appraise and fence the goods. Balsam plays an outrageous homosexual. Normally, my reaction to such a stereotype is stereotypical in itself, but Balsam clearly relishes the role, and is so funny at it that all is forgiven. He has the best line of the film, directed at Connery: "Meet anybody interesting... in your cell?"
"The Anderson Tapes" is Christoper Walken's first feature film. He is Connery's protege, also a safecracker.
Connery also solicits mob money from Alan King. King also sends middle-aged goon Socks (Val Avery) with the stipulation that Socks must be killed in the robbery. Connery is shook up by this, and we learn that he abhors violence.
 Even at the bus stop out of prison. All the ex-cons he visits are also being bugged or videotaped, all by different government agencies with different motives. None of them seem to care that Connery is planning a robbery, however, since that is not their area. One agency only cares about narcotics, another only about political activists, etc.
The apartment building robbery goes well at first. Dressed as Mayflower movers, they move from room to room stealing goodies. Connery struggles to keep Socks from beating the tenants, but he needs him to force their cooperation. Connery is eventually tricked by a clever crippled teenager who reports the crime with a ham radio, leading to a swarm of police waiting outside the building. There is an inevitable confrontation, with some spectacular car crashes.
The soundtrack is by Quincy Jones. It is full of nifty jazz numbers, plus occasional bleeping and buzzing related to Connery's various encounters with cameras.
http://members.tripod.com/~Brian_Koller/movies.html
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


Home
Menu
Activities
Shop
About
Contact
Email Us
Hours
Weekdays
7:30 am - 2:00 pm
Weekends
7:30 am - 3:30 pm
Location
Phone Number
+1 (925) 555-CATS


CloudLink API
An API to make requests to CloudLink service.
Installation
npm install --save s9s-cloudlink-api
Examples
const CloudlinkApi = require('s9s-cloudlink-api');
const api = new CloudlinkApi({
cloud: 'aws',
server: {
host: '<IP_ADDRESS>',
port: 3000
},
auth: {
accessKeyId: '...',
secretAccessKey: '...',
region: 'eu-central-1'
}
});
api
.listInstances()
.then((instances) => {
console.log('resolve', instances);
})
.catch((error) => {
console.log('reject', error);
});
License
Copyright (c) 2016 Severalnines AB
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
 IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.


Nor Azriah Aziz is the Director of Apurba Technologies Sdn. Bhd., Apurba’s Malaysian subsidiary. She is a web programmer with a strong background on developing the technical and graphical aspects of website including application architecture, design input, website layout, user interface and database programming.
Before joining Apurba, she worked as an IT Specialist at IBM Malaysia SDN BHD, where she designed and developed web application for retail internet banking. Her expertise includes HTML/XHTML, CSS, PHP, ASP, JSP, XML, .NET, MySQL and has a strong skills in Photoshop, Illustrator, Dreamweaver, Flash, Fireworks and other equivalent applications.
Azriah has a Bachelor of Science in Computer Engineering from State University of New York at Buffalo, NY, USA.


Uses of Computer in Hospitals
Complete inventory
Doctors time table
Payroll
Operations routine
A complete record of every patient
Learn more about uses of computer in hospitals


001 /* 002 * (c) 2005, 2009, 2010 ThoughtWorks Ltd 003 * All rights reserved. 004 * 005 * The software in this package is published under the terms of the BSD 006 * style license a copy of which has been included with this distribution in 007 * the LICENSE.txt file. 008 * 009 * Created on 28-Jul-2005 010 */ 011 package com.thoughtworks.proxy.toys.multicast; 012 013 import java.lang.reflect.Method; 014 015 016 /** 017 * Interface that is implemented by all multicasting proxies. Cast the proxy to access the proxied elements again or to 018 * call a method on them independent of the type of the proxy. 019 * 020 * @author Jörg Schaible 021 * @since 0.2 022 */ 023 public interface Multicast { 024 025 /** 026 * Multicast a matching method call, that is not available with the types implemented by the proxy. 027 * <p> 028 * Use this possibility to operate on objects, that can typically not be proxied e.g. if the class type of the 029 * target object is final like it is for a lot of basic classes of <tt>java.lang</tt>. The result of the call 030 * follow the normal rules for multicast invocations. 031 * </p> 032 * <p> 033 * Note that the implementation of this function must search the best fitting method. It is much more efficient to 034 * call the overloaded version of this function with the appropriate method object. 035 * </p> 036 * 037 * @param type the type that has a method with the given name and matching arguments 038 * @param method the method name 039 * @param args the arguments of the invocation 040 * @return the result of the multicast 041 * @throws NoSuchMethodException if the type has no matching method 042 * @throws SecurityException if the security manager prevents the method access by reflection 043 * @since 0.2 044 */ 045 <T> T multicastTargets(Class<T> type, String method, Object[] args) throws NoSuchMethodException; 046 047 /** 048 * Multicast a direct method call, that is not available with the types implemented by the proxy. 049 * <p> 050 * Use this possibility to operate on objects, that can typically not be proxied e.g. if the class type of the 051 * target object is final like it is for a lot of basic classes of <tt>java.lang</tt>. The result of the call 052 * follow the normal rules for multicast invocations. 053 * </p> 054 * 055 * @param method the method to call 056 * @param args the arguments of the invocation 057 * @return the result of the multicast 058 * @since 0.2 059 */ 060 Object multicastTargets(Method method, Object[] args); 061 062 /** 063 * Access the targets of the proxy in a typed array. 064 * 065 * @param type the type of an array element 066 * @return the typed array of proxy targets 067 * @since 0.2 068 */ 069 <T> T[] getTargetsInArray(Class<T> type); 070 071 /** 072 * Access the targets of the proxy in an array. 073 * 074 * @return the array of proxy targets 075 * @since 0.2 076 */ 077 Object[] getTargetsInArray(); 078 }


Contracting parties: 86 total: Antigua & Barbuda, Argentina, Australia, Austria, Belgium, Belize, Benin, Brazil, Cambodia, Cameroon, Chile, China, Congo (Republic of), Costa Rica, Cote d’Ivoire, Croatia, Cyprus, Czech Republic, Denmark, Dominica, Ecuador, Eritrea, Estonia, Finland, France, Gabon, The Gambia, Germany, Ghana (Republic of), Greece, Grenada, Guatemala, Guinea (Republic of), Guinea-Bissau, Hungary, Iceland, India, Ireland, Israel, Italy, Japan, Kenya, Kiribati, Korea (Republic of), Laos, Lithuania, Luxemburg, Mali, Marshall Islands (Republic of), Mauritania, Mexico, Monaco, Mongolia, Morocco, Nauru, Netherlands, New Zealand, Nicaragua, Norway, Oman, Palau, Panama, Peru, Poland, Portugal, Romania, Russian Federation, San Marino, Senegal, Slovak Republic, Slovenia, Solomon Islands, South Africa, Spain, St. Kitts & Nevis, St. Lucia, St. Vincent & the Grenadines, Suriname, Sweden, Switzerland, Tanzania, Togo, Tuvalu, UK, USA, Uruguay.
Area: Global oceans.
Date entered into force: 1946
FAO association: No.
FAO statistical area: All areas.
Objectives: “…to provide for the proper conservation of whale stocks and thus make possible the orderly development of the whaling industry.”
Primary species: All cetaceans.
The x-axis on the figure below represents current biomass (B2008) over biomass at maximum sustainable yield (Bmsy). The y-axis represents current fishing mortality (F2008) over fishing mortality that produces maximum sustainable yield (Fmsy). The figure represents all nine great whale stocks with greatest abundance under IWC management, i.e., all nine stocks follow the same pattern. For data sources, see Cullis-Suzuki and Pauly (2009).
The figures below show time series of biomass of the nine great whale stocks under IWC management; the red dashed lines denote the date IWC was established (1946). For data sources, see Cullis-Suzuki and Pauly (2009).


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.
26 13.11.2014 AB Court 34 C.R.M. 14155 of 2014 Re : An application for anticipatory bail under Section 438 of the Code of Criminal Procedure filed on 25th September, 2014 in connection with Rejinagar Police Station Case No. 126 of 2014 Dated 29.04.2014 under Sections 379/411 of the Indian Penal Code and Section 21 of the Mines & Minerals Act and Section 4C/4D of the West Bengal Land Reforms Act and Section 37 of the Pollution Act.
In re : Hanif Mohammad & Anr.
... Petitioners.
Mr. Robiul Islam ... for the Petitioners.
Mr. S. S. Imam ... for the State.
Heard the learned Counsel for the Petitioners as well as the learned Counsel for the State and perused the Case Diary.
In view of the Judgment of the Hon'ble Supreme Court passed in the case of Arnesh Kumar Vs State of Bihar reported in 2014 (5) Supreme 324 = AIR 2014 SC 2756, we are of the view that the Petitioners, in the event of their arrest, should be enlarged on ALLOWED bail.
Accordingly, we direct that in the event of arrest, the Petitioners shall be released on bail upon furnishing a bail bond of Rs.10,000/- (Rupees Ten Thousand only) each with two sureties of the like amount, one of whom must be local, to the satisfaction of the arresting officer and also subject to the conditions laid down in sub-section (2) of Section 438 of the Code of Criminal Procedure, 1973 and on further condition that the Petitioners must record their presence before the concerned Investigating Officer of the case every fortnight till conclusion of the investigation.
The application for anticipatory bail stands allowed.
(TAPEN SEN, J.) (INDRAJIT CHATTERJEE, J.)


--- layout: page description: "" header-img: "img/home-bg.png" --- nota bene: an online lab notebook exploring reproducible research, literate programming, data analysis, and informatics.
Posted by {{ post.author }} on {{ post.date | date: "%B %-d, %Y" }}


IFRS 1 does not provide exemptions from the presentation and disclosure requirements in other IFRS.
In this Coach me section, you will learn about:
- how many years of comparative information have to be included
- the information an entity has to provide in order to explain how the transition from previous GAAP to IFRS affected its reported financial position, performance and cash flows (reconciliation of equity, reconciliation of profit or loss, additional disclosures regarding impairment of assets)
- how to reflect the correction of errors made under previous GAAP
- interim financial reports
Click Next to continue.


Class 1 Lab
Body Mass Index (BMI) Calculator
How to calculate Body Mass Index
Body Mass Index is a simple calculation using a person’s height and weight. The formula is BMI = kg/m2 where kg is a person’s weight in kilograms and m2 is their height in metres squared. A BMI of 25.0 or more is overweight, while the healthy range is 18.5 to 24.9. BMI applies to most adults 18-65 years.Who shouldn't use a BMI calculator
BMI is not used for muscle builders, long distance athletes, pregnant women, the elderly or young children. This is because BMI does not take into account whether the weight is carried as muscle or fat, just the number. Those with a higher muscle mass, such as athletes, may have a high BMI but not be at greater health risk. Those with a lower muscle mass, such as children who have not completed their growth or the elderly who may be losing some muscle mass may have a lower BMI. During pregnancy and lactation, a woman's body composition changes, so using BMI is not appropriate.To Calculate your Body Mass Index
What's your name?
How old are you?
Enter your Weight in kg:
Enter your Height in m:


Manages the systems of the game.
More...
#include <SystemManager.hpp>
|
| template<class C > |
| bool | HasSystem () |
| | Checks if the the System C exists. More...
|
| |
| template<class C > |
| C * | GetSystem () |
| | Gets the system of type C. More...
|
| |
| template<class C , typename ... args> |
| void | AddSystem (args &&... a) |
| | Adds a system of type C (initialized by args) to the manager. If a system of type C already exists, does nothing. More...
|
| |
| template<class C_Start , class C_End > |
| void | AddDependency () |
| | Adds a system dependency between C_Start and C_End. More...
|
| |
|
void | ProcessOrder () |
| | Runs a topological sorting algorithm (deep-first) to get the order of execution of the systems. Must be run at least once.
|
| |
|
std::list< ISystem * > | RunningList () const |
| | Gets the running order of execution of the systems.
|
| |
|
void | FirstRun () |
| | Executed at the first run, calls the FirstRun() method of each system.
|
| |
|
void | Run () |
| | Executes the Run() method of each system.
|
| |
|
void | LastRun () |
| | Executes the LastRun() method of each system.
|
| |
| virtual void | ReceiveEvent (Event::IEvent *event) override |
| | Receives an event from the EventManager. More...
|
| |
Manages the systems of the game.
◆ AddDependency()
template<class C_Start , class C_End >
| void ECS::SystemManager::AddDependency |
( |
| ) |
|
|
inline |
Adds a system dependency between C_Start and C_End.
- Template Parameters
-
| C_Start | : The dependency parent. |
| C_End | : The dependency child. |
◆ AddSystem()
template<class C , typename ... args>
| void ECS::SystemManager::AddSystem |
( |
args &&... |
a | ) |
|
|
inline |
Adds a system of type C (initialized by args) to the manager. If a system of type C already exists, does nothing.
- Template Parameters
-
| C | : The system type to be added. |
| args | : The arguments passed to the constructor of C. |
◆ GetSystem()
template<class C >
| C* ECS::SystemManager::GetSystem |
( |
| ) |
|
|
inline |
Gets the system of type C.
- Template Parameters
-
| C | : The system type to retreive. |
- Returns
- C* if the system exists, nullptr otherwise.
◆ HasSystem()
template<class C >
| bool ECS::SystemManager::HasSystem |
( |
| ) |
|
|
inline |
Checks if the the System C exists.
- Template Parameters
-
| C | : The type of system to check. |
- Returns
- true if the system C exists.
-
false otherwise.
◆ ReceiveEvent()
Receives an event from the EventManager.
- Parameters
-
| event | : The event received. |
Implements Event::IEventListener.
The documentation for this class was generated from the following files:
- src/EntityComponentSystem/SystemManager.hpp
- src/EntityComponentSystem/SystemManager.cpp


{% extends "base.html" %} {% block jumbotron %}
I'm sorry, but this page does not appear to exist. "Not all who wander are lost" in the words of J.R.R. Tolkien, but I'm afraid you are. Please try to enter a new bucketeer url.


This inspection checks that the project file contains a valid AzureFunctionsVersion value, as per
documentation
.


// wait at most 5 second for all processes to be
// finished by themselves.
if any(x.worker.is_alive() for x in self.procs + self.pool if x.worker):
time.sleep(0.01)
cnt += 1
else:
return
// if the workers cannot kill themselves, give a warning
def terminate(self) -> None:
for proc in self.procs + self.pool:
if proc is None:
continue
close_socket(proc.socket)
class Base_Executor:
"""This is the base class of all executor that provides common


This document illustrates the use cases a mechanism to control the power-saving state of a device would enable on the Web platform.
This is a work in progress. You can contribute to this specification by
contributing additional use cases through our GitHub
repository.
Introduction
The web platform currently lacks a means to prevent a device from
entering a power-saving state (i.e., some means that prevents an aspect
of the system from "going to sleep"). As this document tries to
demonstrate, there are strong use cases where applications need to
temporarily prevent some aspect of the device from entering a
power-saving state. As this functionality is common on other platforms,
this document tries to make the case that this functionality should
also be made available to the web platform.
To understand the use cases that motivate an application from
preventing a device from entering a power-saving state we examined a
set of applications running on iOS, Android, and Firefox OS. By looking
at these native applications, and the conditions under which they
prevent a device from entering a power-saving state, we've come up with
a set of requirements. We hope that the web community can
address these requirements by creating a specification that affords
similar functionality to the web platform.
Why we need wake locks on the Web
For tasks such as watching a video full-screen user agents have, for a
long time now, prevented the screen from going to sleep automatically.
Naturally users would be annoyed if they were watching a movie and
constantly needed to move a mouse or poke at the screen of a device to
stop the screen from going black.
Keeping the screen awake
As computing devices have become increasingly mobile, users find
themselves relying on mobile devices to assist them with everyday
tasks where it is not always practical or desirable to touch the
device to keep it "awake". These can be simple things, like using the
phone as a flashlight, to complex tasks such as cooking or allowing
the phone to navigate us to some destination while driving. In
addition, touch enabled devices have become commodified enough that
they can be used as interactive signage. Some of these use cases are
illustrated in the figure below.
Keeping the system awake
On the flip-side, keeping the screen on is not the only kind of "wake
lock" applications require. There is also use cases that there needs
to be a kind of lock that also keeps the system awake for a short
amount of time to allow arbitrary tasks to complete. It is well-known
that, under normal conditions, the display of a device consumes a
high percentage of a device's battery. Only keeping the screen on
when absolutely necessary can greatly assist in prolonging the
battery life of a device throughout a day.
As mobile devices are generally not as powerful as desktop class
machines, and because of the uncertain network conditions under which
these devices operate, some tasks can take a long time to complete -
longer than users are willing to wait before putting their device
back into their pocket, or sometimes longer than the default timeout
most devices have to put the screen to sleep (e.g., 1 minute or there
abouts). Consider importing and processing a set of contacts over a
slow network connection, which can sometimes take minutes. It would
be unrealistic to expect the user to hold their phone in their hand
while they wait for a synchronization task to complete: users should
be able to switch off the screen of a device and trust that an
application will do its best to complete a certain task in the
background.
In other words the user shutting off the screen doesn't mean that an
application must stop running and have the device enter a low-power
state. An application may need to intervene and finish what it's
doing or it risks data-loss. In another concrete example a user may
compose an email with a large photo attachment. When they press send
they just as quickly press the power button to turn off the screen
and put the phone back in their pocket. In such a situation, as
happens with iOS's mail app, the application continues to run by
sending the email before putting the phone in a low-power state. Note
that this system level lock includes keeping the WiFi and cellular
radio from also shutting down or entering a low power state while
some task is being performed.
Potential for abuse
As with any device API on the Web, there is the risk that this API
could be intentionally or unintentionally abused by developers.
Abuse cases include, but are not limited to:
Requesting a wake lock on the system and/or the screen and then
not releasing it. For the screen wake lock, if the user does not
themselves power off the screen, this would cause the user's battery
to be drained more quickly than normal. Likewise with the system
lock.
Requesting a system lock, and then exploiting it to perform
computationally expensive operations without the user's consent while
the screen is off (e.g., mining crypto-currencies and sending results
to a server).
Combining a system lock with an API like Geolocation could allow
an application to track a user while the screen is off: as the system
is not actually powered-down, it could continue sending information
to a server without the user's knowledge.
Ultimately, it will be up to user agents to mitigate these sorts of
abuse cases. However, the design of the API may also assist in
mitigating certain kinds of abuses.
Current workarounds
To overcome the lack of support for wake locks in the platform, there
is hearsay
evidence that …Developers are resorting to hacks like playing
hidden videos to prevent the screen from sleeping.
Methodology and limitations
We used convenience
sampling to select the applications in this document. That is, we
selected applications that we knew prevented the screen from going to
sleep when the application was being used to perform some particular
action. We also reached out to people on twitter for suggestions as to
which applications we should look at. Suggestions were captured as
"issues"
in our GitHub repository.
As stated on Wikipedia's entry about convenience
sampling: "[one] cannot scientifically make generalizations about the
total population from this sample because it would not be representative
enough." Regardless, we view the range of applications we collected as
exemplifying common use cases for this kind of functionality. As such, we
still created requirements from what we observed across applications and
other platforms. We encourage the community to contribute more, or
contradictory/abuse-cases, examples to the Web and Mobile IG. You can do
this via a pull request to the screen-wake
repository on GitHub.
How we looked at the apps
For each application, we asked:
Why does the application need a wake lock?
How does the user benefit?
When is the wake lock applied and released?
Support on various platforms
Below is a list of APIs from native platforms that developers can make
use of to prevent a device from going to sleep. The list shows that
this functionality is commonly available to developers without
significant security restrictions. It is important to note that some
platforms differentiate between putting the system to sleep and putting
the display to sleep. Requesting that the system (or "CPU") not sleep
while allowing the display to sleep allows long running tasks to
complete.
The application allows users to follow football matches in real-time:
receiving updates as the match is taking place. Allowing users to
follow the action in real-time seems to be the primary motivator.
How does the user benefit?
During a match, the user can simply place their device on a surface
for convenient viewing - or they can simply hold the device in their
hand. Without requiring any user interaction light-weight textual and
graphical information is streamed to the device and automatically
displayed on screen. This means that the user does not need to
interact directly with the device to receive updates of what is
happening during a match. Note that this application does not stream
live video.
When is the wake lock applied and released?
The wake lock is only applied when the user opens the "action" screen
of the application and if, and only if, a match is actually taking
place. The wake lock is released as soon as match is finished.
Google Play Books
Why does the application need a wake lock?
The Screen stays 'awake' allowing users to continue reading and
e-book without having to continuously poke at the screen to keep the
device awake.
How does the user benefit?
Allows a user the read at their own pace without needing to
constantly poke the screen to keep it awake. It also means that users
can keep their hands away from the screen until they need to turn the
page.
When is the wake lock applied and released?
The lock is applied only once the user opens a book. It is released
once the user returns to the book selection menu. Additionally, if
the user doesn't turn the page of a book after about 5 minutes, the
application automatically releases the wake lock.
Applications that exhibit similar behavior:
FBReader on Android is
configurable. It default is to only prevent sleep when battery level
is greater than 50%.
Nigela's quick collections
Why does the application need a wake lock?
Allowing users to prepare dishes while simultaneously interacting
with the recipes of the application (recipes are spread across
multiple screens and require multiple steps to be followed in order).
A user may find it annoying if the device went to sleep while they
were trying to follow a recipe (as this involves a lot of
multitasking on the side of the user, their hands might not be
available, or their hands might be dirty or wet).
How does the user benefit?
As the user's hands could be dirty or wet, the app keeps the screen
on and allows the user to navigate the application using voice
commands instead.
When is the wake lock applied and released?
The wake lock is only engaged when the user explicitly opens up a
recipe. When the user leaves a recipe and returns to, say, the main
screen, the wake lock is released.
Safety. Keeping the screen on allows the user to periodically glance
at their phone to get oriented while navigating to their destination.
On iOS, even if the user turns off the screen, the application
continues to run and notifies the when they need to make a turn.
How does the user benefit?
When in navigation mode, the screen will stay 'awake' so users do not
need to physically interact with the device when navigating.
When is the wake lock applied and released?
The screen lock is only applied when the user begins navigating. The
screen lock is released when the user stops navigating or reaches
their destination.
Other applications that exhibit similar behavior:
iOS Maps.
Xee Photo Viewer
Why does the application need a wake lock?
The wake lock makes sure that the screen does not switch off in the
middle of the slideshow.
How does the user benefit?
Becasue the screen stays 'awake', users do not need to physically
interact with the device to ensure the slideshow continues running.
This leaves the user free to interact with others whom may also be
viewing the images in the same physical space.
When is the wake lock applied and released?
The screen lock is only applied when the user starts the slideshow.
The wake lock is released when the slideshow reaches the last photo
in a set or it gets interrupted by the user.
Other applications that exhibit similar behavior:
FastStone Image Viewer for Windows
iPhoto
Firefox OS Contacts
Why does the application need a wake lock?
To be able to import contacts and performing long-lived tasks without
requiring the user to keep the screen on.
How does the user benefit?
The user is assured that importing contacts will complete without
needing to keep the screen on. This conserves battery.
When is the wake lock applied and released?
When the import task is complete.
Other applications
A range of other applications benefit, or could benefit, from a wake
lock. For instance:
Google Cardboard needs to stay
awake since there's no direct user interaction with the screen. It
would benefit from having wake-lock functionality. Mozilla's
VR efforts, which rely on the Oculus Rift, would also benefit
from having this API.
The "AliveECG - Heart Monitor" for Android is an application that
monitors single-channel electrocardiogram (ECG) rhythm strips. The
screen that shows the beats per minute prevents the screen from
locking. This allows patients and medical professionals to monitor the
ECG input in real-time without needing to worry that the device will go
to sleep.
iOS's compass application uses a wake lock to prevent the screen
from going to sleep. This allows users to orient themselves without
needing to worry that the screen will power off unexpectedly.
Requirements
Any specification seeking to address these requirements:
MUST support requesting a wake lock on at least the
system and on the display. The
display being the screen or primary output modality of the device. The
system meaning that the device can put the screen to sleep, but MUST
continue running a task until an application releases the lock on the
system. Keeping the screen awake MUST (obviously) also keep the system
awake.
MUST be extensible, allowing for new types of locks to be specified
in the future.
MUST support a way for user agents to support wake locks only under
specific security conditions (e.g., only in full screen).
MUST support a means for scripts to be notified if a request for a
lock fails to be granted. And if a lock request is not granted, the UA
SHOULD provide the developer and script with appropriate information
detailing why the request was not granted.
MUST allow developers to release a previously requested wake lock.
MAY allow scripts to check if an origin already holds a particular
kind of lock.
MUST make the user agent ultimately responsible for managing the
wake locks. The user agent MAY automatically release the lock for
security reasons, and MUST release all locks when an application is
closed or navigated to another origin. It MAY also release the lock
after some amount of inactivity.
MUST NOT be applied solely at the application level (e.g., just
once when the application starts).
MUST be possible for the end user to override the wake lock on the
screen (e.g., by pressing the power button on the device, which puts
the screen to sleep). Applications SHOULD be notified when such a thing
happens, so they can request a system lock if they need to complete
some task.
MAY allow a means to hint to the user agent how long a lock is to
be held (e.g., "keep the screen on for at least 5 mins").
MUST allow the end user to have ultimate control over which
documents have control over a wake locks (e.g., not allowing a page to
get get any kind of wake lock without user opt-in).
Observations
The following are a set of related observation we made while we were
preparing this document.
In iOS, an orientation change can serve as a trigger to prevent the
screen from locking. However, this only works on apps that support
changes in orientation. This is not the case in Android, where changing
the orientation of the device has no effect - even if the application
supports multiple orientations.
Acknowledgments
Huge thanks to Ehsan Akhgari, Seth Ladd, Ian Hickson, Boris Smus, Damon
Douglas, Ilya Bogdanovich, Tab Atkins, and Domenic Denicola.


| Module | ActionController::PolymorphicRoutes |
| In: |
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.0.beta4/lib/action_controller/polymorphic_routes.rb
|
Polymorphic URL helpers are methods for smart resolution to a named route call when given an Active Record model instance. They are to be used in combination with ActionController::Resources.
These methods are useful when you want to generate correct URL or path to a RESTful resource without having to know the exact type of the record in question.
Nested resources and/or namespaces are also supported, as illustrated in the example:
polymorphic_url([:admin, @article, @comment])
results in:
admin_article_comment_url(@article, @comment)
Polymorphic URL helpers are used in a number of places throughout the Rails framework:
In addition to polymorphic_url and polymorphic_path methods, a number of prefixed helpers are available as a shorthand to :action => "…" in options. Those are:
Example usage:
edit_polymorphic_path(@post) # => "/posts/1/edit" polymorphic_path(@post, :format => :pdf) # => "/posts/1.pdf"
Returns the path component of a URL for the given record. It uses polymorphic_url with :routing_type => :path.
# File /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.0.beta4/lib/action_controller/polymorphic_routes.rb, line 118 118: def polymorphic_path(record_or_hash_or_array, options = {}) 119: polymorphic_url(record_or_hash_or_array, options.merge(:routing_type => :path)) 120: end
Constructs a call to a named RESTful route for the given record and returns the resulting URL string. For example:
# calls post_url(post) polymorphic_url(post) # => "http://example.com/posts/1" polymorphic_url([blog, post]) # => "http://example.com/blogs/1/posts/1" polymorphic_url([:admin, blog, post]) # => "http://example.com/admin/blogs/1/posts/1" polymorphic_url([user, :blog, post]) # => "http://example.com/users/1/blog/posts/1" polymorphic_url(Comment) # => "http://example.com/comments"
# an Article record polymorphic_url(record) # same as article_url(record) # a Comment record polymorphic_url(record) # same as comment_url(record) # it recognizes new records and maps to the collection record = Comment.new polymorphic_url(record) # same as comments_url() # the class of a record will also map to the collection polymorphic_url(Comment) # same as comments_url()
# File /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.0.beta4/lib/action_controller/polymorphic_routes.rb, line 77 77: def polymorphic_url(record_or_hash_or_array, options = {}) 78: if record_or_hash_or_array.kind_of?(Array) 79: record_or_hash_or_array = record_or_hash_or_array.compact 80: record_or_hash_or_array = record_or_hash_or_array[0] if record_or_hash_or_array.size == 1 81: end 82: 83: record = extract_record(record_or_hash_or_array) 84: record = record.to_model if record.respond_to?(:to_model) 85: 86: args = case record_or_hash_or_array 87: when Hash; [ record_or_hash_or_array ] 88: when Array; record_or_hash_or_array.dup 89: else [ record_or_hash_or_array ] 90: end 91: 92: inflection = if options[:action].to_s == "new" 93: args.pop 94: :singular 95: elsif (record.respond_to?(:persisted?) && !record.persisted?) 96: args.pop 97: :plural 98: elsif record.is_a?(Class) 99: args.pop 100: :plural 101: else 102: :singular 103: end 104: 105: args.delete_if {|arg| arg.is_a?(Symbol) || arg.is_a?(String)} 106: named_route = build_named_route_call(record_or_hash_or_array, inflection, options) 107: 108: url_options = options.except(:action, :routing_type) 109: unless url_options.empty? 110: args.last.kind_of?(Hash) ? args.last.merge!(url_options) : args << url_options 111: end 112: 113: __send__(named_route, *args) 114: end


{% extends 'base_layout.html' %} {% block control_area %} {{ super() }}
Do you want to log out?
Go to reports!
{% else %}
Hello! Would you like to log in?
Or
You can make a report!
This is where Health Checks will go.


First Time Setup¶
Once you have installed toyz (see install ) you are ready to setup your local toyz application.
Note
You can have more than one instance of a toyz application installed on the same system.
From any directory type:
>>>toyz
and you will be promped to setup toyz for the fist time.
Warning
The default directory is in yout python library but it is not advised to install toyz there. If you choose to install here you will lose all of your settings and users when you update or re-install toyz.
A more recomended install directory would be ~/toyz .
Once the first time setup has been completed the application will start and you will be given a port that is running the application.


Localhost Dev Mode
Everyone codes in an isolated way.
- Hard to develop large applications with limited local resources
- Difficult to setup and maintain the development environment
- Difficult to debug jointly
- Gap bewteen development environment and production envrionment
Nocalhost Dev Mode
With Nocalhost DevMode, all services can run on the Cloud. DevMode support connecting local IDE and containers.
- Easy to handle large application development with flexible cloud resources
- Environment provisioning on demand
- Easy to share the same development environment and conduct joint debugging
- Close to production environment


@* * Copyright 2023 HM Revenue & Customs * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. *@ @import includes.submit @import play.api.mvc.Call @import uk.gov.hmrc.govukfrontend.views.html.components.{FormWithCSRF, _} @import uk.gov.hmrc.govukfrontend.views.html.components.implicits._ @import uk.gov.hmrc.tai.forms.YesNoForm @import uk.gov.hmrc.tai.util.constants.FormValuesConstants @this(form: FormWithCSRF) @(duplicateSubmissionWarningForm: Form[YesNoForm], preHeading: String, heading: String, yesChoiceText: String, noChoiceText: String, actionRoute: Call, govukRadios: GovukRadios, govukErrorSummary: GovukErrorSummary)(implicit request: Request[_], messages: Messages) @hint = {
@messages("tai.employment.warning.text1")
@messages("tai.employment.warning.text2")
@messages("tai.employment.warning.text3")


This is a collection of information about setting up, using, and troubleshooting the turtlebot3.
Most of the information on this site can be found elsewhere online (I try to attribute sources), but
this is supposed to be a convenient repository of information in a single place. If you find any
errors in this document, please contact me (contact info at bottom of page) or post an issue on the
github. Formatting wise, you should know that:
$ This is a command you can type into a terminal.
Note: If it does NOT have the $
at the beginning of the line, it is terminal output and you should NOT try to type it into your terminal.
and anytime you see
{ }
in a terminal it means you need to enter some specific information, and
do not type the
{
or
}
.
Tooltips in the command line font have green dotted underlines.


; Yee Hsu
; Filename: ccsf.scp
; date: 6/21/1999
;
; Dial-up:<PHONE_NUMBER>
; Dial-up:<PHONE_NUMBER>
;
; Primary DNS: <IP_ADDRESS>
; Secondary DNS: <IP_ADDRESS>
;
; For use with a Win95 PPP connection with City College of San Francisco
proc main
; Enable the following to delay for 3 seconds first to
; allow host time to send initial characters
delay 3
; Wait for the host prompt before entering
; the host name
waitfor "ost:"
transmit "hills"
transmit "^M"
; Wait for the login prompt before entering
; the user ID
waitfor "ogin:"
transmit $USERID
transmit "^M"
; Enter the password
waitfor "assword:"
transmit $PASSWORD
transmit "^M"
delay 1
transmit "^M"
transmit "^M"
transmit "^M"
transmit "^M"
; Enter slirp command at the shell prompt:
waitfor "$"
transmit "slirp ppp"
transmit "^M"
endproc


ROOTEX
ACCESS LOGIN
USERNAME
PASSWORD
forget password ?
Copyright © 2018 Rootexshell
Author by AdiWijaya - XVore Projects


//
40 Hours In Maya
I took a fairly bog-standard 3D modeling project for one of my classes and turned it into something really big. I spent over 40 hours creating and texturing this greataxe.
It is by far the most complex model I've ever created. The entire design is original. As I built it, I saved progress milestones into different files.
Below, you can see my creation process in stages.
Copyright © 2016 Daniel Timko


TODO:
双亲委派机制的优势：
说明这个概念，从四个角度入手：文字描述、图示、源代码、详细示例。
工作原理：
ClassLoader
类当中定义的parent
字段，就是连接Bootstrap ClassLoader、Extension ClassLoader、Application ClassLoader的桥梁。
public abstract class ClassLoader { private final ClassLoader parent; public final ClassLoader getParent() { if (parent == null) return null; SecurityManager sm = System.getSecurityManager(); if (sm != null) { // Check access to the parent class loader // If the caller's class loader is same as this class loader, // permission check is performed. checkClassLoaderPermission(parent, Reflection.getCallerClass()); } return parent; } protected Class<?> loadClass(String name, boolean resolve) throws ClassNotFoundException { synchronized (getClassLoadingLock(name)) { // First, check if the class has already been loaded Class<?> c = findLoadedClass(name); if (c == null) { long t0 = System.nanoTime(); try { if (parent != null) { c = parent.loadClass(name, false); } else { c = findBootstrapClassOrNull(name); } } catch (ClassNotFoundException e) { // ClassNotFoundException thrown if class not found // from the non-null parent class loader } if (c == null) { // If still not found, then invoke findClass in order // to find the class. long t1 = System.nanoTime(); c = findClass(name); // this is the defining class loader; record the stats sun.misc.PerfCounter.getParentDelegationTime().addTime(t1 - t0); sun.misc.PerfCounter.getFindClassTime().addElapsedTimeFrom(t1); sun.misc.PerfCounter.getFindClasses().increment(); } } if (resolve) { resolveClass(c); } return c; } } }
To better visualize the parent-delegation model,
imagine a Java application creates a user-defined class loader named "Grandma."
Because the application passes null
to Grandma's constructor,
Grandma's parent is set to the bootstrap class loader.
Time passes.
Sometime later, the application creates another class loader named "Mom."
Because the application passes to Mom's constructor a reference to Grandma,
Mom's parent is set to the user-defined class loader referred to affectionately as Grandma.
More time passes.
At some later time, the application creates a class loader named, "Cindy."
Because the application passes to Cindy's constructor a reference to Mom,
Cindy's parent is set to the user-defined class loader referred to as Mom.
bootstrap class loader --> Grandma --> Mom --> Cindy
Now imagine the application asks Cindy to load a type named java.io.FileReader
.
When a class that follows the parent delegation model loads a type,
it first delegates to its parent -- it asks its parent to try and load the type.
Its parent, in turn, asks its parent, which first asks its parent, and so on.
The delegation continues all the way up to the end-point of the parent-delegation chain,
which is usually the bootstrap class loader.
Thus, the first thing Cindy does is ask Mom to load the type.
The first thing Mom does is ask Grandma to load the type.
And the first thing Grandma does is ask the bootstrap class loader to load the type.
In this case, the bootstrap class loader is able to load (or already has loaded) the type,
and returns the Class
instance representing java.io.FileReader
to Grandma.
Grandma passes this Class
reference back to Mom,
who passes it back to Cindy, who returns it to the application.
举个例子，来说明parent delegation model是如何工作的。
Note that given delegation between class loaders,
the class loader that initiates loading is not necessarily the class loader that actually defines the type.
In the previous example, the application initially asked Cindy to load the type,
but ultimately, the bootstrap class loader defined the type.
In Java terminology, a class loader that is asked to load a type, but returns a type loaded by some other class loader, is called an initiating class loader of that type.
The class loader that actually defines the type is called the defining class loader for the type.
In the previous example, therefore, the defining class loader for java.io.FileReader
is the bootstrap class loader.
Class Cindy is an initiating class loader, but so are Mom, Grandma, and even the bootstrap class loader.
Any class loader that is asked to load a type and is able to return a reference to the Class
instance representing the type is an initiating loader of that type.
这里讲述initiating class loader和defining class loader这两个概念。
For another example, imagine the application asks Cindy to load a type named com.artima.knitting.QuiltPattern
.
Cindy delegates to Mom, who delegates to Grandma, who delegates to the bootstrap class loader.
In this case, however, the bootstrap class loader is unable to load the type.
So control returns back to Grandma, who attempts to load the type in her custom way.
Because Grandma is responsible for loading standard extensions,
and the com.artima.knitting
package is wisely installed in a JAR file in the standard extensions directory,
Grandma is able to load the type.
Grandma defines the type and returns the Class
instance representing com.artima.knitting.QuiltPattern
to Mom.
Mom passes this Class
reference back to Cindy, who returns it to the application.
In this example, Grandma is the defining loader of the com.artima.knitting.QuiltPattern
type.
Cindy, Mom, and Grandma -- but not the bootstrap class loader -- are initiating class loaders for the type.
进一步举例说明initiating class loader和defining class loader两者的区别。


pqn.Rd
Probabilistic quotient normalisation
pqn(X, iref = NULL, TArea = FALSE, add_DilF = "dquot", bin = NULL)
| X | num matrix or data.frame, metabolite data with rows representing spectra and column spectral variables |
|---|---|
| iref | num or int vector of X row indices, used to calculate the reference spectrum (see Details). Set to NULL if all samples should be use to calculate reference index |
| TArea | logical indicating if total area normalisation should be applied first (see Details). |
| add_DilF | char string, defining name of variable exported to global namespace and containing dilution factor information Can be set to NULL if dilution factor should not be exported. |
| bin | either NULL or named list: ppm and binning function parameters width or npoints |
Normalised spectral matrix of the same dimensions as input
It is sometimes favourable not to use all spectra to calculate a dilution reference (e.g. QC samples should generally be excluded). Therefore, a vector of indices can be specified with the parameter reference.idx
and the respective spectra are used to calculate the median spectrum as a dilution reference. The parameter reference.idx
can also be a single index, then the respective spectrum is used as a reference. If it is set N/A
, all spectra in X
are used to calculate the dilution reference spectrum. to Total area normalisation is integral part of the probabilistic quotient normalisation algorithm (see References), however, this sometimes distorts the spectra, i.e. is not suitable for normalisation. The parameter TArea
can be set to TRUE or FALSE, depending if total area normalisation should be applied or not.
Dieterle, F., et al. (2006), Probabilistic Quotient Normalization as Robust Method to Account for Dilution of Complex Biological Mixtures. Application in 1H NMR Metabonomics, Analytical Chemistry, 78.3, 4281-90.
Other NMR ++:
.hotellingsT2()
,
cvanova()
,
es_cdelta()
,
minmax()
,
opls_perm()
,
pca()
,
plotscores()
,
predict_opls()
,
scRange()
Torben Kimhofer torben.kimhofer@murdoch.edu.au


Toggle navigation
Pause
Home
Draw
Files
Preview
Control
Setup
Plotter Station
Draw freehand on the plotter
Upload files to plot
Preview and send a file for plotting
Pause, home and change plotter pen. Change paper size and drawing extents
Setup interface and plotter parameters, including motor maximum velocity and ramp acceleration/ deceleration
Draw
X position mm
Y position mm
Pen Down
Submit
X Step Count
252
Step Direction
clockwise
State
High
Y Step Count
202
Step Direction
counter-clockwise
State
Low
X Current Position mm
79.17
Y Current Position mm
-63.46
ESP32 File Server
Upload a file
Set path on server
Upload
Name
Type
Size (Bytes)
Delete
index.html
file
2869
Delete
Vulcan.svg
file
57418
Delete
Preview
Submit
Approx. time
65 minutes
Estimated finish
Tue 13:45pm
Control
Reposition
Home
Centre
Pen change
Abort
Pause
Resume
Paper
Paper size
A2
A3
A4
A5
Short edge mm
Long edge mm
Bottom mm
Left mm
Top mm
Right mm
Submit
Image
Magnification
Speed
Flip top / bottom
Flip left / right
Rotate
0°
90°
180°
270°
Pen thickness mm
Submit
Setup Configuration
Stepper Driver Interface
Step & Dir
SPI
X_STEP_PIN
X_DIR_PIN
Y_STEP_PIN
Y_DIR_PIN
Limit switches
Not available
Normally Open
Normally Closed
X_LIMIT_PIN
Y_LIMIT_PIN
Pen and Enable
PEN_LIFT_PIN
Active high
Active low
STEP_ENABLE_PIN
Active high
Active low
Submit
Timings
WAKE_FROM_SLEEP_TIME_ms
ENBL_AND_DIR_SETUP_HOLD_TIME_ns
STEP_HIGH_LOW_DURATION_us
Step signals
MICRO_STEPS
1
1/2
1/4
1/8
1/16
1/32
1/64
1/128
1/256
Rising edge
Double edge
Submit
Plotter physics
X pulley diameter mm
Y pulley diameter mm
Stepper properties
V Max Hz
A Max Hz/s
cycles/s
mm/s
Submit


--- layout: page title: About header-img: "img/about-bg.png" ---
My name is Raynald. But you can call me Ray. I have always been fascinated with coding that is program related. And I figured why not try to learn how to use it.


Class $W.Object
Contains pertinent render information for an individual renderable entity.
Make sure to set vertexCount correctly
Animations are clunky right now, I'm working on it.
Defined in: webglu.js.
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
$W.Object(type, shouldAdd)
|
| Field Attributes | Field Name and Description |
|---|---|
|
The animation for this object.
|
|
|
WebGL*array's of attribute data.
|
|
|
WebGL array buffers for attribute data.
|
|
|
Name of shader program used to render this object
|
|
|
Names of textures this object uses.
|
|
|
Number of vertices in this object.
|
| Method Attributes | Method Name and Description |
|---|---|
|
addChild(obj)
Add an object as a child to this object.
|
|
|
XXX Not working Binds the data buffers for rendering.
|
|
|
Bind the textures for this object.
|
|
|
XXX Not working Buffers the data for this object once.
|
|
|
draw()
draw this object at its internally stored position, rotation, and
scale, INCLUDING its current animation state.
|
|
|
drawAt(pos, rot, scale)
draw this object at the given postion, rotation, and scale
|
|
|
fillArray(name, contents)
Fills the array of the given name, where name is a
vertex attribute in the shader.
|
|
|
setElements(elements)
Set the indices for the elements of this object.
|
|
|
Set the x y and z components of the object's scale to the given
value.
|
|
|
setShaderProgram(program)
Set the shader program to the named program
|
|
|
update(dt)
Update this object's animation state.
|
Class Detail
$W.Object(type, shouldAdd)
- Parameters:
- type
- The type of rendering to use for this object, possible values
are:
$W.GL.POINTS
$W.GL.LINES
$W.GL.LINE_LOOP
$W.GL.LINE_STRIP
$W.GL.TRIANGLES
$W.GL.TRIANGLE_STRIP
$W.GL.TRIANGLE_FAN - {Boolean} shouldAdd
- Set to false to not add this the the object list in case you want to handle rendering in a specific manner, e.g. as the child of another object.
Field Detail
animation
The animation for this object.
arrays
WebGL*array's of attribute data.
buffers
WebGL array buffers for attribute data.
shaderProgram
Name of shader program used to render this object
textures
Names of textures this object uses.
vertexCount
Number of vertices in this object.
Used when rendering with drawArrays.
Method Detail
addChild(obj)
Add an object as a child to this object.
- Parameters:
- {Object} obj
- The object to add as a child.
{Vector}
animatedPosition()
- Returns:
- {Vector} The sum of the object's base position and its animation.
{Vector}
animatedRotation()
- Returns:
- {Vector} The sum of the object's base rotation and its animation.
{Vector}
animatedScale()
- Returns:
- {Vector} The product of the object's base scale and its animation.
bindBuffers()
XXX Not working Binds the data buffers for rendering.
bindTextures()
Bind the textures for this object.
XXX Will only work with single texturing
- Deprecated:
- Use setTexture(texture, sampler) instead.
bufferArrays()
XXX Not working Buffers the data for this object once.
draw()
draw this object at its internally stored position, rotation, and
scale, INCLUDING its current animation state.
drawAt(pos, rot, scale)
draw this object at the given postion, rotation, and scale
- Parameters:
- {Vector} pos
- The position to draw at.
- {Vector} rot
- The rotation to rotate by.
- {Vector} scale
- The scale to scale by.
fillArray(name, contents)
Fills the array of the given name, where name is a
vertex attribute in the shader.
Also creates a buffer to hold the data in WebGL.
- Parameters:
- {String} name
- The attribute variable name in a shader attached to the shader program used by this object. (this is not verified for you)
- {Array} contents
- The data to pass to the attribute.
setElements(elements)
Set the indices for the elements of this object.
Draws this object with drawElements unless set with
false.
- Parameters:
- {Array|Boolean} elements
- The array of indices of the elements or false, which disabled drawElements rendering for this object.
setScaleUniformly(s)
Set the x y and z components of the object's scale to the given
value.
- Parameters:
- {Number} s
- New scale of the object.
setShaderProgram(program)
Set the shader program to the named program
- Parameters:
- {String} program
- Program name.
update(dt)
Update this object's animation state.
- Parameters:
- {Number} dt
- The delta time since the previous call to update.


New Site
Content of new site
Enter details on the form below
first name
second name
username
password
male
female
choose
arsenal
chelsea

Premier league teams
by order
liverpool
man city
leiceter
Sport
League
Team
Bundesliga
Bayern
Laliga
Barcelona
EPL
Chelsea
Images


The datamgmt R package supports management of data packages on the Arctic Data Center (ADC) and State of Alaska’s Salmon and People (SASAP) data portals.
You can install the development version from github with:
# install.packages("devtools")
devtools::install_github("NCEAS/datamgmt")
We generally follow the tidyverse style conventions, with the following specific style preferences:
stopifnot
statementsWork on this package was supported by:
Additional support was provided by the National Center for Ecological Analysis and Synthesis, a Center funded by the University of California, Santa Barbara, and the State of California.


Drawing multiple points in parallel with drawArrays. A 100px white circular point is at the center. Rotating around it are 100 red, yellow, and blue points. The red points are all 15px in size, while the yellow and blue points have various sizes.