skysight-inc/HackerNews huggingface dataset:
I mean both, though OP addressed C++. And you've proved my point.

Proper use of carefully-written classes will reduce the risk of a buffer overflow -- but you will need to exercise additional vigilance ("Make sure you use STL! Why isn't this code using STL?" etc), over and above addressing the problem, to ensure string safeness is assured.

That's a dead loss that programmers in memory-safe languages simply don't have to pay for the same level of confidence.
Here is another way to refactor that example in JS -

// constructor for the FileInfo class
FileInfo = function(filename) {

function withFile(block) {
var f;
try {
f = File.open(filename, "r");
return block(f);
} finally {
f.close();
}
}

this.mtime = function () {
var mtime = withFile(File.mtime);

if (mtime < new Date() - 1000) {
return "too old";
}

sys.print(mtime);
};

this.body = function () {
return withFile(function (f) { return f.read(); });
};

};

An advantage with this refactoring is that the file handle, which isn't required after getting the mtime, is closed before doing other things.
I wasn't replying to you, and wouldn't have written that reply to you. You wrote a whole chapter of a book about your thoughts on K&R. You obviously read it.

I'm guessing the person I replied to has zero, because people who cavalierly call K&R "dated" and "buggy" probably haven't read it. But Bryce has an interesting background. I could be wrong. Calculated risk. Would love an answer from him.
gVim runs just fine on windows, although I cannot speak for the terminal equivalent.
Rails usually has a request lock so most rails servers end up forking off a number of processes that each only process one request at a time.
I might be mistaken, but I don't think health-services (other than basic ones) are free of charge in China. The same goes for education. What's definitely very "Chinese" is the segregation between the rural poor and the urban population. They're no Sweden, that's for sure.
> Exactly. It's still a fucking Honda, and for the time/money spent on it you should have bought a Lexus.

At the risk of being pedantic, I think you mean Acura (http://en.wikipedia.org/wiki/Acura).
Love And Romance
Avail our Indian Vedic Astrological Services on Love Romance Report, Astro Relationship Reports, Astrology Progeny Report, Zodiac Compatibility Predictions, Astrology Love Predictions, Astro Romance Predictions, Relationship Horosocpe
Noble goal, but the way the chapter is written doesn't really come across that way, in my opinion.
Twitter Hates Google’s New Google+ Integration
Yes, the original UTF-8 spec was much more forgiving. The most recent spec, RFC 3629, restricted the range of code points and made the decoding of invalid sequences a MUST NOT requirement: http://tools.ietf.org/html/rfc3629#section-12
Works the same as on UNIX. No need for cygwin.
Exactly what I came here to say. Correlation does not imply causation: http://en.wikipedia.org/wiki/Correlation_does_not_imply_caus...
Here's my follow-up: The Absolute Minimum Every Software Developer Must Know About Unicode encodings:

Just use UTF-8.
Cost to produce is along the lines of what I expected you to answer, but I don't understand. Am I not to collect a wage as the runner of the business even if I'm not doing production work? Or is that in fact included in the 'cost to produce' and then you have to figure out a wage with no logical reference frame?

And how is a business going to get the capital to start if it can't take in money to pay interest? If that would be allowed you're dangerously close to capitalism.

Also I disagree that your idea is in fact anti-capitalist. Paying people based on the value they provide in exchange would favor giving successful wall-street fund managers hundreds of millions of dollars which seems supremely capitalist. (the business itself being exploitative to externals doesn't really matter here)
The product look great, and piggy-backing on IRC makes a lot sense. However, I wouldn't pay for this, on the basis that the pricing model makes me feel like they assume users are naive (to put it nicely).
Multi-tiered pricing models that work typically offer users incremental value, most often in the form of extra features (that took time to develop), support (that takes time to provide) or hardware/bandwidth resources (that are fixed costs to the company).
In this case however, the incremental value is "number of users". Unless we're talking about hosting video (or other bandwidth-intensive media), the difference in resources needed to host 50 users can't warrant a 10x price difference from that of hosting 5 users.
This is where they lose me (and probably most devs) to the "apt-get" alternative.
IMHO, they should apply a one-price model : 10$ per month, unlimited users. It would better bridge the gap between the DIY option, and the luxury of having someone else do a mostly one-time configuration (and occasional maintenance) for you.
Part of the problem here is that the allocator doesn't need to know how big the crap the pointer is pointing at is; it only needs to know that the crap is smaller thank the chunk it allocated.

If you're going to teach people something unorthodox about C programming, writing custom allocators would probably be a great one. In more than one job I've crushed optimization problems on code written by people way smarter than me simply by knowing to profile allocation and replace malloc.
Eldeco City Lucknow 
Eldeco City Lucknow - Eldeco group launches 1/2/3/4/5 BHK flats in eldeco city at very realistic cost in IIM Road, Lucknow. To get best discount visit us at http://realtystructure.in/eldecocity.php.
Oh, the military dictatorship of 1976 in a political discussion... Argentina's version of Goodwin's law still stands.

The problem with that type of reasoning is that when going 30 years into the past and trying to discuss about a very specific fact, in this case being mass surveillance by state of the art technology, things get really blurry and arguments get bizarre.

While one could argue a modern dictatorship could use current technology to silence its enemies in a more brutal and effective way, another position to take would be that electronic surveillance is easier to evade than actual spies following you or infiltrating your political organization. One could also explore the possibilities that arise by technology being used by the enemies of the dictators. For example, maybe Astiz cover would have been blown by someone in Madres de Plaza de Mayo when discovering his real Facebook profile/online identity.
How did the author connect the number of startups with the safety net and reached the conclusion that the safety net is a good (or a bad) thing?

What if in countries with social safety nets it is much more cheaper to spawn a new extra company than to let your current one grow too big? For example, a country might require a lot less paperwork from companies with less than 10 employees. The same country might require a lot of extra regulation for a company with more than 20 employees. So you might be BETTER OFF WITH 3 companies x 10 employees than with 1 company x 30 employees.

I am curious to know:

(1) what is the ratio of startups that grow beyond the stage of a small company in those contries.

(2) what is the ratio of startups which provide jobs for at least 2 other people besides the owners. I'm willing to bet that in the European ex-communist countries, the vast majority of startups are actually small shops which barelly allow a family to survive (with the only employees being husband and wife).

.

The number of startups as presented in the article doesn't really say much at all and the conclusion really was just pulled out of thin air. One could as well say "Safety nets: ball and chain (You can't grow beyond startup level)" without changing a single word in that article.
Sorry, I haven't read your book, meant to be clear that I was talking in the abstract, but I can see after rereading I wasn't clear enough.
This is something like the holy grail for me.

I am a machine learning research, using the python/scipy/theano stack. One problem performance wise is that I can get my models reasonably fast with Theano--but as soon as I need a python for loop (e.g. by using Theano.scan) performance dies. As soon as you have a couple of nested (e.g. due to a Jacobian matrix instead of vector) performance is virtually gone again.

I'd love to use numpypy, and the way I see it not much is missing.

Keep up the good work! I wish I cold fund you! :/
In which Eben Moglen calls out a reporter for having Facebook
And that is why VisualStudio is considered an IDE rather than an editor. As with the rest of the *nix toolkit, the philosophy with Vi(m) is to do one simple thing (editing) and do it really really well, for better or worse.

I think this exemplifies this: http://vimdoc.sourceforge.net/htmldoc/tips.html#shell-window
You would be causing some nasty security issues with that approach I think.
Exactly - no matter now badwrong the patent, it still takes time and money to go to court, and the kind of people that IBM will be using this patent against don't have that time or that money.
Sure he had fun with the install doc but it looks complete. I would much rather have some snark and complete instructions than an incomplete quick start tutorial.
This is interesting, but doesn't appear to be self-hosting. That is, you can't use Narcissus to compile Narcissus, you have to use SpiderMonkey to run the Narcissus code (that is the impression I get from reading the wiki, anyway, someone correct me if I'm wrong). Still, it is cool that the objects that Narcissus parses in the "user" code are stored exactly the same way in the "host" code.
Hipmunk : Hotel Search
4x4 Car Hire Malindi Airport MYD
THE GREAT SKILL DISPLAYED BY MOBILE APP DEVELOPERS 
There is a lot that you need to do be doing to achieve perfection in the development of mobile applications. The technology is continuously improving and if you do not change with the technology, there are chances that you will be forced out of the industry.
Data Science by AnalyticBridge
The Zen Of Steve Jobs – A Comic Book About The Man
As much as I chuckle at their pricing, I find your suggestion of $10/mo for unlimited users just as appalling. For one, I am always hesitant to promise anything "unlimited." Secondly, I'm not sure if they should even try to go after the dev market if there are bigger fish in the sea.
Good info. I learned this years ago from my great-grandmother. She took a nap every afternoon for 20 to 25 minutes.

Now, living in Chengdu, office workers here are encouraged to nap after lunch time, around 2. At my wife's office, there is a chime followed by soft music twice a day, reminding workers its time for a break to do eye exercise, something they teach or at least used to teach in Chinese elementary school. Many offices in Chengdu also have a tea break around 4 ;)
Why is SQLAlchemy not recommended? Or are you referring to complex and extensive schemas? Having used it in some medium-sized projects with much success, I'm unsure why people seem to be regretting using it..
You are talking about _users_, not developers developing _for_ users.

Op is _developer_.
i do not believe MS is losing market share to OSX in the enterprise. I _might_ believe that MS is losing some marketshare in consumer computing to OSX (especially uni students).
> My argument is that you need a construct you can return from, and a separate construct (a "block") that can be nested in that construct.

And that's not true, you can have a single construct and two different returns (one local and one non-local) instead.
Trying to Raise Money from Silicon Valley while Supporting SOPA?
Ultimate volunteer redistricting geek
High level string libraries are a win.

But you may be overstating your case a bit.

From my codebase/third-party directory on my laptop (a bit random, I admit), from those projects I'd consider "competent C" (ie, not OpenSSL or MRI ruby):

* dovecot uses ASCIIZ strings and libc string functions

* redis uses ASCIIZ strings and libc string functions

* nginx uses a high-level buffered string library

* lcamtuf's skipfish scanner uses ASCIIZ strings and libc string functions

* libevent uses ASCIIZ strings and libc string functions

* qmail uses djb's string library

* memcached uses ASCIIZ strings and libc string functions

It's probably good to be comfortable with both approaches.

I don't know that you actually made this claim, but you seem to have given people here the impression that you believe functions that work with ASCIIZ strings should be bulletproofed to handle non-ASCIIZ inputs. I couldn't agree with that argument, especially as an argument about K&R's code being rusty.

People here are jumpy though (they're commenting, like me, mostly because they're bored).

Looking forward to more examples from the book.
I'm not a regular napper, but whenever I've napped in a busy office, the best approach I've found is to head out to a park, find a shady spot and lie down. Take a towel so you don't get dirty or itchy

Options here are obviously, book a meeting, pretend you're going for a run, out to lunch or a coffee.
Are you sure? If it costs a lot less to manufacture, that extra money gets spent fueling consumption of something else; I don't know what that would be, but I doubt it'd be zero.
To your point about increased government regulation; I had that discussion with someone before regarding keeping government out of Internet. I put it simply as: "If they won't stop outlawing/controlling parts of the Internet, then we need to fight back in outlawing anti-Internet attempts."

Of course, we can educate the populace. That's why I'm trying to educate the population that there are anti-Internet attempts that affect their Internet usage. That they should demand protection from anti-Internet attempts. :D

As for constitutional, the EFF and anti-SOPA groups say it violates 1st amendment. But the anti-Internet supporters counter in it's perfectly legal [0]. I don't know about you, but I'm not going to let it pass and wait around for the supreme courts to interpret it as unconstitutional.

Until the populace understands the importance of Internet (beyond thinking it's just Facebook, etc), Internet Freedom bills will go a long way in stopping anti-Internet attempts by not only researching and discussing Internet Freedom but also preventing anti-Internet attempts.

For the anti-Internet attempts like bills, there's a lot of Door In Face [1] that's allowing compromises leading to more Internet control. Look at the history of the anti-Internet attempts. They are relentless, demanding a mile, and getting an inch every time as 'compromise'.

It should be the opposite for Internet Freedom bill attempts, otherwise we're continuing to slip down the anti-Internet road.

[0] http://arstechnica.com/tech-policy/news/2011/11/at-web-censo...

[1] https://en.wikipedia.org/wiki/Door-in-the-face_technique

Edit: I want to also mention that for whatever reason, USA government seems to be cracking down on Internet Freedom in the world (Ref: Spain). Internet Freedom advocates in government should counter this subterfuge.
Divisional Round match New Orleans Saints vs San Francisco 49ers live.
Bookmarking
we are provided best seo services in the world.
Interesting .. thanks!
So has anyone ever been a die-hard vim user, been absolutely seduced by Emacs and the wealth of things that go with it (IRC? Org mode? Holy crap!), tried to use it, and been completely turned off by the abundance of control keys?

This describes me. I really, really want to like Emacs and learn to use it, but coming from vim, such heavy use of the meta keys just feels wrong.
Exactly. Just vague rambling about how it's so great and different. The links are interesting, though.
Drupal actually has a different paradigm than what most other CMSes atleast pretend at - PAC (http://www.garfieldtech.com/blog/mvc-vs-pac)

The fact that modules break, etc. imho is a Good Thing - in following the rule of "failing fast". Since, you dont need to change/hack the drupal core to do anything complex, if a module is breaking it is typically highlighting incompatibilities with other modules (99.99% of the time). Giving a white screen on module install is exactly the right time to have it happen, rather than 1 month later, when it goes live.

I completely agree with you on the admin UI part - I had just two main peeves with Drupal 6: Postgres support, which got fixed in Drupal 7 and admin UI, which is not yet done.
I also wish that they provide a couple of starter "installation profiles" - blog, wiki, corporate, etc. - enabling a quick start for 99% of the population.
Raheja Revanta
Raheja Revanta Gurgaon launched by Raheja Group it’s a residential project located in the most modern or millennium city in Gurgaon at sector 78.
I consider the STL to be (essentially) part of the language, hence to program without it, isn't really programming C++ anymore. This is especially true since the introduction of C++11, where the STL enables many language features.

Essentially a string is std::string, a resiable buffer is std::vector<unsigned char>, and for a string or a resiable (or unknown size) buffer to be anything else you need to provide a very good reason.

I would also be careful with Ruby since a lot of (performance specific) gems and plugins for Rails are written in C, and hence potentially suffer the same problems that one is trying to avoid by using Ruby. Or at least you end up in the same boat if you were using C or C++ to begin with.
You sound like you have confirmation bias, and your whole point seems to be to adhere to the status quo.

The notion that an engineer's ability can be discerned by willingness and comfort at a whiteboard is utterly ridiculous.
Convore is very much the same in that aspect. I've always thought it was one of the most well designed websites I have ever seen, and constantly look to it for inspiration when approaching my own unique design issues. They do such a great job of keeping things as you said, super simple, and cleanly designed.

Congrats on the Pivot folks, hope things go well for you.
Schmidt: Google+ Not Favored, Happy To Talk Twitter & Facebook Integration
New software -magento template
Magento specialist plays crucial role in the completion of the important work. They work in such a w ay that they offer flexibility, stability and accessibility, scalability in ecommerce platform. For more information visit at 2ezasia.com
http://news.ycombinator.com/item?id=3449294
Can an Internet archive be implemented as a voluntary p2p system?
The internet archive project (archive.org) is a very important and useful effort to preserve human knowledge. It seems like a p2p system where volunteers donate harddisk space and bandwidth to store a similar archive could have more redundancy and damage resistance (by not being a single point of failure), as well as being cheaper. Most people have a fair bit of spare disk space, and the program could dynamically resize if anything else needed the space. For dec 2010 archive.org was 5.8 petabytes. A trivial search didn't find information on recent sizes. With a factor of 3 redundancy, this would be 174000 people donating 100 gigabytes. This may be ambitious, but initially the project could just store text. What problems would this have. Do you think it has any potential.
The Two Most Important Algorithms in Predictive Modeling Today
Once enough time passes, HN explicitly allows duplicates.
I just remembered that Unicorn actually has an option for out-of-band garbage collection. It works best when you're at < 50% CPU utilization, and improves response times with a possible overall performance decrease.

http://unicorn.bogomips.org/Unicorn/OobGC.html
Sexy Girls with Tatoos
To put the seriousness of this into perspective for the average HN reader:

Short version:

No one in Argentina trusts the police

If what the EFF is writing about comes to pass, every single despicable and ill intended individual in this country is going to have all biometrical data about any citizen he wants at his fingertips. This includes banks, drug dealers, telemarketers, and angry ex-husbands/wives.

Long version:

The police in Argentina is usually a completely corrupted institution, at the mercy of whatever drug lord, human trafficking organization, or powerful family that needs its service. This has been a problem since democracy returned to Argentina about 30 years ago, even with governments massively winning elections and having a really tight control of the whole executive and legislative branch of Argentina's federal government. This corrupt structure survived many purges and reforms announced and carried on by the executive branch of the federal government, and also the government of many provinces... even when those purges are continually announced in elections and in the usual political-propaganda-spaces as the end-all crime fighting solution.

This goes to the extent that Cristina is not even relying on the police for the custody of some of the key infrastructure of the country. For example, its common for protected witnesses in criminal investigations about human trafficking to be under custody of the gendarmerie, because of the obvious police involvement in those type of crimes.

Now, pressured by a (measurable but between the norm) increase in violent crimes, that is as usual blown out of proportion by the press, they are going to give the federal police access to huge amounts of biometrical data.
In the case of me hiring my replacement, yes.
I know what an rf remote is, but this is what the article says:

> The simply-titled HDMI Dongle is effectively an entire system on a chip dongle (and yeah, it looks a lot like Roku's Streaming Stick), boasting a Cortex-A9, between 256MB and 1GB of RAM, inbuilt WiFi / Bluetooth, an NFC module and even an accelerometer.

It explicitly states that the HDMI Dongle contains an accelerometer. It sounds likely at this point that the article is just flat-out wrong, but that's clearly what it states.
Devil Inside movie
Devil Inside movie
A young woman learns that her mother committed multiple murders while undergoing an exorcim
Your solution is more like VNC, where backbone solution is more like X11. Both can live side by side and used in different situations.
And something I only realized recently is that you can _still_ get the Java-style return (block-local return) with the "next" keyword. I used it all the time, but just never thought of it like that. You can use "next" in blocks that aren't iterators.
How I generate daily stock portfolio tweets
Survey: U.S. Protestant pastors reject evolution, split on Earth's age
No offense, but Reddit going dark will affect only us. No one else will even notice. If something like Wikipedia goes dark, that would be something. Everyone will be forced to take notice.
Speaking as someone who doesn't know C, hasn't read K&R, but who (usually!) has decent reading comprehension, it _does_ come across this way.

He's completely explicit about what he's doing and why. I don't understand how people can read that and still feel that he's being unfair.

Maybe I'm just too literal-minded.
Personally I could care less about whether they were a charity, or for profit. At this price level, they are an order of magnitude cheaper than competing SoC solutions, and there is an ocean of opportunity for uses of systems like this where it wouldn't have even been close to economically feasible before.

I would actually prefer this company to be FOR-PROFIT, so they have an economic incentive to continue increasing the performance per dollar. I am afraid this will be a one-off product that eventually dies off because there's no incentive to innovate further.
Yep, but I managed with viper and vimpulse [1] which give vim bindings in emacs. You can have your cake and eat it too :)

[1] http://www.emacswiki.org/emacs-es/Vimpulse
Sure, there is coercion. Note that I only said that there is no (for lack of a better word) external coercion. You might also call it open or explicit, I'm not sure, I'm not really happy about any of those words.

What's not there, however, is any “threat of force” and that is what I was responding to.