Sunday, November 28, 2010

FunDay... Magik Mindreader

Magik Mind Reader reads your mind...

download magik_tric.zip..
Extract it..
Compile magik_tric.magik..
and say magik_tric.open() on Emcs

Press "Help" button and follow the steps.. Enjoy the FUN..

crack the logic before looking in to source code..  it took 3 hrs to develop this.. :)

Sunday, October 10, 2010

Playing OLE

Many times programming for ole_objects is a tedious job. creating a object and checking help on it. and trying on emacs .

But there is a shortcut which will make the life easy while working with excel, word, powerpoint from magik.

Microsoft Office comes with macro recorder and editor(VBA Editor) which will do 70% of our work if we trying to add something to office applications from magik.

for eg: I have to add table to the MS word. but dont know how?? Macros will help a lot... here is the example

Step 1: Start office App( word, excel, Powerpoint) i use MS word here.
Step 2: Go to Tools -> Macro -> Record New Macro.
Step 3: Give the name to Macro (Tablemac). Slect "OK" (Fig 1)
Step 4: Go to Table -> Insert -> Table and select "OK".
Step 5: Select Stop Recording . (fig 2)
Step 6 : Go to Tools -> Macro -> Macros (Alt+F8)
Step 7. Select the Macro and click Edit. This will opens the VB Editor with the code for inserting Table to MS word. as shown in figure

The code generated will some times canbe used as it is. or will do 70% of the work.  if is possible to call a macro from Emacs. most of the work is done.

The code generated will be use full not only in magik but also while dong Ole_program from java, phyton. etc..



                                                                                                                                                                    

Saturday, September 25, 2010

Bingoho Source code (Experimental)

Download  Bingoho source code from here

This application is just a experimental.. Coordinate system synchronization is not 100% accurate.

Usage of BingMaps in current application  is just a geoImaginary and geocoding services.. Didn't try with tile server implementation.

Works on any application with simple gui,config.xml configuration.

If application is behind firewall, c# code has to be recompiled with proxyObject class which is provided with source code.

If any one fixed the issues within this source code please share to me. :)

Interested to see if any one fixes the coordinate system synchronization




Tuesday, September 14, 2010

Magik Ganesh

I wish you all a Happy Ganesh chaturdhi

1. Start outlook if you have on the machine
2. Download magik file form here. say magik_ganesh.open() on emacs.

program doesn't contain any virous. just access the name from out look. Select "Allow" button in security shown in outlook.

Happy Vinakaya Chavathi .. [Name in Outlook ]. This app is similar to few flash application available

Saturday, July 17, 2010

GSS & Google Flash Maps as a Cloud in Google AppEngine with 3D

Earlier I got a chance to attend a workshop of Cloud computing IN Hyderabad, while studding different concepts and exploring different cloud computing concepts I came across Google App Engine (GAE). I thought of developing a Cloud App for Smallworld on GAE. I am successful on doing on local where App Server runs on local which is a flash GSS client running on App Server. So I deployed the client on App Engine and can be accessible from http://imegis.appspot.com/ . I saw few applications where GSS is integrated with Google Earth. Google Earth is a thick desktop client with can render 3D.



The developed client is thin web client which can render 3D and integrated with GSS.


I Me and GIS is a flash client with very basic services of Google Earth deployed on Google App Engine. ( GSS functionality not deployed on App Engine. this is just a Google flash maps on Google cloud environment)

This is flash client with 3D rendering capabilities will work similar to Google Earth client with same navigation control on the left hand side.



Client is a flash application require flash player 9 or above
3D rendering is implemented using Papervision3D

Load 3D will Render GE Building in 3D. Application can render any 3D object provided corresponding DAE(collada) or kmz available in server. (Please see pics rendering 3d will take 20-30 sec to download the 3D model from App engine)
load KML not implemented on App engine
Print Map will print the current map view

Comments, Suggestions are welcomed

Friday, May 28, 2010

Bingohoo

Finally i am able to integrate Smallworld Application with Bing web map Service + Google Static maps and yahoo maps.

I tried in 3 flavors of Binghoo…A java version, c# with managed code and with sw_dotnet_dll
I am not very successful with Java version as Bing map web services with java is not the best combination and it took lots of time with trouble shooting.
I tried to create the web services using managed C code from C#. This C code is available in …Smallworld\product\data\acp_source\ but performance is not very good.. Sometimes application is hanging (may be because of managed C code)
I could found sw_dotnet_acp_dll in magik components (Thanks to Author: Pedro Miranda for the example)

I just added methods PutObject and GetObject to this dll to make my life easier. (Image transfer from acp to maick makes application slow.. to overcome this problem, the images are cached with coordinate and zoom level. This added two advantages to application

1. No need to go to the server for every pan/zoom if the coordinate is already visited.

2. Headache of transferring image form acp to magik is removed making application faster)

I modified map_view.int!do_render and added few lines in the method

1. Self.application.plugin(:maps).current_map_view…window.render_raster(i_path, 0, 0)

2. I_path << self.get_cached_image_path_for_current_location()
This renders image at 0, 0 of map window and 2nd line will fetch the cached image path if no path exists it will request an image.





The real challenge is, to synchronize smallworld with geo images form 3-4 different map providers.


For Bing maps I tried different mathematical equations to get perfect sync between Smallworld and Bing geo images but still there are not perfectly in sync (see http://msdn.microsoft.com/en-us/library/bb259689.aspx for calculating zoom level for the coordinates)

Zoom level for Google is somewhat fine (see the image) .. The detail images from Yahoo are not of very good quality and at many places they are not in very details so zoom for yahoo maps are not affecting.

Thursday, February 11, 2010

_thisthread.sleep( 3Months)

Yesterday I completed my 2nd semester MS exams.. So I thought to blog a post which I want to do from few days back. ( sorry for the long wait to post )

The first one is web map connector…Its really cool I got a chance to play with it. infact I played with the whole Friday night in the office without going home. Thanks to Alfred Sawatzky and Brad Sileo for providing license.

I really like the application showing Bing maps on smallworld. But why only Bing why not Google, yahoo, open street map, Maps-For-Free, etc not integrated in to the web map connector..?? I don’t know..

I tried putting every thing in to one application and did an investigation and found interesting stuff to put these web maps as a service in to one application..



Bing maps
Google maps
Yahoo Maps

It’s a quite difficult to use Bing maps service in java environment. But using the managed c-acp code to develop in .net environment..

I will try to post the complete developed application in my next post

Friday, January 1, 2010

Smallworld Clouds

Clouds??... What is it..?? Clouds refer to Cloud Computing.

If you are very new to cloud computing then, this is the correct place to know cloud computing

I am studying about cloud computing from quite sometime back.. Last week I got a chance to attend a work shop conducted by IEEE on Clouds in Hyderabad. I am studying some terms like Saas, Paas, Iaas.

What is there in it for smallworld?? before going to find what is there in clouds.. lets see few problems In a Agile way... (Are these really problems.. ???..!!)

As a Electrical energy distributor i am more interested in maintaining and managing my electric network rather than maintaining lot of licenses and computers.

As a Gas Distributor I am more interested to find the critical customers if any gas lines fails rather than finding effecting users/engineers if any computer fails.

As a network operator i am more interested to invest more money to my network rater than buying licenses/computers

and many more

As a Smallworld developer what i can do for the above problems..??

I will provide services to the consumers on demand.(pay for what you used)

I don't want to maintain tens and hundreds of servers with lots of IMAGES in it.. so, i will use infrastructure as a service(Iaas). All the servers are located some where around the world and forget about marinating the servers and just use the images.

I am small electricity distributor, I don't need complete smallworld application.. but I need few application for few hours a week. I use Saas and get required software for few hours and pay for those hours..

These are the few attempts how we can use clouds..

There are many cloud computing applications available, few of them are google apps, Microsoft Azure, Amazon cloud front and ZOHO.

Windows for all is the perfect example for infrastructure as a sevice. you can try it. requires silver light plugin and takes some times to load.
its a Windows operating system in your browser. :)

Can we consider GSS as a step towards Cloud Computing??

All the above are just my imagination those are not related to GE Smallworld or any other company

Looking for comments.. :))