PHP »

17 Sep 2011 | No Comment | 562 views

After about a month of using NetBeans (www.netbeans.org), I’m making it my main code editor/IDE. I’m writing code on both Mac OSX and Windows, so its nice to have one editor to use for both. The built-in CVS, Subversion, Mercurial, and file transfer tools is really good. The built-in syntax validation works decently as it will catch any missing semi-colons and brackets. Code completion works good with all the PHP functions listed and it will pull all matching functions in your namespace. Performance is a bit slower since its running on Java, but it should run ok on newer computers. Its also free, which is probably the #1 selling point.

Read More...

Android »

23 Aug 2011 | No Comment | 1,567 views

My Galaxy Tab 10.1 recently started having issues with random restarts and occasional crashing with the Android 3.1 OS. This morning, I got the dreaded boot loop. This is where the bootup screen would go into a neverending loop.

The only fix that worked was a factory hard reset via the adb/fastboot utility.

Read More...

PHP »

8 Aug 2011 | One Comment | 781 views

Here’s a quick guide to enabling the CAPTCHA plugin in Squirrelmail. Its generally a good idea for adding a way to limit the automation of login attempts.

Read More...

VMWARE »

27 Jun 2011 | No Comment | 1,033 views

If you are migrating from one guest host to another using VMWARE and have problems with reusing the IP address from the old host, VMWARE may be binding the IP address to a MAC address.  Even with the old server off, I was unable to get the new server to bind with the original IP address.

The fix is to create/set a network adapter on the new server with the MAC address of the old server. After setting the MAC address on the new box to the original NIC MAC address, I was able to get full connectivity with the old IP address.

This will only work …

Read More...

Apache »

8 Jun 2011 | No Comment | 706 views

Mod deflate in Apache 2 is a great way to save on server bandwidth since it can compress files (js/xml/html/css) before it is sent to the client. Most web browsers support gzip compression (90%+) so this is a great way to reduce the amount of traffic sent by the server. It also helps with the Google Page Speed result.

View the full post for the configuration instructions.

Read More...

Apache »

3 Jun 2011 | No Comment | 962 views

If you have an Apache server with strange logfile entries such as:

GET http://proxyjudge1.proxyfire.net/fastenv HTTP/1.1" 404
GET http://images.google.com/ HTTP/1.1" 404

You need to reconfigure your Apache to deny any access to a host that is not specifically configured on your server. This can be done via changing your /etc/apache2/sites-enabled/[your default config]

Read More...

AJAX, jQuery »

2 Jun 2011 | One Comment | 2,298 views

Here’s my simple jQuery image rollover script. I modified it to work with absolute URLs. This works well if you have different servers hosting your image files.

See entire post for the code ;)

Read More...

Apache, PHP »

31 May 2011 | One Comment | 4,094 views

I ran across this error today after noticing a file_get_contents was not working. This was on a page that had been working fine for about a year.
“php_network_getaddresses: getaddrinfo failed: Name or service not known”

This issue is typically caused by the Apache/PHP host unable to contact the DNS server.

The first thing to check is to see if you can ping the remote host using console.

  • If no, then your primary name server on /etc/resolv.conf (Debian) is not working. Find a working DNS and restart Apache.
  • If yes, then Apache is still connecting to the broken DNS server. You should try restarting Apache …
    Read More...

HTML »

25 May 2011 | 3 Comments | 3,125 views

If you get the error message in Mozilla Firefox 4.0 Firebug

Image corrupt or truncated: <unknown>

Check to see if your site has the ”favicon” setup correctly. Firefox 4.0 has a strict rule that requires your site to have the favicon.

You can set the path of the fav icon with the following HTML:

<link href="http://[YOURWEBSITE]/favicon.ico" rel="shortcut icon" type="image/x-icon" /> 

Dynamic Drive’s free tool for creating favicons:
http://tools.dynamicdrive.com/favicon/

Read More...

HTML »

24 May 2011 | No Comment | 570 views

Absolute positioning of a DIV in Internet Explorer can be a pain, especially if your page works fine in Firefox, Safari, and Google Chrome. One thing I noticed with Internet Explorer is that it is very strict with their doctype. Internet Explorer will ignore the parent container for absolute positioning  if you don’t have “HTML 4.0 Strict” inside the DOCTYPE.

Microsoft states “Internet Explorer 7 and greater: Fixed positioning is available through strict mode.” Including the doctype fixed my absolute positioning problems with Internet Explorer.

You can view my implementation of this here. The search suggestion box is centered within the …

Read More...