Better HN
topnewbestaskshowjobs
Log inSign up

icedog

125 karma · joined Nov 29, 2012 (13y ago) · 77 submissions

Submissions

comment 11y ago · link · parent

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/

comment 11y ago · link · parent

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.

comment 11y ago · link · parent

You must not be familiar with the knapsack problem.

comment 11y ago · link · parent

Besides the arrow keys, you can move forwards or backwards by clicking on the left or right edges of a slide.

comment 11y ago · link · parent

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>"

comment 11y ago · link · parent

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.

comment 11y ago · link · parent

Took me 4.5 minutes, 103 requests, 13.1 MB transferred data.

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

comment 11y ago · link · parent

I'll take an extra branch over concatenation and dealing with new line chars any day.

comment 11y ago · link · parent

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),  
            }  
        }

comment 12y ago · link · parent

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.

comment 12y ago · link · parent

Ahhh, that explains it. Thanks for the detective work.

comment 12y ago · link · parent

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...

comment 12y ago · link · parent

Directly to the results: https://ramcloud.stanford.edu/~ongaro/userstudy/graphs.pdf

comment 12y ago · link · parent

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.

comment 12y ago · link · parent

We don't know how "solved" these questions are because it's closed source.

comment 12y ago · link · parent

What do you expect; it's FizzBuzz.

comment 12y ago · link · parent

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)

comment 12y ago · link · parent

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

19.

Show HN: Chronograph.io – Cloud synchronized stopwatches and timers(chronograph.io ↗)

3 points · by icedog · 12y ago · 3 comments

comment 12y ago · link · parent

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.

comment 12y ago · link · parent

I have a friend paying $2200 for a 230 sqft micro-apartment in SOMA. It's like having your bed in a tiny kitchen.

comment 12y ago · link · parent

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.

comment 12y ago · link · parent

Spanx

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

comment 12y ago · link · parent

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.

comment 12y ago · link · parent

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.

comment 12y ago · link · parent

Level 1 just reloads after I get to the exit.

comment 12y ago · link · parent

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?
123