skysight-inc/HackerNews huggingface dataset:
sir assembly at the first year would scare away people from majoring in EE or CS. I think C is much better than asm to start with. But if they want student can be given a choice to learn asm as a elective in the first year. A choice bases credit system comes real handy in such a situation.Also we can have the same course taught in asm and C and students can be given a choice to learn which ever they want. So we would have to conduct fewer separate classes if the course focus is on the theory of computation.
This is a good list for developers new to PHP. Most lists that target that group tend to have a lot of outdated, wrong information; optimizations that were important for PHP4 but irrelevant today.

This one seems to skirt that.

One change I would make is to use the very effective Filter Input library to check an email address before you check it's DNS record. It would prevent a costly DNS hit if the email address is just gibberish.

Edit: For the criticism below (and unexplicable down-mods), take note that I didn't say this is a good list for new developers. I said this is a good list for developers new to PHP
Interview: Arch Linux Team
A tangent: some elevators in Israel have special programming that causes them to open their doors automatically on every floor during the Sabbath (and Yom Kippur). That way you can get up and downstairs without ever having to push a button.
I've been running an HN meetup called Hackers and Founders meetup ( http://hackersandfounders.com ) in Silicon Valley for over a year and a half. I've seen hundreds of hackers/founders come and go in the last 20 months. I've also seen a number of people trying to sell consulting services to them.

My best guess is that it would be an 80/20 split. 80% of the members of Hackers and Founders would shy away from what you're offering. If you've been in the Valley for any length of time, and do basic networking, you're going to get to know people with ties to investors. Off the top of my head, I could think of 20 people that I'd go to for advice and introductions if I were looking for investor money right now, and they'd point me in the right direction. Most of my members might talk to you, but they'd be pretty leery of selling a stake in their corporation before they know you. I've found that the early stage founders I hang out with at Hackers and Founders tend to mistrust 2 types of people: 1) Pure business guys looking for technical co founders and 2) Money guys offering to help them out in exchange for a piece of the pie.

I could be wrong, but I'd think that the 20% of founders that would be most eager to take you up on your offer would be the most desperate of the bunch. I think that by pitching yourself primarily as a guy who helps people get through the funding pipeline, you're going to be selecting for the wrong type of founders. I can imagine that founders who aren't in the Valley might be more eager to take you up on your services, as well. There's a much bigger separation between founder and investor in other parts of the country and world, and those people need quite a bit more help in the funding department.

What has really helped the guys at Hackers and Founders are people who are available to be a friend throughout the process. Generally when the founders pursue the funding process, they turn to their friends who helped them early on, and if those friends have enough experience, those friends become board members (and at times get equity).

One of my members in particular has been phenomenal at that. He has a resume similar to yours, and he just hangs out with early stage founders for love of the game. He talks freely, shares his experiences and advice freely, takes people out to coffee all the time, and when founders are looking for fund raising advice, he's the first person they turn to.

What's in it for him, is that he gets to interact with hundreds of entrepreneurs and he can pick and choose the best of them to hook up with and work along side of. But, the teams that he signs up with trust him implicitly, because they've been getting advice from them for a while.

If you have other questions, feel free to ping me. I'd be happy to talk about it.
No, not at all. Worse, Google is a public company, toiling under the requirement (by law no less) to ever increase share holder value. If Google found itself as the main (or sole) player in the cell market there would be a very obvious way to dramatically increase share holder value. And if they play the game properly they will also use this time of dominance to set up so many blocks to market entry that no one will be able to easily do anything about it.
Have you ever seen better code for swapping two variables’ values !?

Actually yeah. Ways that people reading the code would recognize right away.

I'm not sure if that's intuitive for someone who codes in PHP, but if it belongs in a "PHP Tricks" article then it doesn't sound like the best way to do it.
I submitted this article an hour ago, but then deleted it the author hadn't made it public yet. He's since agreed that it can be reposted.
A pretty good point against Google is their user support which isn't that good. I've never been in contact with them personally but I've read a fair amount of complaints. Especially with adwords it's hard to get a fair response from Google.
Demand Media: Algorithmically driven publishing
I don't think that's true. Google's multi-class stock system makes them less subject to the immediate whims of the shareholders. Google's main strategy now is to make the internet better. Anything that improves the internet makes them more money. Cell phones are the internet. So if Google improves the cell phone marketplace, they make more money. Google taking advantage of a cell phone monopoly is unlikely if it takes away value from consumers.
These and other obvious mistakes show the author does not understand the fundamentals of the information age. While old media produces sequel after unoriginal sequel of movies, and clone musicians to push on us, the information age has spawned a new age of creativity. The incumbents can no longer keep down the truly creative because distribution costs have gone down so much.
The internet has saved culture from monotone salvages of the old media, and sparked creativity in the new.
The article overlooked something that I think is important: Israelis have a culture that fosters a strong competitive spirit. However, it's not the sort of competitive spirit that encourages lone-wolf style thinking - they're excellent team players.

I think that a lot of the traits that you get from living in a place that requires you to always be ready to fight like hell for survival leak into everything else.
Until the next Google?
regulation outside the US may not apply here but this is not how the law works in the EU, which deals with the data itself rather than just identification.

not too long ago I compelled a telco who had pissed me off to send me a 200 page dump of all the data they had about me and subsequently delete all of it, using the legal system after they had initially refused.
I can never tell how much of a given Register article is prescient contrarianism and how much is straight trolling.
I disagree, I think this kind of list is another reason why new developers write poor PHP code. For example, as you highlight, there's no mention of checking to see if the string is an email address before taking the DNS hit.

Then number 1: what's the point of having a long string stored in the database if it's compressed? Either put it there so you can search with it or store it on the local filesystem.

5. Why on earth should we be encouraging people to write code like this?

6. The same point, and even the list's author doesn't know what's going on here. He's using variable variables, e.g.

$cow = "ermintrude";
$dog = "wuffles";

$animal = "cow";

echo $$animal; //outputs ermintrude
echo ${"dog"}; //output wuffles

As I say, new developers don't need these features and shouldn't be using them. For that matter, I don't think any developer should be using the features I mention above: am I wrong?
Why not eat them? We're not burning cows for fuel are we. Eating the bunnies instead of other meat would save more energy than burning them.
Closer look at IIScan - Traces a web scan leaves in your logs
Banish Approach Anxiety and Make the Sale
Yeah, it's a little over the top. I don't like how articles like this always fail to put forward the theory that maybe Google did the N1 to avoid Windows Mobile's fate by creating an in-production reference platform that commits them to backwards compatibility. It probably won't prevent further fragmentation, but it's worth a shot.

Also, it's not Google's fault that the other Android devices suck ass.
What would a computer engineer Barbie look like?
Danish people tend to be confrontational. At least that's the impression I got when I lived there. Such a cartoon could only come from Denmark. It's offensive and distasteful, and the author should have kept in mind that insulting 1 billion people is a bad idea. His mistake.

However, what I do know is that Westerners in Muslim countries tend to play by the local rules (I am not talking of the U.S. Military in Iraq). By contrast, many Muslims in Western Europe refuse to accept the European culture. Is there racism a part of the problem? Yes, sure it is. But there's more to it: if you reject the local culture, the locals will reject you. Of course, the same goes for Westerners living in Muslim countries. A difference is that Westerners in Muslim countries are not at the bottom of the barrel as often as Muslims in the West are.

In my view it's as simple as this: adapt to our customs, or move back to where you came from. We, Europeans, do not like Muslim foreigners telling us that our women are whores, that we are spiritually dead, that we should not drink, etc. I know a bunch of Muslims living in Europe and, not surprisingly, the ones who are fully integrated in their host society and who have Western friends are the ones who accept the local culture and don't try to preach that their values are any better.
2. You can check if a email is valid by the checkdnsrr() function. It checks the email’s host address if it’s a valid DNS record.

Should this function really be used for email validation?

5. Easily unpack numeric arrays using the well-know function list
<snip>
Have you ever seen better code for swapping two variables’ values !?

Yes, try Python:
a, b = b, a
As a first couple of notes:

1. You can gzip strings before storing them in a DB

But many modern Databases/Filesystems have the built in ability to achieve the same effect - but faster and more transparently.

2. Verify an email’s host address is a valid DNS record.

True, you can. But what's the point? I see two possibilities - either you want to guarantee an address is legit or you don't. If you want a guarantee this doesn't get you anything (you'll still have to send a confirmation email). If you don't care, then what's the point (someone has to type joe@aol.com instead of joe@klasjfklashf.com?). And (as a more minor concern) at sufficient scale, it could cause performance problems. I remember some webserver used to reverse-lookup IPs so it could log hostnames in its access log, and it was brought to its knees by even minimal levels of traffic).
The Social Network screenplay ("The Facebook Movie")
shinh is being incredibly sporting about the whole thing, so it's good to go.
You could say it was supposed to be there.
I'll toss in my congratulations to Bob and to Jameson and Ryan as well. Ryan doesn't get a lot of credit, but he's one of the few people out there who can pull off a Web 2.0 design that's clearly identifiable as such but isn't derivative.
The assumption is if you have few assets and the insurance then there would be little reason to litigate. Which would drive down the cost of the insurance.
"Fuck freedom of speech, it's not what this is about."

It's exactly what this is about. As an almost Atheist (lacking the needed faith to really be one) I find the Quram mildly disturbing (as I do with other sacred texts, the Bible included) in that it proposes to be the absolute truth that admits no questioning. I respect, however, your right to your faith. You may believe in whatever you like, and I will defend your right to it against those who may want to take it away from you. But, in return for my respect, I demand from you the same respect. If I believe the cartoons are funny and worthy of publication, I demand you respect my right to draw, discuss or even (if the authors so agree) to reproduce them. By hiding behind the "biggest and dumbest asshole" metaphor, you excuse yourself, and the intolerant people who find it right to kill authors for offending their faith, from the obligation to respect others. Muslims are not the dumbest and obviously can learn to live in societies that don't share religiously intolerant laws.

Some of the cartoons were funny. I had a couple good laughs out of them. Would I be offended if they were about Christ (I was raised a Catholic)? No way. Would I be offended if they had been about scientists (I am an almost-Atheist)? Of course not. They are cartoons, meant to be funny and to, sometimes, question beliefs.

If your faith cannot withstand questioning then, perhaps, you should question yourself how deep and true it really is.
In Texas, we'd call that an annual cook-off.
The reason they write poor code is because they are beginners and beginners always make mistakes, use functions incorrectly, etc. In any language they code, not just PHP.

PHP is often more visible because it is more used and easier to write... But if PHP wasn't that popular, we would see the same issue with Perl, Python, etc.
WEBSITE SUBMITTER - DOWNLOAD - MPS AUTO WEBSITE SUBMITTER
Since we've all been screwed by the mobile industry for the entirety of its existence, I'm not sure how I'm supposed to feel indignant towards Google for pissing off said industry. There are very few industries more arrogant and abusive than the telcos (at least in the US; I dunno about the UK), and if Google wants to take their place, I'm all for it. Instead of playing the consumer-screwing game better (like Apple did with the iPhone and its subsidized/locked-in model) Google is leaving those decisions up to the consumer and giving them a fair deal all around.

My impression is that Google looked at the existing phones and the way they were being sold (exclusive to specific carriers, and used to lock consumers in, just like all prior phones) and felt that it just wasn't doing the job the way they'd planned. Android had a reason for existing, and it was to break the logjam in the mobile industry so that Google could get on with the business of monetizing the hell out of mobile users. Since the old players decided to use Android to play by the old rules, Google simply reminded them of the way "open" is supposed to work. The play here is not for Google to become a traditional mobile device provider or to become a mobile service provider (though they'll touch on both). The play is to make the mobile web standard enough and good enough and pervasive enough to where Google can work their money-making magic there. Telcos are standing (aggressively) in the way of that, and the device makers remain willing partners in those plans.
Group behind Twitter hack takes down Baidu.com
I'm a reasonably competent programmer by most standards and I was burned by PHP once.

If you include a file with their include() function and have whitespace after the closing ?> tag in the file--PHP will throw an error.

Except it gets better: whether this happens or not depends on a setting in php.ini (output buffering I think).

This happens if you're trying to send header information from the parent file but include a file that outputs whitespace on accident. The output buffering delays sending the output (because it's buffered, duh :)) so the header info can be sent, hence no error.

This is one of those things I didn't know and wish I did.

http://stackoverflow.com/questions/1793482/php-error-cannot-...

The work around: omit the closing ?> tag from included files.
I'm not sure about your monetization strategy, but I'm positive there would be customers for this.

In 1999 I spent a lot of time helping out some investors I knew by providing technical expertise after they'd gotten burnt by people proposing things that had a lot of ocean boiling numbers and hand wavy technologies. In doing that, I saw a lot of what you saw with regards to terrible and weird presentations, but I also saw some groups that looked like they had a ton of promise but were terrible and communicating the point.

That being said, you may want to consider also providing services to some of the smaller funds out there as a bullshit detector. I think by and large investors are MUCH more technologically savvy these days, but I still get the feeling that there is a fair amount of money outside of SF/NYC/Boston/London that lacks confidence for some of the more interesting technology companies.
Social Networks fail to achieve the most important GOAL
The same occurs in Drupal template files (which are powered by PHPtemplate, by default anyway). Including the closing tag with whitespace after causes a white screen of death which can be infuriating to debug - unless you know this.
> I could probably exit the site very rapidly by way of a submission script

But that would certianly fall within the realm of "hacking"
Actually, deleting items from array is usually done with `Array#splice`. Using `delete` operator only deletes a property, but doesn't update Array object's `length`, and it is this `length` that matters when iterating over an array (with `for(;;)`); when appending to array (using `Array#push`), and in few other cases.

In other words:

var array = [1,2,3,4];

delete array[2];

array.length === 4; // length is still 4

array.join() === '1,2,,4'; // which can lead to these kind of unexpected results
they aren't really cheating the consumers at all. If anything, they've been great to us

The thing is this: the relationship that exists between me and T-mobile is, I pay them money and they provide me with voice and data and BlackBerry services. Now I'm obviously just one individual, but I am fairly representative of a high-value subset of T-mobile's customer base and as a collective, T-mobile's interests are well aligned with our own. They aren't going to screw me because in doing so they'd screw us (e.g. all BB owners) and we'd migrate en-masse to Vodafone.

The relationship that exists between me and Google is that they provide me with free services so long as I and those like me engage in behaviors that are beneficial to their advertisers. It's difficult as an end user to get support from Google because they don't really care; they'd care only if their quality of customer service could affect my purchasing decisions with their advertisers. If people who couldn't get tech support from Google for their phones switched to Bing for search maybe they'd care, but I doubt anyone does that...
> Fuck freedom of speech, it's not what this is about. You don't have, and never had, the right to slander someone in order to pick a fight.

Yes it is. And yes I have. At least I have a right to do so without fearing for my life. What I don't have, is a right to have any friends when I'm done expressing myself.

> If I went to a bar, found the biggest and dumbest asshole in there and called his mother a filthy whore, guess how much sympathy I would get in court.

Not much, but the guy would get a conviction for voilence.

> Yet this is exactly what the newspaper did, in order to demonstrate how "choked by fear" we all should be.

No, it's not. Discussion a religion in the public sphere is no different from discussing a politician in the public sphere. It might, in both cases, be impolite, but no-one should expect physical violence because of it.

> They are also predominantly impoverished, uneducated and downtrodden, not to mention constantly in the crosshairs, perhaps things are connected?

Maybe, but I can tell you that the Muslim community in Denmark isn't exactly doing itself any favours by refusing to condemn the attack.

Absolutely, there is pundit after pundit lined up, trying to paint every Muslim in the world as violent fundamentalists just waiting to strap on a bomb and go blow some children up, and that makes me sick. But the Muslim community needs to stand up for itself and denounce and condemn the people committing these crimes, and stop making veiled defences for attempted murder.
The best way to handle this is not to even put a closing ?> unless you intend to have non-PHP in the file.
Until now every company has had a weakness. Namely, dominance in some other market could be used to undercut them on price. The way to battle such companies has been to undermine their dominant market, or use the same strategy with a different market. Advertising is so unquantifiable at the moment that you can't undermine Google's market by simply selling advertising more cheaply. You could try to make a better search, but at some point Google wont be so depending on search for their ad revenue.

The thing that is scary about Google is they have unlimited pockets. They can just continue throwing money away until they've taken over every market they care to. And then they can recoup those losses...
That's one of the most irritating problems with PHP due to the impossibility to find the bug (well, it's a whitespace, it's not as if one could see it). On my server, including a file with a whitespace after the ?> actually made the server send the PHP source code as text, including the mysql passwords that were included in the file.
> That’s kinda far from their core business, advertising.

Fixed.
Yeah, plainly spoken I know, but true :) Well, true from my experiences anyway!
${‘a’ . ‘b’} = ‘c’;
echo $ab; // it will outputs c

I've seen people abuse that "feature" to write utterly unreadable messes of code that should have been covered in pasta sauce. Developers new to PHP should absolutely not be using this, not until they learn how to write clear, easy to read code.
Most PHP dev's omit the closing tag anyway for a variety of reasons (mostly because, well, it's not needed)
The Comparative Risk of Terrorism
> then what's the point

rudimentary "junk" detection. I've used it in the past as a basic scheme to reject certain types of bots on a PHPBB forum.
Orlowski's articles are often blatant trolls, this one is way out there claiming that the mobile operators who've had us over barrels for so long should be felt sorry for because they can't break the net. Nobody is stopping them making a video on demand service, people are stopping them from making a video on demand that has priority and blocks others. And calling all the civil society groups that fought for net neutrality Google sockpuppets is a bit much.

He's siding with all the other players to be a troll but we side with Google not because we love them but because we don't want the carriers to be anything more than ISPs. They are simply too stupid to manage it, look at SMS data transfer still costing four times more than data transfer to the Hubble telescope. Whereas you have Google pushing open jabber chat protocols and then building Wave on top of them. Who do you trust, a bunch of dying lock-in mongers with a track record of squeezing everything they can out of you and the troll-jester Orlowski or Google which has a decent track record open sourcing most of their stuff and adding value?

As someone who has suffered iPhone lock-in and incredibly poor customer service (3G on my 3G iphone has never worked from day one and the carrier and Apple refused to do anything about it - even suggesting I "turn off 3G to abate the problem" WTF) I can't wait for unlocked no-contract Linux phones to become the norm and just wipe them all out. And I don't think Google cares about "the mobile industry" either, they can burn bridges there because that industry doesn't work as a block (there is no honour among thieves) and they can always find one to make the hardware for them.