9lessons Programming Blog - Tutorials about Angular, ReactJS, PHP, MySQL and Web Development
Showing posts with label Technology. Show all posts
Showing posts with label Technology. Show all posts
Monday, February 13, 2012

Memcached with PHP.

Memcahced open source distributed memory object caching system it helps you to speeding up the dynamic web applications by reducing database server load. In this post I want to explain how I had implemented Memcached object caching system for demos.9lessons.info. This system is very helpful for high traffic media and blog related websites.

Memcached
Monday, January 23, 2012

CSS3 Logo Design

Back then we used graphic design softwares like photoshop to design logos and icons. But now we can design almost anything using the power of CSS3. Designing logos and icons using Cascading Style Sheets will make your site load faster than using images. Today i am going discuss how to design CSS3 logo using basic properties.

CSS3 Logo Design

Monday, December 26, 2011

Amazon EC2 Multi Domain Setup and Technology Behind 9lessons

Recent days I received lots for requests from my readers that asked to me few questions about 9lessons.info hosting and CMS technology. This post explains you how do I setup my domains + sub domains with Blogger and Amazon EC2 hosting. How to setup multi domains setup in Amazon Elastic Compute Cloud using htaccess file.

Amazon EC2 Multi Domain Setup
Monday, September 26, 2011

Getting Started with Adobe Flex

At work place we have been reviewing few bolt-on applicationsfor PeoplSoft ERP that can be used for employee on-boarding. All those tools were great and they had one thing in common, i.e. they all were developed in Adobe Flex. In recent years the usage of Flex has increased tremendously and there are good reasons for that. We will go through them.

Getting Started with Adobe Flex

Wednesday, September 14, 2011

Amazon EC2 Cloud Installation.

Last few days I have been working with Amazon Web Services micro instance free tier, this post I want to explain how to setup instance, elastic IP configuration, cloud instant accessing from local computer using Putty and FTP connection. It’s awesome real cloud computing, you have complete control on server, using this we can implement new web features like node.js. Soon I’m hosting all of my demos into EC2.

Amazon EC2 Cloud Installation
Wednesday, July 27, 2011

Get Started Developing for BlackBerry.

Are you looking for BlackBerry application development tutorial. Take a quick look at this post my friend want to explain how to download and install BlackBerry standard development kit with eclipse IDE. It's very simple just follow these steps and you can create Hello World program.

Get Started Developing for Blackberry with Eclipse
Tuesday, February 08, 2011

Getting Started with Ruby on Rails

Ruby language is growing very fast on the web. This post will introduce you to Ruby on Rails, explain how to install and start a new project with video presentation. We have been working on Ruby on Rails project, demo will available at ruby.9lessons.info. Hope you like this

User Registration using facebook registration plugin
Friday, May 07, 2010

Must Watch TED Videos

Are your looking for inspiring ideas about technology. In this post I had listed some of TED(Ideas worth spreading) talks best videos. You must watch these videos, if you know any best TED talk feel free please post a comment. Thanks!

Tim Berners-Lee on the next Web

Clay Shirky: How social media can make history

Pattie Maes and Pranav Mistry demo SixthSense

Dan Pink on the surprising science of motivation

Pranav Mistry: The thrilling potential of SixthSense technology

Jane McGonigal: Gaming can make a better world

Evan Williams on listening to Twitter users


How Photography Connects Us David Griffin from National Geographic

James Cameron: Before Avatar ... a curious boy


Eric Giler demos wireless electricity


Friday, April 09, 2010

Free SMTP Mail Server for Your Web Application.

How to configure free SMTP mail server to your web project with Gmail account. I had implemented at 9lessons labs to sending email notifications using my gmail account. I did this with support of postageapp.com - the easier way to send email from web applications. It is simple and very easy to configure so use it and add email support to your web application.

Eg:labs.9lessons.info - Email notifications forgot password, comments and connecting friend.
Free SMTP Connect
Sunday, April 04, 2010

Just One Dollar Invested on 9lessons.

I received lot of email questions from my readers that asked to me how much you paying for hosting?, where you hosted?, what is your bandwidth limit? like that. So today I want to answer all the questions. I had invested only one dollar for domain name 9lessons.info at Godaddy.

bog investment
Saturday, January 09, 2010

What is Virtual Memory ?

My senior and friend Santosh Behura had posted an article about Virtual Memory with real life example. It's a useful document.

We believe, human are creator of all Definition of computer System. So we must have brought above word from our life. Let’s analyze and find out the correct explation of VIRTUAL MEMORY

What is Virtual Memory

Original Post Link : Click Here
Saturday, December 19, 2009

Free Online PC

Are you looking for free online personal computer gigabytes of memory, applications, search and players with installation. It's just like a personal computer just take a look this post. If you know any new please comment Thanks!

Glide OS 3.0 - 20 GB free memory word processor, spread sheets, presentations, calender, music players and photo editors, it supports 250 file formats.

Saturday, December 12, 2009

Must Read Documents.

Are you looking for web software architecture documents, I really love these. Take a look at this list of interesting documents. If you want to suggest any new links please comment thanks!

Listen to twitter search results. tweetrad.io

Wednesday, November 18, 2009

Press Enter to Search - Google Future Advertising Plan.

Have you seen Google is experimenting out a search page (google.co.uk) with visually nothing else instead of search button text saying “press enter to search”. My view Google will use blank place on home page. Last week I read an article on Mashable ( An Ad on Google’s Homepage ).


Monday, October 12, 2009

Send Mail using SMTP and PHP.

This post about "Sending Mail using SMTP and PHP". Now you can send emails with SMTP authentication using this script. Every mail needed server authentication, So you have to buy mail server. It's very useful you can implement this on your web projects.

Send Mail using SMTP and PHP
This tutorial contains three files.

- Index.php
- SMTPconfig.php // SMTP Server Cofiguration
- SMTPClass.php // SMTP Mail Sending Class

Monday, April 27, 2009

Email Tracing Web Applications.

I want to suggest you a list of some email and ip-address tracking web applications. Use it and find sender's original ip-address.

You have to copy and paste the mail original header into email tracing text box.



ip-adress.com link

An IP address (Internet Protocol Address) is a logical address of a network adapter. The IP address is unique and identifies computers on a network. An IP address can be private, for use on a LAN, or public, for use on the Internet or other WAN. Checkout our Internet Speedtest Tool, DNS Tools and Reverse IP address.


Saturday, January 03, 2009

My Best Applications in Year 2008

The year 2008 I was addicted some interesting Applications. Take a look at this fantastic applications list.




1.Zenbe Email

Zenbe is a powerful free email it's really enlighten nice Ajax applications. configure all the email pop3 setting easy way and extra applications Facebook, twitter, and G talk. Click Here


2.Blogger

eBlogger is an excellent platform for bloggers without any investment. Just customize the XML template code.Click Here


3.Twitter

Twitter is a micro blogging service for friends, family, and co–workers to communicate and stay connected through the exchange of quick, frequent answers to one simple question: What are you doing?My Profile Here


4.ReadwriteWeb: Technology News blog.

Readwriteweb is a Technology news blog, Richard MacManus is the Founder and Editor. My daily Web technology news paper.Read Here


5.Delicious:Music Player

Delicious is an social bookmarking site, save a new bookmark in delicious Server .My Bookmarks Here


6.SongBird:Music Player

SongBird is is an open-source Mozilla product customizable music player that's under active development.Download Here



Indian Stock Market Story

Sunday, November 09, 2008

Creative way to Explain Technology in Videos.

Are you looking for a easy way to understand technology? This videos is an usefull inspiration.


Yesterday I was looking for something interseting and original to make a short video clips to explain RSS technology. So i find on Youtube stunning videos of Common Craft.



RSS : Really Simple Syndication

Twitter.com : Free social networking and micro-blogging service.
del.icio.us : Social Bookmarking


Do you have an video presentations? Add a comment with you link!
Friday, October 24, 2008

Why Java is The Most Popular Language now?

Java is definitely the most popular programming language now, why? Why C,C++ and C# is not popular like Java?

Every Operating system having some executable formats
Eg. Windows - .exe, .cmd, .bat
Eg. Linux - .bin

These files operating system execute directly. Then what about .mp3,.class,.avi...... file. These files Windows can not execute directly its taking media player(Supporters) help.

Winamp software understant the .mp3 file formate. So Windows, Linux Operting System execute this file with the help of Media Players.

Same way after compile the C, C++ programs Compiler creates a executable file (.exe)

Eg : 9lessons.c ----> 9lessons.exe

Windows Operating System Directly access this 9lessons.exe file and print the output. But in Linux(os) can not understand this *.exe format. So C, C++ Dependent Languages

But Java Compiler convert .java file to .class format. Windows execute this file with the help of JRE (Java Runtime Enviroment).

Sun Microsystems Providing Different JREs for Different Operating System


Virus Programmer's Main Aim to interrupt the User's work. So the programmer creates a virus file in Operating System Executable format like .exe, .cmd, .bat (for windows)

If you did a project in C, C++ Language. If any virus attack means it damage the total executable(.exe) files. so C, C++ project files also damage. But java file creates a .class file its like byte code formate. If attact means JRE (Java Runtime Enviroment) only damage. So you java project safe....

What about .Net. It is a best software development package. Why it's not independent ?.

Microsoft People can Write the code for .Net Independent platform. If they will make the next moment onwards no one will buy the Windows Operating System.

Company business aspects they will give Preference to open source operating System like Linux and Solaris.

C, C++ --> Console application programs
Java --> Console - Windows Frames - Web

Links :
Java (JDK) Bin Directory Files Information
Analysis of a Java Class
What Web Server Do?
Google Search Architecture Diagram Overview
The Stock Market Story

Most Popular Articles:-Most Popular Articles Links

If any mistakes please comment me...
Sunday, September 28, 2008

Google Search Major Data Structures Documentation

Google Search Major Data Structures Documentation submited by Sergey Brin and Lawrence Page in Stanford University

Previous Article Link : Google Search Architecture Diagram Overview

Google's data structures are optimized so that a large document collection can be crawled, indexed, and searched with little cost. Although, CPUs and bulk input output rates have improved dramatically over the years, a disk seek still requires about 10 ms to complete. Google is designed to avoid disk seeks whenever possible, and this has had a considerable influence on the design of the data structures.

1. BigFiles

BigFiles are virtual files spanning multiple file systems and are addressable by 64 bit integers. The allocation among multiple file systems is handled automatically. The BigFiles package also handles allocation and deallocation of file descriptors, since the operating systems do not provide enough for our needs. BigFiles also support rudimentary compression options.

2.Repository

The repository contains the full HTML of every web page. Each page is compressed using zlib (see RFC1950). The choice of compression technique is a tradeoff between speed and compression ratio. We chose zlib's speed over a significant improvement in compression offered by bzip. The compression rate of bzip was approximately 4 to 1 on the repository as compared to zlib's 3 to 1 compression. In the repository, the

Repository Data Structure





documents are stored one after the other and are prefixed by docID, length, and URL as can be seen in Figure. The repository requires no other data structures to be used in order to access it. This helps with data consistency and makes development much easier; we can rebuild all the other data structures from only the repository and a file which lists crawler errors.

3. Document Index

The document index keeps information about each document. It is a fixed width ISAM (Index sequential access mode) index, ordered by docID. The information stored in each entry includes the current document status, a pointer into the repository, a document checksum, and various statistics. If the document has been crawled, it also contains a pointer into a variable width file called docinfo which contains its URL and title. Otherwise the pointer points into the URLlist which contains just the URL. This design decision was driven by the desire to have a reasonably compact data structure, and the ability to fetch a record in one disk seek during a search

Additionally, there is a file which is used to convert URLs into docIDs. It is a list of URL checksums with their corresponding docIDs and is sorted by checksum. In order to find the docID of a particular URL, the URL's checksum is computed and a binary search is performed on the checksums file to find its docID. URLs may be converted into docIDs in batch by doing a merge with this file. This is the technique the URLresolver uses to turn URLs into docIDs. This batch mode of update is crucial because otherwise we must perform one seek for every link which assuming one disk would take more than a month for our 322 million link dataset.

4. Lexicon

The lexicon has several different forms. One important change from earlier systems is that the lexicon can fit in memory for a reasonable price. In the current implementation we can keep the lexicon in memory on a machine with 256 MB of main memory. The current lexicon contains 14 million words (though some rare words were not added to the lexicon). It is implemented in two parts -- a list of the words (concatenated together but separated by nulls) and a hash table of pointers. For various functions, the list of words has some auxiliary information which is beyond the scope of this paper to explain fully.


5. Hit Lists

A hit list corresponds to a list of occurrences of a particular word in a particular document including position, font, and capitalization information. Hit lists account for most of the space used in both the forward and the inverted indices. Because of this, it is important to represent them as efficiently as possible. We considered several alternatives for encoding position, font, and capitalization -- simple encoding (a triple of integers), a compact encoding (a hand optimized allocation of bits), and Huffman coding. In the end we chose a hand optimized compact encoding since it required far less space than the simple encoding and far less bit manipulation than Huffman coding. The details of the hits are shown in Figure.

Our compact encoding uses two bytes for every hit. There are two types of hits: fancy hits and plain hits. Fancy hits include hits occurring in a URL, title, anchor text, or meta tag. Plain hits include everything else. A plain hit consists of a capitalization bit, font size, and 12 bits of word position in a document . Font size is represented relative to the rest of the document using three bits (only 7 values are actually used because 111 is the flag that signals a fancy hit). A fancy hit consists of a capitalization bit, the font size set to 7 to indicate it is a fancy hit, 4 bits to encode the type of fancy hit, and 8 bits of position. For anchor hits, the 8 bits of position are split into 4 bits for position in anchor and 4 bits for a hash of the docID the anchor occurs in. This gives us some limited phrase searching as long as there are not that many anchors for a particular word. We expect to update the way that anchor hits are stored to allow for greater resolution in the position and docIDhash fields. We use font size relative to the rest of the document because when searching, you do not want to rank otherwise identical documents differently just because one of the documents is in a larger font.

Forward and Reverse Indexes and the Lexicon






The length of a hit list is stored before the hits themselves. To save space, the length of the hit list is combined with the wordID in the forward index and the docID in the inverted index. This limits it to 8 and 5 bits respectively (there are some tricks which allow 8 bits to be borrowed from the wordID). If the length is longer than would fit in that many bits, an escape code is used in those bits, and the next two bytes contain the actual length.

6. Forward Index

The forward index is actually already partially sorted. It is stored in a number of barrels (we used 64). Each barrel holds a range of wordID's. If a document contains words that fall into a particular barrel, the docID is recorded into the barrel, followed by a list of wordID's with hitlists which correspond to those words. This scheme requires slightly more storage because of duplicated docIDs but the difference is very small for a reasonable number of buckets and saves considerable time and coding complexity in the final indexing phase done by the sorter. Furthermore, instead of storing actual wordID's, we store each wordID as a relative difference from the minimum wordID that falls into the barrel the wordID is in. This way, we can use just 24 bits for the wordID's in the unsorted barrels, leaving 8 bits for the hit list length.

7. Inverted Index

The inverted index consists of the same barrels as the forward index, except that they have been processed by the sorter. For every valid wordID, the lexicon contains a pointer into the barrel that wordID falls into. It points to a doclist of docID's together with their corresponding hit lists. This doclist represents all the occurrences of that word in all documents.

An important issue is in what order the docID's should appear in the doclist. One simple solution is to store them sorted by docID. This allows for quick merging of different doclists for multiple word queries. Another option is to store them sorted by a ranking of the occurrence of the word in each document. This makes answering one word queries trivial and makes it likely that the answers to multiple word queries are near the start. However, merging is much more difficult. Also, this makes development much more difficult in that a change to the ranking function requires a rebuild of the index. We chose a compromise between these options, keeping two sets of inverted barrels -- one set for hit lists which include title or anchor hits and another set for all hit lists. This way, we check the first set of barrels first and if there are not enough matches within those barrels we check the larger ones.
mailxengine Youtueb channel
Make in India
X