Show Mac OS X (Lion) Hidden Files & Folders in Finder

Badges? We ain't got no stinkn' badges

Hidden Files? Hidden Files! We don't need no stinkn' hidden files.

It’s a new year, happy 2012 everyone. So late in December I updated to a dev system which is an iMac running OS X Lion. Given it’s the new year and work is not in full-swing till later this month (the bulk of our clients are running a skeletal staff until school returns next week) I thought this would be a good time to do some maintenance and non-development tasks that should be done to get ready for the year ahead.

One of the items on my @todo list was to update a public RSA key in use last year and in so doing I came across this issue. Down into the console I go to generate a new key:

cd ~/.ssh

generate the a new key

ssh-keygen -t rsa -C "projects@webdeli.com.au"

and bang – out comes a shiny, shiny new key at ‘Users/webdeli/.ssh/id_rsa.pub’

So far so good. Back to the desktop and navigating the browser to a public site the we authenticate to with PKI, go to admin, authorise a public key, open Finder, go to ‘Users/webdeli/.ssh/id_rsa.pub’ ..hey it’s not there, oh that’s right – new system, default settings I haven’t enabled ‘Show hidden files’ in the finder config yet.

Cool, I think… so I go to ‘Finder > Preferences’ … hmmm not here.. ah go to ‘Finder > Preferences > Advanced’ .. no luck here either.

Mac OS X (Lion) - Finder Preferences

Wow, I must be losing it… So I look at ‘Finder > View > Show View Options’ and still nothing..

Mac OS X (Lion) Finder > Show View Options

So what is going on here?

Well it turns out that a design decision in OS X Lion has been made that out here in user-land we don’t need no stinking hidden files. Yes this sucks. Yes you can fix it. No you won’t need to install a utility or software patch, but you will need to execute some console code:

To enable hidden files view in finder on Mac OS X (Lion) – In console:

 defaults write com.apple.Finder AppleShowAllFiles TRUE 

Voilà there are our hidden files (breathes a sigh of relief)

OS X (Lion) Finder Window - Showing Hidden Files

and later if you decide you want to turn this off,

To dis-able hidden files view in finder on Mac OS X (Lion) - In console:

 defaults write com.apple.Finder AppleShowAllFiles FALSE 

I don’t know, but I suspect this design decision is part of the trend from Cupertino toward the iOSification of alot of the OS X (Lion) os and the trend towards simplification and the lockdown of those devices creeping into the macbook/imac & pro’s operating system.

Categories: Apple, Desktop, Development, Lion, OS X | Tags: , , , , | Leave a comment

Integrating PhpStorm 3.0 with your GitHub account (Mac OSX)

The friendly launch icon for PhpStorm 3.0

The team here at Web Deli™ have taken to using PhpStorm for a lot of our PHP IDE development and over the last moth we have been honing or processes to take full advantage of many of the in-built features. Everything has been going smoothly, and we couldn’t be happier with our current choice of IDE. But one feature (as at 3.0) did throw us for a few minutes. Integrating PhpStorm to our GitHub repository. After pulling up the configuration screen we were asked to provide our credential, all pretty standard fair:

PhpStorm Settings Screen for GitHub connectivity

Having carefully checked all the configuration setting before entering them, we should see all of our public and private GitHub repositories and any projects we are collaborators on, right? Well we though so too.. but unfortunately we got stuck at this point for a little will getting the the following “Cannot login to the github.com using given credentials” error message:

The GitHub error message in PhpStorm 3.0 with standard credentialsBut how can this be right? We checked and tested the credentials with our Git+ client (Tower) and connected to the GitHub account without a hitch.. So what’s up with PhpStorm? As it turns out the answer (although not document as at the time of writing this) is pretty straight forward, with a bit of guess work, we discovered that rather that using our email, we replaced this with out GitHub nickname:

Enter your username rather than your email address

and hold our breath… 3.. 2.. 1

Success - Now we're cooking with gas.

Woot! Now on with the show.

Categories: GitHub, IDE, PHP, PhpStorm, Source Code Management | 1 Comment

Fledgling steps into mobile development

Installing Android SDK

As an exercise in adventures in programming this weekend, we are firing up the Android SKD to take a first look at App Development for Android devices (Phones, Tablets). Another project already has a clearly identified iOS (Apple iPhone/iPad) project component, and we are currently awaiting communication, confirmation and enrollment from the Apple Inc side to be granted full access to that platform. In the interim 2 things emerged:

  1. An idea for a new service that could become it’s own start-up venture
  2. The desire to run and test our peer’s Android applications in a Desktop VM as the HTC we have in the office is too busy in use as a phone, to be shared around as a application testing rig.

No doubt other developers would be seeing the trot becoming a canter from desktop access of the net to mobile access is more than a trend and any of us that have used mobile internet browsers will know, some tasks are better served by an native application or ‘app’.

At this office we feel that it is critical to our vision that we are capable in this space moving forward.

Categories: Android, Apple, Apps, Development, HTC, iOS, iPad, iPhone, Mobile, SDK | Leave a comment

Yii Conventions, or Making an Offer You Can’t Refuse

When you make your first Yii application… A good place to start, among all other reference material, is the Yii Code Conventions, and pay heed: deviating from the guidelines CAN CAUSE YOU REAL problems in your application. A good tip for developers new to Yii, and a case in point, is Case. The Conventions (IMO) are not worded strongly enough! To steer the developer new to Yii away from making decisions that will break a Yii (v1.1) application , it can’t be stressed enough in the case of table and field naming in the database and that the case naming applied to table and column names has a bearing on the initial success or refactoring of a project. While it is quite clear from the Coding Convention that lower case is ‘proposed’.. in fact.. a choice here to use Sentence Case or to use camelCase will break some key features offered by Yii… Including, but not limited to Gii scaffold generator or the wildly useful Giix extension To the extent that these tools will work.. In all likelihood foreign key constraints used to define relationships will either not be identified, or the resulting controller and model files will not accord. In addition to this, many contributed extension will assume you have adopted lowercase naming and will simply break without it. So the take away is.. When you look at the Yii Coding Conventions on offer… It really is, an offer you can’t refuse… unless you want to get hurt down the line.

Categories: Yii | Tags: , , | 1 Comment

Blog open.

Welcome to our Blog!

<?php

// Welcome to the WebDeli Blog
echo 'Hello World.';

?>
Categories: PHP | Tags: , | Leave a comment