Jan200913

Windows Vista x64 to Windows 7 Beta

With the new Windows 7 beta out from Microsoft, I decided to try to upgrade an existing Windows Vista x64 which has been very stable and not had a problem, has a fair few applications installed and lots of documents.  I wasn’t putting up much hope, but backed up all the Documents and proceeded to upgrade the Vista installation as opposed to a new installation.

The installation started properly with no issues from within Windows Vista, then the PC required a restart, so restarted and the installation continued.

A message then came up during installation that “a required driver could not be found”.  This could be a problem, once the error had been closed, the window on screen said that all changes made would be reverted to how they were.  So my thoughts here were that it would restart back to Windows Vista like it was before with a heap of temporary installation files on the C drive.

Read the rest of this entry »

Dec200811

HTPC software configuration using MediaPortal

For my HTPC, I now have configured most things up, so it is all working just like it should be. It took a few OS reinstalls to get it exactly where I wanted it, but I more or less have it, just have to sort out Blu-ray & HDDVD playback sorted first.

Here is a list of what I was aiming for:

  1. Be able to play backed up DVD, Blu-ray & HDDVD videos in either .avi, .mkv (H.264) or WMV
  2. Central bit of software to cover everything
  3. Able to play off network shares
  4. Be able to play back Blu-ray and HDDVD easily

For my software I am using the following:

  • Microsoft Windows Vista x64 Ultimate Edition
  • MediaPortal v1.0 (with TVSeries 2.0 plugin and Monochrome 2.2 skin)
  • iMon 7.2

I did try using Ubuntu over Vista but found that Blu-ray support was a bit limited in the way you basically had to manually dump each film on to the harddrive stripping out the DRM.

So I ended up using Vista which has been very reliable. I have turned off Aero to give a small performance increase in playing 1080p MKV files and have disabled UAC for the obvious reason; it’s annoying.

Although the integrated Windows Media Centre that comes with Windows Vista is good, it can be a bit of a chore to get set up correctly to play any video format. So I am using MediaPortal which is a free bit of software which is simply fantastic.

I followed this guide from ProjectHTPC on setting up MediaPortal which is an easy to understand guide and tells you exactly what you need to know.

I then followed this guide on getting the Monochrome skin on Media Portal and getting the sound through to my sound system playing proper DTS. Following on from that guide, I came across a plugin for MediaPortal called TVSeries. It’s fantasic. I followed this guide and have all my TV series on my computer set up with fan art, which has now given me an excuse to get all my box sets on to the harddrive to have them as easy to access as possible.

Media Portal plays off network shares which has ticked off number 3 and allows me to continue on my search to get a NAS set up with a lot of storage to store all my DVDs etc on.

The only problem I still have to overcome is getting Blu-ray and HDDVD to play through MediaPortal properly, which should be OK once I get around to getting PowerDVD 7 or hacking PowerDVD 8 which removed any trace of HDDVD.

iMon has been a pain though, my case came with a CD with it on which I have now misplaced while moving house and have found myself downloading the latest version off the SoundGraph website extremely slowly.

Oct200809

Google Chrome annoyances

It has been over a month now since Google released Chrome to the world and quite a few annoyances have appeared over that time.

Closing multiple tabs

The huge flaw that is extremely irritating is no warning of closing multiple tabs.

If you have 10 tabs open and accidentally close the main window at the top right rather than the tab close button. Goodbye tabs.

You can have the sessions enabled to get it back once you open Chrome again but that isn’t very helpful if you had active downloads going when you accidentally closed the browser.

Earlier today I was download Portal: Prelude, an expansion modification for the game Portal. After download 550MB of the 775MB file, I accidentally closed Chrome forgetting that I had the download going.

IE and FF would of both stopped this from happening as they both open downloads in separate windows rather than the main browser, so if you close the main browser the downloads continue. Chrome does not.

I wasted that time and bandwidth downloading 550MB to be lost in the ether and having to download it again, because something so trivial was missed out of Chrome.

It doesn’t take a lot of common sense to know this is could be a problem, Mozilla, Microsoft and Opera all have implementations in place to stop this happening. The fact that Google took the best parts of all the other browsers in to 1 then deciding that a rather important feature wasn’t in their users best interest is worrying. How many other problems are there going to be under the surface?

Downloads

I have found that on many user initiated downloads that they just fail to start full stop on my Chrome installation at work and some downloads on my Chrome installation at home.

By clicking a download button the file will appear at the bottom of the browser and have ‘starting…’ next to it but never progress past this stage. Right clicking the file and selecting Save as… works for all anchor links, but any downloads that are done through a form button are impossible to download which results in my opening up Firefox to download files.

Dictionary

You don’t seem to have the ability to add new words to the dictionary in Chrome which is rather strange. In Firefox you can and it is helpful when you type in something quite a lot and it isn’t in the dictionary, that little red line becomes annoying.

While writing this post, there are 2 words with red lines underneath them. The first is Firefox. Fair enough, it isn’t an actual word in the dictionary but still, Google do give a lot of money to the Mozilla foundation (which is in the dictionary). But the 2nd underlined word is an odd one indeed. It is Google. The company who have made the browser haven’t even put their name in the dictionary, instead suggesting that I meant to type goggle.

Sep200822

[MySQL] Using MySQL to analyze web usage from Windows ISA logs

This tutorial will teach you how to import a tab delimited file in to a MySQL database. I built a program to do this for Windows ISA Server logs which contained over 500,000 lines which was way too many for Microsoft Excel to handle and too much for notepad to handle properly. What MySQL functions will we be using:

  • Load Date Local Infile
  • Select
  • Delete
  • Drop

Firstly I will show you how to put a tab delimited log from Windows ISA Server in to the MySQL database. With the logs that I have been working with a days worth of information has been between 500,000 and 700,000 which is around 150-200MB in size alone.

You will find that if you use the default PHP timeout settings that you will timeout with large operations such as importing such a large file in to MySQL. 

I suggest that you open a command prompt and run through the process below to import the file and see how long it takes to import. If you have previous logs, choose the biggest one so you can get a worst case scenario. 

Before we can import the data into a MySQL database we need a database and table to import the data in to. I am not going to go in to much depth for this as it is quite simple to do using PHPMyAdmin or a similar program.

For the ISA log table you can use my code that I have here:

CREATE TABLE `tbl_log1` (
`id` int(11) NOT NULL auto_increment,
`ip` varchar(100) collate latin1_general_ci NOT NULL,
`username` varchar(100) collate latin1_general_ci NOT NULL,
`browser` varchar(100) collate latin1_general_ci NOT NULL,
`date` varchar(100) collate latin1_general_ci NOT NULL,
`time` varchar(100) collate latin1_general_ci NOT NULL,
`isa` varchar(100) collate latin1_general_ci NOT NULL,
`blank` varchar(100) collate latin1_general_ci NOT NULL,
`proxy` varchar(100) collate latin1_general_ci NOT NULL,
`proxyip` varchar(100) collate latin1_general_ci NOT NULL,
`proxyport` varchar(100) collate latin1_general_ci NOT NULL,
`num1` varchar(100) collate latin1_general_ci NOT NULL,
`num2` varchar(100) collate latin1_general_ci NOT NULL,
`num3` varchar(100) collate latin1_general_ci NOT NULL,
`protocol` varchar(100) collate latin1_general_ci NOT NULL,
`method` varchar(100) collate latin1_general_ci NOT NULL,
`url` varchar(255) collate latin1_general_ci NOT NULL,
`type` varchar(100) collate latin1_general_ci NOT NULL,
`num4` varchar(100) collate latin1_general_ci NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci 

Feel free to change the encoding type if you wish. 

Now for the code. To import the data we will use the Load Data Local Infile ability of MySQL. This will load a file that is locally on the machine to the MySQL database given the right parameters.

load data local infile 'C:\\logfile.log'
into table tbl_log1
fields terminated by '\t'
lines terminated by '\n'
(ip,username,browser,date,time,isa,blank,proxy,proxyip,proxyport,num1,num2,num3,protocol,method,url,type,num4)

The last line is a list of the columns in order that are in the log. The only columns we really want are username, date, time and url, although you may want ip as well if you are monitoring network activity on static IP address so you can see where most of the bandwidth is being used. If you are importing a different file then change the columns to the names of your columns in your delimited file. The names of the columns within the brackets are the names that you gave them in the table. 

For example if you have a list of usernames, passwords and emails you will want 3 columns and a last line looking like this:

(username,password,email)

The column names have to be in order. If email is the first column in the file then make it the first word within the brackets. 

The 1st line should be the same for everyone except for the location of the file. Of course using the load data local infile function the file has to be on the machine itself and can not be done through the network. Also note the 2 backward slashes, the first backslash is to espace the following backslash.

The 2nd line is the table that we are importing to, make sure you have set up a table for your data to go in to. 

The 3rd line sets the delimiter type. \t is the delimiter for tab and \r is for a space. I am unaware of what the others are so if anyone knows please let me know.

The 4th line sets the delimiter for the end of the line. In this case each line was a new row on the file in excel so this is \n for new line.

The 5th line is the list of columns that we are importing into. 

The only problem is if you are importing a large log file like I was. What I had to do was cut out all the rubbish that I didn’t need to make the databases faster for queries and the like.

First of all I deleted all the columns I didn’t need.

ALTER TABLE `tbl_log1`
DROP `ip`,
DROP `browser`,
DROP `isa`,
DROP `blank`,
DROP `proxy`,
DROP `proxyip`,
DROP `proxyport`,
DROP `num1`,
DROP `num2`,
DROP `num3`,
DROP `protocol`,
DROP `method`,
DROP `type`,
DROP `num4` 

This took out all of the columns I didn’t need and brought the size of the file down quite a bit.

The second thing was that the log I had, had a lot of anonymous results in it, roughly around a third of the rows. So I ran this little bit of code to remove all the anonymous results.

DELETE FROM tbl_log1 WHERE username like "%anonymous%" 

The problem with this is removed a lot of these results leaves a lot of overhead in the database. So you can either optimize the table after each delete query or you can run it at the end once you start searching. 

OPTIMIZE TABLE tbl_log1

This will remove the overhead on the table and will decrease the query times. 

You can now use queries to search for users internet usage or a certain websites users. You will find a lot of websites in the list, if a user typed in www.microsoft.com it wouldn’t just say www.microsoft.com in the log, it would have the url of every image that the user downloaded, every CSS file, every page….everything. 

You may also want to set up other queries to remove certain websites that you know are safe and don’t mind about such as www.microsoft.com:

DELETE FROM tbl_log1 WHERE url like "%.microsoft.%" 

To search for anyone going on the BBC website you could type the following:

SELECT username FROM tbl_log1 WHERE url like "%bbc.co.uk%" 

This will display a list of users that have been on BBC. But this will come up with multiple duplicates of the usernames due to the issue stated above. To stop this we can add the GROUP BY parameter to our query to group the usernames together so we only have a single result from each user. 

SELECT username FROM tbl_log1 WHERE url like "%bbc.co.uk%" GROUP BY username

This tutorial was originally posted on Skeletorscorpse.com

Mar200804

[FIX] – the volume control program is not installed

If you get the above message it is because you have for some reason lost your sndvol32.exe file from %WIN_DIR%\SYSTEM32.

soundproperties

If you do have this problem is is likely that you do not have access to the first Advanced button, which will be greyed out and you will get the error message about the volume control program when you tick the box “Place the volume icon in the taskbar”.

And here is how you get it back:

Read the rest of this entry »

Dec200713

Crysis Benchmark – DX10 Vista x64

Here are some benchmark results for a medium-high spec PC running Crysis on Microsoft Windows Vista x64.

The PC in question is the following specification:

  • Intel Core2Duo E6750 overclocked to 3.2GHz
  • 4GB DDR2 PC6400 RAM
  • 250GB SATA 7200RPM HDD
  • Nvidia 8800GTS 320MB overclocked to 560MHz core, 850MHz memory

This including case and PSU etc, excluding monitor and speakers can be bought for around £700-£750, which isn’t really a lot, bringing it around £1000-£1200 with speakers and 22″ widescreen monitor.

The benchmark was carried out on Windows Vista 64-bit edition in DirectX 10 mode.

The benchmark tool used was the Crysis Benchmark Tool made by the team at Crymod and can be downloaded from Crymod or Guru3D.

benchmarktool

Read the rest of this entry »

Dec200713

Opera accuses Microsoft of anti-competitive behaviour

Microsoft has once more come under fire for allegedly anti-competitive behaviour – this time from software rival Opera. The Norwegian company, which makes an internet browser of the same name, has filed a complaint with European Union officials accusing Microsoft of stifling competition.Opera, which has around 12 million users worldwide, said today that Microsoft had been acting anti-competitively by bundling its Internet Explorer program with the Windows operating system.

“We are filing this complaint on behalf of all consumers who are tired of having a monopolist make choices for them,” said Jon von Tetzchner, the chief executive of Opera. “We cannot rest until we’ve brought fair and equitable options to consumers worldwide.”

The company said it was looking for a series of measures from European officials, including forcing Microsoft to unbundle Internet Explorer or allowing rival products to be preinstalled in Windows, and compelling Microsoft to follow design guidelines issued by web standards groups.

Source: Guardian

Microsoft is once again most likely going to have legal action simliar to that of the Windows Media Player antitrust suit in which the EU fined Microsoft €280M.

Read the rest of this entry »

Sep200702

Bioshock and Securom

Everyone is blaming Sony for the DRM fiasco involving Bioshock but what people seem to be forgetting is that 2K Games actually paid for Securom to be put on Bioshock. Securom has been known for a long time to cause problems.

Upon recieving my copy of Bioshock, I installed which all went fine, then the installer tried to download a patch, so I allowed it. The patch failed to download properly, so I retried….and retried.

At this point I clicked cancel, which resulted in the whole installation being cancelled.

I restarted the computer and tried again, same thing happened again except this time, rather than closing the installer down, I went to the start menu and tried to run Bioshock.

Read the rest of this entry »