skysight-inc/HackerNews huggingface dataset:
> getWithRetry takes a function with a return value
>
> def numberOfChildren(implicit user: LucidUser): Int = {
> getWithRetry() {
> user.driver.getCssElement(visibleCss).children.size
> }
> }
>
> predicateWithRetry takes function that returns a boolean and will retry on any false values
>
> def onPage(implicit user: LucidUser): Boolean = {
> predicateWithRetry() {
> user.driver.getCurrentUrl.contains(pageUrl)
> }
> }

At first I didn't get the difference between `getWithRetry` and
`predicateWithRetry`, but then I noticed that the former throws an
exception whereas the latter returns false. I infer that `getWithRetry`
will handle exceptions thrown by the retried function.

In stb-tester[1] (a UI tool/framework targeted more at consumer
electronics devices where the only access you have to the
system-under-test is an HDMI output) after a few years we've settled on
a `wait_until` function, which waits until the retried function returns
a "truthy" value. `wait_until` returns whatever the retried function
returns:

def miniguide_is_up():
return match("miniguide.png")

press(Key.INFO)
assert wait_until(miniguide_is_up)
# or:
if wait_until(miniguide_is_up): ...

(This is Python code.)

Since we use `assert` instead of throwing exceptions in our retried
function, `wait_until` seems to fill both the roles of `getWithRetry`
and `predicateWithRetry`. I suppose that you've chosen to go with 2
separate functions because so many of the APIs provided by Selenium
throw exceptions instead of returning true/false.

> doWithRetry takes a function with no return type
>
> def clickFillColorWell(implicit user: LucidUser) {
> doWithRetry() {
> user.clickElementByCss("#fill-colorwell-color-well-wrapper")
> }

Unlike Selenium, when testing the UI of an external device we have no
way of noticing whether an action failed, other than by checking the
device's video output. For example we have `press` to send an infrared
signal ("press a button on the remote control"), but that will never
throw unless you've forgotten to plug in your infrared emitter. I
haven't come up with a really natural way of specifying the retry of
actions. We have `press_until_match`, but that's not very general. The
best I have come up with is `do_until`, which takes two functions: The
action to do, and the predicate to say whether the action succeeded.

do_until(
lambda: press(Key.INFO),
miniguide_is_up)

It's not ideal, given the limitations around Python's lambdas (anonymous
functions). Using Python's normal looping constructs is also not ideal:

# Could get into an infinite loop if the system-under-test fails
while not miniguide_is_up():
press(Key.INFO)

# This is very verbose, and it uses an obscure Python feature: `for...else`[2]
for _ in range(10):
press(Key.INFO)
if miniguide_is_up():
break
else:
assert False, "Miniguide didn't appear after pressing INFO 10 times"

Thanks for the article, I enjoyed it and it has reminded me to write up
more of my experiences with UI testing. I take it that the article's
sample code is Scala? I like its syntax for anonymous functions.

[1] http://stb-tester.com
[2] https://docs.python.org/2/reference/compound_stmts.html#the-...
Author here, thanks for the heads up. It doesn't look like mkfile is included with the Jessie base system I was using to test. For those wishing to use this method it looks like the xfsprogs package contains xfs_mkfile which operates the same as parent's example.
You probably got the "he seems smart, but I would expect someone with this much experience to gave progressed farther in his career, no hire because no trajectory , we can't hire someone with 15 years experience at the '7 years of experience' level he interviewed at". For people who are solid contributors and not "management material", this looks a lot like ageism, but technically maybe isn't.

Now, why they want everyone at a 50K engineer company to be management material...seems ill advised.
It's actually on Github[1] now, updates would probably be welcomed.

[1]: https://github.com/ystael/chicago-ug-math-bib
Bill Simmons Lands at HBO with Multi-Platform Deal
I'm Canadian and I've been working for an American company for 3 years now.

I found a good accountant that explained me the pros and cons of incorporating based on the income and I decided to incorporate.

This makes getting paid easy, as you're just a company providing a service for another company. I just invoice the American company and they pay me via PayPal.

Make sure you are aware of the extra costs before you incorporate.

These are my costs, in case it helps (I'm in Ontario):

- $500 fee to incorporate using a firm (it's usually done in one day).

- $1200 paid to my accountant every year.

- $200-$300 paid to my bookkeeper every year.

- $10/month for a business bank account

Another thing to be aware of is that you have to get the money from your corporation to your personal account somehow. You can either be in the payroll of your company or take dividends. I opted for the latter, but the best option varies based on your income, lifestyle, retirement planning, etc.

Feel free to PM me if you have any questions. I can also hook you up with my accountant; he's excellent.
Date of death for Zillabyte: Monday, December 14, 2015

When asked for a comment, Zillabyte said "News of my death is premature."
jbob2000 would appear to be shadow banned.
You told them to stop calling you.... So they stopped calling you.
NASA to reveal new earth-like planet tomorrow
The deer analogy is very, very negative
What kind of work do you do? How did you start?
>What underlying qualities does skin color clue us in to?

Depends on the context. Also, I bet that's the topic of at least several dissertations in the last few decades.
But what about all the verb conjugation rules and all their exceptions? It seems impossible to just memorize those without being a native speaker.
Nice observation. I pretty reliably get goosebumps from the first few seconds of Cheap Trick's "Surrender" from Live at Budokan (also featuring crowd noise):

https://www.youtube.com/watch?v=th370QmFtk8

Your link of the screaming Japanese fans, and the glam and the theatrics, reminded me.

(Plenty of other effects, like soft-loud dynamics, can induce it for me.)
i didn't believe hacking is real until i was introduced to a hacker named frank. I promised him I'm going to testify to his job well done and i'm fulfilling that obligation by telling you frank_zues@outlook.com is the big thing if you need to hire a real hacker. Once again thanks Frank, i'm letting the world know about you.
Sudden thought on reading this: If you have a code of conduct that says that causing offense is the criterion, and someone wants to remove you from the community for whatever reason (malice, jealousy, whatever), all they have to do is repeatedly claim offense at what you say. There is nothing you can do except withdraw from the community. No defense is possible to this attack.

Note well: I am not advocating this attack. I am merely noting the way that offense-based codes of conduct can be used to ruin people.
Testing your Rails application with Docker
Geeze, where do you live? The officer in this video even tells the woman that he's given her a lawful order and she didn't even ask nicely.
You can build a bridge over a river if you own the property it traverses.

The civil engineering certifications are only to absolve you of personal liability if any person crossing the bridge is injured due to its failure. That is sort of important, but the same could also be achieved by the owner posting it against trespass, and requiring that any authorized users sign a liability waiver beforehand.

If you own the rights to code that ends up causing injury due to a known flaw in it, you're liable for the harm. That's all there is to it.

The certification-based "out" only applies if the auto manufacturer hired exclusively certified software professionals and allowed them to do their jobs without coercing them to cut corners. This is something that will clearly not happen until well after the first huge damage award for software malpractice occurs.

I am emphatically against any prior licensing restraint on individuals seeking to enter or innovate in this industry. That's just protectionist bullshit. It doesn't make the code better. A legal regime that rewards following software best practices by limiting product liability, on the other hand, that seems rather useful.
Has anyone noticed the salaries for some of these companies is a bit low and it seems some of them are doing it as labor market arbitrage? [e.g. A European company hiring a Brazilian developer for ~10k Euros less than they would hire a European ]

I see alot of them offering $40k-$50k salaries for positions than [in any metro area in the US or Europe] would be $70-80k for similar qualifications/experience.

I'm not saying its wrong, I'm just saying Toggl would be a 40% paycut at the top end and I don't live in Silicon Valley or NYC.
Great point. Though some of the general concepts still apply, for example, on identifying who you want to be working with, what you care about, etc.
> Birth control was readily available by 1970.

1. Singling out access to birth control is a red herring. Mainstream gender norms and mainstream social pressure to have a family have changed a lot since the 1970s. Especially in more conservative parts of the country.

2. Birth control was fully legalized in the US in 1964 by Supreme Court mandate; 2015 - 1964 = 51 years (barely a half century, exactly as I stated above...).

3. There's a difference between legal and available.

4. There's a difference between available and socially acceptable. Although things have gotten significantly better over time, stigma and conservative views on sex outside of marriage continues to prevent contraceptive use among significant populations (most significantly anyone under 18 with conservative parents, but IME even married people into their 20s who had a conservative upbringing). In many ways, we are STILL fighting the battle against stigma associated with use of contraceptives. See the debate surrounding contraceptives and the ACA, or sex education in public schools. Or ask a Catholic priest.

Again, things have improved significantly and continue to improve. But assuming that 1964 or the wave in the 1970s were watershed events across the country is a bit niave.

5. Again, singling out birth control is a red herring. It is no doubt an important contributing factor in both the time to first child and the size of families. But the social norms surrounding women -- especially in conservative parts of the country -- have changed significantly since the 1970s, and that's also an important contributing factor.

Concretely, I'm not sure that "subjected to coercive social pressure and not provided with a college education because they're already married and that's the point" exactly counts as "choice". That might not have been common in the Chicago suburbs in the 1970s, but it definitely was in rural Georgia...
TFA is not the first to point out that capitalism does not conform precisely to all aspects of human nature.
Your friend probably didn't go Stanford or Ivy League. :-/
From what I understand, they never implemented any of the algorithms, because their existing one was good enough, and the premise has changed. It used to be, you'd make suggestions so people could get DVDs sent to them, and you'd know they would enjoy it. Now with streaming, the cost to send something you don't like is cheap. So the recommendation engine just has to come up with something you'd try to watch and perhaps enjoy. If you start watching something, it's not your taste, you switch streams. So there's not a lot to gain from improving recommendations 10% unless they were pretty low quality ratings to begin with.
> I've heard people refer to "Moscow face" (though oddly, not "New York face"), where people's expressions are blandly neutral, tending towards negative - it's a way of adjusting to living in a large urban center.

There is a cultural aspect here though as well, many Russians only smile amongst people they know, they think that people who smile at strangers are either simple or up to something, I once asked a Russian about this and he said that you pretty much never smile except with friends and it's a different kind of smile, he also said it was one of the things he liked about England in that we are fairly close to Russians in that regard.

http://www.russianlife.com/blog/why-dont-russians-smile/
2015 devops report
Thanks for the useful comments.

Family is always first for me. They support me and I support them. Anything I plan to do and have been planning is incremental: reduce debt, learn as much as a can, optimize my time, start small and grow. I think having the big goal of "work for myself" as a driver, I can then incrementally move myself into that position.
A Short Course in Thinking About Thinking (2007)
Good point. This advice is definitely aimed at a specific group of people with a specific set of ambitions.
To those that are up in arms about "political correctness", what is your counter proposal?

I'm a firm believer in your Right to be Offended, but you know what? Maybe GitHub isn't the place where you should expect to be offended. Maybe this Code of Conduct is an attempt to set the conversational tone.

Freedom of speech does not mean the freedom to spray your thoughts and opinions on all platforms, public and private. You have a problem with GitHub? Get your own site and go nuts.

It's that aspect of the internet worth defending tooth and nail. GitHub is not the internet.
"No hire" is not a permanent Scarlet letter. Why is it wrong to take a second chance?
Maybe we are not born this way, and it is our life and work experiences that make our faces that way. There is the obvious, construction worker, out in the sun, their face it going to get weathered and a more "hard" looking individual will come out. And perhaps he got into construction as a result of somewhat challenging life, which made him frown all the time so he got frown lines, which makes a person look a certain way, even distrusting.

Many things can influence how we look. And from this article it seems the markers are very subtle. I would almost expect to see people getting minor cosmetic surgery, where some lines are removed, some accentuated, an eyebrow tuck here, an eye pull there, a lip push here, a wrinkle added there.

All these are minimal invasive compared to full on look altering cosmetic surgery. We just have to figure out what to polish and what to prematurely age and distress.
> A sufficient definition

The question is: what determines sufficiency?

Edit: Further, definitions are often very difficult to produce even in rudimentary form.
You raised a good point in bringing up that phrase "fair share." What is the fair share for someone who doesn't do anything? What should someone get for mere possession?

I'm asking not in the present-day legal sense (where the answer is, whatever's fair is whatever you've clawed out for yourself), but in the moral sense of how much should ownership of anything actually be worth if you're not continuing to put any effort into a venture, but are totally passive--a name on paper.

Where does "setting up and creating a thing and then profiting as an absent owner" cross over into rent-seeking?
Where in the World Is Your Sensitive Data? [Infographic]
Sandra Bland arrest video wasn't edited, had technical problems
Yes. And often the best way to enrich someone else is to enrich yourself (i.e. people are happy when they are skilled, good at their work, liked by their coworkers, etc; turns out employers also like this).
Certainly on other UNIXes getpwnam() can need a bunch of different files and sockets depending on what nsswitch.conf backend is in use. I guess OpenBSD doesn't support nsswitch at all (it looks like it just uses a pseudo-NIS damon "ypldap" if you want to use LDAP auth) but on most other UNIXes it doesn't work that way.

Similar arguments apply to host resolution, but these days it's almost always just /etc/hosts and DNS so less of an issue.
The thing is that your questions aren't really very applicable. For example if there is a high speed and low speed CAN bus or just one really does not matter cause of details about how it works. Also that applies to the question about read/write/modify - that's not really how CAN bus works at all, it's more like commands and there are some nifty ways to filter, like codes needed. For yesterday's article it boils down to modules not doing careful enough verification and likely a really boneheaded in hindsight mistake in the Uconnect software. The talks will be great resources for a lot of people, I'm eagerly awaiting them.
Authentication for Google Cloud APIs Just Got Easier
This has bothered me about self-driving cars. When you consider the number of miles driven across the country on a daily basis, and the fact that you hear of major IT systems being hacked on an almost daily basis now, it's almost guaranteed that hackers will eventually gain access to a fleet of self-driving vehicles. It may seem outlandish now, but it's disturbing to think that a malicious hacker could potentially take simultaneous control of thousands of vehicles driving down the road at once, putting many, many lives in peril. I've not seen any sort of realistic discussion or acknowledgement of this risk up until now.
I grew up there until I was ten. My mom used to joke that if a stranger is smiling at you in the street, they've already got your wallet.
Where can I find remote jobs? Other than weworkremotely,odesk which doesn't seem all that great, I'm interested in other sources or websites.
WePay Is Hiring Site Reliability Engineers
The Essential Guide to Good Bots, Content Harvesters and Comment Spammers
mkfile is standard on Solaris. On Debain use fallocate:

$ fallocate -l 128MB /home/user/disk1
At growing companies like Google, they hire everyone who meets their vague "hiring bar"
What have you tried so far? It's possible to prove your idea would work by providing value for people in a very manual way.

Once you can show that you've provided value, then it will be easier to pitch the idea.

What are some of your ideas?
Resources only map 1-to-1 with database models for trivial applications, so certainly not the future. Still, useful for getting up and running.
Eh, the bad actors do deserve the blame. Otherwise no one could own guns or VCRs because of what we CAN do with them (illegal things).
I'm not. Though, if you ask an officer of the law, you'll be told there is nothing wrong with civilly asking for clarification and/or verbalizing that you disagree (but will comply).
I've listened to a podcast or two by people whose full-time job is, essentially, Walmart-to-Amazon arbitrage. (Hit up every big box store in your town twice a week for items which your noggin and Amazon app suggest are currently substantially more dear on Amazon than they are at the store; clear the shelves at the store if you find any; ship to Amazon and have them do fulfillment; buy more inventory when the money comes back.)

It feels to me like it's one of those things that shouldn't work in a world with perfectly efficient pricing and spherical cows but apparently it does actually support a handful of people in the real world.

Link for substantiation: http://www.smartpassiveincome.com/fulfillment-by-amazon-fba/
Why are smartphone cameras oriented “incorrectly”?
Given the ergos of a smartphone you would think that holding the phone vertically would result in landscape videos and images. This how the Flip video recorders did it.

Rotating the phone results in your fingers covering the lense and microphone and makes it difficult or impossible to reach the controls while also providing a solid shooting platform.

I feel like the proliferation of vertical video on YouTube (where it isn't a style choice) is evidence enough that a simple hardware modification would make most lives easier and most video and images more aesthetic.

It's not surprising to me that the standard orientation hasn't changed, but it is surprising to me that no handset manufacturer has tried something like this or even better given the option of recording video as portrait or landscape without rotating the phone by throwing a few more dollars of sensor and lense at it the problem.
You don't explain the real reason. You never do unless it is "I am interested in pursuing more interesting opportunities after doing xyz here at my current firm and this job opportunity at your firm seems like a great fit". Yes, that should always be the reason. It is unfortunate but the reality of hiring world. Anything else you say can and will hurt you and could be the difference between you getting a job and getting a rejection email if at all.

Never say "I left because of hostile env" because that will open up discussions about things that will not give you an upper hand. The new hiring manager can never truly believe what you said and will most likely think "this person complains too much..hmm should we hire this person". The reason is that this new hiring manager does not know you at a personal level yet. So even though you may think it is a good idea to share your story, they will only want to deal with simple reasons like "better opportunity", "closer to home", "love your product" etc.
DNA uncovers mystery migration to the Americas
Print Conductive Circuits with an Inkjet Printer
You're right, I didn't think of that - but if you're playing with someone who doesn't know too many two-letter-words, that might come up less frequently anyway.
Yes. Though part of the crux of this advice is to choose a company that is already growing revenue at a solid rate, from a solid base. This is not as risky as you might think.

Also, generally, if you are a good engineer (as long as you learned things and improved, if you worked at a company that didn't become a big success), Google et al will welcome you back with open arms.
There needs to be some kind of bar here where a certain level of offence is necessary before it's considered serious enough to act upon.

If I hate the color purple and you have a purple logo, am I "offended"? Likewise, if I'm afraid of spiders and your logo is a spider, is that problematic?

This Code of Conduct is an attempt to set a baseline people can aspire to adhere to, not a set of iron-clad rules.

If someone's running an "Denial of Attack by Claiming Offense" on you, then clearly they'd need something to be offended about. What could you be doing where no matter what you did, they'd still protest?
This here is content marketing.
haha.

Yeah the Russian I knew told me a story about if you where walking past a queue you joined it, didn't matter if you knew what was at the other end whatever it was could be bartered.

They where incredibly innovative in how they dealt with the lack of resources, bit like Cuba and keeping 60 year old cars on the road I guess, needs must when the devil drives.
Local Notifications on iOS
That is illogical. If a million plumbers and no programmers applied to be programmers, would Google be wrong to not hire them? We are talking about skilled jobs in a specific trade.
Yes. I have a hard-stop on coding at 9PM. Of traceable causes for insomnia, #1 is "somehow managed to disable F.lux" and #2 is "for some reason was still coding at 10PM".
The Most of Test
Sometimes people are better at giving advice than they are at following it :-)
FYI Ixchel is the Mayan goddess of Medicine.
Real time analytics for news sites
This is about snapshots of a single program. What you are describing at DO is for an entire virtualized computer.
Organized chaos: managing randomness
Everyday sexism in STEM
> The UK's Society of Motor Manufacturers and Traders has responded by saying that car companies "invest billions of pounds to keep vehicles secure as possible".

Well they haven't done a particularly good job.

Anyone else spooked that this has come out of a security company based in Cheltenham (where GCHQ is...)?
FDA clears 2 new Bluetooth devices for tracking Asthma