Lost Password?

CodeCall Programming Blog

Programming Blog

John's Blog
John Description:
A short description about your blog

Passwords

Posted by: John in Untagged  on

Passwords are our digital fingerprints. Shouldn't they be as secure as we want them? Apparently some websites don't think so.


How are our passwords stored?
Most websites store users passwords as an md5 (message digest 5) hash. Essentially, your plain text password is passed through a function that hashes your password. That hash is stored in the websites database. Since md5 is a one way hashing

PHP Nowdocs

Posted by: John in PHP on

A few weeks ago Jordan blogged about the heredoc syntax. The point I want to raise in this blog, is the heredoc syntax parses PHP code, similar to double quotes around a string. For example
Would output
Hello World!
Hi John!
Notice $name was parsed as a variable not as a

My Recent Shell Scripting

Posted by: John in Linux on

Recently I have been working on some shell scripts to aid in the installation of applications. One of the scripts I have been working on is a LAMP (linux, apache, mysql, and php) installer. For almost two years I ran a local WAMP server (same as LAMP but the operating system is Windows) which was installed by clicking some executable (XAMPP / VertigoServ). However, Linux shows no sympathy for

Do web hosts oversell?

Posted by: John in Hosting on

What is overselling?
Simply put, overselling is when a host offers to more resources to their clients than what they physically have.

I would venture to say, all hosts oversell. Overselling for the most part is a legitimate practice. Most owners of dedicated servers who specialize in web hosting receive, say, an 80 GB hard drive and 8000 GB of transfer from their data center. Lets assume one of the

Random Numbers

Posted by: John in Programming on

Have you ever been in a conversation where someone blurts out something completely off topic? You say to yourself, “well, that was random.” Chances are, unless that person suffers from a mental disability, that spew of “random” verbiage was not really random.

What is randomness?
The Oxford English Dictionary defines random as “made, done, or happening without method or conscious

Extract Variables

Posted by: John in PHPionManager on

A few months ago, in one of the php articles / books I was reading I stumbled across something called variable variables. Essentially, it lets you create a variable whose name is defined by another variable. I thought to myself “where the hell would this be useful?” A few days after Jordan bloged about variable variables I actually found a use for them:

ionManager (a framework and CMS built

One of the many annoyances of programming is a variables scope. Generally variables can be declared within the global namespace or the local namespace. When working with methods and classes global variables appear to be a good idea, however overuse of the global namespace can cause variables to clash, it also undermines encapsulation. Moreover, a class which depends on a global variable is

PHPUnit

Posted by: John in Untagged  on

All developers at one point or another test their code. Although it generally takes the forum of an echo to make sure your code is being ran or the correct data is being processed – it is a test. The unfortunate side effect is, all those tests will be removed. Therefor, when a piece of functionality breaks within your code, you sit at your desk manually sifting through your files once again

PHP Function Overloading

Posted by: John in PHP on

As a college student I am required to use different programming languages depending on the class I am taking. My first two semesters I used Java (while the professor attempted to teach us object oriented programming) and my last semester I used C++. Nonetheless, both languages have vast support for object oriented programming. Several days ago, while working on my php database structure I

In one of my previous blogs I showed you how to create a PHP-Gtk window you might use for a Tic-Tac-Toe application. In this blog I intend on showing you the logic needed to finish the application. Lets start off with the code we created in the last blog:

<< Start < Prev 1 2 Next > End >>

Tutorials

Working with Halftones - By Genny
It's been a while... but somebody asked me to write another Effects tutorial, so I picked halftones, because their fun to mess around with :) Start by using the paintbucket and set a backround Colo...


Setting up server 2003
I blogged about doing this since I've been asked on numerous occasions about how its done. The blog is at : -------------------------------------------------- Setting up Windows Server 2003 as a...


Formatting Numbers for Currency Display in JavaScr...
Methods-Number.toFixed(x) Description -Formats any number for "x" number of trailing decimals. The number is rounded up, and "0"s are used after the decimal point if needed to create the desired...


Top Downloads

Mouse Lock (30)
Lock your mouse and PC.


Convert DOC to PDF For Word (23)
Convert DOC to PDF For Word is a Word plugin that convert DOC to PDF, Word document to PDF automatically.


7-Zip (16)
7-Zip is a file archiver with the highest compression ratio. The program supports 7z, ZIP, RAR, CAB, ARJ, LZH, CHM, CPIO, RPM, DEB, GZIP, BZIP2, Z and...


SWF Sound Automation Tool (15)
SWF Sound Automation Tool converts WAV and MP3 files to SWFs, with user specified bitrate, quality and sound modes. It can convert hundreds of sound f...


MultiPing Grapher (12)
MultiPing Grapher is a further development of Perfping with the ability to graph up to 10 different ICMP results.