Send a Text Message To Your Cell Phone From E-mail

This might be old news but I came accross this today and wanted to make a note of it for myself for future reference.

All that you need to do is address the message to the phone number @ the service prodivers designated domain that they use to convert and forward the message content to your mobile device.

What I see interesting in this is being able to send txt messages from a system or service that encounters an error → Continue reading “Send a Text Message To Your Cell Phone From E-mail”

Setting Up Android SDK and Plugin in an Existing Install of Eclipse

To set up an existing install of Eclipse to do some Android development do the following:

  • Go to http://developer.android.com/sdk/index.html and look for and download the ADT bundle for your OS (in my case I was using Fedora Core 18 at the time)
  • Unpack it as the user that is going to be running Eclipse and/or after you unpack it make sure that your user has read/write/execute permissons for the files in this directory (obviously, you don’t need execute permssion for
Continue reading “Setting Up Android SDK and Plugin in an Existing Install of Eclipse”

Showing Hidden Files and Folders Under Mac OSX

By default the Mac hides a number of different Folder as well as any file or folder that starts with a “.” character.

To show all of these files/folders in the Finder open a terminal and enter teh following commands:

$ defaults write com.apple.Finder AppleShowAllFiles TRUE

$ killall Finder

The Finder should restart and you should be able to see all of the files and folders on the machine.→ Continue reading “Showing Hidden Files and Folders Under Mac OSX”

Do Not Use Symlinks in Jetty’s webapps Directory

I set up a development instance of Jetty on my local machine and have been happily coding, compiling and deploying via a shell script.  The script copies the war from my user’s target directory to the jetty users’s home dir changes the permissions and then moves it to the /webapp dir creating a symlink to the name of the .war that is referenced in a number of config files.

This was working just fine until I did a merge with → Continue reading “Do Not Use Symlinks in Jetty’s webapps Directory”

Getting Markdown Viewer To Display HTML Formatted Markdown Content in Firefox Under Linux

I recently installed the Markdown Viewer 1.3 in Firefox 23.0 under Fedora Core  18.  When I went to open a .md file in the browser it prompted me to download it.

To configure Firefox to display the markdown in the browser do the following:

Edit the ~/.mozilla/firefox/*default/mimeTypes.rdf file.

If there is not yet an existing RDF node for ‘text/plain’ add it, and add “md” as a file extension.

<RDF:Description RDF:about=”urn:mimetype:text/plain”
        NC:value=”text/plain”
        NC:fileExtensions=”md”
        NC:description=”Text Document”>
    <NC:handlerProp RDF:resource=”urn:mimetype:handler:text/plain”/>
Continue reading “Getting Markdown Viewer To Display HTML Formatted Markdown Content in Firefox Under Linux”

Internet Explorer Not Deleting Session Cookies

If you are trying to delete session cookies, those cookies with an expires or max-age value of -1 or no value set for that property, in Internet Explorer, you will probably notice that deleting them from the controls in the browser, does not actually delete them.

Evidently, the IE cookie implementation only writes persistent cookies to the file system and maintains the session cookies in RAM.  Moreover, when telling the browser to delete the cookies, it only deletes the cookies → Continue reading “Internet Explorer Not Deleting Session Cookies”

Use CookieSpy to View and Manage Internet Explorer 9 Cookies on Windows 7

I am doing some client-side testing of IE 9 on Windows 7 and need to be able to view cookies and their associated data.

The F12 developer tools is insufficient for this task as using the Cache/View cookie information selection only shows the cookies for the current domain that you are browsing in the current tab.

Moreover, when going to Internet Options, General Tab, clicking on the Settings button under ‘Browsing History’, and then clicking on the ‘View files’ or → Continue reading “Use CookieSpy to View and Manage Internet Explorer 9 Cookies on Windows 7”

Making Wrong Code Look Wrong, Or Another Way to Say Coding Conventions

I’m in the process of learning C/C++ and thought I’d see what the Internet had to say about C/C++ coding conventions.

In the process, I stumbled upon the Google C++ Style Guide, and a much better read, Making Wrong Code Look Wrong
by Joel Spolsky
.→ Continue reading “Making Wrong Code Look Wrong, Or Another Way to Say Coding Conventions”

Splitting a String into an Array with a Custom Delimiter in a Bash Shell Script

Most high level languages have some sort of String.split([delimiter]) method to create an array of Strings tokenized by a user specified delimiter.  This is a simple way to convert a CSV into an array.

Here is a quick way to do that in a bash shell script:

#!/bin/bash

SOURCE_STRING='foo|blah|moo'
# Save the initial Interal Field Separator
OIFS="$IFS"
# Set the IFS to a custom delimiter
IFS='|'

read -a TOKENS <<< "${SOURCE_STRING}"
for i in "${TOKENS[@]}"
do
  echo "$i"
done

# 
Continue reading “Splitting a String into an Array with a Custom Delimiter in a Bash Shell Script”