General

RDP With TSG on Mac

General

I found myself digging the issue this morning, I had to connect someone from Canada to our Terminal Server using TSG (Terminal Services Gateway) on an iPad.

After digging for a while, I finally found Microsoft themselves created a client for the Mac.

Read more...

 

Preventing multiple form submissions

General

So how many times have you built a PHP form processing script and ended up with dozens of duplicate database entries, duplicate mail sent etc...?

 

I've been diggin this for the last 48 hours and it was hell. the net is flooded with snippets of code that just won't do it!

Mainly javascript.  All the wiseasses will come to you and say "Just add onclick="this.button=disabled;" to your submit button and this should do it".

Well I've got news for you -- This WILL disable the button upon click but won't submit the form.

The following code, is the only thing that works, this after days of digging. trust me!

Make your button like this:

<input type="button" value="Submit" onclick="this.form.submit();this.disabled=true;this.value='Processing'" />

This will submit the form, disable the button and turn the text in it to "Proccessing" so that the user will understand what the hell is going on.

 

Enjoy!

 

Simba.

 

Duplicating a whole filesystem with tar

General

Ever wanted to copy your entire filesystem into another including all the links and permissions?

Say we have a filesystem in /filesystem.

We wanna duplicate that filesystem to a new filesystem in /destination.

Read more...

 

Clean Any Virus

General
search combofix.exe in google
 

How to keep your computer cool in the summer

General

Just like any other machine, your computer may suffer from overheating.

Overheating occurs when:

  1. Your CPU heatsink is blocked with dust, not allowing any airflow through it.
  2. Your CPU fan is bad/broken. A decent CPU Fan shouldnt drop below 2000 rpm.
  3. Your computer's environment is very hot (Closed non-ACed room, hot countries etc..)

We have a few recommendations for you, on how you may help your computer pass the summer safely by using cheap, widely available components.

 

Read more...