HNHacker News
TopNewBestAskShowJobs

scarboy

69 karma · joined July 19, 2010

submissionscomments
scarboy··on H1B Visa Salary Database
https://www.foreignlaborcert.doleta.gov/performancedata.cfm on the Disclosure Data tab.
scarboy··on Factorio – a game where you can automate basically anything
http://www.giantbomb.com/arrival-by-crash-landing/3015-5658/...

Maybe someone should add Factorio

scarboy··on Netflix Content by Country
The DNS don't change. It looks like you need to visit once every thirty days to stay on a whitelist.
scarboy··on When coding style survives compilation: De-anonymizing programmers from binaries
Go embeds paths to libraries and some temporary paths in it's binaries. Feel free to run strings and possibly find the user's home directory and skip deanonymozation of source code.
scarboy··on Writing code doesn't mix well with oration
Wow, never thought I'd see slowbeef referred to as a YouTuber.

I helped a bit with his work on Policenauts but we haven't kept in touch since then. Maybe I'll try to get involved in this.

scarboy··on Updating Our Open Source Patent Grant
I'm glad that facebook fixed this solely for the fact that facebook open source software discussions will not be dominated by the contents of the PATENTS file.
scarboy··on Go 1.5 concurrent garbage collector pacing
Writing a GC is an iterative process and the Go team are taking the steps to implement a modern GC. You don't work for 2 years and then throw it all in at once.
scarboy··on For my final project I built a sous-vide immersion cooker
I completely agree, I'm just stating the alternative. Sometimes standard freezer ziploc bags aren't even big enough. I was doing a large prime rib a while ago and has to use the larger size freezer bags that aren't normally available at my grocery store. If you used something else you would need a large amount of butter/liquid to get rid of the air.
scarboy··on For my final project I built a sous-vide immersion cooker
You can use mason jars if you are worried about plastic.
scarboy··on For my final project I built a sous-vide immersion cooker
I was looking for the quote and found an old hn post that has the cooking issues link and information: https://news.ycombinator.com/item?id=7631985
scarboy··on Gorename: easy refactoring tool for Golang
It's no expertsexchange. I wouldn't bother changing it.
scarboy··on Go Hercule
Not sure if it was your intention, but your weekly update case will reset every time there is a manual update. I avoid time.After for recurring tasks in a select loop for this reason.

time.Ticker is great if you want to repeat the task at approximately the same interval. time.Timer is what I use when I want the task to repeat a certain time after the previous task has finished. You can also conveniently use timer.Reset(0) to trigger an immediate tick.

scarboy··on The Rust standard library no longer has any scheduling baked into it
Go is moving to contiguous stacks in 1.3.
scarboy··on Canada Post to phase out urban home mail delivery
It's the principal. I live close enough to an airport CBSA office that it just takes an hour of my time and a few emails.
scarboy··on Canada Post to phase out urban home mail delivery
You can decide to self clear at any point before accepting the package. It doesn't matter if they've made you an invoice or not.
scarboy··on Canada Post to phase out urban home mail delivery
Next time you get a package from UPS just don't answer the door.

1) Call/Email UPS and request a commercial invoice and the depot the parcel is being held at. If it's not being held at a depot tell them you want to self-clear and for them to hold it. You may have to argue with them for a while to convince them this is a possibility.

2) Go to a CBSA office with the original receipt, commercial invoice and depot location, and pay taxes to get your B15 form. You shouldn't pay taxes on shipping.

3) Call UPS and ask them where you can send the B15 form.

4) Send them the B15 form with your tracking number on it and ask them to release your package.

scarboy··on Profiling Go Programs
net/http/pprof/pprof.go is just some boilerplate around the built in profiling functions. Copy it into your application and use your own init function.
scarboy··on Smart Air
I like this product, it appeals to a market where there isn't much money to spend and is probably effective.

The consumer air purifier market is a mess. There is so much misinformation and fake reviews out there that it's impossible to make a decision.

Each company runs dozens of smear sites against everyone else. All the Amazon reviews look fake. All the companies seem to have something wrong with them. It got to the point that when I was doing me research I just gave up and decided to not buy anything.

scarboy··on Replacing Clever Code with Unremarkable Code in Go
You should be using map[T]struct{} for sets instead of bool. struct{}s use 0 bytes and there will be no confusion as to what the value is for.
scarboy··on Quick and Clean in Go
You can modify the state by using named return values.

  func ContrivedExample() (file *os.File, err error) {
    file, err = os.Open("something.txt")
    defer func() {
      if err = file.Close(); err != nil {
        file = nil
      }
    }()

    return
  }
scarboy··on Minimalist renditions of international brands
These renditions ignore illiterate or lazy shoppers who rely on pictures for their purchasing.
scarboy··on Learn Prolog now
I've been meaning to learn Prolog since I took an AI course that focused on theorem proving.

I can't help but notice that the webpage looks like one of the awful default Beamer presentation styles.

scarboy··on IDA Pro 6.0 with QT-based GUI (Native support for Linux & Mac)
I'm so glad I don't need to keep a Windows box around to have a GUI for IDA. Now if only they'd release a new free version that had the GUI.
scarboy··on Logicly - the digital logic simulator
This looks like a neat piece of software to put on the web. It is, however, lacking usability. As a student learning digital design, you want circuit diagrams to be clear and results to be easily and quickly visible.

Wires between nodes are laid out automatically and can not be routed on a grid. In a big design (not that this is meant for that) things will get messy quickly.

You have to click simulate to see the results of your circuit. This is annoying. These circuits are simple and the output can easily be detected whenever a change is made.

Another useful feature is the have keys (0-9) mapped to switches. Testing, for instance, a four bit multiplier would be much easier if you don't have to operate the mouse so much.

I hate to recommend another piece of software, but I think the authors can learn a lot from it's features. Atanua (http://sol.gfxile.net/atanua/) is a cross-platform logic simulator that has all of the above features. It was a great tool when I needed to quickly prototype something for a class, and I still recommend it to students in a class I TA. It hasn't been updated in a while, the OSX version has to be run through Rosetta, but I can't see any glaring omissions the author made that would make it unusable.

Finally, it's 2010, this would make an awesome HTML5 app instead of being written in Flash.