August 19, 2010

Do I need Flash Player - Mark DuBois Weblog

A university professor explains what his finding where when he tracked how much he needed Flash during his day, and how not having it would impact his daily productivity at work. Check out the full article by following a link to his blog below.

69% of all websites I visited required Flash PlayerPersonally, I was rather surprised at the results. The darker green slice (above) means that Flash Player was required to experience all the content of the site.  A full 69% of the all sites I visited yesterday required Flash Player to fully experience the site. Some would have been incredibly difficult to navigate without Flash Player (for example, Total Training). Others have alternatives to using Flash Player (such as Lynda.com), but I would have had to change my established player preferences at that site (which I chose not to do).

Posted via email from Matthew Sloan Wallace

August 17, 2010

Updating a Github Fork from the Original Repository

Seems like everyone these days are switching from SVN to git. I think it’s an awesome choose and I really like learning as much about git as I can. Something that is not quite clear when you are using github is how do you update a project that you have forked from someone else’s repo? Well if you are like me I don’t use git on a daily bases yet so I was not quite sure how this was done. After spending 10 min or so reading some blog posts this is what I found.

The following will only work if you have checked out a repo that you have forked and you have things setup correct. I am assuming that you have at least gotten as far as the basics of setting up git on your machine and you have forked someone else’s code on github

First you need to add a remote branch to your repository that points to the original repo you forked from.

git remote add --track master benstucki git://github.com/benstucki/reflex.git

You will want to replace ‘master’ with the branch you want to track in the remote repo. In most cases this will be master, although you could replace it with edge or any other branch. You should also replace ‘benstucki’ is what you the remote will be called.

To verify the remote repository was added run

git remote

You should see the new remote repo, in this case named ‘benstucki’, along with any other remote repositories you may have previously added.

Now we can fetch all the changes from benstucki’s code base.

git fetch benstucki

This will create a new remote branch called ‘benstucki/master’. Now we are ready to merge the code from the remote repository.

git merge benstucki/master

That’s it. Remember, this process isn’t limited only to the original repository. Feel free to add remote branches for other user’s forks or even from repositories outside Github.

After you have followed the steps above all that is left to do is merge like so

git merge benstucki/master

 

 

Posted via email from Matthew Sloan Wallace

August 16, 2010

FDT templates formatted the way you like them

Update post: Just after this post on August 16th 2010 FDT released Milestone 4 and added a lot of new options to the code formatting AS3 section of the preferences in FDT. You can get a lot of the formatting that you want out of changing the settings rather than importing my templets. Something you still don’t get as of yet is MXML formatting so some of you may still find my templates useful. Also…….. Over the next few weeks I will be including some custom templates if you are a PureMVC user. I also encourage you guys to fork the templates and share your own shortcuts with the community.

If you like using FDT and you make use of the templates that come with it, Great! If you are new to FDT templates are a great way to speed up your work by writing a lot of code for you. Things that we use everyday like for loops, getters and setters, mxml components and more. The one thing that may bother some of you is the way the code in the templates are formatted.

If you like your code formatted like this.

public function something():void {

}

Your in luck, because all of the templates that come with FDT are formatted in this way

I tend to like my code formatted like this.

public function something():void
{

}

I took some time over the weekend to reformat all the templates just the way I like them. Over the next few weeks I plan on adding my own templates for PureMVC. If you tend to use other frameworks like Robot Legs or Parsley I encourage you to do the same and please share. Below I have a github repo you can contribute too if you like.

There are also MXML templates too. I reformatted them as well, so that they don’t take up as much room across the screen horizontally. I tend to add more returns so that each property is on it’s on line when defining MXML code.

If you like the formatting that I like and you also would like PureMVC templates when I start adding them then you can feel free to download my templet file and import it into your templates with in FDT. I started a github repo and I would also encourage you guys to fork the project and add your personal templates to this as well.

FDT-templates

If you want to import my templates then open FDT and go to Preferences>FDT>Editor>templates . Select all the current templates and then click Remove. Then click the import button and import the file that you download from my github repo.

August 12, 2010

Fix to use Google Chrome for debugging in Flash Builder / FDT

Google Chrome comes withe Flash Player installed and enabled. For most users this is great. For developers that want to use the debugger it is not. If you install the debugger on your system it does not replace or over ride the player in Chrome. This is due to the way Chrome manages plugins.

The fix used to be to go into your eclipse settings and choose to use Firefox or Safari for debugging. Like many developers I have grown to really like Chrome and would like to use it and not have to open another browser just to test my projects.

The solution is to do the following. In Chrome you need to put the following URL in chrome://plugins/. You will see the list of plugins your browser is using. Find the Shockwave Flash Plugin and click disable. After that close all browsers including Chrome. Run the installer for the latest Flash Player Debugger plugin. Launch Chrome and navigate to a page that has Flash to make sure the install went as planned. After that open Flash Builder / FDT and change your browser settings and you should be good to go.

Posted via email from Matthew Sloan Wallace

August 11, 2010

FDT4 talk at Flash Camp Manchester 2010

Impressive first example. Starts around 2:30. Code Fast!

Posted via email from Matthew Sloan Wallace

August 6, 2010

HAXE Could not connect on Google install error Fix

I have been looking in to playing around with HAXE. I am using FDT a lot more now and they have a great plugin now for coding with HAXE. Musch to my surprise I kept running into this proxy error when trying to install on Mac OS X. Turns out it is a simple solution. See my forum post on the haxe site for the solution if you are running into the same issue.

The solution is to trash your /Library/Preferences/SystemConfiguration/preferences.plist file and reboot. After that the installer should run without an issue.

Posted via email from Matthew Sloan Wallace

How to always launch main application file in FDT Flex Project

If you are used to using Flash Builder and you use command + f11 to debug your app then you will most likely want to change the settings in eclipse if you start using FDT. By default FDT launches and compiles any open file that you are editing at the time. For Flex development this is most likely not the setting you want. Simply go to FDT > Preferences > Run/Debug > Launching > and under Launch Operations make sure Always Launch Previously Selected Application is selected.

Posted via email from Matthew Sloan Wallace

August 5, 2010

How to change FDT package explorer to look like Flash Builder’s

I started using FDT 4 today. I was asked to do some speaking on FDT so I figured I may need to get a little more familiar with it. Long story short. It is way easier to set up with existing Flex projects that you may have been coding with eclipse / Flash Builder. I was up and running pretty quick.

Read the rest of this entry »

August 2, 2010

File navigation and search for your fav text editors’ on the mac

Text editor development has been stagnant for several years. It’s time for developers to take the text editing experience forward into 2010!

PeepOpen is a file navigation application that works with TextMate, Coda, MacVim, and Emacs (Mac OS X Snow Leopard on 64-bit Intel required, support for other editors is coming soon). Search on both paths and filenames, and easily open the file in your text editor with a single keypress. Useful metadata helps you quickly choose the file you’re looking for.

I am really pressing to make Textmate my editor of choice for most all my coding so when I find little gems like this that will make that environment even better I jump at the chance to give them a try. This plugin is simply, badass.

Posted via email from Matthew Sloan Wallace

August 1, 2010

Autocomplete not working in the Flex Bundle for Textmate?

I am being very hard headed and determined that I am going to give Textmate a solid try for my actionscript and flex projects. Work on the bundle has been a little lacking but what has been developed so far is pretty great.

I have run into some slight issues but able to figure them out and get things set up pretty well and I have already dug in and started customizing the snippets to suit my needs.

One thing that I have not been able to fix, figure out or find a straight answer for is regarding working with MXML files. AutoComplete for Actionscript files seems to work great but I don’t seem to get the same result when I am editing Actionscript inside the script block in a MXML file.

I am hoping that someone that uses Textmate all the time could through some suggestions my way to help track down the issue. If I am in the actionscript code block and hit (option + esc) I get “no completion available” message.

Please feel free to join the discussion if you have any suggestions stackoverflow.com, or by all means leave a commit here in this post if you like.

Posted via email from Matthew Sloan Wallace

———————————-update————————————–

So I posted this “issue” on the textmate mailing list and I heard back from the creator of the flex bundle. Simon basically told me that he had not enabled autocomplete feature to the flex mxml script blocks yet. This is good to know that my shit wasn’t broke and he offered the following solution so that auto complete will work in mxml script blocks.

There’s no issues, I just haven’t got around to supporting autocompletion from within script blocks embedded in mxml. Although it seems to be pretty stable if you just go ahead and add the right scope (text.xml.mxml source.actionscript.3.embedded.mxml) to the command, as I have done in my dev branch:

http://github.com/simongregory/actionscript3-tmbundle/blob/sg/Commands/Auto%20Complete.tmCommand

You can do the same thing with the auto import command and it’ll add the import to the script block.

Cheers, Simon