You are currently browsing the Batista R. Harahap posts tagged: urbanesia


Windows 8 RTM & Visual Studio 2012 – Urbanesia on Windows 8

My first experience with Hello Worlds was through an old 8088XT that shows up a primitive BASIC IDE to hack on codes. Well now with the Urbanesia team and also past members of the team, we’ve created a native Windows 8 app for Urbanesia. We were in it from the start when Windows 8 was seeded as a Developer Preview. Our first IDE was Visual Studio 11 Beta that is now Visual Studio 2012.

Urbanesia is a BizSpark member and therefore, we gained benefits such as being the first to enjoy Microsoft products that has yet been released publicly. Our MSDN account enables us to download almost all of Microsoft’s commercial, development and enterprise products to be used without any complicated and expensive expenses for 3 years. I downloaded Windows 8 Pro and Visual Studio 2012 Ultimate.

Our Windows 8 Bootcamp back in August taught us the core of coding for Windows 8. It’s relatively easy and stress free if you’re accustomed to Open Source flavours previously. We created a basic application in a few hours and learned how to effectively structure your web services data. Gained all of that knowledge really quick and mostly painless.

Windows 8 is now approaching its launch date and we were given an ARM tablet by Microsoft installed with WinRT to test our development efforts. To be honest, the tablet is great but we didn’t know what to do with it. We used it mostly to test our upcoming iteration of Urbanesia’s frontend web face. I got a Windows laptop with a really low spec and decided to install Windows 8 there and do some development work for our app.

Let me tell you this, to develop for Windows 8, you must install Visual Studio 2012 on a Windows 8 device. Trying to develop for Windows 8 on versions less than Windows 8 will give you a friendly warning that you’re fucked. This friendly warning made me download a Windows 8 ISO image from Microsoft. It turns out that our MSDN subscription was loaded with Windows 8 RTM and I followed through.

I installed Windows 8 on that crappy Windows laptop without any trouble and finding the performance of the laptop acceptable when I logged in. It wasn’t the same case with the Windows 7 installation. Microsoft did a great job with their new OS, really.

When Visual Studio 2012 was installed, I wasn’t expecting any trouble with our source code, but nothing great is produced without first encountering problems right? To keep it simple, the application didn’t work at all. Spent the better part of my Sunday to scour Google for answers. Before the Manchester United game (that they won), I can’t find what’s not working.

FYI, we are coding in C# for our Windows 8 application.

After the game, I was gonna give up but then inspiration usually comes when you’re about to give up. I hacked my way again into the source code and below is a list of gotchas you should pay attention when you’re gonna convert older Visual Studio 11 Beta projects to a Visual Studio 12 project:

  • After you realize that you’re fucked, close the solution for the project you’re working and create another project.
  • Close that new project you’ve just created and open up the primary project.
  • Copy paste your Common\StandardStyles.xaml file somewhere.
  • Open up explorer and navigate your way to the new project.
  • Go to the Common folder and copy paste everything to your primary project’s Common folder.
  • Now open up the newly pasted Common\StandardStyles.xaml and copy paste all of your previously created custom DataTemplate from your old copy.
  • Go to Shair Raiten’s excellent guide to upgrade Metro apps from Beta to RC here.
  • As you can see, there are a number of changes to naming conventions for classes, XAML styles and static class methods. For each XAML style items, do a Find/Replace, yes it sucks but it works. The same goes to classes and static class methods if you use any in your codes.
  • Clean your solution and be hopeful. Run it now.

So what does this taught me? Microsoft is getting it right over time but they don’t really like early adopters. They make us bleed with the current BREAKING changes with Visual Studio 2012 and offering us only white papers that I don’t like to read. This is done with even the Microsoft Indonesia dev team is not aware of. A sad fact but it’s true.

However, I got help from Pak Risman, Microsoft Indonesia’s Developer & Platform Director. He taught me the right way to do things with codes, this is something I’d understand.

To wrap things up, I’ll be submitting the app to Windows Store soon and hopefully satisfy the QA team over at Microsoft. Cheers!

Urbanesia – Open Source & Microsoft

Today I was a speaker at Microsoft’s SQL on PHP event and I’m displaying the slides for the presentation below. It was a fun moment of sharing experiences, laughters and geekdom.

OAUTHnesia for Windows 8 Metro Apps C#

The last few days at Bandung was spent hacking a “proof of concept” application for Windows 8 Metro without using Urbanesia’s OAUTHnesia library. Now the library is done but still needs a few tweaks. All updates of the codes will be live in its Github Gist.

Without further ado, here’s the gist:
Error when loading gists from http://gist.github.com/.

Jajan for Android Open Sourced at Github

Jajan for Android is now Open Sourced at Github a few hours ago. I personally hope that by looking at the source code provided, more and more developers will sync to the tune of how easy it is to create an Android application. I wrote most of the codes 7 August 2011 in under 4 hours. Using ready made libraries already available within Android and also other third party libraries, it helped to ease the complications.

The source code is NOT perfect, there’s a lot of places where it could be optimized aggressively even more. More of the optimization will most definitely lie within the ListView. At any case, it will load 100 search results, you can make this endless by loading an incremental of your choice.

The codes are available at https://github.com/tistaharahap/jajan/.

Excerpts from the README shown below:

JAJAN by Urbanesia
==================

Jajan is a simple app to showcase Urbanesia's API v1.0 and how you can extend for your own apps.

As of this writing, the initial commit is at sync with Jajan's binaries at Android Market which is version 1.1.1. Upcoming Jajan versions will NOT be published from the codebase here in Github, this repository is treated as an example for future third party apps by you.

Jajan is available in multiple platforms, go to , if your device is one of the supported platform, it will redirect to your device's application store or it may have you download a binary for your platform.


photo of Batista Batista R Harahap [email protected]
Jl. Bango II/29C, Pondok Labu
Cilandak , DKI Jakarta , 12450 Indonesia
62817847023

This hCard created with the hCard creator.