Showing posts with label Architecture. Show all posts
Showing posts with label Architecture. Show all posts

Thursday, October 2, 2014

Best practices to run GNU Octave in a Windows box

GNU Octave is a very interesting software to run math computations on your desktop. It's an open-source high-level interpreted language, primarily intended for numerical computations equivalent to Wolphram's MatLab
So, usually you will run this on a Linux box but if you're like me, who has a preference for Windows desktops, you may have a few issues running it. So here is a small recipe that may help:
Install Cygwin (you have to install this lovely piece of software even if you don't want to run Octave)
Choose at lease the following packages:
  • octave (and all the packages that you think you will want to use)
  • xorg-server
  • xinit
  • xterm

and let Cygwin setup to select all the dependencies for you.
After you've installed this you can open a Cygwin terminal and then run:

# X   
# export DISPLAY=:0.0  
# xterm 
# octave (inside xterm)
# sombrero(51) (inside octave)
This previous commands will:

  • Run the XServer
  • Let every X application to run on the local XServer that you've just started, you can add this into your ~/.bash_profile
  • Open a new terminal inside this XServer
  • Start Octave
  • Execute a beauty graph inside the XServer window

Enjoy you maths!

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

Tuesday, September 3, 2013

Playing with Vagrant - Fixing issues with Virtual Box

There is a confirmed bug in Oracle VM VirtualBox v.4.2.14 (and probably others) that stop you from being able to start newly created boxes with a not so nice error

Windows version


Console version:
Progress object failure: RPC_S_SERVER_UNAVAILABLE 0x800706BA

To fix this you need to  go to the directory where you virtual machine is and then create a SHA1 signature of every vmdk and ovf file in there. Something like this:
cd ~/.vagrant.d/boxes/BoxName/virtualbox  
openssl sha1 *.vmdk *.ovf > box.mf


More info at: https://github.com/mitchellh/vagrant/issues/1850
Hope it helps

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

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