I got an update link for my 10k Apart project on the 22cnd. I already had some updates committed, so I soon-after clicked the link. It wasn’t until yesterday that the update finally applied. So it was quite a relief when it finally did.
Continue reading post "10k Apart: Updated"Toby's Log page 79
Almost lost some work with git. I was using git reset --hard
to rewrite some history, but I forgot that I had some unstaged changes. Luckily, I had stashed it previously and still had the call in my terminal buffer, so I was able to get the object ID and apply it after verifying it was the right one with git stash -p show $ID
.
My 10k Apart entry is now officially deployed, meaning it made it onto the gallery list (was on page 2, but disappeared again) and I have a URL to request an update.
Continue reading post "#1269"10k Apart: Deployed
My 10k Apart entry was finally deployed and can be seen at its Azure URL, though it’s not in their gallery yet. There were problems deploying it, and it took several tries and back and forths with Aaron Gustafson himself to get it working.
Continue reading post "10k Apart: Deployed"10k Apart
I have spent much of my free time the last 12 days working on a project for the 10k Apart challenge. 10k Apart is a challenge to make a compelling progressively enhanced, accessible site with 10 KB or less of initial payload per page (more can be lazy-loaded). I decided to build an implementation of Conway’s Game of Life, which I had wanted to do since going to a Code Retreat a while back.
Continue reading post "10k Apart"Satellite flare
I believe I saw a satellite flare for the first time tonight. I saw a light moving across the sky about the brightness of a medium bright star, a little off of north to south. It suddenly started to get brighter and brighter, until it got well brighter than any star. It actually got a little halo around it, perhaps indicating some haze in the sky. For a moment, I started to think it was a slow moving meteoroid. But it began to fade at about the same rate it had brightened, until it went back to its normal medium star brightness. It then just continued on across the sky.
Continue reading post "Satellite flare"Wow, the highest cost (31) bcrypt hashing of a password with PHP’s password_hash()
function is quite safe from brute force attacks from my laptop: It ran for almost 282 CPU minutes trying to compute one hash before I stopped it.
Ear unjam
Yay: after two weeks of my ear being clogged, I finally got it unclogged. My hearing isn’t fully back to normal, as I think I’ve got some water in there now, but it is way better than what it was.
Continue reading post "Ear unjam"Sign and submit PhoneGap app for iOS and Android
After some struggling, I got the PhoneGap app for the Akron Art Prize submitted to the iOS and Android app stores. Since it was a new thing for me and I wanted to ensure I could do it again, I took some notes on how to submit them to each store. I tried to do as much with the PhoneGap CLI as possible so it was easily reproducible from a git repo. Note that I used ‘cordova-icon’ and ‘cordova-splash’ for the PhoneGap-side assets, so I didn’t need to touch the platform folders beyond what is mentioned below.
Continue reading post "Sign and submit PhoneGap app for iOS and Android"PHP ‘break’ argument
I’m not sure if I ever knew this before, but the PHP break
statement has an optional argument that declares how many levels to break out of, eg break 2
. For instance, in the following example, the break will break out of both loops when the sub-item is found:
$theSubItem = null;
foreach(getItems() as $item){
foreach($item->getSubItems() as $subItem){
if($subItem->isTheSubItem()){
$theSubItem = $subItem;
break 2;
}
}
}
var_dump($theSubItem);
ensuring that we won’t loop through any extra items or sub-items.