Posts Tagged ‘windows’

Apache Tomcat Native Library (APR)

Monday, January 25th, 2010

If you have ever looked at the console or logs while starting a Tomcat instance on Windows you have probably seen the following line about APR.

INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path

As long as the “tcnative-1.dll”  is in the Windows PATH, generally you can place it in c:\windows\system32, but any other location in the PATH will work should you need it to be portable, or have different versions in use.

NOTE: Other Operating Systems use a similar approach as Windows to add an environmental variable, optionally you can also add the appropriate location to the “java.library.path” attribute used when calling the VM, if you are more technically inclined.

Cheers

Windows NTFS Performance

Tuesday, December 22nd, 2009

For a very long time I was perplexed as to why my old 900Mhz Pentium-3 server outperformed many of my newer and faster machines, even when they all were running with essentially the same amount of memory and had the same 7200rpm hard-drives.

I recently realized that over the years, I had optimized the WindowsXP NTFS registry settings with a variety of software and manual edits, and thus had essentially changed the way that windows works with the drive itself.

Here are the current settings that these machines utilize, perhaps you can try them for yourselves:

WARNING: You need to be confortable making edits to your registry to do these changes, as such I will not document ‘how’ to open the registry itself, you can easily find that info anyways.  These are all DWORD settings.

HKLM\SYSTEM\CurrentControlSet\Control\FileSystem

  • DisableNTFSLastAccessUpdate  = 1
  • NtfsDisable8dot3NameCreation = 1
  • NtfsDisableLastAccessUpdate = 1
  • NtfsMftZoneReservation = 2

Cheers

Atari 2600 Emulator

Wednesday, April 29th, 2009

While it was not technically a personal computer, the Atari 2600 was one of the first pieces of technology that I had experience with in my youth. I’ll likely outline the progression of machines/operating systems in a future post.

I’ve heard about Stella for quite a while, but never had any time to fiddle with it. Recently I found that Ubuntu includes an installer for it and took a chance look. Other versions are available for MacOS and Windows.

I also found a few websites that contain ROM images for the emulator and was playing some of my old games in a matter of minutes.

For those legal types out there… I actually do own the games that I played, in fact, they are currently boxed up in my basement.

References:

Happy Retro Gaming!!!

Free Computer Based VOIP

Monday, February 23rd, 2009

I’ve used a variety of computer based VOIP over the years. My current preference in this space is Skype as it’s free for computer-to-computer calls and even allows calls to and from regular phones (at a fee).

Video and text chat are also provided, as is ‘white-boarding’ with additional plugins.

Skype is available for most platforms, even mobile phones… I’ve found that while the Windows beta versions has some additional features, the Linux release is rock-solid.

http://www.skype.com/

There are also several hardware based solutions, like Vonage, available to replace your traditional phone service… perhaps we’ll cover that later.

Skype me!

Open Source FTP Client (and Server)

Tuesday, February 17th, 2009

At one time, FTP was the only means available to move large files, times have changed but the need still exists, especially for developers like myself.

For years I’ve happily used FileZilla for my FTP needs, the client is available on most platforms. There is also a server available for Windows as most Linux variants already provide FTP.

Happy file transfers!

MySQL (Windows) service startup error 1067

Monday, December 8th, 2008

I’ve installed and managed dozens of MySQL installations for several years, occasionally it seems that an install just doesn’t run like it has in the past.

Recently I had a problem where the service would not start (Error 1067) on Windows Server 2003 (R2)… which is running under VMWare. After checking the obvious places and turning up nothing I started down the list of potential solutions exposed by Google search.

The ultimate solution it seems is that the ‘my.ini’ file needed to include the specific path information required by the service…. without it the service would not start.

Here’s my current file (c:\windows\my.ini) for reference:

[WinMySQLAdmin]
Server=C:/mysql40/bin/mysqld-nt.exe
[mysqld]
basedir=c:/mysql40
datadir=c:/mysql40/data

For the really observant readers of this entry… you will notice that this is for MySQL 4.0 (which is no longer officially supported). It’s mostly used as it is widely compatible across various host systems that are sometimes problematic with newer releases.

Cheers.

Apache Native Client

Monday, October 27th, 2008

If you do any development or even production testing with Apache Tomcat, you may have seen the following message in your logs.

“The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path”

Here’s a quick solution that will leave you with greatly improved performance.

  1. Go to the following URI’s:
  2. Download the appropriate version of tcnative-1.dll
  3. For Windows, place that file in c:\windows\system32\ 
  4. Restart your Tomcat server
  5. You are done!

Cheers

Free Antivirus Software

Wednesday, April 16th, 2008

So, a family member has recently approached me about virus scan products for Windows. It seems that, while he runs a commercial product, it’s a little dated and he does not keep up on the frequent updates, unfortunately this has put him into a position where his computer was infected and has become almost unusable. Using the same commercial products he’s unable to clean up the mess and has already lost many files.

I’ve been a convert to Avast for several years and even run it on my servers to scan for malicious content, it’s both free for non-commercial use and updates automatically.

Other products worth considering:

For Windows:

Unix/Linux:

Mac OS/X:

Cheers!

Windows Tools for reading NTFS and Linux partitions

Thursday, April 3rd, 2008

I’ve had to do my share of hard-drive recoveries over the years and have found the tools provided by DiskInternals to be invaluable in several occurances.

I’d previously used their NTFS Reader software to recover files from bad partitions after multi-booting to an older Windows operating system drive on the same machine.

Now I’ve found that they offer an EXT2/EXT3 Reader to allow Windows to access Linux partitions.

This is great for less-technical users that experience fatal errors in their operating systems as there’s now a relatively simple way to access the ‘familiar’ Windows tooling to recover files on the ‘bad’ partition. For the power-user, this affords a means for people making the switch to Linux a means in which to access their files in Windows in the off chance that they have to use software not usable under WINE.

Product Pages:

NOTE: Similar tooling exists to read Mac HPFS partitions, that topic saved for a later post!

Cheers!

WINE Is Not an Emulator

Wednesday, April 2nd, 2008

I post a lot about open source applications, WINE is another notable contender as it gives users an option to run many mainstream Window applications on a Linux (even Apple’s OS/X variant) platform by providing access to the Windows API’s to those host operating systems.

http://www.winehq.org/
http://appdb.winehq.org/ – List of applications supported

Ah, for those of you still running IBM’s OS/2 platform, you too can run Win32 applications with Odin:
http://odin.netlabs.org/

Cheers!