joeshaw | 11 years ago | on: ITerm2 2.0
joeshaw's comments
joeshaw | 12 years ago | on: Leaving Go
The abs example could be reduced to:
import "github.com/joeshaw/gengen/generic"
func abs(x generic.T) generic.T {
if x < 0 {
return -x
}
return x
}
You could then generate different type-specific versions: gengen abs.go int32 | gofmt -r 'abs -> absInt32' > abs_int32.go
gengen abs.go float64 | gofmt -r 'abs -> absFloat64' > abs_float64.go
...
The downside is that the API is annoyingly non-generic (a different abs variant for each type) but at least you didn't have to type it in a bunch of times.I agree that abs() is kind of a toy example, but this approach has helped me a lot for various slice operations like indexing and deleting.
joeshaw | 12 years ago | on: Getting Started with Docker
http://jasonwilder.com/blog/2014/03/25/automated-nginx-rever...
joeshaw | 12 years ago | on: Density.io
Except there's one huge difference: anyone with eyes and ears can understand what the person is screaming. I would wager that even fewer than half of HN readers realize what's being broadcasted here.
What you're saying is that every human must have complete technological and implementation knowledge of any possible invention or they are not deserving of privacy. That position is not only elitist as a technophile, it's arrogant to think that any one person could possess that knowledge, let alone billions. At some point, you'll be the clueless one.
joeshaw | 12 years ago | on: Tmux 1.9 released
joeshaw | 12 years ago | on: Tmux 1.9 released
For this reason, I typically simply 'tmux detach;tmux attach"
joeshaw | 12 years ago | on: Tmux 1.9 released
joeshaw | 12 years ago | on: Comcast Acquiring Time Warner Cable In All Stock Deal Worth $45.2 Billion
joeshaw | 12 years ago | on: Webhooks Level Up
This new feature will make things so much easier to set up and debug, I'm thrilled. Before, you could not create a pull request hook without using the API, and this caused a lot of people confusion. We set up the hook automatically in Leeroy, but this will allow people to set it up manually if they want, and debug when it doesn't work.
joeshaw | 12 years ago | on: Docker 0.8: Quality, new builder features, btrfs, OSX support
$ docker login https://registry.example.com
2014/02/05 14:36:20 Invalid Registry endpoint: Get https://registry.example.com/v1/_ping: x509: failed to load system roots and no roots provided
The hostname in question has a valid SSL certificate. I encountered a similar problem in the past with Go built from homebrew[1][2]. Has anyone else seen this?[1] https://github.com/Homebrew/homebrew/pull/17758 [2] https://code.google.com/p/go/issues/detail?id=4791
Update: Filed a bug against docker, others are having the same issue. https://github.com/dotcloud/docker/issues/3946
joeshaw | 12 years ago | on: Docker 0.8: Quality, new builder features, btrfs, OSX support
Once I got that ironed out, everything is running very smoothly, and I don't have to ssh into the VM to do things. Nicely done.
My wish for 0.9 is a more streamlined installation process, possibly by simply incorporating these steps into a Homebrew formula.
joeshaw | 12 years ago | on: Hstore development for 9.4 release
joeshaw | 12 years ago | on: Everpix was great. This is how it died
We're moving more into the realm of calling ourselves a backup service than the aggregator/viewer service we are mainly today.
joeshaw | 12 years ago | on: Nest introduces their Smoke Detector
http://artisanelectric.net/blog/the-big-picture/how-old-are-...
http://www.nfpa.org/codes-and-standards/document-information...
joeshaw | 12 years ago | on: Google Launches The Chromecast To Bring Chrome To The Living Room
From the Wikipedia page linked by the parent:
Trade names for CEC are Anynet+ (Samsung), Aquos Link (Sharp), BRAVIA Link and BRAVIA Sync (Sony), HDMI-CEC (Hitachi), E-link (AOC), Kuro Link (Pioneer), CE-Link and Regza Link (Toshiba), RIHD (Remote Interactive over HDMI) (Onkyo), RuncoLink (Runco International), SimpLink (LG), T-Link (ITT), HDAVI Control, EZ-Sync, VIERA Link (Panasonic), EasyLink (Philips), and NetCommand for HDMI (Mitsubishi).
joeshaw | 12 years ago | on: Gotk3: GTK3 the Go way
Ideally the GTK main loop would run in its own OS thread, and there would need to be a way to ensure that no GTK calls happen in other goroutines. Other (threaded) environments tend to handle this by deferring via a one-off "idle" function that is scheduled and run by the GTK main loop for things like that.
joeshaw | 12 years ago | on: A better git log
[alias]
lt = log --graph --pretty=changes
[pretty]
changes = format:%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset
It's nice to be able to separate the format specifier from the alias itself. Makes the configuration a lot cleaner.joeshaw | 13 years ago | on: Flickr gets new UI, new Android app, 1 TB free space
joeshaw | 13 years ago | on: The best QBasic game ever?
Years later a friend of mine and I added modem support to Gorillas so we could play each other from our houses. Of course Scorched Earth would have been better, but we didn't have the source to that, nor the programming ability to add it at the time.
joeshaw | 13 years ago | on: Introduction to Go 1.1
Does anyone know if it is possible to determine what version of Go a given binary was compiled with? Perhaps extracting some metadata from an ELF section?
I'm a little surprised more people don't run into this more often. I've never seen the benefit in running tmux locally. Do most people only ever use tmux on one remote host?
Edit: it's been a while since I've tried it; apparently tmux integration doesn't work over mosh at all. So s/mosh/ssh/g above and it still applies.