Google wasn't very helpful with this, so here you go google:
/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home/lib/audio/
That's where you put any alternative soundbanks from places like
this (which is a site with surprisingly little help for Mac developers)
And yes, it's almost 1AM, and I'm fiddling around with JFugue when I should maybe be sleeping.
Sunday, September 27, 2009
Expression of gratitude is important
One teacher who had an enormous impact on my schooling is Professor Cynthia Johnston. She teaches Latin. She is a great teacher. Her creative idea of teaching with songs has made her lessons stick with me to this day. This made her a very good teacher. That, mixed with her professional patience, a friendly rapport and approachable demeanor made her great. All this is what I aspire to if and when I ever teach.
She only taught for a couple years while I was at Campbell High School; Georgia State University noticed how good she was and snatched her from us. I tried getting in touch with her last year to express my gratitude, but never got word back from Georgia State's foreign language department. If you or anyone you know has any information to her whereabouts, please pass along my sentiments.
She only taught for a couple years while I was at Campbell High School; Georgia State University noticed how good she was and snatched her from us. I tried getting in touch with her last year to express my gratitude, but never got word back from Georgia State's foreign language department. If you or anyone you know has any information to her whereabouts, please pass along my sentiments.
Friday, September 11, 2009
Flex Popups with Effects
Whew, making popups have transition effects in Flex was harder than I thought it'd be.
Still, got it working.
Here's how you do it:
===
main.mxml:
<?xml version="1.0" encoding="utf-8"?>
<mx:application mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:script>
<![CDATA[
import mx.managers.PopUpManager;
import mx.containers.TitleWindow;
public var swipe1:TitleWindow = new TitleWindow();
public var swipe2:TitleWindow = new TitleWindow();
public function popupClick():void{
var dialogClass:Class = Swipe2;
swipe2 = PopUpManager.createPopUp(this, dialogClass) as TitleWindow;
dialogClass = Swipe1;
swipe1 = PopUpManager.createPopUp(this, dialogClass) as TitleWindow;
}
]]>
</mx:Script>
<mx:button label="popup" click="popupClick()">
</mx:Application>
===
Swipe1.mxml:
<?xml version="1.0" encoding="utf-8"?>
<mx:TitleWindow xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" width="400" height="300"
showCloseButton="true" close="handleClose(event)"
backgroundColor="green"
move="adjustForMove()">
<mx:script>
<![CDATA[
import mx.events.EffectEvent;
import mx.effects.WipeRight;
import mx.core.Application;
import mx.events.CloseEvent;
import mx.managers.PopUpManager;
private function adjustForMove():void{
this.x=Application.application.swipe2.x;
this.y=Application.application.swipe2.y;
}
private function transitionClick():void{
var wipeOut:WipeRight = new WipeRight();
wipeOut.showTarget = false;
wipeOut.target = this;//Application.application.swipe1;
wipeOut.addEventListener(EffectEvent.EFFECT_END,wipeEndHandler);
Application.application.swipe2.visible = true;
wipeOut.stop();
wipeOut.play()
}
private function wipeEndHandler(e:EffectEvent):void{
this.visible = false;
}
private function handleClose(event:CloseEvent):void{
Application.application.swipe2.handleClose(null);
PopUpManager.removePopUp(this);
}
]]>
</mx:Script>
<mx:button label="transition to 2" click="transitionClick()">
</mx:TitleWindow>
===
Swipe2.mxml:
<?xml version="1.0" encoding="utf-8"?>
<mx:TitleWindow xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" width="400" height="300"
showCloseButton="true" close="handleClose(event)"
backgroundColor="red"
move="adjustForMove()">
<mx:script>
<![CDATA[
import mx.events.EffectEvent;
import mx.effects.WipeLeft;
import mx.core.Application;
import mx.events.CloseEvent;
import mx.managers.PopUpManager;
private function adjustForMove():void{
this.x=Application.application.swipe1.x;
this.y=Application.application.swipe1.y;
}
private function transitionClick():void{
var wipeOut:WipeLeft = new WipeLeft();
wipeOut.showTarget = false;
wipeOut.target = this;
wipeOut.addEventListener(EffectEvent.EFFECT_END,wipeEndHandler);
Application.application.swipe1.visible = true;
wipeOut.stop();
wipeOut.play()
}
private function wipeEndHandler(e:EffectEvent):void{
this.visible = false;
}
public function handleClose(event:CloseEvent):void{
PopUpManager.removePopUp(this);
}
]]>
</mx:Script>
<mx:button label="transition to 1" click="transitionClick()">
</mx:TitleWindow>
===
Let me know if you have any questions.
Still, got it working.
Here's how you do it:
===
main.mxml:
<?xml version="1.0" encoding="utf-8"?>
<mx:application mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:script>
<![CDATA[
import mx.managers.PopUpManager;
import mx.containers.TitleWindow;
public var swipe1:TitleWindow = new TitleWindow();
public var swipe2:TitleWindow = new TitleWindow();
public function popupClick():void{
var dialogClass:Class = Swipe2;
swipe2 = PopUpManager.createPopUp(this, dialogClass) as TitleWindow;
dialogClass = Swipe1;
swipe1 = PopUpManager.createPopUp(this, dialogClass) as TitleWindow;
}
]]>
</mx:Script>
<mx:button label="popup" click="popupClick()">
</mx:Application>
===
Swipe1.mxml:
<?xml version="1.0" encoding="utf-8"?>
<mx:TitleWindow xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" width="400" height="300"
showCloseButton="true" close="handleClose(event)"
backgroundColor="green"
move="adjustForMove()">
<mx:script>
<![CDATA[
import mx.events.EffectEvent;
import mx.effects.WipeRight;
import mx.core.Application;
import mx.events.CloseEvent;
import mx.managers.PopUpManager;
private function adjustForMove():void{
this.x=Application.application.swipe2.x;
this.y=Application.application.swipe2.y;
}
private function transitionClick():void{
var wipeOut:WipeRight = new WipeRight();
wipeOut.showTarget = false;
wipeOut.target = this;//Application.application.swipe1;
wipeOut.addEventListener(EffectEvent.EFFECT_END,wipeEndHandler);
Application.application.swipe2.visible = true;
wipeOut.stop();
wipeOut.play()
}
private function wipeEndHandler(e:EffectEvent):void{
this.visible = false;
}
private function handleClose(event:CloseEvent):void{
Application.application.swipe2.handleClose(null);
PopUpManager.removePopUp(this);
}
]]>
</mx:Script>
<mx:button label="transition to 2" click="transitionClick()">
</mx:TitleWindow>
===
Swipe2.mxml:
<?xml version="1.0" encoding="utf-8"?>
<mx:TitleWindow xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" width="400" height="300"
showCloseButton="true" close="handleClose(event)"
backgroundColor="red"
move="adjustForMove()">
<mx:script>
<![CDATA[
import mx.events.EffectEvent;
import mx.effects.WipeLeft;
import mx.core.Application;
import mx.events.CloseEvent;
import mx.managers.PopUpManager;
private function adjustForMove():void{
this.x=Application.application.swipe1.x;
this.y=Application.application.swipe1.y;
}
private function transitionClick():void{
var wipeOut:WipeLeft = new WipeLeft();
wipeOut.showTarget = false;
wipeOut.target = this;
wipeOut.addEventListener(EffectEvent.EFFECT_END,wipeEndHandler);
Application.application.swipe1.visible = true;
wipeOut.stop();
wipeOut.play()
}
private function wipeEndHandler(e:EffectEvent):void{
this.visible = false;
}
public function handleClose(event:CloseEvent):void{
PopUpManager.removePopUp(this);
}
]]>
</mx:Script>
<mx:button label="transition to 1" click="transitionClick()">
</mx:TitleWindow>
===
Let me know if you have any questions.
Wednesday, August 12, 2009
Free cat to a good home

Free cat, male, 10-14 years old, neutered, declawed (by previous owner), misty dark gray.
I hate to have to give him away, but I'm unemployed and can no longer afford to feed him.
His name is Moses.
Please be good to him.
He's a good cat.
Includes litter box, cat carrier, a little catnip, cat litter, and food.

Friday, August 7, 2009
Death to cable internet monopolies
Clear.com: This is the market at work, and it is a beautiful thing.
Seriously, clear.com, thank you.
For far too long I was trapped into Charter's uncompetitive pricing, unreliable connectivity and craptacular customer service. Why? I don't recall exactly how they phrased it, but I think it was something along the lines of "Because we're the only game in town, so screw you, that's why."
No more.
IF you've already switched FROM whatever local cable company has you locked in for internet providing TO clear.com, rock on.
If not, good, today is your lucky day.
You can switch to clear.com's wifi internet - no need for a phone line or frigging coax drilling holes in your house every time you reestablish service.
You just plug in their wifi modem and away you go (provided you're in one of the cities they're in, like Atlanta, Las Vegas or Portland. Also maybe in Texas, Idaho and Washington).
It is so sweet. I'm happy with it, and not just because they're not Charter.
AND with my referral code - r74fy5 - you get 10$ worth of music downloads. (And I get something too- of course I'm not posting this for free.)
Enjoy!
Seriously, clear.com, thank you.
For far too long I was trapped into Charter's uncompetitive pricing, unreliable connectivity and craptacular customer service. Why? I don't recall exactly how they phrased it, but I think it was something along the lines of "Because we're the only game in town, so screw you, that's why."
No more.
IF you've already switched FROM whatever local cable company has you locked in for internet providing TO clear.com, rock on.
If not, good, today is your lucky day.
You can switch to clear.com's wifi internet - no need for a phone line or frigging coax drilling holes in your house every time you reestablish service.
You just plug in their wifi modem and away you go (provided you're in one of the cities they're in, like Atlanta, Las Vegas or Portland. Also maybe in Texas, Idaho and Washington).
It is so sweet. I'm happy with it, and not just because they're not Charter.
AND with my referral code - r74fy5 - you get 10$ worth of music downloads. (And I get something too- of course I'm not posting this for free.)
Enjoy!
Monday, July 20, 2009
Notary Public
Any document notarized.
1st page: $5; each additional page: $1.
We'll come to you - very reasonable travel fee.
7 days a week, flexible hours.
All emails answered promptly.
Contact us for an appointment today.
1st page: $5; each additional page: $1.
We'll come to you - very reasonable travel fee.
7 days a week, flexible hours.
All emails answered promptly.
Contact us for an appointment today.
Monday, June 29, 2009
For a friend
Two non-programming posts in one day?!
Yeah, but it's for a good cause:
A friend is in need of $ to make rent by Friday.
Click here to go the donate button.
Thanks!
Yeah, but it's for a good cause:
A friend is in need of $ to make rent by Friday.
Click here to go the donate button.
Thanks!
Subscribe to:
Posts (Atom)