Show/Hide Hidden files and folders in OSX

Show:

defaults write com.apple.finder AppleShowAllFiles TRUE
killall Finder

Hide:

defaults write com.apple.finder AppleShowAllFiles FALSE
killall Finder

 

Update mySQL via array


$sID = filter_input(INPUT_GET, 'sID', FILTER_SANITIZE_SPECIAL_CHARS);

$update_values = array
(
"firstname" => filter_var($_GET['firstName'], FILTER_SANITIZE_STRING),
"lastname" => filter_var($_GET['lastName'], FILTER_SANITIZE_STRING),
);
//mysql_update_array("table", $update_values, "uniqueRecordID", uniqueRecordID#VALUE );
$updateCommand = mysql_update_array("people", $update_values, "sessionID", $sID );
$updateCommand .= " LIMIT 1";
$update = mysql_query($updateCommand) or die(mysql_error());

 

Project Euler Programming Progress

So far, so good: I’ve completed two of the programming challenges:

However, the challenges are already pushing the limits of what I understand in regards to mathematics. Composite numbers? Palindromes? Lot’s to learn!

 

Project Euler

Leonhard Euler (1707-1783)I’ve just enrolled in the free “Project Euler” series of logic challenges. From the Project Euler site:

Project Euler is a series of challenging mathematical/computer programming problems that will require more than just mathematical insights to solve. Although mathematics will help you arrive at elegant and efficient methods, the use of a computer and programming skills will be required to solve most problems.

The motivation for starting Project Euler, and its continuation, is to provide a platform for the inquiring mind to delve into unfamiliar areas and learn new concepts in a fun and recreational context.

My goal is to work through at least one problem every few days, and to post the results here.