HNHacker News
TopNewBestAskShowJobs

rayval

797 karma · joined August 29, 2009

.
submissionscomments
rayval··on Why the San Francisco Bay Area should have 11 million residents today
This has nothing to do with rent control.

San Francisco is just one part of the Bay Area, and the Bay Area is just one part of California.

The entire state has high real estate prices, despite pockets of low-priced housing (Stockton, for example).

Law of supply and demand: a lot of people don't want to live in freezing Minneapolis or bleak Detroit. Or Mumbai or Monterrey, for that matter.

Rich or poor, they would rather be in place where there is a chance to bask in the sun by the ocean, even if requires an hour or two drive from their gritty neighborhood.

rayval··on Schlep Blindness
Urban Airship
rayval··on Why 37signals Doesn't Hire Programmers Based on Brainteasers
For us old-school types, here's the 60-second version in C:

    int main(int argc, char ** argv) 
    { 
    	int i;
    	for (i=0; i< 100; i++)
    	{
    		if( (i%3==0)&&(i%5==0)) printf("FizzBuzz");
    		else if(i%3==0)         printf ("Fizz");
    		else if(i%5==0)         printf ("Buzz");
    		else                    printf("%d",i);
    		printf("\n");
    	}
    }
rayval··on Why 37signals Doesn't Hire Programmers Based on Brainteasers
Here's my version in C:

    int main(int argc, char ** argv) 
    { 
    	long *n1,*n2;
    	int row,i;

    	row=0; N1[0]=1L; print_row(row,N1);

    	while(row++ < MAX_ROWS)
    	{
    		for(i=0, n1 = N1, n2=N2; i<MAX_BUF && *n1; i++)
    		{
    			if (i==0 )        n2[i] = 0       + n1[i];
    			else if(n1[i]==0) n2[i] = n1[i-1] + 0;
    			else              n2[i] = n1[i-1] + n1[i];
    		}
    		print_row(row,N2);
    		for(n1=N1,n2=N2; *n2; ) *n1++ = *n2++;
    	}
    }

    void print_row(int row,long*n)
    {
        printf("row #%d",row);
        while(*n) { printf(" %ld ", *n++);}
        printf("\n");
    }
This works through the size of long int (at least 50 rows).
rayval··on Why 37signals Doesn't Hire Programmers Based on Brainteasers
Function should return n rather than p.
rayval··on Adobe ceases development on mobile browser Flash, refocuses efforts on HTML5
> But have you tried doing anything graphically complex in HTML5? ... Things that Flash used to laugh at will bring Chrome to its knees.

Agree. An example is graph visualization. Fire up your CPU monitor and go to http://arborjs.org/atlas/ and view this very cool physics-driven mesh visualization written in Javascript. You'll see the needle jump to 95% or more. On my relatively modern laptop, if I run this for more than a few minutes, it shuts off due to overheating. Also, this app does not work on IE.

By contrast, I can run an similar Flash-based visualization and CPU usage ratchets up to 60 or 70% but not more, and it works on IE.

rayval··on Fake Steve Signing Out
The title should make clear the link is to a piece written in January 2011, when the real Steve took a medical leave of absence.

For a more recent item by Dan Lyons, see his rambling but powerful eulogy: http://www.fakesteve.net/2011/10/one-last-thing-r-i-p-steve-...

rayval··on Do we need 30 posts about Jobs on the front page?
Yes.

Plus, anyone who wants something else can simply click "More" at the bottom of the page.

rayval··on "I've got an idea for an app"
Yes, I think this is also the practice at game companies like Mattel and Hasbro.

See the following excerpt from Mattel Website TOS at http://service.mattel.com/us/tandc.asp:

As the world's largest toy company, Mattel employs a large staff of designers to develop new ideas....

Because of this... Mattel does not accept or consider any unsolicited ideas or materials for products or services, or even improvements to products or services, such as ideas, concepts, inventions, or designs for toys, games, videogames, books, scripts, screenplays..... Therefore, you must not send to Mattel.... any Unsolicited Ideas and Materials. Any Unsolicited Ideas and Materials you post on or send ... will be treated as non-confidential and non-proprietary User-Generated Content – regardless of whether you mark them "confidential", "proprietary", or the like.

Mattel finds that many submissions that it receives... are already in the public domain; or are identical or substantially similar to products developed or in development by our own staff; or, for a host of many other reasons, are not novel or unique. So if, you send us any of your Unsolicited Ideas and Materials despite our request that you not do so, it's likely they're identical or substantially similar to ideas, concepts, and materials that, in the past, were developed by our staff or submitted to us by others.

rayval··on Notch's Livestream for Ludum Dare 21
"Not everything worth doing, is worth doing well" -- _Soul_of_a_new_machine_
rayval··on Notch is coding live again
Also, the switch statement is easy to add incrementally and change. Every so often, he'll go back to it and add some new values and a couple of lines of code.
rayval··on A pulse no longer necessary for life
One could have a Nike-style sensor in the shoe, connected via bluetooth, with a manual override of some sort. Plus a smartphone-based accelerometer and gyro.
rayval··on The flying men of Yungas valley
Coca leaves are not a narcotic, when consumed in the traditional form (chewing or in brewed tea). Caffeine, tea, and tobacco are more addictive than chewing coca.

As you point out, coca leaves can be processed and refined to make cocaine. Analogous to how corn can be refined into high fructose corn syrup. Chewing corn all day won't give you diabetes, but drinking high-fructose corn syrup regularly will have negative effect on your health.

rayval··on Beats Drum Machine
Emacs, yea.

Also, perhaps one can modify the program, so that it ignores characters other than period and X.

Then you can run it on regular text files or, alternatively, source code, to get cross-domain puns (text domain, rhythm domain, code domain).

rayval··on iPhone Tracker - map a history of your iPhone's locations.
There are two (relevant) tables in the SQL Lite database. One is called CellLocation, the other is called WiFi Location.

The data collected includes:

    * Timestamp (in seconds since Jan 2001 GMT)
    * Latitude 
    * Longitude 
    * HorizontalAccuracy 
    * Altitude
    * VerticalAccuracy
    * Speed 
    * Course
    * Confidence
The above are self-explanatory. More opaque (to me, anyway) are the following:

    * PRIMARY
    * MNC
    * LAC
    * CI
    * MCC
If anyone has knowledge of what these mean, please post.
rayval··on iPhone Tracker - map a history of your iPhone's locations.
This is addressed in the FAQ.

http://petewarden.github.com/iPhoneTracker/#12

The app downloads:

   * OpenStreetMap background tiles
   * jQuery main script file
   * OpenHeatMap script and CSS
rayval··on Samsung blames security software false positive for StarLogger issue.
They didn't. Instead, a harried customer support person answered a confusing question with a nondescript answer. One could paraphrase it as: "Well, Mister Caller, I have no idea what software you are talking about, but if there is any such software on the system, it would be to make sure the system is running properly."
rayval··on With +1, Google Search Goes Truly Social — As Do Google Ads
Yes, +1 has the connotation of "noteworthy" rather than "fan".

So it is more generally useful. One could +1 a news article about an earthquake or horrific disaster, but might be reluctant to Like it.

rayval··on Why Nokia failed: 'Wasted 2,000 man years' on UIs that didn't work
The link is all the way at the end of the Register article.

To be fair, the Register article does provide useful context that is missing from the Wilcox piece.

rayval··on Vivian Maier: Amazing unknown street photographer
The photos are amazing, in the style of Robert Frank, WeeGee, and some of Annie Leibovitz's work.

The story is also compelling -- about Maier's life, work, death in obscurity, and the fortuitous circumstances of discovery by John Maloof, who has now made this his life's work.

However, the OP should link to the primary source:

http://vivianmaier.blogspot.com/

rayval··on Amount of profanity in git commit messages per programming language
And if one goes that far, one would have to include variant spellings, because in the heat of the moment of cursing an opaque or broken piece of code, a programmer is likely to froth at the keyboard.
rayval··on And so I'm giving up the Mozilla project - Jamie Zawinski (1999)
Ideally, you should not be in this situation where you have to compile large amounts of code to go through the code-test-debug cycle.

Even in a large project, there should be subysystems that a developer owns and works on that can be partitioned or isolated from the rest, and execute within a test harness on a dev machine -- a harness that feeds the subsystem inputs and records outputs.

Successful projects either begin with or evolve to a state where they have the architecture, the toolset, the process and the culture to allow devs to enjoy a fast code/debug cycle.

rayval··on I'm graduating with a CS degree but I don't feel like I know how to program
Medicine is one class of skill.

However, there are others in the same vein as programming:

  * fine arts (drawing, painting)
  * music 
  * football and other sports
  * creative writing
I'd guess that any student majoring in the above fields already possessed basic (or even advanced) skills before entering the university.

On the other side, there are fields that are more "professional", where students only begin learning these disciplines at college:

  * medicine
  * psychology
  * economics
  * law
Obviously, students are exposed to concepts before college, but they wait until they get the professional credential before doing surgery, filing lawsuits, prescribing antidepressants, or raising interest rates.
rayval··on 133-line chess engine with annotated source
The source is not intended to be readable. The glory is in the 1433 characters total (or 133 lines, if you prefer that metric). Everyone knows that it is artificial, but it does not matter. The spirit is similar to the 10K Javascript contest (see http://10k.aneventapart.com/ )

If you want to try to understand the chess code, the author provides an expanded version with comments that is more readable: http://home.hccnet.nl/h.g.muller/maximax.txt

In order to read the code, it is helpful to understand the basic algorithm (recursive negamax search). Here is a good explanation of minimax, negamax and alphabeta: http://www.hamedahmadi.com/gametree/

rayval··on Sometimes it pays to pay your web designer
I wonder what happens to the chimney sweep years later, the person that clambers down the chimney through unexpected shards of glass sticking out on the walls. Presumably they are aware of this as a possibility and take precautions.
rayval··on JQuery Mobile Alpha 3 Released
Yes there is a bifurcated development path. I prefer the HTML-friendly approach (JQtouch) as opposed to the monolithic Javascript (Sencha Touch)
rayval··on Matt Cutt's thoughts on Google Bing Debate
I guess it's in the eye of the beholder.

Others interpret this situation as Bing being unable to compete effectively except by looking over Google's shoulder. And then denying it when called out with clear-cut evidence.

rayval··on Matt Cutt's thoughts on Google Bing Debate
A far-fetched hypothetical scenario that has little basis in fact.
rayval··on Matt Cutt's thoughts on Google Bing Debate
The problem is that the results would not be so dramatic. It would require statistical analysis to show that there was a difference. Most people's eyes would glaze over -- even though copying was occurring and genuine damage was being done (to market share, to business model, etc.), similar to a low-grade toxin in the environment.
rayval··on WooMe: TechCrunch40 Finalist, $20 Million In Funding – And One Huge Scam
Because it could be one of those services that is hard to cancel without cancelling the credit card.
← PreviousPage 3 of 5Next →