HNHacker News
TopNewBestAskShowJobs

icedog

125 karma · joined November 29, 2012

submissionscomments
icedog··on The F# Path to Relaxation [video]
If anybody is interested in F#, look for a nearby meetup group to join. The SF F# group is pretty active and Mathias Brandewinder's hacker dojos are absolutely awesome!

[0] http://www.meetup.com/sfsharp/

icedog··on The Lost Art of C Structure Packing
I'm not saying it's exactly the knapsack problem, but it's quite related. Ordering from largest to smallest does not yield the optimal solution - period.
icedog··on The Lost Art of C Structure Packing
You must not be familiar with the knapsack problem.
icedog··on The State of Go
Besides the arrow keys, you can move forwards or backwards by clicking on the left or right edges of a slide.
icedog··on Web Socket Hook: A bridge between web hooks and web sockets
This is better described as a 'publish-subscribe pattern using web sockets'. To be brutally honest (take this as constructive criticism), the addition of the HTTP endpoint isn't very interesting either. Implementing all this takes perhaps less than 100 lines of code.

Furthermore, your site is susceptible to XSS

curl http://web.sockethook.io/hook/foo --data "foo=<script>alert('hello')</script>"

icedog··on Ask HN: What are your predictions for 2015?
Fastmail was once owned by Opera but bought itself to be independent again. I reckon they wouldn't be interested in being owned by another corporation, especially Yahoo.
icedog··on Show HN: My first startup, making premium long distance cyclewear
Took me 4.5 minutes, 103 requests, 13.1 MB transferred data.

Going to "Online Store" was also ~4MB more and 25 seconds...

icedog··on Streem – a new programming language from Matz
I'll take an extra branch over concatenation and dealing with new line chars any day.
icedog··on Streem – a new programming language from Matz
I disagree that it maps most directly to the problem statement. You're performing a common factor computation in your mind, which may be more difficult given numbers other than 3 and 5. In my opinion, pattern matching offers the most direct solution and comes with an abundance of compiler optimizations. Here's an example in Rust...

        for i in range(1i, 101) {  
            match (i % 3, i % 5) {  
                (0, 0) => println!("Fizzbuzz"),  
                (0, _) => println!("Fizz"),  
                (_, 0) => println!("Buzz"),  
                _ => println!("{}", i),  
            }  
        }
icedog··on Show HN: C# 6.0 Functional Language Extensions
I'm an F# developer, but still decided to not use F# to build an android app. Dealing with the UI libraries like support.v4 was just too painful from a functional perspective. If you don't need any object oriented dependencies, then it's smooth sailing.
icedog··on Rappelling Off a Roof
Ahhh, that explains it. Thanks for the detective work.
icedog··on Rappelling Off a Roof
Interesting that one of those presenters is named Howard Payne. Along with Payne being an elevator company, Howard Payne is the name of the antagonist in 'Speed', who hacks an elevator...
icedog··on The Raft Consensus Algorithm
Directly to the results: https://ramcloud.stanford.edu/~ongaro/userstudy/graphs.pdf
icedog··on Show HN: I built an Android game after work with a friend in 6 months
Your phone version is in the lowest 12%-tile. No offense to you, but as an Android developer, I'm content making my minimum required version Ice Cream Sandwich if it means avoiding any complexities.
icedog··on Firebase is Joining Google
We don't know how "solved" these questions are because it's closed source.
icedog··on Why your first Rust FizzBuzz implementation may not work
What do you expect; it's FizzBuzz.
icedog··on Why your first Rust FizzBuzz implementation may not work
Here's the same approach in F# without the different types of String; therefore, easier to get more functional.

    let fizzbuzz num =     
       match num % 3, num % 5 with      
          | 0,0 -> "FizzBuzz"
          | 0,_ -> "Fizz"
          | _,0 -> "Buzz"
          | _,_ -> num.ToString()

    [1..100]
      |> List.map fizzbuzz
      |> List.iter (fun (s:string) -> printfn "%s" s)
icedog··on Why your first Rust FizzBuzz implementation may not work
Putting the String issue aside, I just wanted to show the beauty of pattern matching.

    for i in range(1i, 101) {
        match (i % 3, i % 5) {
            (0, 0) => println!("Fizzbuzz"),
            (0, _) => println!("Fizz"),
            (_, 0) => println!("Buzz"),
            _ => println!("{}", i),
        }
    }
-- edited: removed `.to_string()`, thanks chrismorgan
icedog··on ColorRun – Simple browser game about colors
You could create a backend service that generates 1px swatches of a color; of course, this will only make it one step more difficult to cheat.
icedog··on The San Francisco Rent Explosion: Part II
I have a friend paying $2200 for a 230 sqft micro-apartment in SOMA. It's like having your bed in a tiny kitchen.
icedog··on Show HN: Workfrom – The best coffee shops and cafes to work from
Am I the only one who prefers to work in public libraries? The San Mateo library has plenty of seating/power outlets, a respectable cafe, and free underground parking.
icedog··on Ask HN: Do bootstrapped billion-dollar companies exist?
Spanx

http://www.forbes.com/global/2012/0326/billionaires-12-featu...

icedog··on Splashbase: Find free, public domain, hi res photos
I run a website which uses a blurred photo as the background. I'd love an API from splashbase that I could poll daily for rotating in new images on my server.
icedog··on Rust by Example
Web services aren't the only things that run on servers. And nobody is forcing you to use just one tool for all your jobs.
icedog··on Show HN: Untrusted, a JavaScript adventure game you play by modifying its source
Level 1 just reloads after I get to the exit.
icedog··on The Muse's Successful Application to YC W12
Since today's topic on HN is usability testing. I'm a bit confused by the connection between the goal stated on the YC application and thedailymuse.com. Correct me if I'm wrong, but I don't see anywhere that says this is a resource for women or "non-traditional candidates". How are you targeting this demographic without being discriminatory in your job applications?
icedog··on We lost a customer. This is how we found out
Indeed, this helps solve a bigger problem than usability: what the hell are they selling.

I'm often frustrated by the poor messaging written on landing pages or even the 'About [Product]' pages. Either the page is 100% marketing fluff or 100% technical info. With marketing fluff, I can read a thousand words and still not get any substance. With just technical info, they often leave out answering the key marketing answers: what are the competitive advantages?

icedog··on iGo: a new Syntax for GoLang
As an F# and Go developer, I reckon you should say, "IGo syntax looks very familiar to [any language which uses significant whitespace]". However, I'd still disagree with that statement.
icedog··on How Corruption Is Strangling U.S. Innovation (2012)
Regulation isn't an appropriate response. If taxi's are cheap to operate (hence ample supply but artificially limited) then personal vehicles are cheap as well. "Big fat lazy motherfuckers" will just buy their own vehicle and make an even larger mess.

Pardon my idealistic views, but it would be better to curb demand for taxis with: a. cheaper, more consistently on-time public transportation b. safer bike routes c. casual carpool programs

The real question is why you rather take a taxi than your local public transportation.

icedog··on PHP or ASP.net: Did I Do The Right Thing?
Did you ever use Razor?
Page 1 of 3Next →