CJ Family

CJ Graduates High School


Setting up Push-to-Deploy with git – Kris Jordan


Setup .dev root domain for local web development on mac

Terminal commands for setting up a .dev root domain on your Mac OS X 10.9+ for local development.


ruby -e "$(curl -fsSL"


brew install dnsmasq
cd $(brew --prefix)
mkdir etc
echo 'address=/.dev/' > etc/dnsmasq.conf
sudo cp -v $(brew --prefix dnsmasq)/homebrew.mxcl.dnsmasq.plist /Library/LaunchDaemons
sudo launchctl load -w /Library/LaunchDaemons/homebrew.mxcl.dnsmasq.plist
sudo mkdir /etc/resolver
sudo bash -c 'echo "nameserver" > /etc/resolver/dev'

Comcast vs Consolidated Communications Internet Speed Test

I’m all about getting the fastest Internet available if it’s at a reasonable price. With so many devices these days connected to the Internet, it’s hard not to live without it and the connection speed is definitely important. Who’s got time to wait around on a slow connection?

I’ve had Comcast Xfinity Internet with Blast! Speed for about 1½ years now and been pretty happy with the speed. I got the 1 year special which was at the time was $49.99 for 1 year and that was for Internet only. They currently have a deal for Internet Plus w/upgrade to Blast! and TV for $54.99.

Comcast Internet Plus w/upgrade to Blast!

After the 1 year contract, the internet price goes up to $78.95 a month. Which is about a $24 increase. For me it’s a $29 increase since I was paying $49.99.

Screen Shot 2015-05-15 at 11.37.58 AM

Enter Consolidated Communications formerly SureWest. They have been heavily promoting their “Crazy fast Internet 100Mbps” CCI fiber+ deal for about a month now and I’ve received probably 4 flyers from them. The 100Mbps deal is $49.95/mo for 2 years and you get 2 months FREE. I have decided to give them a try since it will be saving me around $30 a month for 2 years for a total of around $720!


I’ll be trying CCI’s service for 30 days at the same I will still have Comcast. At the end of 30 days I will decide wether or not to stay with Comcast or jump ship to CCI.

First thing first is to test the Upload/Download Speed. I first ran the test with my current provider Comcast and then immediately after unplugged their line and plugged in the CCI ethernet line into my router and ran the test again. Here are the SpeedTest results taken from CCI and Comcast within 2 minutes of each other.

Comcast Speedtest Results

Comcast Download 92.29mbps / Comcast Upload 12.08mbps / Comcast Ping 38ms

CCI Speedtest Results

CCI Download 93.80mbps / CCI Upload 94.83mbps / CCI Ping 7ms

CCI’s download speed came in slightly higher than Comcast, and on the upload side, blew Comcast out of the water. CCI’s ping was much lower than Comcast, which is a good thing. The lower the ping the better.

Comcast or Consolidated Communications?

Speed for the price, I would have to say CCI is winning. On the $49.95 deal CCI comes out to $.50 per Mb vs my current rate $78.95 on Comcast is $.79 per Mb. CCI also has no usage cap unlike Comcast, and the price is locked in for 2 years. As internet speeds increase, the rates will mostly likely change again. I’ll probably be revisiting this article in 2 years but as of today CCI is looking like my new ISP. Stay tuned.


IE8 checkbox not printing bug fix using jQuery

checkbox IE8 bug

IE8 has a bug where if you check a checkbox then print the form the checkbox does not show as being checked. MSFT bug #431489 I’ve found that this piece of code solves that problem and it works for HTML5.

IE8 checkbox printing bug FIX

// fix for ie8 printed checkbox bug
$('input[type=checkbox]').live('change', function(){
		$(this).attr('checked', true);
	} else {
		$(this).attr('checked', false);

You can also try this method of changing the DOCTYPE tag if you don’t need HTML5 markup.

<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN” “”>


25 signs you are passionate about something

There are several signs and indicators which show that you’re really passionate about something. You know you are really passionate about something when…

  1. You wake up in the morning and you can’t wait to start working on it.
  2. You can’t really get to bed because you keep thinking about it.
  3. Your eyes light up and your heart jumps whenever someone talks about it.
  4. You can’t stop talking about it.
  5. You spend a great deal of time reading about it.
  6. You may be doing your usual chores or routines, but you find yourself daydreaming about it.
  7. You are willing to give it all and go the distance for it.
  8. You are ready to put in the required work hours to make it happen.
  9. Working on it gives you a deep sense of meaning and fulfillment.
  10. You are willing to continue working on it even when you don’t feel like it or when the emotional high and hype has worn out.
  11. The criticisms from the sceptics and naysayers cannot hold you back.
  12. You are willing to forsake other endeavours and opportunities to pursue this one.
  13. Others say that you are being “extreme” when you are just responding appropriately to that conviction of yours.
  14. You gravitate towards that book, magazine, television show, forum, discussion board, etc which relates to the topic of your passion.
  15. Hours feel like minutes and minutes feel like seconds when you are working on it.
  16. You believe that this endeavour is worth pursuing even when others would rather have you do something else.
  17. Doing it just “feels right”.
  18. You are alright doing it even when the tangible rewards don’t seem apparent yet.
  19. You’re not just consuming things (like embracing risks and opportunities), but creating things (your insights, perspectives and personal touch).
  20. Talking about it is not good enough; there has to be something done about it.
  21. You keep trying even after falling and failing several times.
  22. Your passion inspires other like-minded folks.
  23. Others start to recognise that doing this thing is your kind of thing.
  24. You are always finding ways to bring this to the next level.
  25. You know that at the end of the day, you won’t regret doing this because it was well worth the effort.

What are you passionate about, and how do you know you’re passionate about it?

Source: YourNuclearDreams



Search for files modified in the last X amount of days in UNIX

Searches for files modified up to 2 days ago.

find ./ -type f -mtime -2 -exec ls -al {} \

Kilo Bytes Per Second vs. Kilo Bits Per Second (KBps vs. kbps)

Measure of file size: KBps

File size i.e. how big the file or how much space a file occupies in the hard disk measured in terms of KiloBytes (KB upper case “K” and upper case “B”). In computing terms the upper case “K” stands for 1024. 1024 is computed from 210. (2 power 10). 2 denote the number of characters in the binary system which is used to store data in the disc (ones and zeroes).

Other abbreviations like mega, giga and terra also use the base as 1024,

1KB (KiloByte) = 1024 Bytes (approximately 1000 Bytes)

1MB (MegaByte) = 1024 KB (approximately 1000 KiloBytes or 1 million Bytes)

1GB (GigaByte) = 1024 MB (approximately 1000 MegaBytes or 1 billion Bytes)

1TB (TerraByte) = 1024 GB (approximately 1000 GigaBytes or 1 trillion Bytes)

Measure of data transfer speeds: kbps

Data transfer speed over the networks (including the internet) is calculated in terms of bits per second: kilobits (kb small case “k” and small case “b”). The higher the kbps i.e. more the bits transferred per second, more the speed, faster the network/connection. Here k stands for 1000 (103 )

1 kbps (kilo bits per second) = 1000 bits per second

1 Mbps (mega bits per second) = 1000 kilo bits per second.

1 Gbps (giga bits per second) = 1,000 mega bits per second.

ISP bandwidth and download speeds

The most common confusion caused by the similarity of KBps and kbps is when it comes to internet bandwidth and download speeds. People often complain that their ISP promised 512kbps connectivity but they are seldom able to download any file at 512 KBps. They fail to notice the difference in cases of the units and hence think their ISP is cheating them or offering them poor quality service. As mentioned earlier data transfer speeds are always calculated in terms of kilo bits per second (kbps) so an ISP connectivity of 512 kbps promises of transfer of at the max 512 kilo bits per second.

On the other hand, file size measure is always in Kilo Bytes and thus download speeds are always calculated based on how many Bytes per second are downloaded and hence Kilo Bytes per second (KBps). KBps and kbps are not interchangeable.

So an internet connectivity of say 512kbps can never achieve a download speed of 512 KBps. To calculate the maximum download speed of a “X kbps” connection, we need to use a simple formula as below.

Download KBPS speed = (Kbps value*1000) /8)) / 1024.

I.e. For a connectivity of 512 kbps

kbps value * 1000 = 512 * 1000 = 512000

512000 / 8 = 64000

64000 / 1024 = 62.5 KBps

Therefore theoretically an internet connection of 512kbps bandwidth can download at a speed of 62.5 KBps

If you don’t want to go through all the hassles of the above formula, just multiply the kbps value with 0.1220703125 to get the KBps value.

512 kbps * 0.1220703125 = 62.5 KBps. Simple!

Internet connectivity Download speed (approx)
256 kbps 31.3 KBps
384 kbps 46.9 KBps
512 kbps 62.5 KBps
768 kbps 93.8 KBps
1 mbps ~ 1000kbps 122.1 KBps

I have mentioned download speed as approximate because they will vary (always reduce) by 15 – 20% due to network signal loss, computer hardware overheads etc. So for realistic, real world figures always reduce 15 – 20% from the computed KBPS download speeds

Now I guess the confusion of kbps and KBps has cleared away. Just remember when you talk in terms of network it’s always bites per second (bps) and when you talk in terms of storage and files its always Bytes per second (Bps). And next time you won’t complain when your 512 kbps connection does not give you download speeds of 512KBps because now you know why.

Code Tutorials

How to create a 1 gig file

dd if=/dev/zero of=big-file.bin bs=1g count=1


mkfile 1g big-file.bin

Code Tutorials Work

How to tar a directory and only include certain file types

find myProjectDirectory -type f \( -name \*\.php -o -name \*\.js -o -name \*\.css -o -name \*\.inc \) | xargs tar -rf myProjectTarName.tar