I went with Erica Wiechers (.NET Show heart throb) to visit MS Studios today. Ostensively we were there to preview the Applied XML Developer Conference videos, some of which Erica will be turned into MSDN TV episodes. However, as long as we were there, Bob Snyder gave us the nickel tour.
The front entry was even more secure than the normal MS buildings, being encased in wire fencing and not yielding to my badge (we had to be let in from the inside). Once in, it was a big building with lots of open space and fun decorations. I got to see several blueprints of famous imaginary places, e.g. the spaceship from Lost in Space, the Addams Family house and the island from Gilligan's Island. I got to see the two green rooms where "talent" gets ready in the full locker rooms, then relaxes on the coach 'til it's their turn (although neither room is green). I got to see all of the studios, including standing on one of BillG's markers, seeing the set where he interviewed with Larry King and the other set where he recorded his antitrust testimony. I also got to see the set for the .NET Show, which looks like the inside of half of a giant bowl, so that they can blend in custom backgrounds, both physical and logical. I go to see all kinds of cool a/v routing and mixing equipment, putting my one little PC attached to my home theater system seem so pathetic in comparison. I even got to see some live footage of Steve Ballmer that they were filming that day (man, he gets excited when he speaks : ).
In general, I've been getting to see and do a lot of cool stuff here at MS. Recommended.


Please enable JavaScript. You can do this in Content Settings.
Please Wait
Loading CoursesNew (Beta)
You're not logged in!
Log in on regular Courses and refresh the page to continue.
There will be a sign in page here (eventually)
Upcoming events
Courses
Sign In
Options
Log out
Courses


Sashakt - The Entrepreneurship Committee
September 24 - 25
Home
Schedule
Speakers
Sponsors
Udaaney 2021
Give Flight to Your Dreams
Schedule
Day 1
Why Entrpreneurship?
The Key to a Better Future: Leaders
Day 2
Entrepreneurship Opportunities
The Scope and Possibilities in Entrepreneurship
Speakers
Anuj Jalote
Angel Investor, One Life Ventures
Abhinav Tandon
Co-Founder, Creator's Gurukul
Pearl Uppal
Founder & Creative Director, Talking Threads
Amit Tandon
Founder, Grandmasters of Comedy
Mridula Joshi
Founder, Mahusiano
Kanika Singal
Founding Managing Director, NextLeap Advisory and Search Services
Thank You to Our Sponsors
Follow the event
#Udaaney


I recently graduated from Yale (Class of 2016) with a major in Computer Science and Mathematics. I am currently working as a software engineer at Microsoft. I enjoy music, cats, and exploring the world.
This past year at Microsoft, I've been working on the XAML Designer for Visual Studio, diving into the world of devtools and Windows / .NET internals. As an undergrad, I completed a thesis project in the field of software verification. I'm also interested in functional programming, web development, and entrepeneurship, and I also dabble in machine learning and data science. (Who doesn't nowadays?) In my spare time, I can be found preaching the gospel of memory saftey with the Rust Evangelism Strike Force or telling my colleagues that they should learn Haskell.
I'm an avid traveler! Here are some places I have been to recently. {% include map.html %}
In college, I played the viola with the Yale Symphony Orchestra and also studied composition and chamber music performance with the faculty at the Yale School of Music. I've played in the pit orchestra for numerous student productions, played saxophone with the Yale Precision Marching Band, and also sang with the Yale Russian Chorus. If you are in the area and looking to jam, please let me know!


Speech
A transcript of Ian Stockford's video where he talks about the new GCSE maths specifications and our research programme.
Hi. I’m Ian Stockford and I’m Associate Director of Research and Analysis here at Ofqual
As I’m sure you’re aware we’ve recently accredited a number of new GCSE mathematics specifications from all the exam boards. These will be awarded for the first time in summer 2017. Although 2 year courses will start this September, many of you may be preparing your students now.
As you will know, the newly reformed GCSE maths is very different from that currently being offered.
The new version covers a broader and deeper curriculum and has more demanding content. But it must also continue to cater for a wide range of students; so, more than ever, maths exams must include questions pitched at different levels of demand.
Since the new content is different from that in the current qualifications the assessment standard - or how demanding a particular assessment is - is very challenging to define right now.
Though when accrediting the new specifications the focus is on the perceived level of demand being appropriate for a new GCSE Maths qualification.
So I’ve used the term demand there a few times. The notion of ‘demand’ is often confused with ‘difficulty’ so let me clarify what I mean.
By demand I mean a judgement of the cognitive processes a student has to carry out to answer a question. Difficulty on the other hand is an empirical measure of how successful a group of students were in answering a question – so you can get it this through the marks a student scored when they actually sat the exam questions. Obviously, because of this, judgements of demand can inform part of the accreditation process whereas the actual difficulty can’t.
Recognising this, we did a good amount of work in advance of specifications being submitted to us, to articulate these standards. This work included the development of guidance and rules for how assessments should be designed and you might have seen some of these and commented on parts of them as part of our earlier consultations.
This extent of pre-accreditation work has never been done before.
What this work helped to do was reduce the potential variability in the assessment standard between the specifications, but it wasn’t intended to limit valid differences that will inevitably occur between how each exam board addresses our requirements. Now there’s been a lot of media interest the approaches different boards have taken and also interest in our accreditation process.
Let me assure you that our accreditation process is robust and involves subject experts scrutinising materials submitted by the exam boards to support each of their specifications.
It seeks to ensure that each board has an appropriate assessment strategy for each specification and that those strategies can be implemented in a way which means each exam board, and its qualifications, can continue to meet our regulatory requirements over time.
Accreditation is also an opportunity to give consideration to the level of demand and the comparability of demand across the different qualifications as far as is possible at this stage with the evidence available.
Some variety between the boards is acceptable - and as I say actually inevitable - but that variety shouldn’t result in one or more of the specifications being an easier route to any grade being awarded.
So accreditation isn’t a comparability exercise, but the expert panel did give attention to the level of demand across the different specifications submitted by the different exam boards.
Only when the level of demand of each specification came within what was judged to be an acceptable range were they accredited. There were a number of submissions for accreditation from each exam board that were unsuccessful, and there were a range of reasons, but central to this was consideration of the assessment demand.
We’re confident in the decisions we made as a result of the accreditation panel’s recommendations.
These judgements are made at a particular point in time, based on a particular set of materials - but as I’ve described, it isn’t possible to judge whether different qualifications are precisely comparable at this stage.
And that’s why we are carrying out a comprehensive research programme to explore these issues in more depth. What this will do is give us further evidence on demand and difficulty across the different sample assessment materials.
If you want to find out more about about this research, you can find details on our website at www.gov.uk/ofqual.
Unless our research provides sound evidence to the contrary, we will remain confident in the judgements made during accreditation.
Finally, I just want to say we’ve had a fantastic response to our call for school participation as part of our research.
In a matter of days we’ve recruited over 4,000 students to sit test exams. I am really sorry that we couldn’t involve every school that volunteered, but, genuinely, thank you for wanting to participate.
It is encouraging that so many schools are seeking to engage so positively with our work.
So that’s all for now, but we will provide more information on our research as it progresses.
If you do have any questions, please do contact us here at Ofqual.


Play in an ultra casual blaster
BLASTER
Want to save the galaxy from evil alien scum? Play our game RIGHT
NOW!!!
Play in an adventurous clicker
CLICKER
We build awesome games for our players. Dive in and play right now,
click the button below.
Play in a Chaotic Pig's World!


Welcome to Photoshop Python API
Python API for Photoshop.
The example above was created with Photoshop Python API. Check it out at https://loonghao.github.io/photoshop-python-api/examples.
| Photoshop Version | Supported |
|---|---|
| 2021 | ✅ |
| 2020 | ✅ |
| cc2019 | ✅ |
| cc2018 | ✅ |
| cc2017 | ✅ |
Installing
You can install via pip.
pip install photoshop_python_api
Since it uses COM (Component Object Model) connect Photoshop, it can be used in any DCC software with a python interpreter.
Hello World
import photoshop.api as ps
app = ps.Application()
doc = app.documents.add()
new_doc = doc.artLayers.add()
text_color = ps.SolidColor()
text_color.rgb.green = 255
new_text_layer = new_doc
new_text_layer.kind = ps.LayerKind.TextLayer
new_text_layer.textItem.contents = 'Hello, World!'
new_text_layer.textItem.position = [160, 167]
new_text_layer.textItem.size = 40
new_text_layer.textItem.color = text_color
options = ps.JPEGSaveOptions(quality=5)
# # save to jpg
jpg = 'd:/hello_world.jpg'
doc.saveAs(jpg, options, asCopy=True)
app.doJavaScript(f'alert("save to jpg: {jpg}")')
Photoshop Session
Use it as context.
from photoshop import Session
with Session(action="new_document") as ps:
doc = ps.active_document
text_color = ps.SolidColor()
text_color.rgb.green = 255
new_text_layer = doc.artLayers.add()
new_text_layer.kind = ps.LayerKind.TextLayer
new_text_layer.textItem.contents = 'Hello, World!'
new_text_layer.textItem.position = [160, 167]
new_text_layer.textItem.size = 40
new_text_layer.textItem.color = text_color
options = ps.JPEGSaveOptions(quality=5)
jpg = 'd:/hello_world.jpg'
doc.saveAs(jpg, options, asCopy=True)
ps.app.doJavaScript(f'alert("save to jpg: {jpg}")')
Contributors ✨
Thanks goes to these wonderful people (emoji key):
Hal 💻 |
voodraizer 🐛 |
brunosly 🐛 |
tubi 🐛 |
wjxiehaixin 🐛 |
罗马钟 🐛 |
clement 🐛 |
krevlinmen 🐛 |
Thomas 🐛 |
This project follows the all-contributors specification.
Contributions of any kind are welcome!
how to get Photoshop program ID
Get-ChildItem "HKLM:\SOFTWARE\Classes" |
?{ ($_.PSChildName -match "^[a-z]+\.[a-z]+(\.\d+)?$") -and ($_.GetSubKeyNames() -contains "CLSID") } |
?{ $_.PSChildName -match "Photoshop.Application" } | ft PSChildName
How to get a list of COM objects from the registry
Useful links
-
https://www.youtube.com/playlist?list=PLUEniN8BpU8-Qmjyv3zyWaNvDYwJOJZ4m
-
http://www.shining-lucy.com/wiki/page.php?id=appwiki:photoshop:ps_script
-
http://www.tonton-pixel.com/wp-content/uploads/DecisionTable.pdf
-
http://jongware.mit.edu/pscs5js_html/psjscs5/pc_Application.html
-
https://indd.adobe.com/view/a0207571-ff5b-4bbf-a540-07079bd21d75
-
http://shining-lucy.com/wiki/page.php?id=appwiki:photoshop:ps_script
-
http://web.archive.org/web/20140121053819/http://www.pcpix.com/Photoshop/char.html
-
http://www.tonton-pixel.com/scripts/utility-scripts/get-equivalent-id-code/index.html
-
https://github.com/Adobe-CEP/Samples/tree/master/PhotoshopEvents
-
https://evanmccall.wordpress.com/2015/03/09/how-to-develop-photoshop-tools-in-python


{% extends 'home/base.html' %} {% load humanize %} {% load staticfiles %} {% load performance_extras %} {% load progress_extras %} {% load i18n %} {% block content %}
| {% if mda_location %} Health Facility {% else %} District {% endif%} | Eligible Areas | MDA Areas Reached | MDA Areas Covered Effectively | Community Readiness | Mobilised | |||||
|---|---|---|---|---|---|---|---|---|---|---|
| Number | % | Number | % | |||||||
| Target Area | Eligible Structures on the Ground | Structures Found | Structures Received | Structures Received Coverage | Structures Found Coverage | Structures Received Success Rate | Population Received Success Rate | Community Ready? | Mobilised? | |
| {% if location.parent_id %} {% else %} {% endif %} {{ location.name }} | {% if location.level != 'ta' %} {{location.mda_spray_areas }} {% else %} {{ location.structures|intcomma }} {% endif %} | {{ location.mda_spray_areas_found|intcomma }} | {% if site_name != 'namibia' %} {% percentage location.mda_spray_areas_found location.mda_spray_areas %} {% endif %} | {{ location.mda_spray_areas_received|intcomma }} | {% calc_percentage location.mda_spray_areas_received location.mda_spray_areas_found as calculated_percentage %}{{ calculated_percentage }} | {{ location.sensitized }} | {{ location.mobilised }} | |||
| {{ location.name }} | {{ location.structures_on_ground|intcomma }} | {{ location.mda_found|intcomma }} | {{ location.visited_sprayed|intcomma }} | {% calc_percentage location.visited_sprayed location.structures_on_ground as spray_effectiveness_percentage %}{{ spray_effectiveness_percentage }} | {% calc_percentage location.mda_found location.structures_on_ground as found_coverage_percentage %}{{ found_coverage_percentage }} | {% calc_percentage location.visited_sprayed location.mda_found as spray_coverage_percentage %}{{ spray_coverage_percentage }} | {% calc_percentage location.population_treatment location.population_eligible as population_percentage %} {{ population_percentage }} | {{ location.sensitized }} | {{ location.mobilised }} | |
| {% trans "Not in Targeted Area" %} | {{ no_location.found|default_if_none:"0"|intcomma }} | {{ no_location.sprayed|default_if_none:"0"|intcomma }} | {% if no_location.sprayed and no_location.found %} {% calc_percentage no_location.sprayed no_location.found as spray_effectiveness_percentage %}{{ spray_effectiveness_percentage }} | {% else %}{% endif %} | ||||||
| Total | {{ mda_location.mda_spray_areas|intcomma }} | {{ mda_location.mda_spray_areas_found|intcomma }} | {% calc_percentage mda_location.mda_spray_areas_found mda_location.mda_spray_areas as spray_effectiveness_percentage %}{{ spray_effectiveness_percentage }} | {% calc_percentage mda_location.mda_spray_areas_found mda_location.structures_on_ground as found_coverage_percentage %}{{ found_coverage_percentage }} | {% calc_percentage mda_location.mda_spray_areas_received mda_location.mda_spray_areas_found as spray_coverage_percentage %}{{ spray_coverage_percentage }} | |||||
| Total | {{ mda_location.structures_on_ground|intcomma }} | {{ mda_location.mda_found|intcomma }} | {{ mda_location.visited_sprayed|intcomma }} | {% calc_percentage mda_location.visited_sprayed mda_location.structures_on_ground as spray_effectiveness_percentage %}{{ spray_effectiveness_percentage }} | {% calc_percentage mda_location.mda_found mda_location.structures_on_ground as found_coverage_percentage %}{{ found_coverage_percentage }} | {% calc_percentage mda_location.visited_sprayed mda_location.mda_found as spray_coverage_percentage %}{{ spray_coverage_percentage }} |
* To sort a column, click on the column name
{% include 'definitions-and-conditions.html' %}


--- layout: default ---
A simple yet extremely thorough introduction to PowerShell, built using Pester's testing syntax. Enjoy a guided and helpful foray into the strange little quirks and helpful features of PowerShell!
Shane and I take a dive through the underbelly of PowerShell Core, examining the language tokenizer and what makes it tick. Join us as we get hopelessly lost and confused, and I show you how to add complex number parsing to PowerShell Core, because why not?
Create masterful works of art from vast swathes of text.


GET /tracks retreves all saved tracks
GET /tracks/:id retreves a track by id
POST /tracks saves a tracks


Feaders server
Includes (one per line):
Select repository:
{% for entry in cached %}
{{ entry.name }} {{ entry.release }} {{ entry.arch }}
{% endfor %}
#include mode
add repository cache


|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Socket
This is a Socket
interface that is used to represent
a socket. This has a map that allows attributes to be associated
with the client connection. Attributes such as security details
or other transport related details can be exposed by placing them
in the socket map. The Processor
can then use these
attributes as required.
This provides the connected SocketChannel
that can
be used to read and write data asynchronously. The socket channel
must be selectable and in non-blocking mode. If the socket is not
in a non-blocking state the connection will not be processed.
| Method Summary | |
|---|---|
java.util.Map |
getAttributes()
This method is used to get the Map of attributes
for this socket. |
java.nio.channels.SocketChannel |
getChannel()
This method is used to acquire the SocketChannel
for the connection. |
javax.net.ssl.SSLEngine |
getEngine()
This is used to acquire the SSL engine used for security. |
| Method Detail |
|---|
javax.net.ssl.SSLEngine getEngine()
java.nio.channels.SocketChannel getChannel()
SocketChannel
for the connection. This allows the server to acquire the input
and output streams with which to communicate. It can also be
used to configure the connection and perform various network
operations that could otherwise not be performed.
java.util.Map getAttributes()
Map
of attributes
for this socket. The attributes map is used to maintain details
about the connection. Information such as security credentials
to client details can be placed within the attribute map.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |


ELIZABETH 1998 A film review by Timothy Voon Copyright 1998 Timothy Voon 3 * * * out of 5 * * * * * for the virgin Queen
Director: Shekhar Kapur Writer: Michael Hirst Cast: Cate Blanchett, Geoffrey Rush, Christopher Eccleston, Joseph Fiennes, Richard Attenborough, Fanny Ardendt, John Gielgud, Terence Rigbby, et al
In one of the most engrossing history lessons I've come to experience this year, ELIZABETH brings to life the tale of a princess who overcomes the adversity of the Catholic Church, to become the greatest Queen of her time. She is Elizabeth the First, Elizabeth the untouchable, Elizabeth the virgin, Elizabeth the servant of her country. She set herself immeasurable standards and never married. She rescued the flagging English economy and pushed it in the direction of power, despite being constantly under the threat of war from France and Spain. Without her there may never have emerged such great writers like William Shakespeare, for art flourished under her regime.
Her tale is set mostly in court, where the stuff of murder, intrigue and deceit are woven into a web of suspense. We watch how perilously close she comes to death, when her enemies had no greater wish than to see her beheaded. Neglected by her father, the incorrigible Henry the 8th, betrayed by her lover Robert Dudley (Joseph Fiennes), it is not surprising she clearly states that ‘I am the mistress of this house and no man will be my master'. In this context, we are shown why the Queen suppresses her femininity and does not allow herself to love or be loved, for treachery waits for her at every doorstep. In a time when women were deemed inferior to men, she boldly tells the House of Lords – ‘I may be a woman, but I have the heart of a man, if I so choose.' And so destiny was paved, when Elizabeth proved herself a worthy ruler, by choosing to serve her country above herself.
This is a fine performance by Cate Blanchett, a talented Australian actress, who deserves nothing less than an Oscar nomination for her portrayal of the Queen. Jeffrey Rush should not to be overlooked, as he gives another solid performance as the cunning Sir Francis Walshingham, the Queen's most trusted confidante and adviser. This may be considered a slow ride for some, but so are novels and they usually read better than movies. Like a novel, this story comes across more finely paced than most of the rushed 2 hour jobs out there today.
Timothy Voon e-mail<EMAIL_ADDRESS>Movie Archives http://us.imdb.com/M/reviews_by?Tim+Voon Movies In Melbourne http://www.labyrinth.net.au/~pfowler/week/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


If you require any more information or have any questions about our privacy policy, please feel free to contact us by email at<EMAIL_ADDRESS>At AnotherBit we consider the privacy of our visitors to be extremely important. This privacy policy describes in detail the types of personal information that is collected and recorded by AnotherBit and how we use it.
Log Files
Like many other web sites, anotherbit.com makes use of log files. These files merely log visitors to the site - usually a standard procedure for hosting companies and a part of hosting services's analytics. The information inside the log files includes internet protocol (IP) addresses, browser type, Internet Service Provider (ISP), date/time stamp, referring/exit pages, and clicks. This information is used to analyze trends, administer the site, track user's movement around the site, and gather demographic information. IP addresses, and other such information are not linked to any information that is personally identifiable.
Cookies and Web Beacons
anotherbit.com does not use cookies.
Mobile App Data Collection
AnotherBit does not collect any information from our mobile apps.
Children's Information
We believe it is important to provide added protection for children online. We encourage parents and guardians to spend time online with their children to observe, participate in and/or monitor and guide their online activity. anotherbit.com does not knowingly collect any personally identifiable information from children under the age of 13. If a parent or guardian believes that anotherbit.com has in its database the personally-identifiable information of a child under the age of 13, please contact us immediately (using the contact in the first paragraph) and we will use our best efforts to promptly remove such information from our records.
Consent
By using our website and/or mobile apps, you hereby consent to our privacy policy and agree to its terms.
Update
This Privacy Policy was last updated on: Friday, August 19th, 2016.
Should we update, amend or make any changes to our privacy policy, those changes will be posted here.


Compare Rack Web Servers for Ruby applications - ALL DISTROS, Ruby, Rails, Ubuntu, Debian, CentOS, Fedora, Arch Linux
Difficulty: 1
Ruby framework can interact with other external web servers through a web interface known as Rack. Exposure to these web servers enables interaction of Ruby applications with other web based applications and services. Rack is available as a Ruby Gem, and can be used by most Ruby web frameworks and libraries.
This article provides a quick overview and comparison of the commonly available web servers that can interact with Ruby via Racks.
Ruby Rack was released in 2007 by Christian Neukirchen with an aim to provide a modular web server interface for web-based interactions. Currently it is adapted and supported by a number of web servers and web applications, including Sinatra, Mongrel, Ruby on Rails and so on. It has also been a motivation for many other frameworks, including jackjs (JavaScript), Plack (Perl), Clack (Lisp) and many more.
Ruby's Rack is particularly helpful when working across enterprise applications having multiple environments for development, test, production, etc.
Rack also provides an intermediate lightweight layer called middleware between the web server and the framework. These layers enable users to perform additional activities like proxies, logging, testing, and authentication for the applications developed.
Here are the popular web servers that can interact with Racks.
Phusion Passenger is a multi language (Ruby, Python, Node.js) web and app server that provides a reliable and stable environment for faster application development. It provides a direct integration with Apache HTTP server and NGINX web servers, and is said to be up to 4x faster than several other Ruby app servers. Its free version offers a rich feature set covering most of the common needs of application deployment, while it's commercial variant Phusion Passenger Enterprise offers a wide variety of premium features for enterprise-grade application development making it a popular choice for enterprise level deployments.
Enterprise capabilities:
More detail on Phusion Passenger is available here - https://www.phusionpassenger.com
Puma is a small library that provides high speed HTTP server for Ruby/Rack applications. It offers a simple, fast and reliable work environment, and is useful for both development and production environment. Puma provides users with a flexibility to set the amount of minimum and maximum threads that can be used to perform its activity. For better performance, Ruby implementation with real threads like Rubinius and JRuby is recommended. It is largely based on the Mongrel's codebase and parsing algorithms. In Puma, Mongrel's operational structure is transformed to solely operate on “Rack” to eliminate complexities and support true parallelism.
Enterprise capabilities:
More detail on Puma for Ruby is available here -http://puma.io/
Thin is claimed to be the most secure, stable, fast and extensible Ruby web server. It is basically developed using the key aspects of Ruby's 3 best libraries: Mongrel parser, Event machine and Rack middleware. Components from Event machines makes Thin very fast at processing network I/O. Mongrel parser helps it parse HTTP faster, and Rack enables integration with other Ruby Web app frameworks.
Enterprise capabilities:
More detail on Thin is available here - https://github.com/macournoyer/thin/
Unicorn is another HTTP server for Rack applications, capable of handling multiple client requests simultaneously. It uses Mongrels Ragel HTTP Parser, but implementing a different architecture and execution mechanism. It is not focused on performing all activities by itself. Instead it focuses on performing only the actions that are necessary for an HTTP server and delegates remaining tasks to other components that can perform those tasks in an optimized manner.
Enterprise capabilities:
Each server discussed here, Puma, Phusion Passenger, Thin and Unicorn, has its own unique strengths and weaknesses. An overall understanding of various web servers supporting Racks can help in taking the right judgement for selecting the appropriate web server for your organization.


cimagen
generate images with closed-form expressions
scroll down to see more images,
click on something you like !
view on GitHub
← back to gallery


{% load static %}
{% include "quiz/navbar.html" %}
Let's Have Quiz
Test your skills.
We organize quizzes on various topics.
Sign up if you haven't already and get access to millions of quizzes on the topic of your interest.
Sign Up
{% include "quiz/footer.html" %}


NDC's 'NO' campaign is an unpatriotic betrayal of the Ghanaian people - NPP
The New Patriotic Party (NPP), has described the National Democratic Congress' (NDC) 'NO' campaign for the upcoming referendum as a betrayal of the Ghanaian people.
The National Referendum proposes the amendment of the 1992 constitution (Article 55(3) to allow political parties to sponsor candidates to local level elections, a situation outlawed by the constitution currently.
The NPP at a press conference on Monday, November 18, 2019, described the unexpected change of the NDC as an "unpatriotic betrayal of the Ghanaian people” and “a naked show of dishonesty, deceit, indecision, lack of candour and integrity from the biggest opposition party in the country".
John Boadu who is the General Secretary of the party addressed the media and said NDC is fully aware of how difficult it would be for the amendment to be carried through without a consensus, they pretended to be in support until this last minute.
"There is a strong school of thought, ladies and gentlemen, that the only thing that can explain the NDC’s unexpected U-turn is that they are fully aware of the difficult task of getting the amendment through without a consensus."
"They knew very well but pretended they were in favour until this last minute when huge state resources have been committed into such an important exercise", Mr Boadu lamented.
The NPP emphasized that a “Yes” vote was neither about the NPP nor NDC but what was good for Ghana.
The flagbearer for the NDC John Mahama said the party will only change their stance on the referendum if other amendments which they have proposed are carried out.
The referendum is scheduled for December 17, 2019.


|
PDNSim
Power grid analysis
|
G matrix class. More...
#include <gmat.h>
Public Member Functions | |
| GMat (int t_num_layers, int t_numC4) | |
| Constructor for creating the G matrix. More... | |
| ~GMat () | |
| Destructor of the G matrix. More... | |
| Node * | GetNode (NodeIdx t_node) |
| Function to return a pointer to the node with a index. More... | |
| Node * | GetNode (int t_x, int t_y, int t_l) |
| Function to return a pointer to the node with the x, y, and layer number. More... | |
| void | SetNode (NodeIdx t_node_loc, Node *t_node) |
| Function to set attributes of the node with index and node pointer. More... | |
| Node * | SetNode (int t_x, int t_y, int t_layer, BBox t_bBox) |
| Function to create a node. More... | |
| void | InsertNode (Node *t_node) |
| Function to insert a node into the matrix. More... | |
| void | Print () |
| Function that prints the G matrix for debug purposes. More... | |
| void | SetConductance (Node *t_node1, Node *t_node2, double t_cond) |
| Function to add the conductance value between two nodes. More... | |
| void | InitializeGmatDok () |
| Function to initialize the sparse dok matrix. More... | |
| NodeIdx | GetNumNodes () |
| Function that returns the number of nodes in the G matrix. More... | |
| CscMatrix * | GetGMat () |
| Function to return a pointer to the G matrix. More... | |
| void | GenerateStripeConductance (int t_l, odb::dbTechLayerDir::Value layer_dir, int t_x_min, int t_x_max, int t_y_min, int t_y_max, double t_rho) |
| Function to get the conductance of the strip of the power grid. More... | |
| void | AddC4Bump (int t_loc, int t_C4Num) |
| Function to add the voltage source based on C4 bump location. More... | |
| void | GenerateCSCMatrix () |
| Function which generates the compressed sparse column matrix. More... | |
| std::vector< Node * > | GetAllNodes () |
| Function to return a vector which contains a pointer to all the nodes. More... | |
G matrix class.
Class to store the G matrix. Contains the member functions for all node related operations.
|
inline |
Constructor for creating the G matrix.
|
inline |
Destructor of the G matrix.
| void GMat::AddC4Bump | ( | int | t_loc, |
| int | t_C4Num | ||
| ) |
Function to add the voltage source based on C4 bump location.
Function which add the values in the G matrix for the.
Directly updates the G matrix
| t_loc | Location of the C4 bump |
| t_C4Num | C4 bump number |
| void GMat::GenerateCSCMatrix | ( | ) |
Function which generates the compressed sparse column matrix.
Function which converts the DOK matrix into CSC format in a sparse method.
| void GMat::GenerateStripeConductance | ( | int | t_l, |
| odb::dbTechLayerDir::Value | layer_dir, | ||
| int | t_x_min, | ||
| int | t_x_max, | ||
| int | t_y_min, | ||
| int | t_y_max, | ||
| double | t_rho | ||
| ) |
Function to get the conductance of the strip of the power grid.
Function that gets the value of the conductance of the stripe and.
Directly updates the G matrix
| t_l | Layer number |
| layer_dir | Direction of the layer |
| t_x_min | Lower left x location |
| t_x_max | Upper right x location |
| t_y_min | Lower left y location |
| t_y_max | Upper right y location |
| std::vector< Node * > GMat::GetAllNodes | ( | ) |
Function to return a vector which contains a pointer to all the nodes.
Function to return a vector which contains pointers to all nodes.
| CscMatrix * GMat::GetGMat | ( | ) |
Function to return a pointer to the G matrix.
Function to return a pointer to the G matrix in CSC format.
Function to return a pointer to the node with a index.
| t_node | Node index number |
| Node * GMat::GetNode | ( | int | t_x, |
| int | t_y, | ||
| int | t_l | ||
| ) |
Function to return a pointer to the node with the x, y, and layer number.
Function to return a pointer to the node with a index.
| t_x | x location coordinate |
| t_y | y location coordinate |
| t_l | layer number |
| NodeIdx GMat::GetNumNodes | ( | ) |
Function that returns the number of nodes in the G matrix.
| void GMat::InitializeGmatDok | ( | ) |
Function to initialize the sparse dok matrix.
Function to initialize the Dictionary of keys (DOK) matrix.
Based on the size of the G matrix initialize the number of rows and columns
| void GMat::InsertNode | ( | Node * | t_node | ) |
Function to insert a node into the matrix.
Function to add a node to the matrix.
Directly updates the G node vector
| t_node | Location to insert the node |
| void GMat::Print | ( | ) |
Function that prints the G matrix for debug purposes.
Function to print the G matrix.


Jeremiah 41:17
And they departed, and dwelt in the habitation of Chimham, which is by Bethlehem, to go to enter into Egypt,


{% extends "layout_unbranded.html" %} {% block page_title %} Money Claims Prototype {% endblock %} {% block home_link %} index {% endblock %} {% block content %} --> Reset your password Enter your email address to reset your password. Email address {% include 'prototypes/prototype-may-2020/includes/contact.html' %} {% endblock %}
Enter your email address to reset your password.


Hello! This project is intended to explore the extent of the accuracy of the data that Facebook collects about a user's profile.
The labeled colored squares represent an 'interest' category that Facebook ascribed to my profile as of February 2021.
The labeled colored squares represent an 'interest' category that Facebook ascribed to my profile as of February 2021.


|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.tootallnate.websocket.WebSocketClient
public abstract class WebSocketClient
The WebSocketClient is an abstract class that expects a valid "ws://" URI to connect to. When connected, an instance recieves important events related to the life of the connection. A subclass must implement onOpen, onClose, and onMessage to be useful. An instance can send messages to it's connected server via the send method.
| Nested Class Summary | |
|---|---|
static class |
WebSocketClient.Draft
|
| Constructor Summary | |
|---|---|
WebSocketClient(java.net.URI serverUri,
WebSocketClient.Draft draft)
Constructs a WebSocketClient instance and sets it to the connect to the specified URI. |
| Method Summary | |
|---|---|
void |
close()
Calls close on the underlying SocketChannel, which in turn closes the socket connection, and ends the client socket thread. |
void |
connect()
Starts a background thread that attempts and maintains a WebSocket connection to the URI specified in the constructor or via setURI. |
WebSocketListener.Draft |
getDraft()
Called to retrieve the Draft of this listener. |
java.net.URI |
getURI()
Gets the URI that this WebSocketClient is connected to. |
abstract void |
onClose()
|
void |
onClose(WebSocket conn)
Calls subclass' implementation of onClose. |
boolean |
onHandshakeRecieved(WebSocket conn,
java.lang.String handshake,
byte[] reply)
Parses the server's handshake to verify that it's a valid WebSocket handshake. |
abstract void |
onMessage(java.lang.String message)
|
void |
onMessage(WebSocket conn,
java.lang.String message)
Calls subclass' implementation of onMessage. |
abstract void |
onOpen()
|
void |
onOpen(WebSocket conn)
Calls subclass' implementation of onOpen. |
void |
run()
|
void |
send(java.lang.String text)
Sends text to the connected WebSocket server. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WebSocketClient(java.net.URI serverUri, WebSocketClient.Draft draft)
serverUri
- The URI of the WebSocket server to connect to.| Method Detail |
|---|
public java.net.URI getURI()
public void connect()
public void close() throws java.io.IOException
java.io.IOException
- When socket related I/O errors occur.public void send(java.lang.String text) throws java.io.IOException
text
- The String to send to the WebSocket server.
java.io.IOException
- When socket related I/O errors occur.public void run()
run
in interface java.lang.Runnable
public boolean onHandshakeRecieved(WebSocket conn, java.lang.String handshake, byte[] reply) throws java.io.IOException, java.security.NoSuchAlgorithmException
conn
- The WebSocket
instance who's handshake has been recieved.
In the case of WebSocketClient, this.conn == conn.handshake
- The entire UTF-8 decoded handshake from the connection.
java.io.IOException
- When socket related I/O errors occur.
java.security.NoSuchAlgorithmException
public void onMessage(WebSocket conn, java.lang.String message)
conn
- message
- public void onOpen(WebSocket conn)
conn
- public void onClose(WebSocket conn)
conn
- public WebSocketListener.Draft getDraft()
public abstract void onMessage(java.lang.String message)
public abstract void onOpen()
public abstract void onClose()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |


evaluates given check expression as a strong invariant never ever violated.
Use assert to ensure an assumption at runtime. When running with assertions enabled, the check expression is evaluated immediately. A check expression evaluating to false signals a violation of invariant that should never happen. If it does, a hard error is output unconditionally to the console and an AssertionError is thrown.
Do not use assertions as a means of ordinary error checking. Here are some valid examples of assertions:
assert(() => Date.now() > 0, 'current time millis can not be before 1970 start of time!'); assert(() => total_price >= item_price, 'total is sum of individual prices and thus can not be less than each one!'); assert(() => num*num >= 0, 'squared num is less than zero!');
expression validating an assumption of the calling code, typically an arrow-function expression.
optional explanation of disaster.
used in catch-blocks or Promise rejection callbacks to ensure the caught value is an Error.
to check.
of disaster.
value evaluating to true stating error is an instance of Error.
uses toSource() if available, falling back to toString() otherwise.
to generate source of.
of func.
Generated using TypeDoc
console featuring coloring, fontSize and enabled state.


Unspoiled Nodes
Fishing
Planned Features
Change Log
Feedback
Current Eorzea Time:
Mining Nodes
Botany Nodes
Mining Level:
450
Botany Level:
450
LOADING
Version 1.5 - April 2, 2015
Go to top


Britons feared missing after volcano erupts in New Zealand
White Island erupted with a large plume of ash and steam on Monday.
British nationals are feared to be among those missing after a volcanic island in New Zealand erupted, killing at least five people and injuring more than a dozen others.
A missing persons list which aims to reunite concerned family members with their loved ones shows up to five people with a UK birthplace still unaccounted for.
White Island erupted with a large plume of ash and steam on Monday while dozens of tourists were exploring New Zealand’s most active volcano.
Aerial footage showed “no signs of life” on the island following the eruption, according to New Zealand police, who said they do not expect to find any more survivors.
Deputy commissioner John Tims said New Zealanders and overseas tourists were among the dead, missing or injured.
A spokesman for the UK’s Foreign and Commonwealth Office (FCO) said they are seeking further information.
He said: “We are in close contact with the New Zealand authorities following the volcanic eruption on Whakaari/White Island and are seeking further information.”
Mr Tims said the number of those missing remained in double figures but he could not confirm an exact amount, adding that there were fewer than 50 people on the island at the time and 23 had been taken off, including the five dead.
He said most of the 18 who survived were injured, including some who were severely burned.
Rescue teams were unable to access the island on foot due to unstable conditions hours after the eruption, which occurred shortly after 2pm local time on Monday.
Mr Tims said there had been no contact with any of those who were unaccounted for.
The New Zealand Red Cross activated the missing list to allow people to self-register as safe and well, or to register details of a person they have lost contact with.
Information on the list is submitted by members of public.
Angela Sutherland, general manager of disaster risk management at the New Zealand Red Cross, urged anyone worried about friends or family to “first contact them as you normally would”.
“Using your own channels can help to speed up the process and helps response agencies as well,” she said.
“If you cannot make contact, please register them through our Family Links website.”
White Island is in the Bay of Plenty, near the town of Tauranga on North Island.
The active volcano is a tourist hotspot but has erupted several times before, most recently in 2016 and during the 2012/13 period.
Footage posted on social media by tourists in nearby boats showed thick smoke billowing up to 12,000ft in the air as people could be spotted along the shore of the island.
Some of those involved were guests from the Royal Caribbean International cruise ship Ovation of the Seas.
A Royal Caribbean spokesman said: “We are working together with local authorities, and we are providing all the help and care we can to our guests and their families, including offering medical resources and counselling.
“We are also sending staff members from both our ship and our Sydney and Auckland offices to assist family members however possible.
“Ovation of the Seas will remain in port as as long as needed to assist with the situation.”
The vessel was due to sail to the capital Wellington on Monday night but the company said it would remain in the Tauranga port overnight until it learned more about the situation.


Virtual Playing Cards (Free version)
Free version comes with low-quality card image, no right control panel, and some features removed.
- Press
F1
(or double click on the green area) to open or close this help window. - Click and drag a card anywhere.
- The card will slide with friction, and bounce if it hits the edge.
- Double-click to flip a card over.
- Click and drag on the green area to draw a box and select a group of cards.
- Click and drag a group of cards. Or, double-click to flip them accordingly.
- To deselect current card(s), click anywhere on the green area or on another card.


texst. texst. texst. texst. texst. texst. texst. texst. texst. texst. texst. texst. texst. texst. texst. texst.
Bootstrap Coursetext. text. text. text. text. text. text. text.
text. text. text. text. text. text. text. text.
text. text. text. text. text. text. text. text.
Built with the latest, HTML
Built with the latest, angellist
Built with the latest, CSS3
I see Logo support as more of a partner to m company than a resource. Ican pick up the phone and talk to anyone at any time and the way that they interact with us as a business makes it really simple.
— Logo,Small Business Owner
I see Logo support as more of a partner to m company than a resource. Ican pick up the phone and talk to anyone at any time and the way that they interact with us as a business makes it really simple.
— Logo,Professional Photographer
Want to learn more about developing Bootstrap Themes?
Bootstrap Course


wieldlinux.com
Today’s tip is to ask how they are doing, and to chat.
The times I’ve used this tip, I’ve had good results.
Today’s tip is to tell the person that this is why you’re calling.


Try to answer the following code-related questions within the time limit. Keep in mind that the incorrect answers will penalize your score/time by fifteen seconds!


Sketch / Gallery
This gallery highlights some of the most recent and popular sketches drawn using
Sketch
Start Sketching
Featured
Load More
New
Load More
Popular
Load More


Library: Foundation
Package: Logging
Header: Poco/ConsoleChannel.h
Description
A channel that writes to an ostream.
Only the message's text is written, followed by a newline.
Messages can be colored depending on priority. The console device must support ANSI escape codes in order to display colored messages.
To enable message coloring, set the "enableColors" property to true (default). Furthermore, colors can be configured by setting the following properties (default values are given in parenthesis):
- traceColor (gray)
- debugColor (gray)
- informationColor (default)
- noticeColor (default)
- warningColor (yellow)
- errorColor (lightRed)
- criticalColor (lightRed)
- fatalColor (lightRed)
The following color values are supported:
- default
- black
- red
- green
- brown
- blue
- magenta
- cyan
- gray
- darkgray
- lightRed
- lightGreen
- yellow
- lightBlue
- lightMagenta
- lightCyan
- white
Chain this channel to a FormattingChannel with an appropriate Formatter to control what is contained in the text.
Similar to StreamChannel, except that a static mutex is used to protect against multiple console channels concurrently writing to the same stream.
Inheritance
Direct Base Classes: Channel
All Base Classes: Channel, Configurable, RefCountedObject
Member Summary
Member Functions: formatColor, getProperty, initColors, log, parseColor, setProperty
Inherited Functions: close, duplicate, getProperty, log, open, referenceCount, release, setProperty
Enumerations
Color
CC_DEFAULT = 0x0027
CC_BLACK = 0x001e
CC_RED = 0x001f
CC_GREEN = 0x0020
CC_BROWN = 0x0021
CC_BLUE = 0x0022
CC_MAGENTA = 0x0023
CC_CYAN = 0x0024
CC_GRAY = 0x0025
CC_DARKGRAY = 0x011e
CC_LIGHTRED = 0x011f
CC_LIGHTGREEN = 0x0120
CC_YELLOW = 0x0121
CC_LIGHTBLUE = 0x0122
CC_LIGHTMAGENTA = 0x0123
CC_LIGHTCYAN = 0x0124
CC_WHITE = 0x0125
Constructors
ColorConsoleChannel
Creates the channel and attaches std::clog.
ColorConsoleChannel
ColorConsoleChannel(
std::ostream & str
);
Creates the channel using the given stream.
Destructor
~ColorConsoleChannel
Member Functions
getProperty
std::string getProperty(
const std::string & name
) const;
Returns the value of the property with the given name. See setProperty() for a description of the supported properties.
See also: Poco::Channel::getProperty()
log
void log(
const Message & msg
);
Logs the given message to the channel's stream.
See also: Poco::Channel::log()
setProperty
void setProperty(
const std::string & name,
const std::string & value
);
Sets the property with the given name.
The following properties are supported:
- enableColors: Enable or disable colors.
- traceColor: Specify color for trace messages.
- debugColor: Specify color for debug messages.
- informationColor: Specify color for information messages.
- noticeColor: Specify color for notice messages.
- warningColor: Specify color for warning messages.
- errorColor: Specify color for error messages.
- criticalColor: Specify color for critical messages.
- fatalColor: Specify color for fatal messages.
See the class documentation for a list of supported color values.
See also: Poco::Channel::setProperty()
formatColor
std::string formatColor(
Color color
) const;
initColors
void initColors();
parseColor
Color parseColor(
const std::string & color
) const;


Reece James: Frank Lampard hints at new position in future after impressing against Crystal Palace
The 19-year-old shone in his first Premier League start against the Eagles
by Jack RathbornFrank Lampard has hinted at Reece James playing in midfield in the future after the Chelsea youngster's impressive full Premier League debut against Crystal Palace.
The 19-year-old performed admirably at right-back in place of Cesar Azpilicueta, enjoying great success up against Wilfried Zaha.

"Right-back would be his favoured position," Lampard claimed. "Whether it be there, right wing-back or right of a three.
"As he’s coming into the team, you’d see him there but he does have that all-round game that he could handle playing centrally in midfield if needs be.
"At the moment we’ve got good players in there who are used to playing in there anyway, but he could always do that as he matures through his career."
Lampard now has a selection headache for after the international break.
He could bring Azpilicueta back in, or utilise James as an extra man in midfield against the Premier League champions Man City, who sit a point behind the Blues after defeat to Liverpool.


Before Change
Get the relative log-coverage of chrX in a sample.
if chr_x is None:
chr_x = guess_chr_x(probes)
cvgs_chrx = probes[probes.chromosome == chr_x]["coverage"]
if not len(cvgs_chrx):
echo("*WARNING* No", chr_x, "found in probes; check the input")
return
chr_y = ("chrY" if chr_x.startswith("chr") else "Y")
After Change
if "probes" in probes:
// Weight segments by number of probes to ensure good behavior
auto_sizes = autosomes["probes"]
x_sizes = chromosome_x["probes"]
// ENH: weighted median
rel_chrx_cvg = (numpy.average(x_cvgs, weights=x_sizes) -
numpy.average(auto_cvgs, weights=auto_sizes))
else:
rel_chrx_cvg = numpy.median(x_cvgs) - numpy.median(auto_cvgs)
return rel_chrx_cvg


Overview [Level 1]
(current)
Population
Money
Diamond
Electricity
Wood
List
Blue Victorian House
Market
Edit
Menu


Squarepusher's first album in five years to come via Warp
Listen to his new track, 'Vortrack' ahead of the LP release
by Devyn WhiteEnglish electronic musician Tom Jenkinson, better known as Squarepusher, will be releasing his first album since 2015, 'Be Up A Hello' via Warp Records on January 31. The new record, influenced by the DIY Essex rave scene, features the textures of both analogue and digital hardware.
Read this next: Squarepusher and Tim Hecker remix the classical composition 'Timber'
In the past couple years, Jenkinson has been steady at work outside of his Squarepusher moniker, forming the experimental techno-electro band, Shobaleader One to reinvent his Squarepusher tracks, composing scores for BBC Children's television channel, CBeebies and collaborating with James McVinnie on the album, 'All Night Chroma'. Ahead of his upcoming anticipated release, he will be releasing a two-track 12-inch including 'Vortrack' and a Fracture remix of the track on December 6.
Read this next: Warp celebrates its 30th anniversary with three-day NTS takeover
According to a press release, 'Be Up A Hello' “returned to using a bewildering array of vintage analog and digital hardware, the same equipment that first helped him develop his sound in the early ’90s," reviving sounds of Squarepusher's past.
Check out both versions of 'Vortrack' below.
Read more here: Get the best of Mixmag direct to your DMs
Mixmag Weekly
Get closer to dance music. Sign up for the Mixmag newsletter
Sign me up!


North Eastern Indira Gandhi Regional Institute of Health and Medical Sciences (NEIGRIHMS) is a medical institute of India in Shillong, Meghalaya. It is located on the outskirts of the educational hub hills City of the Northeastern India, Shillong, the "Scotland of the East". The present full-fledged tertiary care hospital facilities started at its permanent campus at Mawdiangdiang, Shillong in the year 2007. It is an Autonomous Institute under the Ministry of Health and Family Welfare, Govt. of India in 1987 and declared as "Centre of excellence" by the parliament of India.
Shillong G.P.O is a Speed Post Head Post Office aka Dak Ghar in East Khasi Hills, Meghalaya which deliver the mails and take bookings. Postal Department of India alloted 793001 PIN Code to this office. In terms of location, Shillong G.P.O PO is situtated in the Shillong taluk, Mylliem postal sub-district, Shillong HQ postal region, Meghalaya postal division under the North Eastern postal circle.
Civil Hospital in Nongpoh, Shillong
Regarded as one of the best healthcare providers, Civil Hospital, Nongpoh has been providing a remarkable service ever since its inception. Equipped with advanced medical equipment and technologies, it has been constantly achieving milestones in the medical field.


|
qLibc
|
HTTP client object. More...
Go to the source code of this file.
Macros | |
| #define | HTTP_NO_RESPONSE (0) |
| #define | HTTP_CODE_CONTINUE (100) |
| #define | HTTP_CODE_OK (200) |
| #define | HTTP_CODE_CREATED (201) |
| #define | HTTP_CODE_NO_CONTENT (204) |
| #define | HTTP_CODE_MULTI_STATUS (207) |
| #define | HTTP_CODE_MOVED_TEMPORARILY (302) |
| #define | HTTP_CODE_NOT_MODIFIED (304) |
| #define | HTTP_CODE_BAD_REQUEST (400) |
| #define | HTTP_CODE_FORBIDDEN (403) |
| #define | HTTP_CODE_NOT_FOUND (404) |
| #define | HTTP_CODE_METHOD_NOT_ALLOWED (405) |
| #define | HTTP_CODE_REQUEST_TIME_OUT (408) |
| #define | HTTP_CODE_REQUEST_URI_TOO_LONG (414) |
| #define | HTTP_CODE_INTERNAL_SERVER_ERROR (500) |
| #define | HTTP_CODE_NOT_IMPLEMENTED (501) |
| #define | HTTP_CODE_SERVICE_UNAVAILABLE (503) |
| #define | HTTP_PROTOCOL_11 "HTTP/1.1" |
| #define | SET_TCP_LINGER_TIMEOUT (15) /*< linger seconds, 0 for disable */ |
| #define | SET_TCP_NODELAY (1) /*< 0 for disable */ |
| #define | MAX_SHUTDOWN_WAIT (100) /*< maximum shutdown wait, unit is ms */ |
| #define | MAX_ATOMIC_DATA_SIZE (32 * 1024) /*< maximum sending bytes */ |
Functions | |
| qhttpclient_t * | qhttpclient (const char *destname, int port) |
| Initialize & create new HTTP client. | |
| static bool | setssl (qhttpclient_t *client) |
| qhttpclient->setssl(): Sets connection to HTTPS connection | |
| static void | settimeout (qhttpclient_t *client, int timeoutms) |
| qhttpclient->settimeout(): Sets connection wait timeout. | |
| static void | setkeepalive (qhttpclient_t *client, bool keepalive) |
| qhttpclient->setkeepalive(): Sets KEEP-ALIVE feature on/off. | |
| static void | setuseragent (qhttpclient_t *client, const char *useragent) |
| qhttpclient->setuseragent(): Sets user-agent string. | |
| static bool | open_ (qhttpclient_t *client) |
| qhttpclient->open(): Opens a connection to the remote host. | |
| static bool | head (qhttpclient_t *client, const char *uri, int *rescode, qlisttbl_t *reqheaders, qlisttbl_t *resheaders) |
| qhttpclient->head(): Sends a HEAD request. | |
| static bool | get (qhttpclient_t *client, const char *uri, int fd, off_t *savesize, int *rescode, qlisttbl_t *reqheaders, qlisttbl_t *resheaders, bool(*callback)(void *userdata, off_t recvbytes), void *userdata) |
| qhttpclient->get(): Downloads a file from the remote host using GET method. | |
| static bool | put (qhttpclient_t *client, const char *uri, int fd, off_t length, int *rescode, qlisttbl_t *reqheaders, qlisttbl_t *resheaders, bool(*callback)(void *userdata, off_t sentbytes), void *userdata) |
| qhttpclient->put(): Uploads a file to the remote host using PUT method. | |
| static void * | cmd (qhttpclient_t *client, const char *method, const char *uri, void *data, size_t size, int *rescode, size_t *contentslength, qlisttbl_t *reqheaders, qlisttbl_t *resheaders) |
| qhttpclient->cmd(): Sends a custom request(method) to the remote host and reads it's response. | |
| static bool | sendrequest (qhttpclient_t *client, const char *method, const char *uri, qlisttbl_t *reqheaders) |
| qhttpclient->sendrequest(): Sends a HTTP request to the remote host. | |
| static int | readresponse (qhttpclient_t *client, qlisttbl_t *resheaders, off_t *contentlength) |
| qhttpclient->readresponse(): Reads HTTP response header from the remote host. | |
| static ssize_t | gets_ (qhttpclient_t *client, char *buf, size_t bufsize) |
| qhttpclient->gets(): Reads a text line from a HTTP/HTTPS stream. | |
| static ssize_t | read_ (qhttpclient_t *client, void *buf, size_t nbytes) |
| qhttpclient->read(): Reads data from a HTTP/HTTPS stream. | |
| static ssize_t | write_ (qhttpclient_t *client, const void *buf, size_t nbytes) |
| qhttpclient->write(): Writes data to a HTTP/HTTPS stream. | |
| static off_t | recvfile (qhttpclient_t *client, int fd, off_t nbytes) |
| qhttpclient->recvfile(): Reads data from a HTTP/HTTPS stream and save into a file descriptor. | |
| static off_t | sendfile_ (qhttpclient_t *client, int fd, off_t nbytes) |
| qhttpclient->sendfile(): Send file data to a HTTP/HTTPS stream. | |
| static bool | _close (qhttpclient_t *client) |
| qhttpclient->close(): Closes the connection. | |
| static void | _free (qhttpclient_t *client) |
| qhttpclient->free(): Free object. | |
HTTP client object.
qhttpclient implements HTTP client.
Example code for simple HTTP GET operation.
Example code for multiple PUT operation using same keep-alive connection.
Definition in file qhttpclient.c.
| #define HTTP_NO_RESPONSE (0) |
Definition at line 188 of file qhttpclient.c.
| #define HTTP_CODE_CONTINUE (100) |
Definition at line 189 of file qhttpclient.c.
| #define HTTP_CODE_OK (200) |
Definition at line 190 of file qhttpclient.c.
| #define HTTP_CODE_CREATED (201) |
Definition at line 191 of file qhttpclient.c.
| #define HTTP_CODE_NO_CONTENT (204) |
Definition at line 192 of file qhttpclient.c.
| #define HTTP_CODE_MULTI_STATUS (207) |
Definition at line 193 of file qhttpclient.c.
| #define HTTP_CODE_MOVED_TEMPORARILY (302) |
Definition at line 194 of file qhttpclient.c.
| #define HTTP_CODE_NOT_MODIFIED (304) |
Definition at line 195 of file qhttpclient.c.
| #define HTTP_CODE_BAD_REQUEST (400) |
Definition at line 196 of file qhttpclient.c.
| #define HTTP_CODE_FORBIDDEN (403) |
Definition at line 197 of file qhttpclient.c.
| #define HTTP_CODE_NOT_FOUND (404) |
Definition at line 198 of file qhttpclient.c.
| #define HTTP_CODE_METHOD_NOT_ALLOWED (405) |
Definition at line 199 of file qhttpclient.c.
| #define HTTP_CODE_REQUEST_TIME_OUT (408) |
Definition at line 200 of file qhttpclient.c.
| #define HTTP_CODE_REQUEST_URI_TOO_LONG (414) |
Definition at line 201 of file qhttpclient.c.
| #define HTTP_CODE_INTERNAL_SERVER_ERROR (500) |
Definition at line 202 of file qhttpclient.c.
| #define HTTP_CODE_NOT_IMPLEMENTED (501) |
Definition at line 203 of file qhttpclient.c.
| #define HTTP_CODE_SERVICE_UNAVAILABLE (503) |
Definition at line 204 of file qhttpclient.c.
| #define HTTP_PROTOCOL_11 "HTTP/1.1" |
Definition at line 206 of file qhttpclient.c.
| #define SET_TCP_LINGER_TIMEOUT (15) /*< linger seconds, 0 for disable */ |
Definition at line 211 of file qhttpclient.c.
| #define SET_TCP_NODELAY (1) /*< 0 for disable */ |
Definition at line 212 of file qhttpclient.c.
| #define MAX_SHUTDOWN_WAIT (100) /*< maximum shutdown wait, unit is ms */ |
Definition at line 213 of file qhttpclient.c.
| #define MAX_ATOMIC_DATA_SIZE (32 * 1024) /*< maximum sending bytes */ |
Definition at line 214 of file qhttpclient.c.
| qhttpclient_t * qhttpclient | ( | const char * | destname, |
| int | port | ||
| ) |
Initialize & create new HTTP client.
| destname | remote address, one of IP address, FQDN domain name and URI. |
| port | remote port number. (can be 0 when destname is URI) |
Definition at line 245 of file qhttpclient.c.
|
static |
qhttpclient->setssl(): Sets connection to HTTPS connection
| client | qhttpclient object pointer |
Definition at line 323 of file qhttpclient.c.
|
static |
qhttpclient->settimeout(): Sets connection wait timeout.
| client | qhttpclient object pointer |
| timeoutms | timeout mili-seconds. 0 for system defaults |
Definition at line 363 of file qhttpclient.c.
|
static |
qhttpclient->setkeepalive(): Sets KEEP-ALIVE feature on/off.
| client | qhttpclient object pointer |
| keepalive | true to set keep-alive on, false to set keep-alive off |
Definition at line 380 of file qhttpclient.c.
|
static |
qhttpclient->setuseragent(): Sets user-agent string.
| client | qhttpclient object pointer |
| useragent | user-agent string |
Definition at line 394 of file qhttpclient.c.
|
static |
qhttpclient->open(): Opens a connection to the remote host.
| client | qhttpclient object pointer |
Definition at line 417 of file qhttpclient.c.
|
static |
qhttpclient->head(): Sends a HEAD request.
| client | qhttpclient object pointer. |
| uri | URL encoded remote URI for downloading file. ("/path" or "http://.../path") |
| rescode | if not NULL, remote response code will be stored. (can be NULL) |
| reqheaders | qlisttbl_t pointer which contains additional user request headers. (can be NULL) |
| resheaders | qlisttbl_t pointer for storing response headers. (can be NULL) |
Definition at line 558 of file qhttpclient.c.
|
static |
qhttpclient->get(): Downloads a file from the remote host using GET method.
| client | qhttpclient object pointer. |
| uri | URL encoded remote URI for downloading file. ("/path" or "http://.../path") |
| fd | opened file descriptor for writing. |
| savesize | if not NULL, the length of stored bytes will be stored. (can be NULL) |
| rescode | if not NULL, remote response code will be stored. (can be NULL) |
| reqheaders | qlisttbl_t pointer which contains additional user request headers. (can be NULL) |
| resheaders | qlisttbl_t pointer for storing response headers. (can be NULL) |
| callback | set user call-back function. (can be NULL) |
| userdata | set user data for call-back. (can be NULL) |
Definition at line 694 of file qhttpclient.c.
|
static |
qhttpclient->put(): Uploads a file to the remote host using PUT method.
| client | qhttpclient object pointer. |
| uri | remote URL for uploading file. ("/path" or "http://.../path") |
| fd | opened file descriptor for reading. |
| length | send size. |
| rescode | if not NULL, remote response code will be stored. (can be NULL) |
| reqheaders | qlisttbl_t pointer which contains additional user request headers. (can be NULL) |
| resheaders | qlisttbl_t pointer for storing response headers. (can be NULL) |
| callback | set user call-back function. (can be NULL) |
| userdata | set user data for call-back. (can be NULL) |
Definition at line 926 of file qhttpclient.c.
|
static |
qhttpclient->cmd(): Sends a custom request(method) to the remote host and reads it's response.
| client | qhttpclient object pointer. |
| method | method name. |
| uri | remote URL for uploading file. ("/path" or "http://.../path") |
| data | data to send. (can be NULL) |
| size | data size. |
| rescode | if not NULL, remote response code will be stored. (can be NULL) |
| contentslength | if not NULL, the contents length will be stored. (can be NULL) |
| reqheaders | qlisttbl_t pointer which contains additional user request headers. (can be NULL) |
| resheaders | qlisttbl_t pointer for storing response headers. (can be NULL) |
Definition at line 1099 of file qhttpclient.c.
|
static |
qhttpclient->sendrequest(): Sends a HTTP request to the remote host.
| client | qhttpclient object pointer |
| method | HTTP method name |
| uri | URI string for the method. ("/path" or "http://.../path") |
| reqheaders | qlisttbl_t pointer which contains additional user request headers. (can be NULL) |
Definition at line 1194 of file qhttpclient.c.
|
static |
qhttpclient->readresponse(): Reads HTTP response header from the remote host.
| client | qhttpclient object pointer |
| resheaders | qlisttbl_t pointer for storing response headers. (can be NULL) |
| contentlength | length of content body(or -1 for chunked transfer encoding) will be stored. (can be NULL) |
Definition at line 1293 of file qhttpclient.c.
|
static |
qhttpclient->gets(): Reads a text line from a HTTP/HTTPS stream.
| client | qhttpclient object pointer |
| buf | data buffer pointer |
| bufsize | buffer size |
Definition at line 1372 of file qhttpclient.c.
|
static |
qhttpclient->read(): Reads data from a HTTP/HTTPS stream.
| client | qhttpclient object pointer. |
| buf | a buffer pointer for storing content. (can be NULL, then read & throw out content) |
| length | content size to read. |
Definition at line 1436 of file qhttpclient.c.
|
static |
qhttpclient->write(): Writes data to a HTTP/HTTPS stream.
| client | qhttpclient object pointer. |
| buf | a data pointer. |
| length | content size to write. |
Definition at line 1490 of file qhttpclient.c.
|
static |
qhttpclient->recvfile(): Reads data from a HTTP/HTTPS stream and save into a file descriptor.
| client | qhttpclient object pointer. |
| fd | output file descriptor |
| nbytes | the number of bytes to read and save. |
Definition at line 1534 of file qhttpclient.c.
|
static |
qhttpclient->sendfile(): Send file data to a HTTP/HTTPS stream.
| client | qhttpclient object pointer. |
| fd | input file descriptor |
| nbytes | the number of bytes to read and send. |
Definition at line 1580 of file qhttpclient.c.
|
static |
qhttpclient->close(): Closes the connection.
| qhttpclient_t | HTTP object pointer |
Definition at line 1628 of file qhttpclient.c.
|
static |
qhttpclient->free(): Free object.
| qhttpclient_t | HTTP object pointer |
Definition at line 1678 of file qhttpclient.c.


Gayle on Jozi Stars: This is not a champions team
Cape Town - West Indian batsman Chris Gayle bid an explosive farewell to South Africa and the Jozi Stars in the ongoing Mzansi Super League (MSL).
The Jozi Stars, who are the defending champions, have failed to register a win thus far after six games in this year's competition.
Gayle, who signed up as a marquee international player for the franchise, finished his MSL campaign with 101 runs in those six matches.
The 40-year-old revealed that he initially didn't want to partake in the second edition of the MSL, but ultimately changed his mind following the success and spirit he experienced in the Stars' camp last year.
Gayle went on to launch a surprising attack on the Stars and their players, stating that they needed to "dig deep" to find the root to their current on-field woes.
"This is not a champions team and this is not how champions should play to defend a title," Gayle told reporters on Sunday at the Wanderers.
"Most of the times it's been a lot of uncertainty from guys and I don't know if it's an off the field problem, I don't know what's happening but I think individuals, the franchise itself, needs to look at themselves and dig deep with what is happening.
"This is not the brand of cricket we've been playing so something is wrong. I don't know what it is but we need to find out what's wrong."
The Stars fell to their sixth consecutive defeat against the Tshwane Spartans this past weekend, which led to many asking "Who is to blame?
Gayle, who hasn't been in form despite scoring 54 on Sunday, revealed that if he fails to perform, he almost sees himself as a "burden" and that he never gets any respect.
"As soon as I don't perform in two or three games - most of the time - Chris Gayle is the burden and I am not talking about this team only," said Gayle, who referred to himself in the third person.
"I'm not going to get respect and people don't remember what you've done for them... Chris Gayle never get no sort of respect.
"It's just like once Chris Gayle fails, it's the end of his career, he is no good, he is the worst player and all these other things. I've generally overcome these things and I expect these things and I have lived with these things," he ended.
Gayle will be replaced by Pakistan all-rounder Shoaib Malik for the remainder of the competition.
The Stars' next game will see them host the Paarl Rocks on Sunday at the Wanderers (10:00).
- Compiled by Lynn Butler


On the top left of the plotting area are buttons for some options.
For more details copy and visit https://ptolemy.eecs.berkeley.edu/java/ptplot5.10/ptolemy/plot/doc/index.htm
Sometimes you want to display only a part of the x-range. To do this you select a rectangle by dragging the mouse. Now select the [use x-zoom] button. The selected x-range will now be used for displaying the plots.
If you select a new rectangle the selection will disapear.


Hemi JavaScript Framework
Hemi.app.space.definitions
Description
Application Space Definitions define the mapping between XML and XHTML nodes and JavaScript constructors. The constructors can be from any framework or library, not just Hemi.
Class Index
static Hemi.app.space.definitions.service
version 4.0.1
Static implementation of hemi.app.space.definitions.serviceImpl
Hemi.app.space.definitions.service
version 4.0.1
This service defines space implementations for use by the Hemi Space Service.
Index
Method Index
-
public clearDefinitions: Clears all definitions.
-
public newDefinition: Creates a new implementation definition. An implementation definition maps a node name to a specified constructor.
Methods
clearDefinitions
Clears all definitions.
Syntax
void clearDefinitions(
)
newDefinition
Creates a new implementation definition. An implementation definition maps a node name to a specified constructor.
Syntax
object = newDefinition(
aMatchNodes, sNameSpace, sConstructor, aParams, bSwitchContext, sContextPath, sSwapName
)
Parameters
-
aMatchNodes as array : Array of node names that should match the specified constructor.
-
sNameSpace as String (optional): JavaScript Class namespace, such as MyCompany.MyLibrary. If the value is "abstract", the definition is treated as a pass-through.
-
sConstructor as String (optional): JavaScript Class constructor, such as MyClass.
-
aParams as array (optional): Array of parameters to pass to the constructor. The parameter values can use the Object Request Alias (ORA) for passing in node attribute values from the container (ora:attr_{name}), or object references such as the Space (space_element or space_object). Refer to the internal Space _parseORAParam function for details.
-
bSwitchContext as boolean (optional): Bit indicating that an XML or XHTML node is returned from the constructor, and that the Space service should continue processing into the new object context.
-
sContextPath as String (optional): XPath to use to find the object context to switch into.
-
sSwapName as String (optional): Element name to use (e.g.: span) to swap a custom node, such is import-xml, to contain valid XHTML markup.
Returns
object as object: A new internal space definition.
[ Hemi JavaScript Framework - Stephen W. Cote, 2002 - 2013. ]


3 references to DriveQualified
System.Management.Automation (3)
engine\VariablePath.cs (3)
23
UnscopedVariableMask = Local | Script | Global | Private | Function |
DriveQualified
,
183
_flags = VariablePathFlags.
DriveQualified
;
266
public bool IsDriveQualified { get { return (_flags & VariablePathFlags.
DriveQualified
) != 0; } }


| 1 | /* | |
| 2 | * JBoss, Home of Professional Open Source. | |
| 3 | * Copyright 2014 Red Hat, Inc., and individual contributors | |
| 4 | * as indicated by the @author tags. | |
| 5 | * | |
| 6 | * Licensed under the Apache License, Version 2.0 (the "License"); | |
| 7 | * you may not use this file except in compliance with the License. | |
| 8 | * You may obtain a copy of the License at | |
| 9 | * | |
| 10 | * http://www.apache.org/licenses/LICENSE-2.0 | |
| 11 | * | |
| 12 | * Unless required by applicable law or agreed to in writing, software | |
| 13 | * distributed under the License is distributed on an "AS IS" BASIS, | |
| 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| 15 | * See the License for the specific language governing permissions and | |
| 16 | * limitations under the License. | |
| 17 | */ | |
| 18 | ||
| 19 | package io.undertow.server.handlers.cache; | |
| 20 | ||
| 21 | import io.undertow.Handlers; | |
| 22 | import io.undertow.server.ConduitWrapper; | |
| 23 | import io.undertow.server.HttpHandler; | |
| 24 | import io.undertow.server.HttpServerExchange; | |
| 25 | import io.undertow.server.handlers.ResponseCodeHandler; | |
| 26 | import io.undertow.server.handlers.encoding.AllowedContentEncodings; | |
| 27 | import io.undertow.util.ConduitFactory; | |
| 28 | import org.xnio.conduits.StreamSinkConduit; | |
| 29 | ||
| 30 | import static io.undertow.util.Headers.CONTENT_LENGTH; | |
| 31 | ||
| 32 | /** | |
| 33 | * | |
| 34 | * Handler that attaches a cache to the exchange, a handler can query this cache to see if the | |
| 35 | * cache has a cached copy of the content, and if so have the cache serve this content automatically. | |
| 36 | * | |
| 37 | * | |
| 38 | * @author Stuart Douglas | |
| 39 | */ | |
| 40 | public class CacheHandler implements HttpHandler { | |
| 41 | ||
| 42 | private final DirectBufferCache cache; | |
| 43 |
2
1. 2. |
private volatile HttpHandler next = ResponseCodeHandler.HANDLE_404; |
| 44 | ||
| 45 | public CacheHandler(final DirectBufferCache cache, final HttpHandler next) { | |
| 46 |
1
1. |
this.cache = cache; |
| 47 |
1
1. |
this.next = next; |
| 48 | } | |
| 49 | ||
| 50 | public CacheHandler(final DirectBufferCache cache) { | |
| 51 |
1
1. |
this.cache = cache; |
| 52 | } | |
| 53 | ||
| 54 | @Override | |
| 55 | public void handleRequest(final HttpServerExchange exchange) throws Exception { | |
| 56 |
1
1. handleRequest : removed call to io/undertow/server/handlers/cache/ResponseCache::<init> → NO_COVERAGE |
final ResponseCache responseCache = new ResponseCache(cache, exchange); |
| 57 |
2
1. handleRequest : replaced call to io/undertow/server/HttpServerExchange::putAttachment with argument → NO_COVERAGE 2. handleRequest : removed call to io/undertow/server/HttpServerExchange::putAttachment → NO_COVERAGE |
exchange.putAttachment(ResponseCache.ATTACHMENT_KEY, responseCache); |
| 58 |
3
1. handleRequest : removed call to io/undertow/server/handlers/cache/CacheHandler$1::<init> → NO_COVERAGE 2. handleRequest : removed call to io/undertow/server/HttpServerExchange::addResponseWrapper → NO_COVERAGE 3. handleRequest : replaced call to io/undertow/server/HttpServerExchange::addResponseWrapper with receiver → NO_COVERAGE |
exchange.addResponseWrapper(new ConduitWrapper<StreamSinkConduit>() { |
| 59 | @Override | |
| 60 | public StreamSinkConduit wrap(final ConduitFactory<StreamSinkConduit> factory, final HttpServerExchange exchange) { | |
| 61 | if(!responseCache.isResponseCachable()) { | |
| 62 | return factory.create(); | |
| 63 | } | |
| 64 | final AllowedContentEncodings contentEncodings = exchange.getAttachment(AllowedContentEncodings.ATTACHMENT_KEY); | |
| 65 | if(contentEncodings != null) { | |
| 66 | if(!contentEncodings.isIdentity()) { | |
| 67 | //we can't cache content encoded responses, as we have no idea how big they will end up being | |
| 68 | return factory.create(); | |
| 69 | } | |
| 70 | } | |
| 71 | String lengthString = exchange.getResponseHeaders().getFirst(CONTENT_LENGTH); | |
| 72 | if(lengthString == null) { | |
| 73 | //we don't cache chunked requests | |
| 74 | return factory.create(); | |
| 75 | } | |
| 76 | int length = Integer.parseInt(lengthString); | |
| 77 | final CachedHttpRequest key = new CachedHttpRequest(exchange); | |
| 78 | final DirectBufferCache.CacheEntry entry = cache.add(key, length); | |
| 79 | ||
| 80 | if (entry == null || entry.buffers().length == 0 || !entry.claimEnable()) { | |
| 81 | return factory.create(); | |
| 82 | } | |
| 83 | ||
| 84 | if (!entry.reference()) { | |
| 85 | entry.disable(); | |
| 86 | return factory.create(); | |
| 87 | } | |
| 88 | ||
| 89 | return new ResponseCachingStreamSinkConduit(factory.create(), entry, length); | |
| 90 | } | |
| 91 | }); | |
| 92 |
1
1. handleRequest : removed call to io/undertow/server/HttpHandler::handleRequest → NO_COVERAGE |
next.handleRequest(exchange); |
| 93 | } | |
| 94 | ||
| 95 | public HttpHandler getNext() { | |
| 96 |
2
1. getNext : replaced return value with null for io/undertow/server/handlers/cache/CacheHandler::getNext → NO_COVERAGE 2. getNext : mutated return of Object value for io/undertow/server/handlers/cache/CacheHandler::getNext to ( if (x != null) null else throw new RuntimeException ) → NO_COVERAGE |
return next; |
| 97 | } | |
| 98 | ||
| 99 | public CacheHandler setNext(final HttpHandler next) { | |
| 100 |
1
1. setNext : removed call to io/undertow/Handlers::handlerNotNull → NO_COVERAGE |
Handlers.handlerNotNull(next); |
| 101 |
1
1. setNext : Removed assignment to member variable next → NO_COVERAGE |
this.next = next; |
| 102 |
2
1. setNext : replaced return value with null for io/undertow/server/handlers/cache/CacheHandler::setNext → NO_COVERAGE 2. setNext : mutated return of Object value for io/undertow/server/handlers/cache/CacheHandler::setNext to ( if (x != null) null else throw new RuntimeException ) → NO_COVERAGE |
return this; |
| 103 | } | |
| 104 | } | |
Mutations | ||
| 43 |
1.1 2.2 |
|
| 46 |
1.1 |
|
| 47 |
1.1 |
|
| 51 |
1.1 |
|
| 56 |
1.1 |
|
| 57 |
1.1 2.2 |
|
| 58 |
1.1 2.2 3.3 |
|
| 92 |
1.1 |
|
| 96 |
1.1 2.2 |
|
| 100 |
1.1 |
|
| 101 |
1.1 |
|
| 102 |
1.1 2.2 |


newb try regexp neo4j react ds firebase node/express engineering functional redis cordova electron hamartia newb roles job seekers projects console packages binding for newbs try try redis try RN try neo4j try bash try regexp regexp regexp@work regexp(?:\.js) O(r) try regexp neo4j neo4j relationships connecting node & neo4j (neo4j) collision query neo4j try neo4j react tape tests RN updates RN snapshots try RN ds BST array paths matrix paths BST trees firebase RN updates RN snapshots node/express neo4j relationships connecting node & neo4j engineering agricultural projects software chemical environmental functional languages currying redis try redis cordova ecosystems electron ecosystems hamartia Party Bus


16 Sep 2015
Travel - A Luxury
I’m traveling from the sleepy town of Ella (Sri Lanka) to the city of Cebu (Philippines). Here’s how that works out. Spoiler: I spend about 52 hours in transit. Don’t do that, it’s retarded.
The walk
Around six o’clock in the evening my friends walk me to Ella train station. Spirits are high, as we were just beginning to recover from the coconut cider drunk the night before. We pass the waiting time making fun of a particularly low-nippled stray dog running around the station. When I ask an attendant where the 3rd-class carriage carriage will stop, he mentions it might be a sleeper carriage, with beds.
The train
It’s not. This becomes quite clear when the train finally arrives, but is also gleefully pointed out by my friends. We part ways on good terms anyway, and I walk out into the starry night, hop down onto the tracks and climb up into the carriage. Third class is barebones but…largely barebones, really. I sprawl out over two seats, which happens automatically if you’re wider than 30cm. The train is pretty empty at this stage. I use the first of twelve hours to craft an insightful and well-received essay on my situation. Then I plug in my headphones and start napping. I wake up as a heavy-set local squeezes in next to me. Heavy-set and twitchy: He’ll spend the next 10 hours fidgeting. I can’t sleep properly anyway. Instead, I spend the night somewhere between wakefulness and dreams. My perception of time just stops, until I notice the sky brightening. We reach Colombo at six in the morning.
The bus
At Colombo station I find myself some Samosas for breakfast, which I eat waiting for the airport bus. I try to stare down a crow which is overtly curios about my samosa. The crow is not impressed. A few meters down the road a local guy is blowing chunks with abandon. Into a trash can - Sri Lankans are a considerate bunch. The crow and its friends are visibly excited.
The bus ride is long, but uneventful. I doze off a few times, before we reach the airport. I end up walking a kilometer to the terminal and reach it sweat-soaked around 9 in the morning.
The first airport
Colombo airport is quiet and relaxed. Through the big windows I can see the tropical garden outside the terminal. Since my flight is not leaving until 4 o’clock, I can’t check in yet and end up sitting in the departure hall. My friends are all still asleep, so I have nobody to complain to. Instead, I buy chocolate. When I check in, I save 50 Euro on baggage, since the staff accepts my only bag as a carry-on. Joke’s on them, as it’s vastly overweight and held together by straining - and alarmingly frayed - compression straps. You don’t want to be anywhere near them when they eventually snap. Even more miraculously the security guys let me keep my scissors.
The first flight
I get a window seat on our Airbus 330 and settle in. Even after flying my entire life I can’t get over how inspiring it is: I’m being hurled into the air faster than any bird, in a house made of metal, powered by continuous explosions of liquefied dinosaurs. But sure, keep reading your Financial Times, you philistine! Once in the air, I do fall asleep though.
I wake up half-way through the flight. Outside, night is falling and we’re flying right into it. The view is mesmerizing: the stars loom up over us in a black sky. Beneath them clusters of lights trace coastlines, which separate the lights which are stars from those that are ships on the black seas. It feels as if we could be among the stars if we just banked a little to the left. After a while I wipe my nose-print off the window and doze off again. We reach Kuala Lumpur at 22:00h.
The second airport
Kuala Lumpur International Airport No. 2 (KLIA2) is vast, modern and bright. There are plenty of people around, but nobody is yelling. Shouldn’t there be yelling? This is all very confusing.
Since my connecting flight to Manila only leaves at 08:20h the next morning, I have booked 12 hours in a sleeping capsule, so I have to go through immigration, even though the place is right in the terminal (“capsule by container”, KLIA2 - go look it up, I’ll wait!). I check in, take a few pictures and go hunt for dinner. The airport is more of a mall anyway, with the occasional flight arriving or departing. I end up eating junk and then book a flight out of the Philippines, which I apparently need to get a visa. I turn in around midnight local time but lie awake for almost an hour because my body clock is two hours behind.
I get ripped out of deep sleep by my alarm after what feels like a painfully short nap. It’s 05:30h. Four and a half hours of sleep. Three thirty in the morning, by my inner clock.
I check out and trudge back through the airport in a state of angry, confused stupor. It’s packed with people. There are too many people here. We need a new plague. Whatever became of SARS?
The walk to the gate is so long I’m beginning to wonder where the security check is. What is that hassle even good for?  What then?
At this airport the process is quick and efficient though. It pleases me. I’m considerably less pleased when I find out that there is no coffee available after security. This seems doubly unfair as the departure hall had two Starbucks and various other sources for that hot, black magic that keeps me moving. I refuse to eat noodles-in-a-cup for breakfast (I’m an adult) and settle for two fudge brownies (…I can do what I want!). At the gate the boarding process is fast and I’m on the plane in no time.
The second flight
Another window seat. Fog and clouds outside. Sleep-deprived me passes out as soon as we pass through the clouds.
We pass over some insanely beautiful islands and reefs, before we land. Oddly, I see no major urban areas during our decent. Turns out, we didn’t land in Manila. Ooops! Due to bad weather we landed in the province. In Clarkfield. Now we’re refueling, to fly to Manila. Hopefully. Pleasantly little panic aboard about the delay.
Nope, one hour later we’re still standing on the airfield. I relent and order coffee. It’s amazing to see how relaxed people are about the whole thing. No whining, no complaints. Conversation and laughter instead. If I think of this happening in Europe…
Oh, we’re taking off! After 13 minutes in the air and a generous loop over the sprawling cityscape of Manila we land at the right airport. Non-sarcastic applause fills the cabin. I stand amazed.
The third airport
Since I arrived three hours late, I rush through immigration and to transfers to catch my connecting flight. Wikivoyage has Manila as one of the world’s worst airports, but what I see looks relatively orderly and efficient. A quick jog brings me to the gate just in time for the announcement that this flight is delayed by about two hours. The intended plane has failed to show up. I’m concerned over how little concern I see in the faces of other passengers: Is that normal? Will we get a similarly deadpan eulogy? About an hour later a plane does show up at the gate just as I return from a food-run. I board the plane filled with a sense of doom and two beef-and-cheese panini.
The third flight
Isle seat. Bumpy take-off. Language hard, brain much tired. Head ouch. Are we there yet? I buy a can of beer for…several rup-…ring-…moneys. Finally the plane touches down.
The fourth airport
The airport is alright. Outside it’s raining. I stand in line for a taxi and then get in a taxi.
The taxi
After a few attempts the driver finds the hostel. The city looks dark and rainy. I pay about 4 Euro for 13km and mutter something that rhymes with “clucking bell” as I stumble out of the taxi.
The hostel
The lobby is full of blond-curled Australian surfer-dudes whose offer to join them I regrettably decline. Better save that experience for tomorrow. I grab my complimentary beer and find my dorm. 52 hours, door to door. About 4,5 hours of proper sleep, a few naps. Otherwise propelled onwards by coffee, beer and junk food. Travel, eh?
Until next time,
Arne


{{$item.lsid}}
Adhoc
{{$item.hostname|trim_locator}}
{{host.lsid}}
Adhoc
{{host.hostname|trim_locator}}
Defines an address that will not initiate tests when used in
this group. This will override the no_agent field specified in
the host directive if defined. It is recommended you use the
host directive to define this if a address cannot initiate tests
for any group. Only use this form if you want a host to initiate
tests when used in some groups but not others.


The Islanders Know...
| DOSE: |
6 Tbsp |
oral |
Kava |
(ground / crushed) |
I have gone through two pounds of this wonderful powder in the past 3 weeks (not including 2 bottles of supplements).
Let me introduce myself as a mild opiate addict and xtc worshipper who has tried *almost* everything (that was invented up to 1997) from MJ and shrooms to crack (I'm not proud of that one).
This is not a drug to 'trip out' on. Rather, to me it is the 'lithium' of the botanical world. When emotions are running too high or too low, when I am on the verge of insanity, it puts me in a place of serenity and knowledge that 'all is ok.' When my muscles are burning, aching and tired it turns me into a sort of solid (not formless) jello that moves with ease. It has become my new fix.
I discovered this only a month ago, and wish that I had discovered it years ago. It provides an ample amount of euphoria without any clouding of judgement or cognitive skills.
Let me add some cautions here. I have learned through my research that continuous, heavy use of kava can damage the liver (similarly to the abuse of alcohol). It can also lead to a serious vitamin B12 deficiency, so taking B supplements is advisable if you are considering using it on a regular basis. Additionally, from personal experience (as backed by research)that you *can* O.D.
My single overdose experience (caused by consuming about 8 cups) caused a mild tremor (from the neck up!) This was quite wierd. I felt fine otherwise, very euphoric. I have read that overdose can cause symptoms similar to nystagmus but involving rolling of the eyes, and stiffness of the neck (I did not experience these, at therepeutic doses it is a muscle relaxant). But don't let me scare you away: when used in *reasonable* amounts, kava is very gentle to the body and mind.
Recipes: (here are some recipes for preparing kava, for those who are put off by the muddy taste)
recipe 1 (kool kava recipe)
* 4-6 tbsp kava kava in nylon strainer bag or cheesecloth (lg cloth teabag will do)
* 1 qt cool water
* 1/2 cup +/- pineapple juice
* 8 tbsp light corn syrup
* 4 tbsp honey
* 1 tbsp almond extract
* 2 tsp coconut extract
* 1-2 tsp vanilla extract
serve in 1/2 cocunut shell (optional)
recipe 2 (coconut creme kava)
*3-6 tbsp kava kava
* 5 cups H2O
* 3 cups milk
* 1/2 cup light corn syrup (sugar or honey may be substituted)
* 1 tsp coconut extract
* 1 tsp almond extract
(or 2 tsp vanilla)
cheers!
~fierphly
Experience Reports are the writings and opinions of the individual authors who submit them.
Some of the activities described are dangerous and/or illegal and none are recommended by Erowid.


Emphasis
{{ emphasis }}
{{ emphasis }}
Lists
In this example, leading and trailing spaces are shown with with dots (⋅)
{{ listsDot }}
{{ lists }}
Links
{{ links }}
{{ links }}
Images
{{ images }}
{{ images }}
Code and Syntax Highlighting
{{ codeAndSynthaxHighlighting }}
{{ codeAndSynthaxHighlighting }}
Tables
{{ tables }}
{{ tables }}
Blockquotes
{{ blockquotes }}
{{ blockquotes }}
Horizontal Rule
{{ horizontalRule }}
{{ horizontalRule }}
Remote Url
Using component with `src` property to fetch remote markdown file `app/remote/demo.md`
Using component with static `python` code block
{{ demoPython | language: 'python' }}
Using directive with `src` property to fetch remote html file `app/remote/demo.html`
Using directive with `src` property to fetch remote C++ file `app/remote/demo.cpp`
Variable Binding
Using component or directive with `data` property allow to bind a variable that will update the DOM when value changes
Using `language` pipe you can specify the language of the variable content for synthax highlights
Pipe Usage
Using `markdown` pipe to transform markdown to HTML allow you to chain pipe transformations and will update the DOM when value changes
In the following example using the synthax above, `typescriptMarkdown` property does not contain any `back-ticks` to set the content language but will be chain with `language` pipe instead to specify synthax highlights language along with `markdown` pipe for conversion
Line Numbers plugin
#### Prism files to include
```javascript
node_modules/prismjs/plugins/line-numbers/prism-line-numbers.css
node_modules/prismjs/plugins/line-numbers/prism-line-numbers.js
```
#### Directive
`lineNumbers` - activate line numbers plugin
#### Attributes
`start` - offset number for the first display line
### Example
Using `lineNumbers` input property on `markdown` component or directive (this is not available when using pipe or service) allows you to add line number at the beginning of each lines of code block.
The example below uses `lineNumbers` directive which uses default line offset of 1.
```javascript
var result = square(2);
function square(number) {
return number * number;
}
```
Optionally you can use `start` to specify the offset number for the first display line.
In the example below line offset is set to 5 using `start` input property.
```javascript
var result = root(2);
function root(x, n) {
try {
var negate = n % 2 == 1 && x < 0;
if(negate)
x = -x;
var possible = Math.pow(x, 1 / n);
n = Math.pow(possible, n);
if(Math.abs(x - n) < 1 && (x > 0 == n > 0))
return negate ? -possible : possible;
} catch(e){ }
}
```
Line Highlight plugin
#### Prism files to include
```javascript
node_modules/prismjs/plugins/line-highlight/prism-line-highlight.css
node_modules/prismjs/plugins/line-highlight/prism-line-highlight.js
```
#### Directive
`lineHighlight` - activate line highlight plugin
#### Attributes
`line` - lines to highlight (i.e.: 6, 11-15)
`lineOffset` - starting offset for line numbers
### Example
You can highlight different lines by adding `lineHighlight` directive on the `markdown` component/directive.
Use `line` input property to specify the line(s) to highlight and optionally there is a `lineOffset` property to specify the starting line of code your snippet represents.
In the example below `line` 6 and 10 to 16 are highlight using a `lineOffset` of 5.
```javascript
var result = root(2);
function root(x, n) {
try {
var negate = n % 2 == 1 && x < 0;
if(negate)
x = -x;
var possible = Math.pow(x, 1 / n);
n = Math.pow(possible, n);
if(Math.abs(x - n) < 1 && (x > 0 == n > 0))
return negate ? -possible : possible;
} catch(e){ }
}
```
KaTeX plugin
#### KaTeX files to include
```javascript
node_modules/katex/dist/katex.min.css
node_modules/katex/dist/katex.min.js
```
#### Directive
`katex` - activate KaTeX plugin
#### Attributes
`katexOptions` - math rendering [options](https://katex.org/docs/options.html)
### Example
You can render KaTex expression by adding `katex` directive on the `markdown` component/directive.
The example below illustrate `katex` directive in action.
Optionally, you can specify math rendering [options](https://katex.org/docs/options.html) using `katexOptions` property.
**example.component.ts**
```typescript
import { KatexOptions } from 'ngx-markdown';
public options: KatexOptions = {
displayMode: true,
throwOnError: false,
errorColor: '#cc0000',
...
};
```
**example.component.html**


Manager Registration And Deliverer
Add new Restaurant
Log out
User account info:
Name:
Lastname:
Gender:
Male
Female
Birthday:
Username:
Edit
Save
Cancel
ADMIN
CUSTOMER
DELIVERER
MANAGER
Fillter by role
GOLDEN
SILVER
BRONZE
Fillter by user type
Clean filter & search
ROLE
USERNAME
NAME
LASTNAME
GENDER
BIRTHDAY
POINTS
USER TYPE