Thursday, April 25, 2013

Flash Builder 4.5 Won't Open

The most frustrating part of being a programmer is keeping up with my own legacy code. I used to do a lot of flash and flex projects before apple killed flash. Now I find myself needing to go back and update something on an old site and it's tough to properly maintain my work environment after switching computers a couple of times.

First Flash Builder 4.5 wouldn't open on my new machine.
After a ton of googling, and trying all kinds of things including editing the registry, I found the simple answer.
All I had to do was change the name of the workspace folder, and viola, Flash Builder opened.

Then I run into my next headache, the system couldn't find the old fds.swc file that used to be in the C:/coldfusion9/wwwroot/WEB-INF/flex/lib folder.
That was a nightmare finding that old file. I think I'll put it online somewhere in case anyone needs it.

Then the next headache was upgrading from the old flash sdk to the new one. I couldn't remember which sdk I used on the old code, so I had to update it before the files would compile.

Then I had to change some code before I could compile. I got the error: 'application' has been deprecated since 4.0.  Please use 'FlexGlobals.topLevelApplication'."

So on that I had to replace every "Application.application" reference in your project with "FlexGlobals.topLevelApplication". Also had to replace the "import mx.core.Application" with "import mx.core.FlexGlobals".

Altogether I wasted like half a day on this, and the setup is still not complete. Before I was running my flash remoting out of the C:/ColdFusion9/wwwroot folder and using a port number. Now I have everything running through IIS7 and the physical folder is now C:/inetpub/wwwroot so I still have to change the destination for my remoting. I'm not even sure what to change this to. I put the CFIDE folder into the c:/inetpub/wwwroot folder but I think ColdFusion still "lives" at c:/ColdFusion9/ (I'll not sure about that) and then the remoting is expecting a server name/port number in the remoting-config.xml, so I have to do a little research to figure this out. But I'm writing this down with the hopes that somebody out there knows the answer to my quandary.

Wednesday, April 10, 2013

iPhone Setup with Gmail, Google Contacts & Google Calendar

I just switched to an iPhone 4 (yes I am behind the times) and had a bit of trouble getting my gmail, google contacts and google calendar set up.

Here is the situation:
If you go to Settings > Mail, Contacts, Calendars > Add account > and choose gmail, you are only able to sync your email, calendar and notes. Your contacts are no where to be found.
I googled it and found a bunch of posts that recommended setting it up in an exchange account, so I tried that, only to find that as of Jan. 30th, 2013, Google has disabled sync on the exchange accounts. See this press release from google: http://support.google.com/a/bin/answer.py?hl=en&answer=2716936

So the only way to have it all is to add each one manually. There is a lot of conflicting information out there, so this is what worked for me:

-----------------------------------------
Setting up Gmail

Go to Setup >  Mail, Contacts Calendars > Add Account > Other

Choose Add Mail Account

Enter your:
Name
Email
Password
Description

click next

Make sure you choose the IMAP button

fill out all information.
Your incoming Mail Server host name is: imap.gmail.com
Your outgoing Mail server host name is: smtp.gmail.com

--------------------

Setting up Google Contacts

Sidenote: Google kind of hides contacts from you in gmail, so to see them click the down error next to the big red Gmail in the upper left hand corner. 

On your iphone,
Go to Setup > Mail, Contacts Calendars > Add Account > Other

Choose Add CardDAV account

Server: google.com
User Name: this is your gmail email address
Password: your gmail password
Description: Anything you want

Hit Done

The trick to this is you will get an error that it can't use SSL. Click Cancel on this error and then click the advanced tab. Make sure Use SSL is ON and set your port to 443

and then click done.
It should authenticate then and your contacts will now be synced.

-----------------------

Setting up your Google Calendar is exactly the same as setting up your Contacts, except you will choose to add a CalDAV account instead of a CardDAV account

Go to Setup >  Mail, Contacts Calendars > Add Account > Other

Choose to Add a CalDAV Account

Server: google.com
User Name: this is your gmail email address
Password: your gmail password
Description: Anything you want
Advanced Settings:
SSL: ON
Port: 443
Account URL: (this will be generated for you) but if you need to enter it for any reason it is https://www.google.com/calendar/dav/yourgoogleemailaccount/user

You have to replace your gmail email address in the URL and this is important: Your ampersand sign has to be URL friendly so use %40 instead of @

--------------------------