Oh, the Things I Know

The beginning of knowledge is the discovery of something we do not understand

Archive for the 'stuff' Category

plug-in, ide, new api, other actual stuff

Don’t have a laptop? Try the virtual computer!

Posted by Syed Aslam on May 7, 2008

K. Ansar and P.P. Ismail, final year computer science students at an engineering college in Kerala India, have set up www.bloxtr.com, the prototype of a virtual computer in which you can store all your important documents, favorite music, colorful pictures and even videos.

The idea is that no one needs to carry a laptop or pen drive around. You can upload any files to the website and access it from any corner of the world. What you need is just an interface to access the internet.

But, is the idea implemented earlier?? I mean in the form of eyeOS. From the site I get:

“eyeOS is an Open Source Platform designed to hold a wide variety of Web Applications over it. eyeOS was thought as a new definition of Operating System, where everything inside it can be accessed from everywhere in a Network. All you need to do is to login into your eyeOS server with a normal Internet Browser, and access your personal desktop, with your applications, documents, music, movies… just like you left it last time.”

With the base system you can find a full suite of applications bundled, some for private use, like the file manager, a word processor, a music player, calendar, and notepad or contacts manager. There are also some groupware applications, such as a group manager, a file sharing application, a group board and many more.

Or is it like the GMail drive??

GMail Drive is a Shell Namespace Extension that creates a virtual filesystem around your Google Mail account, allowing you to use Gmail as a storage medium. (Google has nothing to do with this !)

GMail Drive creates a virtual filesystem on top of your Google Gmail account and enables you to save and retrieve files stored on your Gmail account directly from inside Windows Explorer. GMail Drive literally adds a new drive to your computer under the My Computer folder, where you can create new folders, copy and drag’n'drop files to.

Ever since Google started to offer users a Gmail e-mail account, which includes storage space of 4000 megabytes, you have had plenty of storage space but not a lot to fill it up with. With GMail Drive you can easily copy files to your Google Mail account and retrieve them again.

When you create a new file using GMail Drive, it generates an e-mail and posts it to your account. The e-mail appears in your normal Inbox folder, and the file is attached as an e-mail attachment. GMail Drive periodically checks your mail account (using the Gmail search function) to see if new files have arrived and to rebuild the directory structures. But basically GMail Drive acts as any other hard-drive installed on your computer.

You can copy files to and from the GMail Drive folder simply by using drag’n'drop like you’re used to with the normal Explorer folders.

Whatever it is I think it is novel idea, if implemented well. They are trying to convert this into a mobile application when 3G services become operational in India. The guys (Ismail and Ansar), along with three other classmates, have already won a project from a local software company on behalf of a Gulf-based airline to develop a system to make flight schedule information available on mobile phones. I wish them all best for their projects and of course bloxtr.

Posted in general, stuff | 6 Comments »

Build powerful Web interfaces with a free JavaScript framework

Posted by Syed Aslam on April 28, 2008

Scriptaculous allows you to easily add powerful AJAX-based user interface features to Web 2.0 applications. Web developer Tony Patton explains why you should use it and describes how to use it.

Scriptaculous is a framework for building dynamic Web 2.0 interfaces. It utilizes another freely available framework called prototype. Scriptaculous simplifies the ins and outs of implementing an AJAX-based Web interface. It allows you to easily add animation and custom data controls, as well as utilities for working with the DOM and JavaScript testing.

Why use it?
AJAX is a great marriage of technologies, but it can be confusing and time-consuming to build AJAX-powered applications from scratch. The scriptaculous framework makes it easy to include AJAX-based features in your applications, plus all of the development and testing has been done, so you can devote your time to more important tasks.

Getting started

The first step in utilizing the scriptaculous framework is downloading and installation. The download is basically a zip file with JavaScript files along with various HTML files for testing and demonstration. The JavaScript source files are the most important. The following list contains an overview:

Keep your developer skills sharp by signing up for TechRepublic’s free Web Development Zone newsletter, delivered each Tuesday.

  • lib\prototype.js: The source for the prototype JavaScript framework.
  • scr\bulder.js: Allows you to easily create DOM elements dynamically.
  • src\controls.js; Includes the core components for working with the custom data controls.
  • src\dragdrop.js: Provides the code for utilizing the custom data controls for drag-and-drop related functions.
  • src\effects.js: The Visual Effects library includes all you need to add advanced JavaScript animation to your Web application.
  • src\scriptaculous.js: The base code library for utilizing the scriptaculous framework.
  • src\slider.js: Provides the code for utilizing the slider data control.

The previous list includes the default directory where each file is installed. You can place these JavaScript files anywhere on the Web server, but using the default directories makes it easier to work with the examples.

You may be wondering about the overhead of including these files in a Web page. The complete library (all files in the list) consumes approximately 150KB. The two core files—prototype.js and scriptaculous.js—add up to 50KB. So, all other combinations will be between 50 and 150KB depending on the files used.

By default, scriptaculous.js loads all of the other JavaScript files necessary for effects, drag-and-drop, sliders, and all of the other scriptaculous features. You can limit the additional scripts that get loaded by specifying them in a comma-separated list (via the load command) when loading the scriptaculous JavaScript file.

Once you have downloaded and installed the framework, it is easy to use it within a Web page. The first step is linking to the JavaScript source files within the head portion of the Web page. See Listing A.

The various functions available are accessed via HTML script tags. You can gain a better understanding by examining one of the test files installed with the framework (or an online example). As an example, I loaded the slider_test.html file located in the test\functional directory of a default installation. The complete contents of the file are too much to list here, but I can examine one portion that loads the first slider control on the page—a standard horizontal slider:

<script type=”text/javascript”>
// <![CDATA[
new Control.Slider(’handle1′,’track1′,{
sliderValue:0.5,

onSlide:function(v){$(’debug1′).innerHTML=’slide: ‘+v},

onChange:function(v){$(’debug1′).innerHTML=’changed! ‘+v}});

// ]]>

</script>

Using the CDATA section sidesteps issues encountered when using characters like < and > in your JavaScript. The code creates a new Slider control (via the Control class) and sets its initial position to the middle of the control (0.5) and adds handlers for the slide and change events. Also, framework functionality is easily used via onClick events.

A drawback of many freely available (and some commercial) tools is a lack of documentation and examples. The scriptaculous framework includes extensive example code and basic documentation via its Wiki. In addition, a quick Google search yields more help. A good example is the various cheat sheets available that provide a quick reference sheet for using the framework.

The framework includes an extensive set of examples that are included in the functional subdirectory of the test directory. You can dive into the test files to get a good idea of how to use framework functions within your application. In addition, the demos section of the scriptaculous Web site provides great examples.

Posted in JavaScript, development, stuff | 2 Comments »

Wierd CD Shapes!!

Posted by Syed Aslam on April 11, 2008

Wierd Shaped CDs

Baba Akcja, a designing group founded by three students from the Academy of Fine Art in Warsaw, Poland, are the creators of these cool looking CD’s.

With shapes like floppy discs, viruses and saw blades, it might be hard to squeeze them into your music player. But who uses CD’s these days, anyway?


Posted in general, stuff | No Comments »