Ran into quite some problems … not finding debug tokens to missing author.p12 files were just some of them.
To much dismay, suddenly all the docs links I was referring to on the developer url on blackberry site changed to Webworks 2.0 (Yay! RIM released BB Webworks 2.0 based on Apache cordova)

Wasn’t much “yay!” for me as I spent over a week figuring out why my debug token wasnt generating or why I couldn’t package a simple bar file… all in between making trips to hospital for I was under treatment for typhoid (still under medicine as we speak).

rants on twitter

more rants

Anyway, I was super pissed… shot couple of mails and tweets and thankfully Erik (@WaterlooErik) mailed back quick…. and with quite a sensible reply. Very kind of him 🙂

3 lines from his email got me the root of the problem

When testing with the new WebWorks 2.0 SDK, you should actually only have to run the following command when your device is connected: webworks run

This will automatically generate a debug token for you if need be, upload it to the device, and then deploy your project in debug mode to the device.

Have you registered your BBID code signing keys and generated a new author.p12 file already? (If you are using your old CSJ code signing keys, that may be where the issue is coming from.)

My Problems:
1. What he mentioned as “automatically generate a debug token for you” wasn’t happening.

2. So, I was trying everything manually to create those debug tokens… using csj files with the old webworks debugtokenrequest commands and csk with new debugtokenrequest… wait.. in short I had both stuff installed in a big mess.

3. I was using Webworks setup inside a Windows VM running on a Linux host.. so the device was connected via host to guest.. and somehow that pretty much doesnt work. “No Blackberry device found” 🙂

I definitely didn’t want to dual boot my laptop with windows for this (although I could have used my desktop .. I wanted to have this on the move)

\\ Get Nodejs from Chris’s ppa – there is a nice updated build for lucid lynx, so didn’t have to compile from sourcekrish@shenron: ~$ sudo add-apt-repository ppa:chris-lea/node.js
\\Accept the freaking ppa adding warning 🙂

Go to that localhost:3123 again, and try… it worked this time 🙂
Was able to create the project.

– CONNECT Your Blackberry on LINUX

I was using z10 dev alpha B.. you might have a z30.

Well, this doesnt work so seamlessly as it does on Windows, aka.. it doesnt connect via usb as a recognizable device.. this is the reason I couldn’t forward the usbdevice into my VirtualMachine windows.

2. Connecting via USB on Linux
– Got to Settings -> Storage and Access
– Set USB Connections to “Connect to Windows” or “Connect to Mac” instead of the default “Auto detect”
Now you’ll see the device will be available as a network connection on your network-manager
Note: I renamed it to BBz10 to remember so.

BlackBerry z10 in dev mode on Linux as a usb network.

3. Test the connection
– You should be able to ping your z10 via its dev mode IP (169.254.0.1 or whatever you set it to)

– Try to BUILD test WebWorks Project

Tried to build and install the project via UI
– FAILED 😦

Debug Token, Where are Thou? 😦

What the!!! Same old error. Now I dont want to use that blackberry-debugtokenrequest script again?
Oh wait, Remember Erik said, “When testing with the new WebWorks 2.0 SDK, you should actually only have to run the following command when your device is connected: webworks run”

Let’s try that

– Creating a DEBUG TOKEN

\\ Go to a project directorykrish@shenron:/opt/BadToyz-BB10WebWorks$ cd ~/WebWorks Projects/test1
\\ Run webworks run.
\\ This will ask you for your DEVICEPASSWORD (which you entered when switching on debug mode)
\\ And your KEYSTOREPASSWORD (which you set while generating bbidtoken.csk)
\\ If you did not generate bbidtoken.csk, please do it via
\\ http://developer.blackberry.com/codesigningkrish@shenron:~/WebWorks Projects/test1$ webworks run[ERROR] The Specified CSK password is not valid.

At this point I could see fumes out of my head. This was back to square one. :X
Atleast, it shows MYDEVICEPIN correctly, so unlike earlier, it is able to connect to my device this time 🙂

Did I mention I was making trips to hospital the whole last week? and then working late nights (probably half drowsy) on this with Webworks 1.x
So I thought, what the hell.. lets just try to ensure we have all files correct

– Files you need under ~/.rim or your /home/user/.rim

You’ll need the bbidtoken.csk and author.p12
I backed up my author.p12 from the windows VM from “%HOMEPATH%\AppData\Local\Research In Motion”
and put in under “~/.rim”

I’m pretty sure I had to generate that author.p12 on Windows. Just can’t remember at the moment.

Yippie! Finally… webwork run also deploys if the app is connected.
Also it created debug keys and pushed it to the device. I could see that on the “Settings -> Security and Privacy -> Development Mode” screen.

Huaaaaaaa!!! 🙂
You’ll see your the app fire up on your phone screen and also an app icon installed 😀

Your test WebWorks 2.0 app

Hope this helps someone 🙂

You can tweet a thanks to @WaterlooErik , @badtoyz and may be me if you want to let me know that this worked for you! 🙂
Or if it didn’t, feel free to either tweet to me @srikrishnadas and/or leave your error in comments 😀
Thanks to ダニエル for his nice write up on prereqs for the old Webworks. It did help 🙂 I wish I knew his twitter id to include in the above thank list 😀

An hour past midnight now.. time for BattleField 😉

Btw, You can LIKE our game page – https://facebook.com/HungryBaka to keep updated on the upcoming fun adventure non-endless jumper .. the story of The World’s Hungriest Frog – “Baka” 🙂

Just about 48 hours ago, news went viral about the latest assault on Microsoft’s India store website.

As the ‘EvilShadow Team’ probably flex their legs and people, blogs, news guys boo-haa MS for being so naive on storing passwords in plain text, I was thinking ‘wait-a-sec, MS has been through plain text mistake earlier too.. where they really so careless?’

I try to visit microsoftstore.co.in and get greeted by a message like this:

microsoftstore.co.in

Notice how it says ‘Microsoft is working on it’ rather than saying ‘We are..’
And bingo, that reminds me that the store and website is not operated by Microsoft but ‘Quasar Media’!

How do I know?
I remember applying ‘social engineering’ on their customer support while reasoning why prices of Xbox accessories were different on ‘http://www.xbox.com/en-IN&#8217; vs ‘microsoftstore.co.in’ .. I got more insider details too but it isn’t relevant in this post.

Clearly, it was an outsourced operation and ‘Quasar Media’ has been loose about their security. I’m sure the top brass is getting a scream from MS.

What should you be doing?
If you do have a microsoftstore.co.in login (or should I say ‘if you did’ – past-tense), and if it is important to you (not the id, but the other creamy information you’ve given along with signup), then please go now and change your password ( obviously, when the site is up ).

I do not remember having a store id, although first thing I did when I heard this news was to change my XBL password, just in case it was an SSO.
Anyone remembers if store login was an SSO? If it was, you better get on with changing any of your MS/related service passwords…. live.com, msn, XBL, azure? to name a few.

I did too, but /me thinks it was not an SSO. If it was, then it would be a more serious shit and Microsoft would have been calling up their media friends by now.

And finally, word of advice: Do not allow browser to save password of any site that you’ll use your creditcard/banking information.. includes netbanking login, movie ticket sites, online stores such as microsoftstore.co.in :), XBL. p’uh’lease do not use same passwords for your email id and other websites.
I’m sure most of these guys have: (thanks to engadget.com for this image)