Sunday, April 12, 2009

Token Bucket Implemetation

The 'Token bucket' algorithm is commonly used for doing rate limiting of packets in routers.The concept is real simple - A bucket is filled periodically with some tokens equal to the 'Allowed packet rate', each arriving packet consumes available tokens and passes through the bucket. If an arriving packet doesn't find any tokens available when it reaches the router, then obviously the packet rate has exceeded the allowed rate and it has to be dropped. Now, this is real simple. One alteration to this simple scheme is to add 'Burst handling' ability. This is very easily done by setting the 'Bucket size' to some value higher than the packet rate. So, if say 10000 bytes per second is the rate allowed, then if you make the bucket size as 30000, then the tokens can accumulate to 30000 tokens, when the arrival rate is lesser than 10K and these accumulated tokens allow 'Bursts' of up to 30KBps.

Singly Linked List-Insertion & Deletion

Data structure - Singly Linked List

A simple linked list is only comprised of a pointer to the first list element. List elements themselves store a value (usually an object) and a reference to the next list element.

we discuss the basic 2 operations 

1]insertion of element to the linked list-

possible mistakes while inserting the elements

2]deletion of inner element from the list

 when deleting an inner list element

Thursday, April 9, 2009

Google Data Centers

watch the google Data container center

how they are build?

how they are maintained?

watch the video

Pune University Computer Engineering Syllabus

for all years of computer Engineering (Pune University) Syllabus visit

Computer Syllabus for all years

How to set up a site and connect Dreamwever 8 to wamp

First of all make sure your website files are in the WWW folder like this C:\wamp\www 


1. In DW8 Click 'New site' then click the advanced tab. 

2. In the category 'Local Info' enter your site name my id going to be 'newsite' 

3. Then enter the local route folder C:\wamp\www\newsite\ 

4. Tick the refresh first list box 

5. Enter your default images C:\wamp\www\newsite\images 

6 Tick the 'links are relative to document' radio button 

7. Enter your HTTP address which would be [localhost] site/ 

8. Click 'Enable cache' (leaving case sensitive links unticked). 

9. In the Category under 'Local Info' click the 'Remote info'. 

10. Click on the 'Access' dropdown and select 'Local/Network' 

11. Enter your remote folder C:\wamp\www\newsite\ 

12. In the Category under 'Remote info' click 'Testing Server' 

13. Select server model 'PHP MySql' 

14. 'Access' Select Local/Network' 

15. Your testing server folder should show C:\wamp\www\newsite\ 

16. Your URL prefix enter [localhost] 

17. Then click 'OK' 

Your website is set up. 


Now to connect your website to your Database using DW8. 
I'm assuming you have data in your database, other wise there are other tutorials showing you how to do that. 

1. Make sure your wamp is on and all services are running so the icon should be white. 

2. In DW8 open your index page. 

3. Go to 'window >and click Database' (so its ticked). and it should show up on the right of your screen if its not there already. 

4. under the Tab 'Databases' click on the +plus sign and select mysql connection 

5. A box comes up, the first thing its asking for is 'connection name' I'm entering 'newsite' 

6. Then it wants 'mysql server' we need to write 'localhost' 

7. Then you need to enter your username for your database 

8. Enter your password for you database. 

9. Click the select button and another box will come up asking you to select which database you want to connect to, just select the one you want then click OK. 

10. Then Click Ok in the other box. 

12. Now you should be able to view your website in your browser. Open up a browser and type in [localhost] 


And thats it. I hope I Helped.

if you still have queries you can ask me..

Bill Gate's Advice...it's your choice

----------Whether you like Bill Gates or not...this is pretty
cool. Here's some advice Bill Gates recently dished out
at a high school speech about 11 things they did not
learn in school. He talks about how feel-good,
politically correct teaching has created a full
generation of kids with no concept of reality and how
this concept sets them up for failure in the real
world.

  RULE 1
  Life is not fair - get used to it.

  RULE 2
  The world won't care about your self-esteem. The world
  will expect you to accomplish something BEFORE you feel
  good about yourself.

  RULE 3
  You will NOT make 40 thousand dollars a year right out
  of high school. You won't be a vice president with
  car phone, until you earn both.

  RULE 4
  If you think your teacher is tough, wait till you get a
  boss. He doesn't have tenure.

  RULE 5
  Flipping burgers is not beneath your dignity. Your
  grandparents had a different word for burger flipping
  they
  called it Opportunity.

  RULE 6
  If you mess up,it's not your parents' fault, so don't
  whine about your mistakes, learn from them.

  RULE 7
  Before you were born, your parents weren't as boring as
  they are now. They got that way from paying your bills,
  cleaning your clothes and listening to you talk about
  how cool you are. So before you save the rain forest
  from the parasites of your parent's generation, try
  delousing the closet in your own room.


  RULE 8
  Your school may have done away with winners and losers,
  but life has not. In some schools they have abolished
  failing grades and they'll give you as many times as
  you want to get the right answer. This doesn't bear the
  slightest resemblance to ANYTHING in real life.

  RULE 9
  Life is not divided into semesters. You don't get
  summers off and very few employers are interested in
  helping you find yourself. Do that on your own time.

  RULE 10
  Television is NOT real life. In real life people
  actually have to leave the coffee shop and go to jobs.

  RULE 11
  Be nice to nerds. Chances are you'll end up working for
  one.