Feeds:
Posts
Comments

Garam Masala Ingredients( 250 gm):

Sauth Sabut – 10gm

Choti Elaichi 8gm

Peepal 6gm

Tez patta 5 gm

Dal Chini 10gm

Badi Elaichi 20gm

Laung 10gm

Javitri 5gm

Jeera 100gm

Dhaniya 24gm

Kali Mirch 40gm

Star Anise 6gm

Jaiphal 6gm

Recipe

Dry fry all the ingredients one by one all the ingredients on iron tawa or kadhai or pan. Let it cool down a little bit. Grind it in grinder and keep in a air tight container.

One of the complex data-structure issues is accessing the multilevel tree that could have n number of children. We have faced a similar concern while designing the multilevel n children for the groups.

Approach:

To solve the problem we designed a depth-index map approach.

Problem:

At any point in time, we have the information for the current node selected in a tree and we want to perform a CRUD operation on it. It would be a really bad approach if we do fetch the server again to get the tree structure after performing the CRUD to get back the clean the structure of the tree.

Solution:

Now the problem was how to identify which node. This might be intensive if the operation is done on the last child of the last node or so on. The complexity of traversal to each node is number of nodes in the tree. Instead, we can leverage with space in this case and have an index-depth defined for each node in the tree.

Data-structure Used:


At each level, we are defining a map that will consist of what index it is. So if a node is at level 0, it will have an array that will just capture the index of what child it is to the root(i.e. its parent). [n]. Likewise, if the nth-child of level 0 is having m children the children will have a map like [n,m]. and lth child of m will have a map like [n,m,l]

Code Snippet for traversal:

var traverseTree = function(tree,node){
            var i;
            var maplength = node.map.length;
            level = tree;
            for(i = 0; i<maplength-1; i++){
                level = level.nodes[node.map[i]];
            }
            return level;
    };

Complexity:

Going ahead with the approach complexity of accessing a node reduces to its level in the tree.

Other Approaches and Advantage over them

There are many other libraries available like DefiantJSUnderscore.jslodash that deals with the data and claims to be finding the element in minimalist complexity. But the problem defined for these libraries were different. These libraries just act on finding the element and not on the CRUD operation done on these.

DefiantJS claims it could find the element in complex JSON in minimal Complexity. they have API defined only for search and not for CRUD operation. In the library, for searching the complex JSON is converted to XML and with provide XPATH, the element could be returned in minimal complexity. But if we want to perform CRUD converting the whole JSON to XML and XML to JSON back will be intensive operation. Thus we can’t extend DefiantJS as well.

The Underscore and lodash claim to address the CRUD operation for array and not the collection. where the data structure in the defined problem set was the collection that has nodes within the node.

Selecting the list elements

At times while listing down elements certain operations are facilitated for selected elements. for defining the selection there can be n number of approaches. In those approaches, we can either define a variable and mark it set if selected or a central variable for the list could be defined and as an when the element is selected the element index could be pushed to this indices map.

Pros and cons of either.

  1. With the indices map as an when the element is selected it could be pushed to the map. These advantages over the computation overhead while traversing the list and performing a check if selected and then do the operation by avoiding an extra check and directly performing an action based on indices on the map.
  2. Another advantage is of it is the computation for the time as the index will be maintained as an when the user is selecting the element as the manual operation latency is much higher than computational latency.

Performing operation

We know human latency is much higher than computational latency. So when an operation has to be performed on a list, maintain a list and push the indices as an when selected/deselected. Once the operation is selected to be performed on these selected elements just reverse sort the elements on the indices data-structure and then perform the operation on the list in as per the indices map. Now the question arises why to reverse sort the indices data-structure that is explained below.

Why Reverse sort indices list

Lets take an example of array = {0,1,2,3,4,5,6,7}. while selecting I may select in order with indices as {2,3}. now when I have to delete the 2nd index gets deleted first so the array becomes {0,1,3,4,5,6,7}. Now after iterating the 3rd index will be deleted. so the list becomes {0,1,3,5,6,7}. But that not what I wanted. We wanted a list like {0,1,4,5,6,7}. Thus if we reverse sort the list that makes it delete 3rd index first so the list will be {0,1,2,4,5,6,7} and after deleting the 2nd index it becomes {0,1,4,5,6,7} which is what I wanted.

In web-services we have learnt the REST calls do require the authentication header for the secure connections. But recently while working out on same I have observed that the firefox is dropping out the authentication token stored in a cookie which is required for authentication header in the REST call. surprising!!!
Initially we thought its the firefox who is culprit and behaving abruptly we also found certain links on internet that justifies the but.
But we can’t blame FF definitely there should be an explaination why is so happening. while going around for a why ??? found something that was wrong with my setup.
I observed that the token generated by the algorithm goes beyond 4k in certain scenarios and thus the cookie size goes beyond the 4K in such scenarios and FF has the cookie size limit as 4097(Beware this includes the cookie name and ‘=’) and thus everytime the entire combination goes beyond the limit the cookie doesn’t gets set and resulting into the scenario where REST call doesn’t have the authentication header set even after successful authentication resulting into authentication error.

Ingredients:

Macaroni

Mozzarella Cheese

Mayonnaise

Salt

Capsicum

Onion

Recipe:

  • Boil the macaroni with sufficient water, salt, and 1 tablespoon of oil(optional to make it non-sticky) for 10-15 min.
  • Rinse and cool it
  • Mix cheese (mozzarella),  mayonnaise salt, capsicum, onion(, etc.), and Macroni well
  • Bake it at 250 degrees celsius for 25 mins.
  • Garnish and serve.

+++++++++++++++++++++++++++++++++

In any package there are certain loadable modules which goes with libraries that has major necessary functions. These loadable modules get attached with these libraries with -module parameter. However if you use -module with the libraries itself, while compiling these loadable modules you will get the warning like:

*** Warning: Linking the shared library liborg-gnome-groupwise-features.la against the loadable module
*** libcamelgroupwise.so is not portable!

Avoid using -module parameter with main libraries of your package which would still be used by loadable code.

++++++++++++++++++++++++++++

Other issue you might face while working with linking of libraries is might be with large packages. Compiling large packages may some time lead to error

failed to set dynamic section sizes: Memory exhausted

--no-keep-memory parameter helps in such situations.

ld normally optimizes for speed over memory usage by caching the symbol tables of input files in memory. This option tells ld to instead optimize for memory usage, by rereading the symbol tables as necessary. This may be required if ld runs out of memory space while linking a large executable.

+++++++++++++++++++++++++++++++++

Undefined reference to <function> 

This error is encountered when the header files tells the declaration of function and it gets compiled but at the time of installing linker doesn’t has the information from where to pick up the libraries containing the definition of the function

This weekend i was so tired and feeling lethargic. But I should prepare some thing delicious for my husband. So I ended up with

  • Lemon Chicken
  • Palak Paneer

Palak Paneer:

Ingredients: Palak, Paneer, Fresh Lime juice, Fresh Cream. Cumin Seeds, Onion.

Remove the Palak stems and Boil the Palak with little water and salt for 2 mins.

Rinse the boiled Palak in cold water and make its puree in grinder.

Heat 1 tablespoon of oil in pan. Add cumin seeds to it.

once it starts changing the color add the chopped onions.(If u wish. saute the onions till golden rose in color).

Add green chillies to it.

Now Add Palak Puree.

make it boil and add Paneer cubes to it. Add coriader powder, turmeric powder, garam Masala and salt as per taste.

Cook it for 1 min. Then add Fresh lime juice and cream to it at an interval of atleast 30 secs.

cook it for 2 mins close lid. and remove from flame and add garnishing.

Source

Electronic Reservation Slip (ERS) – The printout in standard specified Performa containing reservation particulars, and instructions for use which can be used by the passenger along with the relevant authorizedIdentification, as travel authority for performing the journey.
Virtual Reservation Message (VRM) – A screen-shot of the e-ticket displayed through laptops/palmtops/ Mobile phone is referred as Virtual Reservation Message (VRM).
ERS/VRM along with any one of the eight prescribed ID proofs in original and the indication of the passenger(s)’ name(s) in the Reservation Chart will authorize the passenger to travel.
VRM combined with valid photo-id in original will be treated as an instrument on par with the ERS.
ERS/VRM along with one of the eight prescribed proofs of identity in original will also authorize the passenger to enter the platform on the day of journey and he/she will not be required to purchase platform ticket. ERS/VRM along with original id proof will be required to be produced on demand of Ticket Checking Staff on the platform.
Reference : Railway Board Letter No.2008/TG-I/10/P/SMS dated 20.07.2011

On Sunday I was Reading a book by Stephen W. Hawking, Theory of Everthing. In chapter 6, author says up that when matter meets up an antimatter, they both get disappear in tremendous flash of light.

In Spritualogy, it is said that when we (matter) meets up the God. we both get disappear in sudden tremendous flash of light. This phenomenon is known as MUKTI.

Since we are matter. The Thought came in my mind that, Hence GOD IS ANTIMATTER.

A very interesting package that my colleague Sridhar Manjunath has explored up on openSuse 11.4 is

Cairo-Dock

For the purpose He simply moved up the gnome-panel from bottom to top. Added up the following url into repository

http://packman.iu-bremen.de/suse/11.4/

Then he installed up the package Cairo-dock and plugins for the same.

After the Installation select Accessories from Application section or type cairo in Run Application(type Alt-F2 for Run). Then selected up Cairo-dock/ GLX-dock.

And you can get an awesome dock that runs like MAC. 🙂