krish – 起死回生 [Wake up from death & return to life.]

December 11, 2013

Blackberry WebWorks 2.0 on Linux!

Okay!, so first some history.. was working with Webworks 1.x to get my game Baka – The World’s Hungriest Frog packaged for Blackberry 10.x platform.

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

rants on twitter

more rants

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)

Then I found this https://github.com/badtoyz/BB10-WebWorks-SDK-2.0.0.54-Beta

Decided to do a clean install on my laptop/Ubuntu host … so here I take you through how it was done along with some pitfalls.

 

 

INSTALLING WebWorks 2.0 BETA on Ubuntu Linux:

– PREREQUISITES

\\ Install Git, ia32-libs, Java Runtime Environment
krish@shenron:~$ sudo apt-get install git ia32-libs openjdk-6-jre

\\ Update Repo and install python stuff and build tools
krish@shenron: ~$ sudo apt-get update
krish@shenron: ~$ sudo apt-get install python-software-properties python g++ make

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

\\Install Nodejs
krish@shenron: ~$ sudo apt-get update; sudo apt-get install nodejs

\\Install Cordova via npm
\\ Note: I didn’t have to install npm via my package manager. Infact it apt-cache policy npm shows its not installed. Probably comes packaged with nodejs
krish@shenron: ~$ sudo npm install -g cordova


– WebWorks 2.0 Beta

\\ Get from Mike’s (@badtoyz) repo
krish@shenron:/opt$   git clone https://github.com/badtoyz/BB10-WebWorks-SDK-2.0.0.54-Beta.git
krish@shenron:/opt$   mv BB10-WebWorks-SDK-2.0.0.54-Beta    BadToyz-BB10WebWorks

 

– Start UI and Try to create a Test Project

startui

Open a tab on your browser to http://localhost:3123, this should give you WebWorks 2.0 UI
Try creating a project and Build it.

For me, it didnt 🙂 .. It got stuck at a dialog called “Creating…” or something and hung there.
So did a little debug via command line, found where the problem step was, reported it on an issue
https://github.com/badtoyz/BB10-WebWorks-SDK-2.0.0.54-Beta/issues/2

I thought I might now have to wait another week for this, but Mike was kind enough to fix this fast (as you can see from the replies on that issue)

 

 

– Pull in latest from Repo + Couple of more changes I figured was necessary

\\ Stop the UI by Ctrl+C on that term you were running it on.

\\ Pulled in Mike’s fixes. You may not have to do this because you will get latest fix from HEAD
krish@shenron:/opt/BadToyz-BB10WebWorks$ git pull origin master

\\ Install npmlog, graceful-fs and clean .cordova
krish@shenron: ~$ sudo npm install npmlog
krish@shenron: ~$ sudo npm install graceful-fs
krish@shenron: ~$ rm -rf .cordova

\\ Extend PATH variable .bashrc to add /opt/BadToyz-BB10WebWorks
\\ and /opt/BadToyz-BB10WebWorks/cordova-blackberry/bin/dependencies/bb-tools/bin

Add to your PATH in .bashrc

Add to your PATH in .bashrc – Sorry for the small screenshot. Resized by mistake 😦

\\ Now startui again and try to create test project
krish@shenron: ~$ cd /opt/BadToyz-BB10WebWork
krish@shenron:/opt/BadToyz-BB10WebWorks$ ./start-ui

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.

Anyway here’s the work around

1. Enable Dev Mode
– Go to Settings -> Security and Privacy -> Development Mode
– Give a password, remember it. This is your DEVICEPASSWORD
– Set an IP. Default is 169.254.0.1 (I used 169.254.1.5)

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.

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? :(

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 directory
krish@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/codesigning
krish@shenron:~/WebWorks Projects/test1$ webworks run
[ERROR] The Specified CSK password is not valid.

Whaaat!!! :/

Pretty sure that I had my csk password correct.
Let’s try verbose mode
\\ Trying Verbose on webworks run
krish@shenron:~/WebWorks Projects/test1$ webworks –verbose run –devicepass DEVICEPASSWORD –keystorepass KEYSTOREPASSWORD
Generating config.xml from defaults for platform “Blackberry10”
[INFO] Target Z10-MYDEVICEPIN selected
[INFO] Generating debug token
[ERROR] The specified CSK password is not valid.
An error has occured.

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.

As for bbidtoken.csk, I generated a new one by going to http://developer.blackberry.com/codesigning and requesting a new token for SDK 10.2 for WebWorks 2.0 Beta
AND remember the KEYSTOREPASSWORD you set here 🙂

 

 

– Try to CREATE Debug Token Again

W00t! ... it also deployed the app to my z10? :)

W00t! … it also deployed the app to my z10? 🙂

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.

But wait, I want to see this working via UI too.

\\ So fire up the ui again
krish@shenron: ~$ cd /opt/BadToyz-BB10WebWork
krish@shenron:/opt/BadToyz-BB10WebWorks$ ./start-ui

\\Try to Build and Install the project via the UI

Building BAR file success!

Building BAR file success!

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

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” 🙂

Advertisements

December 6, 2013

Health Update!

Filed under: Uncategorized — krish @ 9:56 pm
Tags: , , ,

Health took a beat down like crazy and I tugged myself inside the blanket shivering crazy as hell.
Mom had to call up friend ‘Yaseen’ to rush me to hospital almost midnight.

Two days with glucose/saline infusion and I could come home.

And then two days at home and I become sick again, although not like the same intensity as first time.

So well, trip to hospital again and they put in this thing in my hand.
It’s supposed to stay in there for couple of days and I have to go twice everyday to the doc to get injected on that wrist via whatever that thing is 🙂

Ok there is a needle inside?

Ok there is a needle inside?

Also, the nurse asked me not to work.. didn’t think that’d be serious.
I was just pumping my head due to headache and blood started squirting out of it. Yikes 🙂

August 23, 2013

The 3700kms Solo Biking Adventure – Full Log

My bike ‘Amitiel’ was close to being 1..
and my mom’s birthday was near too.

Infact, on same date.

Thought it would be a nice adventure to go visit my mom.
It had to be a surprise.. so she didn’t know I was coming. If she did then well… this log wouldn’t exist 😛
Only 1 problem – She lives 3 states across .. 1800+ kms.

Hmm… is that a challenge?
A very few people knew that I was going to do this. Some of them called me Crazy! May be I am 🙂

So here goes.. trip log of my ~3700 kms bike touring SOLO.
Mountains, Valleys, Worlds 2nd largest lagoon, 2 jungles, twisties, and what not….. husshhh.. lets not give away all details so soon 🙂

I’ll try to keep it small 🙂 .. I know I have the bad habit of writing huge paragraphs and paragraphs of lord knows what I write 🙂 
And I’ll write this in parts, for legibility and time constrains and to maintain flow of the journey.

So let’s start with the trip map…. or the one that was initially planned at-least 😀

Note, that the ‘places to visit’ is split between ‘onward’ and ‘return’ journey on same path.

Map Section 1 :

Map split part 1

Map split part 1

Map Section 2 :

Map split part 2

Map split part 2

Map Section 3:

Map split part 3

Map split part 3

Oh well, that was THE PLAN, but execution had something else in mind for me 🙂

I’d like to thank ‘ravi@17bhp’ and ‘jaijeet’ for the gifts (bungee cords).. they were immensely helpful.

One would think, that there would be trouble “during” the journey… but troubles started in a funny way for me even before it 🙂

1. Losing my balaclava: Maid had hung it on terrace after wash and someone thought it’s cool to just take it. Had to do a last moment run to get one more.

New M1 balaclava.

New M1 balaclava.

2. Packing Up: Oh darn darn darn… this thing is so tough.
Somehow managed to dump and push all my stuff learning from this guy. And the bag was pretty much tight by then.

Packing Up

Packing Up

So what seems to be the problem? The problem! is that after packing I remember that I have gifts for my mom and my cousin that I brought from Singapore.. there is no way I’m going without that!
To give you a perspective, that’s 3 ladies handbags (2 big sized and 1 medium) Yikes!

I did not give up.. with all the training from my home hung boxing bag.. I punched those bags inside my tail bag .. somehow. 😛

Phew! packed up.... Oh wait... gifts not packed yet :(

Phew! packed up…. Oh wait… gifts not packed yet 😦

And that’s it… I was ready to go 🙂
More write up coming soon… meanwhile I hope you enjoy this preview video 😀

Click here to read more (more…)

August 10, 2013

Red Headed Beauty

Filed under: Art — krish @ 4:49 pm
Tags: , , , , , , , , , , , ,

On failing to find a shipper for Dagi stylus, I bought another cheapo one… first doodle with it.. testing… precision sucks.

Subject: Red head beauty.

Head hair ... one of the most beautiful parts of a woman.

Head hair … one of the most features of a woman.

July 31, 2013

Preview – My ~3700 kms Solo biking across 3 States of India

Here’s a small video I managed to put together from my GoPro feeds 🙂 .. a preview of my solo biking adventure earlier this month…. more to come when I find time to render them 😀

For now, here it is 😉

Yes, people called me crazy.
People stopped me and there were crazy jungles through which I biked alone… there is no road there.. only dangerous terrain… quite some close call ‘would have been’ fatal accidents escaped, managed to almost drop the bike in waters of Bay of Bengal,  dipped feet in World’s second largest lagoon and not in a tourist spot.. but one that hasnt been trekked by more than a handful people on Earth… all this and MORE coming in next video sets 🙂

July 24, 2013

Curves of Lethal Blade … Nexus 7 doodle

Filed under: Art — krish @ 1:59 am
Tags: , , , , , , , , ,

Wanted a small break from doing gameart all day… so doodled a bit again 🙂

What do you notice first? The blood thirsty blade or the sexy curves?

What do you notice first?
The blood thirsty blade or the sexy curves?

July 21, 2013

Walter’s Visit to India!

Continued from here – https://srikrishnadas.wordpress.com/2013/07/16/1300-kms-bike-ride-solo-hyderabad-bangalore-hyderabad/

Meeting Walter after almost an year was pretty awesome fun!

When not in meeting rooms,
– we explored Bangalore,
– walked long stretches on streets,
– hogged on local food (and so busy at it, that I forgot to take pics),
– hung out at Toit Brew Pub,
– almost got conned by Auto-walas due to Walter’s white skin 🙂 … suddenly 2.5kms of auto was 150 bucks.
– met old friends for dinners (again, pics missing darn it )

I personally was busy munching these super tasty waffles (Stroopwafels) that Walter brought me from Holland (there’s more where that came from…. read the whole log) 😉

DSC03418

 

He then flew to Hyderabad for continued fun! (thanks to him for carrying my old lid with him, I got to test my new touring lid at high speeds  :D)

Essentially we had 2 goals – (A). Find the spiciest local food  and  (B). Hog on it
So here we go…

Walter vs 70mm Dosa Guess who won? :)

Walter vs 70mm Dosa
Guess who won? 🙂

Insert an awesome pic of a white guy and an Indian guy hogging on big plates of spicy biryani, mutton roasts, Lassi, Faluda and tons of yummy stuff here... can't find the pics :_(

North Indian Cuisine - extra spiced up!

North Indian Cuisine – extra spiced up!

Decided to hit my sunset watching spot… we had a bag of 150 odd Lychee’s (my favorite fruit) and drinks to go!

My fav sunset watching and munching spot in City.

My fav sunset watching and munching spot in City.

One noon we found this pigeon in parking spot, was sitting and crapping on someone’s bike… I wondered why it wouldn’t fly even though I got pretty close to it AND the facts that cats move around here… inspected, found it injured.

Unable to Fly :(

Unable to Fly 😦

We decided to do the rescue ops, and Walter tried to put it back in its nest (as its partner looked by) …. with all his 6’3” mighty vertical length 🙂 .. didnt work.

Not sure if rescue ops or tap dance? -_-

Not sure if rescue ops or tap dance? -_-

He vertically supported the ladder (because it was bit short to rest on the ceiling walls) and the short guy (that’d be me) went up it to put the pigeon back. Team work 🙂
Meanwhile, my watchman whom I asked to hold my camera.. decided to film it (un-needed marketing team member) .. so here’s screenshots from the video (not posting the video :D)

Alright, another 3 feet to climb.. I can do this. Sweat Sweat :) Pigeon in hand:  WTF is happening. The other Pigeon in nest: crazy people!

Alright, another 3 feet to climb.. I can do this.
Sweat Sweat 🙂
Pigeon in hand: WTF is happening.
The other Pigeon in nest: crazy people!

Anyway, we managed to put it back safe (and I managed not to eat it.. so thats good I guess)

Rescue ops success :)

Rescue ops success 🙂

I wish Walter could stay longer, but he missed his wife ‘Mine’ who couldn’t make it to this trip. I guess that’s what happens when you find a soul-mate who he describes as ‘Awesome Woman’.

Just kidding ;)  I am very happy for him :D

Just kidding 😉
I am very happy for him 😀

Anyway, after he left I spent 3 days trying to drill and cut the big dark-chocolate bar he brought for me(another gift from Holland!).
It was bigger than my meat cutting knife, almost my elbow length…

Dark-Chocolate Massacre Saga!

Dark-Chocolate Massacre Saga!

And then another 30 days eating it in various different ways (my fav way is to melt it at room temp and eat with fingers and smudging the face.. probably how dark-chocolates should be eaten in the first place :P)
… and getting fat 😀

with Cashews? .. my fav dry fruit

with Cashews? .. my fav dry fruit..nut

Bottom line, Absolutely happy to see/hangout with my friend and the fact that he finally came to India (should have brought his wife along for extended stay).

What makes me happy is that he was and still is “Awesome” in many ways!
Before he left we made a note to each other (NO, it was not a pinky promise.. we’re grown men!) that he’s gonna continue being the good person he is, and that’d help me take a reference.. so we would remain best buddies forever 🙂

His way of life reminds me the way my dad was, and that I always wanted to derive from that.. AND that I went downhill instead.

Indirectly, I owe him for re-providing me a good reference for the ‘way to live’ and that it helped me take a very tough/difficult, hurting decision in my life (~ 1 year ago).
Hurting as hell, still does.. but the RIGHT thing needed to be done; is DONE.

Walter, you Rock!

July 18, 2013

Innocent, Huntress … Nexus 7 doodling ;)

Filed under: Art — krish @ 11:17 pm
Tags: , , , , , , , , ,

This is what churned up in the last 12 mins on my Nexus 7. 🙂

Just some cheapo inaccurate $6 stylus I picked up while travelling in Singapore… does okay.
Wish I had the Dagi accurate stylus :_(

Innocent? Huntress ;) Nude, but not a 'damsel in distress' ... Dangerous is the word.

Innocent? Huntress 😉
Nude, but not a ‘damsel in distress’ … Dangerous is the word.

Nexus 7 drawings – with fingers

Filed under: Art — krish @ 11:10 pm
Tags: , , , , , , , , , ,

Note: The drawings are atleast 2-3 months old. Updating log now :/

Ever since  I got the nexus7, I’ve been itching to do drawings directly on a tablet medium…. but sadly this ain’t a Wacom you know 😉

Doesnt come with a stylus either,…. oh well… why not use fingers… 😀

This is what churned out.

2 fav anime characters in chibi form.

2 fav anime characters in chibi form.

Hmm... goes to show that I've been out of touch with art for so long. With bare fingers on Nexus7.

Hmm… goes to show that I’ve been out of touch with art for so long.
With bare fingers on Nexus7.

May 8, 2013

The Heart Broken Biker – Vlog 025 – Driving Away into the Fog

Next Page »

Blog at WordPress.com.

The Male Factor

On behalf of the ignored gender

Rough Draft

by Atteris Amarth and Darrek Ringo

The Kochi Post.

Read by all + Influenced by none

JumboMake

A signature of Kiran

SAAYAM CHEDDAM FOUNDATION

This blog is just for additional and extension share of it's main frames. No activity is planned from here

krish - 起死回生 [Wake up from death & return to life.]

Get a sneak peek into krish's life, work and passion.

WordPress.com

WordPress.com is the best place for your personal blog or business site.

A Tale of Two and a Half

Monika Amita Bakshi

%d bloggers like this: