Best Motorcycle/Gear Life Hacks For Under $50 by emad333 in motorcycles

[–]ketralnis 1 point2 points  (0 children)

If zip ties aren't solving your problem, you're not using enough of them

Rust early-mid combat weapons by bananaman696161 in rust_gamedev

[–]ketralnis 9 points10 points  (0 children)

I think you've stumbled into the wrong subreddit :) Try /r/playrust

Found a planet to colonize ... by quasars235 in Stellaris

[–]ketralnis 0 points1 point  (0 children)

I've got this one before, is there anything you can do about it? There's nowhere to land, is terraforming the only option?

Can someone explain this disadvantage of WAL? by piezen in sqlite

[–]ketralnis 1 point2 points  (0 children)

It looks like you understand this already but for the casual onlooker, we're talking about separate database files, not tables within a single database file. If you're not using ATTACH, this probably doesn't affect you.

Imagine that you have a database that contains all of the orders for your website, and another database that contains the audit log for the first database. It's possible that if you use WAL mode, and if power were to be lost during a transaction, that you could have orders written to the orders database but not the according audit log entries in the other database file. Or you may have audit log entries without the according orders.

How to manually start/stop reddit app(not the service)? Vagrant/Ubuntu14 installed fine. by andthatsmynametoo in redditdev

[–]ketralnis 1 point2 points  (0 children)

You can just do what the service is doing. The upstart job looks like

. /etc/default/reddit
wrap-job paster serve --reload $REDDIT_INI

You don't need the wrap-job stuff so you probably just want to get a shell (probably just vagant ssh) and do

sudo stop reddit-paster
. /etc/default/reddit
paster serve --reload $REDDIT_INI

Redis significantly slower when reaching maxmemory? by vide80 in redis

[–]ketralnis 0 points1 point  (0 children)

Okay, but with them so low you can't actually gather the data you need to debug. Up to you I guess.

Redis significantly slower when reaching maxmemory? by vide80 in redis

[–]ketralnis 0 points1 point  (0 children)

It does make sense that redis would get slower as it gets closer to full: before that it never has to find memory to free. I wouldn't expect it to be in the 50ms range but I would expect it to go up.

5ms/50ms is a really small timeout, I'd start by turning that up (I'd say go to 500ms or higher for both) and seeing what the actual response times are before & after it fills up. With that you can gather data to see how much it is actually jumping. Right now by timing out you can't know how bad it really is.

What would happen to credit card companies if.. by itsmegstho in answers

[–]ketralnis 0 points1 point  (0 children)

If you charge $1,000 on a 20% APY card and are only paying minimum payment which is probably just the interest, in about five years you've paid as much on interest as you charged to it in the first place. If the credit card company paid the prime rate to borrow that $1,000 to pay the merchant, they only paid ~3.5% for the money that you paid 20% for.

They'll do just fine if you never pay it off.

Let's take a moment of silence for the Sysadmins at the Australian Tax Office right now by sigmatic_minor in sysadmin

[–]ketralnis 4 points5 points  (0 children)

A number of years ago I worked for a small software company that sold a file/collaboration server that of course we also used ourselves. Our install of our software had mostly business docs and the like.

A hard drive in a large raid array for that server failed. Normally that would be no big deal and our (underpaid/overworked of course) sysadmin went to replace it, but somehow in the process swapped two of the disks around in the process. Before he could realise what had happened, the damage was done and the drives were effectively wiped. We scrambled for the backups, which turned out to be a giant set of empty files.

The backups had been broken for months.

What followed was a massive multi-pronged recovery effort. The wiped array contained the actual data in the files, but a different array carried the directory listings and permissions. We took the last working backup and restored what we could from that. The client side for our product kept a cache of the data for recently used files, so we took every computer in the company and wrote some scripts to scrape their cache from them (and try to resolve conflicts because they may have old versions). We used the wayback machine to retrieve what we could of the company's website (which for terrible reasons was served from our product as well). Small amounts of data was available from clones of the machine that developers had taken to reproduce bugs in our product found on that install.

In the end a lot of data was irretrievably lost. And we learned an important lesson about backups: if you aren't doing test restores, you aren't backing up.

Kindly unblock the domain hotsmash.co please by Annababy1 in bugs

[–]ketralnis 0 points1 point  (0 children)

It looks like you're mostly trying to post to /r/gaming, try messaging the mods there instead

I Built A Desktop Robot That Responds Entirely In GIFs by abhi3188 in DIY

[–]ketralnis 0 points1 point  (0 children)

I really like the illusion of "squishiness" that the clothy texture gives it. It really feels more alive that way

Upcoming change to vote scores. by sodypop in modnews

[–]ketralnis 26 points27 points  (0 children)

Yes, but they aren't affected quite as often

The worst "#define true" prank (that I can think of) by dramforever in ProgrammerHumor

[–]ketralnis 12 points13 points  (0 children)

I think you'd just segfault a lot most of the time because sizeof(char)-1 == 0 and malloc(0) is specced to return "either a null pointer or a unique pointer that can be successfully passed to free()". So if it returns NULL and you're not checking the return value you'll just segfault when you try to use it. If you're checking the return value you'll think you're out of memory which would be annoying but would probably happen really early in any reasonably sized program.

URL extraction in plaintext posts by chejazi in redditdev

[–]ketralnis 1 point2 points  (0 children)

reddit uses markdown, specifically the snudown implementation (which I believe is adapted from sundown). The autolinking implementation is here: https://github.com/reddit/snudown/blob/master/src/autolink.c

It isn't a regex exactly but that'll get you started

BMW Motorrad US Site: G310R (w/ABS) for $4750 MSRP by senoritaoscar in motorcycles

[–]ketralnis 0 points1 point  (0 children)

My Honda cbr300r does just fine at highish freeway speeds like that. No problem at all, doesn't even feel like I'm stretching it