Category Archives: Programming Languages

Blogs about programming languages (Java, PHP, Ruby, etc.).

Use Perl’s regex to count the # of words in a file

In the below code I use Perl’s regex capabilites to count the # of words in a file. Notice I used “\s” in the regex expression to account for not only spaces but also tab and new line characters. In … Continue reading

Posted in Perl, Programming Languages | Tagged , , , , , , , , , , , , , , , , , | Leave a comment

Scalar and List Contexts in Perl

One of the most important concepts to understand in Perl programming is that of evaluation based on context. In Perl, an operation such as an assignment or function call can give two different results based on the context of the … Continue reading

Posted in Perl, Programming Languages | Tagged , , , , , , , , , , , | Leave a comment

Unix shell script – convert Mac ASCII file to Unix ASCII file

With some applications like Microsoft Word you can save a file in ASCII format. However, for new lines Macs use a carriage return (ASCII character 015) while Unix uses a linefeed (ASCII character 012). If you save the file as … Continue reading

Posted in Linux, Operating Systems, Programming Languages, Shell Scripts | Tagged , , , , , , , , , | 1 Comment

How Perl/Python Scripts on Force10 S60 Switches Can Access the Internet

Let’s say you have a Force10 S60 switch [FTOS 8.3.3.4] hooked-up at a datacenter that currently has a console connection connected to a management switch that provides external Internet access. The natted IP address is 10.0.8.10/24 and the external IP … Continue reading

Posted in Force10 Networks, Labs, Networking, Perl, Programming Languages, Python, Technology | Tagged , , , , , , , , , , , , , , , , | Leave a comment

Use EasyInstall to Quickly Install Python Modules

EasyInstall is a python module (easy_install) that lets you automatically download, build, install, and manage Python packages. To use EasyInstall you must download and install “setuptools”; the EasyInstall application is bundled with “setuptools”.

Posted in Programming Languages, Python, Technology | Tagged , , , , , , | Leave a comment

How to install Flash, Python, and Java on Ubuntu 10.10

Just some quick tips on how to install Flash, Python, and Java on Ubuntu 10.10. Flash and Python are pretty straight-forward. However, installing Java is slightly more complicated since Sun’s (now Oracle) Java 6 has been removed from the Ubuntu … Continue reading

Posted in Flash, Java, Linux, Operating Systems, Programming Languages, Python, Technology, Ubuntu | Tagged , , , | 1 Comment

Using the VI Java API with VMware ESXi

Earlier this year, when I first thought to test out the VI Java API, I estimated I would spend several hours learning the API just to write a simple test program. I was surprised when in less than two hours, … Continue reading

Posted in Java, Programming Languages, Technology, Virtualization and Cloud Computing | Tagged , , , , , | 5 Comments

Oracle – Running with Java

Today at the “Bay Area JUG Roundup 2010” at Oracle’s office in Redwood City, I got my first glimpse into what the future of Java may be under Oracle. It was a fun event and a good sign that Oracle … Continue reading

Posted in Bay Area JUG Roundup 2010, Java, Programming Languages, Tech Events, Technology | Tagged , , , , , , , , | Leave a comment

UC Berkeley Java Certification

I just finished up my last class to get the UC Berkeley Java Certificate. The program is offered by UC Berkeley Extension, an arm of UC Berkeley. The program consists of taking and passing three Java programming courses spanning 90 … Continue reading

Posted in Programming Languages, Technology | Tagged , , , , , , | Leave a comment

SproutCore with Google App Engine and Chrome

Yesterday I participated in a Google User Group Meeting at Google where presentations were made regarding SproutCore (a JavaScript framework) and Google App Engine. In this blog I will mainly focus on SproutCore as that was the main discussion topic … Continue reading

Posted in Development Tools, Frameworks, Google App Engine, JavaScript, Programming Languages, SproutCore, Technology | Tagged , , , , , , , | Leave a comment