Hacker Newsnew | past | comments | ask | show | jobs | submit | more coderholic's commentslogin

I have the current time printed in my prompt, which means I can easily see how long commands took to run, eg:

    [start time] $ ./run_long_script
    [ end time ] $
My actual prompt looks like:

    [09:36] bmd-mba|bmd ~
    $ whoami
    bmd
    [09:36] bmd-mba|bmd ~
    $
Details in https://github.com/coderholic/config/blob/master/.bash_profi...


Actually with that setup (which is a bit like mine) you can see how long it took from the finishing time of the last command you executed (when your PS1 was redisplayed) to the finishing of the command you just executed.


Is there a way to do this so the timestamp includes seconds? Thanks.


By default "\t" in your PS1 will display the time the same way `date +%H:%M:%S` does (which includes seconds).


Posted on April 1st, 2012


While that's true, it is also interesting how badly hash tables perform if you can fill them with NaNs.

A quick prod tells me that g++'s unordered hash tables have the same bug.. interesting.


That's only for the live feed, not any of the catch up content.


Get a clue, the Windows setup says something like "Do not install without a license"


They really are correct. I've had this confirmed by the TV Licensing folks directly.


My bad.


Wow. Shocking news! I've been reading Aaron's stuff online and following him on twitter for years. Only last week I re-read his amazing "Raw Nerve" blog post series http://www.aaronsw.com/weblog/rawnerve

Lost for words!


Great article from one of London's great startups!

Love the line "Most startups aren’t competing with other startups; they’re competing with no one giving a shit."


Agreed. I want this hanging where I can see it anytime I'm working.


Here's a (django specific) alternative: https://github.com/coderholic/django-cities


I give you full credit in the about page. I've made some minor tweaks, and assumed it wouldn't be a problem as you open sourced it. Was certainy not my intention to offend. Happy to change if it'd make you happy.


The stylesheets or templates are not licensed under an open source license. In fact they are completely closed source.

Don't worry too much about it though because I have since changed the design of my website. You were not the first to just copy the design. I would however prefer it a lot if you changed the design.


I agree that he should have asked first - just because something is on github does not make it open source. Seems like an oversight, no harm, no foul.

But I'm curios, why would you prefer he change it? It is a very barebones stylesheet, nice typographical choices but at the end of the day this is hardly a unique design.

And thank you for Flask and other goodies. :)


It's been a fantastic 2 years! The next event will be on Aug 23rd. See http://www.meetup.com/HNLondon/events/77825522/?a=ea1_grp... for details.


I'm honoured that this post has made it to the front page a second time! Here are the comments from the first time around: http://news.ycombinator.com/item?id=2880800


The title originally included something like "visualization with D3.js", which has been removed for some reason


...and which was why I clicked on the article in the first place. Because the title was, you know, helpful and descriptive.


I clicked on the title "Prime Number Patterns" and am a little disappointed.

I'm just not seeing any patterns other than the semicircles of increasing integer diameters.

Should I stare at it longer?


Umm... yes, you should actually.

Those patterns of semicircles aren't random, of course. They correspond directly to the degree of compositeness of the chosen modulus. Compare for n = 60,61,62, for example.

The higher the totient value for n, the more circles you see, basically.


Right, so I can look at the diagram and see that 59 and 61 are prime while 60 has many divisors. I can kinda see that the density of primes decreases gradually.

But I can't see a broader pattern beyond that.

Now here I can see some patterns! https://en.wikipedia.org/wiki/Ulam_spiral


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: