skysight-inc/HackerNews huggingface dataset:
Yep exactly! I know that it could be done via bash or a batch file. I just wanted to solve this usual problem with a simple project that also allows me to learn more about Scala since it's used at where I work.
On top of that, this 'fix' from the article, even if it were corrected to use size_t instead of unsigned int...

In C and C++ (where you don't have the >>> operator), you can do this:
6: mid = ((unsigned int)low + (unsigned int)high)) >> 1;

Has the same bug as the original snippet, just in unsigned space. Now, granted, binary searching a >2GB byte array in a 32-bit process is an unlikely use case... but it is technically feasible!
I see a blank page because the blog is hosted with blogger and that's blocked by my firewall.
it will; he allocates and copies strlen()+1 bytes
That is a mind blowing amount of data. Is this all access/error log data, or are there other logs being generated?

If it _were_ access log only, and your log lines average 1KB in length (pretty generous), that's 52m qps. If we take that further and assume each object is 93KB [1] then your outbound traffic is almost 40Tb/s (terabits per second).

So I assume it must be more than just access logging!

1. https://developers.google.com/speed/articles/web-metrics
Wow, this "for (int i = strlen(str); i--;) printf("%c", str[i]);" trick to reverse a string is really cool! Thanks!
It's mentioned in the post that it was weighed down so much that it dropped off the front page almost instantly.
Use the kanban view in Brightpod to store all of this. You can move things around and start conversations. See www.brightpod.com

Good luck!
A system to test blog/forum-comments for spam in real-time: http://blogspam.net/

A list of pubs in Edinburgh: http://edinburgh.io/

A mail client: http://lumail.org/
the toy sharing idea is really nice!
Because you depend on a tool that you're not willing to pay for .. is it so difficult to see that you are being viewed as a bit of a scrooge, given that you will profit greatly from software you don't own and haven't paid for .. ?
I have recently started using ViennaCL (http://viennacl.sourceforge.net/). It has an Boost uBLAS-like interface and has backends for OpenMP, OpenCL, CUDA and uBLAS.

It is in very active development and the community is very nice and helpful.

I think there also doesn't exists something similar, i.e. a lib which can easily do the calculations on both the CPU and the GPU (via OpenCL).
What angst? That post reads more like a warning to others to me - after all, if they'd been aware of this issue from the start, they could've just used Apache from the beginning and avoided the hassle of having to migrate.
This actually makes sense. They're using marketing terminology to be say "walnuts will do this, prevent this, and help you out with this".

If you want to market your product like a drug, you should go through the regular inspection to make sure all your claims are satisfied, just like any other drug.
The problem here is that the for loop in C is a direct generalization of the while loop. In a Pascal-like language like Oberon the bound is only calculated once, so

FOR i := 0 TO Strings.Length(s) - 1 DO
...
END

would be equivalent to

lim := Strings.Length(s) - 1;
WHILE i <= lim DO
...
INC(i)
END
Julian Assange unlikely to be charged in US
If you were making small changes to see what worked in different browsers, rather than editing the CSS or SASS, it may be more beneficial to use the browser's Web Tool to do it live!
A hacker's journey: from cook to chef (13)
Sorry, that wasn't as good of a reference as I thought. Somewhere in the presentation for the paper, the authors mention that they worked with the bitcoin client devs (after publication) to get the notify neighbors on double-spend approach rather than silently ignoring. The result is that the information spreads through the p2p network very quickly and notifies both recipients that they are getting shafted.
A youtube-based jukebox server in dart: https://github.com/rounds/jukebox-mode

We use it at the office to queue songs a chatroom and listen together.
A console so we can share the API data from our Bitcoin asic miner without allowing access to the console.

Soon to have google charts implemented.
A few have commented how, internally to the IP law industry, the district is known to have a lot of specific domain experience with the argument of IP law. I can definitely understand why that would be attractive to patent-holding firms, in the way that Delaware is attractive to large corporations.

Most of us not in the IP industry think a lot of these suits are ridiculous, and it's because we don't make our lives by the reality of how IP law is structured.

These cases are ridiculous because IP law is ridiculous. It's not Marshall, TX's fault that IP law is ridiculous, and these juries very well may be the most knowledgeable jurours out there. That fact is dangerous, however, because this town's specialized experience makes it as if these companies are arguing cases in front of a jury of paralegals instead of representatives of the public, which absolutely will bias results.

Part of the reason we have juries is to balance the law with common sense. Common sense means something different when you're almost as knowledgeable about the law as the lawyers in front of you.
You could try the version without images from Kiwix. I keep it on my MacBook (and also at work) to save Internet trips and for when out and about with no access.

EDIT: Just read further down the comments and noticed the mention of Kiwix, apologies for the duplication.
I'm not much into crypto but I'm pretty sure RC4 has been broken for a very long time now.
The most voted Ruby question on Stack Overflow
This is brilliant! I've been using "refiddle.com" for the last few months and I am blown away by how much better this is.

The only thing I could think of improving is including VB code generation as I tend to use that a lot for scripting MS Office.
Project Unspell
For me, this kind of post means that C language is not any more core basic knowledge. The new generation has selected a new set of core basic knowledge: javascript, html5, python (for teaching of algorithm, not for production), scalability, replication, UX/UI ...
Wouldn't it be easier to include all the original tools in a packaged form instead of reproducing their logic?
I'm enjoying the interesting analogies.

I rather view the internet as a party where everyone is invited. The social networks are the loud attention seekers yelling "look at how cool we are". People are wow'd and sucked in. The problem is, it's a keg party and the only way they've been able to monetize is to sell ads at their party. Once the ads go up, the venue is no longer cool and the party moves to a new venue.

Of course, there are other types of parties and my prediction is that quality is going to trump quantity in future networks. Who wants a keg party that sells advertising when the quality of the people I meet at a cocktail party could lead to new opportunities without advertising?

The next wave will build on social and actually generate real value. Therefore, it'll have a new name and it won't be Social 2.0 It'll be something entirely new that addresses that value.
Troll wins Newegg encryption patent case
Only Love
Dumb Things Finance People Say
What is the variance? skewness?
Copy and paste isn't reliable? I've been using it for a couple of years, never heard of that issue before.
It seems that everyone's forgetting the whole genius thing about C-strings, which is that you can iterate through them without advance knowledge of their length:

char c;
while(c = *(str++))
...

This is, after all, the loop strlen() itself performs.
I recently used DPaint 4 to do some pixel art for an iPhone game I am working on :) Photoshop was just too annoying when working at the pixel level.

I really regret not having made any Amiga games/programs when I was a teenager. I just didn't have the money to buy books or development tools. If I ever had time to work on a project of no consequence, I would probably write an Amiga game in 68000 assembly language, just to say I finally did it.

It's funny. My emulator setup is better than any Amiga I could have owned, and thanks to ebay I now have a complete set of programming manuals that I would have killed for when I was 17
The over-the-top part is where you use the stigma from your story (how nginx spurned you by choosing to charge you for a particular feature, which does not seem fair to you because you need it) to try to get everybody to stop using it, when the issue is simply that it does not suit YOUR needs.
Leads to "How can I write a switch statement in Ruby?"
Lean Startup Experiments
Very interesting article. I work in writing some financial software (consumer facing) and I have never actually read about how the banking system works. Just the other day I was writing some code to make SWIFT transfers.
The movement of air by a speaker is not felt the same way as headphones. Your skin is responsible for picking up some frequencies. For this reason, most gigs have massive subwoofers and line array speaker stacks instead of a plethora of headphones :-)

I am a bass player and I sometimes have to use in-ear-monitoring to stop going deaf, and it isn't the same as hearing the sound from the speaker, particularly if you are counting on the response of the amplifier + speaker combination for sound. Try telling an electric guitarist to use headphones - half of the sound they get is from the combination of amplifier and speaker and the interaction between the two (amplifier sag, speaker cabinet resonance, angle of speakers etc.)
Oh! Okay, this explains a great deal.
I never said we should all use C for everything, I certainly don't :)

But it is what it is, a thing of great power and beauty but highly dangerous in the wrong hands.
I can't tell you the exact study, but you can find it in Kahnemann's Thinking Fast and Slow.
I've been testing Julia on and off for the past few month (rewriting various bits of real world numpy code I've written for work) and I've seen everything from 2 times slowdown to 20 times speedup when compared to numpy. Most of the time I'm not seeing much more than 2 times speedup.
How to Create your Monthly Review + Mind, Body & Productivity
Apache httpd is at version 2.4.7:

http://httpd.apache.org/
The avoidance of controversial topics when talking together is one of those things we Europeans are typically not so good at. I know from many Europeans who like me lived in the US for a while that they had to learn the art of talking without touching controversial subjects. At first it seemed superficial but then I realised that it makes discussions that are not controversial but nevertheless important possible and I came to appreciate it every now and then.

Anyways, it would be nice if we in the settings could apply our own penalizing to subjects that we don't care about or that we find controversial instead of having others decide for us. But that would mean that submissions ranked differently for different users, of couse...
How to automatically build your Pelican blog and publish it to Github Pages
If nginx has no features that set it off feom other servers you could simply switch to Apache which has the syslog feature. But for some reason you do not seem to do this, or am I mistaken?
As an interesting aside…

If someone contributes code for a feature that ends up in the commercial product, are they stuck with the options of paying the annual per license fee, or compiling their own code to get the feature?
I actually prefer the variation:

char c;
for (int i = 0; (c = str[i]) != '\0'; i++)
...loopcontents using c...

this should be faster than all the rest of the implementations as you might break early and you save a memory dereference of every character. in all honesty though, these optimizations are highly unlikely to be the constraining factor on any loop so the question really is moot.
Yeah, and other businesses have the right to conclude that they'd rather use a full-featured open source web server than one that's crippled to create a market for the expensive proprietary version.

Of course, some people in this discussion seem to disagree - I've seen a lot of people acting as though it's somehow unfair to nginx for him to point this out to other potential nginx users or to switch to a different server rather thay paying up. It's like people here think the nginx developers have some right to bait people in with the open source version and then charge vast sums for basic features, and that anyone who isn't onboard with this scheme is greedy.
And I think this perfectly demonstrates why it is a stupid approach to take in the first place. In fact, personally I have a tendency to avoid for-loops in C because of the awful syntax; I much prefer using while-loops as I find them far clearer.

In 25+ years of C, I've seen plenty of people getting for-loops wrong (making broken assumptions about what's evaluated where, and countless off by one bugs), but everyone gets while-loops.

If you are going to do for-loops in C, stick with the most obvious, simplest variants possible - the moment you try to be smart, you've substantially increased the odds that a maintenance programmer will introduce a bug at one point or another.
My guess/intuition was that walking backwards might defeat any memory pre-caching at various layers (CPU, OS).

I wrote this quick-and-dirty code [http://codepad.org/d9ilykxA] to try and test the effect.

To me, it's a little interesting how it various with optimisation level, but I've not picked apart the assembly to see what's going on.

Under gcc 4.8.1, 64bit ubuntu):

-O0 forwards 4.37s, backwards 4.88s (fowards faster)
-O1 forwards 2.67s, backwards 2.66s (same/backwards faster)
-O2 forwards 2.67s, backwards 2.66s (same/backwards faster)
-Os forwards 3.33s, backwards 3.00s (backwards faster)

and the same under clang:

-O0 forwards 3.35s, backwards 4.11s
-O1 forwards 2.67s, backwards 2.67s
-O2 forwards 0.69s, backwards 0.77s
-Os forwards 2.67s, backwards 3.00s

So...it's not as simple as "forwards or backwards always faster", unless the test code is simple enough to be defeated by the optimiser in some cases which real code wouldn't.

Also - what is going on with clang -O2?
Okay, but you say it's cheaper than S3. Which tier is that?
>Yes, it would be like that (though this feature is more trivial and could be worked around, and is not an existing feature, so not exactly the same). That's the way companies make money when they segment their market and have an OS offering and a commercial one. Nothing wrong with that. If you don't like the rules set by the creators, don't use it; write your own software or use other software. If they had retrospectively retired features and put them into the paid version, perhaps he'd have a point, but as far as I'm aware they haven't.

But what they have done is made a pretty basic marketing mistake. They decided to charge for something that has been 'solved' by apache and hundreds of other pieces of software many years ago. People don't want to pay for something that's not new in the field.

>Issuing a call to arms over this is pretty obnoxious behaviour, because it implies the nginx people have done something wrong or antisocial in wanting to be paid for some of their work. How outrageous!

You say that like all approaches to making money are the same and it's disingenuous. How about some document editing software that works for free for 30 days and then encrypts all of your files until you pay up? The developers just want to get paid, right? How outrageous!

>If you don't like the rules set by the creators, don't use it; write your own software or use other software.

That's what he's advocating...

>Ending with the exhortation 'Fork it' sums up his position perfectly - someone else should fork this software, add the features I need, and then continue to work for free for me. He's asking 'Who will pick up the mantle', because clearly it won't be him; he's not a sucker after all.

That's exactly what good open source foundations do. I take it you are unfamiliar with the apache web server project? What about OpenStack? Maybe Linux or Firefox? None of these projects turn to their users to squeeze money out of them to activate basic features.
simple image optimization app: http://www.imgoptimize.com
Vote Now: Who Should Be Time's Person of the Year? Edward Snowden
Great that they are supporting bitcoin but encouraging people to deposit coins to build a balance at namecheap is the wrong way to go about it. Bitcoin's sweet spot is in making payments trivial, no need for a balance held on their servers.

If you want to use bitcoin, you cannot trust third parties to hold your coins for you.
Constness is a really useful concept especially since it has been extended to also mean thread-safe (at least in the standard library), but has a bunch of design flaws that make it very difficult to use correctly.

1. It is not the default. Everything should be const by default and should be marked mutable when necessary. This even seems to be consensus in the committee and has been done for newer language features (lambdas).

2. It is not "deep" when pointers are used. This one is actually inherited by C, but still is really painful. This is fixed in D.

3. const_cast is legal C++ in most circumstances (the only exception being an object declared const). This invalidates most assumptions optimizing compilers could possibly make and takes away a lot of usefulness because there is always someone that is going to const_cast stuff around.

4. It becomes very hard to use with polymorphic types, because const-ness is part of the function signature and affects override behavior. Can you really safely say something about const-ness and thread-safety of all classes you could possibly derive? I often find I cannot and when I really need runtime polymorphism I will usually end up with lots of const-less member function.
Which is great if you're guaranteed to advance one character per loop iteration. Which may or may not hold.
It should be:

Video transcoding in its simplest form.
Ah, I see! Well that's as good of a place to start as any. Good luck in your endeavours.
>No you can always fork.

What are you saying 'no' to? They have a conflict of interest since they are clearly in the business of selling features. It was a statement, and saying 'you can always fork' does not refute that statement.
If you're going to do that, why are you wasting instructions maintaining an offset and adding it to the string pointer on every iteration, instead of just iterating the pointer (or a copy of it) every iteration instead?
Neocities woes
I was looking for a free webhost to throw my portfolio website on, at the same time there appeared on this site an article about the new 'neocities'

I knew it already had disadvantages compared to other free webhosts, like, only one folder for your whole site, no php or server side scripting and few other things.
But it seemed to have coolness cache with the hackers here and I thought for a portfolio site that would be important.
In the comments of that article btw I mentioned 000 webhost which people said was terrible.

So far on neocities, it has been randomly down when I send people a link. And just now my account seems to have dissapeared. All I want to do now is erase my site from there so it doesnt conflict in search results with a new one I'll host somewhere else. We'll see how that goes.

I have had some other sites up on 000webhost for some time, they work fine, I have had no issues at all.
This. How can people that (assumingly) have never supported the NGINX project whine about it needing money to continue developing high quality open source software?
Very simple tool to automatically generate CSS from your Photoshop files
Yes, it seems to me quite ironic (and weird) that the most voted Ruby question on StackOverflow asks for how to write a switch!
Doesn't that sound like a very unhealthy national self censorship?
Hacker News has pretty clear guidelines, and reasonably clear subject matter:

http://ycombinator.com/newsguidelines.html

Although a lot of people are (IMO) intellectually dishonest in what they really consider intellectually gratifying, rather than simply find themselves strongly agreeing with, or angry about. For instance, US immigration/border policies are something that I feel strongly about, but are they interesting from an intellectual point of view? I don't think so, particularly.
It is indeed a challenge. The mediawiki syntax is the weirdest mess I have ever had to parse. There is no spec, real world usage deviates significantly from the help docs, and it's a Turing complete language with heaps of backwards compatibility hacks. So if you have something reasonably complete and correct than kudos to you!
Broken Dreams on the Desktop – Joris Peels at TCT Show
Imagine where we could be if everyone openly shared everything they discovered or invented. Just imagine a world where we co-operated instead of making life harder for one another.
A Letter I Will Probably Send To The FDA on 23andMe
Write one :)
Get real production data into development/staging for Ruby
Deterministic Wallets, Their Advantages and their Understated Flaws
The same thing happened to the American chestnut and various species of Elm. Around 100 years ago, the chestnut was the most common deciduous tree east of the Mississippi. The chestnut blight, an accidentally introduced Asian fungus that causes the bark to fall off, effectively wiped the species out in less than 40 years. Only suckers from ancient root stocks remain. As soon as a stem grows thick enough to support a thick bark, the fungus kills it.

During the second half of the 20th century, the Elm effectively became extinct in the wild, both in Europe and North America, due to the Elm disease.

More recently the Hemlock came under attack from the hemlock woolly adelgid, an accidentally introduced Asian insect. The next generation will not be able to imagine what a mature hemlock looked like.
I was trying to provide a semantically equivalent construct (you might need the current index for some computation). Furthermore, the difference between the two really is negligible. The current solution involves an increment to i, an increment to the pointer, and a dereference whereas the solution you describe only involves an increment to the pointer and a dereference. The difference is an increment to a number, i.e. a single instruction which is probably the fastest instruction in the ISA.
Off topic(since it's not about C/Java), but Python has a long integer type which won't over/underflow unless you run out of memory.

% python

Python 2.7.5 (default, Aug 25 2013, 00:04:04)

[GCC 4.2.1 Compatible Apple LLVM 5.0 (clang-500.0.68)] on darwin

Type "help", "copyright", "credits" or "license" for more information.

>>> i = long(9999999999999999999999999999999)

>>> i

9999999999999999999999999999999L

>>>
Cool map. Edmontonians don't generally like their city referred to as "Deadmonton". However, the nickname rings true on so many levels. Good luck with your move. Is it soon?
I realise this is illustrating something, but just in case:

For the love of all that is good, please don't actually printf() for every character...

Depending on your platform that may or may not result in a ridiculous number of system calls, but no matter what, it will be slow if you do it a lot. If you insist on calling a function for every character (which is still silly), please at least putchar()/putc()/fputc() (putc()/putchar() can expand inline, but even they have substantial overhead to lock the stream)

I've seen systems spend the majority of their time in IO functions because of stuff like that. Always, always, always batch up IO unless you have real reasons not to (and almost always avoid syscalls when you can)