Thursday, August 29, 2013

WP7 and the ActiveSync supported Host Internet Sharing

 Did you know that WP7 supports Host's Internet Sharing via Zune? To see that enable Airplane mode and connect your WP7 device to your computer. Now open zune, and let it connect to your phone. Once your phone is detected, open Internet Explorer on your phone and see if you can open any website. Provided your computer is connected to internet, websites should open on your phone.

You must also know that media access is not allowed in a WP7 device while connected to computer. Which means that you can't really use the computer's internet connection to do much useful things. But if your WP7 device is unlocked then you can use WPHack to enable media access while connected to computer and that make it possible to use your WP7 device as normal internet connected device where you can download anything, store it in phone storage and as such. It also allows you to update apps/ install new ones from marketplace/ download stuff from internet via various apps. In short, it makes your WP7 device even better!

Friday, August 16, 2013

Using Qwt Plots: more functionality in the app

Added some more functionality. Now we can see the source and the prediction graph on left side. On right I'm showing the filtered results. The algorithm is still a bit whacked up, but the UI does look good.

The additions were: Stylesheets for styling the groupbox and the graphs - canvas and curves. I also used QPens to make the curves look better. Also added a checkbox for providing anti-aliasing. It doesn't look that good on current graph but if there's a simpler graph then that may benefit from anti-aliasing.

Tuesday, August 13, 2013

Using Qwt plots

I wrote a small app for stream processing some data. This is the front-end which shows a stream of data (simulated as of now ) and plotted in a qwt plot on the right.

This in itself is not the important thing - that's some logic I'm going to write to filter the data. But this form helps me in visualizing the real thing.

Tuesday, August 6, 2013

Experience creating and deploying Hello world app for windows phone

Recently I unlocked my Samsung Omnia W which I previously upgraded to WP7.8 using Heathcliff's unlock for Samsung second generation devices. Afterwards I got hold of some xap's and deployed them to the phone to test out the unlock and things worked out quite well.
Thus now I have a device that I can code for and put my code in. So just to test the development environment I tried installing the SDK and coding a simple Hello World app for my wp.
There I ran into a few problems and I had to run circles to find solutions / workarounds for them. The first problem was I had WP7 sdk which is incompatible with Windows 8 (which is my current desktop OS of choice along with elementoryOS). So after looking at a few workarounds for the incompatibility which involved downloading a few update packages and messing with the system. I discarded them since I didn't want to mess with my Win8 installation which is already finicky enough.
So I decided to keep the existing WP7 SDK install since I can use Application Deployment tool from it. I created a new Win7 VM in VirtualBox, and installed the WP7 SDK in there. After installing SDK, I created Hello World app which was straight forward. Then I thought I would deploy this to the phone directly. But this didn't work. Somehow the Win7 VM would error out on attaching the phone as a USB Peripheral. And I had run out of patience by then. So I copied the created xap to Host Win8 system and used Application Deployment tool from there to put it into the phone.
Later search revealed that WP8 SDK can be used to create and deploy WP7 applications as well. But it's another 1.6GB download so I am sticking with my current VM setup as it is.
Now I'm looking for a good idea to make it into an app. Hopefully I'll find some more use of my Omi as I like to call it.

Monday, August 5, 2013

xev to check xinput events

xev is a utility that draws a window on screen and processes all events occurring in that window like mouse in, mouse out, mouse move with screen coordinate output.
Very useful when checking touchscreen input values.

Friday, August 2, 2013

CentOS installation in GUI mode to a terminal where you get only text mode

To get GUI mode over vnc, you need to edit the first option and append "linux vnc vncpassword=qwerty" to the line and boot using that.
This will basically start a vnc server on the terminal and you can login to that machine using any vnc viewer with "qwerty" as password.

The need for GUI mode maybe anything - e.g. advanced partitioning options which are not available in text mode.