Adobe AIR tour in europa !!
Adobe werkt al enige tijd aan een manier om web applicaties (HTML/AJAX en Adobe Flex web-applicaties) naar de desktop te kunnen brengen als ’stand-alone’ applicatie. Adobe noemt dit AIR (Adobe Integrated Runtime).
Afgelopen zomer is er een introductietour door Noord-Amerika en Canada geweest om de Beta versie van AIR te promoten. Een team van Adobe personeel, enthousiastelingen en ‘early adopters’ reden per bus van stad naar stad, om geïnteresseerde webontwikkelaars met behulp van seminairs, demo’s en hands-on sessies te laten zien wat er met AIR mogelijk is.
Nu komt de On AIR Tour ook naar Europa! Vanaf 31 maart tot en met 13 juni doet het team 13 plaatsen in Europa aan, om ook hier webdevelopers te laten zien wat er mogelijk is met Adobe AIR; schrijf je nu in om erbij te zijn op bijvoorbeeld vrijdag 4 april in Amsterdam of op maandag 7 april in Brussel.
CakePHP site redesign for 1.2 release ?? !!
CakePHP: Calling bake from every dev-app install folder
If you use a setup like I explained in my previous post calling the bake script involves a lot of typing with the core and app parameter paths.
If I want to call the bake script from the /Users/mwesten/Sites/dev/myapp cake app folder, it has to be done like this:
php /Users/mwesten/Sites/cake1.2.x.x/cake/scripts/bake.php -core /Users/mwesten/Sites/cake1.2.x.x/cake -app /Users/mwesten/Sites/dev/myapp
To make things easier on myself I use the following alias and shell script.
First I edit /etc/profile (or ~/.bash_profile)
sudo mate -w /etc/profile
and add the following line:
alias bake="/Users/mwesten/cake12bake.sh"
After this I create the shell script:
mate /Users/mwesten/cake12bake.sh
add the following 2 lines:
#!/bin/sh
php /Users/mwesten/Sites/cake1.2.x.x/cake/scripts/bake.php -core /Users/mwesten/Sites/cake1.2.x.x/cake -app $PWD
Now you can execute the bake script from the app folders.
UPDATE:
If you are using the latest version (bleeding edge dev install of CakePHP 1.2) you can do the following instead:
edit /etc/profile or ~/.bash_profile and add the following folder to the path statement:
/Users/mwesten/Sites/cake1.2.x.x/cake/console
After this you can call the bake script like this:
cake bake
or just “cake” for all possible options….
Hmmm….. For some reason it now still calls the wrong app folder, but I think it will be fixed in no-time
CakePHP: Central cake core install with multiple apps
When developing on my system I like to use only one version of the core files. If I update the core files from svn it gets updated for all apps I’m working on.
The way I’m using this is explained below:
In my web-root I do an svn export of cake latest:
cd /Users/mwesten/Sites
svn export https://svn.cakephp.org/repo/branches/1.2.x.x/ cake1.2.x.x
Now we have the latest core files on our system.
If I like to create an app I’ll do the following:
cp -R /Users/mwesten/Sites/cake1.2.x.x/app /Users/mwesten/Sites/dev/myapp
Then I change the following file to point to the correct core files:
mate /Users/mwesten/Sites/dev/myapp/webroot/index.php
Then add the line
define('CAKE_CORE_INCLUDE_PATH', '/Users/mwesten/Sites/cake1.2.x.x');
before the part saying:
/**
* Do not change
*/
If you go to the page http://localhost/dev/myapp/ it then shows the cakephp welcome page.
CakePHP on OSX: Problem using Bake.php script
If you are getting the following errors while trying to bake something on osx 10.4:
"Warning: mysql_connect(): Can't connect to local MySQL server through
socket ‘/var/mysql/mysql.sock’ (2) in
/Library/WebServer/Documents/development/bakery/cake/libs/model/dbo/dbo_mysql.php
on line 117″
try doing the following:
sudo ln -s /tmp /var/mysql
Or you could follow the instruction given by Apple: Mac OS X Server 10.4: Issues connecting PHP to MySQL
Top 5 red flags of software development
svn had 2 very nice items:
The top 5 red flags of software development:
- “Wouldn’t it be easy to…” (the hidden cost of change)
- “This shouldn’t take long” (artificial time frame)
- “Can you make this small change real quick?” (“small” and “quick”)
- “Before you finish X, could you do Y?” (the mental costs of interruption)
- “Let’s push this today” (artificial scope)
and:
If you know the exact cost and the exact schedule, chances are that the technology is obsolete.
with a link to a page of quotations related to design and engineering by Erik K. Antonsson.
Automatic updating Select boxes with Ajax
Othman Ouahbi has a very nice example on his blog on creating automatic updating select-boxes with Ajax.
If you change the first select-box, it updates the next selectbox accordingly.
CakePHP 1.2: “Model/field” in formhelper deprecated
As cakebaker states:
The use of "Model/field" in the formhelper has been deprecated in CakePHP 1.2.
In CakePHP 1.1 you would call:
-
$form->input('Post/title');
In CakePHP 1.2 this has to be written like:
-
$form->input('Post.title');
Automatic updating Select boxes with Ajax
Othman Ouahbi has a very nice example on his blog on creating automatic updating select-boxes with Ajax.
If you change the first select-box, it updates the next selectbox accordingly.

















