skysight-inc/HackerNews huggingface dataset:
Haskell -

fib (Just n) Nothing = Just (fibs !! n)
fib Nothing (Just x) = let (n, x') = head (filter (\(_,y) -> y >= x) (enumerate fibs))
in if x == x' then Just n else Nothing

fibs = 1 : 1 : zipWith (+) fibs (tail fibs)

enumerate = zip [0..]

I think that should work! It's a bit undefined what happens if you supply both arguments, or neither. It would be better to use Either Integer Integer as the input instead of a pair of Maybe Integer.

Of course there's always the LogicT monad if you want to do it "properly".
This line of django-esque query system seems like it could mature into a useful ORM and find it's place in Go Land. There is still quite a ways to go, though.
Wow. Very useful
Stuyvesant Senior Made $72M Trading Stocks on His Lunch Break
Because the vast majority of people that are young and ambitious prefer to live urban areas with all the advantages that come with it.

And with the high level of gentrification in many successful cities, unlike 25 years ago those urban centers are now also attractive for older people and people with families, people who used to move to the suburbs.

People want to be there, and contrary to what a very vocal minority suggests, most people don't want to work remotely, at least not full-time, and those that do don't necessarily want to do it from the middle of f-ing nowhere.
To take this a bit further, as far as I know, the question of what constitutes a mind is still an open question. Ie: where does the "mind" live in us? Is emergent minds, like that displayed by a ant colony, really a mind, in the same sense that we have minds?

One of the hard things about [ed: (military)] intelligence, [gathering] is that it is very hard to ask the right questions. You can sometimes find the "right" answers to the "wrong" questions -- and convince yourself you know what's going on -- while in reality you're interacting with a shadow-reality of partially your own creation.

For example: oppress and invade, deploy divide and conquer tactics across unconnected populations that share some cultural values -- and you'd probably be able to create a stand a alone complex in the form of the resistance that forms. Then that might latter merge into a true complex, as the various independent parts realize that they have a somewhat common agenda... Maybe we'll see the new Star Wars films inadvertently expand on this theme, judging by how they're setting up the story with then animated "Star Wars: Rebels" series? :-)

Highly recommend the newest prequel installation of Ghost in the Shell, GitS: Arise: http://en.wikipedia.org/wiki/Ghost_in_the_Shell:_Arise
That article isn't about Plan 9 at all. It's about Inferno, a related but distinct OS.
I've worked remotely for the last 10 years. My largest
coding effort lasted 6 years, generated 60k lines of code,
and 6k pages of documentation. The same averages (10k loc,
1k docs, per year) seem to hold for all projects. In general
I find I'm very productive working from home.

The hard part is that I discovered that I have a "natural"
27 hour day so I tend to be out of phase with the group.
In order to communicate I end each "day" (aka bedtime) with
a 1-3 line email stating progress (or at least effort).

"Work" is also a 7 day per week activity as there are no
natural boundaries. It helps that I really love to write
programs. Calling saturday morning is fine but I might be
asleep on tuesday at 3pm.

Also, I write "literate programs" so the work product is
a book containing the explanation and the source code.
That way the boss can read everything up to the lastest
overnight checkin. The book contains all work done to date
so there is never a question about "the state of the work"
or whether there is "progress".

On the other hand, if you don't like weeks of dead silence,
a lack of extra eyes to find bugs, a river of badly brewed
homemade coffee, and hotdogs for breakfast ... get an
office job. Working from home is not for everyone.
Perhaps you've not been following the news lately.
https://www.google.com/search?q=uber+bans&oq=uber+bans
Computation-nostalgia is endless joy :)

In the mid-80s I did have access to several models of those pocket Japanese computers that ran BASIC, including the CASIO FX-750P. I was definitely a loner in this regard. I just got lucky -- my father was in Japan doing film work and probably spent his entire paycheck several times at the electronics malls. He bought these because he wanted to write software to help camera operators with setting up their shots, anywhere in the world.

http://casio.ledudu.com/images/pockets/casio%5Cboites/zoom/f...

I had dabbled in Apple IIs at school but this was my go-to machine at home. I could not do very much with a 1-line LED display but I wrote some simple games and animations.

Every kid learning engineering would benefit from working an old-school piece of equipment, even if simulated.
4 Different Uses for Web Scraping That Can Help You Grow Your Users
Not really, part of the reason people want to live centrally in the first place is the density and the high quality turn-of-the-century housing. Tall ceilings, nice wooden floors, large windows. It sounds like you've never actually been inside one.
Not to discard your comment, but wrt Stockholm: Build higher! Urbanize areas outside of the core inner city. Lots to do in planning and building to not create artificial social policy.
PHP Class Generator to Speedup Development
I actually think Norvig is making a totally different point than you are. I also think (with respect) that it's a much more important point to learn.

Where your point is that there is a better but almost-as-intuitive approach, Norvig's point is basically that a naive application of probability theory is often dramatically easier to implement, and also "good enough" when compared to a (usually much more complicated) rule-based implementation.

That's really a great lesson to learn. It's (IMHO) much less valuable to learn that there are better approaches out there -- of course there are.
All of those "me too" stories are really about saying one thing: You Are Not Alone.
> Mostly reliability. I would never carry spinning rust in my laptop again, those days are gone.

Exactly. Spinning rust drives are now far inferior to SSD's for reliability. No 2.5" spinning rust drive I have bought in the last 7 years has lasted for more than 2.

I have yet to have an SSD fail on me.
So, how do you go about spelling this?

RapGEN-aiiii?
Maybe you could sweeten the deal by getting her a cute little dog named Toto?
I didn't particularly like the article since I couldn't really tell what the research was about from it, but I'm enjoying listening to Jeremy England's (the guy behind the theory the article discusses) talk that it links to [1]. Until at least 19-20 minutes in it's presented simply enough that a 10 year old could easily follow along with it, then gets into technical stuff that is kind of going in one ear and out the other for me (as somebody who hasn't studied physics beyond a college survey course level).

[1] https://www.youtube.com/watch?v=e91D5UAz-f4
No. He has explicitly said that he does this because he thinks Python makes better pseudocode, and is easier for beginners to understand, as empirically measured by the questions he got from students of his AI books.

I understand your heart was probably in the right place, but honestly, your tone here is kind of hard to take.
Lived in Stockholm for ~1½ years, ending in the spring of 2013.

Was lucky enough to have the company I was recruited for help me by having their name on the rental agreement, covering any expenses the owner might have if I thrashed the place, didn't pay rent, etc. Ended up finding a place for 13.000SEK/month on the outskirts of Stockholm, at the very last subway stop.

For most of the employees starting at the same time as me, most of their rental agreements were only valid for a year or so (and the owner could kick renters out pretty much at any time), forcing people to go and find other apartments, which is not easy when the employer no longer offers support with the contract.

One colleague of mine found that his response rate was extremely low on his bot that automatically applied for an apartment, which matched his criteria, as soon as it came up online. He suspected his non Swedish sounding name was a factor, so he changed the name in the message to something Swedish-y ("Sven Karlsson" or smth. like that) and instantly the response rate rose dramatically. As a foreigner, not having anyting on your Swedish credit report doesn't help either.
For AWS, not so long time ago NO, right now it is a YES. If you look at boto, it still doesn't have built-in client side encryption, while Java has. It is trivial to implement your own with Python, however it does tell there is difference here.

For internal projects, situation is even worse and many of them are community-maintained.

Disclaimer:　Amazon Employee.
> Further, even if successful reentry were possible, the shuttle could not be landed entirely from the ground—there was no way for Mission Control to have extended the shuttle's landing gear or the air probes necessary to judge velocity once in the atmosphere. Those functions (as well as starting the shuttle's auxiliary power unit) could only be invoked by physically throwing switches in the cockpit during approach and landing.

It is a mystery to me why it was designed this way. I'd design it so that if the crew were disabled, it could be brought back by mission control.
I followed the link because of who submitted it, knowing it would be about Tibetans' adaptation to high altitude. I was pleasantly surprised to see the connection to the Denisovans. It's fascinating what genetics can reveal about our complex and amazing human heritage.
> Contrary to popular belief, the heat a spacecraft faces on reentry isn't generated by simple friction but rather by ram pressure—the fast-moving shuttle compresses the air in front of it, forming a massive shock zone in which air molecules ionize and break apart.

Finally! It always annoys me when people, even those who should know better, call it friction.
Dragging windows does not constitute my basic desktop usage. I probably drag or resize a window at most once per day, and I'm not even using a tiling or significantly keyboard-driven window manager, it's just stock OS X.
http://aws.amazon.com/blogs/aws/boto-python-3/

Boto has supported Python 3 since early August :)
I want to know about the Hacking MIT writeup! It's not available yet, I wonder what they achieved?
It makes sense in the movies to hire a crew of contractors just for the shooting because shooting takes few weeks, months tops. A game production can take anywhere from a year to several years, contractors usually don't want to commit for such long terms so it will take a while just to staff your project. Then, as you have shipped, you let go all your contractors and immediately start hiring new ones for the next slated project? Makes very little sense.

The churn you are seeing now is the effect of the poor financial state of the industry. A lot of studios are spending more money to make the games than the games bring back. Such studios eventually have to get out of business either through bankruptcy or through being shuttered by its holding company.

As a studio is nearing the inevitable end people employed there are leaving and the studio starts hiring, sometimes this is amplified by the management trying to "fix" the expensive production problem by expanding. Since the stable and profitable studios do not hire much, especially among people without industry experience, most of the new hires go into the studios that are already circling the drain and will be laid off in a year if not a month. This is what's creating the impression of the high churn IMO.
Shriram, thank you for the PLAI and I'm looking forward to take a look on PAPL as well. But one thing I don't like - types (static typing) for the implementation language is an afterthought in your books. This happened to PLAI, and later it switched to "plai-typed" language (which was a good move). Now we have PAPL, but again using a dynamic language. Although, as I can see, static typing is a planned feature for Pyret. So I suppose PAPL will switch to static typing in the future, but I think it would be better (for readers/learners, novice programmers) to start with (static) types in the first place.

EDIT: just skimmed through the text, you seem to be using "type-like annotations" mentioned in Pyret docs.

Another thing to note - Pyret is much more readable/enjoyable (and I guess writable :)) than the previous lisp languages you've used. Thanks!
The Software Inferno (2013)
Where are you from? And are you studying something that you can get SU from? There are special student housing (called "Kollegium" rooms) in Denmark, where only students are allowed to live. And the rent is considerably lower than normal rental apartments.

It's been a while since I've studied, so my information might be outdated, but feel free to send me an email if I can help in any way. I live in Copenhagen.
@Sir_Cmpwn, you should document somewhere that at least the TI-83+ ROM will run fine on Android using the Andie Graph emulator. :)
It's a play off of RapGenius (but the plural) so it's pronounced: rap-genie-eye
Pre-Alpha testing started for CipherShed (fork of TrueCrypt)
We all want a better computing model for Christmas, I guess.
Yeah it's a management problem. But this 'grassroots management' policy that comes from their own incompetence that reflects into this trend.

But that is only one possibility for the cause of the trend at a company.
3D Print Human Portrait and Real Human
I thought Hy already used persistent data structures? If not, then it should! :)
It does not lead to the LOOP macro. The LOOP macro is a special approach for an embedded language for iteration. It's coming from on an older idea from Interlisp: Conversational LISP.

http://www.softwarepreservation.org/projects/LISP/interlisp/...

> This essentially adds a FOR statement to LISP

LOOP provides quite a bit more than a `FOR` statement: various forms of iteration and stepping, value accumulation, termination, flow control, ...

It's basically a special style of embedded DSL for it iteration. If one wants to implement such a thing, there is only a way through macros in Lisp. There are lots of iteration macros for Lisp - most have a slightly simplified grammar, though not necessarily less features (see the ITERATE macro, which has more features than LOOP plus more parentheses).

In other language this would have to be implemented in the language's internal implementation.

> Because this is a macro, ...

Similar to DO, DO*, DOTIMES, DOLIST, ... which are all macros in Common Lisp.

> if you have to debug or step, you get to do so through the expanded code.

like so much in Common Lisp and like so much in Lisp in general. Source translations are quite typical for this language family. It makes debugging quite a bit more difficult.

For an alternative to this look at SERIES, which is also implemented with macros, but looks and works completely different.

http://lispm.de/docs/cltl2/clm/node347.html#SECTION003400000...

Generally stepping is difficult in Lisp. If you would want to step through a call to a MAP function, you will step through its implementation and repeated calls to a closure argument, which might not be pretty.
Starting the rocket at 15% velocity is not the same as saving 15% of the energy though.

* you have slightly reduced gravity field

* you have a big win in reduced drag energy loss

* these wins have an exponential effect on your fuel requirements at sea level, since less weight in additional fuel again means less fuel to transport that fuel up there etc.

* On the other hand, energy is proportionate to velocity squared, so that gives you less than 15% savings if you assume no atmosphere.

Looking at the wiki[1] these SABRE engines (according to manufacturer specs) will have a 7-8 times higher fuel efficiency than typical rocket engines while in atmosphere (3500 seconds vs. 450 seconds specific impulse). Since this has been peer reviewed by ESA, I'm trusting these numbers. The ascend profile of these machines will look quite a bit different than rockets, so it's hard to compare the efficiencies, but the 'rocket starting at mach 5 horicontal velocity and out of atmosphere' comparison seems to be a good intuition to me, although we still have to reduce it by the amount of fuel that has been used in order to get to that point (which will not be insignificant, even though it's 7.7 lower). We also shouldn't forget that the hybrid system has a thrust-to-weight ratio of 14 compared to 150 of SpaceX' merlin engine, which means that it will take longer for such a system to reach the same speeds, reducing its efficiency gains. The reduced weight of the whole orbiter will make up some of that though, so unless we get more publicised informations on the whole ascend path along with simulated data it's hard to tell. All I know is: When using the simplified versions in KSP these hybrid engines make a lot of sense, i.e. it's the easiest way of getting an SSTO there ;-).

[1] https://en.wikipedia.org/wiki/SABRE_(rocket_engine)
Send a pull request! We're very open to them. Also accepting patches on the mailing list as of today if you prefer.
Validator.w3.org check of www.Google.com
The parties at GT and MIT are more like really tame happy hours that resemble office events rather than actual parties. They don't even come close to what you get at FSU and Arizona State which is almost 24/7
Here's an open source alternative: https://github.com/SelfControlApp/selfcontrol/
You may soon use WhatsApp from your desktop – The Times of India
Review Wealthy Affiliate Is It a Scam Designed to Take Your Money
This has been discussed at length on HN and elsewhere, but there definitely is a real estate problem in SF. Average height of buildings in the downtown area and the like are _much_ lower than they could be (earthquake arguments are bunk, see Tokyo).

The politics behind this is absolutely terrible zoning regulations in the US that make mixed-use zoning difficult, and the fact that people own their houses, and don't want to see the value go down. So basically rent seekers.
This is amazing. I really hope this picks up and becomes production ready.

What technical factors could prevent this from being used in production? (not right now, but in the future)
If 100M is enough for you, I'm developing a new board with 2 RJ45 for industrial ethernet, which has a 40 pin connector compatible to that of RPi B+, but the circuit is adapted from beaglebone black. It's scheduled for end of January 2015.

https://docs.google.com/document/d/1X9RrbkUpiTQ-S6Acken-5fv7...
Dude, GT also has a drinking song as it's official school song; yet there are no real parties on campus - you know regular events with tons and tons of debauchery. I think this is what you don't get if you've never experienced a real party school: there's mainly only playing hard and there's barely any work for a lot of your time there (or even all of it if you so choose). There are classes where all you have to do is show up and you'll pass...
> This is running on tmpfs, so no I/O involved.

Hmm... I think that might alter the results actually.

> which is what you'd expect since it's a hash and doesn't have to navigate down a tree to locate a record.

mdbm uses a hash to select a page, but it actually does store the keys within a page in order. It's kind of a funky mix.
The comments aren't necessarily a random sample--a popular political site, blog, or twitter personality could have linked to the site, with an implied "Give 'em a piece of your mind".
Compared to pre-Reagan Republicans, the Democrats seem pretty right wing...
They asked for a delay on release so that affected services can be patched.
You work for Google? Are you in the Google Brigade?
So it's like a 'screen' for X11? I tend to just use a VNC server for this, might have to give this a try next time. Although I would think for non *nix clients, VNC is more practical.

EDIT: Wow, just read the title ... at least I understood what the thing does. -_-
What you can't buy from a presentation coach (can you?)
If I understood correctly, it is not possible to manually manage memory in Rust and do things like memory recycling or pools?
No doubt influenced by the MIT Bitcoin Project [1] that gave $100 in BTC to every MIT undergrad this fall.

[1] http://mitbitcoinproject.org/
Prolog is quite nice, it is the next step for those that already grok functional programming.
There is also this chrome App:

https://chrome.google.com/webstore/detail/stayfocusd/laankej...
Ok, but you get my point: there may be actual limits to the development of space travel technology. Your logic seemed to imply there was none. Sorry for speculating though.
Smalltalk was already out of the scene when Rails happened, nothing to do with Ruby features.
With many substances the legal risks are incomparably higher than the health risks. But it's not even the point. The illegality simply makes safer/more predictable substances much harder to obtain.
The article really broadens the definition of life into self replicating structures that dissipate entropy. England's point is that there may be lots of self replicating mechanisms but we haven't looked for them. Life as we know it is really a subclass of what he is trying to describe.
Not to judge the whole article but on paragraph like three it goes off about how this compares/contrasts to evolution which is a nonsense question and I am shocked that a credible science journal? site? would even go down that road.
If the only differences between the functions are the names and the performance characteristics, then why even bother having the slower versions? There has to be some difference somewhere, right?
Sometimes I wish for an alternate universe where one of Xerox PARC languages (Interlisp-D, Smalltalk, Mesa, Cedar) had gone mainstream, not AT&T ones.
"Basic OS building blocks" means that systemd aims to provide low-level tools that you can reliably depend on across distributions. In particular those pieces that are currently implemented through distribution-specific init scripts of various quality and robustness.

Network configuration in particular varies greatly from distribution to distribution, having a common, shared system would be a great improvement over the status quo.
What is this "new SI" ?
New to the US, Liberia and Birma perhaps..
alilja's issue isn't 1-indexing, it's R's completely insane decision to return usable numerical values for an array access error. In Mathematica or Matlab accidentally using 0-indexing would lead to obvious errors, while in R it often doesn't - especially if you have sparse/many zero data already
We put http://www.jdl.ac.cn/turing/pdf/p653-bachman.pdf in as the url since it goes to the article directly.
There is a shortage of apartments up for rent, but not if you want to buy.

This is due to the fact that the Swedish home rental market is controlled by laws and regulation.

To get an apartment in Stockholm get a loan buy the apartment pay your loan interest + electrical bills and such.

It is in the end cheaper than renting and has other benefits aswell, and some disadvantages to... There is loads of factors.
Raw pointers is a bad example to compare to Rust. It's more like comparing C to it. If anything one should compare managed pointers like std::shared_ptr and etc, especially since the author mentions C++11.
No, you can do that, and can do so safely (if you implemented the unsafe parts correctly, at least). For example, here's an arena allocator crate: http://doc.rust-lang.org/arena/
Yep. Not sure how good this particular source is but it was in the mainstream news recently.
http://ibnlive.in.com/news/cannabis-helps-shrink-aggressive-...