Advanced Tips
Ruby on Rails on Ubuntu Print E-mail

This is a very basic set of steps that I would follow to set up Ruby on Rails so you can do the 15 minute rails blog tutorial on a ubuntu desktop.

Here is a 15 minute blog tutorial. It shows the simplicity of rails, but doesn't talk too much about installation and database configuration. There are other such tutorials on the web, but this one I thought was good.


Read more...
 
Rails Mongrel and Apache all together now 2 Print E-mail
From my prior doc  Rails Mongerl and Apache All togerher now 1 I created a very basic rails application, mostly for the purpose of displaying text, and maybe some images afterwards. I am going to run mongrel which I installed with

gem install mongrel

to see whether what I wrote displays through mongrel. I run

script/console

Which runs mongrel on port 3000. So I navigate to

http://jibwa.com:3000/photo

and I get XML back

Now I know my Rails is working properly and is rendering form the db. Now I need to get apache
Read more...
 
Rails Mongrel and Apache all together now 1 Print E-mail
I spent a lot of time looking at ways to run rails on Apache a few months ago. Whether or not there is an easier way to to it I think this is the best way to do it.. I am running a fully updated Redhat 5 Rackspace Server

I have done all this before but its been a while so I am just going to do a fresh application and get it runnning some basic code, and then get it live. If you already have a working app you can skip down. I do this all from a bash command line.

First I go to my rails app directory

cd /home/jbwhite/rubyprojects
mkdir photoalbum
rails photoalbum

Now Rails is installed and I have to make a mysql database and configure that.
mysql -u root -p

>create database photoalbum_development
>grant all on photoalbum_development to rbuser@localhost identified by 'password'


Read more...
 
Excel file size reduction Print E-mail
I have been working on an Excel 2003 Workbook with about 10 Sheets, and about 50 pages of visual basic scripts. The actual data content shouldn't be all that big because the worksheets are relatively small. I spent a lot of time trying to find ways to reduce the file size and nothing seemed to help until I found a posting on mrexcel.com about  the  
Read more...
 
Find exploit and remove it with python regular expressions Print E-mail
I had an explot hit a site that wasn't on one of my servers and there wasn't an backup availalbe to resore from. Still having to fix this I decided to write a script to inspect all the files and remove the bad text. Mostly the exploit appended an iframe at the end of files, but I wrote my script to remove particular text no matter where it sat in the file.

I wrote a bit about a python file structure crawler and I'll include my whole method below for reference.


Read more...
 
Python path walk list directories and files Print E-mail
I needed to crawl a directory structure and get a list of all the files with their absolute location, I think the easiest way to do this is with os.path.walk. The syntax is a little confusing at first, but it works fine and I end up with the list of all files with their folders from whatever location I start at.



Read more...
 
Radeon Ubuntu 7.10 fglrx Print E-mail
I spent the better part of a week trying different tutorials and ways to get my Radeon 9700 set up to work with Ubuntu Desktop 7.10. (Advance Desktop Effects are a must)  All the tutorials I found were steering me in so many directions I called an expert to see what he thought was the best way. He reccomended I simply revert everything back
Read more...
 
xp vmware ubuntu 2 with rdesktop Print E-mail
The process was pretty painless getting windows installed. After the install I looked at options for connecting to the XP box. Some suggested VNC, but I settled on using Remote Desktop since it is native to XP and it doesn't require any additional software installations.

So once you isntall windows make sure to install VMWare Tools, In the VMware Server Console,    
Read more...
 
Rails Auth with http and msql Print E-mail
So I am running a RHEL5 server and I have a few Ruby on Rails Apps that I want to protect with http auth in apache but be able to manage the users and passwords with mysql (and within rails). So I found the mod_auth_mysql

> yum install mod_auth_mysql

Read more...
 
Vmware and Ubuntu and XP Print E-mail
I have a fresh install of Ubuntu 7.10 desktop and I am attempting to install VMWare Server. I have updated all my packages with Synaptics Package manager and I've downloaded the VMWare Server for Linux for free from http://register.vmware.com/content/download.html.

After the download, which I saved to my desktop
Read more...
 

Jibwa Work Samples

Under Construction

Jibwa.com is under construction. Watch out for broken links, missing pages, potholes and bulldozers. We apologize for the temporary inconvenience - Jibwa.com Staff

News and Updates

Anthony Ameen Recovery Blog

A good friend of Jibwa LLC, Anthony Ameen, was wounded in Afghanistan and is busy recovering in San Antonio. To aid his family of keeping everyone inf...
Read More ...

Get notified when a class becomes available

Jibwa LLC has worked out a system to notify people when a class becomes available at the University of Arizona. Originally it was written for personal...
Read More ...

Restart Cable Modem and Router

If you have a modem (Cable, DSL, T1, Other), and a router you are probably familiar with the power cycle! The power cycle is three simple steps and ...
Read More ...

Lecture Audio Clip Player

Mark Pirtle Website Russell Public was interested in having Mark's audio samples playable for visitors of the website. In order to do this we had to ...
Read More ...