News for hackers. Stuff that matters.

monkeydata

Re: on Tuesday June 14, 2022 @09:13PM (#31748023)
nil
Re:Ask HN: How to send dkim/spf compliant email from Debian? on Saturday August 28, 2021 @11:34AM (#28338850)
amavis

All email is perl.

in postgres you can do

SELECT a.this, b.that FROM a, b WHERE a.id = b.a_id;

it just implies SELECT ... FROM a LEFT JOIN b ON(true) WHERE ...

Re:Are MySQL columns names sometimes case sensitive? on Thursday May 27, 2021 @01:12PM (#27305421)
it only matters when you quote the column name. SELECT a."This_Col" = b.this_col FROM table a JOIN "Table" b;
Re:We Can Do Better Than SQL on Tuesday August 11, 2020 @08:45AM (#24119691)
sql is the language of the gods
two things 1) leading commas in SQL 2) RAISE an EXCEPTION or RETURN --no more `else` statements in code

SELECT this , that , something FROM table

takes a while to get used to

Re:Ask HN: What is your go to stack for REST API? on Thursday November 14, 2019 @08:32AM (#21535194)
yeh, it is quite a bit cheaper. However, heroku is more aggressive in throttling the cheap stuff. I still use it for ci though. AWS simply offers more granular control and a more robust infrastructure. If you dig down into it, you'll see heroku is actually running on AWS.
Re:Ask HN: What is your go to stack for REST API? on Friday November 08, 2019 @08:23AM (#21481930)
cakePHP on EC2 + postgres on RDS is nice. toss in some Redis caching and feed it traffic from a load balancer. you can get a lot done with very little effort.
Re:Do pro software devs memorize language syntax? on Sunday November 03, 2019 @08:15PM (#21438124)
to be productive, you have to minimize the need to rtfm, but you should also be cognizant of any new implementations -- a refresher may sometimes provide a better way.

I recently stumbled on the postgres method jsonb_insert(jsonb,path,value) which is much more elegant than jsonb_set(jsonb,path,jsonb||value) when you just want to add a thing to some json array inside an object.

I hadn't really looked at the docs much since 9.x, I deal with jsonb everyday, so I had what I needed memorized. But despite keeping my installs updated, I had been doing it the hard way for way too long.

Re:Google Calendar Is Down on Tuesday June 18, 2019 @10:37AM (#20213522)
yeh... but, we sorta live and die by the evidence. We can't just blindly assume OP is correct. Thankfully, OP knew that and saved us the hassle or typing it ourselves.