HN user

scarboy

69 karma
Posts0
Comments24
View on HN
No posts found.

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.

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.

Go Hercule 12 years ago

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.

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.

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.

Smart Air 13 years ago

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.

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
  }
Learn Prolog now 16 years ago

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.

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.