• Programming

    Posted on April 11th, 2011

    Written by Geek

    Tags

    , ,

    Take snap shot of chart using flex 3 and php

    Objective: Need to create a snapshot from flex, what would you do. Solution: Make any canvas or vbox or hbox as a base64encodeded string using flex commands, and pass it server script. on server script decode the base64 string that you have received. Image.mxml import mx.graphics.ImageSnapshot; import mx.core.UIComponent; public function getBase64String(component:UIComponent):void { var urlRequest:URLRequest = [...]

    Print Friendly
  • Programming

    Posted on April 9th, 2011

    Written by Geek

    Tags

    , , , ,

    SHELL PROGRAMS – SCRIPTS

    Any series of commands may be stored inside a regular text file for later execution. A file that contains shell commands is called a script. Before you can run a script, you must give it execute permission by using chmod utility. Then to run the script, you only need to type its name. When a [...]

    Print Friendly
  • Programming

    Posted on April 9th, 2011

    Written by Geek

    Tags

    , ,

    Introduction to C Programming

    History: In the early days of computers, the only programming languages available to programmers were two “low level” languages: machine and assembly language. Programming in these languages was tedious and time-consuming because the programmer had manage the hardware itself (memory, stack, interrupts, etc…).. When computers became increasingly available, many “high level” languages such as Fortran, [...]

    Print Friendly
  • Programming

    Posted on April 9th, 2011

    Written by Geek

    Tags

    , , , ,

    Datagrid Column Renderer with image arrow

    Datagrid Column Renderer with image arrow Objective: To create a arrow marker on a datagrid column, when we do custom sorting using datagrid component. Solution: using datagrid column class extend a custom class and add a itemrenderer with image and label component. Program Listing: Main.mxml <?xml version=”1.0″?> <mx:Application xmlns:mx=”http://www.adobe.com/2006/mxml” initialize=”initDP();” xmlns:local=”*”> <mx:Script> <![CDATA[ import mx.events.DataGridEvent; [...]

    Print Friendly
  • Programming

    Posted on April 9th, 2011

    Written by Geek

    Tags

    , , , ,

    Flex 3 Tree Control with Radio Button and Checkbox Controls

    Flex 3 Tree Control with Radio Button and Checkbox Controls   Flex 3 Tree Control with Radio and Checkbox Controls Guys, I have created the Flex tree control with radio button and checkbox item renderer. Main File <?xml version=”1.0″ encoding=”iso-8859-1″?> <mx:Application xmlns:mx=”http://www.adobe.com/2006/mxml” creationComplete=”init();” > <mx:Script> import mx.controls.Alert; import mx.collections.*; import flash.events.*; import mx.events.*; import mx.controls.*; [...]

    Print Friendly
  • Programming

    Posted on April 7th, 2011

    Written by Geek

    Tags

    How to Install NS2 in Linux

    To install ns 2.27 in Red hat, there are following steps: tar -xzf * ./install change .bash_profile and add some environment variables. put /home/zhibinwu/ns-allinone-2.27/bin:/home/zhibinwu/ns-allinone-2.27/tcl8.4.5/unix:/home/zhibinwu/ns-allinone-2.27/tk8.4.5/unix into your PATH environment; so that you’ll be able to run itm/tclsh/wish/xgraph. IMPORTANT NOTICES:  (1) You MUST put /home/zhibinwu/ns-allinone-2.27/otcl-1.8, /home/zhibinwu/ns-allinone-2.27/lib, into your LD_LIBRARY_PATH environment variable. If it complains about X libraries, [...]

    Print Friendly
  • Programming

    Posted on April 7th, 2011

    Written by Geek

    Tags

    Introduction to Number Theory

    Introduction to Number Theory Elementary number theory provides a rich set of tools for the implementation of cryptographic schemes. Most public-key cryptosystems are based in one way or another on number-theoretic ideas. Bignum computations Many cryptographic schemes, such as RSA, work with large integers, also known as “bignums” or “multi- precision integers.” Here “large” may [...]

    Print Friendly
  • Programming

    Posted on April 6th, 2011

    Written by Geek

    Tags

    Programming in C

    Programming in C Issues of typography A program is a sort of publication. It’s meant to be read by the programmer, another programmer (perhaps yourself a few days, weeks or years later), and lastly a machine. The machine doesn’t care how pretty the program is — if the program compiles, the machine’s happy — but [...]

    Print Friendly
  • Programming

    Posted on April 6th, 2011

    Written by Geek

    Tags

    Introduction to Operating System

    Introduction to Operating System Operating System (or shortly OS) primarily provides services for running applications on a computer system. Need for an OS: The primary need for the OS arises from the fact that user needs to be provided with services and OS ought to facilitate the provisioning of these services. The central part of [...]

    Print Friendly
  • Newer Posts Yeah! There are more posts, check them out.

Switch to our mobile site

PHVsPjwvdWw+