Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
rav
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
28 ms
·
271.
▲
by
rav
13y ago
You should be able to just create an empty repo at the destination and use git's own `git push --all` to bring in your existing repository.
272.
▲
by
rav
13y ago
> While a fun exercise, I feel that it doesn't actually test for actual programming ability as it actually requires the programmer to be familiar with this particular subset of algorithms first (something that isn't entirely fu
273.
▲
by
rav
13y ago
I would be happy if I was able to submit C++ or Python. I am very familiar with the data structures in their standard libraries, and implementing this in JavaScript is very tedious in comparison.
274.
▲
by
rav
13y ago
Since there's just a single instance, you can find the optimal solution manually and write a 29-line program that specifies the 29 rectangles in the optimal solution. The general version of this problem can be termed "the minimum
275.
▲
by
rav
13y ago
This is probably a case where an exponential backoff would be preferable. When the client is faced with a fetch error the first time, it should wait and try again in e.g. 10 minutes, and double the wait for each repeated error. This way, af
276.
▲
by
rav
13y ago
The OS will use free memory for disk caches which will help speed up any modern desktop. That's the 'cached' column output by `free`. My computer currently reports 18 GB used out of 20 GB, but 15 GB of that is disk caching. T
277.
▲
Hacker News issue #1: Something better than "Ask PG:" posts for bug tracking.
(github.com)
2 points
by
rav
13y ago
|
0 comments
278.
▲
by
rav
13y ago
A while ago, I implemented ropes based on the 1995 paper by Boehm et al in JavaScript. The interface provides methods charAt, charCodeAt, concat and substring, so it functions as a drop-in replacement for JavaScript strings (provided you li
279.
▲
by
rav
14y ago
With regards to merging, I prefer using a merge tool such as Meld. Whenever you're in a merge conflict, just run git mergetool. Meld is pretty easy to learn as long as you know to use shift-click to delete a chunk and ctrl-click to copy a c
280.
▲
by
rav
14y ago
I think it's a question of priorities and managing a schedule. My time (3rd year as a CS undergrad) is split between coursework, 12 h/week as a student programmer, student representative in various university/departmental committees, and si
281.
▲
by
rav
14y ago
GMail uses a old draft version of the API, and they check for the vendor-specific window.webkitNotification rather than the spec window.Notification, so a Firefox add-on or a GMail update is necessary.