文章列表
upgrade ubuntu kernel
- 博客分类:
- linux
1、download kernel from "https://www.kernel.org/pub/linux/kernel/v3.x/"
2、mv to /usr/src/,then tar with order "tar -xvf linux-3.***.tar.gz"
3、switch to source code dir,run by root
4、run "sudo apt-get install libncurses-dev" to install lib files while next step need.
...
1、run terminal by root user
2、add follow text to file /etc/rc.local in front of "exit 0"
echo IGD > /sys/kernel/debug/vgaswitcheroo/switch
echo OFF > /sys/kernel/debug/vgaswitcheroo/switch
The first one is to switch to the integrated graphics;
The second sentence is t ...
1、download grub4dos,then unzip and copy follow four files to c disk:
grldr,grldr.mbr,grub.exe,menu.lst
2、download ubuntu14.04.ios and rename to ubuntu.iso.copy to c disk.
3、copy initrd.lz vmlinuz.efi which from casper in ubuntu.iso to c disk.
4、edit menu.lst,add follow text to the end.
title In ...
Class "notifier " not found in autoload_func.php on 79 line
solution
define('DIR_FS_CATALOG', '****/*****'); is wrongshould be : define('DIR_FS_CATALOG', '****/*****/');
iconv("GBK","UTF-8",$str) equal to mb_convert_encoding($str,"UTF-8","GBK") OR mb_convert_encoding($str,"UTF-8","auto").
iconv have a bug which can not convet "-",but mb_convert_encoding not.
kloxo面板,使用控制面板中的文件管理器在编辑文件和上传文件时报错:alert: file_exists_not_owned [/home/admin/****.com/index.html
在网上找了一下,是kloxo的一个bug,很多教程里提供了修复方法,但是由于修复文件并不是kloxo官方的链接,所以修复后只是解决了编辑文件的BUG,并没有解决文件上传时的问题。在kloxo的官方找到修复文件才解决此bug。
1、通过SSH登陆
2、cd /usr/local/lxlabs/kloxo/httpdocs/htmllib/phplib/
3、rm -R lxlib.php 运行后提 ...
Sample:
select 9 items from sql,but just can only make two directory.
then use trim() to delete the blank.
error code:
Error loading stylesheet: A network error occurred loading an XSLT stylesheet:http://www.cheapwatches-outlet.com/includes/templates/template_default/css/gss.xsl
solve
:
Edit .htaccess in the includes file
add the xsl
like this :
<FilesMatch ".*\.(js|JS|css|CSS ...
=IF(COUNTIF(A:A,A2)>1,"重复","")
<?php
require('includes/application_top.php');
$selectsql = "select categories_id from categories_description where language_id = 1";
$select_count_products_off = "select count(*) from products where products_status = 0";
$count_products_off = $db->Execute($selec ...
<?php
require('includes/application_top.php');
$select_products_id = "select products_name,products_image from cfpl0594";
$products_res_cf = $db->Execute($select_products_id);
while(!$products_res_cf->EOF)
{
$products_image = $products_res_cf->fields['produ ...
<SCRIPT LANGUAGE="JavaScript" src="$webdb[www_url]/images/default/jquery-1.2.1.pack.js"></SCRIPT>
<script language="JavaScript" type="text/javascript">
function getCity(){
cf =jQuery.noConflict();
var cfcf = cf('#province').val(); ...
$dir = @dir("images");
$dir_info;
while (($file = $dir->read()) !== false )
{
if($file != "." && $file != ".."){
$dir_info[]=$file;
}
}
//print_r($dir_info);
$dir->close();