If you have new code or idea about the post please help others to come to your logics by commenting under the post
Friday, June 27, 2025
MCQ Question Kerala Cooperative Society
MCQ Question Kerala Cooperative Society
Sunday, February 27, 2022
Tuesday, February 2, 2021
Forensic science Exam | KERALA PSC | 2021

Thursday, January 21, 2021
List of Nebular Icons Available
<i title="Edit" class="nb-edit" aria-hidden="true"></
.nb-minimize,
.nb-maximize,
.nb-help,
.nb-fold,
.nb-danger,
.nb-collapse,
.nb-checkmark-circle,
.nb-e-commerce,
.nb-info,
.nb-expand,
.nb-drops,
.nb-drop,
.nb-volume-mute,
.nb-volume-high,
.nb-trash,
.nb-title,
.nb-tables,
.nb-sunny,
.nb-sunny-circled,
.nb-star,
.nb-square,
.nb-square-outline,
.nb-snowy-circled,
.nb-skip-forward,
.nb-skip-forward-outline,
.nb-skip-backward,
.nb-skip-backward-outline,
.nb-shuffle,
.nb-search,
.nb-roller-shades,
.nb-rainy,
.nb-power,
.nb-power-circled,
.nb-plus,
.nb-plus-circled,
.nb-play,
.nb-play-outline,
.nb-phone,
.nb-person,
.nb-pause,
.nb-pause-outline,
.nb-partlysunny,
.nb-paper-plane,
.nb-notifications,
.nb-menu,
.nb-loop,
.nb-loop-circled,
.nb-locked,
.nb-location,
.nb-list,
.nb-lightbulb,
.nb-layout-two-column,
.nb-layout-sidebar-right,
.nb-layout-sidebar-left,
.nb-layout-one-column,
.nb-layout-default,
.nb-layout-centre,
.nb-keypad,
.nb-home,
.nb-heart,
.nb-grid-b,
.nb-grid-b-outline,
.nb-grid-a,
.nb-grid-a-outline,
.nb-gear,
.nb-flame-circled,
.nb-email,
.nb-edit,
.nb-compose,
.nb-coffee-maker,
.nb-cloudy,
.nb-close,
.nb-close-circled,
.nb-chevron-up,
.nb-chevron-up-outline,
.nb-chevron-right,
.nb-chevron-right-outline,
.nb-chevron-left,
.nb-chevron-left-outline,
.nb-chevron-down,
.nb-chevron-down-outline,
.nb-checkmark,
.nb-bar-chart,
.nb-audio,
.nb-arrow-up,
.nb-arrow-thin-up,
.nb-arrow-thin-right,
.nb-arrow-thin-left,
.nb-arrow-thin-down,
.nb-arrow-right,
.nb-arrow-retweet,
.nb-arrow-left,
.nb-arrow-dropup,
.nb-arrow-dropright,
.nb-arrow-dropleft,
.nb-arrow-dropdown,
.nb-arrow-down,
.nb-angle-double-right,
.nb-angle-double-left,
.nb-alert
Toastr doesn't appear nebular theme | angular 7
While navigating from one page to another pages the toastr not working
Temporary Work around:
Go to node_modules/@nebular/theme/components/toastr/toastr.service.jsGo to line no:103
NbToastrContainerRegistry.prototype.get = function (position) {
var logicalPosition = this.positionHelper.toLogicalPosition(position);
// if (!this.overlays.has(logicalPosition)) {
this.instantiateContainer(logicalPosition);
// }
return this.overlays.get(logicalPosition);
};
Tuesday, September 15, 2020
Javascript Helpers for urgent reference
Javascript date and time, Indian date format, todays date
date format d-m-Y H:i:s
var m = date.getMonth() + 1;
var y = date.getFullYear();
var H= date.getHours();
var i= date.getMinutes();
var s= date.getSeconds();
var mydate=d+'-'+m+'-'+y+' '+H+':'+i+':'+s;
add background image with javascript
How to set a buttons innerHTML as an image?
How to validate an email address in JavaScript
How to generate a simple popup contact us using jQuery
How to use check all checkboxes using jQuery?
How to select all checkboxes using jQuery?
Friday, September 4, 2020
Senior RPA Engineer vacancy kerala 2020 , senior data engineer vacancy kerala 2020
Sunday, May 24, 2020
Wordpress Pdf Annotation Plugin | PHP API for annotation.js | API for Insert,Update and Delete annotation
This plugin will provided you full control over data as it save it in your wordpress database itself.
With the plugin
Plugin for annotation
Viewer page template for viewing all pages in pdf file with scroll
Manage annotation page for edit the text used for annotation and for deleting the annotation
Tuesday, December 1, 2015
Redirection problem while taking any site (solution works for me)
I am sharing the solution that works for me,please comment if its work for you.
Step-1
The problem is mainly from the modem,you need to type an address to get the setting of the modem from your browser.
Generally it will be
http://192.168.1.1
may be you all have set with the default user name and password.
username:admin
password:admin
Step-2
In the setting there will be option to set the DNS or menu name like DNS SETUP,if you find you will able to see some numbers like 8.8.8.8,80.126.84.32 like that you need to clear it and set it to automatic mode and save(apply setting).
Step-3
This problem may come again,if you not changed you default user & password,so got to chage password option of you modem setting and change the password at once.
Step-4
Restart you modem and clear you browsing data and cookies from your browser and enjoy a problem free browsing.
I think this helps you.................
Wednesday, September 16, 2015
PHP Date and Time Format Validation (DD/MM/YYYY)(HH:MM)
{
$arr_date=explode("/",$mydate);
$day=$arr_date[0];
$month=$arr_date[1];
$year=$arr_date[2];
if(checkdate($month,$day,$year))
{
return true;
}
else
{
return false;
}
}
function checkmytime($mytime)
{
$arr_time=explode(":",$mytime);
if(count($arr_time)>0)
{
$hh_time=$arr_time[0];
$mm_time=$arr_time[1];
if(intval($hh_time)<24 && intval($mm_time)<60)
{
return true;
}
else
{
return false;
}
}
else
{
return false;
}
}
Thursday, August 6, 2015
input type number remove arrow (spinner) using css
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
-webkit-appearance: none;
margin: 0;
}
You are able to specify for particular field using class
Format
input[type=number].classname{}
Monday, August 3, 2015
From Date and To date Validation Jquery date picker
$(function () {
$("#txtFrom").datepicker({
numberOfMonths: 2,
onSelect: function (selected) {
var dt = new Date(selected);
dt.setDate(dt.getDate() + 1);
$("#txtTo").datepicker("option", "minDate", dt);
}
});
$("#txtTo").datepicker({
numberOfMonths: 2,
onSelect: function (selected) {
var dt = new Date(selected);
dt.setDate(dt.getDate() - 1);
$("#txtFrom").datepicker("option", "maxDate", dt);
}
});
});
if you are using dd-mm-yy format use this code
sd=txt.split("-");
actdate=sd[1]+"/"+sd[0]+"/"+sd[2];
var dt = new Date(actdate);
dt.setDate(dt.getDate() +5);
var mydate=dt.getDate()+'-'+(dt.getMonth()+1)+'-'+dt.getFullYear();
Thursday, February 12, 2015
slideToggle slides down up and down again
I faced similar problem,my error comes due to repeatation of code in other part of page.I think this may help you too solve problem
Sunday, January 26, 2014
Simple Regular Expression PHP
$subject = "abcDef123aa456";
$pattern = '/[0-9]+/';
preg_match_all($pattern, $subject,$matches);
print_r($matches);
?>
you will get the exact pattern..
Result:
Array ( [0] => Array ( [0] => 123 [1] => 456 ) )
<?php
$subject = "abcDef123aa456";
$pattern = '/[0-9]*/';
preg_match_all($pattern, $subject,$matches);
print_r($matches);
?>
you will be able to find at which position the numeric starts...
Result:
Array ( [0] => Array ( [0] => [1] => [2] => [3] => [4] => [5] => [6] => 123 [7] => [8] => [9] => 456 [10] => ) )
Wednesday, December 18, 2013
WP Hit Counter Wordpress Plugin:-Function which helps you to show counter anywhere in template file
WP Hit Counter
?> close: Friday, August 30, 2013
User-Access-Manager wordpress plugin sort field at user.php in admin
Added the following code below the file "user-access-manager.php" in your plugin folder.
function user_sortable_columns( $columns) {
$columns['uam_access'] =array( 'uam_access', 'desc' );
return $columns;
}
add_filter( 'manage_users_sortable_columns', 'user_sortable_columns' );
function user_column_orderby( $vars ) {
if ( isset( $vars['orderby'] ) && 'uam_access' == $vars['orderby'] ) {
$vars = array_merge( $vars, array(
'meta_key' => 'uam_access',
'orderby' => 'meta_value'
) );
}
return $vars;
}
add_filter( 'request', 'user_column_orderby' );
add_action('pre_user_query', 'status_order_in_user_query');
function status_order_in_user_query($query){
// print_r($query); // for debugging
if('uam_access'==$query->query_vars['orderby'] && 'DESC'==$query->query_vars['order']) {
$query->query_where .= " and id NOT IN (SELECT object_id FROM wp_uam_accessgroup_to_object
WHERE object_type = 'user')";
}
}
Tuesday, June 25, 2013
Simple PHP Pagination
https://docs.google.com/file/d/0B-WSEGv0VCtJYXRRQkRIVlFpNEE/edit?usp=sharing
Make this as pagination.php and include to your php file
<?php include("pagination.php");
echo pagination(20, $page, 'mypage.php?page=', $count);
?>
In mypage.php you should use the sql query according to pagination
<?php
$query="select * from table "
if (isset($_GET['page'])) {
$start = ($_GET['page'] - 1) * 20;
$query.=" limit $start,20";
} else {
$query.=" limit 20";
}
$result=mysql_fetch_array(mysql_query($query));
?>
Download any file with php using header
Step1:Copy the code to a page called download.php(note:dont need any html tags should only contains this code)
Step2:Create a link with your file name
<a href="download.php?filename=myfile.jpg">Download</a> in your page(not at download page)
<?php
//BUILD THE FILE INFORMATION
$file = $_REQUEST['filename'];
//CREATE/OUTPUT THE HEADER
header("Content-type: application/force-download");
header("Content-Transfer-Encoding: Binary");
header("Content-length: ".filesize($file));
header("Content-disposition: attachment; filename=\"".basename($file)."\"");
readfile($file);
?>

















