Wednesday, March 19, 2014

QR codes

Some of the most interesting things I have learned about computers is how they interact and make changes to the world I physically live in. I have always been interested in bar codes and QR codes. A bar code allows a device to input a integer value into a computer for storage or processing and QR codes hold a string value. If you called a bar code one dimensional than a QR code would be two dimensional.
Every little black and white square is a bit of data. Except for a few of the squares in the corners and the middle, they are used to give the angle and distance of the camera to the flat surface to find the true data of the QR code.

How QR Codes Work and Why They Suck So Hard

In the picture above the black and white squares are not used for storing data but help show where the data is. The yellow areas are used to hold bits that can be either black or white (1 or 0). These bits are then grouped together to form bytes and are then turned into characters that form the string. After the data is turned into a string it is then processed. If the string starts with www. it's a webpage and is opened as one. The example at the top is a QR code that holds a string equal to "http://bit.ly/1fs0IA2". This is just one simple technology that is connecting the real world to the digital one. 


"What Is a QR Code?" What Is a QR Code? Web. 17 May 2014. <http://www.whatisaqrcode.co.uk/>.

Picture taken from "http://gizmodo.com/5969312/how-qr-codes-work-and-why-they-suck-so-hard"

Monday, March 10, 2014

Cyber Security

The online world can be a dangerous place. Bots are searching the internet for open ports  every second of everyday. My journey into the online world started with a raspberry PI. Working with my raspberry PI I created a server I used for streaming, cloud service, and as a webpage server. After putting my PI online for the world I was immediately attacked by bots from Poland and China.

A  raspberry pi

The server didn't even have a domain name and came under fire after being online for only 48 hours. Attempting to use brute force, bots worked to hack my server by trying hundreds and hundreds of user names and passwords in a short amount of time. The port attacked was #22, a port I opened so I could remotely controller the raspberry PI using a protocol called SSH. That morning I was shocked and horrified to read “-POSSIBLE BREAK-IN ATTEMPT!” repeatedly on the log file. Hundreds of attempts were made with login names such as  “daniel”, “leonob”, “nagios” , and “dasusr1” to name a few. Although my server was not hacked I immediately took my server offline to determine the extent of the damage done, if any.


This is when started to research the origin of the attacks. I found many sites that track suspicious IP addresses to help server admins with security. According to Badips.com the first step in sever security is to block suspicious IP's. Following this I changed the open port on my router, although still able to connect remotely the changes made it harder for bots to find their way in. In addition to this my server now bans IP addresses after 5 failed log-ins in a row. After improving my “Cyber Security”  my server has been attack free since “Dec 23 [2013]12:39:02”.

Before this experience I wouldn't have imagined spending more time on server security than server content. I am continually working to keep my server secure, constantly checking logs for suspicious activity as well as updating software when needed . My next step is to give others access to my server, creating a whole new area of security to tackle.

"Cyber Security Primer." What Is Cyber Security? Web. 17 May 2014. <http://www.umuc.edu/cybersecurity/about/cybersecurity-basics.cfm>.

"Cybersecurity: How Safe Are Your Data?" Nature.com. Nature Publishing Group, 28 Apr. 2010. Web. 17 May 2014. <http://www.nature.com/news/2010/100428/full/4641260a.html>.

Monday, March 3, 2014

Open Source Software

Throughout my life I have had a need for software and with most software I couldn't afford it. The solution I found was Open Source software. In high school every class we used and needed Microsoft Office which can run up to $399.99. Not having that kind of cash, I looked into different ways to solve my problem and found Open Source software and the program Open Office. Open Office is software that is free and meets my needs to read, write, and create .doc files. This is not a rare case as I repeatedly find myself needing software to create new things and use Open Source programs to fit my needs. 

Examples of popular software and the Open Source equivalent:
  • Windows and Mac operating systems = Linux
  • Microsoft Office = Open Office
  • PhotoShop = Gimp
  • Maya = Blender
  • Mathlab = Octave
  • DirectX = OpenGL
  • Visual Studio = Dev-C++
    This is a video of my first ever 3d model I've created and using Open Source Programs: Blender and Gimp.

 
As a programmer one of my life long goals is to contribute to an open source project, as well as one day have my code published in their released distributions. Helping with these projects I could indirectly help other projects as some rely on different Open Source software. An example of this is how Linux and Blender use Open GL for their graphics. Open Source software is constantly improving itself after every iteration; it also creates competition that forces other software to improve and push the boundaries of functionality and useability.

"Find Open Source Alternatives to Commercial Software | Open Source Alternative - Osalt.com." Find Open Source Alternatives to Commercial Software | Open Source Alternative - Osalt.com. Web. 17 May 2014. <http://www.osalt.com/>.