Posts

Showing posts from 2012

Rhodes on android

Image
Download android Android sdk Download Android ndk
After installing the android sdk and ndk in your machine, add the path within the rhobuild.yml file (rhobuild,yml resides within the rhodes gem, inside the ruby, which you are using. Something like this, if you are using the ruby from the Motorola Rhomobile Suite: C:\MotorolaRhoMobileSuite2.0.5\ruby\lib\ruby\gems\1.9.1\gems\rhodes-3.4.2\rhobuild.yml))
A typical entry looks like this: remember to maintain the indentations in the yml file. env:   app:   paths:     android-ndk: D:/Android/android-ndk-r8b-windows/android-ndk-r8b     java: C:/Program Files (x86)/Java/jdk1.6.0/bin     android: D:/Android/adt-bundle-windows-x86_64/adt-bundle-windows/sdk
Android 4.2 runs with rhodes 3.3.2(without license) For any other rhodes version(below 3.3.2), you will wither get an error like the following or for rhodes(above 3.3.2) it will require a license from Motorola.
Getting such an output while executing the below command for android 4.2.
ruby 1.9…

Photo Passion

Image
check out this section...for More :)


Blackberry signing keys for generating production BB build in rhomobile application

For generating a blackberry production build you need to runrake device:bb:production. But before that, we need to have the signed BB keys. Following are steps, for that: Request for the BB keys, from the RIM siteFill in the details, you will be receiving the keys in an hour approx.Execute the following steps: Procedure
To manually register .csi files



Save the three *.csi files received from Research In Motion (RIM) to one of the following directories:

BlackBerry JDE C:\Program Files\Research In Motion\BlackBerry JDE [version]\bin\ Open a command prompt and change to the directory listed above. Type the following command, and then press ENTER to execute the command:

javaw -jar SignatureTool.jar [CSI File Name].csi If a dialog box appears stating that a private key cannot be found, perform the following actions before continuing:



Click Yes to create a new key pair file.Type a password for your private key, and re-type it to confirm.Click OK.Move your mouse to generate data for a new private ke…

Rhodes with BB simuIator and various issues

Working with rhodes (mobile application development framework written in ruby) you may need to develop a mobile app for Blackberry. This post will describe about the various thing we may need to remember while configuring the app for a BB device. Following link will give you the details of "how to buy and deploy your code in a BB device".

Here I will be primarily focusing on the development of a rhodes app and testing using a BB simulator.

After installing rhodes, add the BB ver in the rhobuild.yml file (check the spaces anf the formatting in the rhobuild.yml.example file under the rhodes gem folder). Install BB JDE, not the simulators.Add the BB-JDE, Java-JDK in the PATH variable in Windows.Add the paths in the rhobuild.yml for the BB device version you are choosing. Remember the spacing as this is a yml file. The app name at the beginning og the yml file should correspond to the app name for which you want to run. Below are some the common mistakes and errors we get while …

Bose behind the boson

Steps to install Rhomobile Suite for mobile app development

Recently Motorola has come up with mobility solution tool provider, called Rhomobile Suite, which installs all the necessary things required for native, hybrid and web application development. The executable file has a size   of 495MB, will require around one and half hour to be downloaded with an internet speed 1Mbps (you can check the internet speed in various sites, one being http://www.speedtest.net/).
After installing the exe file, there are some steps which needs to be performed, in order to make your rhodes app up and running.
Following are the steps for Windows:
Run the RMS_1276.exe fileBy default it will be installing all the packages inside a directory in C drive within a folder called MotorolaRhoMobileSuite2.0.5Check the environment variables in the PATH and the REDIS_HOMEConfigure DevkitNote: In the config file, add the absolute path of ruby as installed within the  MotorolaRhoMobileSuite2.0.5, as directed.
 Like for example: ( the triple hyphens and the single hyphen after th…

Steps to install Rhomobile Suite for mobile app development

Recently Motorola has come up with mobility solution tool provider, called Rhomobile Suite, which installs all the necessary things required for native, hybrid and web application development. The executable file has a size   of 495MB, will require around one and half hour to be downloaded with an internet speed 1Mbps (you can check the internet speed in various sites, one being http://www.speedtest.net/).
After installing the exe file, there are some steps which needs to be performed, in order to make your rhodes app up and running.
Following are the steps for Windows:
Run the RMS_1276.exe fileBy default it will be installing all the packages inside a directory in C drive within a folder called MotorolaRhoMobileSuite2.0.5Check the environment variables in the PATH and the REDIS_HOMEConfigure DevkitNote: In the config file, add the absolute path of ruby as installed within the  MotorolaRhoMobileSuite2.0.5, as directed.
 Like for example: ( the triple hyphens and the single hyphen after…

Refinery CMS for rails...and some associated tit bits

Currently I am working on th "Refinery" CMS in rails, a beautiful content management system in rails and the best way to understand the concepts for me is none other than the railcasts episodes. But before starting with it, we need to have some stuffs installed in our machine...viz. ruby 1.9.3 and rails 3 (or above). Lets go one by one. syntax error, unexpected ':', expecting $end......session_store :cookie_store, key: '_saint_rock_session'...Error while creating db, in refinery, caused due to absence of ruby 1.9.3 in your machine. Do install ruby 1.9.3 (using rvm/pik and have the refinery CMS setup happily :)If you are using ubuntu, there are some issues with installing of ruby 1.9.3 directly using rvm. The error looks looks like this... ERROR: The requested url does not exist:
'ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-.tar.bz2' So you can manually fetch the file and then ask rvm to use it...
curl -o /usr/share/ruby-rvm/archives/ruby-1.9.3-.ta…

Permission denied . fatal: The remote end hung up unexpectedly

You must have encountered this error, while connecting to github after you have generated the ssh keys.
Some key points to check for this error.
Check the content of the id_rsa.pub file in your system, that should match with the ssh keys in your github account. Copy the content of the  id_rsa.pub file and paste it your github account settings page. https://github.com/account/sshIf still not working, check whether the port 22 is opened/blocked from your system, as that was the issue in my case, it was blocked. Check status of port in WindowsOpen the port 22, if its blocked.  Use the command : netsh firewall add portopening TCP 22 SSH enable subnet. Refer here for details about configuring Windows firewall.If still not working, generate new ssh keys.Try cloning from git, it should work :)

Deploying ruby on rails(3.1) app to Heroku and their issues

I am working on a rails 3.1 app and lately was trying to depoy the code in Heroku. Heroku has excellent tutorials for the same, but you can encounter some issues which are out of the scope to predict that, for Heroku  or anyone as it lies with your system. Same was the case with my system. I am trying to enlist such issues...don't give up hope I know there are plethora of others..try googling them or adding them here in the comments :)
Fatal error, port 22 can't connect to the mentioned url: The error is caused as port 22 of your machine is blocked. You maybe behind a firewall or using a secure connection (like vpn) to connect to the network. Please disconnect vpn to connect to heroku or check your firewall settings and even if that doesn't work ask the infrastructure team to unblock the port 22. This may appear while pushing your changes to github repository too.permission-denied-publickey-when-deploying-heroku-code-fatal-the-remote-end:  I found the solution from stack o…

Json, unable to build gem native extension error in windows

I am working in a rails 3.1 app. My Gemfile is not having any json gem version specified, still one of the gem is having a dependency in json, which was resulting in the error above, I have tried

Devkit changing the Rubygems versionusing ruby 1.8.7 and ruby 1.9.2 both, using pik But neither of them worked in windows. Then I started my app in VMware+ubuntu and it worked like miracle. So it's a windows issue try installing ubuntu with a virtual machine in your windows and start a hassle free coding in rails :)

Unpacked gem...in vendor/gems has no specification file. Run 'rake gems:refresh_specs' to fix this

When you have unpacked/localised a gem for an earlier version of rails (before rails 3 and the concept of bundler came in vogue), the specification file under the vendor/gems folder might be missing which gives the error in the title of the post. Don't have to panic, you can easily generate a specification file for the same.
Go to the gem directory under the vendor/gems/ folder
cd vendor/gems/ factory_girl_rails-1.0.1gem specification factory_girl_rails > .specification [Don't specify the gem version while generating the specification file].Or if you have to mention the version use the syntax below gem specification factory_girl_rails -v 1.0.1 > .specification