I've recently had a very interesting discussion with some friends. We talked about a lot of stuff and I don't want to go into detail about the topics we've discussed, but rather some thoughts about discussions.
Types of discussions
There are many ways people talk to each other:
- Small Talk is about being together and feeling fine. We do it when we are together waiting for something or just because it feels good. It's not so much about content which show discussions about weather, fashion or sitcoms, although the amount of information you exchange varies quite a lot.
- Feelings and talking about feelings is difficult, but important. Although I tend to say it's like small talk, but I don't want to go into detail here.
- Teaching is a situation where one person knows more than another person in some topic he (or she) teaches the other.
- Learning is either the other side in the teaching situation or learning together. I think it is fundamentally different and deserves an own bullet point because in the teaching situation, the teacher leads the conversation. In the learning situation you don't have somebody who leads the conversation. It's a free flow of (hopefully) constructive thoughts with the aim to get a new ability as a group.
- Moral or Political Discussions are some sort of learning, but in contrast to learning in the sense that you get another ability or get to know some more facts, the aim is on evaluating how to weight those facts. Discussions involve a learning part, but the core is about putting things together. So it is not mainly about what could be done but what should be done and for what reasons.
What's special about discussions?
Discussions involve some aim. That aim might be
- What is the best way to explain XYZ? What does best mean in this context?
- What should we do in situation ABC? What is to consider for what reasons?
But very much of the conversations that are labeled as "discussions" feel rather like small talk for the following reasons:
I think to have a meaningful discussion you need to have a partner who is not of your opinion. For political discussions this means the following are NOT meaningful statements:
- I want everybody to be able to find a job (or shorter: Fight unemployment)
- I want to make less dept
- I want everybody to be able to live a healthy live
- I want to help families
- I want everybody to be happy
All these three statements are statements that everybody could agree with. But you get reasonable statements when you tell how to do so.
You can also talk about the "order": I want to make less dept, but when young families have to pay more than 20 Euro per year more it is not acceptable. Of course, that's still much to vague, but I think you get the point. Telling what you value might help people to intuitively decide with which person they could rather identify, but it is not enough to name reasons.
Another important part of a meaningful discussion is that it should in theory be possible to change the mind of the other person. This is the reason why I've called it "discussions with friends". In contrast to the truth-finding "discussions" you have in science, you don't need to be able to say what observations could falsify your theory. But if you go into a discussion and you know that it is impossible that the other - no matter how good he makes his point - convinces you of his opinion, you're actually not having a discussion. You try to teach them. (And it's a bad type of teaching.)
Techniques to take most out of discussions
It is difficult to be open minded in a good discussion. You might need to end
a discussion and think through it some time after you had it. Because we tend
to defend a point of view when we begin to defend it, no matter how good the other
makes his point. It is very difficult to honestly say: Yes, you're correct. That
changes the case and probably my opinion.
And you should not say so too fast. Some people are charismatic, some can speak
or write very good. When you hear a new argument the first time, you might have
difficulties to find a correct counter argument. But when you're with friends
you should be able to say:
That's the first time I've heard that. I have to think about it.
or something like
I've never seen it from that perspective.
People like to teach and this makes them feel more comfortable discussing with you. You don't give up your opinion with statements like these, but it's simply being honest.
Speaking of honesty, there is a similar DON'T: Don't say something like
Yes, I agree with you, but [Whatever he just said negated]
I hear this so often in political debates by amateurs who have read something about discussions. By agreeing you make it easier for your discussion partner to agree with you (he can't disagree when you agree with him, can he?), but it should be a honest way to agree. It's a very bad step to fake agreement.
Group dynamics
Always - and that's not only related to discussions - try to think what and how the other thinks. Sometimes when a group discusses, a single person get's isolated and has to defend his point of view alone. That's ok. But don't make it worse for him:
- Give him enough time to think and to talk.
- Only one person and argument at a time. It's difficult to switch and to concentrate on two (or even more) separate discussions.
- Try to support him when he has trouble with finding the correct words or the best way to express himself. It is difficult to tell when you simply have to wait and give him some time to think and when you should try to support him.
Know when you're wrong
Changing opinions is difficult. Especially if you have them for a long time or when you've already defended them. It's a little bit like an investment. When you've already spend 6,000 Euro for an investment and there is a tiny chance that you will get what you want but a growing chance that the investment was just a bad idea and probability suggest to change the investment and rescue what's left, most people will not do so. Somehow we quite often tend to a all-or-nothing thinking which is suboptimal in many cases.
So, what can we do so to figure that out for ourselves? Sometimes it is impossible to do so while discussing, but after the discussion you can think about it:
- What arguments did I tell the others? How did I tell them? What were counter arguments? Are they valid? If so / not: Why?
- Are there arguments I've missed?
- Do I feel comfortable with my arguments? Why do I think they could be weak? What do I think are strong arguments? Do others also think that those arguments are strong?
If you're not sure about it, you can continue it. It should not be a simple repetition of arguments, but a new discussion with a new structure of arguments. If you're still not sure after many arguments, you can make a pro / contra list.
Please note:
- It's not important what the majority thinks. However, it might be an indicator.
- Some arguments might simply be wrong. But don't make this choice too easily.
- Some arguments might be irrelevant. I tend to think "How does this impact my life?". If an argument has no impact or simply assumes an unrealistic situation, it might be irrelevant.
- You don't have to agree at the end. A honest disagreement where both sides understand the arguments of the other side is much better than a comprise that no side really thinks is good.
And I want to note that discussions might have many equally valid answers, whereas science has only one correct answer (which might be difficult to find / almost impossible to decide which thesis is correct, but there is only one).


{% extends "layout.html" %} {% block page_title %} Money Claims Prototype {% endblock %} {% block home_link %} index {% endblock %} {% block content %} This link has expired This link expired after 60 days. Enter your details again to create an account. {% include 'prototypes/prototype-jun-2019/includes/contact.html' %} {% endblock %}
This link expired after 60 days.
Enter your details again to create an account.


Vashi
Sigree
Spacious north Indian, Punjabi and Mughlai restaurant offering special weekend buffets. Address: Platinum Techno Park, Plot No.17/18, Sector No.30A, Behind Raghuleela Mall, Vashi, Navi Mumbai, Maharashtra 400703
Hours: Open Closes 3:30PM Reopens 7:30PM
Phone:<PHONE_NUMBER>0
Reservations: eazydiner.com, dineout.co.in, zomato.com
Order: zomato.com
Tip Cal
The Food Studio
Food from around the world is served at this chic spot with unusual designer-rustic decoration.
Address: Plot No 25, Sector 19C, Near to Satra Plaza, Palm Beach Rd, Vashi, Navi Mumbai, Maharashtra 400703
Hours: Open 12PM Closes 12AM
Phone:<PHONE_NUMBER>9
Reservations: dineout.co.in
Tip Cal
Golden Punjab
Tip Cal
Open since 1987, a large family and couple friendly Indian and Chinese restaurant. Address: Plot No. 77, Ground Floor, Mahavir Center, Sector 17, Vashi, Navi Mumbai, Maharashtra 400703
Hours: Open 11:30 AMCloses 11:30 PM
Phone: 022 2789 2742
Order: swiggy.com
Jimis Burger
Burgers, Mocktails, Cheese Bacon Fries, Chicken Crisp Burger, Wings, Chicken Nachos, Pork Burger,Courteous Staff, Friendly Staff, Prompt Service
Address:- Shop 25, Satra Plaza, Plot 20, Sector 19D, Palm Beach Road, Vashi, Navi Mumbai
Hours: Open 11:30 AM Closes 11:30 PM
Tip Cal
Pop Tate's
Casual Dining, Bar
Address:- Shop 120, 1st Floor, Satra Plaza, Sector 19-D, Palm Beach Road, Vashi, Navi Mumbai
Hours: Open 12PM Closes 1AM
Phone:<PHONE_NUMBER>0
Tip Cal


A truly #decentralised #exchange is one that never touches or controls users’ funds. In that sense, a decentralised exchange isn’t really an exchange at all. It’s just a #technology that allows two #traders to swap digital currencies.” – @0xca333
$KMD
https...


Billy Bunn
This is my week 1 project at Code Fellows.Below, you'll find a button to play a guessing game I made with JavaScript. Note that it utilizes browser alerts, so you might need to allow pop-ups. Questions and their answers will populate after you play the game.
Questions
- Was I born in Washington state?
- Do I have a college degree?
- Am I older than Miley Cyrus?
- Am I older than Justin Bieber?
- Do I believe intelligent extraterrestrial life exists?
- How old am I?
(25) - What countries have I visited?
(Canada, Italy, Israel, Jordan, England, Scotland, Haiti)
My Favorite Seattle Coffee Destinations
If I'm not studying at Code Fellows, you might find me at one of these spots.


Application Updated
You have successfully updated your application for a TA position.
CISE HOME PAGE


Class generic
HelpDeskPilot(tm) developed by Tenmiles Corporation
All source code & content (c) Copyright 2005, Tenmiles Corporation unless specifically noted otherwise. By using this software, you acknowledge having read the license and agree to be bound thereby.
Developers involved with this file:
Package: genericclass
Author: Shalin Jain<EMAIL_ADDRESS>Author: Celia Rexselin<EMAIL_ADDRESS>SCRIPT:THis API has all the common subroutines for this product and handles most of the functionality.
Located at app/webroot/helpdesk/pilot/includes/generic.class.php
Author: Shalin Jain<EMAIL_ADDRESS>Author: Celia Rexselin<EMAIL_ADDRESS>SCRIPT:THis API has all the common subroutines for this product and handles most of the functionality.
Located at app/webroot/helpdesk/pilot/includes/generic.class.php
public
|
|
public
mixed
|
#
prefix_table( mixed $tablename )
Prefix_table function takes a string as its input, prepends it with the tableprefix value given during installation and returns it. |
public
|
|
public
|
|
public
|
|
public
|
|
public
|
#
send_smtp_mail( mixed $to, mixed $subject, mixed $message, mixed $from, mixed $addresses = array(), mixed $adt = array() )
|
public
|
|
public
|
|
public
|
|
public
|
#
upload_file( mixed $filename, mixed $file_vars, mixed $new_name, mixed $new_dir = '', mixed $file_path = '' )
|
public
|
|
public
|
|
public
|
#
get_corrected_timestamp( mixed $zone, mixed $yy, mixed $mm, mixed $dd, mixed $hh, mixed $ii, mixed $ss, mixed $in_gmt = 1 )
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
#
update_replies( mixed $reply_mess, mixed $ticket_id, mixed $zone, mixed $reply_id, mixed $myvar, mixed $ticket_replies_flag )
|
public
|
|
public
|
|
public
|
#
print_pgbreak( mixed $template, mixed $total, mixed $lnk, mixed $page_no, mixed $pg_arg = 'page_no' )
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
#
open_a_ticketfrm( mixed $supp_obj, mixed $session_vars, mixed $generic_msg, mixed $post_vars = array(), mixed $template = '', mixed $a_predefined = array() )
|
public
|
#
submit_ticket( mixed $supp_obj, mixed $session_vars, mixed $post_vars, mixed $generic_msg, mixed $file_vars, mixed $template = '', mixed $multiple_submit = '' )
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
#
send_attmail( mixed $to, mixed $subject, mixed $message, mixed $from, mixed $file_vars, mixed $ticket_id, mixed $reply_id, mixed $addresses = array() )
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
#
display_custom_fields( mixed $supp_obj, mixed $a_predefined, mixed $generic_msg, mixed $content, mixed $view = 1 )
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
#
filter_read_only_dept( mixed $dept_list, mixed $dept_id, mixed $content, mixed $removeaccess = 0 )
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
#
get_other_recipients( mixed $mail_box, mixed $message_id, mixed $header, mixed $department_email )
|
public
|
|
public
|
#
addCustomFields( mixed $supp_obj, mixed $id, mixed $custom_fields_name, mixed $custom_fields_value, mixed $custom_field_id, mixed $custom_field_type )
|
public
|
direct_replace(),
replace_oned_array(),
return_file_content(),
template()
|
public
mixed
|
$tbl_prefix |
|
|
public
mixed
|
$gen_smtp_mail |
|
|
public
mixed
|
$gen_smtp_host |
|
|
public
mixed
|
$gen_smtp_port |
|
|
public
mixed
|
$gen_smtp_username |
|
|
public
mixed
|
$gen_smtp_password |
|
|
public
mixed
|
$phpMail |
|
|
public
mixed
|
$date_format |
|
$cols,
$rows
|


Hello Agent. We have recently been made aware of an invading, hyper intelligent species that live among humans. Evidence of their presence can be found throughout historical records, and mythologies alike. They are cunning, adaptable, secretive and masters of disguise. But above all else they are very, very dangerous. You may know them, as goblins. And they eat people too.. While extremely dangerous, they can be isolated and contained. Thanks to your most recent promotion, you have been tasked with discovering, researching, and eliminating their presence from the internet. We discovered their breach of the internet three weeks ago. 5.23 seconds ago a program was installed onto your hardrive that will automatically detect flaws of logic, attempts to mislead, or any sort of false information when hoevered over with he mouse. Your mission is to find any traces of them, report, and if the chance comes, to delete any goblin presence from the internet. this link will send you to a suspected site that may or may not be run by a goblin. I have faith in you agent eliminate them -agent M


Module: Mongoid::Attributes::Readonly::ClassMethods
- Defined in:
- lib/mongoid/attributes/readonly.rb
Instance Method Summary collapse
-
#attr_readonly(*names) ⇒ Object
Defines an attribute as readonly.
Instance Method Details
#attr_readonly(*names) ⇒ Object
Defines an attribute as readonly. This will ensure that the value for the attribute is only set when the document is new or we are creating. In other cases, the field write will be ignored with the exception of #remove_attribute and #update_attribute, where an error will get raised.
70 71 72 73 74 |
# File 'lib/mongoid/attributes/readonly.rb', line 70 def attr_readonly(*names) names.each do |name| readonly_attributes << database_field_name(name) end end |


SDCC is a Free ware , retargettable, optimizing ANSI-C compiler. The current version targets Intel 8051 based MCUs, it can be retargetted for other 8 bit MCUs or PICs. The entire source code for the compiler is distributed under GPL. SDCC used ASXXXX & ASLINK a Free ware, retargettable assembler & linker. SDCC has extensive MCU (8051) specific language extensions, which lets it utilize the underlying hardware effectively. The front-end (parser) will be enhanced to handle language extensions for other MCUs as and when they are targetted. In addition to the MCU Specific optimizations SDCC also does a host of standard optimizations like global sub expression elimination, loop optimizations (loop invariant, strength reduction of induction variables and loop reversing), constant folding & propagation, copy propagation, dead code elimination and jumptables for 'switch' statements. For the back-end SDCC uses a global register allocation scheme which should be well suited for other 8 bit MCUs , the peep hole optimizer uses a rule based substitution mechanism which is MCU independent. Supported data-types are short (8 bits, 1 byte), char (8 bits, 1 byte), int (16 bits, 2 bytes ), long (32 bit, 4 bytes) & float (4 byte IEEE). The compiler also allows inline assembler code to be embedded anywhere in a function. In addition routines developed in assembly can also be called. SDCC also provides an option to report the relative complexity of a function, these functions can then be further optimized , or hand coded in assembly if need be. SDCC also comes with a companion source level debugger SDCDB, the debugger currently uses S51 a freeware simulator for 8051, it can be easily modified to use other simulators. The latest version can be downloaded from http://www.geocities.com/ResearchTriangle/Forum/1353
All packages used in this compiler system are opensource (freeware); source code for all the sub-packages ( asxxxx assembler/linker , pre-processor and gc a conservative garbage collector) are distributed with the package. Documentation was created using a freeware word processor (LyX).
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. In other words, you are welcome to use, share and improve this program. You are forbidden to forbid anyone else to use, share and improve what you give them. Help stamp out software-hoarding!


Making Cents of Census Data
If you work in data science, you’ve probably come across websites that present U.S. Census data with fancy bells and whistles (such as associated maps) that you can use to find demographic information. These websites, which usually charge a fee, often allow you to look up limited amounts of data–and typically one zip code at a time.
As proponents of open source, we’ve decided to skip the fees and share, for free, this easy-to-use file that aggregates 2010 U.S. Census data and 2007-2011 American Community Survey data, aggregated to the zip code level.
Parsing and aggregating the data into something digestible was an excruciating process, but I’m glad I did it. At Gilt we aggregate data at the ZIP code level to better understand the demographic profile of our customers. The above table helps us gain insights into the general demographic profile of the areas of high and low customer membership/activity. For example, we can compare membership and order conversion in rural vs. urban areas, or differentiate purchasing and web behavior in high vs. low income areas. I say “general” because the data is aggregated to the postal code level, it’s not about a specific individual.
I was warned
As a database administrator and data engineer, I occasionally receive interesting data-related requests from my colleagues. One of the more interesting inquiries I’ve fielded recently came from one of Team Data’s very own–Data Scientist Igor Elbert. Igor’s known to pepper his own data analyses with references to Russian literature and World War II history, so I wasn’t totally surprised that his request was a bit on the exciting and creative side (as far as data requests go).
I was warned that Igor’s request might be a bit tedious to fulfill. Yet it seemed simple enough (just three steps!):
- parse the census data
- import it into Gilt’s data warehouse and
- aggregate the data by zip code in order to better visualize the demographic information about our customer base.
I did not heed the warning, and enthusiastically dove into the world of U.S. government data. This process turned out to be far more complex and interesting than I initially thought it would be, and also involved importing the subset of American Community Survey (ACS) data about people’s economic status, education level, and house value. The census data was only available in an archaic–i.e., end-of-the-20th-century–format. Column names corresponded to lookup values. Tables were embedded tables within tables, differentiated with a “table” column. To find what I was looking for required an additional lookup of the attribute associated with each value.
Processing the Data
In order to find out what kinds of data the columns represented, I had two options:
- Extract the data from a giant PDF “tech-doc” file that comes with the Census and ACS
- Use the provided Microsoft Access data shells (of course I do not, nor will I ever, have a copy of Microsoft Access). An alternative to using Access is mdb-tools.
I chose option #2, since this could be automated. It’s both humorous and sad that the U.S. Census Bureau still presents its data using MS Access and MS Excel instead of an open source database or some other format. New York City and other governmental bodies around the world make their data available in more modern and open formats, yet the federal government apparently can’t let go of its pre-Y2K technologies. Access still enforces a 255-column limit-per-table restriction on files, which for my purposes resulted in about 290 segmented files per state. I used mostly Perl and some Scala to automate parsing of these files into Aster Database/PostgreSQL-compatible SQL and data files.
Here’s where things got interesting: After parsing all of that poorly presented census data, I discovered that it contained a wealth of information that can be correlated to find out more about Gilt’s customer base–and how we can better target our marketing to reach them. The census data includes a geographic information lookup table that provides information on state, county, Combined Statistical Area (CBSA) and aggregation or summary level (the geographic level the data represents–for example, state, county, county/sub-county, or zip code):
Column | Type | Modifiers
-----------+-------------------+-----------
FILEID | character varying |
STUSAB | character varying |
SUMLEVEL | character varying |
COMPONENT | character varying |
LOGRECNO | character varying |
US | character varying |
REGION | character varying |
DIVISION | character varying |
STATECE | character varying |
STATE | character varying |
COUNTY | character varying |
...
...
...
Here is an example of the lookup data for household income (the long table title corresponds to the table segment ‘0056’ and the subtable ‘B19001’):
Table ID | Segment File | Column | Long Table Title
----------+--------------+--------+------------------------------------------------------------------------------------------------------------------------------------------------------
B19001 | 0056 | . | HOUSEHOLD INCOME IN THE PAST 12 MONTHS (IN 2011 INFLATION-ADJUSTED DOLLARS)
B19001 | 0056 | . | Universe: Households
B19001 | 0056 | 1 | Total:
B19001 | 0056 | 2 | Less than $10,000
B19001 | 0056 | 3 | $10,000 to $14,999
B19001 | 0056 | 4 | $15,000 to $19,999
B19001 | 0056 | 5 | $20,000 to $24,999
B19001 | 0056 | 6 | $25,000 to $29,999
B19001 | 0056 | 7 | $30,000 to $34,999
B19001 | 0056 | 8 | $35,000 to $39,999
B19001 | 0056 | 9 | $40,000 to $44,999
B19001 | 0056 | 10 | $45,000 to $49,999
B19001 | 0056 | 11 | $50,000 to $59,999
B19001 | 0056 | 12 | $60,000 to $74,999
B19001 | 0056 | 13 | $75,000 to $99,999
B19001 | 0056 | 14 | $100,000 to $124,999
B19001 | 0056 | 15 | $125,000 to $149,999
B19001 | 0056 | 16 | $150,000 to $199,999
B19001 | 0056 | 17 | $200,000 or more
...
...
Then a corresponding select from table segment ‘0056’ (all table segments had to have their data definition language reverse-engineered using the above lookup data as well–for example, table ‘B19001’ column 13 indicates the number of people in the $75-100K income bracket):
Column | Type | Modifiers
------------+-------------------+-----------
FILEID | character varying |
FILETYPE | character varying |
STUSAB | character varying |
CHARITER | character varying |
SEQUENCE | character varying |
LOGRECNO | character varying |
B19001_1 | character varying |
B19001_2 | character varying |
B19001_3 | character varying |
B19001_4 | character varying |
B19001_5 | character varying |
B19001_6 | character varying |
B19001_7 | character varying |
B19001_8 | character varying |
B19001_9 | character varying |
B19001_10 | character varying |
B19001_11 | character varying |
B19001_12 | character varying |
B19001_13 | character varying |
...
...
COUNTY | COUSUB | CBSA | median_household_income
----------+--------+--------+--------+-------+-------------------------
0020416 | ny | 047 | | | 99938
0009268 | ny | 103 | 10000 | | 99926
0007581 | ny | 071 | 47999 | | 99911
0025098 | ny | 071 | | | 99911
0001616 | ny | 029 | 24130 | | 99911
0030562 | ny | 119 | | | 99904
0028569 | ny | 103 | | | 99904
With our Census/ACS data file, you can conduct highly complex demographic analyses without having to waste lots of time looking up the same information zip code by zip code. Use it to gain better insights by region, population density, income level, education level, house value, and more.
Photo by Brian Kelley. License via Creative Commons.


Primary
Light
Secondary
Light
Sony
Toshiba
Samsung
header
content
title
text
button
title
text
linkDescriptionOne
linkDescriptionTwo
first
numberOne
second
numberTwo
third
numberThree
itemOne
itemTwo
itemThree
Previous
One
Two
Three
Next
First
Second
Third
Check One
Check Two
Check Three
Check Four
Check One
Check Two
Check Three
Check Four
Unwrap
Check One
Check Two
Check Three
Check Four
Attribute Test
Hello
Hi
World
Hello
Hi
World
Animate
Hello Where is it?
I can toggle
Blink
Slide Up
Slide Down
Slide Toggle
Slide Text
Hide
Show
Toggle
Hide Text


Practice Fusion (SHRS)
Menu
LOG IN
Please enter your username and password.
Username
Password
Create A New Account
--->


James is currently a Year 2 student at Singapore Polytechnic (SP) studying Aeronautical Engineering. But before coming to SP, he was a student at
中正中学(义顺)
and a Cadet Officer (69th Batch) in the National Cadet Corps. In his free time James enjoys sketching and you can see his works decorating Engacad. But words can only describe a person so much.
You can follow James here on Instagram to find our more about him.


I am a Computer Science and Mathematics major with interest in data analytics, big data, image processing/analysis (of remote sensing, satellite images, medical images, etc), high performance computing (accelerators, MPI, OpenMP, Python), mathematical modeling, and numerical optimization.
I hold a Ph.D. from the Arizona State University in applied mathematics. My thesis focused on 'High Order Methods for Edge Detection and Applications'. I subsequently taught at Michigan State University and University of California, San Diego while pursuring research in molecular surface reconstruction as postdoctorate and visiting researcher repectively.
My current appointment is at Virginia Tech, Blacksburg. My research is in the area of land usage and trend detection from satellite images and is a collaboration between Forest Resources and Enviormental Conservation and the Department of Computer Science both at Virginia Tech.


How well do you know your way around the world? Test your abilities. Start with simple questions and progress to more difficult levels.
Rules of the Game: Get 80% on each level and progress to the next. Fail to accomplish this, try again.


Building a great product in a great team is like christmas and birthday on the same day. And enables everyone to
unleash their full potential and to exceed their own borders. This is a key value in our team and we want to share
our experience with others who are passionate about the idea, sports and creating something extraordinary.
As we believe new technologies can help us solving many of the issues arising on the way of any athlete, we need creative minds to build them. Besides a tech background in web programming and the Appcelerator Titanium framework, thiss requires an interest in all the different aspects of a product made for people - not for functionalities only. The roles in a startup are not as sharply defined as in bigger companies, which leads to more responsibility on the one hand and to a lot more freedom on the other. By working very close together, you get insights on the whole process and different perspective on a technical project. If you love solving ambitious tasks and want to built a game changer in sports experiences, we're happy to get to know you!
Before you can tell whether a new direction takes you to the right spot, you'll have to be able to measure your progress and where exactly
you want to go. Speaking about sports, on implication for that can be to provide everyone with easy means to track their performance and
progress in sports - no matter on which part of the way they currently on.
We search for sports scientists (post graduate or thesis) interested in the field of performance measurement and diagnostics. You should be
passionate about our goal to improve the sports experience for everyone on the long term - by contributing new ideas, by keeping Sidefits near
to the ones it's made for or by pushing forward the current features. In turn, you can experience responsibility, the dynamic work processes in
a fast evolving business and teamwork par excellence.


Security Policy Risk Simulator
An exploratory simulation game featuring the real-life complexities of corporate information security.
Goal
Your job is to balance low risk with low productivity costs. Become the best security manager in the industry.
How to play
- You need to login or register in order to play.
- When you enter the game, you are introduced to your new job - CISO at the energy company Global Sparks.
- Design the company security policy, so that you keep both risks and productivity cost low.
- Manage the incidents occurring under your security policy.
- See how your policy compares to policies designed by others.
To start a game please:
.This is a work-in-progress demonstration. Project SPRKS is being developed at UCL Information Security Research Group and is supported by Intel and IBM. Code is open source under the MIT license. The development process is accessible on GitHub.
The website is best experienced with the Chrome Browser.
Your Company
Global Sparks is an international energy company, currently headquartered in London, which has begun to expand its operations internationally. In line with this strategy it started buying local electricity suppliers in the US in the early 2000s, and built up a substantial group of companies, primarily located on the West Coast. This period of rapid expansion has left the company somewhat fragmented internally, and this has begun to cause problems in terms of both business and security. To deal with this issue it has been going through a process of consolidating its acquisitions into a single company. An unfortunate side effect of this process has been a recent wave of redundancies. Almost all IT Support staff have been dismissed, because Global Sparks decided to outsource this function to a company based in India. A period of growth has followed the consolidation, and the company has started to hire again, but mostly in the form of contractors (staff on limited-term contracts, and without health and pension benefits). Many of these contractors are former employees of the companies Global Sparks acquired, and who had been made redundant. You have been hired as part of this process as a permanent security manager, with a brief to ensure that the consolidated company has not inherited any security weaknesses from its disparate components. Immediately several issues have come to light, resulting from both the mergers and the fluid hiring situation.
To aid you in your work please speak to one of the members of staff in the bottom right corner to get an idea of what the culture is like at Global Sparks:
The main problem I have with my job is that IT support is terrible. It used to be the case that the department was in the same building, and you knew you could walk in or call them up and speak to the same people you spoke to last time. A bottle of wine at Christmas kept them happy and I always got things fixed in time. Now it is some random person half the world away that doesn't know me from Adam. Not having that personal relationship makes things more difficult and everything takes twice as long to get fixed. This can be a real problem when the boss is under pressure and the latest round of password changes has locked me out of his email account.
I have been re-hired to do the same job, at the same level of pay, but without benefits. It doesn't make me happy but there are no other decent IT jobs going in this area, so I have to do it. Unfortunately they know this too and so we don’t get treated like we did when I worked here properly. It doesn't help that with all the shuffling around no-one knows each other anymore. We all have to wear badges now, use passwords everywhere, walk through checkpoints like we are at the airport every time we want to go to the toilet. That’s what it seems like to me anyway. I walk all over the building fixing computers and stuff and the atmosphere really has changed.
My job sounds fancier than it is, I don’t really manage anyone, just look after some clients. Have the mergers affected me? I suppose so. It got pretty confusing for a while, who was working on what and who was allowed to see the info I have on our customers. It seemed to take ages to get any changes made to permissions but we have always had a few tricks to deal with that. The merger didn’t make that side of things worse, but for a while you never know who you would be working with from one week to the next. I am glad it has settled down now, I am starting to get friendly with my new team and that makes work go a little easier.


Red Robins was founded in 1983 on the principle of serving great burgers. We keep things simple with local ingredients, a small menu, and one location. We're proud to serve the Seattle community.
We've been honored to receive the Made Up Burger Award from the makers of this website, as well as the Excellence in Fictional Fries Award.
Come in and try our out-of-this-world food today!


Article - Nov 2017
Article - Oct 2017
Learn about consumer trends, from how people are using apps to video consumption on mobile.
Explore trends and popularity of products across the U.S.
Explore the role of online sources in the journey from consideration to purchase.
Use real-time search data to help you gauge consumer search behaviors.
Pull up-to-date industry benchmarks for your display campaigns.


WRFCHEM output python
2014-09-29
###WRFCHEM_output pythonic####
- Related to the last note on getting txt time series data from wrf output here. This note details getting numpy array from wrf output and plotting data in python.
- The variables required from wrfoutput are Temperature, Relative humidity, Wind direction, wind speed, PM2.5 and PM 10. Numpy array from these variables will be used for air earth application, to insert the grid data into Postgresql. Data plots is for a quick view of the wrf output.
- The numpy array creation is based on this, this and this.
- The plotting is primarily based on this and this.
- The numpy array creation and plotting for each wrf output variables is attempted as follows ###Temperature###
- From this, it is required to post-process wrfoutput using
p_interp
utility to get pressure correction for variables such as RH. - For this, the source code was downloaded and compiled using the command
gfortran p_interp.F90 -L/usr/local/lib -lnetcdf -lnetcdff -lm \ -I/usr/local/include -Mfree -o p_interp
, with this p_interp got compiled and an executable of the same name is created.


Your Name Name required.
What's happening? Text required.
Address? Address required.
Clicked Position: {{mapvals.mapClickedValue}}
Radius: mi
Start Date:
Time Window: 060 This is the amount of time before and after the time.


Usage:
StreetAddress::US.parse("1600 Pennsylvania Ave, washington, dc")
Valid Address Formats
1600 Pennsylvania Ave Washington DC 20006
1600 Pennsylvania Ave #400, Washington, DC, 20006
1600 Pennsylvania Ave Washington, DC
1600 Pennsylvania Ave #400 Washington DC
1600 Pennsylvania Ave, 20006
1600 Pennsylvania Ave #400, 20006
1600 Pennsylvania Ave 20006
1600 Pennsylvania Ave #400 20006
Valid Intersection Formats
Hollywood & Vine, Los Angeles, CA
Hollywood Blvd and Vine St, Los Angeles, CA
Mission Street at Valencia Street, San Francisco, CA
Hollywood & Vine, Los Angeles, CA, 90028
Hollywood Blvd and Vine St, Los Angeles, CA, 90028
Mission Street at Valencia Street, San Francisco, CA, 90028
License
Copyright (c) 2007 Riderway (Derrek Long, Nicholas Schlueter)
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
 IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Notes
If parts of the address are omitted from the original string
the accessor will be nil in StreetAddress::US::Address.
Example:
address = StreetAddress::US.parse("1600 Pennsylvania Ave, washington, dc")
assert address.postal_code.nil?
Acknowledgements
This gem is a near direct port of the perl module Geo::StreetAddress::US
originally written by Schuyler D. Erle. For more information see
http://search.cpan.org/~sderle/Geo-StreetAddress-US-0.99/


Inverted Index
Guide
File
library_add
UPLOAD
library_books
SEARCH INDEX
search
close
search
SEARCH FILES


WebSocket Stress Test
WebSocket support:
null
Connecting to:
null
Connecting on Port:
null
Echo Test Result:
Waiting...
Number of successful connections:
null


This is my package that houses functions I find myself frequently using. I am also using this package to learn about building flexible and robust packages :)
Round whole numbers up. This function will always round up to the number place second to the left:
Number with only 2 numeric places (tens), then it will round on the tens position value:
If needed, we can change the value to a dollar amount. Using as_dollar = TRUE
will change the numeric value to a character:


LETTER: Trust Democrats to deliver a thriving economy?
by Ray Kolander, Las VegasIn her Sunday letter (“Hard data”), Deborah Smith claims that, when it comes to a stronger economy, a Democratic-led government is better than one led by Republicans. Nothing could be further from the truth.
Has Ms. Smith noticed the stock market? Apparently not, because it exceeded 28,000 this week. How about the unemployment rate, including that for minorities and African-Americans? It is at an all-time low. Consumer spending and confidence are at all-time highs.
This happened, plain and simple, because of the Trump administration’s tax-cut policies and its elimination of burdensome rules and regulations.
Democrats believe you grow the economy by expanding government and hiring worthless, do-nothing, six-figure bureaucrats to run needless organizations such as the Consumer Financial Protection Bureau. Or by promoting nonexistent “shovel ready” jobs and stimulus programs in which few benefit and the nation’s debt increases by trillions. That is what existed during the Obama administration, and the economy was basically stuck in mud.


[gecode-users] missing doc for element constraint
Guido Tack
tack at gecode.org
Wed Aug 4 15:50:40 CEST 2010
Denys Duchier wrote:
> Using finite domain integers > Element constraints
>
> As far as I can tell, the h parameter in the last 4 element constraints
> is not documented. What is it for?
It is documented:
Throws an exception of type Int::ArgumentSizeMismatch, if w*h != |a|
These element constraints are for 2d matrices of width w and height h encoded in the IntVarArgs a.
Cheers,
Guido
--
Guido Tack, http://people.cs.kuleuven.be/~guido.tack/
More information about the users
mailing list


Password Validator
Enter Password:
Testing Your Password:
Length of Password between (5-10).
Password Contain Digit.
Password Contain Upper Alphabet.
Password Contain Lower Alphabet.
Password Contain Special Characters.
Password Not Contain Space.


Technical Blog: SQL Query Optimization
April 19, 2015
When working with big database you would want retrieve data efficiently and fast. Here are some SQL command techniques that might help you.
It is faster if you type the actual columns names instead of '*' in SELECT statement. For example, instead of:
SELECT * FROM students;
try
SELECT id, first_name, last_name, age, subject FROM students;
Below are some examples with WHERE clause.


Don't have an account ?
SIGN IN
SIGN UP
© 2018 Ewako Games.com


{% for comment in post.approved_comments %}
{{ comment.user_name }} {{ comment.created|timesince }} / {% trans "Reply" %}
{{ comment.content }}
{% for reply in comment.approved_replies %}{{ reply.user_name }} {{ reply.created|timesince }}
{{ reply.content }}
{% include "post/_comment_form.html" %}


/*
* Copyright (c) 2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @flow
*
*/
import * as handlers from './handlers';
import parse from './parse';
import * as resolver from './resolver';
import * as utils from './utils';
var defaultResolver = resolver.findExportedComponentDefinition;
var defaultHandlers = [
handlers.propTypeHandler,
handlers.propTypeCompositionHandler,
handlers.propDocBlockHandler,
handlers.flowTypeHandler,
handlers.flowTypeDocBlockHandler,
handlers.defaultPropsHandler,
handlers.componentDocblockHandler,
handlers.displayNameHandler,
handlers.componentMethodsHandler,
handlers.componentMethodsJsDocHandler,
];
/**
* See `lib/parse.js` for more information about the arguments. This function
* simply sets default values for convenience.
*
* The default resolver looks for *exported* `React.createClass(def)` calls
* and expected `def` to resolve to an object expression.
*
* The default `handlers` look for `propTypes` and `getDefaultProps` in the
* provided object expression, and extract prop type information, prop
* documentation (from docblocks), default prop values and component
* documentation (from a docblock).
*/
function defaultParse( // eslint-disable-line no-unused-vars
src: string,
resolver?: ?Resolver, // eslint-disable-line no-shadow
handlers?: ?Array<Handler> // eslint-disable-line no-shadow
): Array<Object>|Object {
Eif (!resolver) {
resolver = defaultResolver;
}
if (!handlers) {
handlers = defaultHandlers;
}
return parse(src, resolver, handlers);
}
export {
defaultParse as parse,
defaultHandlers,
handlers,
resolver,
utils,
};
|


| Package | Description |
|---|---|
| io.permazen |
Abstraction layer allowing access to a
Database using normal Java objects. |
| io.permazen.core |
Core classes for the Permazen Java persistence layer.
|
| io.permazen.kv |
byte[] array key/value store API and related utility classes. |
| io.permazen.kv.array |
A simple
KVStore implementation based on a sorted array of key/value pairs. |
| io.permazen.kv.bdb |
KVDatabase implementation based on Oracle's Berkeley DB Java Edition. |
| io.permazen.kv.caching |
Caching
KVStore and KVDatabase layers. |
| io.permazen.kv.fdb |
KVDatabase implementation based on FoundationDB. |
| io.permazen.kv.leveldb |
KVDatabase implementation based on LevelDB. |
| io.permazen.kv.lmdb |
KVDatabase implementation based on LMDB. |
| io.permazen.kv.mvcc |
Utility classes for MVCC type operations using a
KVStore . |
| io.permazen.kv.mvstore |
AtomicKVStore and KVDatabase implementations based
on H2 MVStore. |
| io.permazen.kv.raft |
A distributed
KVDatabase based on the Raft consensus algorithm. |
| io.permazen.kv.raft.fallback |
A partition-tolerant
KVDatabase that automatically migrates between a clustered
RaftKVDatabase and a private non-clustered "standalone mode"
KVDatabase , based on availability of the Raft cluster. |
| io.permazen.kv.rocksdb |
KVDatabase implementation based on RocksDB. |
| io.permazen.kv.simple |
A simple in-memory implementation of the
KVDatabase interface. |
| io.permazen.kv.spanner |
KVDatabase implementation based on Google Cloud Spanner. |
| io.permazen.kv.sql |
KVDatabase implementations based on SQL connections. |
| io.permazen.kv.test |
Permazen key/value unit test support classes.
|
| io.permazen.kv.util |
Utility classes relating to the
KVDatabase interface. |
| io.permazen.kv.xodus |
KVDatabase implementation based on Xodus. |
| Modifier and Type | Method and Description |
|---|---|
KVTransaction |
Session.getKVTransaction()
Get the open
KVTransaction currently associated with this instance. |
| Modifier and Type | Method and Description |
|---|---|
JTransaction |
Permazen.createTransaction(KVTransaction kvt,
boolean allowNewSchema,
ValidationMode validationMode)
Create a new transaction using an already-opened
KVTransaction . |
| Modifier and Type | Method and Description |
|---|---|
KVTransaction |
Transaction.getKVTransaction()
Get the underlying key/value store transaction.
|
| Modifier and Type | Method and Description |
|---|---|
Transaction |
Database.createTransaction(KVTransaction kvt,
SchemaModel schemaModel,
int version,
boolean allowNewSchema)
Create a new
Transaction on this database using an already-opened KVTransaction and specified schema. |
| Modifier and Type | Method and Description |
|---|---|
KVTransaction |
KVDatabase.createTransaction()
Create a new transaction.
|
KVTransaction |
KVDatabase.createTransaction(Map<String,?> options)
Create a new transaction with the specified options.
|
KVTransaction |
KVTransactionException.getTransaction()
Get the
KVTransaction that generated this exception. |
| Modifier and Type | Class and Description |
|---|---|
class |
ArrayKVTransaction
ArrayKVDatabase transaction. |
| Modifier and Type | Class and Description |
|---|---|
class |
BerkeleyKVTransaction
Oracle Berkeley DB Java Edition
KVTransaction implementation. |
| Modifier and Type | Class and Description |
|---|---|
class |
CachingKVTransaction
A transaction associated with a
CachingKVDatabase . |
| Modifier and Type | Field and Description |
|---|---|
protected KVTransaction |
CachingKVTransaction.inner
The underlying transaction.
|
| Modifier and Type | Method and Description |
|---|---|
KVTransaction |
CachingKVTransaction.getInnerTransaction()
Get the underlying
KVTransaction . |
| Modifier and Type | Method and Description |
|---|---|
protected CachingKVTransaction |
CachingKVDatabase.createTransaction(Supplier<? extends KVTransaction> innerTxCreator) |
| Modifier and Type | Class and Description |
|---|---|
class |
FoundationKVTransaction
FoundationDB transaction.
|
| Modifier and Type | Class and Description |
|---|---|
class |
LevelDBKVTransaction
LevelDBKVDatabase transaction. |
| Modifier and Type | Class and Description |
|---|---|
class |
ByteArrayLMDBKVTransaction
LMDBKVTransaction using byte[] arrays buffers. |
class |
LMDBKVTransaction<T>
LMDB transaction viewed as a
KVTransaction . |
| Modifier and Type | Class and Description |
|---|---|
class |
SnapshotKVTransaction
SnapshotKVDatabase transaction. |
| Constructor and Description |
|---|
TransactionConflictException(KVTransaction kvt,
Conflict conflict) |
TransactionConflictException(KVTransaction kvt,
Conflict conflict,
String message) |
| Modifier and Type | Class and Description |
|---|---|
class |
MVStoreKVTransaction
MVStoreKVDatabase transaction. |
| Modifier and Type | Class and Description |
|---|---|
class |
RaftKVTransaction
RaftKVDatabase transaction. |
| Modifier and Type | Class and Description |
|---|---|
class |
FallbackKVTransaction
A
KVTransaction associated with a FallbackKVDatabase . |
| Modifier and Type | Method and Description |
|---|---|
KVTransaction |
FallbackKVTransaction.getKVTransaction()
Get the underlying transaction, which will be associated with either one of the fallback
databases, or the standalone mode database.
|
| Modifier and Type | Method and Description |
|---|---|
void |
OverwriteMergeStrategy.mergeAndCommit(KVTransaction src,
KVTransaction dst,
Date lastActiveTime) |
void |
NullMergeStrategy.mergeAndCommit(KVTransaction src,
KVTransaction dst,
Date lastActiveTime) |
void |
MergeStrategy.mergeAndCommit(KVTransaction src,
KVTransaction dst,
Date lastActiveTime)
Merge data from the source database being migrated away from into the destination database being migrated to.
|
protected void |
OverwriteMergeStrategy.overwrite(KVTransaction src,
KVTransaction dst)
Overwrite one key/value database with another.
|
| Modifier and Type | Class and Description |
|---|---|
class |
RocksDBKVTransaction
RocksDBKVDatabase transaction. |
| Modifier and Type | Class and Description |
|---|---|
class |
SimpleKVTransaction
KVTransaction implementation for SimpleKVDatabase . |
class |
XMLKVTransaction
Transaction associated with a
XMLKVDatabase . |
| Modifier and Type | Class and Description |
|---|---|
class |
SpannerKVTransaction
SpannerKVDatabase transaction. |
| Modifier and Type | Class and Description |
|---|---|
class |
SQLKVTransaction
SQLKVDatabase transaction. |
| Modifier and Type | Method and Description |
|---|---|
protected KVTransaction |
KVTestSupport.createKVTransaction(KVDatabase kvdb) |
protected KVTransaction |
KVTestSupport.doCreateTransaction(KVDatabase kvdb) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
KVTestSupport.tryNtimes(KVDatabase kvdb,
Consumer<KVTransaction> consumer) |
protected <R> R |
KVTestSupport.tryNtimesWithResult(KVDatabase kvdb,
Function<KVTransaction,R> function) |
| Constructor and Description |
|---|
Committer(KVTransaction tx) |
Reader(KVTransaction tx,
byte[] key) |
Reader(KVTransaction tx,
byte[] key,
boolean range) |
Writer(KVTransaction tx,
byte[] key,
byte[] value) |
| Modifier and Type | Class and Description |
|---|---|
class |
PrefixKVTransaction
|
| Modifier and Type | Method and Description |
|---|---|
protected KVTransaction |
PrefixKVTransaction.delegate() |
| Constructor and Description |
|---|
PrefixKVTransaction(KVTransaction tx,
byte[] keyPrefix)
Constructor that wraps an existing
KVTransaction . |
| Modifier and Type | Class and Description |
|---|---|
class |
XodusKVTransaction
XodusKVDatabase transaction. |
Copyright © 2020. All rights reserved.


aeso_aci
Module
aeso_aci
The ACI interface encoder and decoder.
Description
This module provides an interface to generate and convert between Sophia contracts and a suitable JSON encoding of contract interface. As yet the interface is very basic.
Encoding this contract:
contract Answers =
record state = { a : answers }
type answers() = map(string, int)
stateful function init() = { a = {} }
private function the_answer() = 42
function new_answer(q : string, a : int) : answers() = { [q] = a }
generates the following JSON structure representing the contract interface:
{
"contract": {
"name": "Answers",
"type_defs": [
{
"name": "state",
"vars": [],
"typedef": "{a : map(string,int)}"
},
{
"name": "answers",
"vars": [],
"typedef": "map(string,int)"
}
],
"functions": [
{
"name": "init",
"arguments": [],
"type": "{a : map(string,int)}",
"stateful": true
},
{
"name": "new_answer",
"arguments": [
{
"name": "q",
"type": "string"
},
{
"name": "a",
"type": "int"
}
],
"type": "map(string,int)",
"stateful": false
}
]
}
}
When that encoding is decoded the following include definition is generated:
contract Answers =
function new_answer : (string, int) => map(string,int)
Types
contract_string() = string() | binary()
json_string() = binary()
Exports
encode(ContractString) -> {ok,JSONstring} | {error,ErrorString}
Types
ConstractString = contract_string()
JSONstring = json_string()
Generate the JSON encoding of the interface to a contract. The type definitions and non-private functions are included in the JSON string.
decode(JSONstring) -> ConstractString.
Types
ConstractString = contract_string()
JSONstring = json_string()
Take a JSON encoding of a contract interface and generate and generate a contract definition which can be included in another contract.
Example run
This is an example of using the ACI generator from an Erlang shell. The file called aci_test.aes
contains the contract in the description from which we want to generate files aci_test.json
which is the JSON encoding of the contract interface and aci_test.include
which is the contract definition to be included inside another contract.
1> {ok,Contract} = file:read_file("aci_test.aes").
{ok,<<"contract Answers =\n record state = { a : answers }\n type answers() = map(string, int)\n\n stateful function"...>>}
2> {ok,Encoding} = aeso_aci:encode(Contract).
<<"{\"contract\":{\"name\":\"Answers\",\"type_defs\":[{\"name\":\"state\",\"vars\":[],\"typedef\":\"{a : map(string,int)}\"},{\"name\":\"ans"...>>
3> file:write_file("aci_test.aci", Encoding).
ok
4> Decoded = aeso_aci:decode(Encoding).
<<"contract Answers =\n function new_answer : (string, int) => map(string,int)\n">>
5> file:write_file("aci_test.include", Decoded).
ok
6> jsx:prettify(Encoding).
<<"{\n \"contract\": {\n \"name\": \"Answers\",\n \"type_defs\": [\n {\n \"name\": \"state\",\n \"vars\": [],\n "...>>
The final call to jsx:prettify(Encoding)
returns the encoding in a
more easily readable form. This is what is shown in the description
above.
Notes
The ACI generator currently cannot properly handle types defined using datatype
.


Multi Term Vectors APIedit
Multi Term Vectors API allows to get multiple term vectors at once.
Multi Term Vectors Requestedit
There are two ways to create a MultiTermVectorsRequest
.
The first way is to create an empty MultiTermVectorsRequest
, and then add individual
term vectors requests to it.
MultiTermVectorsRequest request = new MultiTermVectorsRequest(); TermVectorsRequest tvrequest1 = new TermVectorsRequest("authors", "_doc", "1"); tvrequest1.setFields("user"); request.add(tvrequest1); XContentBuilder docBuilder = XContentFactory.jsonBuilder(); docBuilder.startObject().field("user", "guest-user").endObject(); TermVectorsRequest tvrequest2 = new TermVectorsRequest("authors", "_doc", docBuilder); request.add(tvrequest2);
|
Create an empty |
|
|
Add the first |
|
|
Add the second |
The second way can be used when all term vectors requests share the same
arguments, such as index, type, and other settings. In this case, a template
TermVectorsRequest
can be created with all necessary settings set, and
this template request can be passed to MultiTermVectorsRequest
along with all
documents' ids for which to execute these requests.
Synchronous Executionedit
When executing a MultiTermVectorsRequest
in the following manner, the client waits
for the MultiTermVectorsResponse
to be returned before continuing with code execution:
MultiTermVectorsResponse response = client.mtermvectors(request, RequestOptions.DEFAULT);
Synchronous calls may throw an IOException
in case of either failing to
parse the REST response in the high-level REST client, the request times out
or similar cases where there is no response coming back from the server.
In cases where the server returns a 4xx
or 5xx
error code, the high-level
client tries to parse the response body error details instead and then throws
a generic ElasticsearchException
and adds the original ResponseException
as a
suppressed exception to it.
Asynchronous Executionedit
Executing a MultiTermVectorsRequest
can also be done in an asynchronous fashion so that
the client can return directly. Users need to specify how the response or
potential failures will be handled by passing the request and a listener to the
asynchronous multi-term-vectors method:
The asynchronous method does not block and returns immediately. Once it is
completed the ActionListener
is called back using the onResponse
method
if the execution successfully completed or using the onFailure
method if
it failed. Failure scenarios and expected exceptions are the same as in the
synchronous execution case.
A typical listener for multi-term-vectors
looks like:
Multi Term Vectors Responseedit
MultiTermVectorsResponse
allows to get the list of term vectors responses,
each of which can be inspected as described in
Term Vectors API.


The nosh toolset comprises these commands. See their manual pages for documentation.
The eponymous nosh
is a minimal non-shell script interpreter, for use in run
scripts (and elsewhere) where desired.
Its operation is akin to that of Laurent Bercot's execline
.
The idea of it is to eliminate even the startup cost of the Almquist shell from service scripts (c.f. Debian's switch from the Bourne Again to the Almquist shell to reduce shell overhead in system scripts).
nosh
isn't a shell at all, does no parsing (only lexing), and incorporates most of the package's chain-loading tools as built-ins (to even eliminate the cost of execve
and runtime library setup/teardown).
exec
is, similarly, a simple tool for chain-loading.
General process state:
appendpath
— append a value to the end of a path-style environment variable, handling the separator characters for you
background
— run a child process asynchronously
chdir
— change working directory
chroot
— change root directory
clearenv
— clear the environment, selectively or totally
delegate-control-group-to
— delegate the current control group to an(other) account, preparatory to becoming that user with setuidgid
or similar
envdir
— process a daemontools-style envdir to set/unset environment variables
envgid
— set GID
and GIDLIST
environment variable values from the system account database
envuidgid
— set UID
, GID
, and GIDLIST
environment variable values from the system account database
fdmove
— copy/move file descriptors around
fdredir
— open file descriptors for reading, writing, append, and so forth
find-default-jvm
— find the JAVA_HOME
for the default JVM
find-matching-jvm
— find the JAVA_HOME
for a matching JVM
foreground
— run a child process synchronously, before continuing
getuidgid
— set the UID
, GID
, and GIDLIST
environment variables from the effective UID+GID and supplementary groups of the process
hardlimit
— change hard resource limits
local-reaper
— set the local "Grim Reaper" status on/off
machineenv
— initialize "machine" environment variables such as HOSTNAME
, MACHINEID
, and DOMAINNAME
make-private-fs
— mount private filesystems in various places to hide the global filesystems from view
make-read-only-fs
— mount read-only filesystems in various places
move-to-control-group
— change into a given control group, absolute or relative to the current one
oom-kill-protect
— set the protection level against the kernel's Out Of Memory Killer
pipe
— run a child process asynchronously, connected to the current process's standard input or standard output via a pipe
prependpath
— prepend a value to the beginning of a path-style environment variable, handling the separator characters for you
read-conf
— process a BSD rc.conf
style file to set environment variables
set-control-group-knob
— change a knob in the current control group
set-mount-object
— set the state of a mount object, in the process' mount namespace
setenv
— set an environment variable
setgid-fromenv
— set GID and supplementary groups from environment variables
setlock
— obtain an open file descriptor for a lock file
setlogin
— set the account name/user ID of the current login session, if permitted
setpgrp
— become a process group leader, if permitted
setsid
— become a session leader, if permitted
setuidgid-fromenv
— set UID, GID, and supplementary groups from environment variables
setuidgid
— set UID, GID, and supplementary groups from the system account database
softlimit
— change soft resource limits
time-env-add
— add an offset to a TAI64N time held in an environment variable
time-env-set
— set a TAI64N time held in an environment variable
time-env-set-if-earlier
— overwrite a TAI64N time held in an environment variable with another value if it is earlier
time-env-unset-if-later
— unset an environment variable if the TAI64N time held there is later than another value
ulimit
— change soft or hard resource limits
umask
— change the umask
unsetenv
— unset an environment variable
unshare
— unshare Linux namespaces
userenv
— initialize "login" environment variables such as HOME
, SHELL
, USER
, and LOGNAME
based upon the effectuve UID+GID and supplementary groups of the process
userenv-fromenv
— initialize "login" environment variables such as HOME
, SHELL
, USER
, and LOGNAME
based upon the values of the UID
, GID
, and GIDLIST
environment variables
Construction tools for terminal login services and pseudo-terminal tools:
login-banner
— display an /etc/issue
style banner
login-process
— write a "login"/"getty" entry in the login accounting database for the controlling terminal (Modern BSDs no longer support this notion.)
login-prompt
— wait for a newline from the terminal, serial terminal login style, to prevent unnecessary service churn when login
has a timeout that cannot be turned off
open-controlling-tty
— open the device named by TTY
as the controlling terminal and set the standard file descriptors
pty-get-tty
— open the master side of a new pseudo-terminal and set TTY
to the name of the attached slave side device
pty-run
— perform all I/O beween the master side of a pseudo-terminal and standard input/output, and spawn a child as the slave side
vc-get-tty
— set TTY
to the name of a kernel/user space virtual terminal device, and set TERM
to an appropriate terminal emulator type
vc-reset-tty
— emit, without need for any termcap/terminfo database to be accessible, the control sequences to reset a kernel/user space virtual terminal (Logout causes terminal hangup and console-terminal-emulator
to reset the terminal, making this largely unnecessary with user space virtual terminals.)
Interacting with UCSPI servers:
line-banner
— print the initial greeting that some UCSPI-TCP services do not print for themselves
fifo-listen
— open a listening FIFO
local-datagram-socket-listen
— open a listening AF_LOCAL datagram socket
local-seqpacket-socket-accept
— accept connections on an AF_LOCAL sequential packet socket, with concurrency control
local-seqpacket-socket-listen
— open a listening AF_LOCAL sequantial packet socket
local-stream-socket-accept
— accept connections on an AF_LOCAL stream socket, with concurrency control
local-stream-socket-connect
— connect to an AF_LOCAL stream server
local-stream-socket-listen
— open a listening AF_LOCAL stream socket
netlink-datagram-socket-listen
— open a listening AF_NETLINK datagram socket
recordio
— a UCSPI filter that records all I/O traffic to file
tcp-socket-accept
— accept connections on a TCP socket, with concurrency control
tcp-socket-connect
— connect to a TCP server
tcp-socket-listen
— open a listening TCP socket
tcpserver
— open a listening TCP socket and accept connections on it
ucspi-socket-rules-check
— check the peer (i.e. client) end of the open socket against an access control rules database
udp-socket-connect
— connect to a UDP server
udp-socket-listen
— open a listening UDP socket
Others:
monitored-fsck
— invoke fsck
so that its progress information is directed to a monitoring service
Log management:
cyclog
— a tool to run (simple) logging services that write a size-limited, nanosecond timestamped, and automatically-rotated set of log files
klog-read
— a UCSPI server that expects stream input, which it decodes from the old syslog message format and writes to its own log output
syslog-read
— a UCSPI server that expects datagram input, which it decodes from the old syslog message format and writes to its own log output
tai64n
— a Unix-style filter to prepend nanosecond timestamps to each line of its input and send the result to its output
tai64nlocal
— a Unix-style filter to substitute local format local timezone timestamps for nanosecond timestamps in its input and send the result to its output
export-to-rsyslog
— post-process one or more log directories, sending log data to an RSYSLOG server
follow-log-directories
— post-process one or more log directories, writing log data to standard error
User space virtual terminal services and terminal tools:
console-clear
(a.k.a. clear_console
) — clear a terminal's display, and its scroll back buffer if it has one (a replacement for the Bourne Again shell's external command of the same name) that uses (de facto) standard control sequences (supported by xterm, PuTTY, the Linux kernel terminal emulator, and console-terminal-emulator
) rather than kernel-specific virtual terminal mechanisms (Logout causes terminal hangup and console-terminal-emulator
to clear the display buffer, making this largely unnecessary with user space virtual terminals.)
console-convert-kbdmap
— create a full ISO 9995-3 keyboard map from a BSD kbdmap
file
console-control-sequence
— emit various standard and conventional control sequences
console-decode-ecma48
— decode ECMA 48 sequences into human-readable form
console-fb-realizer
— "realize" a user-space virtual terminal onto a physical "head", i.e a keyboard input event device and a framebuffer display device, with specified fonts and keyboard maps
console-ncurses-realizer
— "realize" a user-space virtual terminal onto another terminal using Wide NCurses
console-termio-realizer
— "realize" a user-space virtual terminal onto another terminal using straight terminal I/O
console-input-method
— layer an input method over a user-space virtual terminal, providing CJK and other input
console-input-method-control
— control input method user-space virtual terminals
console-multiplexor
— multiplex several user-space virtual terminals into one, using the conventional alt
-plus-function-key hotkeys
console-multiplexor-control
— control multiplexed user-space virtual terminals
console-resize
(a.k.a. resizecons
) — resize a terminal's display using DEC VT control sequences, which can properly pass over remote connections and don't need superuser privileges
console-terminal-emulator
— provide the internal workings of a user-space virtual terminal, compatible with the Linux/FreeBSD/SCO kernel terminal emulators or a DEC VT
Login services:
emergency-login
— a minimal superuser login program that only uses the system account database, suitable for use in emergency mode when there is no remote authentication available, there are no non-root filesystems mounted, and the TTY "secure" flag needs to be ignored
ttylogin-starter
— auto-start ttylogin@
services (on demand on Linux) for kernel virtual terminals
login-update-utmpx
— update the active terminal login database for bootstrap and shutdown
Others:
console-docbook-xml-viewer
— view DocBook XML reference manuals
console-flat-table-viewer
— view tables from variable-length-record flat file databases
false
— do nothing, and exit with a failure code
ifconfig
— configure network interfaces
monitor-fsck-progress
— a UCSPI "accepting" server that expects instances of fsck
to connect to it as clients, and that displays fancy progress information on the console it is attached to
pause
— do nothing forever, until signalled
plug-and-play-event-handler
— a UCSPI server to read Plug and Play events and invoke a Plug and Play manager utility, one at a time and in order, for each event
printenv
— print the values of specified environment variable, or the whole environment
set-dynamic-hostname
— initialize the system hostname
setup-machine-id
— initialize the system machine ID and (BSD) host ID
erase-machine-id
— erase the system machine ID and (BSD) host ID
time-pause-until
— wait until a specified TAI64N time has passed
time-print-tai64n
— print a specified time in TAI64N form
true
— do nothing, and exit with a success code
system-manager
— the system manager
per-user-manager
— the per-user manager
service-manager
— the service manager
The system-control
utility provides native service control and status that takes account of service orderings and dependencies.
Its subcommands include:
system-control enable
— enable a service to be autostarted at bootstrap system-control disable
— disable a service from being autostarted at bootstrap system-control start
— start a service system-control stop
— stop a service system-control preset
— set the enable/disable state according to native (as well as systemd-compatible) preset information supplied by packages or the system administrator system-control reset
— reset to the autostart status: start an enabled service, stop a disabled one system-control is-active
— determine whether a service is in the "running" state system-control is-loaded
— determine whether a service is loaded by the service manager system-control is-enabled
— determine whether a service is enabled system-control condrestart
— restart a service, if and only if it is currently running system-control hangup
— send session hangup to a service's main process system-control status
— display the status of a service, including the last few lines of its log (if readable via ./log/main/current
) and whether it is enabled system-control show
— output the status of a service, in a machine-readable .INI form system-control show-json
— output the status of a service, in a machine-readable JSON form system-control cat
— display the execution scripts for a service system-control find
— locate a service's service bundle directory system-control unload-when-stopped
— instruct the service manager to unload the service when next it is stopped
For OpenBSD compatibility, it can also be invoked under the name rcctl
, with subcommands:
rcctl get
(a.k.a. system-control print-service-env
) — retrieve environment variables from the service's environment variable template (a daemontools-style envdir in ./service/env/
) rcctl set
(a.k.a. system-control set-service-env
) — set environment variables in the service's environment variable template (a daemontools-style envdir in ./service/env/
) rcctl enable
— enable a service rcctl disable
— disable a service
With the systemd compatibility package, system-control
can also be invoked under the name systemctl
.
Other systemd compatibility commands include:
convert-systemd-units
— convert a systemd target unit, a systemd service unit, or a pair of a service unit and a systemd socket unit, into a native service bundle
The system-control
utility also provides native system control, with the subcommands:
system-control init
— bring the system up in whatever mode the boot loader specified system-control normal
— bring the system up in normal mode (full multi-user login, with all workstation and server services) system-control rescue
— bring the system up in rescue mode (console-only login using the normal login
program, with filesystems mounted and basic system initialized) system-control emergency
— bring the system up in emergency mode (console-only login using emergency-login
, with no initialization) system-control halt
— shutdown all services, unmount all filesystems, and halt the machine system-control reboot
— shutdown all services, unmount all filesystems, and reboot the machine system-control poweroff
— shutdown all services, unmount all filesystems, and power down the machine Other subcommands are:
system-control load-kernel-module
— simple and portable shim for the operating system's kernel module loading tool, used to make portable kmod@
service bundles system-control unload-kernel-module
— simple and portable shim for the operating system's kernel module unloading tool, used to make portable kmod@
service bundles system-control convert-fstab-services
— generate swap@
, dump@
, fsck@
, and mount@
service bundles from the contents of /etc/fstab
system-control write-volume-service-bundles
— generate the swap@
, dump@
, fsck@
, and mount@
service bundles for a single volume system-control nagios-check-service
— a very simple Nagios passive check plug-in that raises critical alerts for non-running enabled services and warnings for disabled services system-control get-mount-where
— find the mount "where" from its "what" system-control get-mount-what
— find the mount "what" from its "where" daemontools-style raw service control and status commands are:
service-control
— the service control utility through which one sends low-level commands to an individual service via its control API in the supervise
directory
daemontools-compatible form: svc -u
service
native form: service-control --down
service
including a whole load of signals not supported by the original daemontools tool
svc -q
/ service-control --quit
svc -1
/ service-control --usr1
svc -2
/ service-control --usr2
svc -w
/ service-control --window
svc -z
/ service-control --suspend
service-dt-scanner
(a.k.a. svscan
) — scan a daemontools-style services directory and command the service manager accordingly
service-status
(a.k.a. svstat
) — service status query tool with human-readable output
service-show
(a.k.a. svshow
) — service status query tool with machine-readable (.INI or JSON) output
service-is-up
(a.k.a. svup
) — test that a service is in the "running" state
service-is-ok
(a.k.a. svok
) — test that a service is loaded and managed by the service manager
service-is-enabled
— test that a service is enabled
There are a whole load of compatibility shims.
System 5 and BSD compatibility tools are complicated by the fact that both traditional toolsets include options that can turn several of the tools into one another, allowing cruel system administrators to give computers self-contradictory and impossible to execute as stated commands such as reboot -p
and halt --reboot
.
The System 5, Debian, BSD, Solaris, and upstart compatibility commands are:
shutdown
— halt/reboot/poweroff, optionally after a period and writing warning messages to logged-on users
reboot
— halt/reboot/poweroff
fastboot
— halt/reboot/poweroff, bypassing shutdown
halt
(a.k.a. haltsys
) — halt/reboot/poweroff
fasthalt
— halt/reboot/poweroff, bypassing shutdown
poweroff
— halt/reboot/poweroff
telinit
— halt/reboot/poweroff or rescue/normal
service
— a limited shim supporting the subset of conventional subcommands that are common to both System 5 and BSD
start
— start a service
stop
— stop a service
status
— display the status of a service
chkconfig
— a limited shim with subcommands
on
— enable a service
off
— disable a service
reset
— preset a service
update-rc.d
— preset/disable a service, providing a simple Debian workalike that consults native and systemd-compatible preset information rather than Debian-only "policy" mechanisms
invoke-rc.d
— reset/stop a service, providing a simple Debian workalike that simply relies upon the already-determined preset status
rc-update
— preset/disable a service, providing a simple OpenRC workalike that consults native and systemd-compatible preset information
rc-service
— start/stop a service, providing a simple OpenRC workalike
initctl
— a simple alias for system-control
; supporting start
, stop
, status
, and suchlike subcommands; and as a bonus adding extra non-upstart things like initctl show
and initctl preset
because of that
svcadm
— a simple alias for system-control
, for Solaris compatibility


PretendingToCode
A Cydia repo for hosting and distributing my iOS projects
I'm going to try to update this repo semi-regularly. Click the link below to add the source to Cydia!
Add to Cydia


Landing Page
Special Projects
This story is part of a series of specially designed stories that represents some of the best journalism The Post has to offer. Check out the rest of the special projects here.
MEAGAN HALL
08.24.17
Another school year is finally here. I use the word “finally” assuming that you are in fact a
Bobcat — and I have never met a Bobcat that wasn’t ecstatic about returning to Athens.
Undoubtedly, welcome week can be overwhelming as you ride waves of different emotions, even for those of us who have a few years under our belts. If you’re experiencing excitement, sadness, denial and stress all at one time right now, you might want to read what is ahead, because I can assure you, you are not alone.
There are a few stages of emotions that everyone probably experiences during welcome week as our bodies starts acclimating to a more rigorous schedule and the bed sores start to heal from all-night Netflix benders during the summer.
The first emotion that I always notice when I get back to school is excitement. I’m so excited to get back into a routine, see my friends, go to familiar hang out spots and see Athens again. Let’s face it, you missed the relaxed, small-town vibe and local comforts. After the excitement settles down, you notice how secure and content you feel being home after four months away. It’s as if you never left.
Despite these feelings, it is also likely that they clash with some feelings of sadness too. Coming back to school means leaving your family, pets and friends from home. One thing that I have had to get used to while in college is the constant cycle of hellos and goodbyes. Anytime I’m saying hello to friends, I am saying goodbye to family and vice versa the other half of the year. Sure, it is definitely hard to get used to, but it really helps you grow emotionally and appreciate the time you have with people while you’re in the moment.
Aside from the depressing feeling of leaving loved ones behind, you’re probably still in shock that you actually have to start working on papers, speeches, presentations, and group projects again, which can be equally as saddening. Maybe you can even call it denial. But rest assured that if you deny that syllabus week will be over before you know it, you’ll be in for a rude awakening. Just try to ease into it. Make time for relaxation, time outside, and catch up with friends. Try not to dive in all at once and spread yourself too thin the first couple of weeks because that could set a bad tone for the semester.
After living in your own head during welcome week and battling ups and downs of emotions, reality will set in, I promise. Give yourself some time and you will feel ready to tackle the year.  Cheers to a happy, fun and healthy
school year. Welcome back, Bobcats.
— Rylie Brown is a junior studying journalism. Please note that the views and opinions expressed by columnists do not reflect those of The Post. Are you excited to be back in Athens? Let Rylie know by tweeting her @RylieMarieBrown.
Landing Page
This story is part of a series of specially designed stories that represents some of the best journalism The Post has to offer. Check out the rest of the special projects here.


|
libevent
|
Go to the source code of this file.
Functions | |
| EVENT2_EXPORT_SYMBOL struct evdns_server_port * | evdns_add_server_port (evutil_socket_t socket, int flags, evdns_request_callback_fn_type callback, void *user_data) |
| As evdns_server_new_with_base. More... | |
| EVENT2_EXPORT_SYMBOL int | evdns_clear_nameservers_and_suspend (void) |
| Remove all configured nameservers, and suspend all pending resolves. More... | |
| EVENT2_EXPORT_SYMBOL int | evdns_count_nameservers (void) |
| Get the number of configured nameservers. More... | |
| EVENT2_EXPORT_SYMBOL struct evdns_base * | evdns_get_global_base (void) |
| Return the global evdns_base created by event_init() and used by the other deprecated functions. More... | |
| EVENT2_EXPORT_SYMBOL int | evdns_init (void) |
| Initialize the asynchronous DNS library. More... | |
| EVENT2_EXPORT_SYMBOL int | evdns_nameserver_add (unsigned long int address) |
| Add a nameserver. More... | |
| EVENT2_EXPORT_SYMBOL int | evdns_nameserver_ip_add (const char *ip_as_string) |
| Add a nameserver. More... | |
| EVENT2_EXPORT_SYMBOL int | evdns_resolv_conf_parse (int flags, const char *const filename) |
| Parse a resolv.conf file. More... | |
| EVENT2_EXPORT_SYMBOL int | evdns_resolve_ipv4 (const char *name, int flags, evdns_callback_type callback, void *ptr) |
| Lookup an A record for a given name. More... | |
| EVENT2_EXPORT_SYMBOL int | evdns_resolve_ipv6 (const char *name, int flags, evdns_callback_type callback, void *ptr) |
| Lookup an AAAA record for a given name. More... | |
| EVENT2_EXPORT_SYMBOL int | evdns_resolve_reverse (const struct in_addr *in, int flags, evdns_callback_type callback, void *ptr) |
| Lookup a PTR record for a given IP address. More... | |
| EVENT2_EXPORT_SYMBOL int | evdns_resolve_reverse_ipv6 (const struct in6_addr *in, int flags, evdns_callback_type callback, void *ptr) |
| Lookup a PTR record for a given IPv6 address. More... | |
| EVENT2_EXPORT_SYMBOL int | evdns_resume (void) |
| Resume normal operation and continue any suspended resolve requests. More... | |
| EVENT2_EXPORT_SYMBOL void | evdns_search_add (const char *domain) |
| Add a domain to the list of search domains. More... | |
| EVENT2_EXPORT_SYMBOL void | evdns_search_clear (void) |
| Clear the list of search domains. More... | |
| EVENT2_EXPORT_SYMBOL void | evdns_search_ndots_set (const int ndots) |
| Set the 'ndots' parameter for searches. More... | |
| EVENT2_EXPORT_SYMBOL int | evdns_set_option (const char *option, const char *val, int flags) |
| Set the value of a configuration option.  More... | |
Potentially non-threadsafe versions of the functions in dns.h: provided only for backwards compatibility.
| EVENT2_EXPORT_SYMBOL struct evdns_server_port* evdns_add_server_port | ( | evutil_socket_t | socket, |
| int | flags, | ||
| evdns_request_callback_fn_type | callback, | ||
| void * | user_data | ||
| ) |
As evdns_server_new_with_base.
| EVENT2_EXPORT_SYMBOL int evdns_clear_nameservers_and_suspend | ( | void | ) |
Remove all configured nameservers, and suspend all pending resolves.
Resolves will not necessarily be re-attempted until evdns_resume() is called.
| EVENT2_EXPORT_SYMBOL int evdns_count_nameservers | ( | void | ) |
Get the number of configured nameservers.
This returns the number of configured nameservers (not necessarily the number of running nameservers). This is useful for double-checking whether our calls to the various nameserver configuration functions have been successful.
| EVENT2_EXPORT_SYMBOL struct evdns_base* evdns_get_global_base | ( | void | ) |
Return the global evdns_base created by event_init() and used by the other deprecated functions.
| EVENT2_EXPORT_SYMBOL int evdns_init | ( | void | ) |
Initialize the asynchronous DNS library.
This function initializes support for non-blocking name resolution by calling evdns_resolv_conf_parse() on UNIX and evdns_config_windows_nameservers() on Windows.
| EVENT2_EXPORT_SYMBOL int evdns_nameserver_add | ( | unsigned long int | address | ) |
Add a nameserver.
The address should be an IPv4 address in network byte order. The type of address is chosen so that it matches in_addr.s_addr.
| address | an IP address in network byte order |
| EVENT2_EXPORT_SYMBOL int evdns_nameserver_ip_add | ( | const char * | ip_as_string | ) |
Add a nameserver.
This wraps the evdns_nameserver_add() function by parsing a string as an IP address and adds it as a nameserver.
| EVENT2_EXPORT_SYMBOL int evdns_resolv_conf_parse | ( | int | flags, |
| const char *const | filename | ||
| ) |
Parse a resolv.conf file.
The 'flags' parameter determines what information is parsed from the resolv.conf file. See the man page for resolv.conf for the format of this file.
The following directives are not parsed from the file: sortlist, rotate, no-check-names, inet6, debug.
If this function encounters an error, the possible return values are: 1 = failed to open file, 2 = failed to stat file, 3 = file too large, 4 = out of memory, 5 = short read from file, 6 = no nameservers listed in the file
| flags | any of DNS_OPTION_NAMESERVERS|DNS_OPTION_SEARCH|DNS_OPTION_MISC| DNS_OPTIONS_ALL |
| filename | the path to the resolv.conf file |
| EVENT2_EXPORT_SYMBOL int evdns_resolve_ipv4 | ( | const char * | name, |
| int | flags, | ||
| evdns_callback_type | callback, | ||
| void * | ptr | ||
| ) |
Lookup an A record for a given name.
| name | a DNS hostname |
| flags | either 0, or DNS_QUERY_NO_SEARCH to disable searching for this query. |
| callback | a callback function to invoke when the request is completed |
| ptr | an argument to pass to the callback function |
| EVENT2_EXPORT_SYMBOL int evdns_resolve_ipv6 | ( | const char * | name, |
| int | flags, | ||
| evdns_callback_type | callback, | ||
| void * | ptr | ||
| ) |
Lookup an AAAA record for a given name.
| name | a DNS hostname |
| flags | either 0, or DNS_QUERY_NO_SEARCH to disable searching for this query. |
| callback | a callback function to invoke when the request is completed |
| ptr | an argument to pass to the callback function |
| EVENT2_EXPORT_SYMBOL int evdns_resolve_reverse | ( | const struct in_addr * | in, |
| int | flags, | ||
| evdns_callback_type | callback, | ||
| void * | ptr | ||
| ) |
Lookup a PTR record for a given IP address.
| in | an IPv4 address |
| flags | either 0, or DNS_QUERY_NO_SEARCH to disable searching for this query. |
| callback | a callback function to invoke when the request is completed |
| ptr | an argument to pass to the callback function |
| EVENT2_EXPORT_SYMBOL int evdns_resolve_reverse_ipv6 | ( | const struct in6_addr * | in, |
| int | flags, | ||
| evdns_callback_type | callback, | ||
| void * | ptr | ||
| ) |
Lookup a PTR record for a given IPv6 address.
| in | an IPv6 address |
| flags | either 0, or DNS_QUERY_NO_SEARCH to disable searching for this query. |
| callback | a callback function to invoke when the request is completed |
| ptr | an argument to pass to the callback function |
| EVENT2_EXPORT_SYMBOL int evdns_resume | ( | void | ) |
Resume normal operation and continue any suspended resolve requests.
Re-attempt resolves left in limbo after an earlier call to evdns_clear_nameservers_and_suspend().
| EVENT2_EXPORT_SYMBOL void evdns_search_add | ( | const char * | domain | ) |
Add a domain to the list of search domains.
| domain | the domain to be added to the search list |
| EVENT2_EXPORT_SYMBOL void evdns_search_clear | ( | void | ) |
Clear the list of search domains.
| EVENT2_EXPORT_SYMBOL void evdns_search_ndots_set | ( | const int | ndots | ) |
Set the 'ndots' parameter for searches.
Sets the number of dots which, when found in a name, causes the first query to be without any search domain.
| ndots | the new ndots parameter |
| EVENT2_EXPORT_SYMBOL int evdns_set_option | ( | const char * | option, |
| const char * | val, | ||
| int | flags | ||
| ) |
Set the value of a configuration option.
The currently available configuration options are:
ndots, timeout, max-timeouts, max-inflight, and attempts
| option | the name of the configuration option to be modified |
| val | the value to be set |
| flags | Ignored. |
| EVENT2_EXPORT_SYMBOL void evdns_shutdown | ( | int | fail_requests | ) |
Shut down the asynchronous DNS resolver and terminate all active requests.
If the 'fail_requests' option is enabled, all active requests will return an empty result with the error flag set to DNS_ERR_SHUTDOWN. Otherwise, the requests will be silently discarded.
| fail_requests | if zero, active requests will be aborted; if non-zero, active requests will return DNS_ERR_SHUTDOWN. |


Call start
Initialize
Start-WithoutConfig(contentId and Ver shoudl be defined)
Start-WithoutConfig(contentId and Ver be undefined)
Call interact
Call impression
Call response
Call Assessment
Call interrupt
Call end
Call error
Call exdata
Start1
Start2
Start3
End1
End2
End3


|
Weekly Update 134: Happy New Year!
Hello contributors,
I hope you had a great start to the new year. 2016 was a year full of activity and achievements for DuckDuckHack so I'd like to take a moment to reflect on the highlights of the past 12 months.
- We started the year with a global Quack & Hack event, bringing together contributors from around the world both online and offline, and with new explanatory videos. Read the post-event report here.
- We started a contributor list for easier community management and to enable people to have the DDG badge on their GitHub profile. You can request an invite here.
- The DuckDuckHack website got a nice refresh including a consolidated list of open issues as well as individual contributor profile pages such as this one.
- For the first time we focused on a single topic — a Programming Mission — to channel the efforts of the whole community to improve searches for developers. This has resulted in an increase in quality of code contributions, a lot of great feedback from users and we now have over 300 programming Instant Answers.
- To support the Programming Mission there's now a DuckDuckHack forum for discussing Instant Answer (IA) ideas and improvements, as well as automated data on IA usage.
- And to finish off with a couple more statistics, we finished the year with over 2,100 members in our Slack team (you can join here) and we passed 10,000 followers of the DuckDuckHack Twitter account.
But the thing that brings the biggest smile to my face is seeing the community thrive with enthusiastic new contributors, dedicated long-time contributors, helpful community leaders, and proactive language leaders. Thanks to your hard work we have a community that is friendly, creative and passionate about open source and privacy. Both individually and as a team, it's a pleasure to chat, plan and code with you and I look forward to what 2017 brings. Thank you all!
As usual, let's continue with a look at a few of the Instant Answer issues we're looking for help with...
|
|
Quick Tip
Here's a quick command line tip from developer Remy Sharp taken from his new book, Working the Command Line. It involves something called a pling dollar which is simply !$ and represents the last command line argument you entered. This could be useful when you're executing multiple related commands, but it's best explained with an example.
Let's say you're converting a video file into a new format, e.g. with ffmpeg :
ffmpeg -i input.mp4 output.webm
The final argument in this case is the name of the output file, so if you wanted to copy that file into a directory named "backup", you could use !$ instead of having to re-type the filename:
cp !$ backup
Not only does this save a bit of time, it also reduces the chance of typing errors — a double win!
|
|
That's all for now — have a wonderful 2017 everyone!
- The DuckDuckGo Staff
|
|
|


BRKP (PI with route setting type)
|
|
|
|
|
|
|
Loading...
- Single line, 3 road, 40 route station
- GNRR+UNR --> NRR --> UCR --> ALSR --> HR
- WNR/WRR used in NRR, UYRn
- NWKR/RWKR used in UCR (NKR && WNR)
- NWKLR/NWKLR used in HR (NWKR && ~WLR)
- To pickup HR for shunt or main signal GN button need to release
- Starter is interlocked with advance starter DECR
- Emergency route release => SH6 + EGGN => Signal put back to normal
- EUUYN then SH6-GN => SH6-JR timer start and route release after 2min
- Super emergency route release => SH6 + EGGN => Signal put back to normal
- S-KEY in + SH6-GN --> S/EGNR pickup and JSLR pickup (S-KEY can be taken out) --> JR pickup after 2min
- Route release If S-KEY is out otherwise wait for taking key out