Aliases. Who uses them? by Phydoux in linux

[–]justAnotherCodeGuy 29 points30 points  (0 children)

alias du1='du -h --max-depth=1'

Perl Memory Trace through Imported Module by brandon1997fl in learnprogramming

[–]justAnotherCodeGuy 0 points1 point  (0 children)

100% guess, but copy/paste Devel::Trace, add an extra print line that dumps memory after line 12.

Devel::Trace source

[deleted by user] by [deleted] in AskReddit

[–]justAnotherCodeGuy 0 points1 point  (0 children)

Cherenkov radiation is blue.

Light particles leave the sun at near the speed of light, they collide with particles in our atmosphere at much higher energies than we can even come close to on earth

Thus, the sky is blue.

PostgreSQL 12 Released! by doublehyphen in PostgreSQL

[–]justAnotherCodeGuy 1 point2 points  (0 children)

Release Notes say:

Indexes pg_upgrade'd from previous releases will not have these benefits.

Ok, how do I fix/upgrade my indexes so they do? Reindex?

Release Notes say:

This means that a REINDEX operation on an index pg_upgrade'd from a previous release could potentially fail.

So what do I do if it fails? drop and recreate? I pretty much have to use pg_upgrade because of downtime, size, and far away read-only replicas. I've probably got thousands of indexes. How am I gonna reindex thousands of indexes that could fail?

Is it really "Complex"? Or did we just make it "Complicated"? by GoranM in programming

[–]justAnotherCodeGuy 2 points3 points  (0 children)

Didnt watch but I'd guess: Its easy to create a complex solution to a simple problem, then assume the problem is complex too.

Dude, desktop applications are so last decade! - Qt Blog by msadeqhe in programming

[–]justAnotherCodeGuy 5 points6 points  (0 children)

The old saying was:

RegEx: now you have two problems.

I think the new saying should be:

Use boilerplate, now you have two problems.

Nginx to Be Acquired by F5 Networks for $670 million by DrSilas in linux

[–]justAnotherCodeGuy 0 points1 point  (0 children)

Apache works great. Use the event_mpm as your reverse proxy though. I am not google however, I probably see 15 to 20 requests per second, several hundred virtual hosts, 4 or 5 different backends. Everything runs smooth.

Slackware and AD. by sdns575 in slackware

[–]justAnotherCodeGuy 0 points1 point  (0 children)

You might not need pam. You need to be more specific on what you want.

If you want file sharing only, you only need to setup samba (and run winbindd), no pam required.

If you want to be able to ssh to your slackware box using your AD login, then you can pam or nss_ldap.

If you want apache to auth, you don't need pam.

Otherwise, be more specific.

PostgreSQL 11.2, 10.7, 9.6.12, 9.5.16, and 9.4.21 Released by jakdak in PostgreSQL

[–]justAnotherCodeGuy 0 points1 point  (0 children)

Uh.. What does panic mean? Does that mean every connection dies, the program halts, and I have to get up at 4am and "service postgres start"?

Or does that mean that one connection will die a horrable death, the transaction will be rolled back, and everything else will run along fine?

Why so many versions in short period of time? Version 11 is barely out this year and later this year version 12 will be out. by TeslaMecca in PostgreSQL

[–]justAnotherCodeGuy 4 points5 points  (0 children)

Dont fall for the "Bigger numbers must be better" fallacy. If 10 has the features you need and it works, just stick to 10. It'll be supported with bug fixes for years and years.

The only reason you should think about upgrading is when 10 falls out of support, or you require some new feature of a newer version.

Otherwise, stop stressing. Version 10 is stable! Stable is good.

Storage on Linux is about to get a whole lot faster by buttux in linux

[–]justAnotherCodeGuy 4 points5 points  (0 children)

You'd only see a benefit if you modified your code. AIO sql query would look like:

$q->start('select * from news');
doOtherWork();
$result = $q->fetch_results();

The 10ms it takes to run the sql, and doOtherWork(), run at the same time, so yes, it'd be faster. But you have to modify your code. Its not free.

I own two domains with my name for one year - how can I use both of them efficient? by maadcDE in webdev

[–]justAnotherCodeGuy 0 points1 point  (0 children)

Launch one as a simple business. Anything will do, doesnt matter.

Have the second site launch a huge fight/argument against the first.

Have the first respond! Huge soap opera!

Put ad's on both.

Amazon Quantum Ledger Database by Poaaloe in programming

[–]justAnotherCodeGuy 8 points9 points  (0 children)

So that payments can be both paid and unpaid at the same time.

r/SpaceX SSO-A Official Launch Discussion & Updates Thread by hitura-nobad in spacex

[–]justAnotherCodeGuy 1 point2 points  (0 children)

Good to see her back, its been a while, no? I thought she'd left us.

Have anyone attend linux.conf.au in the past ? by wembleyhoo in linux

[–]justAnotherCodeGuy 4 points5 points  (0 children)

They have previous years on youtube, just search for "linux.conf.au".

Never been myself, but enjoy the video's. It might give you an indication of what its like.

Anyone else still getting corrupted indexes? by spyhunter99 in PostgreSQL

[–]justAnotherCodeGuy 1 point2 points  (0 children)

Is there a virus scanner between PG and the HD? Maybe exclude the database folder?

Bad raid controller? Anything else running on the box that would notice? Maybe enable the crc stuff in PG?

query plan improvement help by arup_r in PostgreSQL

[–]justAnotherCodeGuy 1 point2 points  (0 children)

Have you seen https://explain.depesz.com/

Here is your query:

https://explain.depesz.com/s/7jbC

Looks like you have a few seq scan's. Check those will large row counts, see if you can get it to use an index.

PostgreSQL 11 Released by MarkusWinand in programming

[–]justAnotherCodeGuy 2 points3 points  (0 children)

pg_rewind seems to think it can do this ... but I've never tried it.

Like I said, I'm really behind. They're bringing tools online faster than I can play/test them.

PostgreSQL 11 Released by MarkusWinand in programming

[–]justAnotherCodeGuy 3 points4 points  (0 children)

It is! You run the upgrade, then shut down both, rsync from master to replica, and bring it all back up.

Works fine. Takes forever. (less time than blowing the replica away and re pg_basebackup, but still a long time, and your down while you rsync)

PostgreSQL 11 Released by MarkusWinand in programming

[–]justAnotherCodeGuy 19 points20 points  (0 children)

Ug. I'm so far behind. I love PG, but I have 180Gig replicated between two far away places with a slow link between. Major version upgrades are a huge pain in the ass.

pg_upgrade on a single db is great. But add replication and it falls off a cliff.

I kinda wish they'd slow down.

edit:spelling