lunes, 22 de abril de 2013

HTC Incredible S (???????????? - no permissions)

Unlike other popular devices (e.g. S2 i9100), some HTC phones require certain configuration in order to work properly under the context of Linux (e.g Ubuntu Quantal Quetzal).

#Android SDK is required to use "adb" 
$ adb devices
List of devices attached
???????????? no permissions 

In the case of HTC Incredible S, hardware definition is needed.


$ lsusb
Bus 001 Device 009: ID 0bb4:0cac HTC (High Tech Computer Corp.)

where

"obb4" is the vendor ID
"0cac" is the product ID

Create or edit the following file

$ sudo gedit /etc/udev/rules.d/51-android.rules

Add the following line and save it

SUBSYSTEMS=="usb", ATTRS{idVendor}=="0bb4", ATTRS{idProduct}=="0cac", MODE="0666"

Restart the service

$ sudo restart udev
$ adb devices
List of devices attached
HT13WRD00413    device  

You may need to unplug the device from your computer before restarting the service. Restarting adb may be also needed ($adb kill-server/start server). More HTC configurations can be found in this link

martes, 12 de febrero de 2013

Arduino Mega ADK - Fundamentals


Requirements

Hardware
     1. Arduino Mega ADK
     2. Wifi-shield
     3. Mega Sensor shield
     4. Wifi Module

Tinker-kit also comes with several micro mechanical sensors such as accelerometer, photo-resistor, among others. Each sensor can be connected to the Mega sensor shield in order to sense environmental data.

Software

HTerm (for configuring Arduino WiFi)
Eclipse ( IDE for Android application development)

Assemble the follow structure (from top to bottom)
Wifi-Module -> Wifi-shield -> Micro controller


Configure Wifi Module and Establish Android Communication



Once you established communication with Android, then you are ready to start developing Arduino sketches and your Android app.

Here some code to try

martes, 29 de mayo de 2012

Deploying Tsung in a Cluster

Tsung is a load testing tool that allows you to simulate heavy loads of users. Installing it in a single node, its an easy task. However, when the load achieved by a single node its not enough for testing purposes, then it is necessary to deploy Tsung in different nodes, which makes the process a bit complicated.

This post attempts to explain you, how to deploy Tsung in multiple nodes (3 nodes). 1 controller and 2 secondary nodes. Notice that the controller manages/collects the information of the whole simulation process.

Configuration file huberflores_example.conf

How to Bundle an Amazon Instance (instance store)

A detailed tutorial for bundling an Amazon instance.


This is a working document. If there are any errors, or if you disagree with anything which I have said, or have any suggestions for improvements please email me kyoraul@gmail.com.

lunes, 17 de octubre de 2011

Higher-dimesional Monte Carlo Integration (Python)





This is a working document. If there are any errors, or if you disagree with anything which I have said, or have any suggestions for improvements please email me kyoraul@gmail.com.