Posted by: pvibeesh on: April 22, 2009
Please have a try
Check the encoding of your ci_sessions database table field
change it to utf8_general_ci
Posted by: pvibeesh on: March 18, 2009
tinyMCE.activeEditor.setContent(content);
Posted by: pvibeesh on: March 2, 2009
$this->load->library(“image_lib/”,$config);
for loop:
$this->image_lib->initialize($config);
end for loop
When using this library repeatedly it will initialize the image properties at once only.
It uses the existing instance for the remaining calls
To solve this problem call the initalize fucnction manually.
Posted by: pvibeesh on: February 13, 2009
when someone trying to or two conditions using active record database library in codeigniter
Eg:
$this->db->from(‘posts’);
$this->db->where(‘id’, $id);
$this->db->like(‘title’, $title);
$this->db->like(‘body’, $body);
$this->db->or_like(‘author’, $author);
You can do it like this
$this->db->from(‘posts’);
$this->db->where(‘id’, $id);
$this->db->where(‘(`title` LIKE \’%’.$title.’%\’ OR `body` LIKE \’%’.$body.’%\’ OR `author` LIKE \’%’.$author.’%\’)', NULL, FALSE);
// Query:
// SELECT * FROM (`posts`) WHERE (`title` LIKE ‘%ach%’ OR `text` LIKE ‘%ach%’ OR `author` LIKE ‘%ach%’) AND `id` [...]
Posted by: pvibeesh on: October 15, 2008
http://www.linuxhaxor.net/2008/10/14/15-tips-for-a-better-linux-experience/
Posted by: pvibeesh on: October 15, 2008
Recovering data from damaged media can be handled by several Linux tools including some LiveCD, specifically built to help recover data. Parted Magic, Ubuntu Rescue Remix, SystemRescueCd, Foremost (data recovery), Ddrescue.
Posted by: pvibeesh on: October 15, 2008
If you dual boot with windows, accessing Linux file system from your windows installation might be important for you. There are three windows applications that can help you do this: Explore2fs, Ext2 Installable File System, DiskInternals Linux Reader.
Posted by: pvibeesh on: September 4, 2008
Style
div.block div.block-header-l {
height:23px;
width:7px;
float:left;
position:absolute;
background:url(“images/block-header_bg-l.png”);
background-position:0pt;
background-repeat:no-repeat;
}
div.block div.block-header-r {
overflow:hidden;
padding-left:8px;
height:23px;
font-family: Tahoma,Helvetica,Arial Narrow;
background:url(“images/right.png”) no-repeat 100% 0pt;
font-weight:bold;
line-height:1.9em;
color: #02576b;
}
HTML
<div style=”margin:0pt;”>
<div class=”block-header-l”> </div>
<div class=”block-header-r”> <?php print $block->subject ?> </div>
</div>
Posted by: pvibeesh on: August 7, 2008
Images not attached
<html>
<head>
<style>
div#popup_dialog {
width:400px;
background-color:white;
}
div.top-left {
float:left;
background-image:url(“header_left.png”);
width:350px;
background-repeat:no-repeat;
}
div.top-right {
float:left;
background-image:url(“header_right.png”);
background-repeat:no-repeat;
width:50px;
clear:right;
}
div.footer-left {
float:left;
background-image:url(“footer_left.png”);
width:350px;
background-repeat:no-repeat;
}
div.footer-right {
float:left;
background-image:url(“footer_right.png”);
background-repeat:no-repeat;
width:50px;
}
div.dialog-content{
border-right:1px solid #88b187;
border-left:1px solid #88b187;
padding-left:4px;
padding-right:4px;
margin-top:-2px;
}
div.dialog-content span.content{
padding-left:4px;
padding-right:4px;
}
li {
padding-top:10px;
}
h1{
margin-top:-2px;
margin-bottom:0px;
}
div#popup_dialog span.title{
float:left;
}
div#popup_dialog span.date{
float:right;
}
</style>
<script>
function getPos(elem) {
var curleft = curtop = 0;
if (elem.offsetParent) {
do {
curleft += elem.offsetLeft;
curtop += elem.offsetTop;
} while (elem = elem.offsetParent);
return {x:curleft,y:curtop};
}
}
function getLeft(elem){
var x=0;
if (elem.calcLeft)
return elem.calcLeft;
var oElem=elem;
while(elem){
if ((elem.style)&& (!isNaN(parseInt(elem.style.borderLeftWidth)))&&(x!=0))
x+=parseInt(elem.style.borderLeftWidth);
x+=elem.offsetLeft;
elem=elem.offsetParent;
}
oElem.calcLeft=x;
return x;
}
function getTop(elem){
var x=0;
if (elem.calcTop)
return elem.calcTop;
var oElem=elem;
while(elem){
if ((elem.style)&& (!isNaN(parseInt(elem.style.borderTopWidth)))&&(x!=0))
x+=parseInt(elem.style.borderTopWidth);
x+=elem.offsetTop;
elem=elem.offsetParent;
}
oElem.calcTop=x;
return x;
}
function showpopup(id){
var left = getLeft(id) [...]
Posted by: pvibeesh on: October 31, 2007
Internet bots, also known as web robots, WWW robots or simply bots, are software applications that run automated tasks over the internet. Typically, bots perform tasks that are both simple and structurally repetitive, at a much higher rate than would be possible for a human editor alone. The largest use of bots is in web [...]
Recent Comments