Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
rraval
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
31.
▲
by
rraval
8y ago
I would really love to ditch more of my nvim setup for vscode, but this bug [1] from 3 months ago absolutely wrecks my productivity. I rely on splits as the primary means to navigate the codebase and having a single cursor position per file
32.
▲
PostgreSQL collation is a massive footgun
(gist.github.com)
1 points
by
rraval
8y ago
|
0 comments
33.
▲
by
rraval
8y ago
Yep, here's one: https://i.imgur.com/LEI4BAA.jpg It makes for a great conversation piece, even around non-tech crowds.
34.
▲
by
rraval
8y ago
My startup's monorepo has 2 root commits as well. When the company was first starting out, my co-founder and I created independent git repos. I was writing OCR type research-y code and he was doing more traditional CRUD REST webserver
35.
▲
by
rraval
9y ago
Cool, I didn't realize that. Thanks for the correction. I should mention that this was back in September 2014, where IBM was the only one offering anything in Canada (hence the migration). Once we'd done all the work to decouple f
36.
▲
by
rraval
9y ago
> What factors other than some specific affinity to Microsoft makes a company choose Azure over AWS? We have data residency requirements to keep things in Canada. This actually forced us to migrate off AWS, first to IBM, then eventually
37.
▲
by
rraval
9y ago
The article has a link to a previous blog post that expands on how Oracle does it (as well as other DB's). http://amitkapila16.blogspot.ca/2015/03/different-approaches... > Oracle maintain old versions in
38.
▲
by
rraval
9y ago
This seems to be explained in better detail by https://bo0om.ru/chrome-and-safari-uxss . Working via Google Translate, the claim seems to be that using MHTML and XSLT allows you to bypass the sandboxing rules and inject Java
39.
▲
by
rraval
9y ago
Yeah, I personally find this sort of syntax convolution ugly and hard to read but I thought it relevant. Enough rope to hang yourself with and whatnot.
40.
▲
by
rraval
9y ago
Since you're using Python for your example, it's worth mentioning that 3.5 extended the unpacking syntax [1] to sort of do what you want. foo = { 'a': 1, 'b': 2, **({ &
41.
▲
by
rraval
9y ago
loop do DB.transaction do # pull jobs in large batches job_batch = StagedJobs.order('id').limit(1000) if job_batch.count > 0 # insert each one into the real job queue jo
42.
▲
by
rraval
9y ago
We use StackExchange's blackbox [1] to check in GPG encrypted secrets into our monorepo (contains both ansible deployment playbooks and the code itself). This way, we can introduce secrets and the code that uses it in a single commit!
43.
▲
by
rraval
9y ago
They are the "same" by equality, but that's not the only relevant comparison. Ordering is important if you want lexicographic less than. Without ordering, you wouldn't be able to sanely run `sorted` on a iterable of name
44.
▲
by
rraval
9y ago
See https://codewords.recurse.com/issues/one/type-systems-and-lo... for a pretty elaborate response to this question. tl;dr: types are propositions and values are proofs of those propositions. Constructive logic i
45.
▲
by
rraval
9y ago
This is super interesting and I'm still going through the paper. For folks with a "Cool, but why" reaction, the introduction elaborates: For example, the P language [10] is a language for describing verifiable asyn- chr
46.
▲
by
rraval
10y ago
For background, my startup has been using CoffeeScript since August 2012. A quick check of our git monorepo says that we have 130k lines of code at HEAD, and have probably thrown out at least as many lines in rewrites over the years. I have
47.
▲
(2006) Object-Relational Impedance Mismatch: The Vietnam of Computer Science
(blogs.tedneward.com)
2 points
by
rraval
10y ago
|
0 comments
48.
▲
by
rraval
10y ago
I'm intrigued. Do you have a link or something that I can read more about the "new approach" as you say?
49.
▲
by
rraval
10y ago
One advantage of the template approach is it allows for test level parallelism, which may address your primary goal of performance. > Waterline queries are case insensitive; that is, Users.find().where(name: 'FOO') will turn in
50.
▲
by
rraval
10y ago
> To ensure each test has a clean slate, we clear the database between each test. The proposed solution to manually nuke the database state seems crazy to me. Some alternatives: 1. Run the entire test in a transaction, do flushes and ass
51.
▲
by
rraval
10y ago
That may just be because they are shell scripts instead of symlinks. On ArchLinux: $ ls -li /usr/bin/{grep,egrep,fgrep} 1728040 -rwxr-xr-x 1 root root 28 Apr 23 12:12 /usr/bin/egrep* 1728041 -
52.
▲
by
rraval
11y ago
Wow, this looks like a much better version of something we attempted for a hackathon [1]. I'm probably going to spend the weekend spelunking through this! Is there a more detailed write up of the inner workings floating around? [1] ht
53.
▲
by
rraval
11y ago
There is a recent v8-users mailing list thread on this exact topic. Here's one possible explanation on perf differences between `let` and `var`: https://groups.google.com/d/msg/v8-users/hsUrt4I2D98/E
54.
▲
by
rraval
11y ago
Not what you asked for, but I wrote an Rdio to Google Music exporter a while back: https://github.com/rraval/rdio-gmusic
55.
▲
by
rraval
11y ago
I use vim and have caps lock bound to control. I use Ctrl-[ to switch to normal mode and ctrl is so much more useful outside of just vim.
56.
▲
by
rraval
11y ago
Oh hey, I actually built something extremely similar in a hacknight recently [1]. Except instead of just converting URLs to fixed size tokens (also how chirp.io works), I allowed arbitrary bit streams and forward error correction. [1] http
57.
▲
Show HN: Transfer data over sound
(github.com)
8 points
by
rraval
11y ago
|
1 comments
58.
▲
by
rraval
11y ago
Just a quick tip, you would want to use `less -R` (upper case R) instead. `less -r` allows all raw characters which makes it difficult for less to maintain screen appearance. From the man page: -R or --RAW-CONTROL-CHARS Like
59.
▲
by
rraval
12y ago
I called it funky because `x` is never local to `inner`, but gets an entry inside `locals()` if `inner` uses it implicitly or explicitly with `nonlocal`. Non-funky behaviour would be to have an `enclosing()` that walks up the outer function
60.
▲
by
rraval
12y ago
Note that `locals()` actually does funky things around enclosing scopes. Consider the following Python2/3 code: def outer(): x = 1 def inner(): print(x) print("x = {x}".format(**l
More ›