HNHacker News
TopNewBestAskShowJobs

cezary

80 karma · joined November 25, 2008

submissionscomments
cezary··on Array Iteration Interview Problem
Here's my version without using reverse or underscore. If coffeescript supported reverse loops or negative indices, this would be a lot cleaner.

    add1 = (arr, val, n)->
      d = Math.abs(n||1)/(n||1)
      n = if n is 0 then arr.length else Math.abs n
      i = if d < 0 then arr.length - 1 else 0
      end = if d < 0 then 0 else arr.length

      while n and i isnt end
        num = arr[i]
        if num is val
          n--
          arr[i]++
        i = i + d
      arr
cezary··on How Do Plants Know Which Way Is Up And Which Way Is Down?
Auxin, I did a science project on this in 5th or 6th grade. My father helped me rig up a centrifuge-like apparatus that would spin seeds at what was supposed to simulate greater than earth gravity. I remember doing research (reading) about auxins and coming to the conclusion that higher gravity would stunt plant height.
cezary··on Jobseekers Invited to “Apply Via API”
It's right there, go to http://careerapi.moneydesktop.com/docs
cezary··on Waiting for Amazon interview result
No, I was the only one there for an interview. I had two phone interviews before coming in for an in person interview.
cezary··on Waiting for Amazon interview result
They told me it would take a week, and no offer. I looked elsewhere in the meantime.
cezary··on Waiting for Amazon interview result
I was in the same boat earlier this summer, it took them about a month to get back to me.
cezary··on Node.js + Redis + Geolocation + WebGL Globe
Just a weekend project I'm working on. I thought it'd be interesting to plot the location of users on Google's webgl globe. Works on Chrome, haven't tried it on any other browsers though.
cezary··on Ask HN: How do you write clean node.js code?
> - Break up your project into libraries. In many cases the very basic examples do not break out the code appropriately for simplicity. However, there are some great examples within express source (i can't remember the exact name) that organize web applications routes into multiple files (and modules).

Sounds like route separation: https://github.com/visionmedia/express/tree/master/examples/...

cezary··on Why no company that values their data should ever "Go Google"
Dropbox stores different versions of files so even if files are corrupted/deleted and this change is sync'd up to them, you can still restore your files.
cezary··on How Many Americans Have a Passport? The Percentages, State by State
Not sure how time spent across borders really matters, but I'm foreign born and have spent years outside the US. I'm currently in Chicago and have driven to Florida, New York, Colorado, Nevada and have gone north and south of the border. I frequently visit relatives that live in rural parts of Iowa and Indiana.

My point still stands, you won't find as large a cultural gap as you would traveling to another country.

> Interestingly enough, I referred to places in the US where English is not the dominant language.

Of course you'll find small populations of foreign speaking people in the US, just as you would in any country but you're missing the point. You can't compare going to Chinatown with actually going to China, that's ridiculous.

cezary··on How Many Americans Have a Passport? The Percentages, State by State
If visiting another city or state is culturally awakening to you, maybe you're the one that needs to get out more.

The difference between countries is always greater than that between cities. LA to NYC is not the same as NYC to London. Even then you're still speaking the same language. How would you deal with a language barrier? Different religions? Different laws? You'll never get the perspective of an immigrant in the US, but you would being a foreigner in another country.

cezary··on How Many Americans Have a Passport? The Percentages, State by State
I live in the US, but there's a difference between traveling within the borders of your country and traveling abroad and experiencing new cultures.
cezary··on How Many Americans Have a Passport? The Percentages, State by State
"Travel is fatal to prejudice, bigotry, and narrow-mindedness, and many of our people need it sorely on these accounts." -Mark Twain
← PreviousPage 2 of 2