How to Hide Android WebView Highlight Border (or change it’s color)

Here's one that had me at a loss for a long time that I just figured out. You can easily remove the highlight border (the border that comes up when an element is focused) or change it's color in a WebView with CSS! The WebKit-specific property "-webkit-tap-highlight-color" is what you're looking for.

The following line will disable it on a page completely:

* {
	-webkit-tap-highlight-color: rgba(0, 0, 0, 0);	
}

rgba() is just like rgb(), but it takes a 4th parameter for opacity. It's my belief that this would probably work for iPhone WebView's as well, since both Chrome and Safari are based off of WebKit.

How to fix linux not sending mail problem: Sendmail stat=Deferred: Connection refused by [127.0.0.1]

I recently experienced a problem where my server was not sending mail from the PHP mail() function or the command line "mail" function. After looking through /var/log/maillog, I was able to see that the local 127.0.0.1 mail server was refusing the connection. Some Google searching landed me at the following thread, where the third post did the trick:

http://www.howtoforge.com/forums/showthread.php?t=16246

How To Convert Large XML Files to CSV

I usually struggle with converting very large XML files to other formats just because they are in a dynamic format and most programs you find run out of memory before properly parsing them. Well, I’m happy to say, I found a FAST and EASY solution. Of course this will work for small files as well as big files.

You’ll want to grab a copy of the msxsl command line utility from Microsoft.

After you’ve got that, you’ll need to setup a XSL file to tell the program how to format your file. If you’re unfamiliar with XSL, you can familiarize yourself here.

After you’ve got your XSL file created, it’s a simple command line entry:

msxsl xml_file.xml xsl_file.xsl -o output_file.csv

The following is a sample XML and XSL file that I used.

XML File:

	
		772500
		Tue, 20 Jan 2009 16:28:08 CST
		Tue, 20 Jan 2009 16:51:01 CST

			61951
			The Hills Season 1

		773000
		Tue, 20 Jan 2009 16:28:08 CST
		Tue, 20 Jan 2009 16:53:54 CST

			61926
			Hogan Knows Best Season 2

		775500
		Thu, 22 Jan 2009 14:49:12 CST
		Thu, 22 Jan 2009 14:51:35 CST

			62068
			Carlos Mencia 2007

			1402
			Comedy Central

XSL File (Creates tab-delimited file)


	

How to access your cell phone voicemail from another phone


This is certainly no new news, but I’m fairly sure many aren’t aware of this simple feature.

Say you left your phone at home and you were expecting a call, but your friend remembered his phone — tough luck, right?  Nope (obviously, or I wouldn’t have made this post).

Here’s what you can do…just pick up any phone and do the following:

  1. Dial your 10-digit wireless number.
  2. Press the * key when you hear your personal greeting.
  3. Enter your personal passcode.
  4. Follow the voice prompts.

How To: Create a Simple Visual “Loading” Effect

If you've got a script that takes a while to load and want to make your user aware that everything is alright, then this tool is for you. The idea is simple – display the message before the labor intensive part of the script runs, and then using CSS after the labor intensive part of the script, hide the message. If you're using a language that provides a buffer (ASP for instance), make sure you turn the buffer off first, or this won't have any effect. (eg. Response.Buffer = False) Example (See it in action):

<?php
ini_set('implicit_flush', 'on');

echo '<p id="loading_msg"><img src="http://img520.imageshack.us/img520/4950/loadingvp7.gif" alt="" style="vertical-align: middle;" /> Loading...</p>';

// Code that takes forever here, could of course be any language
sleep(5); // Only for demonstration

echo '<script type="text/javascript">
window.onload = init;

function init() {
	document.getElementById("loading_msg").style.display = "none";
}
</script>';
echo '<p>Woohoo, five seconds passed.</p>';

require_once('includes/trackers.inc.php');
?>

How to connect your laptop to the internet through your Motorola Razr

I wouldn’t say this is a web tool, but it could certainly come in handy for those who want to use web tools anywhere they can get a cell phone connection!

By now, I’m sure most people are aware that you can connect your laptop to the internet through your cell phone. However, if you’re like I was a couple of hours ago, you don’t know how. It’s really not too bad to do, unless you run into problems.

What you need:

  • Cell Phone
  • USB Cable (you can use bluetooth as well)
  • Not required, but nearly essential: Unlimited data plan (otherwise you’ll rack up HUGE charges)

Here’s a step-by-step for what I did:

  1. Disable EVDO on your phone. Basically, your phone constantly checks two different types of connections, and you’re disabling one of them.  By doing this, you shouldn’t see any difference in your phone’s connection, but you will be able to use your phone as a modem and you will actually get better battery life on your phone.  To disable EVDO, use this guide.
  2. Make sure your Phone is in “Modem/COM” mode. From the main menu, go to Settings -> Connection -> USB Settings. Make sure Default: is set to “Modem/COM.”
  3. Connect your cell phone to your laptop with the USB cable. Your computer should automatically recognize it and install the proper drivers. (Note: Make sure that whenever you do this, you plug it in the same USB port [otherwise it will want to install drivers for each port].)
  4. Open the Device Manager from the Control Panel. Under “Modems,” make sure that you see your phone there (it’ll say something with Motorola in it). If it’s not there, you’re missing some driver. Check out the guides and downloads at HackTheRazr.
  5. If you see your phone under “Modems,” you’re almost there! Follow the following steps to create a new network connection through your phone:
    • Create a new network connection (from the menu in the Network and Sharing Center in Vista or somewhere in the control panel in XP)
    • Choose “Set up a dial-up connection.”
    • For the dial-up phone number, put in #777. Leave the username & password blank. Give your connection name a name of whatever you want. Click connect.
    • BAM. You should be able to use the internet now.