HNHacker News
TopNewBestAskShowJobs

phzbOx

548 karma · joined September 8, 2011

phzbox.com (phzbox at gmail.com)
submissionscomments
phzbOx··on Duck.com (not the search engine you might expect)
duck move.
phzbOx··on IcedCoffeeScript
I tried to formulate very differently so you can see that as another point of view. Sorry for the lack of formality.

defer is a function which returns another function. When that returned function is called, we get out of the await block.

So, to take the same example:

  await 
    for k,i in keywords
      search k, defer out[i]
Here, defer(out[i]) returns a function. We pass this function to search.

Search is like this:

  search = (keyword, callback) ->
    # do some search
    callback(some_result)
And here, by calling callback, which is the function returned by defer, it will end the await block.

Here's a trivial example:

  await
    some_function = (fn) -> fn(1234)

    some_function(defer(x))
    console.log(x)
defer(x) returns a callback, it's given to some_function. And some_function calls it, which ends the await block.
phzbOx··on YC and 500 Startups company Curebit caught stealing from 37 Signals
Yeah, it's really a tricky subject. What if:

a) The images weren't linked directly to 7signal. b) The html was * slightly* modified, but enough to show that it wasn't the same. 3) A little bit of tweaking here and there to make it * slightly* visually different.

By the way, I'm more playing the devil advocate as, even if this was actually legal, that'd still be an unrespectful move. It's hard something to draw a line between inspiration and stealing. I.e. When you are a beginner, you keep taking stuff here and there. As you become better, you start to use pattern that you've learned. As you become even better, you know that everything you do is based on something, somewhere and can even point to where you've learn it / been inspired by. Only when you really master a subject can you really create something.. and then, it's not a full creation.. it might be only small details.. which will then inspire others.

phzbOx··on Wat
For some reason, what I find the most hilarious here is reading the extremely serious HN comments. It's a weird contrast.
phzbOx··on Fun with math: Dividing one by 998001 yields a surprising result
You've got an extra ) on the 'nums = .....'
phzbOx··on Jailbreaking Is Not A Crime
In theory, I agree. In practice, I've realized that most of the jailbreaking phones/tablets are used to download illegal applications and/or without paying. I know this is a somewhat contrived statement, but this is from what I've seen in company/university/engineering departments I've worked/studied.

Note:

I myself had to jailbreak my iphone to install spotify (and asked a friend to pay for it since he's outside of Canada). For some reasons, spotify is illegal here. (Yes, I know, I illegally downloaded an illegal application to legally download/listen to music).

phzbOx··on Node.js - A giant step backwards?
Hence the *
phzbOx··on Node.js - A giant step backwards?
I rarely use ifs and whiles using javascript.. There are better, higher level libraries that take care of it for you. As a bonus, some of them let you make it * paralleled* with the same syntax. Obviously, when you switch to a new language, you need to learn their new paradigms / designs.
phzbOx··on Why Developers Hate Antiviruses
For me it's not so much that it's not always accurate but more than it always make my computer soooo slow. And also, that I don't believe in antivirus.. Precaution is everything; One you've got the virus, unless it's a trivial or unoffensive one, better to format.
phzbOx··on I want to fix programming
Quantum computer might open unexplored doors.. :)
phzbOx··on Vivify: A color scheme editor for vim
Would also be cool if we could download it for different editors.
phzbOx··on Vivify: A color scheme editor for vim
This is fucking awesome. Wish I had that years ago.
phzbOx··on The things first time founders do…
Hacking for 6 months before releasing a mvp before getting in touch with real customers.
phzbOx··on Investment Firm Y Combinator Goes on Offensive Against Hollywood
Woa, that went huge fast. I mean, every startups is an offensive against something already existing, no? Yes, you can have an original idea but more often than not, it's based on something existing and enhancing it in some ways.
phzbOx··on Microsoft keeps it old-school with a pricey text adventure game
That's wrong. Sometime, you know you have a valid point and will get down voted because people won't spend the time to understand correctly your meaning. By saying it before hand, people will understand that you know it's a bit of a controversial subject but still spent the time to make your point.. and thus, won't just down-vote you because they thought you were wrong at first glance.
phzbOx··on C# to take a breaking change in version 5
IMO, the problem here is not the closure but how i is updated instead of being a new variable at each iteration. I guess it's like that for the sake of performance, but if i was immutable, that wouldn't happen. I.e. i would be a whole new variable at each iteration.

Here's another example:

  in: lambdas = [(lambda i: lambda: i)(i) for i in xrange(10)]
  in: [f() for f in lambdas]
  out: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
Why is it a different i? It's misleading because sometime we have a reference and sometime we've got a whole new variable.
phzbOx··on Poll: How much sleep do you get per night?
I wish I could sleep more but my body doesn't want. I sleep 5-6h/night; sometime I take a nap on the afternoon.
phzbOx··on Why I'm a Pirate
He's good a point about the easiness of downloading/watching. Here's a real story: In Canada, it seems like all streaming music websites are illegal. (Spotify, pandora, <you name it>). But, I still wanted to be legal. So, at the end, I had to "hack" my way to download spotify and listen to it. Isn't that stupid? If they decide that spotify is illegal, at least give me a better solution.
phzbOx··on Startups: Don't Host Your Blog on Tumblr
"A mistake people seem to make is assuming Tumblr is a blogging platform akin to Wordpress.com, it isn't, it's a different beast entirely."

From their about page:

"What is Tumblr? Millions of people sharing the things they do, find, love, think, or create."

Even if you can do more than a simple blog with tumblr, at its base it is a blogging platform. It's perfect for a startup that is busy doing lots of other things... if it wasn't for the fact that it's always down. I hope they'll someday add a "Always Up and running, no trouble" to their "30 reasons you'll love tumblr".

phzbOx··on Poll: Do you use app hosting or run your own server?
Mostly VPS because when you know what you're doing, SaaS just gets in the way and makes it harder/longer to do simple stuff.
phzbOx··on Designing Great API Docs
And don't forget to include a reference to day9.
phzbOx··on Hidden features of Python
I already knew mostly everything in it (Time to switch to a new language!) but here's two that I didn't know:

1.

  from __future__ import braces
Use {} to delimit scope!

2.

  try:
      import readline
  except ImportError:
      print "Unable to load readline module."
  else:
      import rlcompleter
      readline.parse_and_bind("tab: complete")

Used to use [tab]-completion in terminal. One could correctly argue that using iPython would be smarter.. but sometime you are working remotely and don't want to get out of the terminal and install, etc.
phzbOx··on Why Google And Facebook Need To Go Dark To Protest SOPA
SOPAthetic
phzbOx··on I quit my high-paying job to follow my dream of launching a startup. Here it is.
Nice idea! I like how it's focused on wordpress and iphone (rather than turn any website to android/iphone/etc.) Care to share some implementations details with follow HN-ers? :) I.e. Do you have a "plugin-converter"? How do you transform the "normal screen width" to a "mobile feeling"?
phzbOx··on Convore (YCW11) is reborn as Grove.io, a chat service for businesses
I'm not saying that Grove is not a good idea (It is actually!), I'm just a little afraid how the product targets a niche that are used to hack/configure things themselves. And, don't forget that developers enjoy hacking or setting up these kinds of server.

But yeah, I do agree with you that from a CEO point of view, it's not worth to waste time on this as there are already existing solutions.

phzbOx··on Convore (YCW11) is reborn as Grove.io, a chat service for businesses
Both goals are to improve communication for a team.
phzbOx··on Convore (YCW11) is reborn as Grove.io, a chat service for businesses
"When you're paying developers $$$, you don't want them to be setting up IRC servers."

Fair enough but still if it takes 1 hour to set it up vs paying 50$*12. (But I get your point, that's why I said I found it a bit risky in another post.. that's the developers mentality vs the CEO's one.)

phzbOx··on Convore (YCW11) is reborn as Grove.io, a chat service for businesses
I'm really happy for @leah and that pivot. I've used convore a lot but was also wondering where they'd make money. Grove.io is a sweet spot for me as I'm a big fan of IRC and I believe lots of programmers are. Still, I find it somewhat risky.

Programmers are used to configure and hack their way up.. I'd be afraid to ask them to pay for a service that they could quickly "apt-get" on their vps. (I'm exaggerating a little, but you get the point). I mean, for a really small team, just go on freenode and get a channel. (It's obviously free). And for a bigger company, it's worth spending 1-2 hours for that.

I think a free version for small teams would be great. But then, if you can charge for it, why not? :)

Anyhow, I've already offered my help (I'm mostly a django/python dev) but if you need another spare-time contractor feel free to contact me.

(Just wanted to say that mIRC is where I first learned to code.. and this is where I've learned socket, dialogs, etc. I remember, I coded a web server in mIRC to which I'd connect using a client inside mIRC (in @windows).. and I coded the server bot. It was fun time, I miss it.)

phzbOx··on Why I switched from Ruby back to C++
tl&dr: switch for performance but miss Ruby
phzbOx··on Tools I Use - tmux
I went from "Terminal" to "screen" to "tmux" to "stumpwm". Baiscally, what I really liked of tmux is the way I could frame my terminals logically or fullscreen easily. I also really enjoyed the fact that I had multiple "workspace". Basically, my WM was just not appropriate for the way I liked to work. Stump fixed that. It's dynamic, I can hack it from emacs and it has everything I liked about tmux. Obviously, I'm talking from my desktop perspective, if I'm working somewhere else remotely it's a different story.
← PreviousPage 3 of 10Next →