skysight-inc/HackerNews huggingface dataset:
The one I think of off hand is the Registry Pattern. A Registry is a collection of objects or classes that need to be globally accessible. You can't just attach state anywhere in Java, so you create Registry classes to hold all of them.

But in Ruby, you can define instance variables on class objects, so that's where I put my registries. Let's say I have a custom logging class, named Logger, and I have three different logs that need to be accessed. What I would do is define self.[] on Logger, that accesses @loggers on the Logger class itself. So whenever I need a file logger, I just call Logger[:file] rather than LoggerRegistry.get_logger(:file)

Note that an instance variable on a class is different from a class variable. A class variable in Ruby is shared across the all the descendants of the class, and up the chain too to a point. (I don't think they go all the way up to Object but I'm not too clear on the details there.) In practice class variables are rarely used.

For the Factory pattern, the usual way to do it is to define a .create or .build method on the superclass, and have it return or define the needed class. If it were me, I'd use .create to make objects, and .build to make classes.
Everything you can do in sed you can do in perl, there's been sed-to-perl converters shipped with perl since the ur-times.
What's your point? Your contention that race influences intelligence isn't proven, so how does invoking an evolutionary framework help?

Evolution is a great idea, but the evolutionary history of humans is of course almost entirely speculative. I'm not an evolutionary biologist, but I think there is enough trouble explaining why we walk up right or have smaller jaws than neanderthals let alone explaining how we evolved current levels of intelligence.
But brain chemistry is inextricably linked to human moods. That's why we prescribe people psychoactive drugs. And why people take them recreationally.
Fixing metabolic slowdown isn't going to end obesity or reduce the need for exercise, but it will level the playing field.

It's still going to require effort, for many people, to maintain a healthy weight and exercise enough. But it's hard enough to do that as it is; if you can turn off a defect that causes the body to pile on unneeded pounds of fat (that interfere with health, mood, and the ability to exercise) with age, then you should.
Wasn't that the same alarm that was randomly thrown at the astronaughts in training and they made the wrong choice then and learned to make the right choice on the moon?

I will look up the story in Kranz's autobiography when I get home tonight.
I see; thank you for clearing that up. I withdraw my comment about the release. I would edit it if I could.
Europe loves it some Ada in the avionics space.
Essentially ....
"I'm the resident Microsoft expert here at The Verge, and for years I've switched between Android, iOS, and Windows Phone to check out new apps and how each platform is progressing, but it's now clear Windows Phone is being left behind."
Are Rideshares Really Safe? A Study of Rideshares vs. Taxi in San Francisco
Given they they also produce a ton of Android apps, it seems like it's in their best interest to do this for themselves too.
As someone who loves Ruby dearly, there are a number of severe flaws that are hampering Ruby now.

The thing is they are hampering Ruby now because people want to use Ruby for all kinds of things he probably never intended it for.

E.g. I'm on a crazy multi-year journey towards doing an ahead of time compiler for Ruby. Ruby is not designed for that. It has dozens of issues that makes it incredibly hard to do that efficiently compared to many other languages.

At the same time, MRI was incredibly inefficient in earlier incarnations because it was simple. It interpreted the syntax tree. Easy implement. A nightmare to make fast.

Ruby's grammar is also a massive pain for people who want to implement Ruby. Great for developers mostly until you run into some of the hairy corner cases that are often a result of trying to be incredibly clever to make things flow very naturally when writing Ruby most of the time, which has led to a lot of byzantine rules.

I wouldn't give Matz flak over it, simply because some of it are part of what makes Ruby so pleasant to use, and others are simply artefacts of him meeting his needs while implementing Ruby rather than designing it to meet some ideal that wasn't necessarily very relevant to him then.

But I'm not surprised (a bit sad, but not surprised) if someone makes it personal.
Given the massive transformation of the QA system he instituted, current bugs are the sort of thing you can judge him on.
My use case would be small local tools that need to keep some state. Essentially anywhere a SQLite would be useful. I don't think this was designed to serve as a database to back anything more 'serious'.
If only rust had (optional only, please) fall through on matches, then you could skip a whole line :D
> To actually learn it, Mac Lane & Saunders "Categories for the Working Mathematician." seems to enjoy continued popularity.

This is the best way I've found so far, and I had been semi-supplementing with MacLane and Birkhoff's "Algebra", just to get a feeling for the vocabulary; bringing myself from the space I typically mathematically exist in, to the space of category theory. Nothing else really has come close in composing the correct thought direction. It is dense, but I enjoy it very much. It is very beautiful math.
Indeed, I seriously can't believe this is that high up the list of technical problems to resolve associated with Android dev.
You can argue that everything in the universe is mechanical, even electricity, if you look at a small enough scale.
Seems this would be a cool MaidSafe app to write.
A starting point for you is the so-called MISRA-C standard: http://en.wikipedia.org/wiki/MISRA_C
It is easy to just add retrofit items to your rooms, for automating blinds you can use solutions like www.igg.me/at/R/x/9152529 or similar, but automation is not what adds value it is making your office smart.
While being equally clueless across the board, the main difference between those in charge and those who are not, is that the former attempt to keep and justify appearances, while the latter either can't be bothered putting in the effort or trust that the "system" knows better.

It's the status quo that allows us all to perceive structure and progression where there isn't any. It lets us believe that, as humans, we are not subject to chaos and entropy the same way everything else is, that our supposedly superior intellects let us transcend irrelevance.

It's the human comedy in all its glory, an amazingly funny one if you ask me.
Ada attribute provide a lot more meta information about types and objects than just integer limits.

http://en.wikibooks.org/wiki/Ada_Programming/Attributes

Some of these would be methods in modern OO languages but many are unique to Ada.
No, it isn't. I agree the nerd part should be ignored, but the sentence itself is her way of saying she's not attracted to the OP, which he should pay attention to. The OP should do what it is in his power to do and improve his social skills with women. If the OP is interested in hearing more of my opinion, he should email me (it's in my profile). I won't post it here because I'll get downvoted into oblivion.
Everyone has a price. Everyone.
Site usage analytics has a lot to do with state in a way. How about a visit counter? Something lightweight that would persist page count/ip address/lastdate values with an ip address key.
Why is Stream spelled incorrectly?
Stream processing languages typically derive from SQL (streamSQL) or prolog (Rapide) ... This one doesn't seem anywhere near as powerful but who knows.
Definitely sad, but I'd say the disturbing part is how fast they got disappeared once software development became "a real job".
http://www.misra-c.com/
What would be the point of blaming Matz for that?
Currently live at ~700 hotels, primarily Starwood & Hyatt brands: Westin, W, St. Regis, Le Meridien, Hyatt, Grand Hyatt, Hyatt Place, Hyatt Regency.

Please leave a comment if there's a specific hotel that you'd like to see added to the platform!
Checking in from Platform 302.
We use it to store and serve 100s of GB of data with a custom query interface on top.
Now it might be time to have a look into YACC, LEX and maybe BISON and follow Matz' repo :)
>While I can understand the frustration it's not really lost sales, it's just purchases that never would have been made in the first place.

This is really splitting hairs. Yes, I acknowledge that it wasn't _just_ piracy that caused the company to shut its doors. But to say that I can't be frustrated about people using the results of my work for free? In what other industry is it acceptable to say, "Yes, we like your product, but no, we're not going to pay, and if you try to make us pay we're going to throw our toys out of the pram about how evil the software developers are!" That's taking it to a whole new level, and that's really the point I was responding to.
I have been visiting FOSDEM every few years and Ada presence in Europe has been slowly rising.

Just check the archives.

Most likely because for writing fail safe software, it is better to use a language with built in support for safety, than using crutches.
We originally used szferi/gomdb which worked well but it didn't give us performance visibility with "go pprof" and it was difficult to debug at times. Bolt also takes the approach of simplifying the LMDB API significantly. There are a lot of advanced, unsafe features that aren't available in Bolt (e.g. WRITEMAP, NOMETASYNC). There's more detail in the README:

https://github.com/boltdb/bolt#lmdb

Bolt was originally just a side project but we found that it fit our needs for our analytics database so we eventually swapped out LMDB for Bolt.
This looks great - would love to see the Four Seasons Miami on there! Thanks!
What are the security implications of that? Does that mean that any web page can run a random workflow on your iPad, or are the hex strings so long that it is as good as impossible to guess one, or (way worse) is the hex string an encoding of the steps to run?
I'll take an extra branch over concatenation and dealing with new line chars any day.
I find it hard to believe that no one would figure out how to game the system with shill buyers, once commissions moved above 100%. Could you point such a program out? My google skills have failed me.
The triumphant return of clearcase‽
Why Shasta Is Backing Hinge
Based on the findings of this article, the OTC EGCG should "restore metabolism to youth levels."

Using a decarboxylase or AADC[0] inhibitor like EGCG[1] found in green tea extract limits peripheral serotonin metabolism, especially if you're supplementing with serotonin precursors like tryptophan or 5-HTP to avoid heart-valve issues.[2]

See Examine.com's note in the 5-HTP article[3] and the associated citation.[4] 800mg of EGCG 2 hours prior to supplementation demonstrated decarboxylase inhibition.

[0] http://en.wikipedia.org/wiki/Aromatic_L-amino_acid_decarboxy...

[1] http://www.amazon.com/gp/product/B000MYW2ZA/

[2] http://www.ncbi.nlm.nih.gov/pubmed/15781732

[3] http://examine.com/supplements/5-HTP/#summary5-1

[4] http://www.ncbi.nlm.nih.gov/pubmed/11374875
I haven't used GAE's Datastore API but using protobufs on top of Bolt is trivial. Bolt just uses []byte for keys & values. I use gogoprotobufs with Bolt often.
>The Blockchain provides an audit trail that is considerably more transparent and easy to access than the audit trail a bank uses.

If I send money to someone unintentionally or undeservedly, how does the block-chain rectify that charge?

My bank simply reverses it. That's powerful.

>This second option requires the person in the Philippines to have a bank account

True, but Bitcoin requires a cell phone or consistent internet access, doesn't it? And there's no recourse to having your money stolen or lost? I'm not sure those are appealing scenarios to the poor, either.

Transaction fees aren't high "just because". Otherwise anyone could open a lending facility of some sort and kill it. I mean, it's not like Western Union is making excessive profits. There's a matrix of risk involved with the movement of money. Bitcoin solves some, and creates others.
I have always sworn by Borceux' Handbook of Categorical Algebra. It progresses smoothly all the way from first principles up to (if you buy all three volumes) sheaves and topoi, but it is kind of expensive.
Does this website screw with anyone's else scrolling? My scroll wheel was sluggish to the point that I simply closed the article.
Computer repair with the speed and reliability of FedEx
Her with a hardcopy of her code.

http://i.imgur.com/bxyWmuA.jpg
Since you ask: Rust, being a Mozilla thing and Mozilla being a foundation, is certainly a less risky and “fearful” (so to speak) platform in this regard. Go, however light a hand Google might have on it at the moment, still has Google’s hand on it, which makes me wary. Sure, it’s better than Dart (or C#), but everything can point to something which is worse – that is not a good enough reason to accept a thing’s drawbacks.
Congrats to Michael and team on this! After Apple bought TestFlight and relaunched their testing offering this year at WWDC, it was clear Hockey would have a problem competing in the Apple device space (even though I think their product is superior to what TestFlight was -- haven't used the new TestFlight enough to compare).

The tools are great for users and developers and I think this will be great for Microsoft. Glad to see it end up in good hands.

Truly a great service.
Very good point - however I think this is just an implementation detail of Git as it stands today.

Also, if the person is working with SVG (for example), then it's less of a problem.

Also, given the cheapness of disk, I don't think it would be a limiting cost. And since git is open source, if I were to actually make this thing, it would definitely incentivize me (or others) to make git less bad for storing binary files :)
Regardless of what the real reason was, it is nice to see mikro-kernels being used in production.

Funny how many successful embedded OS are micro-kernels while desktops OS are still struggling to achieve similar designs, the best being the Mac OS X and Windows hybrid designs.
What's the replication strategy then?
Thanks for the feedback! We'll get the Four Seasons Miami on the app asap, and I'll let you know when it's available.
Flap Flap the new flappy bird
> How many times in an article about a male entrepreneur, or computer scientist, or other interesting person, is his subjective physical attractiveness even a topic of conversation? Almost never - and that's the way it should be for everyone.

I don't know, I would have liked advance warnings for some blokes who turned out disturbingly attractive, making their talks harder than necessary to follow.
You are learning Haskell right now
Looks like the storm affected archive.org's datacenter:

https://twitter.com/internetarchive
Ask HN: How do I find a local app developer?
I’ve been working on a design for a more functional twitter over the last one year. I think I've nailed the design and feel like it has huge potential. I currently work as an SAP CRM functional consultant, so writing up the business requirements and project planning is a cake walk for me. What I lack is three things:
1. A good developer (I have started to talk to a Chinese developer who is asking for $5000 for IOS app) 2. A great UI/UX designer ( I have a friend ready to do the work for $1000 but I’m kind of a perfectionist and don’t really see him do a good job) 3. And most importantly, TRUST in working with a person I don’t know in China with the probability of my intellectual property being stolen. I am a very trusting person in life. Not in business.

I could potentially safe guard the core functionality from the developer in China, and have another developer complete it. However, I do foresee some issues with integration of both modules. I’d rather have one developer to work on it from the start. Maybe even partner.

Even if this idea of mine is stupid, I’d still want to give it a shot. I was looking for places that I could meet like-minded people around LA, but haven’t found any lately.

What would you guys suggest?
That manual is possibly the single most useful technical document that I have ever read. It has enabled me to write extremely powerful programs that no one I know can understand.

It would however be nice to have a tool with similar power but simpler, more comprehensible syntax. One of the other commenters linked to an interesting document on sam, which has a better control flow but equally arcane syntax.
It's a reference to Aphyr's blog series on partitions in distributed application - http://aphyr.com/posts/281-call-me-maybe-carly-rae-jepsen-an.... It's a great series and seems to have raised the level of discussion around distributed apps.

The whole set (in reverse chronological order) is available at http://aphyr.com/tags/jepsen
Obligatory reading on L-systems:

http://nothings.org/gamedev/l_systems.html
Residents Kayak in the Streets as Major Storm Slams West Coast
Ah, you're right. But it would be nice if they showed this in the Readme, along the "wrapped" examples.

Actually, going the "db.Begin" way would be more consistent with the rest of the standard library.
Most of the Go APIs go to great length to be "external" (i.e. iterator-like), e.g. bufio.Scanner, and (of special note in this case!) database/sql.Tx! It appears to me the "internal"/callback APIs are introduced in those places where there are really compelling reasons, which justify breaking the consistency: e.g. for filepath.Walk, there's recurrence, so it's mostly giving up to the obviously K.I.S.S. way; in sort.Search, the benefit is that callback allows to evade need for generics/reflection.
TheVane: Women's fashion recommendations based on the weather
Tom LaGatta in this video on Category Theory listed this website as number one resource on category theory.

http://youtu.be/o6L6XeNdd_k?t=1h5m31s

There he also lists some books on category theory. I am putting a direct link when he mentions the references.
Interesting that he chose a C-like syntax after going the complete opposite direction with Ruby.
Analysis of Raft Consensus [pdf]
You can have all my digital shit. I'll still have it.
It's an interesting work, but it's difficult. I found a few historical inaccuracies.

For example, in the reconstructed map the Avenida de Mayo ( http://en.wikipedia.org/wiki/Avenida_de_Mayo ) ends with a curved path near the Plaza Congreso (http://en.wikipedia.org/wiki/Congressional_Plaza). I live only a few blocks away, so I know the zone very well. Perhaps a link to the current Google map may help you to understand the discussion: https://www.google.com.ar/maps/@-34.6094993,-58.3877341,17z

In the scanned map at the top of the article, the Avenida de Mayo is a straight line and ends in a perpendicular intersection. In the current map, it ends with a curved path that allows the cars to go into Avenida Rivadavia. The Wikipedia article about Plaza Congreso explains that they didn't want to cut the Plaza Loreto because it was used a as water supply for the carriages, and the new extension was created in 1910.

Also, many of the Avenues marked in the map, in that time were usual narrow streets. The increase of the wide was a much later project, but I can't find the date now.
Shentong – a Haskell implementation of Shen
My examples could result in fraud, but aren't the kind you're talking about. You getting a hold of thousands, millions of credit cards without consent or some other agreement is a criminal offense. Let's get away from CC numbers. Just get a hold of thousands, millions of people's PHI through the same means. Get a hold of BEA's secret blue prints for future products.
Build queries and update MongoDB documents in the Mongo shell much easier
I too am basically looking for a Windows port for RSync. I'm aware of a project that runs on top of Cygwin (DeltaCopy?) but it's not kept up with the latest Rsync protocol last I checked.

Any recommendations?
Yeah, it was a completely unnecessary comment.

I can see commenting about a stranger's physical appearance if they're dressed in a surprising way (if somebody shows up at a tech conference in a tux or evening gown, or dresses in a costume, it's reasonable to expect some degree of attention.) I can see commenting if they have known health problems they're recovering from (like late in Steve Jobs' life.) And I can see commenting if someone appears to be considerably younger or older than they actually are [0] (when I was a teen and my parents were in their late 40s or 50s, people occasionally asked if my dad was my brother or my mom was my sister or girlfriend.) Those kinds of comments can be gender-neutral and non-harassing, and furthermore genuinely interesting points of conversation. But we should definitely stay away from creating the impression that physical attractiveness is one of the most important qualities for women in tech, or almost any other professional context.

[0] For example, bringing it back to Margaret Hamilton, I wouldn't have identified her as being anywhere close to age 71 in the picture at http://www.earlham.edu/alumni/homecoming-and-reunions/alumni... .
I didn't mean to make the point "that a business benefits off another's hard work does not nessecary deprive the worker of their income". Sorry, I guess it was lost in translation somehow. My point is that Google profits disproportionately off the work of others relative to the value it creates, and that its network effects tip the scales towards a more top-heavy, power law distribution that's not sustainable in the long-term under the guise of "openness" because, hey, we get everything for free. And that this is propogated as "free" and "open" when in reality it just represents a shift in who controls what.
Some years ago, there was a video about the moon landing in Washington DC airport (it was at a Smithsonian exhibit or store or some such). It included video of the control room when the alarm went off during descent. There was silence and blank faces - nobody knew what to do.

But by the time the alarm went off the second time on descent, it was completely different. Someone - whoever was in overall charge - called a role (something like "descent control officer") and that person responded "go", all within one second.

But, yes, it wasn't a problem because the priority scheduling recovered from this problem, and that recovery was a really big deal.
In the United States, evidence from an illegal search can't be used at trial. In Canada, the trial judge has the option to exclude illegally gathered evidence.
Management interface for monitoring, irc/chat host, pretty much anything interactive to a persistent backend.

Go can be used for far more than just web nodes.. it can be used for any number of network or stand-alone applications.
This will likely not have the desired effect if you are calling into the C code from within a tight loop. Go's C FFI is not low overhead.
2015 Trends for the Internet of Things
How LOVE ACTUALLY should have ended
Google Gives $2M to Support San Francisco’s Homeless
But you can get that in C++ if you really wanted to as well.

I just wanted to point out that not having to worry about segfaults is clearly wrong.

Go doesn't really take any steps from preventing pointers from being null or forcing you to deal with possibly null pointers, or accessing uninitialized maps or slices.
It would be nice if you mentioned the DB.Begin() etc. in the Readme, not only the Update() & friends, so that a casual reader would know he has a choice here. I couldn't find it mentioned there, so how could I know I have to search for it among dozens functions in godoc?

Never really tried yet, but I think when using database/sql.Tx, the following snippet would be quite idiomatic, and I believe it should be perfectly safe:

tx, err := mydb.Begin()
if err != nil {
return err
}
defer tx.Rollback()

_, err = tx.Exec('...')
if err != nil {
return err
}

return tx.Commit()