skysight-inc/HackerNews huggingface dataset:
Ask HN: When did fflush got defined for stdin as well?
Today I checked the man for fflush and this surprised me:

For output streams, fflush() forces a write of all user-space buffered data for the given output or update stream via the stream's underly
ing write function. For input streams, fflush() discards any buffered data that has been fetched from the underlying file, but has not
been by the application. The open status of the stream is unaffected.

I remember it very clearly fflush was defined only for output streams.

I looked at my copy of K&R and K&R defines it as such:

int fflush(FILE *stream)
On an output stream, fflush causes any buffered but unwritten data to be written; on
an input stream, the effect is undefined. It returns EOF for a write error, and zero
otherwise. fflush(NULL) flushes all output streams.

When did the change happen?
Execnet: execution across Python interpreters, versions, platforms, & networks
DNS Cache poisoning used in Brazilian Phish Attack
No phish email, the DNS entry in caching resolvers led the victims to the phish web site.
The configuration I've seen is to have not only guest accounts but also to have guest computers which are on a separate IP range, same with the guest wireless network. The important issue is actually what do the details of your license agreement say regarding guest users. Some state universities will actually request for this to specifically allowed since in many states it's considered, even if unofficially, a right of tax payers to have access if they need it
Hope they get more than a slap on the wrist.
> Anything an artist touches or otherwise considers qualifies as art.

Not literally, but that's the general gist of it. It all depends on context.

> I am threatened with the prospect that my own art is inevitably infringing on countless copyrights.

Look. If you are an artist, not only do you infringe on countless "copyrights" (have to use quotation marks because I am not talking about literal copyright), but many other artists also infringe on yours. There.

EDIT: Have to expand a bit on copyright. The reason I wasn't talking about copyright in a literal way is because art has its own system for dealing with "copyright" infringement (actually a superior one, one that is closer to how free market works than to how law works), distinct from legal action. Legal action usually only comes in when (a) there is significant money involved, (b) when hard evidence could be readily used, and (c) when dealing with low-end and mass markets such as popular photography. Hard evidence in art is usually very difficult to come by (as you might have gathered from my "appeal to own authority" response). The system for dealing with copying is simply that when a work is labeled derivative by a large enough number of people in-the-know, its value in the high-end market evaporates. Most other spheres (e.g. tangible goods market) don't have such system in place and therefore have to rely on the legal concept of copyright.

ANOTHER EDIT: Seems like you are a kernel hacker, so my hat is off to you. Just want to let you know that the concepts we are talking about in art do not translate well into software (derivative software is still useful, often more so than what it was derived from, while unoriginal art is just that).
I don't imagine that the sentencing any of the Lulz peeps get will make up for the harm they've inflicted.
That was exactly my point. Just because the Terms of Service of some place says something doesn't make doing that action illegal. The cops won't come to enforce someone's terms of service.
None, I'm just saying that nothing in Javascript other than its ubiquity makes it particularly suitable for this.
alibaba.com and globalsources.com

As others have stated, choose a product and own that niche. There are alot of scammers and quality will vary significantly until you find a supplier you can build a good relationship with.
Process always falls down at some point, it's why we have bugs in the first place. The point of view that "obvious bugs should never happen" is pretty obviously broken, you just try to make them as rare as humanly possible. Besides, simple looking things from the outside can be maddeningly complex from the inside - for all we know this could be related to an obscure bug in their test framework marking it as passed when it isn't.

Most of the time when people say "what a stupid mistake" they mean "that's a mistake I haven't made yet"
Its excellent for in-place-non-active-at-the-start content; specially useful for images.

For example: Lets pretend you are really interested in having as few requests to the server as possible. And lets pretend you have a huge multi-content gallery (images, flash, video, etc).

So, you want a nice javascript pagination for all that; but if you just hide the pages it is gonna get loaded on the user browser, and the page is gonna get really slow.

But, if the content is inside comments the user machine only loads it when the user actually ask for it. It feels ajax-like but a little bit faster and with less petitions to the server.

Here is a script that does a little bit of that
http://jsbin.com/ihepuz/2
Oracle introduces it's own JavaScript implementation
This is just great!

Edit: Just saw you made it a bookmarlet. Now I just have to hope that Google Chrome will also understand coffescript on its console.
Wall Street: Apple earnings 'nothing short of a blowout' after record quarter
Not trying to be negative, as I haven't used elementary for any real amount of time yet, but: whenever I glance at the 'e' icon it reminds me of a negative action sign. Like a 'No right turn' road sign, or something similar. Not a problem once you're used to it, I suppose.
Is that an argument for doing googling over https? Or maybe trying to get first usage of the new secured DNS (I apologize I am off-news and don't know how that will be working...)?
Click on the link of the comment you want to forward:

http://news.ycombinator.com/item?id=2782258
The success of JS is the strongest case for the worse-is-better argument that I can think of.
"Why I will never pursue cheating again" post taken down
There Can Be Too Many Suckers at the Table
Sorry, i love it... but someday i am gonna put the option to hide it.
You mean DNSSEC? That would protect against cache poisoning but not certain it applies here.
IANAL, but I would guess that the actual text of the statute in question extends beyond things that you or I would normally consider "damage." The names given to legal codes are necessarily concise, and therefore sometimes don't fully describe the contents of the code in question.
This is a pretty amateurish mistake, actually, and I'm shocked that it was in production at Google. Proper authorization checks are web programming 101.
I've had nothing but great experiences from the Justin.tv/Twitch.tv team regarding their tech. NASL and Dreamhack both just had fairly crappy streaming setups and equipment, in my opinion.
I already reduced the height of the iPhone and the page as a whole, bringing the "start creating Displayables now" closer to the top.(down to 2 screens from 4).

Still working on the live HTML 5 demo. After that I'll work on decreasing the support friction.
one odd thing about the video is it should be 7+ mins long, but shows up in YouTube as 5:36 or something. Trick: Watch in 480 mode, and it keeps playing to the full length :-S

You gotta keep watching so you don't miss some more big news events like Osama's death !
I still think text entry on tablets is a pretty big problem. I often find myself swapping out my iPad for my laptop when browsing because I wan't to add a comment to a thread somewhere or quickly copy & paste something to email to a friend. I'm 100x faster on a real keyboard. I also much prefer the quick multi-context browsing experience of a real multi-tabbed browser to anything available on the iPad, which for me is increasingly relegated to e-reader status. I may very well turn out to be in the minority though.

But as much as I disagree with a lot of Apple's recent business practices I do have to give them credit for having an uncanny knack for placing the right bets on new technology.
This bug could have been exploited for millions of dollars. Imagine giving a mafia boss control over the heartbeat of every rival. One blackhat SEO could have dominated any number of lucrative keywords.

If this bug has existed for a long time it's quite possible some guy is sailing around on a yacht that this bug paid for.

It's such a blindingly obvious bug that I really do wonder whether this might have been a backdoor/inside job by an employee. Google should very closely inspect the code change history.

Hopefully they also maintain a history of all page removal requests to see who might have been exploiting this.
Without rules, nothing can be accomplished 
Nowadays all people in the world talk about the new company culture that emphasizes less control, more freedom, letting people manage themselves, as a way of engaging a team. Fewer and fewer people are emphasizing the rules. It seems like they are outdated, and that you can go very well without rules. I have been there, but I went even further and tried to let my team go without any routine. I didn’t require them to work during normal office hours, or even to come to the office. Doing things without a plan or any milestones. I just focused on the work they generated for me. You get the idea. We tested it on ourselves to the extreme.
I don't imagine that any of the harm they've inflicted will offset the dozens of major corporations that are finally getting their security together.
I'm not sure that makes sense. Let's say, hypothetically, the Europe and Asia have a tax rate of 99%. We offer a tax rate to foreign companies of 2%, to make it obviously worthwhile to funnel their money through the US. At the same time, we tax US companies at 98%. This makes sense because it maximizes revenue -- US companies aren't going to go abroad, and everyone else in the world will want to give us 2% of their money. Epic win.

I doubt the real world works like this, though.
All the major players in the mobile space are suing each other.

http://thenextweb.com/mobile/2010/10/08/whos-suing-whom-in-m...
Chalk me up as one of those 3gs owners. I was originally waiting for the white iphone 4, but, well by the time April rolled around there didn't seem like much reason to bother with it anymore.
Failure is the best way to learn! I know because I do so much of it!

And bonus if it's someone else's failure.
Your SOLUTION is Not My PROBLEM
> inquisitive, intellectual, creative atmosphere generated by all those christians

Are you thinking of the same reddit? It's a web site of funny videos, pictures of cats, rage comics, memes, and stupid jokes, and the occasional groupthink. 18 of the 25 front page links are imgur. Of the remaining 7, four are dumb discussions on reddit. One is a news article about the reddit founder (random crime story; otherwise uninteresting). One is a news link on youtube of actual news (if somewhat biased), and one is a link to an interesting study. Depending on how you count, that's 4-8% useful content. When you get into comments, it's even dumber.

reddit had a community of inquisitive, intellectual, creative individuals when it was formed at Harvard. Over time, the idiots and the bigots moved in, and right now it's a web site for wasting time on stupid amusements.

I was listening to right wing talk radio on a long car drive a few months back. What struct me was that the host, who mostly spewed venomous lies, would constantly refer to his viewers by some term (I forget the exact wording) like "the best and the brightest." I feel like reddit users are the left-wing equivalent of that. Clueless groupthink, combined with a very high opinion of themselves.

As an atheist, you're also free to move to a different country if Christianity bother you. US is 76.8% Christian. China is officially atheist. The only reason you're interested in this country is because it was founded on the Puritan work ethic, and has a very high level of social capital coming from Judeochristian values. But you shouldn't stay here and bitch about it. Same thing with blacks trying to go to the (better) white schools in the South prior to Brown vs. Board of Education -- they had their own place where they'd be accepted. Have fun with that logic.

Bigotry doesn't belong anywhere, even if people are free to leave. Intolerance hurts atheists more than it does Christians, and you're an idiot for endorsing it.
All the major LulzSec players have been tweeting all day. I'm doubtful that they caught any big fish.
Speaking as a shareholder, I'd rather keep that money on hand. I'll take a huge cushion of R&D/M&A money over dividends.
A redditor over at /r/netsec has posted about having an issue like this:

http://www.reddit.com/r/netsec/comments/iu6in/has_anyone_enc...
Patents Are Very Valuable, Tech Giants Discover (Nathan Myhrvold)
I agree! I also favor government giving its largesse back to the actual owners, in any format. Here, "The city is offering real estate on Governors Island, Roosevelt Island or at the Brooklyn Navy Yard at virtually no cost..." I hope it works! Those areas are a little off the beaten path. Roosevelt Island is very interesting because it is very close to NYC.
Working in Sprints: The secret to Remote Entrepreneurship and Ultra Mobility
As always past performance is not an indicator of future performance.
If you're thinking about playing poker for profit in the US, you should do it in a casino licensed to accept your bets, and you should report your income. We're dealing in bitcoin, but that doesn't mean we are ignorant of or unyielding to local law. Taking bets from the US is just not a winning strategy these days, and we have no intention of doing so.
Well technically it is available for small to midsize companies. There a number of websites that market these plans, but usually they're pretty sketchy haha. As an example, "www.escapeartist.com" are what's usually available openly.

Most tax professionals that are capable will provide these tax plans to their clients, but they'll do so quietly because its not something you'd want to advertise and also people generally dont like it when they find out you've gone "offshore" and etc.
Imagine if LulzSec found this first
hm. yeah, probably.
The purpose of an MVP is to quit screwing around with maybes and some-days and get moving.

Also, expanding is often not so good a thing as refining. It's usually better to have one or two features which are well-refined versus a great many features which aren't well-integrated and which you lack the resources to support.
Some ideas for the bitcoin inclined entrepreneur:

- bitpal : just like paypal, send bitcoins to friends
- bitcard: like mastercard, online purchases with bitcoins
- bitbank: a bank for your bitcoins, with interest
- bitshop: like amazon, buy stuff online
- bitbay : like ebay, auctions and more

Plenty of stuff to do and strike gold if bitcoin really takes off. Of all, casino and porn are the real winners, as usual.
As a hacker, I think this would solve a lot of problems in the world. ;p
Nah. It should only be illegal if normal people can't do it. Most of what Aaron did is stuff lots of people do.

There's a difference between wearing a dummy badge that says "I am Gary Host", a badge that incorrectly says "I am Bill Gates" (as that would be some kind of identity theft) and forging a passport in "Gary Host"'s name. What aaronsw did was far closer to the first.

Now, you could argue that scripts are power tools, and using them requires a higher standard of behavior. If you are driving a plane, giving dummy credentials over the radio is a lot more serious than a kid with a toy CV radio.

Even then, the dummy credentials didn't really cause any damage. The damage was done by the script itself. Even if he used his real name, the damage would have been done.
It may seem that this is unrelated to Lulzsec but why do you think the feds have a fire under their ass these days?

Fun fact: a large portion of computer-related busts happen when the Feds catch some low hanging fruit, lean on them, then roll up their accomplices.

Step 1, acquire low-hanging fruit. Check....
Yup, I have a number of Swedish friends. When I mention "That guy [Kamprad] is a crook" they all say "But he [IKEA] has done so much for the economy and providing jobs for Sweden."
DDOS is indeed normally conducted by botnets; however, Anonymous uses a tool called LOIC‡ to carry out DDOS attacks.

Unlike a normal DDOS attack, people actively coordinate the attack (ie: it's not automated), and apparently, do so from their own systems.

I suspect a lot of the people who participate either aren't aware of the technical particulars, figure they'll be masked by large amounts of traffic, or just don't care.

‡ http://en.wikipedia.org/wiki/LOIC
Actually, what I was saying amounts to using github as an agnostic data store, and doing the actual work on the clients. So, yeah, most of the usefulness of github goes away and you can just use pretty much any file hosting service.
It's not a back door, it's an abuse of an existing approach.

Google could weight the process in one of two ways:

1. in favour of the complaint-maker.
2. in favour of the website-owner.

If they favour the complainant, then website deletion is presumed to go ahead. If the webmaster, then it is presumed to be held up.

Google chose a compromise: the complaint is acted on, after a delay. The webmaster gets notified through webmaster tools; after some period of time the removal goes ahead.

If Google flip the compromise around, they will make it nigh impossible to remove any websites from the index.
I'd venture that Sony stores are only still around in the US out of some kind of corporate machismo. I can't imagine they're making enough money to be worth it.
This is bad a joke - not only the classes and methods but the individual instances have statically generated names. That means in the examples, for the statically generated "one", "two" and "three" there's no way to assign them to another variable, or pass them as arguments to a function.
Read further down in your manpage:

CONFORMING TO
C89, C99, POSIX.1-2001, POSIX.1-2008.

The standards do not specify the behavior for input streams. Most other implementations behave the same as Linux.
Actually, making it easy to exploit loopholes is probably a good way to ensure that they are closed. (Possibly leaving more subtle ones open...)
If you make a checklist of security practices the QA testers should look for, they'd see and check off "proper authorization checks", as they were done on other fields of the same page. If you can't imagine a professional making this mistake, your mental image of an engineer is not realistic. Humans are not that perfect, and this mistake does not make everyone that reviewed this code an amateur.
Anonymous shut down Ringleaders brought to justice [NOT]
Yes, please. Rain down the multi-colored legion upon their heads.
I worked at a startup that was a financial account aggregator, and helped build the technology behind it, though we targeted a different market than Mint etc target.

I can answer questions but it takes a hell of a lot of engineering to build something to even support 50-100 institutions. There are just tons of barriers technically.

I think your best bet would be to license data from an existing provider and build out your own support as you go along.
Quoting Spolky regarding bugs and bug fixes? He has a horse in the game, I wouldn't quote him for anything bug-related.

Regarding bugs: a fast thinker always thinks about the consequences of checking in any code. Checking in code, not to mention releasing it, changes the word (in a very minor way but it still does). Not exploring the possible consequences and the alternative options is just negligence and/or lack of experience. You don't have to be a perfectionist to see this, you just have to be fast: finding a wise, balanced solution quickly every time you change the world.
welcometo: http://www.fullmalls.com
The website wholesale for many kinds of fashion shoes, like the

nike,jordan,prada,, also including the jeans,shirts,bags,hat and

the decorations. All the products are free shipping, and the the

price is competitive, and also can accept the paypal payment.,after

the payment, can ship within short time.
free shippingcompetitive priceany size availableaccept the paypal
===== http://www.fullmalls.com =====

jordan shoes $32nike shox $32Christan Audigier bikini $23
Ed Hardy Bikini $23Smful short_t-shirt_woman $15ed hardy

short_tank_woman $16Sandal $32christian loubo utin $80
Sunglass $15
COACH_Necklace $27handbag $33AF tank woman
$17puma slipper woman $30

===== http://www.fullmalls.com =====

===== http://www.fullmalls.com =====

===== http://www.fullmalls.com =====

===== http://www.fullmalls.com =====

===== http://www.fullmalls.com =====
Ask HN: How do you organize/manage your bookmarks?
I'm starting a couple of new projects and have bookmarks all over the place -- is there some tool that you use that's totally kick-ass? I'm currently bookmarking things in my browser and/or Google Bookmarks.

Edit: More specifically, I'm looking for help with managing large numbers of bookmarks -- or maybe just help with a bad memory. ;)
To expand a bit: this is obviously heavily inspired by Mac OS X (that's being generous). Imitation is fine, but it's much better when it expands upon the ideas that it's borrowed. This doesn't do that. So outside of giving linux a nicer aesthetic, what does this offer?
Send hand written mails to your buddies Snail Mail My Email.
But would it be news if three boys had won the science fair? When we get to the day when the fact that 'girls actually can do science!' isn't news - when the name of the headline isn't 'Girls sweep at Google Science Fair' but instead 'Innovative inventions' or something along those lines - then you'd have more of a valid point.
iPad revenue exceeded Macintosh revenue last quarter, even while Macintosh revenue rose 14% year over year.
Takes about 4 seconds to change it to whatever icon you want..
The problem are a lack of cultural and social codes that honestly confront the demarcation between utility and perception in the real world.Everyone who's ever done anything meaningful understands the psychology of bending rules and riding the wave of peoples subjective assumptions, but confronting these kinds of things in a responsible way is still kind of taboo; unless you're a flat out (machiavellian) brat. Those people simply don't give a shit either way :)

I loved reading how the author has come to the conclusion that the best action is to simply make assignments where cheating is pointless. Sad his blog got taken down.

cached

http://webcache.googleusercontent.com/search?q=cache:zlciYW0...
Yet Another Google PageRank Update: Google is Coming to Senses?
Oh, oh, oh, oh, oh! Inside html comments. Exactly like the article says!

For some reason, when I read it the first time, my brain would not allow me to see "comment" as anything but the kind of comment that a visitor would write on a blog.

Although I must say your explanation was much more clear than the article.

Thanks so very much. :)
The next release should also include their own shell called Pantheon/Pantheon-Shell. It features their top bar, Wingpanel, their Unity/Gnome3 style dash called Slingshot, and their own fork of Docky called Plank.

https://launchpad.net/~elementaryart/+archive/elementary-dev
16 Arrested as F.B.I. Hits the Hacking Group Anonymous
Flickr costs 24.95/year for a pro account, giving you unlimited storage, sets, collections, stats and no ads. So I don't think the analogy really works.
When will you allow sellers from Malaysia, Indonesia and Singapore?
Would google exist if not for investments in education and r&d made by US taxpayers over the past 50 years?