Author Archives: (zaphinath)

.htaccess pdf file redirect

Description I recently added my resume to my site and needed to make the permalink wordpress makes get redirected to my resume ‘resume.pdf’ Solution Open the .htaccess file in your web folder and add the following code. [bash] RewriteEngine On Redirect /about/resume-pdf/ /resume.pdf [/bash] That’s all, and now you can redirect wordpress permalinks to the […]

Setting Up Gentoo Apache for CGI and Perl

Description There are a few things that need to be done to set up apache2 to run a CGI bin directory so you can run perl scripts. The first is to set apache modules and then then configure the apache vhost conf file. Setting Up Modules I edit my /etc/make.conf file to keep all my […]

Backing Up Data With Cron Jobs

Description There are various ways and programs of backing up your systems, but I prefer to control all aspects of my backups and therefore will use cron jobs to do my backups. There are several different types of crons, but they all function the same way. First you need to open your crontab for editing […]

Iptables, Firewalls, Linux

Description When using iptables I like to keep a text file of my firewall so I can see everything when I need to edit it, open ports, etc. . . There is no requirement where this file is stored, however, I store the file in /system/configuration/firewall.txt. firewall.txt [bash] # Generated by iptables-save v1.4.2 on Fri […]

WordPress With Multiple Subdomains

Description I recently edited my WordPress to give me subdomains so that I can keep various different blogs. Example my main site is www.zaphinath.com and I want to add a another blog called einblick.zaphinath.com. This is easy enough to do and I will show you how, the thing that got me however was how do […]

Change Default SSH Port in Gentoo Linux

Description If you have a need, for whatever reason, to change the port you use for ssh into your Linux system it’s really easy to do. This small tutorial will show how to do it specifically for a Gentoo Linux OS, but it should be similar for all Linux OS’s. **Note: You don’t have to […]

Ruby on Rails 5 Star Rating with Star Rating Widget

Description With countless rating systems out there I decided to go with JQuery’s Star Rating Widget Plugin for one of my pet sites: www.recisphere.com. The only problem with this is a complete lack of documentation on how to go about using it. I did a dirty hack but it seems to work great so I […]

Facebook Access Vietnam

Description Due to lovely government restrictions of freedom of speech in Vietnam the website www.facebook.com has now been blocked. The enforcement of this is not very strick and is rather easy to work around. The solution is to reroute the dns services coming to your computer instead of using the default ones provided by any isp […]

Webserver for OSX Tutorial

Description This tutorial is will show how to set up an apache server for web development which allows for sites to be written in any language and framework. This is tailored for Mac OS X and is meant for developers who write websites in multiple languages and frameworks. This tutorial starts by setting up apache, […]

Python Ctypes for Advanced Fortran and C++

Problem The cytpes library in python 2.6 and greater allows python to call fortran, c, and c++ functions from a specially compiled library. However the python cytpes library is limited in the datatypes that can be called from those libraries. This tutorial will show how to call derived data types from a fortran library and […]