Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
jayferd
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
21 ms
·
181.
▲
by
jayferd
14y ago
fair.
182.
▲
by
jayferd
14y ago
That sounds useful. This gets me though: > The VMs provided by Microsoft will not pass the Windows Genuine Advantage and cannot be activated. I mean, there's a workaround, but where's the love from Microsoft? Don't they want me to be
183.
▲
by
jayferd
14y ago
If I, as a developer, decide my site supports a browser, I know I'm going to have to spend some time doing QA on that browser. Standards are cool, but I've run into enough FF and Chrome bugs that I always test. That being said, the cost of
184.
▲
by
jayferd
14y ago
Most user-agent strings start with "Mozilla". It's a quirk from the very weird history of the user-agent string. http://webaim.org/blog/user-agent-string-history/
185.
▲
by
jayferd
14y ago
Not quite 55K - lots of these are duplicated as many as 4 times in the dataset. $ wc -l twitterpw.txt 58924 twitterpw.txt $ sort twitterpw.txt | uniq | wc -l 36997
186.
▲
by
jayferd
14y ago
I am disappoint. $ git --distributed-is-the-new-centralized Unknown option: --distributed-is-the-new-centralized usage: git [--version] [--exec-path[=<path>]] [--html-path] [-p|--paginate|--no-pager] [--
187.
▲
by
jayferd
14y ago
That's... a lot of steps.
188.
▲
by
jayferd
14y ago
Leaving at 5 has nothing to do with how "passionate" you are. I write better code when I go slowly and have time to be a human being. Even if it were my company, and I was extremely passionate about the product, I would still set these bo
189.
▲
by
jayferd
14y ago
I've posted this here before, but I think it bears restating. If you work as a software engineer in California and have a salary of less than about 81K, you are entitled to overtime pay. See the law here: http://www.leginfo.ca.gov/cgi-bin/
190.
▲
by
jayferd
14y ago
Yep, that's why I always demand that if you're not going to use curlies, you make it a one-liner. // okay if (!isActive) $parent.toggleClass('open'); // not okay if (!isActive) $parent.toggleClass('open'); That w
191.
▲
by
jayferd
14y ago
I can't speak for Brendan, but I generally think && / || are great for assignment , but otherwise it's code-smell. var foo = obj && obj.bar; // great !isActive && $parent.toggleClass('open'); // smelly
192.
▲
by
jayferd
14y ago
I love getting pull requests, and even when there's a problem with the patch, I usually just merge it anyways and fix the problems myself. I do this because that's what people did for me when I was new. I accidentally crapped all over this
193.
▲
by
jayferd
15y ago
+100. That's one of the things I love about Haskell - it makes the "right" things easy and the "wrong" things hard.
194.
▲
by
jayferd
15y ago
Sweet. Mathquill (mathquill.com) will do the same, I believe, as long as you wrap your math in an element with class "mathquill-embedded-latex".
195.
▲
Cache: caching for humans
(github.com)
2 points
by
jayferd
15y ago
|
0 comments
196.
▲
by
jayferd
15y ago
Yes, but how long until you can print a 3D printer?
197.
▲
Helios: A Report to the Community
(linuxlock.blogspot.com)
1 points
by
jayferd
15y ago
|
0 comments
198.
▲
by
jayferd
15y ago
By default, yes. But you can also use your $PATH to select a particular ruby per session. The `fullpath` helper is for that: export PATH="$(ry fullpath mri)"
199.
▲
by
jayferd
15y ago
Good point. A major part of the simplicity is that ry doesn't need to be loaded into your shell or shim any binaries. You simply add $PREFIX/lib/ry/current/bin to your $PATH (there's a helper to do this), and vanilla ruby/rubygems take ca
200.
▲
Ry: the simplest virtual environments for Ruby
(github.com)
31 points
by
jayferd
15y ago
|
5 comments
201.
▲
by
jayferd
15y ago
Totally avoidable via `Hash#slice`. Come on guys, this is common knowledge now. def update find_pk.update_attributes(params[:public_key].slice(...)) end
202.
▲
Ask HN: Looking for a mentor on PL design/implementation
3 points
by
jayferd
15y ago
|
0 comments
203.
▲
Pointing fingers
(nonviolenceftw.tumblr.com)
1 points
by
jayferd
15y ago
|
0 comments
204.
▲
by
jayferd
15y ago
Awesome. I do notice a gigantic warning on MDN to not rely on this behavior, though: https://developer.mozilla.org/en/JavaScript/Reference/Global... In p.js (github.com/jayferd/pjs), I used this pattern/workaround: var Breakfast =
205.
▲
by
jayferd
15y ago
Good points all. I can only speak from personal experience. With my laptop, I'm usually plugging in to various monitors of different sizes and in different positions. In order to configure the monitors, you have to use NVIDIA's proprieta
206.
▲
by
jayferd
15y ago
It's also impossible to instantiate an object with `new` and varargs. new Breakfast('bacon', 'eggs') // great new Breakfast.apply(null, ['bacon', 'eggs']) // b0rk
207.
▲
by
jayferd
15y ago
I tried installing Ubuntu on a MBP my office bought for me. It was a while ago, but the killer for me was that the fans didn't work properly. It would overheat within 5 minutes of use. I highly recommend a Strata from ZaReason (zareason.c
208.
▲
Shell Usability: What TCL is missing
(jayferd.us)
2 points
by
jayferd
15y ago
|
0 comments
209.
▲
by
jayferd
15y ago
As a TCL programmer, you are permitted to imagine "everything is a string". In most TCL implementations, though, your "strings" are stored as objects underneath, and converted when necessary. So if you say: set foo [+ 1 2] incr
210.
▲
by
jayferd
15y ago
Yes, tcl's `exec` command implements a special syntax for using UNIX pipes, but what I'm referring to is not UNIX pipes, but a language feature - an interactive language needs to implement some kind of pipe/chain/cascade syntax, so you can
More ›