Firewall + No-IP.com Dynamic IP Service

July 14th, 2010 by Dazz No comments »

It’s funny how you can never really seem to find shit on the internet that you want.  Problem occured after starting my new firewall software on my mini-linux box here at home, my no-ip service simply failed to work.

Seemed odd to me because my box could indeed connect to the address dynupdate.no-ip.com (which as far as I could tell, was a standard web-page response on port 80).

Well it turns out it’s actually port 8245 that you need to open in your firewall (not your router folks, tired of people on forums telling others they need to “port forward” to get a fix for this.)

Error is as follows (and this was about a verbose as I got from the program).

# noip2 -C

Auto configuration for Linux client of no-ip.com.

Can't connect to dynupdate.no-ip.com (Connection timed out)
Network must be operational to create configfile. Ending!

Hope this fix is indexed quickly, as it took forever to find anyone with the right port for the program.

Using Redmine on a cPanel server – Silly .htaccess rules

May 23rd, 2010 by Dazz No comments »

It’s not nearly has hard when you know what the hell you’re doing.  Oh by the way, that’s not the case with me <_<  Find an installation guide elsewhere (or even adapt the actual installation guide from Redmine).  This guide is manually how to setup rewrite rules properly so you can use Redmine as ether a proper subdomain entry (redmine.yourdomain.com) or even slightly more tricky, as a subdomain entry (www.yourdomain.com/redmine).  Sadly cPanel htaccess rules generated from their interface … suck.  Pretty badly >_>  No idea why.

MOVING ON.

Bit 1
Go into cPanel -> Ruby on Rails
Create a new application by entering the application name.  Be happy with the default location it will store your application (/rails_apps/redmine for example)
Ensure it’s going to start when someone reboots the server on you (sif they’d do that anyway).  Tick “Load on Boot”.
Don’t bother starting the application yet.
Find out which port you’ve been assigned – click “URL” and you should be taken to a page that can not be displayed – you’ll see something like http://yourdomain:PORTNUMBER – the portnumber folks is important.

Bit 2
Go into cPanel -> MySQL databases
Generate a new database, a new username/password and ensure you assign the new user to the database we just created.

Bit 3
Get into shell or FTP (whatever is available to you) and remove everything that’s pre-generated under ~/rails_apps/redmine
Extract the latest redmine application source and put it in that folder we just cleaned out.
Copy config/database.yml.example to config/database.yml
Edit that file, change the stuff about production and what your MySQL details are (seek the real installation for more info – http://www.redmine.org/wiki/redmine/RedmineInstall)Also following that installation guide, ensure you do the following parts
Get into shell as your cpanel user and enter the following funky stuffs;
cd ~/rails_app/redmine
RAILS_ENV=production rake config/initializers/session_store.rb
RAILS_ENV=production rake redmine:load_default_data

Bit 4
In cPanel -> Ruby Applications, you can go ahead and start the server now.

Now here comes the main part of this little installation guide (there are more completed installation guides out there on the web guys.

THE IMPORTANT HTACCESS REWRITE BIT
Wherever your “public” html access is, go there and create a .htaccess file.  For example if redmine is being put in your main domain’s location, your location will be ~/public_html/.htacces – if it’s a subdomain it’s typically ~/public_html/subdomain/.htaccess unless you specified otherwise (which I always recomment… shoving subdomains under another domains document root is tacky, especially when dealing with .htaccess)

For “Whole” domain/subdomain (http://redmine.yourdomain.com) installations, put in the following text in the htaccess file

RewriteEngine on
RewriteCond %{HTTP_HOST} ^redmine.yourdomain.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.redmine.yourdomain.com$
RewriteRule ^.*$ "http\:\/\/127\.0\.0\.1\:12001%{REQUEST_URI}" [P,QSA,L]

The two RewriteCond(itions) there are limiting this to the subdomain redmine.  If you aren’t playing with a subdomain you can actually remove those two lines.
This htaccess example is “pretty much” what cPanel generates at time of writing, minus the “^.*$” part, for whatever reason they’re still having ? inserted in there which naturally, causes headaches.

Now the uber tricky part.  You want it to be http://www.yourdomain.com/redmine – a “directory”.
First up – edit ~/rails_apps/redmine/config/environment.rb and at the very end of the file (even after the “end” part) add the following
Redmine::Utils::relative_url_root = “/redmine”

In your htaccess file, you’ll want to do the following.

RewriteEngine On
RewriteRule ^redmine$ http://localhost:12002/$1 [P,QSA,L]
RewriteRule ^redmine/(.*)$ http://localhost:12002/$1 [P,QSA,L]

Again, ignoring the Rewrite conditions if you aren’t setting up /redmine on a subdomain.

Notice where the 12001 part is in the htaccess files, you’ll want to change that to whatever port number cPanel has set your redmine application to.

Edit: Updated htaccess rule for the subdirectory. It appears that despite my efforts redmine would only work if there was a trailing slash. Without it, it wasn’t working. Then I got it working the other way around…. and now… I have two rules… not ideal but it’s working again. \o/

Quassel Theme – IRSSI clone (step 1)

May 16th, 2010 by Dazz 2 comments »

So while I love having a dark theme, I still miss my IRSSI and it’s colors incredibly.  Thus work on a new theme is under way.  Working from the default style sheet and viewing how Jussi used some of the latest tags to color his theme.

Jussi has a more full version of his theme (which colors more than just the text window) which is yet to be updated in the theme screenshot section on the Quassel website – goto the repo browser for quassel to find the latest version or I might post it here later.  These new tags he’s used are awesome but have left me completely confused when editing on mine.

Thus this version of my theme is at the moment, only the text area.  With more time I’ll complete the rest of the app’s theme and adjust some of the nick-name colors as well as the action color.

Download rapid.qss.

Getting back to development

May 8th, 2010 by Dazz 2 comments »

And it starts with Notepad++, because it’s lightweight, awesome, sexy, and did I mention awesome.  I am a bit of a fan of Textmate on the Mac – using a combination of the font Monaco (which you’ll need to source for yourself) and the VibrantInk theme created by Tyler at impoverishedgourmet.com – you too can have a nice dark scheme for your coding box.

Next up will be finding a similar solution for Netbeans.

In order to install this theme, simply go place the file into %APPDATA%\Notepad++ replacing the existing theme (I like to make backups of this shit in case I ever start to hate the contrast).

http://www.darrennolan.com/wp-content/uploads/2010/05/stykers.xml

Font is then changed in Notepad++ by going to Settings -> Style Configurator, ensure you have Global Styles (Global override) selected, and change the font to Monaco.

Quassel \o/

May 7th, 2010 by Dazz 4 comments »

Certainly like my Quassel.  While I don’t have time to post about the awesomeness (and the downsides against command-line-junkies-dream IRSSI), I do require my theme to be online/available.

http://www.darrennolan.com/wp-content/uploads/2010/05/jussi01-darktheme.qss

Based on Jussi’s Darktheme (on the Quassel website) but a tad easier color contrasts in the main text area and back to default-ish colors in the nickname and chat-lists.

Edit:  Bit of an after though, the font is Consolas (between 10pt and 12pt is nice) – typically MS font.

Auditorium – Audio Flash Game

January 2nd, 2010 by Dazz No comments »

If you haven’t already seen Auditorium – I suggest you go http://www.playauditorium.com/ now and play.  Just stop what you’re doing and go play.  Epic little game where you need to force particular waves into little boxes.  When the boxes fill up they start to play music.  Fill all the boxes on the level and you’re onto the next!

After the level finishes, the boxes and your little items (that change where the little waves are going) fade from the screen and you’re left with the pattern behind.  Got this and it made me laugh.  Not sure if that confirms I have to get out more, but it’s epic all the same.

I removed the level from the right hand corner (MS-Paint ftw!) so you can’t work out which level this is a solution to.  So don’t ask <_<  K COOKIE – That means you.

Workin hard!

December 23rd, 2009 by Dazz No comments »

taking the day off, and working >_>  Funny how that works!  But my sister went and stole a picy of me.  Haxor >_>

100_2520

The only valid measurement of code quality – WTFs / Minute

December 18th, 2009 by Dazz 1 comment »

Mate of mine linked this to me, I believe it was his friend that drew this. It’s so true, awesome, and epicly epic.
image002

Web Design Goes Straight to Hell

December 9th, 2009 by Dazz No comments »

Words can not possible express how awesomely awesome this post is.  In an attempt not to lose my bookmark to it _yet_ again, here’s my personal entry to remember for years to come. Oh and er, share with you all.  Yeah – all for you guys.  =D

http://theoatmeal.com/comics/design_hell

1
2
3
4
5
6
7
8
9
10

Pure genius. That site again, http://theoatmeal.com/comics/design_hell.

Why computer professionals have loads of spare time

November 12th, 2009 by Dazz No comments »

computer-proshttp://eviljaymz.com/?q=node/33

I promise one day I’ll start to catch up on the rest of his site.  Of course makes me lol to see awesome work like this on the net (I think you have to be in one of those professions to truly understand it).

On another note, I also promise soon enough I’ll begin to write some awesome little tutorials on random things.  First up I think will be a Vista Sidebar/Windows7 Desktop Gadget for remote Linux monitoring – in all it’s glory, as personally I think there is only so many web pages open you can have (even on 4 screens) before you start to do your own head in.