Archive

Archive for the ‘Tips’ Category

Cannot load mysqli extension. Please check your PHP configuration

August 25th, 2009 11 comments

Probably you are trying to access your phpmyadmin. You will get this error  if you have more then one “php.ini” file in your system. It is kinda conflicting. For instance i have wampserver2.0 and IIS7 together in my current system. I have activated IIS7 FastCgı method to use php on it. So it has one php.ini file at path of  “c:\wamp\….” and another one in “c:\Program Files\Php” . You can get a temporary solution if you rename your php.ini file which is in your “program files” path.

That is it.

VN:F [1.9.11_1134]
Rating: 8.5/10 (27 votes cast)
VN:F [1.9.11_1134]
Rating: 0 (from 0 votes)
Categories: PHP, Programming, Tips Tags: , , ,

How to install Nvidia Driver 180.29 on your ubuntu

March 6th, 2009 3 comments

If you are using older drivers then 180.29 version you should* install new drivers so you will have better performence with 180.29 version. Don’t worry it is piece of cake to install it on your ubuntu.

Firstly, go on ( System->Administration->Software Sources ) then click on “Third-Party software” tab. Now you should see a button “+Add” shows on it.

deb http://ppa.launchpad.net/anders-kaseorg/ppa/ubuntu intrepid main
deb-src http://ppa.launchpad.net/anders-kaseorg/ppa/ubuntu intrepid main

As you see above there is two lines of address. You should add them one-by-one by clicking this “+Add” button. when you are done with that it is time to get PPA keys for this repository.

Now use there commands

cd ~/Desktop
gedit temp.key

Read more…

VN:F [1.9.11_1134]
Rating: 8.5/10 (6 votes cast)
VN:F [1.9.11_1134]
Rating: 0 (from 0 votes)
Categories: HowTo, Linux, Tips, Ubuntu Tags: , , ,

CodeIgniter How to Pagination

November 12th, 2008 2 comments

CodeIgniter is a powerful PHP framework with a very small footprint, built for PHP coders who need a simple and elegant toolkit to create full-featured web applications. If you’re a developer who lives in the real world of shared hosting accounts and clients with deadlines, and if you’re tired of ponderously large and thoroughly undocumented frameworks.

CodeIgniter’s Pagination class is very easy to use, and it is 100% customizable, either dynamically or via stored preferences.

If you are not familiar with the term “pagination”, it refers to links that allows you to navigate from page to page, like this:

« First < 1 2 3 4 5 > Last »

function shownews()
{
if($this->userlib->logged_in())
//checking for security purposes
{
$this->load->library('pagination');
$per_page = 10;
// How many pages you want to show in each page
$total = $this->db->get('posts', $per_page, $this->uri->segment(3)); 

//Here is the most important part actually.
Basically $total variable determined which
rows you are going to show in the page

$config['base_url'] = base_url().'/index.php/admin/shownews';
$config['total_rows'] = $this->db->count_all('posts'); // Count total rows in the query
$config['per_page'] = $per_page;
$config['num_links'] = 6;
$this->pagination->initialize($config);
$data['posts'] = $total;
$this->load->view('admin_shownews', $data);
} else {
$this->load->view('admin_logineed');
}
}

After getting done with this configuration part of pagination class all you have to do is just initialize it like you are doing it in most of programming languages.

Read more…

VN:F [1.9.11_1134]
Rating: 7.3/10 (27 votes cast)
VN:F [1.9.11_1134]
Rating: 0 (from 2 votes)

How to Convert NRG files to ISO format?

June 8th, 2008 No comments

Assume that  you have some ” .nrg ” files with you which is already burned in windows OS and you want to burn this file in linux OS. Here the OS which i tested is Ubuntu.

You need to install a little application.

sudo apt-get install nrg2iso

then to convert files

cin@nexus:~$ nrg2iso here_nrg_name.nrg here_new_iso_name.iso

that’s all you need to do..

now you can burn iso file with any CD/DVD/Blu-RAy Writer..

How a good one..

VN:F [1.9.11_1134]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.11_1134]
Rating: 0 (from 0 votes)

Ubuntuda 5+1 ses kartı nasıl çalıştırılır?

May 18th, 2008 No comments

Sistemimde şu an Ubuntu hardy 8.04 kurulu.

lspci -v

komutu ile listelediğimde ses kartımın özellikleri şu şekilde

02:09.0 Multimedia audio controller: Creative Labs SB Audigy LS
Subsystem: Creative Labs SB0410 SBLive! 24-bit
Flags: bus master, medium devsel, latency 64, IRQ 21
I/O ports at df80 [size=32]
Capabilities: <access denied>

elimde 5+1 destekleyen bir ses kartı ve ses sistemi olmasına rağmen tüm kanallardan ses alamıyorum.??

Yapmam gereken şu;

sudo cp .asoundrc .asoundrc.backup

sudo gedit .asoundrc

Komutlarını girerek sistemimdeki .asoundrc dosyasını gedit uygulamasıyla açıyorum. Ses kartım ile ilgili ayarlar bu dosyada tutuluyor. Yeni kurulan sistemlerde bu dosya olmayabilir çünkü sistem dosyaya ihtiyaç duymadan öntanımlı olarak çalışıyor. Biz şimdi bu dosyaya gerekli ayarları gireceğiz ve sistemden tam performans (ses tarafında) almaya çalışıcağız.

Bu arada .asoundrc dosyası /home/kullanıcıadı/.asoundrc konumunda bulunmalıdır. Zaten yukarıda verdiğim komut işlem yaptığınızda dosya otomatik olarak bu konuma kaydedilecektir.

Read more…

VN:F [1.9.11_1134]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.11_1134]
Rating: 0 (from 0 votes)
Categories: Linux, Tips Tags: , , , , , ,