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"WWW posts page 25
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.
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.
We use Rackspace at Cogneato. Looks like they just got bought.
Figuring things out with this phonegap stuff. I will have to post some of what I’ve learned when I have more time. We’re just about to the point that we can submit the app and then make the rest of the changes we have left client side. I’ve never done the submission process. It looks a bit confusing with signing things with certificates / keys and using the clients’ developer accounts. Hopefully it won’t prove too difficult. I remember it taking a while for the iOS store at least and know we had some problems with rejections where we had to resubmit several times. Hopefully we don’t run into that now, especially since we’re on tight deadlines as is.
Struggling with PhoneGap:
- had trouble with geolocation on iOS
- wasn’t able to get cordova-icon or cordova-splash to work, or ‘config.xml’ icon configuration, so I had to manually put icons in place for now
- struggled getting a coworker’s build working
Tomorrow, I get to work on the app submission part for the first time. Sounds like it will be a challenge itself. Wishing that PWA‘s had better support.
Ideas: Remotely hosted personal site with home data store that syncs as client
This idea is based on my Local + Proxy Remote Hosting for Personal Site idea, but attempts to mitigate some of its problems further.
Continue reading post "Ideas: Remotely hosted personal site with home data store that syncs as client"exercism.io meetup
Went to an Akron Code Club meetup this evening. Started working through code exercises from exercism.io. Seems pretty cool. Uses a simple command line utility to load and submit solutions, then the site has a list of other peoples’ submissions where you can view and comment on them. I have tossed my progress on GitHub.
GiveCamp 2016 done
GiveCamp 2016 is over. Another successful year. The new Cleveland Garlic Festival site is live. I didn’t do much on the site the final day besides for fix some URLs and move some files to help with the launch. I did break away to help another team fix some issues with image sliders on the homepage. Not just any team, but one doing some updates to the Cleveland GiveCamp website. I don’t believe those changes are live yet though. During this, I got to work a little while with my cousin’s friend Dara for the first time.
As usual this year, I recognized a number of people from previous years. My project manager was a project manager from a couple years ago. I talked to several of the people I’ve worked with in the past and have seen multiple years. There is definitely a networking aspect to the event. Some of the people I see at meetups and other events.
Continue reading post "GiveCamp 2016 done"