http://digitalpbk.com/interview-questions/measure-4-litre-water-using-3-litre-jar-and-5-litre-jar
it into 3 litres jar
Fill the 5 litre jar and pour it into the 3 litre jar till it becomes full
Now you will have 4 litres in the 5 litre jar
Interview Questions ...
Published 1 year, 3 months ago
http://digitalpbk.com/interview-questions/number-tennis-balls-make-4-sided-pyramid-25-levels
of 2 dimensional pyramid, since this has 3 dimensions, each N2 ball requires support from (N+1)2 ,
therefore there would be N2 Balls in Nth level where N is 1,2,3,4... 25. So the answer here is
12 + 22 + 32 + 42 + 52 + .... + 252
Using this formula to calculate the sum of squares of first N integers , we can calculate the number of balls requires as
(25 x (26) x (51) ) / 6 = 5525
Interview Questions ...
Published 2 years, 2 months ago
http://digitalpbk.com/interview-questions/10-cricket-balls-one-heavier-or-lighter-find-ball-3-weighing-chances
balanced, the problem is limited to 6 7 8 9.
Step 1.2.1 : Weigh any 2 in the set against 0 1. Weigh 2
Step 1.2.1.1 : If both are balanced,
Step 1.2.1.1.1 : Weigh one of the other set against 0 and find the odd one out. Weigh 3
Step 1.2.1.2 : If both are not balanced, follow the same above in step 1.2.1.1.1. Weigh 3
Phew :D
Interview Questions ...
Published 1 year, 3 months ago
http://digitalpbk.com/jquery/drag-drop-make-dynamic-draggable-and-droppable-containers
JQuery make dynamic draggable and droppable containers
The jquery UI javascript has the Draggable and Droppable Interactions inorder to implement a drag drop UI. By default draggable and droppable containers are marked draggable and droppable by jQuery when the page loades, As shown in the code snippet below for the jQuery Drag code and jQuery Drop Code,
jQuery Drop Code using jQuery droppable
$(".dropTarget").droppable({
drop: function(event, ui) {
// Drop
Logic ...
Published 1 year, 11 months ago
http://digitalpbk.blogspot.com/2007/03/orkut-community-polls_27.html
Orkut : Community Polls
Orkut introduces a new feature for communitiesCommunity PollsYou can post a
question and a number of choices and run a poll in the community. I think the feature is now available only to a limited set of communities.Howzzat? ...
Published 4 years, 10 months ago
http://digitalpbk.blogspot.com/2008/10/when-september-ends-october-starts.html
When September ends ... October starts
Nothing technical to post this month! My laptop was sick for most of the days and it got its skeleton (motherboard) replaced. (Freely ofcourse)Seems to be working fine. Its a hectic semester! No time to even think what to do next! Universities up in next month.Waiting for something exciting to happen in my
digital world!Rest of the stuff is really really analog ;) ...
Published 3 years, 3 months ago
http://digitalpbk.blogspot.com/2007/03/google-search-for-pros.html
Google Search for Pro's
IntroGoogle is more than simply search engine, it is a multi faceted tool which can be used by professionals in all ventures. Here is the google language for searching : [site:]This modifier is used to limit search results to a specified site. Eg:orkut hacks site:digitalpbk.blogspot.com[allintitle:]This modifier when used will limit all your search queries to within the title. Eg: allintitle:the
digital me [intitle:]This modifier when used will limit first search ...
Published 4 years, 11 months ago
http://digitalpbk.blogspot.com/2007/03/auto-mounting-file-systems-in-linux.html
for FAT/FAT32 File System.Other filesystems that could be given can be found on/etc/filesystemsThe Device can be got from System > Administration >
Logical Volume Management which shows local hard drives and its name as /dev/sdaX or /dev/hdaX etc.The Directory specifies which folder must the file system be mounted into. For example if you want to mount to mnt/hddC/ the device /dev/sda8 (FAT32) , the full command is @localhost ~]$ suPassword: root@localhost ]# mkdir /mnt ...
Published 4 years, 10 months ago
http://digitalpbk.blogspot.com/2006/12/base-64-encoding.html
Base 64 Encoding
IntroductionBase 64 encoding is a method used in email systems. The email systems that where developed back in the time of Arpanet, where designed to support only Letters (A-Z,a-z) , Numbers (0-9) and some limited puncutation marks. So inorder to transfer files which can contain more than characters and
digits (for eg,a picture.jpg file), Base 64 Encoding is used. The EncodingBase 64 encoding, as the name suggests, has 64 different characters to represent all the 255 characters ...
Published 5 years ago
http://digitalpbk.blogspot.com/2007/06/json-javascript-object-notation.html
All object lies between the { }each of the properties has a label and an associated value or an array.It is specified as label : valuea , separates the label-value pairs.Arrays are enclosed in square brackets [ ] and comma separated.In short a JSON object looks likevar blog = {name: "the
Digital Me",author : "arun prabhakar",pages : ["http://url1/","http://url2/"];complexarray: [[0,10,10],[7,5,7],[1,9,8],[7,1,4]];};JSON and PHPPHP has 2 built in functions to help ...
Published 4 years, 7 months ago