Blogadda

Blogadda
Visit BlogAdda.com to discover Indian blogs

Saturday, May 30, 2009

What is Perl??

Perl (Practical Extraction and Reporting Language) , is an interpreted programming language with a huge number of uses, libraries and resources. Arguably one of the most discussed and used languages on the internet, Perl was first brought into being by Larry Wall circa 1987 as a general purpose Unix scripting language to process mail on Unix systems and since extended by a huge cast of characters.

Perl is a programming language which can be used for a large variety of tasks. A typical simple use of Perl would be for extracting information from a text file and printing out a report or for converting a text file into another form. But Perl provides a large number of tools for quite complicated problems, including systems programming. Programs written in Perl are called Perl scripts, whereas the term the perl program refers to the system program named perl for executing Perl scripts.

If you have used shell scripts or awk or sed or similar (Unix) utilities for various purposes, you will find that you can normally use Perl for those and many other purposes, and the code tends to be more compact.

Perl is implemented as an interpreted (not compiled) language. Thus, the execution of a Perl script tends to use more CPU time than a corresponding C program, for instance. On the other hand, computers tend to get faster and faster, and writing something in Perl instead of C tends to save your time.
Advantages:

Advantages :

Portability: Perl code that doesn’t use system specific features can be run on any platform, and these days almost every operating systems support it.
String processing and especially Regular expression support: Perl is a winner in everything related to string processing. Its regular expression support is the most versatile in existence and seamlessly integrated into the language. (In fact, it is so good, that Perl has set a new standard for regular expression, which is now emulated in many other programs and languages).
CPAN: www.cpan.org has a huge collection of free and reusable Perl code for many purposes – Science, system administration, Mathematics, Biology, foreign languages, database access, networking, etc.

Friday, May 29, 2009

Mix up questions of as3 asd Flex

Few More Mix up questions of as3 asd Flex

-What is serialization.(Java Stuff)

-What is item renderer

-What is datagrid

-What is page navigation and how to achieve this in Flex

-What is the difference between mxml and as3 page.

-What is vhbox.?

-What are layers for the integration of the flex and java componenets.

-What are different ways we can connece the java class with the flex component.

-Wht architecture we generaaly follow for the component in cs3

-Do we have multiple inheritance in as3 and java.

-Why we dont have multiple inheritance in java and as3. its disadvantage with example.

-Can we have threads in AS3.?

-How we make the components in as3.?

-Where we put the code in components.?

-Can we break the compiled clip.?

-Whats the need of forms..??


More Coming soon :)

Monday, May 25, 2009

Portlets and Widgets--faqs

Q1. Questions about Portlets
1a) Please give your definition of portlets

1b) Please list specific characteristics (=attributes, properties) of portlets

1c) Please list specific features (=functionalities) of portlets



Q2. Questions about Widgets
2a) Please give your definition of widgets

2b) Please list specific characteristics (=attributes, properties) of widgets

2c) Please list specific features (=functionalities) of widgets



Q3. Please tell us, what do YOU consider as the major differentiator(s) between:
3a) Portlets and Widgets? (cf. Wikipedia on Web widget)

3b) Widgets and Java Applets? (cf. W3C Widget requirements)



Q4. Please share with us YOUR ideas how to evaluate:
4a) Portlets?

4b) Widgets?

no need to apologise, really!

some times at night when I flop on to the bed
I think of what I should or should'nt have said
everything seems to have happened by chance..
should I or should'nt I have cared for a second glance?

no one is all evil, not everyone perfect
its best not to have too much to expect
everyone trapped in their own little world
in their own actions and emotions they're hurled

its ok if sometimes I cant get
whats going on in your mind
there are some awkward pauses i'll bet
but its time to leave all those behind

so let you be you and let me be me

_Courtsey---A friend of Mine

Monday, May 18, 2009

Bunch of AS questions

  • What are modifiers
  • How to do External Communications
  • What are Preloaders
  • What are Abstract Classes
  • Can we have Flash Stage Transparent
  • Can we Resize Stage at run time
  • Can you explain the difference between SWC and SWF?
  • What are Inspectable Tags?
  • What are Shared Movie Clip Symbols?
  • What is Gradient Masking
  • How we integrate ASP with ActionScript?
  • How can we Load PDF into Flash?
  • How to Load Text File Methods?
  • Integration of PHP & Flash.
  • How to upload files and downloads.
  • Explain Static Vs Constant
  • How to prevent a class from being Inherited
  • How to attach Audio & Video in AS2.0 AS3.0
  • How to add special symbol in XML like %,$,@ etc.
  • Printing a document in AS3.0,2.0
  • ExplainSCORM & LMS
  • How to communicate Javascript to LMS
  • What isLockRoot
  • How can we make Duplicate Movie Clip in AS3.0
  • Explain Memory Management in AVM2.
  • How to maintain multiple classes application as minor changing takes long time in compilation
  • What is constructor
  • Can we make it private? What happens in that case.
  • Access Modifier for the Constructor
  • Explain Layers and Depths
  • Are Movie Clip depth +ve or -ve.
  • Remove Movie Clip Method from Stage
  • What is basic behind Local Connection.
  • What is Shared Library and Objects
  • How do we load videos and add cuepoints dynamically?
  • What is deep copy and shallow copy
  • How does garbage collection works if we invoke it from function
  • Two methods of loading swf files in AS3.0
  • Two way of communication from Javascript and Flash in AS2.0
  • How do you create SCORM compliant SCO's
  • MVC architecture and Framework
  • Is there any security error we got on IE while running a Flashfile published to HTML
  • Concept of Interface and its implementation
  • External Interface in AS2.0+3.0
  • Sending and Loading values from server side script.
  • What is difference between Get and Post methods.

Friday, May 15, 2009

Flash Test paper1


Question 1

Step1

Create an XML file having information of 5 images.

Step 2

Load each node image of the xml file on the stage in a movie clip in such a manner that image will load at the center of the stage means there will not be any effect of resizing of the stage dimension.

Step 3

Set alpha 0 to 100 when each image appears. Provide buttons (Next, Previous) for navigation.

Step 4

Display height and width of each image in a text box when image loads.

Question 2

Create two buttons label (Circle, Rectangle) on clicking of each button draw shape accordingly on mouse movement

Question 3

Create a form in flash having information field say Name, Address, and Age.

User can enter information in these fields accordingly. If user closes this SFW file and again it open last field’s value should populated automatically.

Monday, May 11, 2009

Flash Test.. Try it

Drop circles on screen

Create a SWF that:

  1. Starts with a blank screen.
  2. When the user clicks anywhere on the movieclip, a small circle appears (around 25px in diameter) at the clicked position.
  3. Each time the user clicks on the movieclip, another circle is visible.

Drag ’n Drop

Create an SWF that:

  1. Has a single square present, 50x50 pixels in size.
  2. Allows you to click and drag the square anywhere on screen.

Intermediate problems

MouseOver

Create an SWF with:

  1. Three rectangles shown on screen, filled with Red, Blue and Green colours.
  2. A textfield placed below the rectangles.
  3. Whenever you move your mouse over a rectangle, that rectangle’s colour is displayed in the textfield.

Drawing

Create a SWF that:

  1. Allows you to click-and-draw lines on-screen. Just straight lines, by clicking anywhere, dragging your mouse cursor, and releasing it. The line should start from the point where you clicked on and end at the point where you release the mouse cursor.
  2. The colour of the lines you want to draw next can be changes using a ColorPicker.
  3. Has a ‘Clear’ button. On click of this button, any lines on screen are removed, and you again have a blank slate to work with.

Advanced problems

External Image Viewer

Create an SWF that:

  1. Has a textfield where the user can input an image URL.
  2. A button labelled ‘show image’, on click of which the image referenced by the URL is loaded in an UILoader present on screen.
  3. The user can pan the image (either using mouse drag or scrollbars) if it is too large to view.

Tuesday, May 5, 2009

Folder Creation-- Flash-- Not Possible

W can not make the folders or write any thing on our local using flash except for the shared object..

We can use third party tools like Zinc for that..

We can also use AIR for making that but these all are for desktop application.

web application cant do it ..

in Zinc we use it like this


working_folderLis.click = function (eventObject)
{
myfolder_br = mdm.Dialogs.BrowseFolder.show(
);
if (myfolder_br != "false")
{
working_folder.text = myfolder_br;
modules_combo.removeAll();
pageList.removeAll();
blankMc.unloadMovie();
refreshTracker();
refreshGlobals();
var _loc2 = mdm.FileSystem.fileExists(
working_folder.text + "\\index_tracker.txt");
if (!_loc2)
{
mdm.FileSystem.copyFolder(mdm.
Application.path + "\\att_common", working_folder.text);
mdm.FileSystem.copyFolder(mdm.
Application.path + "\\metadata", working_folder.text);
for (var _loc1 = 0; _loc1 <>
{
mdm.FileSystem.copyFolder(mdm.
Application.path + "\\sco_elements\\" + sco_folders[_loc1], working_folder.text);
} // end of for
for (var _loc1 = 0; _loc1 <>
{
mdm.FileSystem.makeFolder(
working_folder.text + "\\" + empty_folders[_loc1]);
} // end of for
mdm.FileSystem.makeFolder(
working_folder.text + "\\att_common\\includes");
mdm.FileSystem.makeFolder(
working_folder.text + "\\att_common\\images");
mdm.FileSystem.makeFolder(
working_folder.text + "\\att_common\\html");
mdm.FileSystem.makeFolder(
working_folder.text + "\\att_common\\css");
mdm.FileSystem.makeFolder(
working_folder.text + "\\att_common\\audio");
initTracker();
disableBtns(false);
}
else
{
refreshTracker();
disableBtns(true);
} // end if
} // end else if
};
working_folder_btn.
addEventListener("click", working_folderLis);


Monday, May 4, 2009

Web Service and BlazeDS Integration

We can Integrate web services and BlazeDS in flex application. We
need to follow some steps for setting the BlazeDS. Here is the
reference link:

http://learn.adobe.com/wiki/display/Flex/Creating+a+BlazeDS+web+servi...

For Amazon Web Services, it is providing the infrastructure for web services
platform only. We need the wsdl of AWS and write on the server side
configuartion xml file for BlazeDS.