Showing posts with label web. Show all posts
Showing posts with label web. Show all posts

Friday, June 3, 2011

Linux running on JavaScript

Suddenly came across this amazing project.. Linux running ‘on’ the web browser. It’s a virtual machine written in JavaScript, it can boot a small linux image supporting basic commands, file system, vi, and even.. a C compiler!

URL: http://bellard.org/jslinux/

You can edit, compile and run the sample hello.c program using the compiler called tcc.

To compile: tcc -o hello hello.c
To run: ./hello

All that running on top of JavaScript!.. absolutely mind blowing!

By the way, only the following browsers are supported:
  • Firefox 4.x
  • Chrome 11
  • Opera 11.11
  • Internet Explorer 9

Monday, August 18, 2008

Don't click it!

It's been long since I got excited about a web site. I have to say, I'm very impressed with the idea, creativity, innovation and the intuitive interface of this web site/project. It's based on the idea that you don't need to click to navigate.. they strongly suggest that you don't click at all!

Check it out here: http://www.dontclick.it/. Check out the whole web site, all pages to get the real fun.

I feel like pulling out the buttons of my mouse :P.

Sunday, March 16, 2008

How to begin web programming with PHP

I am often asked, 'how to begin web programming with PHP?'. Following is a response that I had given few weeks ago. Hope this will be useful for anyone willing to start learning PHP.

Things you need to know to begin web programming with PHP:

  • Good knowledge of HTML
  • Some knowledge of CSS
  • Some knowledge of JavaScript
  • Good knowledge of MySQL Database, SQL (as most php applications are database driven)
  • Good knowledge of PHP
  • Using and configuring Apache
Tutorial Links:

Here are the links to tutorials that may help you to accelerate your learning process.

Recommended Setup:

Recommendations:

  • Keep the references handy/near to you.
  • Search in Google for more tutorials
  • Look into well known PHP frameworks (search for: top php frameworks).
  • Look into open source projects to learn how real life applications are done.
  • Practice well :)

Monday, December 17, 2007

Upcoming Google Knol - a Wikipedia killer?

Google has just announced their latest upcoming application called 'Google Knol'. It's a tool for posting and sharing information in the form of articles. Much like Wikipedia, Google Knol just seems to be more social and focusing more on the author's name, and of course its 'Google' branded. 'Google branded' means Knol will have more higher rank results than the Wikipedia, answers.com or other sites in search results on general topics.

Users can share, rate, suggest edit, add contents to articles. There can be more than one article on a topic from different authors, unlike Wikipedia. In Wikipedia, all aurthors edit/enhance one article per topic. Wikipedia is 'topic centric' where as Google Knol will be 'author centric'.

Here's the intro at Google's official blog:
"The web contains an enormous amount of information, and Google has helped to make that information more easily accessible by providing pretty good search facilities. But not everything is written nor is everything well organized to make it easily discoverable. There are millions of people who possess useful knowledge that they would love to share, and there are billions of people who can benefit from it. We believe that many do not share that knowledge today simply because it is not easy enough to do that. The challenge posed to us by Larry, Sergey and Eric was to find a way to help people share their knowledge. This is our main goal."

So is this a Wikipedia killer? In my point of view, it's not gonna be an easy task for Google to takeover the popularity of Wikipedia anytime soon. They need something more jaw breaking (a feature, functionality or an idea) to do so. Well only time can tell the 'actual' story.. :).

More on Google's Blog:
http://googleblog.blogspot.com/2007/12/encouraging-people-to-contribute.html

Constructive comments by Roger Ehrenberg, who's not so optimistic about the success of Knol, is here:
http://seekingalpha.com/article/57457-google-knol-not-setting-the-world-on-fire.

Tuesday, December 11, 2007

Visual Studio.Net for free

Yes, many of us do not know this fact but there are free editions of the mighty Visual Studio IDE, the languages: Visual C++, Visual C#, Visual Basic and SQL Server. It's called the 'Express Editions'.

Visual Studio Express Editions (2005, 2008, etc) are free versions of Visual Studio professional editions with limitations on some professional and enterprise features. Targets of Express Editions are mostly beginners, hobbyist and students.

This very good strategy of Microsoft is definitely targeted to reach the mass market and make more programmers divert to or become Visual Studio developers. Open source tools, languages and operating systems are causing Microsoft to loose ground at an alarming rate over the last few years. The free editions are one of few and good steps of Microsoft against it.

Whatever the reasons for the express editions are, it's a great news for beginners, students and hobbyists. I've used C# express edition (2005) for a moderate sized application earlier this year and hardly noticed any significant changes. You can easily switch between the Visual Studio professional and express editions too. So, if you begin developing an application in Express Edition and want to move to professional edition later, it's a piece of cake!

Web site & downloads: http://www.microsoft.com/express/.

Ext JS 2.0 final is out

As the title says, Ext JS 2.0 final has been released on December 4, 2007. You can check it out and download it at extjs.com.

Ext JS 1.1 rocked my heart. I had used it in a bio-informatics web 2.0 application (basically a DNA sequence/template modification application with lots of complex business rules, built with .Net 2 and Ext JS). Ext JS 1.1 dramatically improved the application GUI over another GUI framework we used earlier.

Ext JS is definitely one of the best choices if you're planning for a heavy weight GUI based web application but may not be a good choice if you're planning for a lightweight application. The main reason behind this is the 'bluky' size of the library. To use all features of the library, you can include the full library in your application, which is around 580 KB for Ext JS 1.1.1 and 614 KB for Ext JS 2.0. In that case, the only thing may bother you, the lightweight lovers, 'a lot' is the load time of your page/application. It's definitely very noticeable in the slower speed internet connection (like dial-ups).

With Ext JS 1.1, it was difficult to choose the specific library parts of the library for any specific features or widgets, for example the nice window message box dialogs. 'Packages' didn't help much, or I do not know how to use them :). If you have any expectations from Ext JS 2.0 about being it any more lightweight or choosing specific library parts easily, it may disappoint you. But you'll definitely like the more dramatics Ext 2.0 has to offer over its predecessor.

Ext 2.0 offers newer components, layouts, better examples and a better documentation. It's worth of upgrading to it for your current web 2.0 application, if time permits.

Saturday, May 19, 2007

Online (Comprehensive) English to Bengali Dictionary

Last week I was looking for a web based dictionary in the web. I found two sites with very poor collection of the word translation. (Details mentioned end of the article). At once I decided to give one whole night a try and create my own online dictionary. And guess what? I did.

How: After some googling, I got two good Unicode based dictionary databases. But none of them translate from English to Bengali. They were Bengali to English and Bengali to Bengali. Hmm.. they don't seem to be much useful, do they?

This is what I did: created my db schema, wrote a php code to parse and enter the entries of two dictionaries into one db table without any duplicates (Bengali and English translations strings into separate fields), wrote another php code to parse the English translation strings and do 'word indexing' and store indexes into another table. Then I created a search page. That's all, I'm done.

The search page searches in the indexed words, prioritize and sort them by their original positions in the translation strings and also categories the results. Works like a charm.

Try it now: www.ittefaq.com/dict.

I'll work on the application some more soon and will make a release. And yes, I do need to check the License types of the data sources :).

The other online dictionaries:

These dictionaries are good starts but look dummy and not really useful.

I may make my dictionary open source soon.

Happy translating!

Thursday, May 3, 2007

JavaScript - Yet another toggle (show/hide) combo box code

You probably already have found or used code to toggle 'select' elements (combo boxes). But some of them have prototype dependancies, some don't work for non-form based elements and some don't work with ajax based pages.

I just wrote this tiny code that seem to do the job on IE, both form and non-form based elements, both ajax and non-ajax based pages. Check it out:
/*
* toggle select boxes by Kaisar
*/
function toggleSelectBoxes()
{
var elems = document.getElementsByTagName("select");
if (elems)
for (i=0; i<elems.length; i++)
elems[i].style.display = elems[i].style.display == 'none' ? '' : 'none';
}