Featured Posts

IPSec driver has entered Block mode Basically the issue was a NIC that could receive traffic but not send. Looking at the event  viewer I saw the message "IPSec driver has entered Block mode". I got around this issue by modifying the following...

Read more

Hard rest a Nokia E51 This will hard reset your phone (wiping all data). To do this, just enter the following sequence: *#7370# The phone will confirm the master factory reset and then reboot. If it asks for a reset...

Read more

Hotmail Active-sync settings When POP access to Hotmail isn't good enough and you don't want to pay for IMAP access then Actice-sync is the perfect solution. Not only is it free and fast it also has push capability. To set it up use...

Read more

XMBC (fanless HTPC) After many years my trusty XBOX no longer cuts it as a HTPC as most of the releases I want are in HD (and why shouldn't I take advantage of that).  After reading many forums and spec-in up numerous units...

Read more

Copy/move files in Linux For MOVING: sudo mv <file> /usr/local/base/.. for COPYING sudo cp <file> /usr/local/base/.. In place of <file> you can put the filename, or a directory or...

Read more

  • Prev
  • Next

IPSec driver has entered Block mode

Category : Server 2003

Basically the issue was a NIC that could receive traffic but not send. Looking at the event  viewer I saw the message “IPSec driver has entered Block mode”. I got around this issue by modifying the following registry key:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\ReservedPorts

Update the ReservedPorts key, do not replace the values currently there with these values but simply add these additional values. You can copy and paste the list below into the registry entry

  • 1433-1434
  • 1745-1745
  • 1080-1080
  • 1720-1720
  • 3343-3343
  • 1645-1646
  • 1701-1701
  • 1812-1813
  • 2883-2883
  • 4500-4500

You will get a warning message but just click OK.

Microsoft at this point tell you to remove the old IPSec policy (which didn’t exist on my server in the place they mentioned) so I just did the following:

  1. Rebuild a new local policy store. To do this, Click Start, click Run, type regsvr32 polstore.dll in the Open box, and then click OK.
  2. Verify that the IPSEC Services component is set to automatic (under services.msc), and then restart the host.

Most of this info can be found here: http://support.microsoft.com/kb/912023

Hard rest a Nokia E51

Category : Mobile, Nokia

This will hard reset your phone (wiping all data). To do this, just enter the following sequence:

  • *#7370#

The phone will confirm the master factory reset and then reboot. If it asks for a reset code, try 12345 or 1234

Hotmail Active-sync settings

Category : E-mail, Exchange, Mobile

When POP access to Hotmail isn’t good enough and you don’t want to pay for IMAP access then Actice-sync is the perfect solution. Not only is it free and fast it also has push capability. To set it up use the following info:

  • E-mail: username@hotmail.com
  • Server address: m.hotmail.com
  • SSL enabled
  • Username: username@hotmail.com
  • Password: <your password>
  • Domain: <blank>

I’ve had this working on Windows 6.5, Windows mobile 7  and Android.

XMBC (fanless HTPC)

Category : HTPC

After many years my trusty XBOX no longer cuts it as a HTPC as most of the releases I want are in HD (and why shouldn’t I take advantage of that).  After reading many forums and spec-in up numerous units I decided on the following:

So here are the parts just waiting to be put together – woohoo:

Okay I know the spec if overkill but I wanted a unit that would last me a few years.  I installed Ubuntu 10.4 everything was perfect except the temperature, after watching a 1080p film the temp shot up to about 86′c even when the box was idle it sat around 61′c.  I decided to bite the bullet and wreck my ‘fanless’ HTPC and go for some added cooling. I landed on this fan:

This was the ONLY slim silent fan I could find, only problem was the size – it would be to big to mount internally due to the size of my case.  At this point I was just fed up and wanted a working unit so I decided to do the unthinkable and cut a large hole in my new case and mount the fan externally.

After 30mins or so I was done.

The results after watching a two hour 1080p movie; well see for yourself.

15 - Temperature of htpc

The final result is a PC that boots in under 1.5seconds and completely silent.  That’ll do for now.

Copy/move files in Linux

Category : Linux

For MOVING:

  • sudo mv <file> /usr/local/base/..

for COPYING

  • sudo cp <file> /usr/local/base/..

In place of <file> you can put the filename, or a directory or even anything using a wildcard

eg: *.mp3 to move all the mp3 files in a particular folder

Assigning “Send As” Permissions to a user

Category : Active Directory, Exchange

1. Start Active Directory Users and Computers; click Start, point to Programs, point to Administrative Tools, and then click Active Directory Users and Computers.

2. On the View menu, make sure that Advanced Features is selected.

3. Double-click the user that you want to grant send as rights for, and then click the Security tab.

4. Click Add, click the user that you want to give send as rights to, and then check send as under allow in the Permissions area.

4.5 Remove all other permissions granted by default so only the send as permission is granted.

5. Click OK to close the dialog box.

Recommended Repository Layout

Category : SVN

The trunk folder contains the main development branch, the branches folder contains subfolders with temporary copies of trunk for experimental development, release stabilization etc. and the tags folder contains copies of the officially released versions.

Query users

Category : Active Directory

Query a user i.e. ‘Admin’. From the command prompt:

dsquery user -name *admin*

Result:
“CN=Administrator,CN=Users,DC=microsoft,DC=co,DC=uk”
“CN=ScomAdmin,CN=Users,DC=microsoft,DC=co,DC=uk”

Ninite Easy PC Setup and Multiple App Installer

Category : Windows

If like me you spend a lot of time downloading installers for numerous websites then you might want to try Ninite.

1. Pick the apps you want.
2. Start your customized installer.
3. You’re done!

Its not got everything I need but will defiantly shaves a few minutes off those lengthy machine rebuilds.

Adding 301 Permanent Redirect Code

3

Category : Web Programming

If you want to redirect all pages of an entire site to the main page of another domain, add the following code to your .htaccess file:
RedirectMatch 301 (.*) http://www.example.com/

The .htaccess file should be stored in the same location as the index page to your OLD domain that you are redirecting from.

If you want to redirect one page to another page:
redirect 301 /old-file-name.htm http://www.example.com/new-file-name.htm

If the old page is within a different directory (folder) as your index page, then you would need to adjust the path of the old file name accordingly.

For example, if the old file name is located within a directory named category, your code would be as follows:
redirect 301 /category/old-file-name.htm http://www.example.com/new-file-name.htm

If the old page is within a different directory (folder) as your index page, and you also want the new page within that same directory, then you would need to adjust the path of the old and new file name accordingly.

For example, if the old file name is located within a directory named category, and the new page will be also, your code would be as follows:
redirect 301 /category/old-file-name.htm http://www.example.com/category/new-file-name.htm

Again, make sure you save any changes you’ve made.