Posts Tagged ‘MAC’

Minecraft for $2.5 Billion – Yes, ‘the App’ is King

Tuesday, March 10th, 2015

I’m still not completely over the shock from last November when I learned Microsoft had bought Mojang, the company behind Minecraft, for $2.5 billion dollars. Let me repeat that: “$2.5 BILLION”; you heard right. Markus Persson, the 35 year-old original and main developer with 71% stake in Mojang became an instant billionaire and a member of the Forbes World’s Billionaire list overnight. That’s right, Markus Persson is now #1415 with an estimated worth of $1.3 Billion according to Forbes. (more…)


Customize the Mac Terminal Shell Prompt in OS X Yosemite

Monday, November 3rd, 2014

The Mac prompt is defined by the ‘PS1′ environment variable which can be defined in the ‘.bash_profile’ hidden file. To customize your Mac Terminal Shell Prompt in OS X Yosemite, follow the below steps. (more…)


BASH Shell Scripting: Passing Arguments to a Python Script

Monday, September 1st, 2014

Larry Wall: “Shell programming is a 1950s juke box …”

In this short blog I write a small Python utility script to create directories and demonstrate how to utilize it and pass it arguments via BASH shell script. The functionality is similar to the ‘mkdir’ UNIX command. The name of the directory or directories to be created is the argument I pass in to the Python script. I then create a BASH shell script to call the Python script. (more…)


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

Sunday, July 10th, 2011

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 ASCII on a Mac and open the file up in Unix it will look like one very long paragraph. Just to be complete, I will mention that Microsoft Windows uses a carriage return + linefeed combination between lines of text. Below is a shell script that will take a number of file inputs in Unix and convert the Mac files to the correct Unix format. The original file will be overwritten. At the command prompt you would enter the command as “mactounix [macfile 1] [macfile 2] [macfile 3]” etc… The is assuming you save the code to a file called mactounix and made it executable (chmod +x mactounix). (more…)


Functionality of Layer 2 Switches/Bridges

Thursday, May 26th, 2011

Layer 2 Switching

Layer 2 Switching (STP Needed)

Layer 2 switches and bridges switch frames on a network while layer 3 routers route packets between networks. I once heard a network engineer being asked if a network can be made faster if the network is optimized to use more switches than routers. The network engineer answered that it shouldn’t matter. Of course, this is wrong. Think about it, if your network is just switching, the switches do not have to concern themselves with looking at the network layer; this significantly cuts down on the overhead since there is no need to decode the network header information at every stop like is done by a router. There are some concerns to keep in mind if your network starts to get too big which I discuss near the end of the blog. (more…)