Annoyed dealing with slow Android Emulator? AndroVM, a quickfix!



Recently I found out running and debugging large scale Android Application is really slow in Android Emulator. Yes, Slow PC make it even worse.

Here is a quick fix.

Android-x86.org and AndroVM.org has developed a Virtual Machine images which we can use Android as a separate OS within Orache Virtual Box and VMware as well.

Awesome thing is using these VMs we will able to Debug our Android Application as well. Everything just work as it is Android Emulator, But its super fast than the lagging Android Emulator.

Here are the links.

I have used this JellyBean Tablet version of Android VM inside Oracle Virtual Box 4.2.6

How to ADB Connect and configure for debugging.

Hope this helps for Android Developer someone who is looking to get rid of slow Android Debugging.

Regards,
Harsha
(Thanks Sameera ayya @Mubasher for the clue.)

Open Source - OpenMRS awareness session held at University of Peradeniya, Sri Lanka. "Write Codes, Save Lives"



The most important fact Google Summer of Code taught me is the value of Open Source. And the value developing of Open Source software for the world, for the sake of people who lives on it. Open Source is simply altruism. For whom we code like this? Not for anyone, Just for the well being of ourselves. Simple as that! I was worked for OpenMRS in last summer at GSoC. So the programs I have contributed may be using in actual hospitals, clinics some day. People may love those program. They may get the maximum use out of it. But still those software's are Free. Not commercial ones.  Worth Millions but my Organization OpenMRS giving the Software for Free. See how awesome it is. For the sake of humanity, for the sake of entire world that invaluable software giving for free!

I totally love this concept by now, So I am trying to get involve with Open Source as much as I can. (even at my office time breaks i tend to do it.) Do whatever you can, They dont ask donations or other support. Just simple workforce can effect a lot value for the Community.

Being an Open Source enthusiast, Last week I have attended for an Open Source Event Organized by Computer Engineering faculty of University of Peradeniya, Kandy, Sri Lanka.


Computer Science and Engineering faculty students who participated the event.



There I met lots of former GSoC students and Engineering students who are really interested at Open Source. Glad I met Buddhike Kurera who is the Summer Programs Admin of Fedora Project at the event. He gave a lightning speech about open source and the Fedora's role in open source world.



Mr. Buddhike Kurera from Fedora Project speaking about Open Source software

There were various sessions about Open Source and clarifying the value of them. It was a great pleasure for me I got a 15 mins Session to present the audience about OpenMRS.

In their I introduced the people Whats OpenMRS and where OpenMRS being used today.
Actually they were amazed seeing those. Even the Engineering Faculty of the University where I was talking at are using OpenMRS as a research tool, pretty cool right? :-)

GSoC is a good entry for involve in Open Source. So I taught them why they should select OpenMRS as their Organization in next GSoC (if its gonna happen)

I made below slide to present in my session.






My speech about OpenMRS




The event was a big success, There were around 75 potential Computer Science and engineering students participation. I think they have gained lot knowledge about OpenMRS, Fedora and Open Source Software at the event. After couple of days, as I mentioned in the presentation I saw few Students who participated have posted welcome messages at OpenMRS mailing lists too. That was my ultimate expectation, More contributors for the OpenMRS community, more beautiful things we can get done collaboratively.

Finally I am really glad I have done this, my contribution which I need to do for the World and for the sake of my Organization, OpenMRS.

නමෝ බුද්ධාය. "Write Codes, Save Lives - Join with OpenMRS"

Regards,

Harsha Siriwardena
Community Developer
Former GSoC Student, OpenMRS 2012

Be an #OpenSource Supporter, Mentorship for Google-Code-In program #GCI






Last week I have attended to an Open Source event organized by Computer Engineering Faculty of University of Peradeniya, Sri Lanka. In that event I met Buddhike Kurera, who is the Admin of Summer Programs at Fedora Project. In the 1st session he gave a lightning speech about open source and the Fedora Projects role in open source world. In the latter part he talked about the Google-Code-In program one of the events organized by Google for the young kids ages of 13-17 which is happening these days. 

10 Young Champions of GCI 2011




Its a pretty interesting program. So I also thought to contribute this wonderful event.
Younger people are the future of our world. If they got understand the true meaning and value of open source after they grown up surely they will do their best to contribute open source by means its the development of World and Development of Free and open standards.

Since my GSoC Organization OpenMRS hasn't been selected for the list of Organizations this year, I thought to apply for GCI mentor-ship via Fedora Project. And just 1 day ago I have became a Mentor for Google-Code-In program. So in the coming days I will be mentoring young kids for the sake of Fedora Project :-)





This is just a good and simple way to contribute and show your love toward open source.
If you like to become a mentor you are still not that much late. another 24 days yet available to the program ending.

Good intro slides to understand the Basics.
Slides taken from Pradeeban Ayya's Blog.





So Adult programmers, matured students, former GSoC students should become mentors and support this wonderful open source event.


Steps are follows (these info given thanks to Buddhike Ayya)

1. Create a profile in GCI 2012: 


reg as a mentor using this link..
http://www.google-melange.com/gci/profile/mentor/google/gci2012


2. Ask for the mentorship via GCi 2012

aftr that goto menu > request mentor > fedora > writs something abt u.
ur work and bla bla no more than few 5-10 lines


3.When it is approved monitor some task on the list and review them
with the student (please inform the primary mentor before that)
4. After reviewing 2 tasks you can submit two tasks which are fedora related.
5. Then you need to complete it by instructing the student.
6. Repeat adding tasks.

Thats the procedure. Read more and get more knowledge before proceeding cause this is not just an ordinary event, you are dealing with Professional Open Source communities. Respect each others! , Don't cross your limits,
use common sense.

Happy FLOSSing! peace.

Regards, 
Harsha Siriwardena
Former GSoC Student, OpenMRS 2012

  

SocketConnections, RMI vs. Web Services Performance comparison

The web services do allow a loosely coupled architecture. With RMI, you have to make sure that the objects stay in sync in all applications, which means that you always have to deploy both of them at the same time even if only one of them is changed (not necessarily, but it is required quite often because of serial UUIDs and whatnot)
Also it is not very scalable, which might be an issue if you want to have load balancers.
In my mind RMI works best for smaller applications, that are not internet-related. I've used it to have a java application that handles electronic communications

Whether you use Web Services or a more "native" approach depends on the environment as well. If you have to pass through a proxy or some corporate firewall(s), Web Services are more likely to work since they are relying on HTTP only. RMI requires you to open another port for your application which may be difficult (not technically, though) in some environments...
If you know that this issue is not a problem, you should consider using RMI. SOA does not depend on technology so much as on good service design. If you have an EJB container, you can call session beans via RMI and additionally expose them as web services, if you really need to, by the way.
The performance depends on the data that you are planning to exchange. If you want to send complex object nets from one application to another, it's probably faster with RMI, since it's transfered in a binary format (usually). If you have some kind of textual/XML content anyway, web services may be equivalent or even faster, since then you would not need to convert anything at all (for communication).

Socket vs. REST Web Service performance


Its hard to imagine that REST is faster than a simple socket connection given it also goes over a Socket.
However REST may be performant enough, standard and easier to use. I would test whether REST is fast enough and meets your requirements first (or one of the many other existing solutions) before attempting your own Socket solution.

RMI
Feels like a local API, much like XMLRPC
Can provide some fairly nice remote exception data
Java specific means this causes lock in and limits your options
Has horrible versioning problems between different versions of clients
Skeleton files must be compiled in like CORBA, which is not very flexible
REST:
easy to route around firewalls
useful for uploading files as it can be rather lightweight
very simple if you just want to shove simple things at something and get back an integer (like for uploaders)
easy to proxy security behind Apache and let it take the heat
does not define any standard format for the way the data is being exchanged (could be JSON, YAML 1.0, YAML 2.0, arbitrary XML format, etc)
does not define any convention about having remote faults sent back to the caller, integer codes are frequently used, but method of sending back data is not defined. Ideally this would be standardized.
may require a lot of work on the client side caller of the library to make use of data (custom serialization and so forth)
In short from here
web services do allow a loosely coupled architecture. With RMI, you have to make sure that the objects stay in sync in all applications
RMI works best for smaller applications, that are not internet-related and thus not scalable

Ref:

http://stackoverflow.com/questions/100993/rmi-vs-web-services-whats-best-for-java2java-remoting
http://stackoverflow.com/questions/5026952/socket-v-rest-performance


Yeah, Now! I am an Engineer at DirectFN - Mubasher! :-)


Yeah I am an Engineer at DirectFN - Mubasher, We are the people who make DirectFN, the Ultimate Trader's tool use by various Stock Markets in the Entire Globe :-)

Recently I joined a company called Direct FN a.k.a Mubasher, Direct Financial Network in long words. Thats a Software Company specializes Stock Trade related solutions which are served for the entire globe. I am really proud that I have been recruited for this Company and looking forward to serve my best in future endeavors.

I will be working on DirectFN-Mobile Division of Mubasher Ltd as an Associate Software Engineer. So my main objectives will be developing DirectFN Trader's Tools/Apps for IPhone, Android and Windows Phone as well. And I am so glad that I will be start working on Iphone development pretty soon. As its my very initial developments with Xcode and Iphone dev, I think that would be lil bit painful for me but should be a wonderful experience. So that's it for now folks. I am really happy to join with Mubasher as a very well known Software Company in Sri Lanka and looking forward to serve my best and get more knowledge on Global Software development environments.

නමෝ බුද්ධාය.

- Harsha
_________________________

Direct FN Ltd., also known as Mubasher in the Middle East is a wholly owned subsidiary of National Technology Group (NTG). NTG is the largest ICT holding company operating across the MENA region. DirectFN specializes in providing solutions to both buy side and sell side institutions with fully automated Straight Through Processing (STP) systems. DirectFN solutions are used across Middle East and South Asia by some of the largest financial institutions. DirectFN also specialize in providing low latency market data, news, reference data, charting tools and other investor tools to the investment community in the Middle East and beyond. For more details on DirectFN, please refer to www.directfn.net

About DirectFN-TWS Trader's tool

The Software itself named as a part of Company name and TWS means Traders Work Station, This Application supports various Mobile Devices including IPhone, IPad, Android Phones, Tabs and Blackbery, Windows Phone

The coolest thing is you will able to do online trading by using this Application, Yeah by using the Mobile Phone Apps you can trade even you are on Bed. Really Cool isn't it? :-)

Feel like i will tend to start working on Share market investments again. ;-)

Desktop Version


Android Version




Connect PC to an Android Device without external Router


Tether your phone to your computer.
You will find the option to create a "portable WiFi hotspot". This will be in the options, under "wireless connections" "internet" or "tethering" (it depends on what version of android you have). Once you have turned on the hotspot (you can use the default name and no password, or press "settings" to configure it), you connect to your phone from your PC as you would to any other hotspot.
EDIT: If your phone cannot make a hotspot (it seems the HTC Hero cannot) you have two options:
1) if your phone is rooted, install WiFiTether (code.google.com/p/android-wifi-tether/)
2) if you are running Windows Vista/7, install Connectify (connectify.me) to turn your PC into a hotspot, and then connect to it with your phone. You will find the phone's IP in Connectify's list of connected clients.
Once you're connected, make sure to set your firewall to allow connections to and from other computers in the network (I don't know how to use your firewall, but if you're running Windows Vista or 7, make sure to set it as a "home" network).
And you're done. Your phone's IP address can be found by going to "network connections" (in network & sharing centre in Vista & 7) and looking at the status of the WiFi adaptor. It will be the IP address labelled "default gateway".

Ref: http://superuser.com/questions/451993/connect-pc-to-an-android-device-without-external-router

SkyRocket variant of Korean Galaxy SII LTE HD : SHV-E120L/S [Root/StockROMs/MODS/CM10]



Rooting and Installing mods, roms: RootzWIKI

few Korean stock Roms

CM10 > http://alturl.com/qcjsc > more info at XDA

Stock Roms: Flashable via ODIN > here

Information are very rare for these variants of galaxy S2, I caught these info after a long time dig-up. So I am keeping these info as a backup for me and i hope these info would be helpful for the future users too.

Regards,
Harsha

Virtual Mart: ASP.NET Web Services with Web Portals.


Distributed Component Based Software Development by using ASP.NET Web Services and Web Portals.

Virtual Mart-Reservation Agent Portal

Goal: Implement a Virtual Marketplace.

The following entities play a role in the Virtual Marketplace:

• Agent: A portal, which allows passengers to search a route, reserve and cancel Air tickets on various Air Lines. Agent port also facilitates passengers to search hotels availability, reserve and cancel hotel reservations.

• Bank: Provides financial services to the its customers (Passenger, Agent, Airline, Hotel)

• Airline: Provides daily flying schedules for the Agents and accepts reservations from passengers.

• Hotel: Provides logging facilities (BB, HB, and FB) and accepts reservations from passengers.



Following diagram shows the high level architecture of the Virtual Market.
ScreenShot




Released Under MIT Licence 2012 Harsha Siriwardena

@authors: harshadura, chathu

Prequisities.

.NET Framework 3.5
MS Visual Studio 2008
MS Access

Notes.

This project consist with 3 C# SOAP Web Services with 4 ASP.NET Web Portals. Web Portals are depending on the Web Services. So first have to run all the required Web services and then run Web portals.

_______________
2012-October-28

This Project has been done for a partial fulfillment of Distributed Component Based Software Development Subject.



Screenshots of Agent Portal.








Clockwork-mod Recovery MD5 mismatch! error FIX





Method 1

First try this!

adb shell
# cd /sdcard/clockworkmod/backup/2010-06-29.20.22.53
# rm nandroid.md5
# md5sum *img > nandroid.md5

Method 2 :

If Method 1 doesn't work try this way! Hard way - manually setting MD5 values!

Download this > MD5 Calculator

  • Manually go through all the files in the backup folder and calculate MD5 vals, Add them into nandroid.md5 file

c8833ba3d5307b22805daec2a1a34500 << Calculated values | boot.img
01b6cccfb42bd4e3864387eb34a14f1e  data.ext4.tar
96995b58d4cbf6aaa9041b4f00c7f6ae  recovery.img
dae1832a031157156269d814a0ddacee  system.ext4.tar


* More info regarding this work-around refer from this PDF.

_________________
Ref: XDA Developers
http://forum.xda-developers.com/showthread.php?t=976453

 

Ralapanawa Android Module Open Sourced!




Ralapanawa Android Module is one of the Mobility modules we have developed for Ralapanawa RND project. This project has used wide variety of features and functionalites on Android Technology. So finally we thought to Open Source the whole source code for the sake of other newbie developers specially for educational purposes.

Some major functionality.
  • Graphical illustrations (Charts)
  • Data tables to populate bulk data.
  • Handling KSOAP client to fetch SOAP web services within Android.
  • Handling REST web services.
  • SMS based services.
  • Feedback Functions. (Consumer to Dev)
  • Showing Progress bars while handling UI Threads
  • Grid views for menu.
  • UI theming
  • and many more..

-------------------------------------------------
 Ralapanawa.Mobile.Module - README
-------------------------------------------------

Android Derivative of the Ralapanawa Centralized Web Service

Released Under: MIT License 2012 Harsha Siriwardena

@authors: harshadura, dewmal

Download App from Google Play Market:
https://play.google.com/store/apps/details?id=org.ralapanawa.mobile.android

For more info visit project blog:
http://www.ralapanawa.org/






Please note we have wasted our good precious time to create this wonderful product. So if you gonna reuse our work in someway, please mind to give proper credit to us. Thanks!

- Harsha

 

Journey to OMRS12 - OpenMRS Conf: Cavite, Philippines


OpenMRS Implementers Conference 2012! Glad I had a great opportunity to attend for it being a Google Summer of Code 2012 student of OpenMRS.

Me!!




 OpenMRS Conference 2012 Group Photo!


Destination: International Institute for Rural Reconstruction-IIRR, Silang, Cavite, Philippines




It was a brand new experience for me cause, I have never been visited to a foreign country before, It was scary, nice and wonderful experience. I noticed, I have flied with two types of planes. Airbus and a Boeing type plane. Airbus was a really huge aircraft but Boeing was bit smaller compared to former. Even though I noticed its really really fast in speed! :)

Pics taken at SriLankan Airport: Bandaranaike International Airport




Note: Most Pics taken courtesy of my Galaxy-S2, <3 its 8MP camera, its really clear! atleast for me :)

FYI my Journey:

>> SriLanka, CMB   > Malaysia, Kuala Lampur > Philippines, Manila
<< Philippines, Manila > Malaysia, Kuala Lampur > SriLanka, CMB

Malaysia I was only limited to Duty Free Area, So actually I wasn't able to watch and expierence the country but I met people! :) They are Oriental type of people,Look like Chinese yeh! Most Girls looks really cute! haha!

@Kuala Lampur, Malaysia, KLIA Airport.
It was a really massive Airport, I predict its 10X times bigger than Bandaranayake Aiport!



Wonderful IIRR venue! International Institute for Rural Reconstruction>IIRR


Hack! Hack! Hackthon !! 
FYI: Hack~means~code for OpenMRS!


Really glad! Met my wonderful GSoC Mentors at Conf: Gaurav Paliwal, Ben Wolfe



Me: like a robo heh!


Really awesome pic! Little bit worry about the colors though!
This pic includes three generations of Google summer of code students who worked with OpenMRS.
 And the co-founders of OpenMRS, Two Doctors of Medicine!
Burke Mamlin and Paul Biondich!



Conference Hall: 
Note: Conference type is UnConference! :) cool type heh




Played Card games at a Restaurant called One Destination situated near Taal Volcano.
Nathan introduced us this card game called Sets! really cool and addictive game!



My Gsoc mentor: Gaurav Paliwal, He works as an Engineer at Tata IT, New delhi, India


My friend Akki from SL to Conf journey: Ishara Premadasa, Final year CS student from UOM


Typical Me! lol

@ a Disscussion Session



Fruits! Nooo! Pineapple......


Jordan! She is trying to eat රඹුටන් Rambutan! :P

Google.....~!!! Our searching God in public action! Thanks for sponsoring us!
FYI Some of the Google Staff also came to OpenMRS conf.. Pretty cool huh!


Me and Ishara Aki


GSoC Friends Met together! Jordan, Ishara and Me


Conference hall!

At Road side.. while visit for the Clinics, inside Bus!




Typical SriLanka heh!

Glad to see OpenMRS been used in many Philippines Hospitals and Clinics!



Cool! They have customized OpenMRS base and named it as CHITS!



Male Nurse using OpenMRS


This is a baby clinic!

So many paper based docs! Automated now!




After visit to hospitals we went cool Restaurant for the Launch!



Regional music cool huh!


Ice creeeeeeem!









We have visited SM-MALL
One of the largest Malls in the World! Top 15 Mall in the World! huh!
Mall > Kind of Large shopping complex, I also got to know after checking Dictionary :P




Three floor building with a large area! I think its 10X bigger than MC in SriLanka!


Typical tourist with Slippers! :P


My Room! Nope! our Room, shared with Gaurav!

 My Tag


IIRR Reception!

JEEPS- Phillipines public transport! less traffic!


Last day at Conference!


Leaving Philippines! at Aircraft!


Never forget this wonderful, 6 day experience i got in a foreign country! I will definitely serve my best for OpenMRS in future too! Thanks again OpenMRS for all the great hospitality!

නමෝ බුද්ධාය! Thank God again for taking care of me all the time for a Cool and Safe Journey.  

- Harsha

_______________
More Pics @ OpenMRS Facebook Page: Album1 | Album2