Link: Coding Horror: Please Don’t Learn to Code
The truth is that coding is associated with knowing about “computers” sadly. But just like Dijkstra said
“Computer science is no more about computers than astronomy is about telescopes.”
Link: Coding Horror: Please Don’t Learn to Code
The truth is that coding is associated with knowing about “computers” sadly. But just like Dijkstra said
“Computer science is no more about computers than astronomy is about telescopes.”
Since UUID Access is deprecated in iOS I needed a method to access some Unique Identifier via
Cordova which was ok to use in the long run, so the MAC seems like a good choice here. Since it
is not exposed by default I wrote a small plugin to access it. Maybe I am not the only one looking
for this so I put it on github.
Enjoy
Since WordPress does not provide any kind of author widget to go along with a post or page I decided to roll my own. I feel like it’s a nice thing to get the contact details for a person responsible for a specific section of the page right on this page, and a widget seemed like a perfect fit, so this is how WordPress Page Contact came into being, as my first listed WordPress plugin.
The structure is rather simple: create a database of contacts and associate them to a page or post via postmeta, which can be retrieved easily upon display. Rollup the information in a widget to display in the sidebar for any given entry and here we go.
Since I didn’t find anything similar I decided apply for it to be listed in the Plugin index so here we are. You can find it as WordPress Page Contact.
Enjoy!
Link: You’re crap and paid too much for the little work you actually do – theregister
This is exactly what is wrong with the so called “big business” and the reason for me not wanting to work there . Nicely summed up…
Just because I keep googling it:
To install MySQL 2.8.1 on OS X Lion
1.
export DYLD_LIBRARY_PATH="/usr/local/mysql/lib:$DYLD_LIBRARY_PATH"
2.
env ARCHFLAGS="-arch x86_64" sudo gem install mysql -v='2.8.1' -- --with-mysql-dir=/usr/local/mysql --with-mysql-lib=/usr/local/mysql/lib --with-mysql-include=/usr/local/mysql/include --with-mysql-config=/usr/local/mysql/bin/mysql_config
Thanks Stackoverflow
Link: How I learned to stop worrying and love REST
Providing the ways to traverse the API in the objects seems like such a basic thing but I guess it has just been a small revelation to me! It just explains the feeling about having a beautiful simple API vs a one feeling kind of clunky.
In a current Project I’ve been working with a Cappucino frontend and a CodeIgniter Backend. Since Cappucino just loves JSON I decided this is the way to go, sadly PHP doesn’t provide a standard way to interact with a JSON POST but with a little helper this can be solved easily. I made a Gist out of it so it can be improved apon and reused.
Trying to make some slider plugins for jQuery work with a HTML list didn’t prove to be as simple as expected I started working on a simple slider to work with all HTML elements. So here it is in a first working version to be improved and worked on in the futur as need arises.
Working on a Codeigniter 2 Project right now I decided to give FirePHP a spin since it was pointed out to me for being somewhere around the next best thing to sliced bread for PHP Debugging… or something like that. It really seems nice so far I have to say!
Looking for some Codeigniter library but only finding a CI 1.7 one I decided to try to just drop in the provided code from the FirePHP site and guess what it just works. Download the FirePHPCore, currently 0.3.2,
and unpack FirePHP.class.php to the Codeigniter application/libraries folder (I also renamed it to firephp.php as well). Now the library can be loaded either via adding it to the autoload.php as
$autoload['libraries'] = array('firephp');
or just load it when needed via
$this->load->library('firephp');
I prefer to autoload since I only load it in my development autoload.php anyway. Having different configs for development and production is as easy as setting up a directory structure like the following and just drop the configs in the environment folders.
Now it is time to install both Firebug and the Firefox FirePHP Plugin for Firefox 8+. Currently the latest FirePHP needs to be installed via the link since the one provided as stable via Addons is not working with Firebug 1.9. Get the latest from the FirePHP site or you will get an error.
Thats it! Now logging a message is as easy as
$this->firephp->log("FirePHP is working!");