Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
kscaldef
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
165 ms
·
691.
▲
by
kscaldef
17y ago
presumably threads that are sleeping are similarly marked?
692.
▲
by
kscaldef
17y ago
Well, I think the main argument for tabs is that they will look exactly how each individual wants them to look. If you like things compressed horizontally, set your tab width to 2. If you want things really spacious, set it to 8. Spaces
693.
▲
by
kscaldef
17y ago
ruby-prof is a module that runs inside the ruby process, and hooks into the interpreter to track what's happening. You have options for how to run it. You can run the entire program within the profiler, but if you do that, you won't get d
694.
▲
by
kscaldef
17y ago
IME, many many developers have no idea how to measure and profile their code. The reason for the stories is to help educate people with less experience in what tools to use, and how to use them.
695.
▲
by
kscaldef
17y ago
The short and to-the-point version of the post went to the Rails-core mailing list. On my blog, I prefer to tell stories. Bragging about how fast you can serve a request is really meaningless when there's no way to know what's involved in
696.
▲
by
kscaldef
17y ago
I didn't feel like getting into the nitty-gritty details of my analysis, but Ruby does have a profiler, and it integrates into Rails quite well, and I was using it together with timers in this investigation. However, the exact same issue a
697.
▲
by
kscaldef
17y ago
No, we only incidentally found it while working on a piece of our app that serves static files. The issue looks universal to me, although with dynamic content or smaller output, the relative hit would be less noticable.
698.
▲
by
kscaldef
17y ago
I checked that, and I couldn't find any case where the body _wasn't_ a String. It's true, that the problem only becomes really glaring when the pages being served are quite large (this example was 1300 lines of HTML), but I still assert tha
699.
▲
by
kscaldef
17y ago
yeah, 3.0 changes a lot. It does appear that it will not exhibit the same problem.
700.
▲
by
kscaldef
17y ago
It's definitely odd. I'm inclined to attribute it to carelessness, and just not really thinking about the implications of precisely how they chose to implement the Rack specification. What's frustrating is that apparently there wasn't any
701.
▲
by
kscaldef
17y ago
True. Seriously. At least in 2.3. Pre-Rack, I don't imagine that code would have been present.
702.
▲
by
kscaldef
17y ago
I honestly do not enjoy the B&H store at all. Possibly I'm just a misanthropic introvert, but I find it much more pleasant to stick to the website. Too loud, too crowded.
703.
▲
by
kscaldef
18y ago
Most people don't deduct business expenses, and most people don't have sufficient medical expenses to exceed the 7.5% threshold. For the small number of people who do, they would amend their forms. As for other deductions, state income tax
704.
▲
by
kscaldef
18y ago
You're assuming the worst from couple of quotes which aren't clearly one or the other of these statements. From my personal interactions with women in programming (including, btw, the author of one of those quotes), most of them seem to be
705.
▲
by
kscaldef
18y ago
> We are all fully aware that if you are doing “kind_of?” checks all over the place then you are doing it wrong. I think the author missed the point of what Alex Payne wrote: > There’s lots of calls to Ruby’s kind_of? method, which
706.
▲
by
kscaldef
18y ago
Yahoo got too dependent on their "super-secret" retention bonuses. The first couple times they did it, it made you feel special. But, eventually it became clear that it was just a way to avoid giving raises and promotions. Maybe you have
707.
▲
by
kscaldef
18y ago
I've waited a year to launch something. Then I quit.
708.
▲
by
kscaldef
18y ago
Even in the case of the fast food worker, PG gets it wrong. When it gets slow in a restaurant, you end up cleaning the grease traps or other unpleasant jobs. I'd take the adrenaline rush of juggling a dozen orders on the grill any time.
709.
▲
by
kscaldef
18y ago
> Though I have read that some equatins regarding sub atomic particles were "too difficult to solve" before, I never had read a good explanation why. Solution to the equations of quantum field theory can be formally expressed using wha
710.
▲
by
kscaldef
18y ago
> Technically skilled people live in fear of being laid off. I don't know. The folks I know without a solid education of some sort live in much more fear of losing their jobs than I do. And with good reason it would seem. Most of the