Wednesday, April 29, 2009

interaction between user control and main pagein silverlight

http://dotnet.org.za/thea/archive/2004/07/15/2834.aspx

This is silverlight thing

Saturday, April 25, 2009

WCF + LINQ +

http://blogs.msdn.com/swiss_dpe_team/archive/2008/03/17/silverlight-2-beta1-wcf-linq-to-sql-a-powerfull-combination.aspx

Read this

Friday, April 24, 2009

rempte desktop command

rdesktop -g 1600*800 -a 16

Thursday, April 23, 2009

I would extend my previous post.
Usually people use php script or other programming language to load an API key into the swf application This makes it safe. They protect the script by returning API key only if a POST variable from swf application matches to a random variable in server side. {I am not clear on the script protection though}

Swf code is shipped to client side and if API key on

Wednesday, April 22, 2009

Gift of XML...

* XHTML: the latest version of HTML
* WSDL: for describing available web services
* WAP and WML: as markup languages for handheld devices
* RSS: languages for news feeds
* RDF and OWL: for describing resources and ontology
* SMIL: for describing multimedia for the web

MXML: used in actionscript
XAML: Silverlight and WPF. Used in ASP.NET. Rip off of MXML.

Sunday, April 19, 2009

Try this out sometime..
Write a script that generate this war file automatically ...


* WebContent.
Regular Web files (HTML, JavaScript, CSS, JSP, images, etc.)
* WebContent/some-subdirectory
Web files in subdirectory.
* WebContent/WEB-INF
web.xml (used for servlet mappings)
* WebContent/WEB-INF/lib
JAR files specific to application.
* Java Resources: src
Unpackaged Java code.
* Java Resources: src/somePackage
Java code in somePackage package.
* Note:
You can cut/paste or drag/drop existing files into appropriate locations, but it is hard to drag files into default package until you create at least one class first.

Saturday, April 18, 2009

How computer works,....

When you turn on the power to a computer, the first program that runs is usually a set of instructions kept in the computer's read-only memory (ROM). This code examines the system hardware to make sure everything is functioning properly. This power-on self test (POST) checks the CPU, memory, and basic input-output systems (BIOS) for errors and stores the result in a special memory location. Once the POST has successfully completed, the software loaded in ROM (sometimes called the BIOS or firmware) will begin to activate the computer's disk drives. In most modern computers, when the computer activates the hard disk drive, it finds the first piece of the operating system: the bootstrap loader.

The bootstrap loader is a small program that has a single function: It loads the operating system into memory and allows it to begin operation. In the most basic form, the bootstrap loader sets up the small driver programs that interface with and control the various hardware subsystems of the computer. It sets up the divisions of memory that hold the operating system, user information and applications. It establishes the data structures that will hold the myriad signals, flags and semaphores that are used to communicate within and between the subsystems and applications of the computer. Then it turns control of the computer over to the operating system.

The operating system's tasks, in the most general sense, fall into six categories:

* Processor management
* Memory management
* Device management
* Storage management
* Application interface
* User interface

And this is how Computer works :)

Thursday, April 16, 2009

Different ways to set the classpath...

For bash shell:
export CLASSPATH=$CLASSPATH:/java/classes:/home/tchin/myclasses

For tcsh or csh:
set CLASSPATH = ($CLASSPATH /java/classes /home/tchin/myclasses)

Advantage of servlets over CGI

1. Threads instead of OS processes

How to setup apache-tomcat on department machine:

Download Apache-tomcat and open in one folder...
10 0:30 set CATALINA_HOME=/project/dcs/saurabh/tomcat/apache-tomcat-6.0.18
11 0:30 set CLASSPATH = ( $CLASSPATH $CATALINA_HOME )
12 0:31 set PATH = ( $PATH $CATALINA_HOME )
13 0:31 module load java/jdk-1.6.0_06
14 0:31 cd bin/
15 0:31 ./startup.sh
16 0:31 module load mozilla/firefox/3.0.1
17 0:31 firefox

Wednesday, April 15, 2009

http://www.apl.jhu.edu/~hall/java/Servlet-Tutorial/

Work on this... finish this tutorial

Power of Comma (,)

I leave my money to Jamie, Heidi and Mark.
I leave my money to Jamie, Heidi, and Mark.

Though assigned least preference in C language operator list, ',' is one of the most crucial marker in English language.
See the power by yourself by reading those two lines.

First one means:
Jamie gets 50%
Heidi and Mark gets 25% each.

Second one means:
Each gets 33%.

Thursday, April 9, 2009

Recently i have been working on JAVA OSPF vs VIRO comparison for load in the network. I would put updates and interesting results in few days... wait till then