Strict Standards: Declaration of Walker_Page::start_lvl() should be compatible with Walker::start_lvl(&$output) in /home/pramod/public_html/blog/wp-includes/classes.php on line 576 Strict Standards: Declaration of Walker_Page::end_lvl() should be compatible with Walker::end_lvl(&$output) in /home/pramod/public_html/blog/wp-includes/classes.php on line 576 Strict Standards: Declaration of Walker_Page::start_el() should be compatible with Walker::start_el(&$output) in /home/pramod/public_html/blog/wp-includes/classes.php on line 576 Strict Standards: Declaration of Walker_Page::end_el() should be compatible with Walker::end_el(&$output) in /home/pramod/public_html/blog/wp-includes/classes.php on line 576 Strict Standards: Declaration of Walker_PageDropdown::start_el() should be compatible with Walker::start_el(&$output) in /home/pramod/public_html/blog/wp-includes/classes.php on line 593 Strict Standards: Declaration of Walker_Category::start_lvl() should be compatible with Walker::start_lvl(&$output) in /home/pramod/public_html/blog/wp-includes/classes.php on line 687 Strict Standards: Declaration of Walker_Category::end_lvl() should be compatible with Walker::end_lvl(&$output) in /home/pramod/public_html/blog/wp-includes/classes.php on line 687 Strict Standards: Declaration of Walker_Category::start_el() should be compatible with Walker::start_el(&$output) in /home/pramod/public_html/blog/wp-includes/classes.php on line 687 Strict Standards: Declaration of Walker_Category::end_el() should be compatible with Walker::end_el(&$output) in /home/pramod/public_html/blog/wp-includes/classes.php on line 687 Strict Standards: Declaration of Walker_CategoryDropdown::start_el() should be compatible with Walker::start_el(&$output) in /home/pramod/public_html/blog/wp-includes/classes.php on line 710 Strict Standards: Redefining already defined constructor for class wpdb in /home/pramod/public_html/blog/wp-includes/wp-db.php on line 58 Deprecated: Assigning the return value of new by reference is deprecated in /home/pramod/public_html/blog/wp-includes/cache.php on line 99 Strict Standards: Redefining already defined constructor for class WP_Object_Cache in /home/pramod/public_html/blog/wp-includes/cache.php on line 404 Deprecated: Assigning the return value of new by reference is deprecated in /home/pramod/public_html/blog/wp-includes/query.php on line 21 Deprecated: Assigning the return value of new by reference is deprecated in /home/pramod/public_html/blog/wp-includes/theme.php on line 576 Pramod Poudel’s Blog

PHP round for a number to the nearest 0.5

June 12th, 2012

For rating, the best solution to get the nearest 0.5 precision in PHP is
round($value*2) / 2
For example:
2.2 should give 2
2.3 should give 2.5
2.25 should give 2.5

Read rest of this post »

नेपाली ठेट शब्दहरु

August 21st, 2010

केही सांस्कृतिक चिन्हारी
सबै जातिको संस्कृति तथा जातीय पहिचानका आधार संस्कार, भाषा, पोसाक, वाद्ययन्त्र, हात-हतियार ,भाँडाकुँडा, गीत-नृत्य आदि सबै थोक पर्छन्। यहाँ केही विषयको परिचय दिइँदै छ।
१.१ भेष-भूषा
दौरा: चारतिर तुना बाँधेर पुरूषले शरीरको माथिल्लो भागमा लगाउने सांस्कृतिक पोषाक हो।
सुरुवाल: पुरुषको पोसाक हो। यसको आकार सुरिलो भएकाले सुरुवाल भनिएको हो। सुरुवालको आदि रूप कछाड थियो, त्यसपछि [...]

Read rest of this post »

Explode function for pl/sql and hour changeing to minutes

May 30th, 2010

First create the type with following query.
CREATE OR REPLACE
TYPE listtable AS TABLE OF VARCHAR2 (255);
/
This is the function to explode the string.
For example we have 4:45
‘:’ is p_seperator and 4:45 is p_string and result of this function will be 285.
CREATE OR REPLACE FUNCTION explode (p_seperator IN VARCHAR2, p_string IN VARCHAR2)
RETURN listtable AS
[...]

Read rest of this post »

CodeIgniter Matrix table Implementation

May 30th, 2010

This tutorial describe how to make the data row as the column in the flexigrid implementation with codeIgniter.
for the view you should dispaly following code in main page:

Use z-index in the case table and other entity overlap the flexigrid table and so it is invisible. You can set the z-index value like 1000.ie. [...]

Read rest of this post »

Adding Print functionality in Flexigrid Implementation of CodeIgniter

December 18th, 2009

Add print button in flexgird grid in your Controller.
You should define print css in your flexigrid css.
$buttons[] = array(’separator’);
$buttons[] = array(’Print’,’print’,’printReport’);
Now, you should define printReport javascript function in end of the page of view associated with the page.
New tab for print is opened with hiding unwanted css and by location.reload(); again the css is [...]

Read rest of this post »

Big red error message after window 7 installation

December 3rd, 2009

My brother tried to install windows 7 in his new ASUS Laptop Yesterday. But he was unable to open his laptop after installation. A big red error message with “Could not find c://recovery.dat” message was appeared. He show me the error. I had not seen that type of error before.
I tried many things and at [...]

Read rest of this post »