Check one file from repository in SVN with a specific revision number
Posted by Helmut Granda | Filed under AS Burst
Problem
You have to edit one file from a repository but there are hundreds of files in that repository with possible hundreds of MB or GB worth of information. Not only that but you might need the file on a specific revision number.
You have tried
- svn checkout http://svn.source/directory/file.fil
But this doesn't work.
Solution
You need to check out an empty directory from repository and then apply an update to the file you need.
- svn checkout --depth=empty htt://svn.source/directory[php]
Now you submit the update command for the file you need checked out
[php]svn update file.fil
note, before running the svn update make sure you "cd" to the directory that you just checked out from svn "cd /directory".
finally if you want the file to a specific revision number all you have to do is run an update again with the revision number.
- svn update -r### file.fil
AS3 Convert function name on the fly
Posted by Helmut Granda | Filed under AS Burst
Why would you want to do this? Not sure but a sample here:
- var _x = 100;
function a() : void
{
trace("\t\tCalled from A = _x" + _x + "\n");
}
var b = function (): void
{
trace("\t\tCalled from B \n");
}
trace("Do a regular B call\n");
b();
trace("Convert B to A\n");
b = a;
trace("B Converted\n");
b();
trace("Do a regular A call\n");
a();
Result
- Do a regular B call
Called from B
Convert B to A
B Converted
Called from A = _x100
Do a regular A call
Called from A = _x100
ZendFramework FollowSymLinks or SymLinksIfOwnerMatch error in XAMPP
Posted by Helmut Granda | Filed under AS Burst
Problem:
You may be getting a 403 error and if you look at the logs you should find something similar to the following:
[error] [client 127.0.0.1] Options FollowSymLinks or SymLinksIfOwnerMatch is off which implies that RewriteRule directive is forbidden: /Applications/xampp/xamppfiles/htdocs/project/public/index.php
Solution:
In your .htaccess file add the following line to the begining of the file:
- Options +FollowSymLinks
ZendFramework .htaccess ships with the following as default:
- RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ index.php [NC,L]
Adding the two lines above fixes the problem. So the file should look like this:
- Options +FollowSymLinks
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ index.php [NC,L]
Flash Builder: Changing BorderContainer color during runtime.
Posted by Helmut Granda | Filed under AS Burst
I got myself in a mess trying to change the background color of the component during runtime and after different trial and error finally I figured out that it had to do with this declaration:
- <s :backgroundFill>
</s><s :SolidColor color="#000000" id="defaultColor"></s>
Once removed I was able to use
- this.setStyle("backgroundColor",0x00afe1);
I don't really understand why having the backgroundFill declaration within the body of the component, it would affect the behavior to the point that I wasn't able to change the color of the object but when I find the explanation I will for sure post it here.
//Command line shortcuts Mac OS X
Posted by Helmut Granda | Filed under AS Burst
Ctrl + A: Go to the beginning of the line you are currently typing on
Ctrl + E: Go to the end of the line you are currently typing on
Ctrl + L: Clears the Screen, similar to the clear command
Ctrl + U: Clears the line before the cursor position. If you are at the end of the line, clears the entire line.
Ctrl + H: Same as backspace
Ctrl + R: Let’s you search through previously used commands
Ctrl + C: Kill whatever you are running
Ctrl + D: Exit the current shell
Ctrl + Z: Puts whatever you are running into a suspended background process. fg restores it.
Ctrl + W: Delete the word before the cursor
Ctrl + K: Clear the line after the cursor
Ctrl + T: Swap the last two characters before the cursor
Esc + T: Swap the last two words before the cursor
src: http://osxdaily.com/2006/12/19/command-line-keyboard-shortcuts-for-mac-os-x/
//Why You Can’t Work at Work
Posted by Helmut Granda | Filed under AS Burst
As agencies get bigger and deadlines shorter it becomes harder to work at work. Some people even opt to work away from the office during crunch time due to the many distractions that are created at work.
//SMW Part 04 Crowdsourcery Potions 101
Posted by Helmut Granda | Filed under AS Burst
//iPhone applications built with Flash
Posted by Helmut Granda | Filed under AS Burst
If the mountain doesn't come to you, then you must go to the mountain. A lot of people talking how Flash is dying but it is nice to see how at least Adobe is helping current Flash Developers to use Flash CS5 to create applications for iPhone, iTouch and iPad.
//Use SVN with FDT
Posted by Helmut Granda | Filed under AS Burst
Quick way to set up a SVN Repositroy in FDT.
Instructions
- Open the SVN Repository Exploring Perspective
- Add an new SVN Repository
- Return to the FDT Perspective
- Select the Project within the Flash Explorer that you wish to link to the new Repository
- Scroll down to Team and Select Share Project
- Choose SVN from the Share Project dialog box
- Choose the Repository from the supplied list
- Enter the project name you want, and Finish
- Tidy up those files with ? marks that you do not want committed, by adding to svn:ignore
- Commit the project
- You should see each folder with a little ‘database’ symbol, without any white stars which means that that everything is perfectly synchronized
The top of my project has a white star, usually a commit and update sorts this out, but not always! (A topic for a new Blog!)
Boarding Pass Fail from Delta
Posted by Helmut Granda | Filed under AS Burst
Tyler Thompson had a very discomforting experience with the Delta Boarding passes and he went ahead and took the time to make different designs that on his point of view meets the requirements of the customers.
Here you can see the first design Tyler did:

And here you can see a Delta boarding pass similar to what Tyler used:

to see the real pass he was handed visit his site
I personally haven't done a lot of traveling but on the few flights I have had in the past years i can easily identify the gate and seat number in the boarding pass. At first glance it is difficult to distinguish the numbers in the suggested design since they are aligned one after the other on a black strip and they all look like a continuous line rather than a separate entity.
Some other things that need to be kept in mind when designed to such a broader audience is
Languages
Is the design going to be translated in different languages and and do we have enough room in case they are printed on a different language?
Is the user at any time have to read the boarding pass left to right, is the design going to fit that requirement?
Ink
Will the company have to spend millions of dollars more in order to use color versus only one color ink?
Training
How many men hours do we need to train people so they know exactly where the new information will be located on the new boarding passes?
How long do we expect everyone to get used to it and how long do we expect people to ask why it has changed and how to find the information?
Legibility
Is it legible to everyone?
Can everyone read the numbers?
Finally
Don't get me wrong, the suggested design looks "pretty" but how many times after you went through the inspection point the first thing you look at is the Flight Number? This is a boarding pass not a buss ticket. Once you have gone though security and you look at your ticket, What is the first thing you look at? I personally look at the Gate Number so that I can figure out where to go from there. I don't see people walking by the isles trying to see the flight number on the plane to identify it.
Interestingly enough Tyler's inspiration for his post was the post by Dustin Curtis in regards to the American Airlines website horror experience he had while trying to book a flight which as a consequence one of the UX Designers had his contract terminated due to him taking the time to explain the procedures of large corporations and the reasons behind the "ugly" design though corporate email.
I say I find this interesting because if you follow the post from Dustin you can learn a lot and understand why things are done the way they are and is not as easy as to turn on and off a switch but it is a lot more involved than that. This is part of the response from the UX Designer
Let me explain. The group running AA.com consists of at least 200 people spread out amongst many different groups, including, for example, QA, product planning, business analysis, code development, site operations, project planning, and user experience. We have a lot of people touching the site, and a lot more with their own vested interests in how the site presents its content and functionality. Fortunately, much of the public-facing functionality is funneled through UX, so any new features you see on the site should have been vetted through and designed by us before going public.
However, there are large exceptions. For example, our Interactive Marketing group designs and implements fare sales and specials (and doesn’t go through us to do it), and the Publishing group pushes content without much interaction with us… Oh, and don’t forget the AAdvantage team (which for some reason, runs its own little corner of the site) or the international sites (which have a lot of autonomy in how their domains are run)… Anyway, I guess what I’m saying is that AA.com is a huge corporate undertaking with a lot of tentacles that reach into a lot of interests. It’s not small, by any means.
So the ideas of revamping a site or updating the way a boarding pass is great but keep in mind it is just more than "I like it this way" call by one person but it is a team and layer of contributors that you have to consult before making the final call.