skysight-inc/HackerNews huggingface dataset:
The fact that you can quantify a thing by a given metric doesn't change the subjectivity of the choice. You can measure the amount a drug causes the average user to miss work, or die sooner, or number of missing teeth, or anything, but any combination of these will still always be:
a) missing other relevant metrics
b) representative of one perspective on what is valuable to measure, and what constitutes harm

The idea that any one set of metrics and measurements have more intrinsic truth-value than simply aggregating the internal mental weights of all the relevant experts in the field is just like, your opinion man.

If you want to present an alternate, mathematical model for drug harm and explain and argue for the validity of the choices you make for how to measure harm and how the data was gathered over what time period, etc etc - no one's stopping you.
It's noteworthy indeed that a lot of these kinds of games are now out or upcoming, but it's equally notable that a year ago this conversation would have ended rather differently.
Something like this would be way faster than Sequelize: https://github.com/mgutz/mapper
Are stairs more dangerous? No. Is the sum of all accidents on the stairs more costly to society than all accidents mountain-climbing? Probably.

There's a reason the occasional mandatory workplace-safety education sessions you have around your office focus on things like ladders and picking up packages: people actually do those things.

Postscript: Also, auto accidents cause kill more people in the US than terrorism. :P
annoying geek captcha -- early adopters don't use Yahoo! mail ...
LFT has come up with a clever routine for decoding Commondore floppy data in realtime. This is quite an achievement that mixes bit twiddling hacks, self-modifying code, cycle counting, and undocumented opcodes.

While the Commodore serial transfer routines are well-known for being terribly slow (300 bytes/sec), various fastloaders have been used since the mid 80's. The 1541 drive has its own 6502 CPU, so the computer could download code into the drive's RAM and then talk to it via an optimized protocol. These routines have been reasonably fast and Krill's loader is one of the more modern variants.

However, there's another aspect that hadn't been optimized before. Data is stored on magnetic media in an expanded form (5 bits for every 4 bits of data for Commodore's GCR coding) so that the clock signal can be regenerated from the data. Similar encodings are used for CDs and DVDs these days as well.

The data needs to be decoded from its media format into the original data. Normally, the 1541 drive does this decoding since it has plenty of time. It reads a sector, decodes it, and leisurely transmits the results back. Then it repeats the process for the next sector. Meanwhile, the disk is still spinning underneath, rotating several times per sector read.

Some fastloaders speed this up by avoiding decoding on the drive. They transfer the raw data to the C64 and decode it there, letting the drive just read sectors and transmit the data. But decoding in realtime has been the holy grail.

LFT's routine is very clever and has lessons for data packing/unpacking for other platforms as well. It's a classic time/memory tradeoff where some expansion during the unpacking process saves CPU cycles. In short, the standard approach of masking and shifting is not the only way to deal with non-byte-aligned fields. Without a more clever approach, realtime decoding is not possible.

The result is code that can decode from raw GCR to data bytes on the fly, transmitting data to the C64 at almost the rate of the floppy spinning (roughly 25 microseconds/byte).

I say "almost" since checksums still need to be validated. This means that an interleave of 2 (every other sector) can be introduced when writing the data in order to have the next sequential sector available to be read after the previous one has been decoded.

Congrats to LFT on a great accomplishment 30 years in the making.
My problem is I just do not enjoy exercise. I grant that some level of exercise is probably healthy, but I just don't enjoy it. At all. Not long ago I made myself run 3 or 4 days a week, for about 4 months. I did build up my ability to go longer distances but it never made me feel any better. After running I never felt energized or more productive; I felt tired and wanted to go to bed. I had similar experiences with strength training, tennis, raquetball, cycling... I don't think you can form a habit out of something if you don't enjoy it. You can keep doing it out of sheer willpower, but it will never become a habit.
I wouldn't ask experts about application frameworks, I'd ask the people who use them. Similarly, drug experts, despite their profession, are not in a position to know the aggregate harm levels of various drugs. It's a misapplication of expertise and statistics, which apparently is the sort of thing the lancet has a fondness for.

If you wanted to make a legitimate measure of the harm of various drugs despite the inability to build a mathematical model, you could do a survey asking people about how often they use various drugs and their opinion of the harm they've been caused by various drugs (as user or non-user). You'd get systemic bias from peoples imperfect ability to judge harm but at least you'd have something instead of nothing.
Is it me or is there about 10-12 sans-serif fonts (Lato, Open Sans, Noto Sans, Merriweather Sans, Roboto, Istok Web, Oxygen, PT Sans, Source Sans Pro, Gudea, Varela) -- which are all lovely modern sans-serif fonts -- but are incredibly similar? Are they based on one another, or just similar in modern sensibility?
Congratulations on your success. There so many comments here on what you could or should have done differently. I know you'll read it and maybe you'll give some of it a try. But if what you are doing works for you, then keep at it. When you stop making gains or want to switch up your program, you know what to do. Thanks for documenting all your tips and what you have learned. Keep lifting.
But there's a bar graph! What more could you possibly ask for? Units? Definitions? Those just add visual clutter and make the bar graph less pretty. Beauty is truth, after all.
That's a really great resource, thanks for sharing!
This story is incredibly common amongst my age group (40) in tech. What is the common story amongst those that are 30? 20?
You suspect wrong on both accounts. Many governments have legalized Heroine. Doing so has always lead to marked decreases in use. Lower use means lower demand means less drug related crime.

Additionally, when money saved on drug enforcement is appropriated for needle exchanges and rehab centers, the price of a days worth of heroin drops to 0 for the user. Areas with decriminalized heroin and needle exchanges see the greatest reduction in use and drug related crime.
>> "Live departure data is fetched from the TfL API, and then it does a bit of maths and magic"

Even though this actual service is probably not so accurate, it does give an interesting view on what the transportation information services can become in the future!

The transportation companies probably do already have the data anyway...
Yet Another Haskell Asteroids Clone
Indeed. If everyone were using shrooms like they drink beer, highway driving would be an adventure.

Doing this sort of analysis "right" (trying to determine which drugs are least-bad, quantitatively) would be a daunting challenge.
> Where does the societal harm from anabolic steroids come from?

I think the argument for this would be similar to the argument for using models with less atypical body types. If all the guys I saw on TV when I was a kid were super jacked, I'd probably feel more pressure to be that way and possibly use anabolic steroids to get there.
Was that a drone strike reference?
your missing this section:

education:

B.S. [stanford|mit|caltech|berkeley|waterloo|et al.]

It's hard for companies to know if you are any good if you went to a mediocre university. when people talk of a "shortage" this is what they really mean - you will have to find other ways to prove yourself. It will probably be a lot harder. good luck.
Yeah, I totally agree. Early adopters would have gotten an invite to Gmail when it was still in Beta
That was sk5t's point.
Very very rarely. For most methamphetamine users, you can't even tell when they're using.

Markedly different from alcohol, which frequently causes erratic and even extremely dangerous behaviour.
From the original study:

"Many of the harms of drugs are affected by their availability and legal status, which varies across countries, so our results are not necessarily applicable to countries with very different legal and cultural attitudes to drugs." (1)

And I'm still confused - are they weighting for per-user, or overall?

Under a per-user model this is interesting.

Under an "overall" model this is obvious (legality of alcohol)

Since neither the linked article or the original study make this clear, I'm voting by clicking "flag"

(1) Source: http://www.chanvre-info.ch/info/en/IMG/pdf/drug-harms-in-the...
Oh woah, seriously? I use Tomato and it seems like the default is 17, no wonder I've been having some issues with range. I just thought it was because my neighbors were setting up more wifi routers. Will try that out, thanks!

The one thing I'm worried about though is whether that setting of 63 is worse for shorter distances. From my limited experience with building a simple radio transmitter/receiver and amplifiers, if your received signal is too strong it'll just saturate and turn to crap, and as it happens my bedroom is right next to the room with the router in it, so boosting the signal might screw up reception on my phone. But at least now I know that there's room to play around here, thanks for letting me know!
"Long ago, there was an iOS library known as Three20."

What exactly happened with it? The website (http://three20.info/) seems to suggest that it hasnt been touched in years.
I spent a lot of time learning programming while traveling (though not under the same circumstances as this girl)--I did contract programming work while traveling indefinitely, often learning as I go. You manage to find ways to balance, especially since (in my case) if I didn't work, I wouldn't have any money to eat or sleep.

The nice thing about it is that if you end up somewhere boring for a time, it's almost a blessing, since you can focus more on programming and save the exploration time for a better location.
MinION: A Complete DNA Sequencer on a USB Stick
I would not consider Psychonauts a worthy successor, nor do a wide section of people who have tried it. A good deal of the issue seems to be exactly because it's not a point and click - it's actually a 3D platformer with a number of playability issues. Most point-and-clicks have major playability shortcomings as well, but they're such different breeds that the appreciative audiences are distinctly different.
Note that this will replace over the entirely lines even if it's a blockwise selection.

So you might consider using :'<,'>s/\%Vthis/to that/g
Funny you should mention workplace safety.. where I work there is a campaign to have people take the stairs instead of the elevators, a typically busybody approach to improving employee fitness. However an employee is far more likely sustain an injury by using the stairs compared to riding in an elevator, and particularly as they were encouraged by the employer to do so, they would have a pretty clear worker's compensation claim.
I grew up in a drinking culture, and damn we loved to party. Nothing was funnier than a drunk friend doing something stupid.

Twenty five years later: four of my school friends are dead from alcohol. Fuck - that kind of takes the fun out of it - I loved those people.

Most people can handle drugs and alcohol just fine. But a lot of people can't.
Would you recommend it over the bay? I've lived and worked here all my life and getting a bit bored.
I dare say that alcohol is more harmful than Americans' owning assault rifles.
Thus, by extrapolation, the gun-control proponents should also be clamoring for increased control of alcohol if they were truly concerned about "protecting the children."
Ha! That's an awesome analogy, and I've definitely felt that way as well. I would say just the online courses I took (Udacity, Code Academy, Zed Shaw's Learn Python the Hard Way) gave me the context to understand better, and even chime in on topics. Learning how the pieces fit together helps a lot, even if you can't do much of it yourself. That CS101 course will help a lot. Have fun!
"A new study..."

"Nov 2nd 2010"
Český Wikipedia has the code as well. http://cs.wikipedia.org/wiki/Raw_socket

I'm not sure whence the code was lifted, but it would not surprise me if they just grabbed some code from Wikipedia and assumed it was freely usable.
Stop telling people to do this. I like my roomy uncluttered 5ghz spectrum.
Considering that we have an obesity epidemic, I wonder if more jacked people on TV might actually do us some good.

Step one, well before dosing up, is diet and exercise. Anyone wishing to imitate the muscleheads on TV would have to go through that distinctly self-improving step first. I suspect that anyone who continues on to use steroids after that would be well offset by all those who dropped out before reaching the point where self-harm becomes involved.
People have at least tried, however:
http://upload.wikimedia.org/wikipedia/commons/thumb/9/9c/Rat...
Given that we've established that this study is invalid as a matter of methodology, are there any legitmate attempts to compare harm caused by various drugs? A graph like this would be really interesting if it were backed by actual evidence.
Interesting, I didn't know that Hacker School was completly free, but given that it has small room for new students... it can be complicated to get into.

Anyways I live 8600km away from New York, would be difficult :P
What exactly is wrong with using Intents in Android? They would seem to be a far better mechanism for Android code, and also interoperate with the rest of the system (eg notifications).
I have a thinkpad T430, everything on it works even the function keys!
Checkout https://github.com/joeldev/JLRoutes by a former Apple iOS employee.
Vim Integration : the challenge
Three20 was Joe Hewitt's baby when he was working on Facebook iOS stuff. After he stopped that, it seems like the project essentially went to seed. My understanding is that the 4.0 rewrite moved over to Nimbus (http://nimbuskit.info).

Three20 is hard to use, and is, for the most part, an all or nothing affair. You either use it throughout your whole app or not at all.
Reading the study, this poll/index-based study actually did rank Crack Cocaine more harmful than Alcohol in terms of "harm to others". On that axis, they claim the worst in terms of "harm to others are, in order: 1. Crack Cocaine, 2. Heroin, 3. Metamfetamine and 4. Alcohol.

Alcohol ranked #1 in terms of "harm to yourself". In order for "harm to yourself" they found: 1. Alcohol, 2. Heroin, 3. Crack Cocaine.

There are many issues with this study, obviously. Dosages / use can significantly differ between drugs, etc.
This is awesome. As a Sublime user I'm going to put this on my dev server for those times when I have to SSH in and make an emergency code change without my primary machine handy.
Please note that the Lun was not an obligate ground-effect plane: its ceiling was 7500m, though it obviously lost efficiency without ground effect and needed ground effect to take off and land.
Haven't done anything high speed, but I'm not too worried since it's short. It might not be perfect on the first run, but hopefully it'll work.

8 GHz and multiple traces would be a bit more concerning without impedance control. Hope it works out.
Look at the interesting things Google is doing. Driverless cars is headed up by Sabastian Thrun (PhD). The technical lead on Google Glass is Thad Starner (PhD and professor at my alma mater). Heck, Page and Brin were halfway through their PhD program at Stanford (both have an MS from there) before they founded Google. PageRank was exactly the kind of thing that comes from PhD projects (extension and application of theoretical principles to new areas). And Dr. Starner has been working on wearable computing for two decades.

All these things didn't just appear out of nowhere because Google hired a bunch of bright fresh college graduates.
I think I've been burned by every company at least once--it seems like the "good" and "bad" companies switch every few years.
The world through rose-colored blinders
Somebody, somewhere in France should go on strike.
IMHO most real innovation is happening in the space between hw and sw (duino / pi / etc.). The idea that you can call yourself an "innovator" and only know software is quickly becoming quaint. I don't claim to speak for the HN community-at-large, but I'm interested in seeing anything in the vein of hw/sw synthesis like this.
Well, more power to them. They have the resources to train them up to a level where they'll be productive.
I don't understand the motivation there at all - shouldn't the US be trying to hold on to the most educated foreigners as much as possible?
I can name quite a few low score threads in the "New" section that are more interesting and relevant to the hackers amongst us than this. IMHO there is something rotten about the outcomes of the HN frontpage promotion mechanism nowadays.
I really miss the days when I just had to choose to ignore Internet Explorer.
I agree, but then neither will the program described in the blog. If your goal is just to get leaner, fitter and healthier you're better off playing a sport IMO.
Multiple cursors simulate not just macros, but also setting lots of marks and iterating the macros through them. It’s relatively easy to write an equivalent macro if you’re just placing a cursor every three lines or at every occurence of some string; you can have the macro move three lines down when it’s done, or search for the next occurence of some regex. But if you’re actually clicking on places in the code that only a human can identify need changing, then it’s much harder to write an equivalent macro.
Sounds like an exciting an opportunity. I'd love the chance to work with someone like this some day, so chipping in is a no brainer. It also emphasizes the most positive approach to engineer education.

Good luck!
>The point is, why do you have a class after all then? A normal function that returns the appropriate object suffices. Of course this is not possible in pure-OO languages, like Java, so you abuse classes to hold logic like a namespace. Static methods are an even worse perversion of OO, for the same reason (lack of pure functions inside namespaces).

But this implies that there is never a natural hierarchy amongst classes or a case wherein you want a collection of objects to be managed by a class whose responsibility is to know about or manage objects. Those situations can and do arise. And shoving such functionality down into the "managed" objects themselves seems less desirable in my view. In such a design, the managed objects are basically saying "I am a subtype of x, and I also know about and manage other subtypes of x, similar to me".

Why should each x carry around such baggage and worry about managing other objects? To me, that breaks good OO design and separation of concerns. So, while I think Manager concepts can be abused, I also believe it is overkill to simply "outlaw" their use in any situation.

Again, going back to the DriverManager example, I would say that such a class is a more natural fit for managing drivers, registering them, etc., than the Driver class itself.

I agree that static methods aren't very OO-compliant. Ironically, I think they exist in pure OO languages specifically because of the strong class orientation. So, they are at times, in effect, the "normal function that returns the appropriate object subclasses" that you prefer.
Software Development 101
Unfortunately, it seems that it's an "overall" model -- see under "Study Design" in the "Methods" section of the paper.

There are "individual harms" that take account the harm done to the user himself or herself.

But, "the extent of individual harm is shown by the criteria listed as to others take account indirectly of the number of users"

(emphasis mine)

Unfortunately, parts of the study are well-thought, but others, not so much.
Nice. Maybe my project to set up a bunch of open source toolchains for firmware development would be interesting then. Thanks for the feedback!
In this case, a mid-size city, the burn unit was also the trauma ICU. On the trauma team, we responded to all trauma calls at the ER door. It just so happened that all burns in the area also came to us, and thus passed through our trauma/burn unit. So, I doubt there was much selection bias in this case.
Reads a bit like an ad for some popular products. Most equipment junkies agree that SelectTech dumbbells are the worst choice. Cheap spinlocks are better because they're sturdier, can take some abuse. Regular handles are 14" and you can get 18" handles. With Bowflex and their copycats, the dumbbells are an annoying length at any weight.

Ironmasters are the best dumbbells you can quickly adjust, followed by Powerblocks. They get shorter with less weight. Quick adjustment is not very important once your weights get above 50 lbs because you're taking long enough breaks to switch weights and get bored.
Perhaps PhDs just need to be paired with real world coders to be productive?
I've seen this done several times previously with the original photograph above. From example page 16 of "How buildings Learn" by Stewart Brand from 1994 (a really great book) has this exact comparison with a photograph from 1981 (the tall building the the exact centre is missing). There is another example from last year here: http://stevedunwell.com/aboveandbeyond/?p=27 and another here http://www.boston.com/ae/specials/aerialboston/
I'm 25, and I started when I was 6 or 7 using QBasic tutorials from around the web (accessed through a blistering 14.4k modem via AOL 3.0).

But I also started earlier than most folks I know.
#1 is also pretty achievable. For example, if you get a Ph.D. studying how to implement compilers and virtual machines, you basically have your choice of which place that implements compiler or VMs to work at (source: I am about to defend my Ph.D. in implementing compilers and VMs).
This article was pretty good at identifying drawbacks of higher education. (unlike the recent article by the literature PhD)

There's so many assumptions surrounding a PhD degree. "I'll make more money!" Maybe, but it takes a lot of years to make up for making $0 for several years. "the only jobs for a PhD is in academia" depends on the subject, last I checked google hires lots of PhDs. "I'll only work 5 hours a week!" just because you only saw your professor when you showed up for class does not mean those were the only hours your prof was working. "PhDs are super smart!" maybe, or they're just good at jumping through hoops.

The article pointed out that there is a glut of PhDs compared to available academic jobs. But then laments that only 57% of PhD students finish the degree within 10 years. The author seemingly argues that more people should graduate sooner, and increase the glut?

It's not about smarts, self-motivation and leadership are required to finish a PhD. If someone expects to have their hand held and be told what to do, they might never finish.

The article also says that these students are the smartest of their class. If that's true, then they are smart enough to view the job market and weigh the pros and cons of higher education themselves. (if they can't do that, then I'd argue they are not the brightest in their class after all)