Archive for June, 2008

Fireworks

Monday, June 30th, 2008

Daphyn had been bugging me for awhile to get a new digital camera for her (since I loathe playing photographer at family events) and I kept pushing back because Canon strayed away from pocket cameras with manual settings. When her birthday came around earlier this month I almost bought her a Panasonic Lumix–but discovered the Canon SD 790 IS.

It seems like there’s been fireworks going off every night for the past few nights (either Jersey City or Battery Park), and I took the opportunity to borrow my wife’s new camera and take it for a test drive.

Sadly, RAW settings have been made exclusive to SLRs since I last used a pocket camera. I also found myself bumbling around the controls in the dark while taking the above shot. Overall, though, I’m impressed with how far these small devices have come: the digital macro is a nice touch and the accelerometer that automatically rotates previously shot photos is nice.

James Bond

Monday, June 30th, 2008

A Fix for Copy and Paste from Mac Word 2008 to Dreamweaver CS3

Tuesday, June 24th, 2008

There’s a well-documented bug regarding copy and paste between Microsoft Word 2008 and Adobe Dreamweaver CS3. Unfortunately, pasting into Dreamweaver’s WYSIWYG mode doesn’t generate the simple XHTML markup as it has in the past.

Personally, I can’t deal with the nasty markup Word generates when saving to HTML. No official fix has been released, but I’ve found a temporary solution–paste Word content into an HTML e-mail draft of Microsoft Entourage 2008. Then copy and paste that into Dreamweaver CS3. I’m getting a few non-breaking spaces and a few <u> tags, but otherwise, this works much better.

Invitation

Monday, June 23rd, 2008

FlashCodersNY Flash Lite Links

Friday, June 20th, 2008

Thanks to those of you that came out to Wednesday’s FlashCodersNY meeting. As promised, here’s the outline with links of what I covered at the meeting.

  1. The First Step: Choosing a Target Device
  2. Creating a Flash Lite Application

  3. Flash Lite Memory Issues
    • Garbage Collection runs a little differently
    • Runs every 60 seconds or when application memory increases by 20%
    • Use fscommand2(“GetFreePlayerMemory”) to check memory on specific device
    • Garbage collection can’t be triggered
    • Explanation of Dynamic Heap
    • Inherent memory leak with attach/removal of MovieClips
    • Memory Management by the book
    • Chumby has 8 MB of memory, plus widget refresh
  4. Optimization Techniques – a Few Tips

    • Design
      • Determine target hardware
      • Minimize font usage
      • Use _sans
      • Avoid bold, italic
      • Don’t embed fonts—consider bitmaps
      • Find a balance between bitmaps and vector
      • Don’t compress movies
      • 12 – 15 fps
    • Actionscript
      • Simplify your code
      • delete or null objects no longer used. No
        need to do this on instance/method level.
      • Clear listeners
      • Condense package structure
      • Avoid inheritance
      • Minimize Math, String parsing
      • Test on actual device often!
  5. Deployment

  6. Resources

  7. Flash + Mobile’s Future
    • iPhone
    • Open Screen Project
    • Adobe AIR

Blackjack4All WRT Widget Flash Lite

Wednesday, June 18th, 2008

I just posted Blackjack4All as a Web Runtime Widget for Nokia S60 devices as well as the source code under BSD license. It’s by no means 100% bug free, but served as a fun little learning exercise. Take a look.

If you download/run/play with the code and come across bugs please inform me so that I can correct and revise the files (better yet, fix them and share!).

I should also mention some of the challenges with developing in the WRT format. In the beginning, I was seeking a way to easily deploy my application to end users, didn’t want to spend the money on a 3rd party application like SWF2Go, and wasn’t satisfied with Adobe’s article on SIS installers or using Carbide.

I based my development on this post on Nokia’s Wiki and soon discovered several issues with the directions contained here. For one thing, the example provided doesn’t have any interactivity, and if you attempt to embed the SWF into the MainHTML page I found that the SWF has trouble receiving focus. This nearly made me consider doing some sort of JavaScript-to-SWF communication similar to this post.

According to the Wiki article, an alternative method to embedding the SWF is to modify the info.plist manifest file and set the MainHTML key as the SWF file itself. The problem I discovered when attempting this technique is that Symbian doesn’t interpret the SWF file properly and instead presents a blank white screen with an arrow cursor (as is discussed here). Setting the “MainHTML” key as an SWF file didn’t sound right to me, and the documentation of this Nokia S60 Widgets PDF reinforces what I thought. This PDF outlines the supported properties of the info.plist and also mentions that an HTML file is required.

Ultimately, I concluded that the best way to both solve the focus issue and satisfy the HTML requirement was to create a MainHTML file in my widget and place a meta-refresh tag that redirects to the SWF file. If you want to see how this is done, download the BlackJack4All widget, rename the extension to .zip and decompress the package.

Hopefully, some of you will catch this post and it’ll save you some time.

Yo-Yo

Friday, June 13th, 2008

Olde Uptown Harrisburg and Midtown’s Revitalization

Tuesday, June 3rd, 2008

A few weeks ago I commented on a redevelopment effort taking place in Midtown Harrisburg and was really surprised by the responses of Beyond Second members. I decided to see firsthand the revitalization effort taking place, but that didn’t sway my opinion–I still believe there’s a better approach to rebuilding Midtown Harrisburg.

Olde Uptown Harrisburg

Yes, the new buildings look nicer than the distressed homes that inhabited the land before them (Sadly, the alternate brick coloring hides the architecturally-starved cookie cutter appearance of these buildings), but simply replacing what’s old with what’s essentially the same–a series of row homes–doesn’t combat the problem of urban blight. Frankly, I wouldn’t be surprised if the previous developers believed an overhaul was the solution to crime and decay, too. Sadly, I see no evidence that these buildings won’t suffer the same fate as their predecessors.

Replacing entire neighborhoods of old homes with new homes eliminates diversity, which is essential to city living. Brand new homes alienate families and homeowners (often the previous residents) who cannot afford such new, state-of-the-art living. This consequently forces these lower-income families to migrate to other parts of the city. Because these families are more concerned with “getting out of the slums” than correcting their environment, the revitalization process is inevitably forced to recur somewhere else.

Harrisburg needs more diversification. For starters, it needs commercial zoning mixed with residential zoning. This creates foot traffic, which lends itself to natural surveillance. This foot traffic–people carrying their groceries home, grabbing some java at the coffee shop, visiting the art gallery, etc. generates potential witnesses to street occurrences and creates natural crime deterrents. Furthermore, the mixture of commercial and residential in the same area will attract people seeking the urban lifestyle, something that these current row homes and the surrounding suburbs can’t provide.

Another form of diversification can come from a mixture of new and older, refurbished homes. After visiting the site, I grew concerned for the buildings across the street, as “WCI Partners Coming Soon” signs made me assume that a wrecking ball was due for them, too. Fortunately, from what I’ve read off of their WCI Partners site, they intend to restore 60+ buildings in the surrounding area. This is definitely a step in the right direction, as it reinforces architectural diversity and heritage in the neighborhood. Having older homes and landmarks often encourages owners to take pride/care for their homes, and permits homeowners of a wider income range to reside in the same neighborhood.

I realize that I’m not entirely familiar with all of the details regarding Midtown’s revitalization (the Powers & Associates Midtown Master Plan only paints broad strokes) and that mixed zoning is probably more expensive to develop than Euclidean zoning, but I’m confident that more of the same isn’t the solution.

It’s good to hear about the planned addition of a public park adjacent to the Evangelical Press Building. I’m also eager to see what becomes of the Midtown Cinema area on Riley Street, as I’ve read it’s being reinvisioned as more of a commercial marketplace. Lastly, I’d also love to see a business incubator (like Murata) forcing small businesses into Harrisburg and hopefully proving firsthand the benefits of a city-based business compared to a suburban one. I guess time will tell.

Lost in Babble 2008-06-03 10:12:47

Tuesday, June 3rd, 2008

My Second Wikipedia Entry . . .

Monday, June 2nd, 2008

Phil HughesI’ve struck again, this time posting on Wikipedia a picture of Phil Hughes during his last 2008 start (prior to his trip to the DL). I had a few action shots but figured I’d post something a little different this time. Who knows, maybe I’ll replace it if I ever sit on the third base
side (since he’s a righty) or if I treat myself to Box seats (doubtful, considering NYC prices).

I like Hughes, and, despite the rough start, think it was still the smart move to not trade him for Santana.

I definitely think it’s cool he’s got the guts to maintain a blog through the season; it provides a unique perspective of the game for the fans. I will say I’m surprised superstition hasn’t set in with the number change from #65 to #34, and I also wonder if the youngster pitchers (Joba, Ian, etc., who from what I read are gamers) think of playing themselves in MLB 2K8.


Bad Behavior has blocked 349 access attempts in the last 7 days.