Malware you willingly decide to put on your devices, for their benefit

Time passed, Free to Play became a thing. I went from company to company. Each time, every new project became less and less about how we can do cool things, and more about how we can track and target users to get the most whales possible, boost chart position and retain users to shove as many ads on them as possible.

Source: “We Own You” – Confessions of an Anonymous Free to Play Producer | TouchArcade

I didn’t know something like this was done

In the eighteenth century, artists in Mexico (and to a lesser extent in other parts of Latin America) created paintings that depicted the different racial mixtures.

Source: Slavery, Race, and Whiteness in Mexico

I didn’t know it had been so complicated back then. Sure, in history class at school we would delve into this sort of thing, but we’re learning it as kids and you don’t ever revisit it until you have kids of your own — unless you study history in one of it’s myriad forms.

50 Years After the Moynihan Report, Examining the Black Family in the Age of Mass Incarceration – The Atlantic

A longform article in The Atlantic.

In Douglass’s time, to stand up for black rights was to condone black criminality. The same was true in King’s time. The same is true today. Appearing on Meet the Press to discuss the death of Michael Brown in Ferguson, Missouri, the former New York City mayor Rudy Giuliani—in the fashion of many others—responded to black critics of law enforcement exactly as his forebears would have: “How about you reduce crime? … The white police officers wouldn’t be there if you weren’t killing each other 70 to 75 percent of the time.”

The whole article is a very illustrating read on why things need to change.

nginx + hhvm, continued, part three

It’s starting to sound like a bad Hollywood movie. You think you’re done with it and then BOOM it comes out of nowhere straight to DVD. Back when movies did that.

So after I played around with everything, bloody HHVM kept crashing — I’m starting to think it’s a fucking piece of shit just like facebook, which begat it — and all I could get out of the various things in /var/log were that it kept running out of memory. htop didn’t really say anything, nor ps aux nor netstat

Using systemctl status hhvm.service or journalctl -xn reported only that something was wrong, but didn’t say what. Which is annoying since fucking piece of shit systemd wants everyone to use its own tools for managing the system.

Gods, I dislike systemd. But carrying on…

Checking /var/log/messages manually led me to believe that hhvm was running out of memory and not failing gracefully. So that led me to looking around. Then I got this snippet from this site, which I added to my /etc/hhvm/server.ini:

hhvm.jit = false

# service nginx restart && service hhvm restart

Since I did that I haven’t had to restart hhvm. Sure, I lose performance, but since this is my personal blog and I’ve had issues with php-fpm and hhvm I would much prefer to have reliability.

PS: Yes, I work on root. I’m a real sysadmin, not like y’all wankers who work with sudo.

nginx + hhvm, continued

So after my last post on this, HHVM stopped working again, making nginx give a 502 as usual.

This time, a comment on a forum (who knows which, I looked at a lot of pages) gave me a little snippet that helped me pinpoint the issue:
# netstat -plunt | grep hhvm

This should have told me that HHVM was listening on a TCP port (since that’s what the default for HHVM is). But netstat reported nothing. After checking my configuration, I had forgotten that I had iptables drop all traffic to 127/8 that doesn’t use loopback. Here’s the snippet I use in my iptables configuration file

Commented the line out, imported the new ruleset into iptables and iptables didn’t block traffic sent from nginx to HHVM anymore, letting everything work as is supposed to.

Now I’m hoping it doesn’t die again due to some other reason. This was really annoying.

nginx + hhvm

I’m not sure what I did, but I finally got it to work. My previous configuration had nginx watch out for a 502 BAD GATEWAY error to switch from HHVM to php-fpm.

Too bad that every single PHP request invoked a 502 error. But my blog worked and I didn’t check the logs cos I happily thought everything was working.

Until it didn’t.

MariaDB bitched. Then php-fpm started using 100% CPU until it killed MariaDB. nginx didn’t care cos it doesn’t use that much memory to begin with. But the end result of all this was that my blog didn’t work.

Ended up reinstalling everything from scratch. Then it somehow works. I should write up about it later so I don’t forget.

But right now I need to shower so I can be at work in a half hour. Yes, at 0630. And now WordPress is bitching about something going wrong. I’ll probably just end up switching back to good ol’ Apache with the standard PHP module in.

More work

Why oh why do I work so much? It’s not like I truly need the funds.

Part of me thinks I just do it for the company. Otherwise I’d see no one at all, since I do tend to stay at home sleeping or reading.

On the upside, since I have to wake up early there won’t be any more late night drinks after work. Saves more money.

If only I were working in IT instead of food service… then I’d be making real money.