skysight-inc/HackerNews huggingface dataset:
It's a good example of how coming from different language can both help and inhibit programmer's thinking. Knowing C certainly helps to understand that repetitive array size and index access is likely to be more expensive than using local variables. At the same time C programmer is more likely to adopt an imperative programming style, which is in this case more error prone, verbose and doesn't allow for code re-use.

More ideomatic JavaScript would look like this:

Array.prototype.foreach = function (f) {
for (var i = 0, _i = this.length; i < _i; i++) f(this[i])
}

/** BEGIN **/
var f = new Array(3000000);
console.time(1);
f.foreach( function (el) {
if (el === 'foobar' ||
el === 'foobaz' ||
el === 'baz' ||
el === 'barfoo') // Do something

})
console.timeEnd(1);
/** END **/
The last laptop I installed Ubuntu on was in 2005. I still have that machine and use it occasionally.

edit: The machine I installed it on was a Fujitsu Lifebook. I don't recall the actual model number but it was absolute top of the line machine when I bought it. In recent years (2009, 2010) I've used Linux on a couple of Acer machines which we have in the office. The user experience does not appear to have improved when it comes to dealing with annoying problems.
Yes, very smart. But your friend shouldnt be intimidated. Every good entrepreneur has the potential to make moves as smart or even smarter than Bill Gates did.
I enjoyed it. Now i'm working for a web company and have lost touch with it. Really want to get back into it.
I remember doing that to loads of com files. That was with a 20mb hdd. You knew every file on the HDD in those days.
24 hours later, more than 150000 downloads. I believe it is safe to say the threat level has indeed been raised.

http://github.com/codebutler/firesheep/downloads
It's really sad to me that we give NASA less than a percent of our national budget. Along with the (now cancelled) Superconducting Super Collider, it's one of the few ways in which you can make huge leaps for humanity with a relatively small investment.
Not sure I've read a more balanced view of PHP's pros and cons as it relates to a real life programming project (in comparison to another language) in a long time. Perhaps ever. Nicely done, imo.
To your "first", I continue to state: that could be handled in a library. There is no reason why this is better handled inside rather than outside of the database. Insisting that this be provided by the database vendor instead of as a layer on top, however, means that you are now taking an entire backend storage implementation (one that is incredibly touchy, I will mind you: I've been using MongoDB in production for the last eight months and I now consider myself an idiot for having wasted time with it) from someone because they provided a convenient syntax.

To your "second": that is not a property of your usage of trees, and starts a new, unrelated discussion. I have nothing against document-oriented databases, and use them often. I feel you are blurring the line between syntax and implementation with your "slow" comment (again: if you are able to concurrently update those schema-less data items you are going to be taking the same hit you would be getting with any other backend for the separate storage and indexing), but will certainly not argue that there are classes of problems where document-oriented databases are really useful. However, trees in particular are not one of their killer features.
I believe the Air is supposed to have a full sized keyboard and trackpad.
Since everyone agrees this makes no sense and sony is up +1.43% (pre-market), does this mean we should go out and short sony stock?
I briefly considered selling my 13" MBP for an air, but quickly realized I could upgrade my machine to 8GB of RAM and swap in an SSD for cheap, on top of the processor being much faster than any of the Airs'. Also, I have an iPad and an 11" Air would be a bit redundant for me.
The new North - A remarkable new book forecasts an emergent economic powerhouse
I just tried this and I think it's a much better desktop in terms of UX.

However, I'm running on a mere 16GB 16-core MacPro and performance was appalling with it really suffering and the end result is practically unusable.

If performance can be brought up to Gnome levels then I'll probably be happy as it is really nice.
You pretty much go off into lala land after you mention fonts.
FUSE filesystem using MySQL as a storage
Job Alignment and Getting Paid to Learn
Also the fact that you can use more bits per element and reduce the error rate for false positives. Using around 3 bytes per element, can bring the error rate down to 0.001%.
Thanks! I was tired of all the language-bashing out there and wanted to look at it objectively.
Why I Am An Anarchist
Doesn't Windows 7 have menu bars on every window?
Apple started to push for full screen apps as shown in OS X 10.7 "Lion" preview.
Apple lists the 11" as having 5 hours and the 13" as having 7 hours. I have 8 hours on mine usually (for the price I paid I got a 9 cell battery, included in the 1.6kg weight).
This comment, which I completely agree with, really depresses me. People really like competing with each other rather than working together to build awesome solutions (and users often even /encourage/ this behavior with a pro-competition bias). The idea that we now have a million "sort of crummy" storage solutions rather than a couple, or even one, really good one--and mostly due to superficial differences in syntax of usage or specification of deployment--makes me want to cry.
Adobe isn't jumping ship on Flash, it's still a viable product with a place on the internet.
I hope this isn't something anyone is just now realising. Though, I shouldn't be surprised. I always wonder why people hated on Flash ads so much and supported HTML5... when the truth was, HTML5 and tech would allow companies to do essentially the same thing. Except now instead of just disabling Flash, you'd have to disable... what?

Basically, the benefit of HTML5 and associated technologies (seriously, that's getting annoying fast, maybe I should just rename it Superior HTML5 and Integrated Technologies, and shorten that to... nm) is simple that you'll be able to run "Flash like things" without a plug-in.

Everything Flash can do, browsers will be able to do by default. Yay. Net result? You don't need a plug-in. Everything else remains.
I hate the fact that tech companies and observers gloss over the technical details of products. On Apple's site, even in the sections labeled "Tech Specs" you cannot find the model of CPU, chipset or hard drive that goes into any of their product (except for Mac Pro, and there you don't have much choice even though I guess it should be expected with the desktop computer of such class). And the reviewers often times make no effort to find that out too! What kind of "technical" is this?

It seems to me they use Core 2 Duo SL9400 (1.87 GHz, 1066 FSB)(http://en.wikipedia.org/wiki/List_of_Intel_Core_2_microproce...). Not exactly record-setting for low power, judging by 17W TDP, but when everyone is measuring battery life at mostly idle CPU, and with process enhancements over the years (I heard that later Core 2's of the same model consume less power than rated) I think they might show close to their rated battery life. I think Apple must have worked hard squeezing the unnecessary volume and weight with the new design to give place for more battery too.
Reminded me of Epic Windows 98 Logon: http://i.imgur.com/JPxql.gif
With the current Ubuntu & your Air-like better quality machine (what's that by the way?), is it possible to have:

1) Sleep/suspend/resume
2) Hardware-accelerated OpenGL
3) Compiz/fusion or whatever it's called nowadays
4) Support for external monitor
5) No random crashes once per week with 1-4 enabled
6) Hardware-multiplexed sound output in all programs
7) No two months of tinkering to get 1-6 working

I'm honestly asking this. Between 1998 and 2006, when I used various Linux laptops as my primary machine, I never had all the above issues solved. Maybe things have changed?
Jesus, that article was ridiculous. I grew suspicious when he talked about speed being partly due to the processor, when we've all known since we got SSDs that the processor has nothing to do with UI latency (when was the last time you saw CPU usage spiking to 100% just by launching programs)?

The disk has always been the bottleneck, Apple was smart enough to put a fast disk in the Air, and now this guy praises it.

This computer loads faster than the MBP because you've spent the past 6 months loading it with programs, guy. Format the MacBook Pro and it will be just as fast... Sure, the Air might be a great little computer, but for a $999 pricetag, I could get 3 netbooks instead.
Same here, removing the top bar is always the first thing I do on a fresh install.
is there any link or such?
Watch – A Useful Linux Command You May Have Never Heard Of
Interview: Amanda Hesser on Food52 & Food+Tech
"Though I did not read the book at school"

A lot of people actually read that book voluntarily, outside of school :-)
"only 250-300 million added to the budget"

Yes research is important. Yes exploration is important.

But at least show some respect for tax payers. Asking for 250 million is the equivalent of asking 3000 people to work for nothing for a year.
The ThinkPad X series. The X201 is similar in size, weight, and price, but can hold a modern CPU and gets an extra several hours of battery life. You can also get mobile internet access, although I'm not sure of what type.

ThinkPad construction stands up to a whole lot, and the keyboard is fantastic. I have a five-year-old X40 that is still chugging along wonderfully - I'd like to get a new laptop, but I just can't justify it.

I have only had one issue running Linux on it: because I use Debian, the non-free wireless firmware must be downloaded separately. I have never had a problem with Ubuntu, even the early versions I tried, because they include it. Intel has put a lot of work into getting all of their stuff supported in Linux, and it shows.

I hear the Sony Z series has a similar story: similar size/weight/price, better hardware and battery life.
CORDIC (http://en.wikipedia.org/wiki/Cordic), used to efficiently calculate trig functions with only very basic hardware requirements (add, sub, shift, and table lookup).
Why would Apple want to be making TVs, at least in the sense that TVs currently exist? The profit margins must be razor thin, because you're competing with a damn-near-indistinguishable product from LG and Samsung, and prices keep getting driven down every year.

The only way they'd do it is to make some sort of integrated TV/AppleTV thing. But I'm not sure that's really to their advantage versus just selling an AppleTV and letting folks plug it into their existing TVs.
The next move in Jobs' chess board is to bring the plastic macbook down to $699, in five delicious colors, as thin as the macbook air.

The perfect netbook for the masses.
Redcar 0.8 - Ruby syntax checker, Comment code
Most Linux problems are people fighting against hardware, if you just pick your chipsets sensibly it all works out of the box

You see, right there is the problem. I don't have to think about that when using a Mac. The drivers are always there, and they always work.

Despite your claims, Ubuntu and the other linuxes out there do not "just work". I have not yet met a linux laptop that didn't do weird things when I close then reopen the lid. I have yet to meet a linux laptop that deals with finding itself on different networks in an elegant manner.

To put my comments into perspective, for my day job I write userland applications for a Gentoo-derived system, and I do my dev work on a Fedora laptop. At home, I develop for my own company on a Mac, targeting Mac applications. I like to think that I have a reasonable handle on the pros and cons of the two environments. About the only time I find linux compelling is when I want to use an open source package that isn't available on MacPorts. But then, I usually just go and grab a gentoo ebuild for configuring the package in question, create a ruby script to replicate the ebuild, and then install from tarball... It's not a big enough pain to justify sacrificing all of those yummy Apple APIs. If you're an app writer, Cocoa blows GTK out of the water.
> Windows 7 actually solves this problem best; I can move the task bar over to the right and have the full screen height for applications.

I have done this -- moving the taskbar (in my case Gnome Panel) -- to the right for many years. I don't think this is not something of a Windows 7 innovation.

> [...] moving the top bar in Ubuntu out of the way results in ugly, buggy wierdness.

Please explain what you mean. As I said, I have done this for many years in Gnome, and it's just fine.
One more thing, he discusses some details about strings, lists, hashtables, and representing numbers as lists.

These are in fact not deep language design topics. Most of what he discusses are not core features of 'serious' languages in 2010: they are already mostly library stuff.

For example let's take Scala. Treating strings as lists? Create a Seq descendant string class, and create implicit conversion from the normal String to it (and vica versa): and you can use it in scala.

Arrays as Hashtables? The syntax is already the same in Scala, they even have common traits (kind of interfaces).

Numbers as lists? Also library implementation detail. Create a Seq based number class and define implicit conversion for it, and you are done. Defining operator behaviour for these 'numbers' is possible in Scala.

The deeper questions are in my opinion: static vs. dynamic. typing. In case of static typing the question is what kind of type system we have?(Scala's is complex but powerful.) What kind of type inference we have? How felxible/convenient the syntax is? Does object orientation makes sense, what kind of (multiple) inheritence we support? Purely functional or enable imperative programming style? (Imperative programming is not just how the computer 'thinks', it is a 'natural' description of some concepts. (Like an instruction manual.))
The Improvised Remedies of an Art Healer
Emotion & Design: Attractive things work better
Sacramento Auto Accidents Attorney/Lawyers | California Auto Accident &
Sacramento California auto accident lawyers and California personal injury lawyers/attorneys. The law offices of Demas and Rosenthal deals car accident and automobile accidents in Sacramento and the entire Northern California region. Call today: 888-870-4470
Add to the fact that no one is actually buying the $999 version. Every positive review I have read goes like this:

"The new MacBook Air is amazing. It starts at $999 and I have been using the top-of-the-line 13" for a week! (of course not mentioning that it costs $1,599)"

I would love to see a tech person use the $999 version and see their review. The price-point, when actually comparing the usable one, is ridiculous!
thanks! Copy/paste fail! Fixed it.
Well, you've done so.

Personally, one of the reasons I think PHP will continue to do well is the accessibility which is helped with the basic documentation. Can't remember how something works? php.net/foo. http://php.net/strpos - you get the 'official' docs, along with wiki-ish input from the community about gotchas, workarounds, extra tips, etc. Makes a big difference to many people compared to http://download.oracle.com/javase/7/docs/api/java/lang/Strin..., for example.
How to make Auto-brightness controls better
um how? Dammit Jim I'm a data nerd, not a UI designer! This is why I threw my hat into the competition ;)
This may help with some perspective:
http://billpetti.com/2010/04/16/visualizing-the-2011-us-budg...
مشاهدة مباراة ريال مدريد وريال مورسيا بث مباشر
Innovation Happens Elsewhere -- Open Source as Business Strategy
Any suggestions for carbon fiber? I'm testing out an idea...
Wow, great idea! I was thinking of using my root server, but worry about wasting traffic. That would not be an issue with my DSL router at home.
I saw one in the store, and the trackpad is at least "full sized" (compared to Macbook Pros) if not larger.
Feels like we should read their content just to annoy them!

In their defence (kind of) instead of programming all the logic related to their policy, they're displaying text to enforce it instead. But obviously since they're threatening, it's all over the top.
The Online Threat, Should we be worried about a cyber war?
I'd like to know what application he is running. Yes, I'd imagine that Chrome would be faster on a fresh out of the box mac, but let's see him try to process RAW photos.
The quantum search algorithm: http://en.wikipedia.org/wiki/Grovers_algorithm

It lets you search a completely unstructured N-item search space using the square root (!) of N queries, not the N queries you'd think were necessary.

Also, the algorithm is so simple that once you know it's possible, and provided you're very comfortable with basic quantum mechanics, it's almost trivial to find the algorithm.
Actually, I think the investment vs leaps for humanity ratio is much better for "small science" projects than for big-ticket items like NASA and the SSC.

Is it better to give $20 billion to building an SSC, or a million bucks to research on fruit flies and a million bucks to research on earthquakes and a million bucks to research on lattice gauge theory and a million bucks to research on whale mating and ... so on twenty thousand times? Do that and you'll get huge amounts of interesting research, or varying importance from "dull" to "hugely important". Smash some atoms together and you'll either find a Higgs Boson or not -- a single hypothesis either confirmed or rejected, big deal.

NASA has done some great stuff too, but their greatest stuff has been in relatively small corners of their budget, like Hubble and Kepler.
I don't agree that it's worse. I think it's mild. Call it a local-only data-exposing exploit.

I find it best to keep the phone in my pocket. It also stops people from stealing it - a more common occurrence than hacking contacts.
That's a little sensational, don't you think? Virtually every morsel of our federal budget can be put in the same terms, and many are orders of magnitude larger than this.
They should measure temperature and noise when testing new laptops. In addition to disk speed and processing power, it's the most important features for me.

My 2 year old MacBookPro gets boiling hot after an hour.
Reddit AmA of a movie pirate
Or if you prefer, the Empire State building has about a quarter of a million square feet of floorspace, so it'll fill two Empire State Buildings.

Or for a somewhat less impressive measure, the average size of a Wal-Mart Supercenter is 180,000 square feet, so it's about two and a half of those.
EMT training | EMS training | EMT Books
Firefighter’s offers amazing EMT books, training, videos software firefighters, and many more.visit http://www.firebooks.com for more.
A good article. Too often I feel the debate about wikileaks has become polarised.

On the one hand you have those saying everything should be open and available. And then on the other hand you have those who say that nothing should be leaked because it puts people at risk.

There is no doubt that, in the world, there are some very unpleasant people who want to harm/kill other people, and for that reason surely some things should be kept secret? But then surely those trying to protect us should be held accountable? There is a fine line, and people draw that line at different points.

Wikileaks provides a valuable service, but I do find it ironic that, for an organisation that tries to cut through and destroy government PR/propoganda, Julian Assange is very good at using similar PR to further his goals.

John Young of Cryptome has been very happily leaking documents without the whole "not staying in the same place for than 2 nights" mentality that Assange has.
I actually don't travel that much but the weight of lugging my current MacBook around on the occasions I do is what has sold the new MacBook Air to me.

I'm not a frequent traveller - maybe once a month - but by the time I add a laptop to all the other stuff I tend to have in a shoulder bag (not to mention the fact that I'd possibly be carrying my 16 month old daughter) and it's pushing what's practical to carry it for any sort of extended period.

When I was looking at the possibility of replacing my current 4 year old MacBook I asked myself what had irritated me about the current machine that I would change. The performance is still basically fine (I code a bit, edit a bit of video and the odd photo but nothing where the performance is really getting to me) and I came to the conclusion it was weight and start up time which means that the MacBook Air rather than a new MacBook or MacBook Pro was the logical choice.
Net result? The web is controlled by open standards and organizations with multiple implementations of the standard. Rather than the current situation, which is total SHIT: a single company in California - Adobe - controls 99% of the media online.

That's bad news. Flash is constantly full of security holes that only Adobe can fix. Flash's performance cross-platform is abysmal since nobody can fix it but them and they don't care. Fuck Flash, long live open technologies!

And just call it HTML5: everyone knows you're including the new JavaScript APIs when you say that.

HTML5 allows us to build rich applications for the web that will run on virtually every single device made (except for Microsoft devices this year, next year will change).

Don't bash tech you don't understand the benefits of.
Sure I'll elaborate. By the way, if you have any way to fix these problems via configuration, please let me know.

Minor complaint: the default theme is a fixed-pixel gradient that doesn't rotate when you move the bar to the right, so the vertical bar looks like closed venetian blinds. I can change the theme, but the default should be better.

Bigger complaints:
The status icons and notification area don't rotate and/or crop themselves so you can't access most of the important icons.

The application buttons DO rotate the text 90 degrees, but (my preference at least) they should be the only thing that doesn't rotate. The problem with horizontal application buttons is you quickly run out of space; I move the task bar vertical to eliminate that problem -- this is a problem with Gnome's implementation, not Ubuntu.

I'd be happy to remove the top bar, but a lot of functionality (wireless configuration menus) is difficult or impossible to access without it.

I normally have the terminal, browser, and emacs set to hotkeys as F1, F2, and F3, so I don't need an application menu other than to start apps I use infrequently. A context menu would be sufficient.

Perfect world:
What I'd really like is a blank screen with some method of seeing running applications that remains hidden most of the time, and a way to easily start applications, see wireless config, and log out.

The last desktop I had that worked exactly the way I wanted it was FVWM, where everything was accessed via hotkeys and root window context menus.

Unfortunately a lot of the niceness of Gnome, like the wireless config stuff, battery notifications, auto-mounting of USB Drives, and status icons you'd typically expect are dependent on using the Gnome/Nautilus interface. (At least I think that's the case.)

I'd probably be happy with FVWM again if using it didn't mean abandoning all the configuration apps and automation that Gnome provides. Right now, I'd have to log in to FVWM, and start a bunch of scripts to configure wireless, start the 50,000 daemons that make Gnome run like a modern UI, etc.

It's a lot of work to go through to reclaim 42 pixels from the top of my screen.
Rumor: Lucas creating StarWars sequel -- not about Skywalkers
Too few fish in the SaaS sea?
The vast majority of the hands-on actual-usage reviews I've read (nearly all of which have been extremely positive) have been of the 11" with more people running the 2GB than the 4GB.
If your browser allows its plugins to crash the entire program, then it's time for you to switch browsers.
Is Jolicloud Planning To Start Selling Netbooks?