Updates from hamstar RSS Toggle Comment Threads | Keyboard Shortcuts

  • hamstar 11:38 am on April 18, 2012 Permalink | Reply  

    I have a pet. That pet is a dog. I pat my pet. I don’t pet my pet. WTF

  • hamstar 3:01 am on April 17, 2012 Permalink | Reply skip inbox delete

  • hamstar 7:28 pm on April 7, 2012 Permalink | Reply
    Tags: , github   

    Github is awesome, but its missing time tracking. There is a pretty cool looking service called Freckle but it costs money. I am poor. So I made this quick and dirty GreaseMonkey script for tracking time spent on git issues. It does require one to setup a couple of very simple server side scripts though.

  • hamstar 1:22 pm on March 17, 2012 Permalink | Reply
    Tags: religion   

  • hamstar 8:42 am on March 11, 2012 Permalink | Reply
    Tags: politics   

    people don't know their true power

  • hamstar 4:01 am on March 11, 2012 Permalink | Reply
    Tags: , git   

    Change git history 

    Here’s the way to change your git history (I found it here):

    git rebase -i HEAD~3

    Then you should see this in a text editor:

    pick dd56df4 added support for rocket launchers
    pick 36c7dba made it power up the hand thrusters when fingers are splayed
    pick 7482e0d added heat seeking targeting system

    Change the word pick to edit of the commit that you want to edit and save/exit the editor and you will see this:

    Stopped at 7482e0d... added heat seeking targeting system

    7482e0d is now the last commit so you can now amend stuff to it. If you want to add a file to the commit add it in now:

    git add targeting/friendly_detection.c

    All done? Amend the commit:

    git commit --amend

    Then you are given a chance to edit the commit message, but you can just exit the editor if you want to keep it the same.

    Now you just need to rebase it:

    git rebase --continue

    And you’re done!

  • hamstar 5:04 pm on March 10, 2012 Permalink | Reply
    Tags: LFTR, nuclear power, thorium,   

    Why the fuck aren’t we using Liquid fluoride thorium reactors yet?

    • Thorium is 3 times as abundant as uranium, usually discarded as waste from rare-earth mining
    • LFTRs resist diversion of its nuclear fuel to nuclear weapons
    • The reactor is not at great pressures so it cannot explode and is easy to control at all times
    • LFTRs consume 99% of their fuel, typical nuclear reactors consume LESS THAN 1% (thats less than 1% efficient)!
    • LFTR’s are cleaner, fission wastes that are radioactive for 300 years (compared to 10,000+ years for typical reactors)
    • No expensive fuel enrichment needed!
    • 1 tonne natural Thorium = 35 tonnes enriched Uranium = 4,166,000 tonnes black coal
    • LFTRs can burn high level waste from typical reactors
    • LFTRs are much cheaper than a typical reactor due to simpler construction and safer reactors
    • Fission wastes from LFTRs include rare-earth metals used in electronics and medical isotopes

    This is it folks, This is what is going to take us into the future. Watch this:

  • hamstar 4:13 pm on March 10, 2012 Permalink | Reply
    Tags: , design patterns, php   

    PHP Design Patterns 

    This page has some nice descriptions on design patterns (in PHP).

  • hamstar 12:46 pm on March 10, 2012 Permalink | Reply
    Tags: economy, socialism,   

    This guy makes a lot of sense. The system is fucked. We need to change it, but trillions of dollars prevent this. Therefore the world is very likely headed for collapse. This is why I’m not having kids…

  • hamstar 11:14 pm on March 9, 2012 Permalink | Reply
    Tags: , linux commands   

    This is handy for finding files between a certain date range…

    touch --date "2007-01-01" /tmp/start
    touch --date "2008-01-01" /tmp/end
    find /data/images -type f -newer /tmp/start -not -newer /tmp/end

compose new post
next post/next comment
previous post/previous comment
show/hide comments
go to top
go to login
show/hide help
shift + esc