// ----------------------------------------------------------------------------------------------// // ----------------------------------------------------------------------------------------------//
RSS

Free phone calls: FreeKalls launched by Bangalore student

For those who do not mind the annoyance of advertisements right in the middle of a conversation, a team of engineers in Bangalore has a free voice calling service for any part of the world. Termed FreeKall, it brings voice-over-internet-like services to those without internet access.
Read more »

  • Digg
  • Del.icio.us
  • StumbleUpon
  • Reddit
  • RSS

Add facebook chat to your site

Hi friends, today I am going to tell you a trick using which you can chat with your visitors on your blog with your facebook ID. Here is a shrt script that should be added to your blog or site.
Read more »

  • Digg
  • Del.icio.us
  • StumbleUpon
  • Reddit
  • RSS

Hack whatsapp to read friend's conversation

Hello friends, Many of us use whatsapp for chatting with friends. And I'm sure many of us might be also interested to read conversation of your friend. Some might use this trick to spy with their girlfriend/boyfriend. In fact, I too.... So, today I am going to tell one of such trick which will
Read more »

  • Digg
  • Del.icio.us
  • StumbleUpon
  • Reddit
  • RSS

Send fake (anonymous) mail to anyone

Hi friends, today I will tell you how to send e-mail to your friend with anyone's email or even from his mail. This process is called email spoofing. This can be used to  send anonymous emails. In my previous post, I have told you
Read more »

  • Digg
  • Del.icio.us
  • StumbleUpon
  • Reddit
  • RSS

Free Samples from RewardMe worth Rs 1100

Hi friends, Today I am going to tell you a freebie trick using which you can avail free samples up to Rs 100 by P&G. I have used this trick twice to get free samples from reward me. Samples will be delivered within 6-8 weeks. So register as soon as possible to get free samples.
Read more »

  • Digg
  • Del.icio.us
  • StumbleUpon
  • Reddit
  • RSS

Earn money by liking Facebook Pages


Hi friends, today I am going to tell you how to earn money using liking pages in facebook. We all use facebook, but we have never thought that liking pages can give us money. Strange but true! I think its a very good think that you are earning money by using facebook. You might have liked hundreds of pages on
Read more »

  • Digg
  • Del.icio.us
  • StumbleUpon
  • Reddit
  • RSS

Simplest method to Backtrack Emails (Email header analysis)

Hello friends, today I am going to tell you how to backtrack emails received. Emails information are stored in headers of email, reading which one can easily tack email messages, along with sender's location and IP address.

Read more »

  • Digg
  • Del.icio.us
  • StumbleUpon
  • Reddit
  • RSS

How to Password protect your external hard disk drive

Several external hard drives integrate hardware password-protected encryption. If yours is an open drive, you can use a software encryption program to prevent unauthorized users from accessing your data. If you have Windows 7 Ultimate or Enterprise edition, you can do it with the help of preinstalled utility called BitLocker Drive Encryption. Other Windows 7 editions must rely on third-party software, such as the free and open-source TrueCrypt program. Such open-source programs may seem less secure, because the source
Read more »

  • Digg
  • Del.icio.us
  • StumbleUpon
  • Reddit
  • RSS

Download youtube video without any software

Hi friends, This is an awesome trick for those who love to download youtube videos at all the places, even at their workplace. There, they don't have to download and install any additional software for downloading the youtube video.
Follow these steps:

  1. Open desired video in youtube.
Read more »

  • Digg
  • Del.icio.us
  • StumbleUpon
  • Reddit
  • RSS

Most useful and frequently used LINUX/UNIX commands with examples

Hi Geeks, This article will provide the most useful ad frequently used LINUX / UNIX commands along-with the example.

If I miss any command then don't forget to write them in comment.

Read more »

  • Digg
  • Del.icio.us
  • StumbleUpon
  • Reddit
  • RSS

How to check whether email address exists or not without sending mail (Simplest method)

Hi Friends, I dug many times on Internet to find this trick. In this article, I'll tell you how to know whether an email-ID exists or not without sending actual mail to that ID. We can accompanish this task by various methods like telnet in command prompt, or perl / php scripts, but these methods can be used effectively by the programmers or technical persons only. This
Read more »

  • Digg
  • Del.icio.us
  • StumbleUpon
  • Reddit
  • RSS

Send WhatsApp message without using any number

Hi friends, In previous post I've told you about how to hack your friend's whatsapp to read their conversation. In this post, I'll tell you how can you use WhatsApp without using your mobile number, i.e. WhatsApp without using any number. Friends, you might be knowing that Facebook has launched web version of the WhatsApp currently for the chrome browser
Read more »

  • Digg
  • Del.icio.us
  • StumbleUpon
  • Reddit
  • RSS

What is Net Neutrality and why should I vote

What is Net Neutrality?
In simple terms, Net neutrality means if we are paying ISP (Internet Service Provider) for data, then we should be free to decide what to browser, and must not be decided by ISP. As per the new norms of TRAI (Telecom regulation authority of India), you will have to pay additional charges for Whatsapp, facebook etc etc apart from your normal data plan. Moreover ISP will decide the speed of the site. that means, if any company say facebook.com has paid your ISP, then facebook.com will get
Read more »

  • Digg
  • Del.icio.us
  • StumbleUpon
  • Reddit
  • RSS

How to see hidden friends' list in facebook

Hi friends, you must have seen that facebook gives you different option to control your privacy settings, on your statuses, posts and even on friend list. If a friend has made their friend-list hidden (visibility set to 'Only Me') then you can't check their friends, as I've done. But now, a new Free
Read more »

  • Digg
  • Del.icio.us
  • StumbleUpon
  • Reddit
  • RSS

How to stop autoplay of videos in facebook

Hi friends, you might have seen that facebbok autoplays videos that are listed on your timeline, although muted. This involves useless consumption of data. Even if you dont want to see the video, it gets downloaded and is played. To get rid of this, you can do simple tweak in facebook setting, mentioned below.
Read more »

  • Digg
  • Del.icio.us
  • StumbleUpon
  • Reddit
  • RSS

Watch torrent videos online without downloading

Torrent is one of the most popular tool for downloading movies and other videos. But the problem with the torrent is that many of the links provided are fake, which is quite difficult to identify. Some of the torrents come with sample video quality where you can check video quality, and download it, if it satisfies you.
Read more »

  • Digg
  • Del.icio.us
  • StumbleUpon
  • Reddit
  • RSS

7 New Whatsapp features that will make you smarter

WhatsApp has recently completed 1-billion users. It has now become one of the fastest mode of communication in many countries. It has got many new features in the past few months that one should now about.
Read more »

  • Digg
  • Del.icio.us
  • StumbleUpon
  • Reddit
  • RSS

Simplest method to download facebook videos without any software




Hi friends, In last post I have illustrated you how to stop autoplay of videos on facebook, a new feature provided by facebook. This post will tell you  the simplest method to download videos from facebook, which you can't download by simply right click. This is as simple as latter.

Steps:
Read more »

  • Digg
  • Del.icio.us
  • StumbleUpon
  • Reddit
  • RSS

Block Right click on your web page



     To block right mouse click on your web page just copy the following link on your html page.



     Code:-
'<script language=JavaScript>


function clickIE4(){
if (event.button==2){
alert(message);
return false;
}
}

function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
alert(message);
return false;
}
}
}

if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}

document.oncontextmenu=new Function('alert(message);return false')

</script>' 
                                     - harshit M Shingala

  • Digg
  • Del.icio.us
  • StumbleUpon
  • Reddit
  • RSS

set pagination in php codeigniter with bootstrap css

 Pagination In php Codeigniter With Bootstrap CSS

     Model Code:--
 <?php
class department_model extends CI_Model{
function __construct()
{
// Call the Model constructor
parent
::__construct();
}

//fetch department details from database
function get_department_list($limit, $start)
{
$sql
= 'select var_dept_name, var_emp_name from tbl_dept, tbl_emp where tbl_dept.int_hod =
                tbl_emp.int_id order by var_dept_name limit ' . $start . ', ' . $limit;
$query
= $this->db->query($sql);
return $query->result();
}
}
?>
 
Controller Code:--
 
<?php
class department extends CI_Controller
{
public function __construct()
{
parent
::__construct();
$this
->load->helper('url');
$this
->load->database();
$this
->load->library('pagination');

//load the department_model
$this
->load->model('department_model');
}

public function index()
{
//pagination settings
$config
['base_url'] = site_url('department/index');
$config
['total_rows'] = $this->db->count_all('tbl_dept');
$config
['per_page'] = '5';
$config
['uri_segment'] = 3;
$choice
= $config['total_rows'] / $config['per_page'];
$config
['num_links'] = floor($choice);

//config for bootstrap pagination class integration
$config
['full_tag_open'] = '<ul class='pagination'>';
$config
['full_tag_close'] = '</ul>';
$config
['first_link'] = false;
$config
['last_link'] = false;
$config
['first_tag_open'] = '<li>';
$config
['first_tag_close'] = '</li>';
$config
['prev_link'] = '&laquo';
$config
['prev_tag_open'] = '<li class='prev'>';
$config
['prev_tag_close'] = '</li>';
$config
['next_link'] = '&raquo';
$config
['next_tag_open'] = '<li>';
$config
['next_tag_close'] = '</li>';
$config
['last_tag_open'] = '<li>';
$config
['last_tag_close'] = '</li>';
$config
['cur_tag_open'] = '<li class='active'><a href='#'>';
$config
['cur_tag_close'] = '</a></li>';
$config
['num_tag_open'] = '<li>';
$config
['num_tag_close'] = '</li>';

$this
->pagination->initialize($config);
$data
['page'] = ($this->uri->segment(3)) ? $this->uri->segment(3) : 0;

//call the model function to get the department data
$data
['deptlist'] = $this->department_model->get_department_list($config['per_page'], $data['page']);

$data
['pagination'] = $this->pagination->create_links();

//load the department_view
$this
->load->view('department_view',$data);
}
}
?>
 
View Code:--
 
<!DOCTYPE html>
<html>
<head>
<meta name='viewport' content='width=device-width, initial-scale=1.0'>
<title>PHP CodeIgniter Pagination with Bootstrap Styles | Example</title>
<!--link the bootstrap css file-->
<link rel='stylesheet' href='
<?php echo base_url('bootstrap/css/bootstrap.css'); ?>'>
</head>
<body>
<div class='container'>
<div class='row'>
<div class='col-md-12'>
<table class='table table-striped table-hover'>
<thead>
<tr>
<th>#</th>
<th>Department Name</th>
<th>Head of Department</th>
</tr>
</thead>
<tbody>
<?php for ($i = 0; $i < count($deptlist); ++$i) { ?>
<tr>
<td><?php echo ($page+$i+1); ?></td>
<td><?php echo $deptlist[$i]->var_dept_name; ?></td>
<td><?php echo $deptlist[$i]->var_emp_name; ?></td>
</tr>
<?php } ?>
</tbody>
</table>
</div>
</div>
<div class='row'>
<div class='col-md-12 text-center'>
<?php echo $pagination; ?>
</div>
</div>
</div>
</body>
</html> 
 
 
 

  • Digg
  • Del.icio.us
  • StumbleUpon
  • Reddit
  • RSS

Codeigniter Paginaton With Bootstrap css

Bootstrap Paginaton With Codeigniter

Bootstrap Paginaton With Codeigniter
Controller Code:::

Load Pagination library in your controler:

$this->load->library('pagination');


Code::-- public function view() {
// $data['result']=$this->nj_user->getallUser();
$this->load->view('layout/header');
$this->load->view('layout/sidebar');
//Pagination
$config = array();
$config['base_url'] = $this->config->base_url() . 'user/view';
$config['total_rows'] = $this->nj_user->count_user();
$config['per_page'] = 7;
$config['uri_segment'] = 3;
$choice = $config['total_rows'] / $config['per_page'];
$config['num_links'] = round($choice);
//config for bootstrap pagination class integration
$config['full_tag_open'] = '<ul class='pagination'>';
$config['full_tag_close'] = '</ul>';
$config['first_link'] = false;
$config['last_link'] = false;
$config['first_tag_open'] = '<li>';
$config['first_tag_close'] = '</li>';
$config['prev_link'] = '&laquo';
$config['prev_tag_open'] = '<li class='prev'>';
$config['prev_tag_close'] = '</li>';
$config['next_link'] = '&raquo';
$config['next_tag_open'] = '<li>';
$config['next_tag_close'] = '</li>';
$config['last_tag_open'] = '<li>';
$config['last_tag_close'] = '</li>';
$config['cur_tag_open'] = '<li class='active'><a href='#'>';
$config['cur_tag_close'] = '</a></li>';
$config['num_tag_open'] = '<li>';
$config['num_tag_close'] = '</li>';
$this->pagination->initialize($config);
$page = ($this->uri->segment(3)) ? $this->uri->segment(3) : 0;
$data['result'] = $this->nj_user->getallUser($config['per_page'], $page);
$data['link'] = $this->pagination->create_links();
$this->load->view('user/userview', $data);
$this->load->view('layout/footer');
}
Model code::-
function getallUser($limit = NULL,$start =NULL)
{
$sql='Select

  • Digg
  • Del.icio.us
  • StumbleUpon
  • Reddit
  • RSS

Block Browser Back Button using 'JS'

script to block browser back button 

Just paste this following script in your victim web page and then save page and test it on your Browser 

Done...

 Here The script :-

  <script type = 'text/javascript' >
       function preventBack(){window.history.forward();}
        setTimeout('preventBack()', 10);
        window.onunload=function(){null};
    </script><!doctype html>

 

 

    

  • Digg
  • Del.icio.us
  • StumbleUpon
  • Reddit
  • RSS

Set pagination in searching data in table [ codeigniter ]


Set Peginaation in Searching in codeigniter


Controller Code:
<?php
if (!defined('BASEPATH')) exit('No direct script access allowed');
class User extends CI_Controller {
function __construct() {
// Call the Model constructor
parent::__construct();
$this->load->helper('url');
$this->load->model('nj_user');
$this->load->library('session');
$username = $this->session->userdata('username');
if (empty($username)) {
redirect($this->config->base_url() . 'login');
}
$this->load->library('pagination');
}
public function index() {
redirect($this->config->base_url() . 'user/view');
}
//sarching
public function searchterm_handler($searchterm) {
if ($searchterm) {
$this->session->set_userdata('searchterm', $searchterm);
return $searchterm;
} elseif ($this->session->userdata('searchterm')) {
//print_r ($_SESSION['searchterm']);exit;
$searchterm = $this->session->userdata('searchterm');
return $searchterm;
} else {
$searchterm = '';
return $searchterm;
}
}
public function searh()
{
$this->load->view('layout/header');
$this->load->view('layout/sidebar');
//pagination//
$searchterm = $this->searchterm_handler($_POST, TRUE);
$config = array();
$config['base_url'] = $this->config->base_url() . 'user/searh';
$config['total_rows'] = $this->nj_user->count_search($searchterm);
$config['per_page'] = 3;
$config['uri_segment'] = 3;
$choice = $config['total_rows'] / $config['per_page'];
$config['num_links'] = round($choice);
//config for bootstrap pagination class integration
$config['full_tag_open'] = '<ul class='pagination'>';
$config['full_tag_close'] = '</ul>';
$config['first_link'] = false;
$config['last_link'] = false;
$config['first_tag_open'] = '<li>';
$config['first_tag_close'] = '</li>';
$config['prev_link'] = '&laquo';
$config['prev_tag_open'] = '<li class='prev'>';
$config['prev_tag_close'] = '</li>';
$config['next_link'] = '&raquo';
$config['next_tag_open'] = '<li>';
$config['next_tag_close'] = '</li>';
$config['last_tag_open'] = '<li>';
$config['last_tag_close'] = '</li>';
$config['cur_tag_open'] = '<li class='active'> <a href='#'>';
$config['cur_tag_close'] = '</a></li>';
$config['num_tag_open'] = '<li>';
$config['num_tag_close'] = '</li>';
$this->pagination->initialize($config);
$page = ($this->uri->segment(3)) ? $this->uri->segment(3) : 0;
//searching... //
$data['result']= $this->nj_user->get_search($searchterm, $page, $config['per_page']);
//end searching...//
$data['link'] = $this->pagination->create_links();
$data['hms'] = $page;
$this->load->view('user/userview', $data);
$this->load->view('layout/footer');
}
}
?>


Model Code:
<?php
class nj_user extends CI_model
{
function get_search($searchterm, $start, $limit)
{
$query ='select

  • Digg
  • Del.icio.us
  • StumbleUpon
  • Reddit
  • RSS

How to Remove Index.php in CODEIGNITER FRAMEWORK

Steps to remove index.php from url codeigniter :-

Config changes :- Go to “application/config/config.php”
Find below code:-
1
$config['index_page'] = 'index.php';
Replace with the below code:-
1
$config['index_page'] = '';
.htaccess changes :- If you not have any htaccess create new and place it on your root.
Go to “application/config/config.php”
Find below code
1
$config['uri_protocol'] = 'AUTO';
Replace with the below code
1
$config['uri_protocol'] = 'REQUEST_URI';
create .htaccess file and save it from '.htaccess' 

RewriteEngine on
RewriteBase /harshit_ci/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.

  • Digg
  • Del.icio.us
  • StumbleUpon
  • Reddit
  • RSS