Notes

Linux, WebDev and other…

January, 2014

Reuse an old laptop or netbook as a VPS backup solution

Introduction I have an old unused netbook – Asus eee 900HD. It’s very small and has 160GB HDD. I decided to install there debian and reuse it as a VPS backup solution. My netbook is behind NAT, connected to home router by fast ethernet cable, so the plan is to repeat these steps: Make a […]

, ,

Mysql Workbench is unstable on Ubuntu 12.04 LTS

Problem I use elementary OS, which is based on ubuntu 12.04 LTS. Mysql Workbench from default repository (mysql-workbench_5.2.38+dfsg-3_amd64.deb) is very unstable. If you try to open model and then create a new one, it will crash with:

Related bug report is here.

, , ,

Alert popup view for Backbone with jQuery Mobile

Here is a backbone view for alert popups in jquery mobile. General information about mixing backbone with jquery mobile is here. I just use it like bootstrap, but in the end of render function I manually call $el.trigger(‘create’) to initialize markup (I don’t have fancy page transitions).

, , ,

Collection pagination view for Backbone with jQuery Mobile

Here is a view that listens to backbone collection “reset” event and renders/refreshes pagination. Template is based on jquery mobile, but can be easily changed. General information about mixing backbone with jquery mobile is here. I just use it like bootstrap, but in the end of render function I manually call $el.trigger(‘create’) to initialize markup […]

, , ,

MySQL backup bash script

Simple script for cron jobs. It makes backup of all available mysql databases except for IgnoredDatabases array. Dump is compressed on the fly. Backups older than 30 days are deleted.

, , ,