Friday, December 29, 2006

Detect Internet Explorer aka IE nag fun

A simple way to deliver content only to Internet Explorer is with the following code : 

<!--[if IE]>
HaHa you're using IE :P
<![endif]-->


Using this you can insert any code you want anywhere you want into a web page that only Internet Explorer will render.

Microsoft talks about this feature here.

Thursday, December 28, 2006

FireLog v1

This information is outdated. Please visit the official Firelog page.


Version 1.2
Released : Mar 22nd 2007

Firelog download

Firelog download backup

Firelog is a internet / firewall security "front end" developed for Puppy Linux.

Firelog v1 was released Dec 28th 2006
Firelog v1.1 was released Jan 4th 2007
Firelog v1.2 was released Mar 22 2007

The Puppy Linux forum thread for Firelog is here.

Click for full sized image !

Firelog screen menu shot

Please report all bugs to the Puppy Linux thread on Firelog

Thursday, December 14, 2006

UDP Port 25099 : Large BotNet !

Recently I was monitoring my networking traffic and noticed a lot of incoming connections from around the world on UDP port 25099. I asked the search engines about UDP port 25099 and found nothing.

Update : (3/7/2007) At some point since this post all traffic on UDP port 25099 has stopped. I imagine the botnet updated its client list and removed me from it since my computer is no longer responding to its commands.

After a bit of investigation I've come to the following conclusion.

Last week my anti-virus program picked up on a trojan and removed it. However this trojan had been in place for a while since it was stored in some backup files. It would have been found sooner but my normal anti-virus program (AVG) didn't detect it.

That trojan made me part of a bot network which uses UDP port 25099 to communicate. The other bots have no idea I've removed the trojan and continue to try and communicate with me.

Judging by the packet data right now the botnet is just trying to stay synced, I can see commands in their packets like get_peers, find_node, announce_peer.

The traffic load is fairly impressive - I would average about 1 request per second from computers around the world who are apart of this botnet.

So if you see a lot of traffic coming in on UDP port 25099 run a comprehensive virus / trojan scan on your system to make sure you're not infected.

Note : You can use Ethereal to monitor your traffic.

Tuesday, October 24, 2006

Wordpress theme keep changing ?

If your Wordpress theme keeps changing automatically here is a simple work around. Some people report "new themes" showing up or it changing back to the default Wordpress theme.

The solution I used goes like this :
  1. Copy the folder of your current theme
  2. Rename the old "default" folder to something else
  3. Rename the copy of your current theme "default"
Now every time Wordpress changes themes on you it should still load your current theme.

A downfall to this is when you update your template or images you have to do it for both copies of the theme.

If possible you might be able to make a symbolic link (a shortcut) if it's a Linux operating system using the a command like :

ln -s .../themes/theme_name .../themes/default

Please let me know if you have any errors.

Wednesday, October 18, 2006

Monday, October 16, 2006

How To Make Your Own Alternative Ad for AdSense

So recently I got tired of getting Google Public Service announcements and decided to look into this alternative ad thing. I decided that using a color that makes it a blank space isn't for me; it's not doing anything good for my pocket book - plus visitors will get different views of the site depending on when they visit.

So I set out to make my own alternative ad, this is actually VERY easy.

You only need 3 things :

1. An image the size of the ad block.
2. A simple html file which makes the image a link.
3. Insert this code into the third line of your adsense code (under your pub-0129103 number) :
google_alternate_ad_url = "http://yoursite.com/adurl.html";

Wha-la, you now have your own alternative ad showing whatever you want.
Technorati Tags
[ ]
[ ]

Thursday, September 28, 2006

Enemy Territory Tweak - Nvidia Direct 3D Render Ahead Settings

I love online FPS (first person shooters) and recently discovered the free game Enemy Territory. Even on this older machine it runs pretty good and I've tried the game using two different Nvidia graphics cards. However I couldn't seem to hit the side of a barn - the aiming and mouse response was sluggish even when the frames per second were high.

System Specs
  • HP Intel P4 1.5ghz
  • 384 MB DDR RAM
  • Windows XP Professional
  • GeForce4 Ti4200 128 MB
  • GeForce4 MX 440 64 MB

So I did a bit of searching and discovered that some Nvidia users suffer from "mouse lag" while gaming. That's where the Direct 3D Max frames to render ahead setting comes in.

How to find your Direct 3D Max frames to render ahead setting :

  1. Go to Start -> Control Panel -> Display
  2. Click the "settings" tab at the top right of the Display Properties window
  3. Click the "advanced" button at the bottom right
  4. Click the tab with your video card name on it
  5. Click the arrow next to "Performance & Quality Settings"
  6. Select the "Additional Direct 3D Settings" sub-category
Note : You can use the NVidia Coolbits tweak to unlock hidden settings like overclocking.


click for full image



A common fix for "mouse lag" is to set the Max frames to render ahead to a lower number. By default mine was set to 3 frames. Some of the pages I found said putting this setting on zero would actually hurt your gaming experience while others said a setting of zero would be the master solution.

My advice is find out what works best for you.

I set my Direct 3D Max frames to render ahead value to zero and then played Enemy Territory. I was able to do a lot better and could tell the accuracy had picked up a good bit. This tweak will only fix your "mouse lag" problem - it won't increase your frames per second.

Friday, September 22, 2006

Xubuntu : XFCE Menu Items

If you're using Xubuntu and are trying to add menu items to categories such as Games or Network you've probably noticed the XFCE Menu editor is of no use.

Here is the fix :

Xubuntu system menu items are controlled via files in the following directory :

/usr/share/applications

This directory contains a lot of files that end in .desktop

These are the files that control what menu items appear in certain categories.
  1. Open the .desktop file of the menu item you want to add to a catagory ( file A )
  2. Open the .desktop file of a menu item already in that category ( file B )
  3. Replace the "Categories=" line in file A with the one from file B.

You may have to restart XFCE for the changes to show up or perform some action that requires the menu file to be reloaded ( like check the check "hidden" for something in the menu editor then hit save ).

If there is no .desktop file for the program you want to add then create a new file (make sure it ends in .desktop) and copy the contents from a file in that catagory into your new file.

Then change all the important details and everything should work.

* Note

To open the .desktop file as root go to a root terminal and inside the
/usr/share/applications directory and execute :

"mousepad filename.desktop"

Or from the regular terminal inside the
/usr/share/applications directory execute

"sudo mousepad filename.desktop"

Technorati Tags
[ Xubuntu ]
[ XFCE ]
[ XFCE Menu ]
[ Xubuntu XFCE Menu ]

Thursday, September 14, 2006

MySpace Phishing Scam

Hi Reddit dudes plz help me get my pw back! :)

Tonight when viewing a MySpace profile I noticed I got redirected and MySpace asked me to login.

No problem.

Except for when Firefox asked me if I wanted to save my username and password. Do what ? Firefox already has this saved for the MySpace.com domain...hrmm something didn't smell right.

A quick glance at the address bar confirmed my guess - it was a web site involved in a MySpace username and password phishing scam.





The page looks exactly like the MySpace login screen. I took the liberty of trying to sign in under the fake username "hey moron" with an equally entertaining password. Amazingly enough the page pretends to log you in then redirects you to your actual MySpace homepage.

This is able to work because you were never actually signed out of MySpace - they merely pretended you were. Then when you give them any username and password they send you back to your MySpace page because after all - you're already logged in.

Moral of the story - always make sure you're logging into myspace.com/ and not myspace.com.duh.net/

Technorati Tags
[ MySpace Phishing ]
[ MySpace Hacking ]

Tuesday, August 29, 2006

Wordpress : Embed YouTube movies

You've probably noticed that using YouTube or some other embedded video with a Wordpress blog doesn't work.

Even in HTML mode Wordpress messes up the code, here is a way to work around this.

How to fix the Wordpress YouTube embedded video problem
  1. Login to the Wordpress Admin Menu

  2. Click Users

  3. Click Your Profile in the sub-menu

  4. Uncheck "Use the visual editor when writing"

  5. Click "Update Profile" to save your settings.

You are now ready to make a Wordpress post using embedded videos like YouTube.