Made of Everything You're Not

Personal blog of PHP programmer Eric Lamb.
  • Blog
  • Portfolio

Posts Tagged: 'Windows'

AxCrypt File Encryption for Windows

Posted in IT on March 26th, 2009 by Eric Lamb – 0 Comments

AxCrypt is a pretty nice open source (OSS) encryption program for Windows. What makes me want to write about it though is that it integrates directly with Windows Explorer and includes a right click context menu for easier manipulation of files so there isn't a program that has to be started or opened (I always hate the wait for a program to start up...).

axcrypt

According to their site:

AxCrypt is the leading open source file encryption software for Windows. It integrates seamlessly with Windows to compress, encrypt, decrypt, store, send and work with individual files.

AxCrypt is pretty straight forward;

To encrypt:

  1. right click over a file
  2. choose "AxCrypt"
  3. choose "Encrypt"

    AxCrypt Encrypt

  4. enter a passphrase

    AxCrypt Enter Passphrase

  5. click ok

To decrypt:

  1. right click over archive
  2. choose "AxCrypt"
  3. choose "Decrypt"

    AxCrypt Decrypt

  4. enter passkey

    axcrypt_decrypt_enter_passphrase

  5. click ok

If you need to share sensitive files between people this is a really nice project.

AxCrypt File Encryption for Windows

Posted in IT on March 26th, 2009 by Eric Lamb – 0 Comments

AxCrypt is a pretty nice open source (OSS) encryption program for Windows. What makes me want to write about it though is that it integrates directly with Windows Explorer and includes a right click context menu for easier manipulation of files so there isn't a program that has to be started or opened (I always hate the wait for a program to start up...).

axcrypt

According to their site:

AxCrypt is the leading open source file encryption software for Windows. It integrates seamlessly with Windows to compress, encrypt, decrypt, store, send and work with individual files.

AxCrypt is pretty straight forward;

To encrypt:

  1. right click over a file
  2. choose "AxCrypt"
  3. choose "Encrypt"

    AxCrypt Encrypt

  4. enter a passphrase

    AxCrypt Enter Passphrase

  5. click ok

To decrypt:

  1. right click over archive
  2. choose "AxCrypt"
  3. choose "Decrypt"

    AxCrypt Decrypt

  4. enter passkey

    axcrypt_decrypt_enter_passphrase

  5. click ok

If you need to share sensitive files between people this is a really nice project.

AxCrypt File Encryption for Windows

Posted in IT on March 26th, 2009 by Eric Lamb – 0 Comments

AxCrypt is a pretty nice open source (OSS) encryption program for Windows. What makes me want to write about it though is that it integrates directly with Windows Explorer and includes a right click context menu for easier manipulation of files so there isn't a program that has to be started or opened (I always hate the wait for a program to start up...).

axcrypt

According to their site:

AxCrypt is the leading open source file encryption software for Windows. It integrates seamlessly with Windows to compress, encrypt, decrypt, store, send and work with individual files.

AxCrypt is pretty straight forward;

To encrypt:

  1. right click over a file
  2. choose "AxCrypt"
  3. choose "Encrypt"

    AxCrypt Encrypt

  4. enter a passphrase

    AxCrypt Enter Passphrase

  5. click ok

To decrypt:

  1. right click over archive
  2. choose "AxCrypt"
  3. choose "Decrypt"

    AxCrypt Decrypt

  4. enter passkey

    axcrypt_decrypt_enter_passphrase

  5. click ok

If you need to share sensitive files between people this is a really nice project.

AxCrypt File Encryption for Windows

Posted in IT on March 26th, 2009 by Eric Lamb – 0 Comments

AxCrypt is a pretty nice open source (OSS) encryption program for Windows. What makes me want to write about it though is that it integrates directly with Windows Explorer and includes a right click context menu for easier manipulation of files so there isn't a program that has to be started or opened (I always hate the wait for a program to start up...).

axcrypt

According to their site:
AxCrypt is the leading open source file encryption software for Windows. It integrates seamlessly with Windows to compress, encrypt, decrypt, store, send and work with individual files.

AxCrypt is pretty straight forward;

To encrypt:

  1. right click over a file

  2. choose "AxCrypt"

  3. choose "Encrypt"

    AxCrypt Encrypt

  4. enter a passphrase

    AxCrypt Enter Passphrase

  5. click ok


To decrypt:

  1. right click over archive

  2. choose "AxCrypt"

  3. choose "Decrypt"

    AxCrypt Decrypt

  4. enter passkey

    axcrypt_decrypt_enter_passphrase

  5. click ok


If you need to share sensitive files between people this is a really nice project.

Directory separators and cross platform compatibility

Posted in Code, IT, Programming on February 20th, 2009 by Eric Lamb – 4 Comments

I was curious about the impact of the directory separator and how that affects cross platform compatibilitye ver since I started developing on my Vista machine.

I've noticed how different they are compared to the Linux variety. Here's an example:

File path on *nix:

/path/to/file

File path on Windows:

C:\\path\to\file

Dazed and Confused

As you can see the separator is a slash, either a "/" or "" depending on the OS. Why does this matter? Because if we're dealing with files on the server, and the path is going to be recorded so they can be displayed on the Internet, through a URI, than this is going to introduce compatibility issues if not handled correctly. Sigh..

I've seen open source programs handle this type of issue through concatenation. For example the code:

<?php
//$path = 'C:pathtofile.php'; Windows
$path = '/path/to/file.php';
?>

Is written like:

<?php
//$ds = ''; Windows
$ds = '/';
$path = $ ds.'path'.$ds.'$to.'file.php';
?>

Is this even an issue anymore? Both Firefox 2.0 and IE 7 render HTML assets whether the slash is one way or another. Maybe if all paths are written like the *nix variety it's all good...

I did notice that when you have a dual slash Windows chokes:

<?php
$path = '//path/to//dir';
?>

Just something to think about...

UPDATE::
According to the php manual:

On Windows, both slash (/) and backslash (\) are used as directory separator character. In other environments, it is the forward slash (/).

With that in mind it seems kind of dumb to even worry about this anymore. Just use the *nix variety and you should be fine.

MySQL Case Sensitivity on Windows

Posted in Code, Programming, Servers on January 30th, 2009 by Eric Lamb – 1 Comments

Here's a quick fix for a weird issue I ran into while working with MySQL on Windows.

MySQL

The first time I moved code from my Windows box to one of my Linux servers I ran into an error about a MySQL table not existing in one of my queries. I checked the table and the code to verify everything was as it should be and noticed that all my tables were lowercase instead of CamelHumped. Odd....

Here's the SQL:

$sql = "SELECT * FROM TableName WHERE id = '".$DB->es($id)."'";

It turns out that MySQL on Windows will convert all tables created to a lowercase name. To remain consistent with Linux you should add the below to your my.cnf file:

set-variable=lower_case_table_names=0

Adding the above line will preserve the naming conventions between both platforms.

Setting up Windows sucks

Posted in IT, Rant on January 14th, 2009 by Eric Lamb – 1 Comments

I usually format my computer about once a year like clockwork; whether it needs it or not. I find that it just helps. Windows collects a lot of gunk over time that just needs to be cleaned out (in fact, if I have to spend more than a couple hours troubleshooting an issue I format the computer and start over). Doing this may take about a day, from start to finish, but when It's complete the computer I'm left with is always a lot stronger and faster than the one I started with.

Since I manage the network for my day job, as just one of my responsibilities, I've carried this idea forward into taking care of client computers with a couple of additions for the corporate workplace. If a virus or any piece of spyware infects one of my machines we format it and start over (it's too much work trying to disinfect it and I'm never 100% satisfied the virus or spyware won't return).

The process for completing a complete reset goes something like this:

  1. Backup Files
  2. Install Windows (w/ format)
  3. Install Drivers
  4. Activate OS (this SUCKS)
  5. Update OS
  6. Add to Domain
  7. Install Needed Programs
  8. Restore Files
  9. Hand Off to User

The above can usually take anywhere from 5 to 7 hours depending on activation issues and the programs needed. When doing this on my personal computer it sucks, but not nearly as bad as when it has to be done to 8; I've just spent the last 3 days creating Windows XP boxes for my domain. Of course, during this time I didn't do any "real" work (coding) or make money for the company in any substantive way.

Now, once upon a time I had a staff. I had them always make sure there was a few spare computers around in case something happened; to be used to replace a users computer and get the user back up and running ASAP. If we needed a computer it worked like such:

  1. Backup Files
  2. Install Needed Programs
  3. Restore Files
  4. Hand Off to User

Like a pit crew, we usually had the turn around time down to an unpit crew like time of about 20 minutes. This was usually followed by restoring the computer back to factory install and adding it to the queue of stand by computers.

Now that I only have a staff of one it becomes a little tougher to manage the network in a preventive way without taking time away from my real love; programming. Since we're about to head into a couple months of project work it behooved us to prepare the network for the reality of a Windows life; we needed to do this.

We started Monday morning with 5 computers to do with an order of 3 to provide to users which then needed to be reset as well. We set up computers at 3 different, unused, workstations and began the process. Starting at 10AM, we finished the first one at 3PM and the third about 30 minutes later (of course all the computers are different models which required different drivers and updates).

Repeat above paragraph two more times.

Sigh...

There has to be a better way. I wish I could lay this pain squarely on the shoulders of Microsoft but that's not fair. Sure, the update process for Windows takes it's fair share of time to complete, and the shear volume of updates to complete is amazing but, no, it's not all painful because of Windows.

Here are the minimum programs I need to install on a workstation with the time it takes to finish:

  1. MS Office 2003 (10 minutes)
  2. Adobe CS3 (60 minutes)
  3. Adobe Acrobat (30 minutes)
  4. Eset Nod32 (3 minutes)
  5. Edit Plus 3 (1 minutes)
  6. MS Project (15 minutes)
  7. MS Visio (15 minutes)

As you can see, Adobe installers take a while too. And that's not even including the updates, of which there are many.

How come there isn't some way to automate this; I know it's possible but a solution's never come into my world. Considering how frequent setting up a computer happens in the corporate world I'm surprised.

Of course I could be wrong...

  • Subscribe: Entries | Comments
  • About Me

    Email Email
    Twitter Twitter
    310.739.3322
  • Categories

    • Brain Dump
    • Business
    • Code
    • IT
    • Programming
    • Rant
    • Servers
  • Archives

    • February 2012
    • October 2011
    • August 2011
    • July 2011
    • June 2011
    • May 2011
    • April 2011
    • March 2011
    • February 2011
    • January 2011
    • December 2010
    • November 2010
    • October 2010
    • September 2010
    • August 2010
    • July 2010
    • June 2010
    • May 2010
    • April 2010
    • March 2010
    • February 2010
    • January 2010
    • December 2009
    • November 2009
    • October 2009
    • September 2009
    • August 2009
    • July 2009
    • June 2009
    • May 2009
    • April 2009
    • March 2009
    • February 2009
    • January 2009
    • December 2008
    • November 2008
    • October 2008
  • Advertisement

Copyright © 2008 - 2013 Eric Lamb - All rights reserved