Update your app VERSION using ant

This is just a quick tip in case someone needs it. Maybe when you compile your flash application or your swc library you want to automatically update the “ animal rights essays VERSION” number too without do it manually every time.

ghostwriter lyrics
This is the way I do. In the “compile” task I’ve added a depends link to this ant task:

short story creative writing <target name="update-version"> <propertyset id="tdate"></propertyset> <tstamp> <format property="tdate" pattern="yyyyMMdd"/> </tstamp> <buildnumber file="build.number"/> <echo>updating version to current datetime: ${tdate}</echo> <replaceregexp byline="true"> <regexp pattern="public static const BUILD_DATE: String = \'([0-9]+)'"/> <substitution expression="public static const BUILD_DATE: String = '${tdate}'"/> <fileset dir="src/it/sephiroth/somestuff"> <include name="Library.as"/> </fileset> </replaceregexp> <replaceregexp byline="true"> <regexp pattern="public static const BUILD_NUMBER: String = \'([0-9\.]+)'"/> <substitution expression="public static const BUILD_NUMBER: String = '${build.number}'"/> <fileset dir="src/it/sephiroth/somestuff"> <include name="Library.as"/> </fileset> </replaceregexp> </target>

The 2 optional tasks I’ve used are: BuildNumber task and ReplaceRegExp Task. In this way every time I do an ant compile, it will update my build number and modification date.
What this task does is find this 2 lines in my Library.as file:
then replace the BUILD_DATE const with the current date and the BUILD_NUMBER with an incremental build number. After being executed the first time, ant will also create a new file in your directory called “build.number” with the latest build number int.

Vector.splice bug

http://www.lakecharlesclinicaltrials.com/law-dissertation-examples/ law dissertation examples Usually people complain about opensource projects because they lack of documentation ( that’s true most of the times.. ), but this doens’t happen only there…

Today I’ve spent a lot of time trying to understand why I was so stupid because I wasn’t able to concatenate 2 vectors of int using splice.
But for what you can read from the *official* Adobe documentation, which says (about the third parameter for the splice method):

do your homework now … items — An optional list of one or more comma-separated values, **or a Vector**, to insert into the Vector at the position specified in the¬†startIndex parameter.

Ok, that’s why I didn’t know why I couldn’t manage to make it work! This simple code gives wrong results:

writing personal statement

1
2
3
4
5
6
7
8
9
10
11
12
13
var v1: Vector.<int> = new Vector.</int><int>();
v1.push(1);
v1.push(2);
v1.push(3);
v1.push(4);

var v2: Vector.</int><int> = new Vector.</int><int>();
v2.push(100);
v2.push(200);  
v1.splice( 1, 1, v2 );  

// Expected result: [1,100,200,3,4]
// Actual result: [1,0,3,4] </int>

http://www.55studio.com.au/?pay-for-freelance-writers pay for freelance writers It seems that the third parameter is being casted into int and so only ‘0’ has been inserted into the first Vector!

writing a research paper middle school I tried to look into Adobe jira bugbase and what I’ve found there is that it was a known bug since long time and it has been also moved to the tamarin bugbase.

http://www.blacksheep-igloo.com/masters-thesis-doctoral/ Masters Thesis Doctoral The problem is that at the end they simply closed the bug as invalid bug because the documentation was wrong!

write my paper for me fast Funny

Alchemy installation problems under OSX

a good thesis is I’m writing this little issue I discovered today in the alchemy installation under OSX, in case someone else is having the same problem…

In fact, today I decided to makes a little swc library for an actionscript project using alchemy ( because of the lacks of union in flash ), so I downloaded the alchemy toolkit for OSX.

http://www.accountexx.com/best-dissertation-writers-nursing/ best dissertation writers nursing

I spent a couple of hours trying to make it working on my Snow Leopard and because I’m not a shell and perl expert I finally moved to the linux toolkit under ubuntu ( even if on linux the Flex builder is really far to be usable!)
Anyway, this evening I decided to spend some more time trying to understand why when I was trying to execute the alchemy “ http://apt-online.ch/?write-research-papers write research papers gcc” script ( the ones inside the achacks folder, which is a perl script) nothing happened.
After long time with old style “print” debugging strategy, at the end I discovered an error in the “ professional cv and cover letter writing service config” script in the main alchemy installation folder.
At this line (line 33):
1
if echo $MACHTYPE | grep darwin &> /dev/null; then
I had to modify it into:
1
if echo $MACHTYPE | grep -i darwin &> /dev/null; then
because the command “echo $MACHTYPE” outputs “ buy viagra online canada x86_64-Apple-Darwin“, with the uppercase “D”.
In fact, after that modification everything finally worked!