skysight-inc/HackerNews huggingface dataset:
Dosage is the critical factor for any drug and everyone is absolutely unique (and, more so, in unique life circumstances at a given point) as it pertains to mind altering substances and the actual outcome of their lives. Set and setting matter. If you’re depressed and doing nothing but getting stoned, you’re using weed to keep yourself busy. It offers potential for “wasting” away, by staying stoned.

Marijuana is commonly abused and does ruin lives. Washed up marijuana addicts are common, yielding lost potential for the addict and a loss for society. The unproductive stoner has long been an American cliche, but true. (file_id.diz)

Meth, on the other hand, leaves little room for responsible recreational use. I’d be shocked if more than 1% of people who’ve ever tried meth would call themselves “responsible casual users”.
That's really detailed pathway.Thak you!
But the problem is after all these steps I still won't have hands-on, real-world experience. I completed the Python courses on Linuxacademy, but at the end, I know some Python to manipulate systems.I did not accomplish anything on the real world.
Unfortunately I can't share the exact questions we ask, but here's a smattering of the sorts of pitfalls I encounter, in no particular order:

* Number one is probably no Big-O performance considerations, or Big-O is an afterthought. For the love of God, please please please don't do a linear search on an unsorted array anywhere inside a nested loop. If you're going to do any appreciable number of lookups, preprocess your data into a hashmap, hashset, whatever.

* No or insufficient considerations for edge cases. What if the input array is empty? What if I pass in invalid arguments? What if the strings aren't ASCII? What if the numbers you're multiplying are very large? What if the input is coming from an untrusted source?

* No questions about the size of the input. Some of my favorite questions are those whose solutions bifurcate on whether the input can fit on in memory, or whether it's coming in on a network stream. Some questions involve multiple arrays, and I always like to ask "you assume A is much bigger than B, but what if A is much smaller than B?"

* We place a great deal of weight not just on the solution, but on justifying why that solution is the most appropriate one. More often than not, this hinges on the Big-O performance and the system on which we're running. It's a mistake to dive right in to your solution, because it robs you of the opportunity to demonstrate that you have multiple fully-formed ideas knocking around in your head and you need to choose which one to code up. Otherwise I might get the impression that you only have one way to solve a problem.

* Sorting the entire array when I ask you for the top N elements! Getting the top handful of elements is a linear-time operation, people!

Bonus points:

* No consideration for parallel processing. I've run maybe like two serial production workflows in my entire career. Try to parallelize your solution to handle bigger inputs.

* Don't forget cache performance! I usually let candidates working in Python or other high-level languages slide on this one, but those odd C/C++ candidates have a major opportunity to impress me by optimizing their memory access patterns for cache performance.

* I let this one go for intern and entry-level candidates, but testing should never be an afterthought. The moment you finish your implementation you should throw input/expected output pairs on the whiteboard. You don't even need to walk through them super carefully, just show me that you know how to design test cases.
Or dads with prams!
> hence why cloud providers can offer $100,000 initial credit

Is this a thing? How can my company get $100,000 of AWS on credit?
The roles that mentees would have been have largely been outsourced/offshored. The days of spotting a talented helpdesk or QA worker and growing them into a fully fledged sysadmin or developer are gone. Some of the finest engineers I know came into the field that way 20 years ago. They wouldn’t get a look in now.
Aadhaar is an one billion dollar software engineering nightmare in India by Nilekani/Infosys
Bose Hear Phones to Hear Better
I disagree, the major problem with meth is cheapness, availability, and that it is highly addictive. I live in Australia where we've been suffering under a massive meth epidemic for over a decade.

I'm chuckling about the thought of me wandering up to one of the many "walking dead" around town and informing them that they're using meth wrong. Because your definition of "wrong", whilst possibly technically correct, is completely irrelevant on the street. People want to get high, very high, as fast as possible. They're not looking to leverage meth as some sort of productivity life hack, they're using to get as high as they can for as long as possible, That's why injecting occurs, it's apparently the best bang for buck when compared to oral ingestion or smoking.
Why shouldn't it be if it fills some peoples need?

Why should a cafe not offer that if it brings them customers?
How do you know that you haven't re-allocated the same memory to something else? You won't get a segfault in that case.
A single dad walked 11 miles to work every day – until his co-workers found out
Interesting idea to use CloudWatch on a Lambda function. I believe the equivalent for Google Cloud would be using Stackdriver's uptime check on a Cloud Function?
Not surprising, the people in the cafe aren't constantly coming up to you and interrupting you.
> My understanding was that Addrall and the like, while kinda similar chemically to meth

Adderall is similar to amphetamine, not metamphetamine. If adderall/amphetamine doesn't help you sufficiently you need desoxyn/metamphetamine.

> I've also heard that ADHD meds end up being counterproductive for people without ADHD too, though.

This is true... approximately. In fact small amounts of amphetamine/adderall can boost concentration/memory/productivity in healthy people (not all of them though) too.
Regarding Watergate, there's a really fantastic podcast series entitled "Slow Burn" that just ended. It's 9 or 10 episodes long, and gives a great 'behind the scenes' look at the entire affair. I can't speak too much to the media's approach to Watergate.

> Basically, that is, we lost something in the shift from printed press to online/social.

This article from Harvard's Kennedy School of Government has some context on what happened: https://journalistsresource.org/studies/society/news-media/c...

One clipping from it:

One problem was the drive toward monopoly — or if not monopoly, then what economists call “concentration...” In the news business, this pattern threatens the very existence of diverse, and local, points of view. Clear Channel replaced more than one thousand individual owners, with different aspirations, different ideas about their civic roles, and different ideologies. The number of U.S. cities with healthy, competing daily newspapers, once in the hundreds, fell to about a dozen. By the year 2000, in American cities that had a daily newspaper, 99 percent had only one management in town. The fifteen biggest newspaper chains account for more than half the nation’s total circulation. In all, there were about 1,500 daily newspapers remaining in America. Of those, only about 350 were independently owned, and most of those were very small. The whole industry was heading in a direction that was at odds with the journalistic values of independence, localism, and competition.

The article also talks about the vast reduction in budgets for news outlets. This disadvantages organizations that do legitimate news gathering and reporting and advantages organizations that simply have an axe to grind (it's cheaper to spew your opinions than it is to put boots on the ground and see what's up).

There's more, but I'm probably getting excessively long for a comment.
I gave a little writeup to a sibling comment, PTAL.
also https://runbox.com
Except when Juniors are humble and like "yes sir yes sir", don't defend their design assuming seniors know more and internalize everything. And except when seniors give conflicting feedback based on what they read yesterday. It was mostly impact on those juniors I found bad. They were told their code is crappier then it really was and lost a lot of confidence. They started humble and ended afraid to do anything except simplest tasks.

Also, they got only and exclusively negative feedback. Instead of being told in advance how to do things where we are opinionated or being encouraged to ask questions or just being led/given hints, they were expected to do it alone. Then they were told they done it badly and were effectively dictated how to rewrite it.

Tech is not different from anything else - teaching people should involve more then just telling them they suck. It should involve telling them what they are expected to do in advance.
Was a long time ago so I don't remember them all, but some examples I do remember:

* Print pascal's triangle up to the n-th level, with proper spacing (so that it looks like a triangle).

* Make the game Go for 2 players. I got a sub problem of this during my Google interview (determine whether a piece is captured).
More like "How to put off your paying customers and then complain that business isn't going well".
> Maybe I'm naive, but there seems like there's a reasonable, if not really lucrative, opportunity for someone to produce actual unbiased news in the US.

Unbiased news is an impossibility. Centrist bias relative to the current position of the Overton Window is possible, but probably not economically optimal since political views aren't normally, or even unimodally, distributed.
Perfect use case for a long range drone.
If HTML e-mail hadn't been invented then the need would have been fulfilled by something else, particularly for corporate environments where formatting and marking-up e-mails is essential to communication.

For a while in the late 90s / early 2000s we had RTF e-mail.
>> [article] I’ve hugely appreciated the succinct functional syntax of CoffeeScript and believe it’s helped me achieve greater personal productivity over the years.

Ends justify the means. This resonates me with multiply teams I've left--irrational exuberance, about technologies like coffeescript / mongodb / etc. Anyone who has played with a functional language / "nosql" / etc on the weekend can experience this euphoria without the toxicity of churn to their company. It's patronizing to people who understand the importance of where things are headed. This is one of the signals that I look for.

>> [article] I’ve found it a real struggle to get our team to adopt writing tests.

> If you're struggling to judge the engineering culture of a company that you're considering joining, consider this indicative of a poor one. It isn't definitive, but it's something you should ask about and probe further.

After reading the article, parent's comment is spot on in multiple dimensions... this article is full of red flags to look for when joining a team. The depressing thing is if you're manager's manager doesn't care... and you're manager doesn't care... and you care, well.. then.. nobody cares.
>"a staff member will approach the uninitiated customer whose laptop is open for more than a couple of minutes with a gentle but firm request “to finish up what you’re doing and close the laptop, please,”

Agreed - I understand that cafe owners dislike people lounging around for free, but I'd be seriously pissed if someone came to hurry me along after a couple of _minutes_.
Garrch, when I hear bit-addressable I get a twitch since a had to spend a night debugging a RISC system that was failing because a class of RAM didn't work with bit addressable instructions, the system was huge, the error cascaded strangely and the information was hidden somewhere in the 2000 page datasheet.
Show HN: Cheap on-demand user feedback for your site, app or idea
The Inbox App for Android does this.
Well, in Amsterdam I was told to move by the window (were there was no space, all camped out by students) because me working on a laptop was not deemed “gezellig”. Fine, except that it was summer and everyone not wanting to work was basking in the sun on the terrace, inside was desolately empty.

That’s to say: I agree it’s not cool to squat a table 3hrs for 5$, but sometimes these situations happen because it’s the house that’s run by a hipster wanker...
Nokia sold 4.4M smartphones in 2017,surpasses OnePlus,Google and others
uuh, they could've. they just didn't.

its pretty easy to parse the content of an rss/atom feed and show targeted ads.
"The reason people like to default to linting when "fixing code quality issues" is purely because it's 100% objective and measurable, not because it picks up the truly important issues. It doesn't."

I think that ideally, linting and especially formatting help quality by taking the trivial issues off the table. If your code is currently "clean", and the tools reformat or flag the code that you just wrote, then hopefully those issues will never be committed into the repository, so human code review can be about substantive points.
A cafe thats hostile towards their customers is a great way to get a bad review and a lost customer. If you don't want people working there don't provide tables or chairs.
I've never been explicitly mentored but I've been lucky to work places where there have been colleagues with things to learn from by example and inference. There does not need to be an explicit mentor relationship for knowledge to spread if work is done in teams and culture of open communication is cherished (at least on the team level).
That was a truly eye-opening read. My word.
In Defense of OOFP
Unit tests are not meant to find bugs, they are meant to keep it together as you add features and refactor the system.

They are also completely orthogonal to patterns and layers and aspects and J2EE and what not. All that has nothing to do with tests at all.
Is this only for gmail customers, or is Google sticking AMP links in outgoing emails?

That's legally risky for Google. They're not protected by an EULA if their outgoing email has hostile code and hits a non-Google customer.
You may have a point in here. Provided I have productive working conditions and 5-10% YoY salary bump I'd probably never have the inertia to look for a new job myself.
To be fair, testing is to some extent an unsolved problem. The joys of testing were being extolled long before test frameworks were actually usable. Now that they are, and you can glue Travis, GitHub and the test lib of your choice together pretty easily you have solved about 30% of what needs to be tested. If, say, you are developing an Office add-in on a Mac, and you want to test it on Word 2013 on Windows 7, there is no easy way to automate this task, and certainly no "write once, run everywhere" solution.

In my GitHuby life, I write tests obsessively. In my enterprisey-softwarey life I don't, because there is no sensible way to do it.
Your $3 coffee doesn't entitle you to sit there for an hour though.

If I was running a cafe, I'd expect that you'd be leaving within 5 to 10 minutes of finishing your coffee. The very few times I've worked in a coffee shop, I've done that myself. It's not a coworking space.
Farewell from Rusty Russell
welcome to the late stages of a giant tech bubble. Startup investment has fallen except in areas where very high amounts of academic background are useful such as AI, autonomous vehicles, biotech and so on.

Startups are the default training tool for software engineers. High risk, low pay yet most startups use the latest and greatest tools so juniors at least get highly marketable experience that is more modern.

When the startup ecosystem begins to fail, fewer developers can acquire these skills. The early stages of the hiring feeder system are broken.

No one wants to train junior developers when there are thousands of startups doing it for them.

I have worked at large companies, we get massive reams of potential interns and graduate hires. They all come from the very top schools only. They don’t even look past the top 20. Why? Because they are assholes and they can.

My recommendation: Start your own startup doing something in a valuable skill area. Identify what is trending.

People waiting in line to get chosen because they are great are going to be disappointed.

Don’t expect someone to pick you, time to hustle.
Cvlogin.com Create a professional resume in minutes
I get you point, but... IMHO a huge portion of addictivity are the withdrawal symptoms that can be made much much easier (and last just a couple of days instead of weeks) if the measures I've described above were taken in advance (another huge part is about public stigmatization, lack of understanding and support - AFAIK happy people with loving families are by orders of magnitude less prone to become addicts). And turning into the "walking dead" is all about lack of the healthcare measures I've described above (e.g. my skin went bad once I've tried using meth for about a week many ears ago to manage with a project deadline but a strong E+A vitamin supplement has turned it back healthy overnight).
For everything about noises, I highly recommend mynoise.net. It has a ton of high quality sound generator which does not loop. If it is too monotonous, you can automatically "animate" the sounds which modify continuously the sounds at different frequencies.
>>UberX’s discount isn’t why I use it.

You must be rich. Most people aren't. I see people rushing to work for their shifts in Uber all the time, because its cheap. Most of Uber's customers are in this category.

Cost is all there is. I will take a crappy service at a low price, than amazing service at a higher price. Also I'm only using the cab for a few minutes, I'm not exactly getting married to the cab, to worry that much about these things.
Here’s what Siri would have been like on MS-DOS in 1987
> Basically, that is, we lost something in the shift from printed press to online/social.

No, we lost it in the long period of print media consolidation and newsroom slashing from the 1970s through the 1990s; the effects were already palpable and the subject of much discussion in the 1980s. Things have probably gotten better since the turn of the millenium (possibly even since the mid-1980s or earlier) in terms of available high-quality news (OTOH, they've gotten worse in terms of the volume of low-quality, widely-distributed "news" that the high-quality stuff is surrounded by, and the availability of signals which let the average news consumer distinguish the former from the latter.)
Hi, UX designer/researcher here fairly new to posting on HN :) If you want to test your app, idea or site—comment below and we can get you feedback from real users right away. We're just getting started so we'll give out free 30 responses for the first few HN users.
I don't think you need to spend all your spare time making side projects or learning new technologies, but I do think a certain amount of professional curiosity is required as a software engineer, just like any other programming job.

I'll probably spend 15-30 minutes every day outside of work reading about new things, or tinkering around with something, even if it's just reading Hacker News, often these things I learn end up being used at work, so I gain new skills at work. It sounds like you're in the same boat.

My father is a network engineer, and he'll spend time in the evening doing things related to his field, he has a very impressive home networking setup. My friends that are electrical engineers play around with electronics in their spare time.

I think that for any professional, to be successful and have a good career you need to have at least some outside interest in your field. Obviously we all have hobbies, I don't sacrifice those because of work, but if you're working in a job where you have no interest you'll never get far.
They showed only one version of cockroach. Not one which crashes.
True

I tried to sign up for Ola in India to try it out, but that was impossible without an Indian cell phone number

Uber really shines for international travelers
People working on their laptops are actually not a paying customer. Yes, they might come in and buy a single coffee but then they sit in a corner for 3 hours and occupy a seat that could go to other customers that are actually buying things that make a cafe money.

It also has something to do with atmosphere. A cafe should have light chatter and people socializing. If the majority is sitting around in silence, it takes away from the special feeling a cafe normally has. I could get coffee at home for a fraction of the price.
I think the problem isn't so much that people are using laptops in cafes, but that some people will linger for hours (usually on a laptop, but sometimes not) taking up a seat that could be used by someone else. Maybe a loosely-enforced 1-hour maximum loitering time might help to get more people cycling through?
If a cafe is making 20 pounds a day per table before VAT, rent and any other expense/tax, they will be out of business.
"Once you get good at testing, writing code with tests is faster than writing code without tests: the challenge is the four to six year learning curve to get there."

This is the problem. Testing is not easy, and many developers simply aren't very proficient at it. Worse, we often don't recognise that it is a separate but important skill.
If I'm doing that on OS X, what actual app/service do I use to connect to the VPN i set up? For example with NordVPN it uses a mac app... so if I create my own what do I use instead? Please dont say tunnelblick
Welcome to the reading retreat
Also because of the #MeToo brouhaha, nobody wants to mentor young women (developers) anymore. It’s just scared away men altogether. Better to stay away than get into criminal trouble for passive aggression at someone.

http://yellowhammernews.com/opinion/metoo-request-good-men-d...
Not when you have 50gb per month.
Well, you're right, though I've seen data in there for domains with about 10k emails per month.

Still, that's probably way over the home email setup threshold.
Depends on whether we access the website from a proxy that is known by the WAF. But for most websites it's just a single normal request. If it's an issue in the future we could make browser extension, that will do the analytic on page loaded by the user, so that we don't have to use proxy to connect to it. If you are talking about actually scraping the websites, then that is usually on case by case scenario. Mostly it works, but sometimes it's a bit harder to get around.
For me it would be lack of intuition / imagination for building software.

Some people just cannot come up with a high level idea of a solution. Many of them immediately jumps into code, even worse so it's usually some UI code.
German cities to trial free public transport to cut pollution
Not indulging sales is profitable than indulging in sales and then making a loss.

Uber can ferry passengers around for cheap because some VC is pumping money into the company through a firehose. Take out the VC money, lets see how many Uber drivers will drive 80% below minimum wage to provide services.

Its easy to blame the regular taxi drivers. How many people here on this forum would take huge salary cuts to add profits to somebody else's wallet?
Importance of Remote IT Support for Your Business
Custom Software Development Company Noida
Are you looking for the custom software development company in Noida? AIG Technologies offers you software development services with latest technologies trends in areas of HRMS, CRM, PMS, eLMS, EMS etc. I would like to share few experience of AIG Technologies which work at problem-solving for customers through the use of technology.
That's helpful. I'm being a little flippant in print vs online, but there are obvious changes in the same time frame for other reasons, as you point out.
For the record, while I agree that evidence suggests that SAT correlates strongly with IQ, your comment is a great case study in how SAT scores correlate poorly with tact
Google to remove “View Image” button from search results