Turn off MySQL Password Expiry

Submitted by devin on Tue, 11/24/2015 - 22:24

The other day my computer begain repeatedly giving me this MySQL error:

Your password has expired. To log in you must change it using a client that supports expired passwords.

It happened to my root account and my Devin account. I searched online quickly and found out (after more looking than I'd hoped for) how to change my password.... but the problem came back a few days later.

Working more efficiently with rails migrations

Submitted by devin on Thu, 11/05/2015 - 02:21

I've been working on a major schema refactor on a rails application recently, and time and again I've had to reset my database because of some syntax error or another in my migrations. I'm changing schemas and moving data between columns, which makes the migrations really fragile.

It's also been fun learning about the rake tools that allow you to manage database migrations. In particular, three rails commands have come in handy:

Simple touch-friendly HTML menus (using javascript)

Submitted by devin on Tue, 10/27/2015 - 05:31

I have a website with a two-level dropdown menu (it's not this one!). I want it to be slick, so I used CSS to only show the submenus when the user was hovering on the relevant parent menu item. This was great, until I realized people liked to access my website from their phones. The only way to reveal the submenus using a touch screen is to click the top menu item, but that will activate the link and change the page before you can find the link you want.

Convert ovpn file to inline format (all in one ovpn client config file)

Submitted by devin on Thu, 10/22/2015 - 00:34

Whenever I use openvpn I'm stuck carting around 5 files, sending them over Bluetooth and cluttering up my phone's downloads directory or confusing people I'm setting up with openvpn

I decided finally to figure out inline openvpn client config files (note: all-in-one files don't work on the Securepoint SSL windows client). I made this sed script/command that will automate the process. Imagine that the following five correctly configured openvpn files are in my current directory, with the openvpn file referencing the others:

Interdependence in a capitalist model?

Submitted by devin on Mon, 03/23/2015 - 22:19

I have a thought, but I'm not well equipped to model the economics of it. I want to investigate it further.

When your cell phone can't be trusted - maybe the NSA has put on a virus, or another app - then you're in trouble. How can you be sure your data is not being modified? One way that Google and Apple accomplish this is through cloud sync. If your data is synced to the cloud, it can be modified, but it goes via Google or Apple, with logging included.