Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
fphilipe
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
13 ms
·
91.
▲
by
fphilipe
9y ago
Same for Switzerland: http://www.teletext.ch/
92.
▲
by
fphilipe
9y ago
Or :cdo when using the quickfix window.
93.
▲
by
fphilipe
9y ago
Note that there's the ISO standard for weeks which uses slightly different abbreviations: SELECT to_char(now(), 'IYYY-"W"IW'); The difference is when the first week of the year starts. Compare yours to the
94.
▲
by
fphilipe
9y ago
One week is always 7 days. But one month (and year) is not always the same length. If you add or subtract n months from a timestamp or date at the beginning or the end of the month, it returns the beginning or end of the month n months away
95.
▲
by
fphilipe
9y ago
Does MySQL do that on varchar by default? Can't you just do this in PostgreSQL? SELECT id FROM users WHERE email = lower('Foo@example.com')
96.
▲
by
fphilipe
9y ago
No. Once in a while you still see old cars with yellow lights though.
97.
▲
by
fphilipe
10y ago
I'd say that's a Façade: https://en.wikipedia.org/wiki/Facade_pattern
98.
▲
by
fphilipe
10y ago
That's what I meant by generate a second requirements file after having done `pip install -r requirements.txt` to get the exact versions that were installed So you'd need to have a `requirements.txt` with loose versions suitable
99.
▲
by
fphilipe
10y ago
This is great news. Coming from Ruby and being used to Bundler, doing anything in Python or JS always was a huge pain. Countless times I deleted the current virtual environment or did an `rm -rf node_modules` to start fresh. So I'm exc
100.
▲
by
fphilipe
10y ago
I can highly recommend hub [1], which does steps 3, 4, and 5 in one command: hub fork username/repo 1: https://github.com/github/hub
101.
▲
by
fphilipe
10y ago
Working for me.
102.
▲
by
fphilipe
10y ago
That you should be doing anyways, shouldn't you?
103.
▲
by
fphilipe
10y ago
I used to do !$ a lot until I configured iTerm to allow me to cycle through the last args with alt-. which is way faster. But I did not know about the colon modifiers, so !$ might make its way back into my workflow. ZSH gives me a nice over
104.
▲
by
fphilipe
10y ago
Agree, support is usually very fast. Also, an outage like today is quite rare, I'd say.
105.
▲
by
fphilipe
10y ago
It took them 15 minutes to update their status from the time of our last received request.
106.
▲
by
fphilipe
10y ago
GitHub is happy as long as you upload the public key to GitHub. Git though uses pgp key servers to verify the signature.
107.
▲
by
fphilipe
10y ago
I'm not sure keybase does this by default, but make sure to upload your key to a keyserver such as MIT's ( https://pgp.mit.edu ). Otherwise, git will complain that the signature is invalid when doing `git log --show-sign
108.
▲
Timestamps and Time Zones in PostgreSQL
(phili.pe)
3 points
by
fphilipe
10y ago
|
0 comments
109.
▲
by
fphilipe
10y ago
Re --no-ff, you can flip the behavior so that you need --ff when you really want to fast forward by adding this config: [merge] ff = no
110.
▲
by
fphilipe
11y ago
psql2csv is just a wrapper around what you're describing. The point is that you don't have to write the "boilerplate" when all you need is a single query. Plus, it works nice with stdin and stdout, making it handy for qu
111.
▲
by
fphilipe
11y ago
The "again" in the title confused me. I knew that I read an article along these lines a while back so I thought this is yet another one. Turns out it was this post, which is dated October 23, 2015.
112.
▲
by
fphilipe
11y ago
My biggest gripe with GitHub has been the notification system. Personally I can't use the web UI for notifications because they bundle multiple notifications per issue. This leads to potentially missed notifications since it is up to m
113.
▲
by
fphilipe
11y ago
Yes, this! People seem not to know when to use replaceState over pushState. And in my eyes this is a clear candidate for replaceState. (There are also examples the other way around, such as GitHub's PR tabs, drives me insane every time
114.
▲
Free Concurrency with GNU Parallel
(phili.pe)
6 points
by
fphilipe
11y ago
|
0 comments
115.
▲
by
fphilipe
11y ago
Yes. But the point is that he was able to gain these two bits of information.
116.
▲
by
fphilipe
11y ago
That's an interesting way of showing a calendar. Is this common practice? I've never seen this before. I think the only yearly calendar I've seen more often lately is the one used on the GitHub profiles (here's a d3 one:
117.
▲
by
fphilipe
11y ago
Great redesign. Too bad they didn't bother with higher resolution images as it does look quite blurry on a retina screen. At least the logo could be an SVG.
118.
▲
Elixir is not Ruby
(zeroclarkthirty.com)
49 points
by
fphilipe
11y ago
|
7 comments
119.
▲
by
fphilipe
11y ago
One very obscure trick in ruby is the flip-flop operator. Never used it and I probably never will. There's an open issue to get rid of it[1]. Has anyone ever had a real use case for it? [1]: https://bugs.ruby-lang.org/i
120.
▲
by
fphilipe
11y ago
So basically time stood still for an hour instead of, as nowadays, repeating the third hour of the day. I wonder if this was really the case or if it was just an "easier" way to explain it to the average Joe.
More ›