7. nov. 2008

Understanding your visitors

Original post

Why are people leaving your site?


For instance, you can use Google Analytics for tracking where people clicked.

28. jun. 2008

Disable Windows XP stamping reading files

Whenever XP reads a file, it stamps the file with the date and time of the access. This feature has its place but is not required for normal use unless you rely on the date of last access for backup purposes, which is a rare requirement for most backups. Putting a timestamp a file that has just been read means that a write access has to be made to disk, so every time a read is executed, a corresponding write is also executed.

At the command prompt, enter the following then reboot;

FSUTIL behavior set disablelastaccess 1

Those of us who read and write English need to take note of the American spelling of the BEHAVIOR parameter.

To turn timestamps back on, repeat the command but replace the 1 with 0.


25. jun. 2008

Reduce Windows shutdown time

To reduce the timeout Windows XP has for unfinished programs, you may edit it in the registry in milliseconds at the location: HKEY_CURRENT_USER\Control Panel\Desktop editing the value WaitToKillAppTimeout.

Ny blog - Fototips

Jeg har oprettet en ny blog som skal handle om fotografering og billedmanipulation.

Se den her: http://fustphoto.blogspot.com

8. apr. 2008

Eclipse Keytool plugin has moved

The Eclipse Keytool I've made, has moved to http://keytool.sourceforge.net

Feel free to download it, and give your comments.
It's also possible to download it as a application just containing Keytool.

Keyfeatures

  • Export certificate, with or without the private key.
  • Create certificate.
  • Create keystore.
  • Open existing keystore.
  • View all available information about every certificate.
  • Open existing certificate. Default with the extension .cer.
  • View list of certificates in a keystore.
  • Handles JKS and PKCS #12.
  • Show which certificate in a keystore where you have the private key.
  • Filemonitoring, to monitor changes in keystores.
  • Default opening a keystore every time Eclipse starts.

27. sep. 2007

Avoid restarting Windows automatically

Somethimes my Windows just restarts - why?


This may be because of a system failure.
Then Windows automatically restarts.

If you want to disable the restarting, the follow this guide.


Windows 2000 or XP
  1. Right-click "This computer" and choose properties.
    Alternatively press Windows-pause.

  2. Choose tab Advanced

  3. Choose startup and recovery

  4. Remove checkmark at "Restart automatically"


Windows Vista
  1. Start

  2. Write 'System, Properties, Advanced' and press enter

  3. Choose startup and recovery

  4. Remove checkmark at "Restart automatically"

28. aug. 2007

Windows XP Performance Tweaks

My Window is running slow -> Tweak it!


Here's a very good article about Windows
XP Performance Tweaks
.

(Click on the article to read the full story)

  1. Graphical User Interface and Themes

  2. Enable ClearType

  3. Disable Last Access Timestamp

  4. Kernel Paging and Cache Tuning

  5. Separate Window Processes

  6. Processor Scheduling

  7. Turn Off the Indexing Service

8. aug. 2007

Disabling Windows autorun for CDRoms

Windows automatically runs autorun.inf - I don't want that


Startup registrationeditor (Press Start - Run - regedit)
Navigate down to: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Cdrom
Here you'll have an element Autorun.
Set it's value to 0 (double-click on it).

23. jul. 2007

Introducing continuous integration

How continuous is your integration and what could your team be doing to improve it?

A JavaWorld excerpt from Continuous Integration: Improving Software Quality and Reducing Risk (Addison-Wesley Professional, June 2007)

Read the article.

16. apr. 2007

1 kilobytes is no longer 1024 bytes...

According to Berlingske is 1 kilobytes no longer 1024 bytes as we learned in school...


It's now 1000 bytes - It's easier to remember, and the old definition can still be used.
1024 bytes is now kibibyte or KiB.

The same goes for a megabyte is now a million bytes (10002). If you want to note 10242 it's MiB.

.. and of course same story for gigabytes, terabytes and so on.

See original post:
1 kilobyte er ikke længere 1024 bytes - Viden og sundhed - Nyheder - Berlingske Tidende

16. mar. 2007

Introduction to Java's Reflection

What is and how do I use Java's Reflection?


Have you ever wondered what is Java's Reflection and how do you use it?
If so, you may have interest in reading this article that gives you a brief introduction on the subject with examples.

15. mar. 2007

Digital Security & Privacy - For human rights defenders

Bruce Schneier posted a link to a pdf with 164 pages about Digital Security & Privacy - For human rights defenders.

The book is written by Dmitri Vitaliev and is about:
  • Security and Insecurity
  • Security awareness
  • Threat assessment and the security circle
  • Windows Security
  • Password Protection
  • Information Backup, Destruction and Recovery
  • Cryptology
  • Internet Surveillance and Monitoring
  • Circumvention of Internet censorship and filtering
  • Encryption on the Internet
  • Malicious software and Spam
  • Identity Theft and Profiling
  • ... and more
  • 13. mar. 2007

    From RAW to print (danish text)

    I have made a colorprofile for my monitor, but the printing of images look different!

    The way you can fix that, is by using colorprofile for the printer as well.
    This article tells you how: (a danish site)
    http://www.digitalmagasinet.dk/%5Cshow.asp?ID=1093

    3. nov. 2006

    Choose (and remember) great passwords

    A secure, memorable password is easy for you to remember, and hard for others to guess.


    This article gives you some good hints on how to create your password.

    • Don't use the same password for everything.
    • Remember 100 different passwords with 1 rule set.

    Sounds too good to be true?
    Actually no - read the article...

    9. okt. 2006

    Debugging webservices

    Nowadays everything in this SOA age (Service Oriented Arhitecture) is developed as webservices.
    There's a lot of frameworks that hides the specific implementation so often you ask:

    What do I send to that webservice, and what do the service return?


    For that sake, there's a fantastic tool called tcpmon, which can be started as Java Webstart.
    Here you make a proxy where you specify a localport where tcpmon listens, and which server/port the real service is implemented. Tcpmon then shows exactly what is transmitted to the service and what is received.

    Right now I have the problem that we're using a proxy, so tcpmon can't see the destination service (it's through VPN).
    I can see the server in my browser, so I looked up the proxy in my browsers configuration (was webproxy:8080) and tried starting up tcpmon with -Dhttp.proxyHost=webproxy -Dhttp.proxyPort=8080, but still it won't work...

    The solution is actually very simple:
    1. Start the application with: -Dhttp.proxyHost=localhost -Dhttp.proxyPort=8888 (Now we use tcpmon as proxy)

    2. In tcpmon start a new connection with: (the proxy now uses a proxy :-)
      Port8888
      Server NameProxyserver (in my case webproxy)
      Server PortProxyserverport (in my case 8080)

    You now don't have to change the endpoint of the service, because it automatically routes though tcpmon!
    Voila! Mission accomplished!

    27. sep. 2006

    Fire onChange in Javascript programmatically

    I want to fire onChange method on an object programmatically in Javascript.

    FireFox and Internet Explorer handles this very differently.
    If you for example sets the value on an object you might expect that the onChange method is fired, but sorry... no firering...

    The solution is this in Javascript:
    function newValueForObject {
    var myObject = document.getElementById(nameOfObject);
    myObject.value = 'a new value';

    if (myObject.hasAttribute) { // Firefox
    if(myObject.hasAttribute("onchange")){
    myObject.onchange();
    }
    } else if (myObject.onchange) { // IE
    var newEvt = document.createEventObject();
    myObject.fireEvent("onchange", newEvt);
    }
    }

    23. aug. 2006

    WindowsDevCenter.com -- How to Remove Startup Programs

    This article tells you how to remove Windows Startup programs.
    Please help me speed up my Windows startup time!


    For example look into:
    %userprofile%\Start Menu\Programs\Startup
    %allusersprofile%\Start Menu\Programs\Startup
    Or in the registry:
    HKLM\Software\Microsoft\Windows\CurrentVersion\Run
    HKCU\Software\Microsoft\Windows\CurrentVersion\Run
    HKLM\Software\Microsoft\Windows\CurrentVersion\RunOnce
    HKLM\Software\Microsoft\Windows\CurrentVersion\RunOnceEx
    HKCU\Software\Microsoft\Windows\CurrentVersion\RunOnce
    HKCU\Software\Microsoft\Windows\CurrentVersion\RunOnceEx

    16. jun. 2006

    HOWTO: Pick an open source license

    This article is about how to choose an open source license.
    It can be boiled down to this decisiontree, but check the link to see examples.
    How should I choose an open source license?

    Do you want to release any control over how your code is used and distributed?
    • YES: Don't copyright it. Put it in the public domain, and you're done.

    • NO: Copyright the code (paste copyright notices all over it)

      Do you want to allow people to use your code in non open-source programs?
      • NO: Release your code under the GPL licence

      • YES: If somebody uses your code in their program and sells their program for money, do you want some of that money?
        • YES: Two choices:
          1. Don't release it as open source

          2. Dual license

        • NO: "Commercial friendly" license

          If somebody uses your code and improves it (fixes bugs or adds features) do you want to make them give you the improvements back so you can use them too?
          • YES: Use a "reciprocal" license.

          • NO: Use a "non-reciprocal" license.



    See:
    HOWTO: Pick an open source license (part 1) | Ed Burnette's Dev Connection | ZDNet.com
    http://www.opensource.org/licenses