Skip navigation

The problem may be that the icon always showing is the same name as the drawable xml file. Rename your image icons, possibly by adding a prefix like ‘ic_’ to your image file or Android will always show the image that has the name of the drawable xml file instead of look into the xml file to see which image it should be showing for which state.

node-waf is a tool shipped with Node.js to help build C++ files into a node.js compatible library or tool. It is only available if you installed node.js from source. 

 

The path to node-waf is usually in /usr/local/bin

 

If you see that node is installed in /usr/bin but not /usr/local/bin then you did not install node.js from source.

$ git clone https://github.com/joyent/node.git

$ ./configure

$ make

$ sudo make install

And now you should see node-waf in /usr/local/bin

If you simply try to use node-waf without installing node you’ll see this error:

“ImportError: No module named Scripting”

Do not do this, instead install node.js.

The imperative implementation of the algorithm is well known. Let’s arrange the input sequence (e1, e2, …en) into an array ‘a’ so that initially a[i] = ei, i=1..n. At step 1, we choose a random number r1 uniformly from [0..n-1]. Thus a[1+r1] will be the first element of the permuted sample, b1. We swap a[1+r1] and a[1]. Thus a[1] will contain b1. At step 2, we choose a random number r2 uniformly from [0..n-2]. a[2+r2] will be a uniform sample from {e1..en} – {b1}. After we swap a[2] and a[2+r2], a[2] will be b2, and a[3..n] will contain the remaining elements of the original sequence, {e1..en} – {b1,b2}. After n-1 steps, we’re done. The imperative algorithm in OCaml has been already posted on this thread.

Includes an implementation example and a critique of sort-based algorithms.

Every object has a hidden [[Prototype]] property, which is used for inheritance. Functions additionally have a public prototype property, which is used only when the function is used as constructor: When an object is constructed using new, the [[Prototype]] property of the new object is set to the prototype property of the function that was used as constructor.

[[Prototype]] is accessible via __proto__ or getPrototypeOf in some browsers.

git checkout -t origin/haml

I didn’t interpret it the way SAI did, seemed to me they said regulators should not stifle innovation, but maybe I misread it.

Money quote:

Regulators wouldn’t be qualified to evaluate Google’s algorithm. Search is really hard.

The New York Times Goes Nuts, Says The Government Should Regulate Google’s Search Algorithm.

I concur:

Google provides an incredibly valuable service, and the government must be careful not to stifle its ability to innovate. Forcing it to publish the algorithm or the method it uses to evaluate it would allow every Web site to game the rules in order to climb up the rankings — destroying its value as a search engine. Requiring each algorithm tweak to be approved by regulators could drastically slow down its improvements. Forbidding Google to favor its own services — such as when it offers a Google Map to queries about addresses — might reduce the value of its searches.

via Editorial – The Google Algorithm – NYTimes.com.

Ha!

via This Is How Much the New iPhone 4 Signal Bars Have Grown.

In all the tests, the T-Mobile HSPA+ network beat the competition in download speeds, though I never saw the top claimed speeds.

via Carriers Go to Battle Over Faster Networks | Walt Mossberg | Personal Technology | AllThingsD.

David Pogue on the Droid X:

You feel as if you’re talking into a frozen waffle.

via State of the Art – Big Body, Big Screen – Droid X Is This Month’s Superphone – NYTimes.com.

Follow

Get every new post delivered to your Inbox.