Category Archives: techy

technology tips and tricks

Generate Django Model graphic representation (Entity–relationship model (ERD))

Install graphviz and libgraphviz-dev before installing pip packages. Add these lines to settings.py file To generate dotfiles run this command from django prompt. This is the simplest form of generating graph for all the apps. To get image instead of dotfile run this command Links for reference https://django-extensions.readthedocs.io/en/latest/graph_models.html https://pypi.org/project/django-extensions

Redirection with php code

Simple redirection with just 3 lines of code in with the last line says exit;. This worked for drupal 6 and hope it will work for other CMS’s too. 1. Open the file /home/user/public_html/sites/all/themes/acquia_marina/page.tpl.php and add the following lines on the top of the file.

Install debian on chromebook acer c720

Acer C720 is compact and very handy. It is packed with celeron 1.40 GHz processor and 2 Gigs of ram with 32 GB SSD. It has a ~4100mAh battery which should last for 4+ hours with debian without X. I did a quick search and found a way to install debian on to this device.… Read More »

configure mymine app for self-signed certs

Mymine is a cool app for redmine. Their is one problem thought I was not able to configure mymine with self-signed certificate instance of redmine. I found a way to make it work. These are the steps to configure mymine to work with self-signed certificate sites. Step 1 (Get the cert) Enter sites URL in… Read More »

Live feed of concurrent HTTP connections

This is a cool command for checking how many are sending requests to the webserver. watch -n 0.5 “netstat -ano | grep -v unix | grep ESTABLISHED | grep :80”   With the above command one can monitor how many connections are connected to the server. It looks a bit like a sci-fi screen if… Read More »

recovering password in ubuntu

There are two ways to do it short way and a long way i will discribe both of them. short way If you forgot your password for your ubuntu system or any other GNU/Linux OS you can recover using the following steps Turn your computer on. Press ESC at the grub prompt. Press e for… Read More »

kde 4 is cool

I tried out kde 4 yesterday to my surprise it got installed in my home system, and do you know what it worked yes it worked with out much configuration. I heard of kde 4 a lot last month when it was released and thought of installing it on my system, well it was a… Read More »