More from: Crafting

Hammer

DSCN3666 Leather repair: replaced worn strap on hammer holster. Used copper rivets this time instead of the assembly line crimp rivets it was made with. Shaped it a bit to reduce future problems – when you want to put your hammer back on your belt, you don’t want to fight to get it back in there – aim and drop. Properly shaped leather does that. I can make work belts also, with cinches rather than buckles if so requested.

If you have leather that needs to be repaired this is the time to get it to me.


Anyone see a way to improve this?

// inputs are form $_POST[] variables login and password

// relevant table columns are id,login,password,and sometimes key_chain
 // id is integer, the rest char with password being a hash 
 // the output success/fail flag is $id is set upon success, unset if failed

 //Check Keys Table for this Login
 if(isset($staff)) $sql = "SELECT `id`,`password`,`key_chain`"; else $sql = "SELECT `id`,`password`";
 $x = mysqli_real_escape_string($my_db_link,strtolower(trim($_POST['login'])));
 $sql .= " FROM `keys` WHERE `login`='$x';"; 
 $result = mysqli_query($my_db_link,$sql) or die(mysqli_error($my_db_link));
 unset($x);
 unset($id);

 // is there a matching login in the table?
 if (mysqli_num_rows($result)>=1) {
 
 //matching login found
 $row = mysqli_fetch_array($result);
 $id = $row['id'];
 $password = $row['password'];
 if(isset($staff)) $key_chain = $row['key_chain']; //text string to determine user's privilege
 mysqli_free_result($result);

 //if password is null, then it is not set yet, so set it
 if( (!isset($password)) OR (strlen(trim($password))<60) ){ //min hash length is 60

 // set the password
 $x = password_hash(mysqli_real_escape_string($my_db_link,strtolower(trim($_POST['password']))), PASSWORD_DEFAULT);
 $sql = "UPDATE `keys` SET `password`='$x' WHERE `id`='$id' LIMIT 1;";
 mysqli_query($my_db_link,$sql) or die(mysqli_error($my_db_link));
 unset($x);

 //if password not null, then test it
 } elseif (!password_verify( mysqli_real_escape_string($my_db_link,strtolower(trim($_POST['password']))),$password)) {
 // bad login -- wrong password
 unset($id);
 unset($key_chain);

 }//if(isset($id) AND

 }//if (mysqli_num_rows($result)>=1) {
 unset($password);
 unset($row);
 unset($sql);

Bible Reading Program updated 30 SEP 2015

screen-cutThe BRP Bible Reading Program released in 2008 has been updated to prepare for the changes in PHP v7.0 and improve the code some. This would be a good time for feature requests.

Individual files can be downloaded from https://sourceforge.net/projects/brp/files/brp2015/. A .zip archive is also attached here.



ALC Maker’s Space is coming

Abundant Life Church is starting a new thing called Groups which will each be on a secular topic of interest to those who participate, and will meet in lieu of the traditional Wednesday evening Bible Study service. (Typical groups last time were Finances, Cropping for Christ, & Shooting and Firearm Safety.  My church is kinda crazy like that) The point is to involve the wider community, not just church members. There will still be a small group meeting Wednesday evenings at ALC for those who don’t have an interest in anything.

Anyway, due to some temporary lapse in sanity, ALC has actually approved yours truly to sponsor one of those groups. I submitted our description as follows. I’ll post start details & dates for any interested once I have them. This is for makers and minions.


 

Made in the Image of God, we are Creators! For people who make things out of micro controllers, electronics, leather, wood, and steel. That’s not a junk TV, it’s a parts bonanza!

A Maker’s Space, we gather to share and discuss technology ideas, cool things to make, and learn and see what each other has been building. In the event of fire or explosion the church has insurance.

My initial thoughts are interesting projects such as wireless electronic signs, quadrocopters, furnace controls, and performance art lighting, using TI Launchpads, Arduino, and Raspberry Pi micro controllers, but anything goes. Just have to see what awesome ideas people have when they come.

Coffee, fellowship, Windoze & Linux workstations, & an ugly but indestructible work bench provided. I have some proto-boards. Lots of junk box parts. Room full of electronics upstairs that we need to empty anyway. Meets weekly in the Community & Bridge rooms. Steam punk garb optional.

Kubulai / John D. Nash
http://facebook.com/kubulai
http://twitter.com/kubulai
http://www.linkedin.com/in/kubulai/
https://plus.google.com/108397294034481595594

P.S. We will start each session with coffee and prayer. “Sweet Jesus! Why did I make that!” is probably not what we want to pray.