Friday, September 25, 2009

New ClamAV Live CD update

I updated the ClamAV Live CD to 0.95.2 today (finally). I have been wondering what I want to do with this project the past few months. When I first created the CD, I wanted it to be as small as possible so that I could put it on a 128 MB thumbdrive (or 150 MB mini-cd), so I worked extremely hard trying to get it as small as I could. I needed the CD to run on computers with as little as 128 MB of ram! I also didn't know it would be such a popular tool when I released the iso on my website, so I never included documentation on how to use it, prettied it up, things like that. I liked it the way it was, completely minimal and still gets the job done.

I have, however, gotten requests from a few people (five or so) that ask for it to be more user friendly. I am torn between the ease of use vs portability aspects of the project, so I ask you fellow Ubunteers your opinion. Of those who have used it, do you like the minimal approach, or would you prefer a prettier, more user friendly/graphical tool? Maybe two versions? If I went with the more graphical tool, I would look to utilize the full extent of a normal CD, so I would be including many more tools and such.

Thanks for any feedback!

Wednesday, September 16, 2009

AudibleManager in Ubuntu

So, it turns out that the AudibleManager software that Audible.com uses for it's audiobooks runs in wine for the most part. The one part that doesn't work is the one part that makes the actual software useful to install, and it looks like it is a bad API implemenation of InternetCrackUrlW() within the Windows inet libraries. It is taking a TLS session and assuming it is SSL, making an SSL request on the audible servers, with no SSL port being used on the Audible servers in the first place, causing a time out on authentication.

A few patches have been proposed on the bug page (http://bugs.winehq.org/show_bug.cgi?id=16831), but I was hoping that the last patch that seems to work had been employed into the latest stable version (it hasn't, quite a disappointment), so even using the wine apt repos rather than the ubuntu ones doesn't fix this for you. You have to patch it yourself.

No esta bien. And I am a big fan of audiobooks, so, please, no posts on how Audible.com is evil for it's DRM.

Tuesday, July 7, 2009

First recording with audacity underway!

So, I have decided to start recording some of my music. I am using Audacity atm until either A) I hit a brick wall with it and can no longer use it or B) I finish this song.

It is kind of Tool/NIN-y, so it isn't really the music _everyone_ likes.

Just the intro to the song for the time being, haven't gotten the whole thing worked out yet... It's about 3 minutes long (calculations tell me the whole song should be about 10 minute slong total when I am done).
http://files.volatileminds.net/nothing_intro.mp3

Criticisms and comments are much appreciated! /me looks at jono.

Saturday, June 6, 2009

Man, I love my internet....


the internet in my apt.

Friday, June 5, 2009

Looking for a job in germany....

Hello Planet, I am hoping you can help me!

I am currently looking for a new job. I have always wanted to live and work in Germany. I know people in Germany read the planet, so maybe, if anyone out there in Deutschland is looking for a .NET programmer/Systems Administrator/All around computer tech guy and is willing to sponsor a work visa, let me know in the comments or email me at bperry.volatile[at]gmail[dot]com and I will get you a resume.

I have managed Linux and Windows servers for the past three years, written .NET professionally for about one and a half years, and have excellent recommendations!

Thanks a bunch!

Monday, June 1, 2009

Running SQL scripts in order from C# code

I have a folder of SQL scripts being compiled as embedded resources. They are named as such:

01 FirstTable.sql
02 SecondTable.sql
etc...

so that way I can run them in the order they need to be run in when say, resetting a database. The problem I ran into was getting the resources through reflection gave them to me in the wrong order... the second script was trying to be run first and it relies on the first script, so that obviously didn't work. Running Array.Sort() on the script list fixed this problem. The code ended up looking like:


public void Reset()
{
if (string.IsNullOrEmpty(ConnectionString) && Connection == null)
throw new Exception("Connection string and connection are null.");
else
{
if (Connection == null)
Connection = new MySqlConnection(ConnectionString);

Connection.Open();

MySqlCommand cmd = new MySqlCommand();
cmd.CommandText = "DROP DATABASE SystemsLogica; CREATE DATABASE SystemsLogica; USE SystemsLogica;";
cmd.CommandType = System.Data.CommandType.Text;
cmd.Connection = Connection;

cmd.ExecuteNonQuery();

Assembly asm = Assembly.GetExecutingAssembly();

string[] scripts = asm.GetManifestResourceNames();
Array.Sort(scripts);

foreach (string file in scripts)
{
Stream res = asm.GetManifestResourceStream(file);
byte[] resbytes = new byte[res.Length];

res.Read(resbytes, 0, (int)res.Length);

Console.WriteLine(file);
Console.WriteLine("-----------------");
Console.WriteLine(Encoding.ASCII.GetString(resbytes));
Console.Write("\n\n\n");


using (cmd = new MySqlCommand())
{
cmd.CommandText = Encoding.ASCII.GetString(resbytes);
cmd.CommandType = System.Data.CommandType.Text;
cmd.Connection = Connection;

cmd.ExecuteNonQuery();
}

}

Connection.Close();
}
}


This works great in mono. This was just a test method, so there is no real error checking, so be careful.

Tuesday, May 5, 2009

2 things

Reset mac password without CD:

[Apple|Super]-S after chime
mount -uw /
rm /var/db/.AppleSetupDone
shutdown -h now

Office 2003 source doesn't match installation source.

Uninstall from the setup binary on the CD.
Go to Control Panel -> Add/Remove programs -> Remove Office 2003. For some reason, it isn't removed from this list. this causes many headaches later and took me a few hours to figure out.
Reinstall from CD.