Log in

Well this is a special post:

Its the first post involving something i did for work
Its the first post where the code is written in VBS
Its the first Windows based post

This is a printer script i wrote to replace a script some else had written for one of the schools i work in, his script was [...]

15
June

HsDB Class for Ruby

Written by Arcath. 1 comment Posted in: Programming
Tagged with

In a previous post i mentioned that i was going to write a database interface that the new bot would use, and here it is:
require ‘mysql’

class HsDB
def initialize(dbhost,dbuser,dbpass,dbname)
@dbc=Mysql::new(dbhost,dbuser,dbpass,dbname)
end
def query(q)
out=[]
out[0]=0
qa=q.split(” “)
query=”"
qa.each do |a|
if query != “” then
query+=”AND ”
end
query+=”`record` LIKE ‘%#{a}%’ ”
end
res=@dbc.query(“SELECT * FROM `records` WHERE #{query}”)
res.each do |row|
out[0]+=1
out.push(row[1])
end
return out
end
def add(record)
@dbc.query(“INSERT INTO `records` (`record`) VALUES (‘#{record}’)”)
end
def remove(q)
qa=self.query(q)
if [...]

13
June

Anyone who has poped into our IRC Channel (#whitefall on freenode) will have noticed that theres a new name thats allways there, “Beylix”. This is yet another bot, i know this is yet another bot, but i hope unlike the others ive made it wont just dis appear from use.
The underlying IRC Class is the [...]

11
June

Fedora 11 for the Wind

Written by Arcath. 4 comments Posted in: Linux
Tagged with , , ,

Well the time has come to update the wind to Fedora 11. So i opened up the “PreUpgrade” Utility and set it off. 3 hours later the download had finished (Wireless was a mistake) and it was time to reboot, so i rebooted the wind and was greeted by anaconda. It asked for nothing and [...]

11
June

Work Rant

Written by Arcath. 2 comments Posted in: General

As some of you may know i work as an IT Technician for multiple primary schools in the local area, the jobs that i do in the schools vary massively, from the bigger schools where im sorting out thier virtual server so that if thier main server dies i have a backup of AD, to [...]