Featured Post

Java hang in VMWare Fusion XP VM

I have recently moved over the the dark side and have a mac now. Part of what has made that change over so smooth has been VMWare Fusion. I have been very very impressed so far with how it all works, even more so once I reduced the RAM available to my XP VM from 1GB down to 512MB. This improved the performance...

Read More

Java hang in VMWare Fusion XP VM

Posted by brendo | Posted in work | Posted on 29-03-2009

Tags: , , , ,

0

I have recently moved over the the dark side and have a mac now. Part of what has made that change over so smooth has been VMWare Fusion. I have been very very impressed so far with how it all works, even more so once I reduced the RAM available to my XP VM from 1GB down to 512MB. This improved the performance significantly because OSX had enough resources to be able to run smoothly, therefore the VM benefited.

One of the 2 apps that I am currently using in XP is Netbeans. I realise there is a Mac version, but for JVM reasons I need 1.6, which isn’t available on the Mac just yet. I have found what appears to be a bug.

Whenever I leave Netbeans running when I suspend the VM, the next time I start it, the java process has spiked to 100% and netbeans is virtually unresponsive. Even then when I close Netbeans properlly, the java process remains (still at 98%-100% CPU usage) until I manually kill the process.

The simple workaround is to make sure Netbeans is shutdown before suspending the VM, and ensure that the java process has terminated, but this is not always an option (especially if in a hurry).

I will investigate this a bit further, possibly a VMWare Fusion bug, as I never saw this behaviour in VMWare Workstation running the same VM.

Windows Server 2008 Once Remote desktop connection

Posted by brendo | Posted in security | Posted on 27-03-2009

Tags: , , , , , ,

0

Just installed windows server 2008 for our test team and remoted in to configure it. I set up remote desktop and gave it the max number of connections (which was limited to 2).

I restarted the server to ensure the changes would be applied and logged into a remote desktop session. A colleague then logged in off his machine and it booted me out, sighting someone else had logged into this session.

After a number of searches through the remote desktop settings, it turns out that by default, Windows Server 2008 only allows one remote desktop user per session.

To change this, go to Administrative tools > Terminal Services Configuration and double click on the item “Restrict each user to a single session”. From this window, uncheck the “Restrict each user to a single session” box. Voila! 2 users remote desktop’ed in simultaneously.

remoteclient.gif

Moving Gmail calendar to Google Apps For your Domain Calendar

Posted by brendo | Posted in All Posts | Posted on 09-09-2008

Tags: , , , , , , ,

1

So I finally got around to moving my domain to use google apps for your domain. So far I like it, but migrating from 2 years of Gmail use has been tough. I haven’t moved much email yet, though I’m pretty sure that a temporary upgrade to a pro account can take care of that – steps will come in another post once they are completed.

So now it’s time to move my calendars. I run out of 3 calendars, one for timetables (hours worked, uni classes etc), one for due dates (projects, assignments) and one for everything that doesn’t come under either of thsoe 2 categories like personal dates.

I expected it to be an annoying and arduous task, but low and behold, it is extremely simple!

First you need to log into your Gmail account, click settings up the top rightm, choose the calendars tab and export all your calendars.

Step 1

Unzip the file and keep the .ics files somewhere handy.

Next, log into your Google apps calendar and create the neccesary calendars.

Then click the little arrow next to Add and choose import calendar

next step

From here you select the file you want to import, the calendar you want to import to and voila! Calendar moved from Gmail to Google Apps for your Domain.

last step

Wanted… more

Posted by brendo | Posted in rant | Posted on 05-08-2008

Tags: , , , , , ,

0

So I just got back from watching Wanted… I’m not going to say I didn’t like it, because I did. It just left me feeling a little awkward. I think this quote describes how I felt walking out of there, “It was like a reach around, then I turned around and it was from a guy… now everyone feels a bit awkward” (Please note that I was on a 4way man date, but noone reached for anything).

If I had to sum up the movie for someone going to see it it’d be like this:

“Dude… y’know what’d be cool… if people could shoot bullets and bend them…”
“Yeah, that’d be awesome, let’s make a movie about it!”
“Yeah sweet. We better make sure Angelina Jolie is in it.”

I’m not going to spoil the ending or story line twists or anything, but I will list my favourite and least favourite parts.

FavBits:

  • Angelina Jolie getting out of the bath
  • Angelina Jolie pashing the guy in slow motion for about 45 seconds
  • The main guy smashing the keyboard across his mates face.

Least fav:

  • When they flip the cop cars (cool) and land on the bus (still cool) then they magically do a mono/wheelie off the bus and land smoothly on their rear wheels (stupid – made me question my sexuality).
  • The bit where the train snapped off and they were in the carriage that crashed ~50m down into a cliff, and survived easily
  • The last line of the movie “What have YOU done today?”… Well I sat next to a really fat guy on the train home, and I ate schnitzel, then I went to watch a movie that was almost great, but in the end, just ok…

Overall I didn’t mind it, but it wasn’t nearly as cool as I thought it would be.

Liar liar, pants on fire

Posted by brendo | Posted in rant | Posted on 24-05-2008

Tags: , , , , , , ,

0

Tonight was one of the most frustrating games of indoor cricket I’ve played in a long time. It was the first time we have played at North Wollongong in our 4 seasons in the comp, and I never want to play there again. Every week we hear teams complain about it – the courts are poorly maintained and too small, the umpiring is terrible and the players are a pack of wankers. The 3rd one (barring a couple of exceptions) we knew, but we suspected the rest was just bitter teams.

I hate when an umpire 1. doesn’t know they rules of the game they are umpiring, and 2. deliberatly makes decisions in favour of the team they support (cheats).

There has only been one other centre we have played at that has had an umpire that cheats until now, and she did it both times we played there, blatantly. This frustrated us, but we know to expect it now.

After tonight, I would prefer to play there every week than ever play at North Gong with that umpire tonight. He gave 2 calls of ‘not out’ for the home team where the batsman was at least 1m out. AT LEAST. These were not close calls that went in their favour, these were blatant disregard for the spirit and rules of the game. It made our team angry. We are happy to accept that umpires make mistakes, and not every call goes your way – but when he is clearly basing his decisions on which team is batting, it is wrong. I suggested to a team mate that it is no wonder they make the semi’s every year playing half their games in front of this joker… A guy from the sideline said “yeah, but we’re ahead of you on the table”. I turned and told him “you were ahead of us last year… until we beat you  twice by 100 runs in the semi finals andwe finished second..”

Getting sledged by people from other teams pisses me off. It happened again later on, after bowling a great over, a guy from the sideline sledged the shit out of me. Normally I would flash him a smile and get on with it – but he was a guy that had attacked me before. I walked over to where he was sitting and asked “when do you bat? oh… that’s right, you’re not good enough to play top grade… oh well.. it’s probably more satisfying being the best player in 3rd grade.” He stuttered and had no comeback.

There were a few funny moments – a wanker from their team faced up to the first ball of the over, then missed it, turned to the umpire and asked how many left. I walked over and said “8 minus 1 and you can’t work it out yourself, that does explain a few things”.. He then tried to hit the ball at me and got out. Score 1 to us.

At the end of the game the umpire began to have words with our team (after the 4 nationally accredited umpires questioned the rule he made up). I got the shits, gave him a spray and left.

I am pissed off with cheaters, we lost the game, the umpiring was shit, I have a massive bruise on my leg, yet still – I can’t wait for next week… Am I a sucker for punishment? Yes… but fuck I love my cricket :)

Lyrical twitter bot

Posted by brendo | Posted in All Posts, programming | Posted on 18-03-2008

Tags: , , , , ,

0

After making the sickipedia twitter bot, I decided to make another that made use of a little bit more of the Twitter API this time. I call him lyricbot. Basically, you send a reply to lyricbot (after you have followed) with a line from a song and it will have a red hot go at telling you what the song is…

I decided to post some of the code for anyone interested in how I did it.

The bot is written in Python, and uses the python-twitter library for the Twitter API calls. I will apologize upfront, the code is probably disgusting, but this is only the second thing I’ve ever written in python, so I’m still an L plater.

The first thing we want to do is import the 3 libraries we need; re, twitter and urllib2.

import twitter
import re
import urllib2

Next we need to authenticate with the twitter API, then we’ll get the replies in the form of a Status object.

api = twitter.Api(username='lyricbot', password='nottelling:)')
status = api.GetReplies()

Now that we have all the replies sent to that user, we can iterate through them to decipher what people have said:

for stat in status: #iterate through replies
lyric = stat.GetText()[10:] #strip the '@lyricbot ' from the front and grab the text
userN = str(stat.GetUser().GetScreenName()) #grab the name of the user that replied
idno = stat.GetId() #the unique id no of the message. This is for ensuring people don't get multiple replies for one request

Next I parse the string for use in the URL and get the html:

lyric = urllib2.quote(lyric)
f = urllib2.urlopen(url) #open the URL into the stream
html = f.read() #read the url into a string

Once I have the html of the search results, I need to use regular expressions to find the song names from that site.

#compile the regex that finds the first 3 song names returned
re_lyr = re.compile('[123].([A-Za-z0-9].{10,80}).Lyrics', re.DOTALL)
#find the matches for the expression in the html
newRes = re_lyr.findall(html,1)
songs = ''

Once I have the (1, 2 or 3) song results stored in the newRes tuple, I need to check how many (if any) it found, or deal with none being found.

reslen = len(newRes)
if reslen > 0 :
songs = songs+newRes[0] #append to the string that gets sent
if tuplen > 1 :
songs = songs+' '+newRes[1]
if tuplen > 2 :
songs = songs+' '+newRes[2]
else : #if there were no songs found
songs = 'Sorry :( I couldn\'t find that one!

Now that we have a string to post (either the song names or the fail message), it’s time to send:

api.PostDirectMessage(userN, songs)

That’s about it really.
There will be another post after I launch it properly, probably with some updates.

Moving your active uTorrent torrents between computers

Posted by brendo | Posted in All Posts, Guegh | Posted on 14-03-2008

Tags: , , , , , ,

1

I am about to reformat my computer, but have torrents in the middle of downloading and can’t wait until they are finished, so this little trick is a godsend.

Navigate to
C:\Users\Brendo\AppData\Roaming\uTorrent
and back up the entire directory. (In Vista, not sure of the exact directory in XP)

Then navigate to your downloads folder
C:\Users\Brendo\Downloads
in my case, and back that up too.

Once you have reformatted/moved and installed uTorrent, simply drag those two directories over the top of what is already there and voila! your torrents are back how they were.

Now to finish setting up this computer to puuuurrrr…

Doin’ Lines…

Posted by brendo | Posted in All Posts, music | Posted on 13-03-2008

Tags: , , , , , , ,

0

Normally when I go to a concert, I write a bit of a review about my experiences there, and with this summer being packed full of musical goodness, there will be a few posts about this. This summer that (once it has finished) will have crossed Rage Against the Machine, Incubus, Offspring, and Korn off my “to see� list.

It starts with Rage Against the Machine, which actually started waaay back in 2007

The Big Facebook Fail

Posted by brendo | Posted in All Posts, rant | Posted on 11-03-2008

Tags: , , , , , , , ,

0

When the Facebook developer Platform was first announced, thoughts of brilliant applications using Facebook’s amazing viral marketing ability was all I could think about. It was touted as an online revolution. Colleges ran classes on developing Facebook applications and every Tom, Dick and Harry had a play around with FBML (Facebook Markup Language) – myself included.

keytool java.security.cert.CertificateParsingException: signed overrun, bytes = 139

Posted by brendo | Posted in programming | Posted on 11-03-2008

Tags: , , , , , ,

1

When playing with SSL certificates and Java I came across a very weird error that I could not find a solution to anywhere.

I had submitted my CSR and got the certificate back in an email, so I copied it and pasted it into a .cer file ready to SSL my applet, but when trying to import the certificate, I got the following error:

keytool java.security.cert.CertificateParsingException: signed overrun, bytes = 139

After much searching of forums and Google, I could not find any reference to this specific error message other than something about copy and pasting from the wrong format. I thought that maybe it was something to do with Outlook, so logged into Gmail and copy and pasted from there, voila!

I decided to make sure Outlook was my problem before slaying it all over the intarwebz and sure enough, copy and pasting from Outlook again threw the error, but doing it from Gmail did not. I no longer copy and paste anything important out of Outlook.