摘要:
用正则替换空行:%[ ^t]++^p,(%[后有一空格)。 阅读全文
posted @ 2012-11-08 17:20
步青云
阅读(311)
评论(0)
推荐(0)
|
摘要:
用正则替换空行:%[ ^t]++^p,(%[后有一空格)。 阅读全文
posted @ 2012-11-08 17:20
步青云
阅读(311)
评论(0)
推荐(0)
摘要:
近日,在对客户的网站进行迁移时,发现了一个问题,当导出一个sql文件时,客户的数据库在导入时报错。当时的处理是复制数据库文件夹给机房的服务器。看见灰色的insert into 了吗,因为某字段里含有一些转义字符,所以就出错了。今天,琢磨了一下Navicat for MySQL,发现了其竟然带有一个数据导入导出的功能、狂喜就是这个Tools -> Data Transfer,数据传输、选取远程的数据库,和本机的数据库,对应好。点取Start就可以了。看来良好的工具可以事半功倍。 阅读全文
posted @ 2012-04-01 17:02
步青云
阅读(5220)
评论(1)
推荐(0)
摘要:
今天,尝试了一下jquery插件的开发,先看效果图:就是鼠标点击下面三张缩略图的时候,显示大图和文字。 $(document).ready(function() { $('#slider1').freySlider({ timeOut: 4000 }); });仿照s3Dlider插件的写法,呵呵。送上源代码。插件源代码下载我写的frey.js的源码/* ------------------------------------------------------------------------ freySlider ... 阅读全文
posted @ 2012-03-09 14:55
步青云
阅读(292)
评论(0)
推荐(0)
摘要:
昨天,我的IThink的400G移动硬盘罢工了。插入U盘口,只显示H盘,总大小和可用空间没有数据。点击H盘。提示:无法访问,文件或目录损坏且无法读取。百度了一下,全是0字节,我的情况是最坏的一种,chkdsk H: /f根本不起作用。只能用DiskGenius了,我的是3.7.1免费版。点击IthinkB52(373GB)下的“未格式化(H:)”。选中“已删除或格式化后的文件恢复”。默认即可,点开始。接下来程序会搜索该硬盘分区下的文件。这个过程很长,大约4-5个小时,当然也支持停止后继续搜索的。剩下来就准备一个比原来移动硬盘大的移动硬盘来保存恢复的数据了。教训:硬盘越大,恢复数据越长,我的36 阅读全文
posted @ 2012-03-02 09:33
步青云
阅读(247)
评论(0)
推荐(0)
摘要:
自己随便写的,没用在真实环境上。仅供参考。添加一个应用选中 System.ServiceProcess下面是源代码using System;using System.Collections.Generic;using System.Text;using System.Net;using System.ServiceProcess;using System.Threading;namespace frey{ class Program { static void Main(string[] args) { string pageUrl... 阅读全文
posted @ 2012-01-16 16:33
步青云
阅读(603)
评论(0)
推荐(0)
摘要:
最近,某客户网站生成静态文件超慢。2.7万用了一天也没生成完。很是郁闷。查阅模板文件,发现蹊跷:<DL><DT>相关文章</DT><DD><ul>{dede:arclist titlelen='42' row='5' orderby=rand}<li><a href="[field:arcurl/]">[field:title/]</a></li>{/dede:arclist}</ul></DD></DL& 阅读全文
posted @ 2011-12-20 12:47
步青云
阅读(337)
评论(0)
推荐(0)
摘要:
以前自己装过一次 FlashDevelop-3.3.4-RTM.exe ,而且也在线安装了flex_sdk_4,今天新建一个AS3项目时,编译出现错误:The definition of base class Sprite was not found.尝试各种办法,都没有解决,搜索一下FlashDevelop配置Flex SDK 4方面的文章,都是很简单呀郁闷中,决定重装。竟然成功了!写下第一个程序:package { import flash.display.Sprite; import flash.events.Event; import flash.events.MouseEvent; 阅读全文
posted @ 2011-06-24 16:08
步青云
阅读(902)
评论(0)
推荐(0)
摘要:
在Red Hat Enterprise Linux 6下编译Mplayer过程很忐忑,特记录一下:首先# wget http://www1.mplayerhq.hu/MPlayer/releases/MPlayer-1.0rc4.tar.bz2# tar -zxvf MPlayer-1.0rc4.tar.bz2# ./configure# make出现错误:libmpcodecs/vd_mpng.c: In function 'pngReadFN':libmpcodecs/vd_mpng.c:77: error: dereferencing pointer to incompl 阅读全文
posted @ 2011-06-23 11:38
步青云
阅读(1602)
评论(0)
推荐(0)
摘要:
1、输入源代码vi hello.c进入vi界面,按 i 进入insert模式(i和Esc用于模式切换)#include <stdio.h>int main(int argc,char **argv){printf("Hello,Linux!\n");}按Esc退出insert模式,执行:wq!存盘退出。2、编译源代码、链接、运行gcc -o hello hello.c./hello如果显示 Hello,Linux! ,则该程序开发完毕。 阅读全文
posted @ 2011-04-29 14:13
步青云
阅读(281)
评论(0)
推荐(0)
摘要:
用SciTE写了一个简单的C++程序,也安装了MinGW。#include <iostream>int main(){ std::cout << "Hello World!\n"; return 0;}按F5调试却出现错误:Info: resolving std::cout by linking to __imp___ZSt4cout后来从网上找了一下原因,原来用参数可以解决,g++ -Wl,--enable-auto-import helloworld.cc -o helloword打开SciTE->选项->cpp.properties 阅读全文
posted @ 2011-04-15 17:09
步青云
阅读(572)
评论(0)
推荐(0)
|