Tuesday, February 8, 2011

Flex / ActionScript : Eclipse autocomplete stopped working

At some point if you're working with Eclipse autocomplete is going to stop working. I've tried hunting on google for a few hours and finally found a solution that worked from the comments in a blog.

You might have either a path to a SWC folder or have multiple SWC files in your project. Remove either all the SWC files from the folder and add them back one at a time, or remove the SWC files from the project and add them back one at a time. They might be causing a conflict that will result in autocomplete not functioning anymore.

Thursday, February 3, 2011

Things my wife made: valentines day cthulhu (shameless promotion)

My wife is a very creative person. She's recently started making stuffed cthulhu dolls. She's making a special type just in time for valentines day. Clicking on the picture will take you to her etsy store for more pictures and details :)

Friday, December 3, 2010

Resize An Existing .vdi Virtualbox Image – EASILY! By Gregory Milby

After installing Virtual Box and getting windows set up I realized the drive was way to small. I tried looking for an easy way to resize the drive but many of them required booting into linux and using a boot manager to copy the contents from one drive to the other.

I finally found a tutorial that uses a command line tool that comes with Virtual Box. Worked like a charm. Hope this saves you some time.

Resize An Existing .vdi Virtualbox Image – EASILY! By Gregory Milby

Tuesday, October 19, 2010

PHP: bCalendar - Free PHP calendar with international support

I've been working on a calendar class for awhile now and I've decided to release it to the public. I've refactored the class quite a bit so the names and methods make since. It's PHP5 compatible, very skinable, supports multiple languages and comes with documentation. You can download the project here.

Here is a quick example of how to set it up. You can view a running copy here.
// Update the language by using setLocal
//setlocale(LC_ALL, 'Japanese');

// Include the calendar class
include_once "classes/class.bCalendar.php";

// Create the class. The first option is the URL the navigation will use. The second is the path to the css file. The third is the date for the calendar to start on. The last determines which day the calendar will start on.
$obj_cal = new bCalendar("index.php","css/calStyle.css", null, 1);

####################
# Optional methods
####################
// Set the range of the date picker combobox
$obj_cal->setComboboxYearRange(2000,2010);

// Add a date to the calendar
$obj_cal->addEvent("10/19/2010", "This is a test event");

// Link a date on the calendar to a url
$obj_cal->linkDate("10/15/2010", "http://google.com");

// Change the behavior of the date picker to not snap to the current date
$obj_cal->setComboBoxToCurrentDate(false);

// Change the order of the calendar header
$obj_cal->setCalendarHeader(array(bCalendar::CAL_PREVIOUS_MONTH,
                                     bCalendar::CAL_MONTH_YEAR,
                                     bCalendar::CAL_SELECTOR,
                                     bCalendar::CAL_NEXT_MONTH));
####################
# Optional methods
####################

// Draw the calendar
$obj_cal->drawCalendar();

There are other properties that control the formatting of the month, year and day on the display. Those are outlined in the documentation under Variable Summary. If you have any questions of feedback please let me know in the comments. Also if you use it in a project let me know. It would be cool to see how people use it.

Friday, September 24, 2010

Flex : HTML tooltip made simple

I'm currently working on a project that required a fancy looking tooltip. Unfortunately the native tooltip object in Flex doesn't support htmltext. By accident I found out that a swc I was trying to use (Libagic) for a Edit-In-Place TextInput included a class you can use to override ToolTip called HTMLToolTip. You can read about it here. Right-click on the flex example at the bottom of his post to view the source.

Saturday, August 21, 2010

Android : Pixelpipe unable to post video to facebook

I ran into an odd issue where PixelPipe wouldn't let me upload a video from my phone, but it would still upload pictures. I tried reauthorizing the facebook pipe on their website but it didn't help. I tried creating a new pipe and uploading through that and it still didn't work. What finally fixed the issue is reauthorizing the facebook pipe on the phone through the app.

Open Pixelpipe and goto the settings tab. Press the "Edit pipes" button.


This will take you to the list of pipes on your account. Press the combobox for facebook and press "change settings".



Scroll to the bottom of this page and press "Reauthorize this account".



It will ask for your facebook username and password. You might get dumped to a white screen with nothing on it. If this happens press the "back" device button and you should return to the Settings tab. Go back to the facebook pipe and check to see that the pipe has access to your account.

Tuesday, July 13, 2010

Flex / ActionScript: Debugging causes Firefox to crash

After an update to Firefox 3.6.6 I've noticed that while debugging Flash it would crash and display "The Adobe Flash plugin has crashed". It turns out it's due to a new feature called "Hang Protection" that allows Flash to run in it's own sandbox and not take down the whole browser when/if it crashes. After 45 seconds the browser will close Flash because it thinks Flash has stopped responding.

Hang Protection can be turned off so debugging with Flex Builder / Flash Builder will work properly. Follow the directions at this url.

NOTE
Firefox 4 requires a change to a different property. Use about:config to alter the behind the scenes settings and look for dom.ipc.plugins.timeoutSecs and set it to -1.