skysight-inc/HackerNews huggingface dataset:
Keep in mind that "All breakthroughs are derived from basic research" (if true) doesn't entail "All basic research leads to breakthroughs".

We still need to judge the merit of basic research; in this case I'm slightly more skeptical as to its potential to unravel, well, anything about the mind at all.
> jobs on Amercian-citizen terms

Yeah, I think most Europeans definitely would _not_ want that.
#include <GLFW/glfw3.h>

int main(void)
{
GLFWwindow* window;

if (!glfwInit())
return -1;

window = glfwCreateWindow(640, 480, "Hello World", NULL, NULL);
if (!window) {
glfwTerminate();
return -1;
}

glfwMakeContextCurrent(window);

while (!glfwWindowShouldClose(window)) {
/* Render here */

glfwSwapBuffers(window);
glfwPollEvents();
}

glfwTerminate();
return 0;
}

VS

#include <GL3/gl3.h>
#include <SDL.h>

/* Our program's entry point */
int main(int argc, char *argv[])
{
SDL_Window *mainwindow;
SDL_GLContext maincontext;
SDL_Event event;
int running = 1;

if (SDL_Init(SDL_INIT_VIDEO) < 0)
exit(1);

SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 3);
SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 2);
SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1);
SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 24);

mainwindow = SDL_CreateWindow(PROGRAM_NAME, SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED,
512, 512, SDL_WINDOW_OPENGL | SDL_WINDOW_SHOWN);
if (!mainwindow)
exit(1);

maincontext = SDL_GL_CreateContext(mainwindow);

SDL_GL_SetSwapInterval(1);

while (running) {
while (SDL_PollEvent(&event) {
if ( event == SDL_WINDOWEVENT_CLOSE ) {
running = 0;
break;
}

/* render */

}
SDL_GL_SwapWindow(mainwindow);
}

SDL_GL_DeleteContext(maincontext);
SDL_DestroyWindow(mainwindow);
SDL_Quit();

return 0;
}

It's got SDL beat a bit in simplicity for OpenGL, sorry dude.
Twitter to revamp Twitter Advertising UI, adds new features August 19
Why is the "security camera" moving? It looks like someone was holding the camera. Aren't security cameras usually mounted to walls?
Really this seems incredibly strange.
Who the hell is Satoshi and WTF is this supposed to mean?
When Voyager was at Jupiter, communications allowed for a bitrate of roughly 115kbit/s. The distance from Earth to Jupiter is about 5AU. The current distance to Voyager is 100AU, so let's say we still have a bitrate of 1kbit/s. According to WolframAlpha, Voyager 2 is about 50000 light seconds away from us. Now you can do the math.
A whole lot of seemingly useless science does end up being useful later on in ways we don't imagine. I doubt Mersenne and Fermat envisioned their work being used to secure banking transactions. However, mathematics is typically harmless to animals, so it doesn't really matter if it never ends up being useful. This study was both immediately useless _and_ harmful.

The UofM ethics board must really be a rubber stamp if it approves asphyxiating and shocking to death a bunch of rats just to study near-death experiences.
Thou shalt not compare values of different units (USD vs USD/a)!
Hyperloop is a big step that would take at least 20 years to try. What San Francisco needs is simpler and smaller steps to fix transportation. Here are suggestions;

1- Allow private & small mini-busses.

2- Provide the community hanging out near the bart exits in Mission better public gathering places so we don't need to smell heavy amount of pie every morning.

3- Make screens in bart and stations that show the upcoming trains, current train, route etc.

4- Ban smoking, eating, talking loudly, and leaving garbage in the trains.

5- Replace all the seats with smaller ones like all other subways have.

6- Replace shitty Subway shops with good hipster alternatives that people actually enjoy.

7- Improve ferry transportation between east bay and san francisco.

8- Establish shuttles.
there appear to be 3 transactions in total, related to this
https://blockchain.info/address/1Lsc297azMbCDXKREnUuQWwMwKVE...

the output of the second transaction is:
OP_DUP OP_HASH160 d9fc6bc120342fc43b2296876562e1d4c6536fda OP_EQUALVERIFY OP_CHECKSIG
> The thing is, Firefox for desktop and Firefox for Android could implement those APIs and then implement 'installing' apps from the web that use those APIs, making them cross-platform. And, since the APIs and all code is open source, other browser makers would be free to implement it.

This is already the case - check out http://marketplace.firefox.com/ on desktop or android Firefox.

However - note that app developers can choose to only support certain form factors. Many do support desktop however, for example https://marketplace.firefox.com/app/pasjanssolitaire

Desktop does not support all of the new WebAPIs currently though (https://developer.mozilla.org/en-US/docs/WebAPI), and certainly some may not be relevant on all platforms.
shrug.

I got a new work PC on Friday and was up and running within 30 minutes, although I did need to upgrade the kernel via deb (which took around 2 minutes) as I'm running a Haswell CPU.

I run Ubuntu with LXDE, simple case of copying over my old home directory (at impressive speeds), then resuming work.

If you're afraid of the choice that Windows offers you, maybe you should just stick with Mac, as they have their own store which has a good selection of garden-wall-approved apps. Windows is a great operating system, and there is a reason why it has sold as many copies as it has.
Burbank isn't even the boondocks. It's just part of the San Fernando Valley sprawl. You literally couldn't tell where it ends and Los Angeles begins without the signs.

Well, ok, and the nicer road surfaces.

Having said that, the map actually looks like it terminates at the northern tip of the valley, where there are current no mass transit rail lines, so you'd be looking at buses or cars from there.

Understandable as land acquisition costs skyrocket once it hits the valley. Still, it's a little misleading cost-wise for that reason.
Invoices from Swedish phone carrier got indexed by Google [Google Translate]
This reminded me of the guy who tried some Perl scripting using Windows Vista voice recognition.

http://www.youtube.com/watch?v=MzJ0CytAsec
Seems like a tradition of the Perl folks:

http://www.nntp.perl.org/group/perl.perl5.porters/2012/05/ms...

The Chuck Moore quote is especially ironic given what Perl represents in the programming language design space...
This; if I'm typing and jumping around the code at full speed for long periods it usually means either:

1. I haven't understood the problem

2. I haven't understood the solution

3. I need to spend five minutes improving my Vim macros
I'm not sure what assistance your friend felt the US provided that other countries wouldn't have, but many people would disagree. The US doesn't evacuate citizens as readily as other countries, and when they do, they don't do an overly great job of it, they only take you to a nearby safe place at which point you're on your own again, and they charge you to boot.

Here are some examples of just how great the US assistance was when evacuating citizens from Libya back in 2011:

http://www.npr.org/blogs/thetwo-way/2011/02/24/134034173/u-s...
http://thecable.foreignpolicy.com/posts/2011/02/23/us_citize...
Because you're thinking about it wrong. Together with HUD, it will be a godsend for anybody who needs to have hands free and yet work with a computer. And if the microphone is close enough your mouth, you won't have to talk loudly to it.

For example, I could go to tend garden and yet think about some problem, take notes, even code. Or check email, browse internet. I can work on hardware thing and have schematics or specifications appear in front of my eyes. I can have a walk and take notes. I can eat while working.

Eventually, no office will be required. You can just stroll in the park and get the work done.
If you do not know why you are doing it, then you will not do either.
In short: Larry started it by quoting Lord of the Rings, later release managers rolled with it. They aren't necessarily reflective on the release or current issues, but mostly there because the release manager felt like it. For more detail: http://perl5.git.perl.org/perl.git/blob/HEAD:/Porting/epigra...
Done: https://github.com/xta/HalloweenBash/pull/12
"Obama announces the formation of a 'least dependent' group to review our capabilities."
With such servers you can configure php or whatever you want really easily. Then you can backup all and rollback if you screw it.
If you're on a greencard these tax laws don't apply to you. You're only taxed for what you make while in the US.
The mini assembler was in the integer basic ROMS. Prodos didn't support integer basic (hence no mini assembler) but the later enhanced //e roms also had the mini assembler.

I have very fond memories of the Apple //e (and I have some with broken PSUs that I must get around to fixing) I bootstrapped my own assembler on DOS3.3 using the mini-assembler.

On Prodos I bought the full development kit which came with an assembler and a nice debugger. Wrote a Forth for the Apple with help from Loeligers Threaded Interpretive Languages and a copy of Starting Forth by Leo Brodie (both borrowed from the library) good times...
What does "Darling integration" mean? Darling already depends on Gnustep, doesn't it?
The Joy of about:blank: http://hsivonen.iki.fi/about-blank/
Here's Henri Sivonen (the author of the HTML5 parser that is now Firefox' sole parser) on the subject: http://hsivonen.iki.fi/about-blank/.

From a quick reading, it seems to be a mix of synchronous vs asynchronous parsing, historical reasons, and stuff. He identifies eight different behaviors.
How Graig Presti Grew His Local Marketing Agency to 7 Figures in His First Year
>the NSA has nothing to do with domestic surveillance

Have you not been reading the news?

https://www.eff.org/nsa-spying/timeline

http://www.newyorker.com/online/blogs/johncassidy/2013/06/ns...

http://reason.com/blog/2013/08/05/shocker-nsa-tools-for-spyi...

http://uk.reuters.com/article/2013/08/07/uk-dea-irs-idUKBRE9...

Thanks to the "Patriot Act" and "Threat Fusion Centers," along with other such efforts to streamline the police state agenda in the name of the "War on Terror," government agencies have been sharing information more readily than in the past, apparently to the point of NSA derived intelligence being used in pursuit of drug dealers and tax cheats on US soil.

Of course people are aware of the intended functions of the various federal enforcement agencies, and the fact that these agencies are overstepping their mandate is why people make websites such as the one featured here.

The quotes you refer to are quite relevant, in my view.
Even if it was technically possible[1], I don't think it's any more feasible than forcing citizens to publicly declare the serial numbers of dollar bills that they hold.

[1] By design, Bitcoin addresses are supposed to be single-use. Reusing them is a security risk and not recommended (recent android vulnerability is a good example - it only affected reused addresses). Every transaction done with the standard client usually creates a new address (to send the change), which is not even visible in the interface. Merchants accepting Bitcoin usually create a new address for each invoice, etc. etc.

In other words, the way Bitcoin is used is fundamentally incompatible with the public declaration of addresses. If the government has the power to change this, it might as well make Bitcoin completely illegal and not bother.
You mean, as long as they can't be updated period.
From the About:

"Simple DirectMedia Layer is a cross-platform development library designed to provide low level access to audio, keyboard, mouse, joystick, and graphics hardware via OpenGL and Direct3D. It is used by video playback software, emulators, and popular games including Valve's award winning catalog and many Humble Bundle games."

http://www.libsdl.org/index.php
Yep, because main-loop boilerplate is all one ever does with graphics programming.
Dashing, the exceptionally handsome dashboard framework for Rails
you really should put the essence of this commend on the kick starter page. It makes it absolutely clear why I should care and why it is a cool project.

edit:
Both company's that you mention should just sponsor the project and/or pay you to work on it full time as this is the backbone of there business
I understand fractional reserve banking. It's a percentage (I think around 10%) of the deposits the government requires a bank to keep on hand. The rest of the deposits are all loaned out back into the economy.

Note that the government requires this reserve because otherwise the bank will loan it out, i.e. the bank doesn't actually desire to keep cash on hand. Neither do rich people. Even drug lords don't want cash hoards, it's why they launder it.

It's not splitting hairs over semantics. People who have money in the bank do not have a cash hoard that they are withholding from the economy.

As far as people keeping assets in safety deposit boxes, nobody has any idea how much is in them, so it's rather pointless to talk about them. I do find it hard to believe that Apple's billions in "cash" is really a hoard in a safety deposit box that's withheld from the economy.

>that is a working, popular, valid definition of "hoarding cash".

Not in the sense we are discussing of it being withheld from the economy.

(For fun, watch Breaking Bad, where one of Heisenberg's biggest problems is trying to convert cubic feet of cash into something he can spend.)
Is "genuine intellectual curiosity" a good enough answer?

I tried to figure out by myself how to reinterpret_cast a ByteString to something else (Float/Double in my case). I used ByteString because it was recommended by #haskell for binary IO.

I failed in my endeavor because the key function, which returns the pointer underlying ByteString, is in the hidden Internal subpackage. So I asked on reddit.
Half-Arsed Server Capacity
My income is earned and heavily taxed. I even have to pay taxes for my medical insurance, which are otherwise exempt in the states. Ya, it can be nightmare, and I have no idea what I would do if I ever got audited; its not like we get official documentation about pay since taxes in earning country are deducted automatically. At best, we have some pay stubs.
In case anyone else wants to have a look at that (partially) generated C++ code, here's the online source: http://mxr.mozilla.org/mozilla-central/source/parser/html/
Open-Source Opens Up Architecture for the Poor
I suspect that the problem here would be that VBA in Excel is all about the environment (of Excel) and the manipulation of Excel objects and that this would make it an unsuitable target for cross compilation - which is generally successful only for general purpose languages.

Your "source" language would have to be so constrained by the limits and peculiarities of Excel that it would be as hobbled and as difficult to write well as VBA.

[Edit] Joel Spolsky's FogBugz team did something interesting in this area though (see http://www.codinghorror.com/blog/2006/09/has-joel-spolsky-ju... for a take on that) but there again he was pretty responsible for the development of VBA when he was at Microsoft.
As someone who's used neither, I'd call that a draw. Neither of that boilerplate looks particularly scary or insane.
"HTML5 parser [...] automatic translation from Java to C++"

Do you reuse code from Rhino? (Mozilla's Java based javascript engine)

Why not convert the code from Java to C++ once, and then maintain the C++ code?
The internal module isn't actually hidden.

toForeignPtr should get you there: http://hackage.haskell.org/packages/archive/bytestring/0.9.1...
Awesome work, I'm looking forward to use it! I always liked the combination of SDL+OpenGL. Clipboard support is also very exciting because using X for that in Linux is a nightmare :)
Thanks for the link unwind/paulrouget2.

I think it went a little over my head. What role does about:blank actually play? I'm assuming that the wild behaviour and parsing difficulty is the result of it performing some special function (beyond just returning a blank page).
Of course a lot of people are trying to leech revenues in Affiliate marketing, that why affiliate need to be reviewed and monitored. It's not a scam you just accepted to do business with people without checking where their traffic comes from.
She said it herself: it's another Segway. It's a solution in search of a problem. We already have mass transit between northern and southern California: airplanes. I know, I know, this would be "better". But the existing system serves the people who need it at an adequate cost and level of service.
Technically you're correct, the best kind of correct.

But well, is there a pretty easily understood, common sense way to compare an yearly budget of $10B with a total cost of $6B, especially in terms of a trade off?
Like I said above, if you're in the news cycle they might help you, if not, then probably no.
... or you could contribute to a design that has already had a fair bit of work done on it.
SDL is a decent cross-platform layer for handling things like window creation, event handling, joystick and other devices, and things like this.

However, if you're using OpenGL, there are at least two libraries you'll probably want to make heavy use of (because SDL doesn't do anything worth mentioning in those regards):

FreeImage for image loading ( http://freeimage.sourceforge.net/ )

AssImp for model loading ( http://assimp.sourceforge.net/ )

Both are amazingly handy, have good licenses, and have excellent documentation (FreeImage is one of my favorite tech writing examples of all time).
> That's great news, I always felt the whole SDL_main thing to be quite evil.

Evil or not, it solves a practical problem that you would have to work around if SDL did not. And AFAIK, you have always had the option of not using SDL_main if you wish to solve the problem on your own.

On desktop platforms the program entry point is pretty easy to solve (main vs. WinMain) with an SDL_main-style macro or command line args on win32 compilers. But when you start working with iOS and Android, it gets more hairy.
Just shows how unevenly wealth is distributed if one guy thinks about building a new transportation system between L.A. and S.F.
Rhino code is not involved.

The portable core of the HTML parser is maintained as Java. However, the translation is not done during the Firefox build process. Instead, the translation is triggered manually when the Java code changes and the output of the translation is committed to the Firefox source repository.

(The Java code is committed to the Firefox source repository, too, to make license compliance easier for downstream projects that opt to distribute the whole app under the GPL. The Java code is the preferred form for making modifications for GPL purposes.)

Edit: As for why not maintain C++ separately, that would mean doing maintenance twice: once for Java and once for C++. The parsing algorithm still changes from time to time. Support for the template element was added. Spec bugs related to how nested HTML inside SVG and MathML work were fixed. I expect a subtle spec change to how correctly deeply nested phrase-level formatting tags are handled in the future, since the part of the spec that handles misnesting breaks correct nesting. Oops. (But it's great that browser are now so spec-compliant that you can see that it's a spec bug, because Firefox, Chrome and IE10 all show the same weirdness.)
OS X works fine thanks. Leave Windows and Linux to people who want to worry about their computer.
The investigative reporter lives nearby. He recorded the surveillance camera playback with his camera or phone. Perhaps the recording of the playback slowed down the video slightly?

Maybe someone could load the video up in Physics Toolkit (http://www.physicstoolkit.com/) or another program (http://jabryan.iweb.bsu.edu/VideoAnalysis/) and get a more accurate estimate of how fast Hastings was travelling.
It did make writing bindings for other languages rather interesting
Why We Removed Our Phone Number From Our Website
Hey, no reason to get snippy--you asked "Isn't SDL the simplest, most portable way to use OpenGL?", and asserted that it's a smaller library. I showed you a still-smaller alternative, and even dug up code to substantiate that point.

There's nothing wrong with using SDL for making a game (well, maybe a couple of things, but that's not relevant here), but it simply isn't the smallest GL scaffolding library out there.
Then why there are plans to build a conventional train line? To create new jobs?
Guacamelee Gold Review
Also, the Helios Airways Flight 522.
The hyperloop is not a high-speed train.
Want to start a big data company? Here are 5 things you need to know
You can't install a java tool-- any java tool-- just by a file copy. At minimum, you need to install the proper version of the JVM (different software may need different versions)-- that's at least 50 MB and maybe 100 these days. Then you need a directory with all the jars which the tool depends on-- figure another 50-100 MB or so for that. Finally, you need a shell script to set up the CLASSPATH, set up any JVM arguments you might need (increased heap size, anyone?) and actually locate the binaries.

In Go, you just copy the binary to the machine and run it.
Show HN: Visualize full-globe wind forecast
This question comes across as rather meandering, and I wasn't sure what you wanted. As far as I can tell, you've asked only one question: "Can't we put excitement back in VBA technology by hiding it ?"

No. That is, why should it? You can write native components as a DLL using OLE Automation, and Microsoft wants people to use .NET. Why target VBA when you can target C#?

"it seems to me that recently, we saw some new languages coming alive" - That's a sign of your inexperience with the field. Transpiling has been around for a long time, and is a frequent way to boostrap a new language. For example, the cfront implementation of C++ used to compile to C, and many Eiffel languages do the same.

For one of the most advanced projects, see PyPy, which is a system for producing JITs for different language front-ends (the most popular is Python) and backends (the most popular is x86 but Javascript is also possible).
http://webcache.googleusercontent.com/search?q=cache:lUlPgn2...
This is misleading. I can't remember if Puerto Rico still issues passports but I do know all US citizens resident in Puerto Rico are/were entitled to them, there is no separate citizenship. One can definitely be a HKSAR passport holder without being entitled to Chinese citizenship. All the people with Right of Abode in Hong Kong who it can be proven don't have Mainland (or Taiwan) ancestry who want a Chinese passport need to be naturalised as Chinese. This is really, really hard. Last I heard about 700 people with Right of Abode had done it. China (including Taiwan), Japan and Korea don't really naturalise foreigners.

On a side note Cantonese people are as Han as Northwsterners. It's a strong regional identity and it could have supported a nationalism, like Ukrainian did in the Russian/Soviet context but the time is gone.
I take it you've never taken a customer service call with an irate customer who couldn't figure out how to use their discount code correctly. If anything, they need to be the most usable part of the checkout experience, believe me
This reminds of when I read Stiff (an amazing book, by the way) [0], and how scientists in the good old days were weighing bodies before and after death, trying to find a weight of the soul, or any other quantitative values for the soul. I found that funny, but off-putting and disturbing.

My take: people are looking for any proof of the afterlife, holding onto a sliver hope proven by any scientific, factual account. I call the gamble on the afterlife faith, and why it cannot be guaranteed, but hey, that is way out of the scope of this conversation.

[0] http://www.amazon.com/Stiff-Curious-Lives-Human-Cadavers/dp/...
Every US citizen is required to pay tax that they owe to the government. You can oppose the government, but you do that throw voting, civic engagement, not tax dodging.
Yikes! :) Working on it...