Fixing “Invalid token” on Joomla front end

In Joomla I had a problem with doing a logout from the front end. Clicking once would seemingly have no result. Clicking twice would take you to an “invalid token” page.

After a lot of unsuccessful internet searching I ended up turning setting error reporting to ‘maximum’ in System>Global Configuration>Server. Continue reading Fixing “Invalid token” on Joomla front end

Mac users: make your own launcher app for command-line utilities via AppleScript

I’ve been using HIDE lately for Haxe development. It installs and runs from the command line normally, and I quickly get tired of having to summon the Terminal in order to launch it. Here’s what I did to make it launch from my Dock:

  1. Open up AppleScript Editor (it’s in your Applications/Utilities folder, or find it using Spotlight).
  2. Create a new script.
  3. Paste the following line into the editor:
    do shell script “haxelib run HIDE”
  4. If you click the Run button at this point, it should launch HIDE for you.
  5. Select File>Save and choose “Application” as the file format. Save it in your Applications folder.
  6. Find the application now and drag it to your Dock for quick access.

This technique works for any Terminal command of course. Enjoy!

Adobe: Why no AS3/HTML5 solution for Flash?

Every time Adobe does an article about the Flash IDE’s ability to do HTML5, I am very interested and I check it out. I am always disappointed when they get back to the fact that you have to use JavaScript.

I really cannot understand why Adobe has not endorsed or offered a method to compile Actionscript (or a better language) to JavaScript from within the Flash IDE. Actionscript 3 is clearly superior to JavaScript. Why should we have to re-write everything when we’re in the same IDE? Why are they taking a step backwards?

I would consider Haxe to be the ultimate solution, but Adobe could even use Jangaroo or similar technology to target HTML5—maybe even bundle Google Swiffy. If they did, I’m sure developers would be happy to be able to create both Adobe AIR apps and HTML5 apps from the same code base without needing to install other tools. Those of us using Haxe are already basking in the glory of that.

Perhaps Adobe thinks such a move would eat away at their AIR platform’s popularity. I just don’t know why they bother with JavaScript tools within Flash, when better tools exist. As it stands, I expect that more developers will be doing like I did and begin switching to Haxe with OpenFL, which is a more advanced language than AS3 and can compile to SWF/AIR, HTML5, and a host of other desktop, console and mobile platforms.