nbilyk's blog

Moga Review

At E3 today I got my hands on a MOGA. This is a gamepad device for Android phones or tablets. I've opened it up to give it a whirl.


Read more...

Is Flash dead?

I've been developing software on the web for 15 years now, using a lot of technologies to satisfy the needs of an N-tiered application. I have a lot of experience in Flash, JavaScript, HTML, & CSS for the front-end, PHP, Java, C#, and ColdFusion for the back-end, and MySQL and PostgreSQL for database persistence. I'm saying this not to be the hero in my own story, but because I want it to be clear that I do not have a religion, I do not love any technology because "that's what I grew up believing". Each language and platform has their own pros and cons.


Read more...

Logic tables

When you have one condition dependent on several other variable conditions, it helps to create a logic table in order to keep your code clean and race-condition free.
The conventional definition of a logic (or truth) table is just a grid defining your inputs and expected outputs. For the purposes of programming, your logic table doesn't need to be a grid that grows based on the number of permutations, it could be a sequence of conditionals, but either way, you should represent your inputs and outputs in a single function.

Example:


Read more...

Nexus 7 Debugging in Windows 7

To get your nexus 7 to work with debugging in windows 7,

1. Enable debug mode on your Nexus 7. To do this, go to Settings, Developer options, and check Enable Debug mode.

2. Plug in the device via USB to your computer.

3. Slide down the notifications bar and Click the notification that says "Connected as a media device"

4. Select Camera (PTP)


Read more...

wmode direct

Flash used to have a major vertical tearing problem, which seems to have gone away. I'm posting this so I can experiment with different machines to see if Adobe improved something, or if machines have gotten better and the problem went away on its own.

Basically the reproduction was that if you animated a vertical bar across the screen, it would tear heavily as it animated.

or in air:

direct

http://www.nbilyk.com/examples/wmode/direct.html
http://www.nbilyk.com/examples/wmode/cpu.html


Read more...

Adobe Cirrus

For my Cirrus Flex Camp presentation on Monday, here are links to the things we will be covering:

Cirrus Developer Key:
http://labs.adobe.com/technologies/cirrus/

CirrusLib:
http://code.google.com/p/cirrus/

Advanced:

Direct Routing:
http://www.flashrealtime.com/directed-routing-explained-flash-p2p/

Multicast Streaming:
http://www.flashrealtime.com/tutorial-multicast-streaming-in-flash-playe...


Read more...

How to create a Singleton in Actionscript

package {
 
	public class MySingleton {
 
		private static var _instance:MySingleton;
 
 
		public function MySingleton(s:SingletonEnforcer) {
			if (s == null) throw new Error("Singleton, use MySingleton.instance");
		}
 
		public static function get instance():MySingleton {
			if (_instance == null) _instance = new MySingleton(new SingletonEnforcer());
			return _instance;
		}
	}
}
class SingletonEnforcer {}

Then use MySingleton.instance to retrieve the singleton instance.

Q: What does SingletonEnforcer do?


Read more...

Pie Game Mobile!

I just posted the Pie Game to the android marketplace and the blackberry marketplace. I made it in response to blackberry's offer of giving away free Playbook tablets to developers that submit applications to their marketplace.

If you haven't heard of it:
http://devblog.blackberry.com/2011/01/free-blackberry-playbook-tablet-of...

The steps were pretty simple for AIR.

  1. Download Flash Builder Burrito

Read more...

Vector initialization syntax

With the flex 4.0 mxmlc compiler, there is new syntax for initializing vectors in actionscript.

The old way:

  var t:Vector.<String> = new Vector.<String>();
  t.push("Element");

Now supported:

  var t:Vector.<String> = new <String>["Element"];


Read more...

Flex camp, April 5th

I will be presenting at MN.swf Camp this year. It's the best flex conference around for less than $50. Looking forward to it!

Date: Monday, April 5, 2010
Time: 9:30am - 4:30pm
Location: Minneapolis Central Library, 300 Nicollet Mall, Minneapolis, MN 55401
Cost: $40

Optimizing Flex Applications


Read more...
Syndicate content