Linux / Freebsd

How to make an automated connection checker and IP blocker for your server

I like to think of it as a door man for my server, or my little centurion  What this little guy does is checked the last 5 hours of access logs to your server to see if there are any IP’s that are hitting your server an unusually high amount of times.  If it finds
[continue reading...]

Changing vmail user passwords in mysql with phpMyAdmin

So I had a bit of a head scratcher with this one today as I’m used to changing passwords in wordpress by going into the user’s table and typing the password in the value box and choosing md5 in the function dropdown window.  Well that just ended up in disaster for vmail. It ends up
[continue reading...]

Properly setting up an SSL cert for a site running on a Debian/Linux server with Apache 2.2, mod_ssl and Nginx

Well after doing this and redoing it again and spending way too much time re-learning how to do it the second time I’m just going to bite the bullet and take the extra hour to blog about the process so that  next time I can just follow my easy step-by-step guide(and hopefully you can too
[continue reading...]

Preventing a server melt-down and saving resources: Block all Shit bot

Alright, I woke up today to a load average of 75.. Seventy-fucking-FIVE.  I didn’t even know that shit was possible and I’m pretty sure the guys at the DC were probably roasting marshmellows over my glowing box.  I couldn’t believe it so into my server I went, waiting 5 minuets for every command I typed
[continue reading...]

Cannot remove nvidia package because of No diversion ‘diversion ?

Got this error today: Fetched 1,845 kB in 2s (853 kB/s) (Reading database … 213548 files and directories currently installed.) Removing libgl1-nvidia-alternatives … No diversion ‘diversion of /usr/lib/libGL.so.1.2 to /usr/lib/nvidia/diversions/libGL.so.1.2 by libgl1-nvidia-alternatives’, none removed. Removing ‘diversion of /usr/lib/libGL.so.1 to /usr/lib/nvidia/diversions/libGL.so.1 by libgl1-nvidia-alternatives’ dpkg-divert: rename involves overwriting `/usr/lib/libGL.so.1′ with different file `/usr/lib/nvidia/diversions/libGL.so.1′, not allowed dpkg: error
[continue reading...]

Problems mounting shared folders in a Debian Virtual OS running in a Windows Host

So this was a silly problem I ran into today and it’s really only the lack of very specifically labeled help available online about that caused me to write this.  Basically what I did was to install Debian 6 64 with vmware inside of a windows 7 machine.  I cringe to think I am doing
[continue reading...]

Need to get a bunch of pgp keys for your 3rd party linux repos fast?

Are you reinstalling your OS and having mroe than a few 3rd party repos that need to have pgp keys installed to access?  Are you dreading the processing of googling them all and wgetting the keys and then importing them? dread no more because there’s an easier way!  Just use the MIT keyserver to grab
[continue reading...]

A few words about custom partitions and /var

So I just installed Debian onto my new laptop, this time through vmware with a windows 7 host because I for once have enough ram and cpu to handle virtualization, and this time I felt I was ready to custom configure a more complex partition schema based on my experience.  Not the recommended BS that
[continue reading...]

Database wide search and replace script

Just something I thought that I would post as I needed a quick solution to do a search and replace of an entire Mysql Database.  It’s actually dumping the DB, searching and replacing the dump file and then re-importing it.  But it does the trick   #!/bin/bash if (($# >= 1)) ; then if (($#
[continue reading...]

Drupal users – Get Views Bulk Operations

This isn’t an installation guide or anything like that, it’s just a piece of advice.  Go out and get the get the Views bulk operations module.. It will save you more time than I can imagine changing taxonomy terms in bulk and doing other batch operations on your content nodes.

Speeding up PHP with APC (NOT eAccelerator) in Debian Squeeze running php 5 and apache 2

Well today my server was being killed by something or other and after 30 minutes of trying to track down what it was I decided to spend my time optimizing my server and implementing a proper caching mechanism (finally!).  I come from a BSD background and we ran eAccelerator on all of our servers so
[continue reading...]

Setup your swap partition a flash card in Debian linux

*A WORD TO THE WISE – DO NOT ATTEMPT THIS* Flash cards are not designed to handle heavy loads of tiny read/writes all the time and will fail sooner rather than later.. I just had my system go into the shitty with a syslog filled with 1000′s of messages like this:  [59443.104957] Write-error on swap-device
[continue reading...]

Technology

Sample CISPA Blackout Page HTML to save you the time

Just incase you are planning on blacking out your site(s) on April 22nd, 2013 I’ve made a sample CISPA page which I think is pretty decent.  All you have to do is save it as index.html and put it in your domains root folder/directory.  Obviously you’ll want to back up your existing index.html file first.
[continue reading...]

The best windows archiver between WinRar and 7zip

Alright so I was looking at Archivers today as I just wanted to make sure that Winrar, my goto archiver was the best one I should be using.  I read a lot of reviews and found most people saying that 7zip can compress things smaller without taking a lot longer to do it.  So I
[continue reading...]

List of all of the vmware keyboard shortcuts

  F11 switches to full-screen mode and back to normal mode Ctrl-Alt-Insert sends a Ctrl-Alt-Delete to the VMware Guest OS Ctrl-Alt is also used for – exiting full screen mode Ctrl-Alt-Enter Expands the current VM into full-screen. If you have a number of VMs, this sequence will also move you between virtual machines Ctrl-Alt-Tab switch
[continue reading...]

AMD Trinity A10 4600M APU

Well in the light of the release of the first AMD Trinity 4600-M laptop over there in Korea for the low cost of 950,000 Won or so I felt it appropriate to do an entire post about AMD’s A10 4600M series APU.    While there will be the A10 5800k which you can read about
[continue reading...]

Games

All Time High-Score for Overgod’s Time Trial

Well googling ‘Overgod’ and ‘time trial’ and ‘high school’ come up with absolutely zero results, so here’s hoping that there’s actually someone else out there that plays this game as much as I do and will stumble upon this.  Better yet, here’s to hoping there are a few hundred people out there like that Seeing
[continue reading...]

Starcraft Single Player Gameplay

Just caught the first video of the single player campaign in detail and oooh mama that gets me hot in the pants.

Starcraft 2 Battle Report #3

Just watched the latest Battle Report for Starcraft 2 and man this game is looking impressive. I can see the hours of my life already being sucked away

Best Tower Defense game hands down

http://www.maxgames.com/game/the-horde-2.html Without a doubt the best Tower Defense game I have played, and I’ve played a lot of them There is a ton of rethinking your strategy as you go throughout, just the right amoutn of challenge where youcan adopt new strategies, test and refine before getting too frustrated and giving up. The complexity of
[continue reading...]

Game Industry

A Shout out to Kelowna and Okanagan Video Game Developers

At the last OK Game Developer Cluster meet-up we discussed the need to get more people networked and involved in the local Game Developer here in Kelowna.  It is a wonderful blessing to have Disney and Club Penguin in our beautiful city as they has no doubt inspired many people to pick up the trade
[continue reading...]

The Uncanny Valley

Was just showed this video today and started to look for more resources on the topic so I thought I’d share 7 Part Series:

Sony’s and Microsofts new 3D Controllers

The tracking on this thing looks really impressive(“Sub-milimeter accuracy”).  To take the Wii Experience, but better, and put it on the power of the PS3 is enticing to say the least. And M$ wouldn’t be outdone by Sony and is also jumping on the Nintendo Bandwagon.  Now what we really should be excited is to
[continue reading...]

EuroGamer standing behind unfair and ignorant reviews?

I have respect for what this company is doing with this game.. They are going down a road that is against popular WoW trends and aren’t sacrficing their vision to play it safe.  A lot of things get me pumped for this game and what this company is doing so it ticks me off when
[continue reading...]

Inspiring

Mozilla Seabird: Best tech concept of the decade (Get a towel)

You can read all about the concept here but to be clear this is simply a concept, mozilla has stated they have absolutely no intentions of entering the OS nor the hardware market. The Mozilla Seabird, part of the Mozilla Labs’ Concept Series, is an experiment in how users might interact with their mobile content
[continue reading...]

Netvibes – This will change your life, your virtual one at least

HTTP://WWW.NETVIBES.COM In my experience with talking with folks that are much more tech savvy than I, one of the most surprising things is how few people know about Netvibes, even more surprising is how few people in the world actually use this brilliant free resource.   I’ve had this post in draft forward for well over
[continue reading...]

Bill Gates on Cnet – Talks about why he’s fired up

In a recent video interview Bill Gates did with CNET , he talks about this work with his foundation, what’s getting him fired up and how to tackle some of these bleak challenges facing the world today. I find it interesting just to sit and watch this man talk, such an unassuming guy that I’ve
[continue reading...]

Science Fiction as a tool for human survival

It was like film directors and authors realized this magic lamp where they could very surreptitiously put these unquestioned injustices into peoples minds and make them question them for the first time. I wouldn’t call this a ‘golden age’ of sci-fi but it certainly was a purer age.

Internet

Sample CISPA Blackout Page HTML to save you the time

Just incase you are planning on blacking out your site(s) on April 22nd, 2013 I’ve made a sample CISPA page which I think is pretty decent.  All you have to do is save it as index.html and put it in your domains root folder/directory.  Obviously you’ll want to back up your existing index.html file first.
[continue reading...]

How to make an automated connection checker and IP blocker for your server

I like to think of it as a door man for my server, or my little centurion  What this little guy does is checked the last 5 hours of access logs to your server to see if there are any IP’s that are hitting your server an unusually high amount of times.  If it finds
[continue reading...]

Remove auto-created email specific thunderbird folders – have everything go into 1 local folder

This was something that I seemed to have figured out and forgot again so I’ll blog about it this time to keep it permanently in memory   Anyways, so the deal is when you add a new email account in thunderbird it creates a specific set of folders and subfolders for that new email address.
[continue reading...]

Do NOT use Google Drive – You will loose your shit

I know I just did, what a piece of garbage service.  Here’s what happened: I wanted to change the path to my gdrive on my hard drive so I did a little research and found how to disconnect my account and change locations.  So I disconnect it, take my ‘Google Drive’ folder from it’s usually
[continue reading...]

Random Musings

Fixing ‘This page includes script from unauthenticated sources’ problem with ssl wordpress install on apache+nginx server

This was a headache and a half that ate up 4 hours of my life.  So here’s the deal, I have a wordpress install that NEEDS to run completely on ssl(https) and everything was running tickity boo until we did a wordpress update last week.  All of a sudden all of the css and js
[continue reading...]

Another amazing wordpress plugin: Advanced Editor

For anyone who’s doing any work in the CSS or php files of wordpress this one is a must, I’m just shocked at how long it took me to find it.  The main reason I stumbled open it was that I was looking for a way to display the line numbers in my editor as
[continue reading...]

Why is my jpg so big?

Ran into a funny little problem today as I was exporting a jpg file GIMP: It was fricken huge, relatively speaking.  This was a 4×80 image and it was 6.8kb.  It made no sense for this to be any larger than 600-800bytes but for some reason it would not come down to less than 10
[continue reading...]

MapMyUser.com wordpress ‘hack’ means new theme for the site!

I call this a ‘hack’ but in reality there was no breach of security, it was a clever little trojan of sorts put into my old theme by it’s creators.   What I’m talking about is the sudden appearance of a little tab on the right hand side of the page that messed up my
[continue reading...]