Showing posts with label IT. Show all posts
Showing posts with label IT. Show all posts

Sunday, May 4, 2014

BlueMix + Android Development + IBM Mobile Data - First Steps

Trying to better understand some architecture patterns, I've tried to create my first sample application with IBM BlueMix to host the server side + Android Development to develop the client side + IBM Mobile Data to use as a foundation for the app.

Notice: I'm using the sample code found here as a start

While doing this I've found a couple of issues so here is a quick list of tips & tricks:

Issues with Application Id

At this point in time, properties.json is having precedence over the more specific code:
IBMBaaS.initializeSDK(context, "95569b05-5f16-421a-a9e4-xxxxxxx");

So bear this in mind and check that your properties.json has the appropriate information.
More info here

Issues with "strange" URLs being called

The IBMBaas API will call https://mobile.ng.bluemix.net/data/helo as part of its normal operation. I think you may be interested in this info as it is not yet document.

Issues regarding "cannot find symbol variable IBMBaaS" or some other

Not sure who is at fault here but I've had several issues with the ADT not being able to resolve symbols associated with the IBM libraries. Copying the libraries again nor restarting the ADT didn't work neither. I've found that calling Gradle to clean up the project solved the issues most of the times, so you may try that first before recreating the project.

More to come...

Friday, March 21, 2014

Trying Bluemix! - First steps

Bluemix (http://www.bluemix.net) is the new PaaS offering from IBM. Based on open-standards, it is a cloud-based platform for building, managing and running apps of all types (web, mobile, big data, new smart devices).

I've just tried to give it a shot and this is my recommended approach to make a sample run and have an understanding of some of the basics to create a larger app:

First of all you'll need CloudFoundry tools, which oyu can get from: http://docs.cloudfoundry.org/devguide/installcf/install-go-cli.html

Once you have this installed you can follow this sample here: http://www.ibm.com/developerworks/cloud/library/cl-bluemix-nodejs-app/

But you'll need to make some changes as that document has a couple of things that has changed since it was published:

git clone https://github.com/ibmjstart/bluemix-node-mysql-upload.git
cd bluemix-node-mysql-upload\app

"\Program Files (x86)\CloudFoundry\cf.exe" create-service mysql 100 mysql-node-upload

move manifest.yml.v5 manifest.yml

---
       

       
applications: #Reference http://docs.cloudfoundry.com/docs/using/deploying-apps/manifest.html

- name: whatevername #Application Name. Unique to the user's Space

  memory: 256M #The maximum memory to allocate to each application instance

  instances: 1 #The number of instances of the application to start

  --- url: pcolazurdo-test-${random-word}.${target-base} #deprecated, kept for temporary compatibility

  host: whatevername #Hostname for app routing. Unique to domain

  --- domain: ${target-base} #Bluemix Parent Domain Name

  path: . #Path to the application to be pushed

  command: node app.js #The command to use to start the application




       
 


"\Program Files (x86)\CloudFoundry\cf.exe" push runtime-name

After this you have to go to the console and assign the Mysql service to the Application Runtime and restart the Runtime

Friday, April 5, 2013

Playing with Ruby on Windows --- Fixing SSL issues when running bundle install

If  you run bundle install and run into this message:
"Gem::RemoteFetcher::FetchError: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (https://rubygems.org/gems/mime-types-1.22.gem)
An error occured while installing mime-types (1.22), and Bundler cannot continue. Make sure that `gem install mime-types -v '1.22'` succeeds before bundling."

Where the gem name maybe different, it will be helpful to have a look at this solution:

Download the cacert.pem file from http://curl.haxx.se/ca/cacert.pem. Save this file to C:\dev\cacert.pem or whatever directory you can use for this.
Now make ruby aware of your certificate authority bundle by setting SSL_CERT_FILE. To set this in your current command prompt session, type:
set SSL_CERT_FILE=C:\dev\cacert.pem

More info at: https://gist.github.com/fnichol/867550
It worked like a charm for me!

Hope it helps

Sunday, August 31, 2008

Performance Analysis in Windows

If you're in needs of finding out what is going on your computer running Vista or Windows Server 2008, I'll highly recommend getting xperf. Go and give it a try!

Tuesday, August 12, 2008

A world of new interfaces

Ok, I was totally blown away by some of the visualization technologies by Obscura Digital. I'd love to be in one of their shows.

Tuesday, June 17, 2008

By now, if you're a Windows Adminsitrator you should know about Sysinternals tools. What probably you don´t know yet is that you can run these tools remotely by executing them from: \\live.sysinternals.com\tools i.e. \\live.sysinternals.com\tools\handle.exe so you don´t need to install them or have them into an USB to run them.

Thursday, June 5, 2008

Are you an Aspiring Architect?

If you're, these Microsoft links can be useful:

June 16th, 2008 – 12:00 p.m. to 1:00 p.m. – Introduction to the aspiring architect Web Cast series
http://msevents.microsoft.com/CUI/EventDetail.aspx?EventID=1032380836&Culture=en-CA
June 17th, 2008 – 12:00 p.m. to 1:00 p.m. – Services Oriented Architecture and Enterprise Service Bus – Beyond the hype
http://msevents.microsoft.com/CUI/EventDetail.aspx?EventID=1032380838&Culture=en-CA
June 18th, 2008 – 12:00 p.m. to 1:00 p.m. – TOGAF and Zachman, a real-world perspective
http://msevents.microsoft.com/CUI/EventDetail.aspx?EventID=1032380840&Culture=en-CA
June 23rd , 2008 – 12:00 p.m. to 1:00 p.m. – Realizing dynamic systems
http://msevents.microsoft.com/CUI/EventDetail.aspx?EventID=1032380846&Culture=en-CA
June 24th, 2008 – 12:00 p.m. to 1:00 p.m. – Web 2.0, beyond the hype
http://msevents.microsoft.com/CUI/EventDetail.aspx?EventID=1032380848&Culture=en-CA
June 25th, 2008 – 12:00 p.m. to 1:00 p.m. – Architecting for the user experience http://msevents.microsoft.com/CUI/EventDetail.aspx?EventID=1032380850&Culture=en-CA
June 26th, 2008 – 12:00 p.m. to 1:00 p.m. – Conclusion and next steps
http://msevents.microsoft.com/CUI/EventDetail.aspx?EventID=1032380852&Culture=en-CA

Saturday, May 31, 2008