上一页 1 ··· 63 64 65 66 67 68 69 70 71 ··· 73 下一页
摘要: google map 地图if(typeof GoogleMap === 'undefined'){var GoogleMap = {};}(function(){if (!document.getElementById("fgmap")) {return false;}else {// 是否可创建Google地图控件var isCompatible = new GBrowserIsCompatible();if (isCompatible) {var mapContainer = document.getElementById("fgmap&qu 阅读全文
posted @ 2011-06-30 15:57 wangkangluo1 阅读(1517) 评论(0) 推荐(0) 编辑
摘要: ssh 代理详细解释ssh -qTfnN -D 7070 ape@192.168.1.35ssh -CfNg -R 1521:127.0.0.1:80 ape@192.168.1.35参考地址:http://hi.baidu.com/edeed/item/e393cf34a76eb8f3e7bb7ab8http://hi.baidu.com/step_1/blog/item/271f831bfbc198f1ae5133b7.htmlhttp://hi.baidu.com/deyu260/blog/item/3be433093e5779a12eddd418.htmlhttp://hi.baidu 阅读全文
posted @ 2011-06-29 20:14 wangkangluo1 阅读(37049) 评论(0) 推荐(5) 编辑
摘要: kvm 使用原文地址:http://www.cnblogs.com/chinacloud/archive/2010/08/17/1801638.htmlvbox 与 kvm 的区别:vbox 是由 qemu 改写而成,包含大量 qemu 代码。可以使用于 不支持 虚拟化的cpu。值得说的一点:vbox 在图形方面比较好,能进行2D 3D加速。cpu控制不理想(估计是因为图形支持的缘故)。操作上有独立的图形界面,易于上手。kvm 是linux内核包含的东西,使用qemu作为上层管理(命令行)。cpu 必须支持虚拟化。性能,作为服务器很好,可是图形能力十分的差。即使放电影,图像也是像刷油漆一样,一 阅读全文
posted @ 2011-06-29 17:41 wangkangluo1 阅读(4060) 评论(3) 推荐(0) 编辑
摘要: c++ extern c#include <cstdlib>#include <fstream>#include <iomanip> #include <iostream> extern "C" {#include <sys/time.h>#include <unistd.h>}using namespace std;// === FUNCTION ======================================================================// Name: 阅读全文
posted @ 2011-06-24 09:34 wangkangluo1 阅读(347) 评论(0) 推荐(0) 编辑
摘要: php 判断字符串<?phpfunction checkVS($str){ //返回结果为1只有数字,2只有字符,3两者都有 $a=0; $b=0; for($i=0; $i<strlen($str);$i++) { $v=ord(substr($str,$i,1)); if($v>=48 and $v<=57) { $a=1; } else { $b=2; } } return $a+$b; }echo checkVS("sff")?> 阅读全文
posted @ 2011-06-22 18:32 wangkangluo1 阅读(222) 评论(0) 推荐(0) 编辑
摘要: php 删除换行符$text=str_replace("\n","",$text);$text=str_replace("\r","",$text);$text=str_replace("\r\n","",$text); 阅读全文
posted @ 2011-06-22 18:16 wangkangluo1 阅读(4889) 评论(0) 推荐(0) 编辑
摘要: doxygen模板# Doxyfile 1.5.5# This file describes the settings to be used by the documentation system# doxygen (www.doxygen.org) for a project## All text after a hash (#) is considered a comment and will be ignored# The format is:# TAG = value [value, ...]# For lists items can also be appended using:# 阅读全文
posted @ 2011-06-22 13:37 wangkangluo1 阅读(1533) 评论(0) 推荐(0) 编辑
摘要: 简单makefileall: mainmain: main.c list.c list.h gcc -o main main.c list.c 阅读全文
posted @ 2011-06-21 13:52 wangkangluo1 阅读(170) 评论(0) 推荐(0) 编辑
摘要: c 中文判别 int i = 0; char* point = NULL; for(i = 20; i < strlen(pString->content) ; i++) { if((pString->content[i] >= 0x30 && pString->content[i] <= 0x39) || (pString->content[i] >= 0x41 && pString->content[i] <= 0x5a) || (pString->content[i] >= 0x61 阅读全文
posted @ 2011-06-21 10:33 wangkangluo1 阅读(173) 评论(0) 推荐(0) 编辑
摘要: php 连接 mysql 数据库<?php $mysql_server_name="localhost"; //数据库服务器名称 $mysql_username="root"; // 连接数据库用户名 $mysql_password="root"; // 连接数据库密码 $mysql_database="lxr"; // 数据库的名字 // 连接到数据库 $conn=mysql_connect($mysql_server_name, $mysql_username, $mysql_password); // 阅读全文
posted @ 2011-06-19 10:59 wangkangluo1 阅读(248) 评论(0) 推荐(0) 编辑
上一页 1 ··· 63 64 65 66 67 68 69 70 71 ··· 73 下一页