Skip to main content

Posts

Showing posts from May, 2013

Water Jug Problem: 5 liter jug and 7 liter jug are provided. Measure 6 liter within the 7 liter jug.

Let, we have infinite supply of water and two jugs capable to contain exactly 7 and 5 liters. Measure 6 liter within in 7 liter jug. Step 01: Fill up the 7 liter => (7, 0) Step 02: Pour into the 5 liter => (2, 5) Step 03: Empty the 5 liter => (2, 0) Step 04: Pour into the 5 liter => (0, 2) Step 05: Fill up the 7 liter => (7, 2) Step 06: Pour into the 5 liter => (4, 5) Step 07: empty the 5 liter => (4, 0) Step 08: Pour into the 5 liter => (0, 4) Step 09: Fill up the 7 liter => (7, 4) Step 10: Pour into the 5 liter => (6,5) Step 11: Empty the 5 liter => (6, 0) Now 7 liter jug contain 6 liter water. -- Cheers !!!

A complete Guide to MacBook Pro 13" Unibody Mid 2009 Installation and Troubleshoot

Installing MacBook Pro 13" Unibody Mid 2009 AirPort Antenna Installing MacBook Pro 13" Unibody Mid 2009 AirPort Card Installing MacBook Pro 13" Unibody Mid 2009 Battery Installing MacBook Pro 13" Unibody Mid 2009 Clutch Cover Installing MacBook Pro 13" Unibody Mid 2009 DC-In Board Installing MacBook Pro 13" Unibody Mid 2009 Display Installing MacBook Pro 13" Unibody Mid 2009 Dual Hard Drive Installing MacBook Pro 13" Unibody Mid 2009 Fan Installing MacBook Pro 13" Unibody Mid 2009 Hard Drive Cable MacBook Pro 13" Unibody Mid 2009 Hard Drive Replacement Installing MacBook Pro 13" Unibody Mid 2009 Heat Sink Installing MacBook Pro 13" Unibody Mid 2009 LCD Installing MacBook Pro 13" Unibody Mid 2009 Left Clutch Hinge Installing MacBook Pro 13" Unibody Mid 2009 Left Speaker MacBook Pro 13" Unibody Mid 2009 Logic Board Replacement Installing MacBook Pro 13" Unibody Mid 2009 Lower Ca

How to upload Blogger templates

1. Download your Blogger XML template or Create Optimum Nutrition Opti-Men Multivitamins 2. Log in to your Blogger dashboard and go to Design > Edit HTML ( or Template > Upload/Restore > Upload ) 3. Ensure you back up your old template in case you decide to use it again. To do this, click on the "download full template" link and save the file to your hard drive. 4. Look for the section near the top where you can browse for your XML template: 5. Enter the location of your template and press "upload". 6. The HTML of your new template will now appear in the box below. You can preview your template or simply save to start using it! --- Cheers !!! For only Food Lovers

Daily Oracle DBA Checklist

ü Ensure that previous night's backup is complete and there are no RMAN errors in the backup logs. ü Ensure that any exports which are part of the backup are complete and the dump files    compressed. ü Check the alert log for any ORA- errors - also for messages like 'Checkpoint not complete etc'. ü Ensure that the cron job for truncating, saving and renaming alert logs is working - verify the   same. ü Ensure that the archive redo log files are compressed and have been deleted. Only files for  current and previous day should be present. ü All tablespaces should be less than 95% full - run the coalesce command on all tablespaces to   reduce fragmentation. Ensure that space in the TEMP tablespace is released and is 100% free   at the beginning of the day. ü Enough contiguous free space is available in all tablespaces for objects to extend if required. ü Backup the control file to trace so that every day we have a outline of the files an

Oracle SQL Tuning Cheat sheet

  ORACLE SQL TUNING CHET SHEET -- Create a function-based index create index idx_rtrim_title on titles ( rtrim(title)); Autotrace commands set autotrace on  set autotrace on explain set autotrace traceonly set autotrace traceonly explain set autotrace traceonly statistics Alter session commands -- enable commands alter system enable parallel query; alter system enable parallel dml; alter system enable parallel ddl; -- change optimizer parms alter session set optimizer_index_cost_adj=20 -- default is 100; alter session set optimizer_index_caching=50 -- default is 0; alter session set "_optimizer_cost_model"=io;  -- default is cpu; -- change optimizer modes alter session set optimizer_mode=rule; alter session set optimizer_mode=first_rows_1; alter session set optimizer_mode=first_rows_10; alter session set optimizer_mode=first_rows_100; alter session set optimizer_mode=first_rows_1000; alter session set op