自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

wens07的专栏

Where there is a will, there is a way

  • 博客(94)
  • 收藏
  • 关注

原创 博客已经搬家

已经使用hexo搭建了自己的个人,地址qiangweng.site

2016-04-05 11:09:34 389

转载 那些C++牛人的博客

C++大牛的博客Bjarne Stroustrup的博客: Bjarne Stroustrup’s HomepageBjarne Stroustrup,不认识的可以去面壁了,没有他,就没有我们现在的饭碗。Bjarne Stroustrup是丹麦人,目前任教于TAMU。他的Homepage和他的书籍The C++ Programming Language一样,都是

2014-07-18 17:00:04 840

原创 Mountain Lion 键盘快捷键大全

show the desktop: cmd+mission-control key1. shutcuts for menusmove to menu bar: fn+ctl+f2(ctl+f2 if your keyboard not have fn key)move around/in menus:  left/right arrow; up/down arrowop

2013-05-20 14:37:39 1017

原创 QT useful shutcuts memo

QT tips and tricks:  1. Switching Between Modes              Welcome mode Ctrl+1              Edit mode Ctrl+2               Design mode Ctrl+3              Debug mode Ctrl+4

2013-05-18 16:37:44 730

原创 osx launchd service

launchd service用于启动daemons and agents; 通过使用plist进行配置         /System/Library/LaunchDaemons/System/Library/LaunchAgents         /Library/LaunchDaemons          /Library/LaunchAgents

2013-05-08 21:32:53 724

原创 Bash ---- [ and [[ memo

Tests supported by [ (also known as test):-e FILE: True if file exists.-f FILE: True if file is a regular file.-d FILE: True if file is a directory.-h FILE: True if file is a symboli

2013-05-08 09:28:53 761

原创 Useful Bash examples

GOOD Practices:     1.   Since bash 3.2, regex should always be unquoted.use a variable to store your regex, e.g. re='^\*( >| *Applying |.*\.diff|.*\.patch)'; [[ $var =~ $re ]]      2. Whe

2013-05-07 22:36:24 690

原创 python study ---- modules

1.  pickle and shelve      to save and restore the contents of a object to a file

2013-05-07 16:10:57 496

原创 python study ---- encoding/deconding

1. module --- codecs    用于处理unicode文件2. BOM ---- byte-order Marker    使用Unicode character U+FEFF来表示    (for example:      “\fe \ff” for UTF-16 big-end    "\ff \fe" for UTF-16 little-end)

2013-05-07 15:58:56 760

转载 shell 逐行读取文件的内容

说明:SHELL 逐行读取文本文件内容。示例:读取 /etc/passwd 文件内容。1:[python] view plaincopy#! /bin/bash    IFS="  "  n=0    for line in `cat /etc/passwd`  do          n=`e

2013-05-06 09:46:25 680

原创 google搜索技巧备忘

词组搜索 ("")    给搜索词组添加双引号,等于告诉 Google 严格按照该词组的形式查找结果,而不对搜索词组进行任何变动。Google 搜索本身就将字词顺序和字词组合视为非常明显的整体搜索标志,除非有必要,否则不会拆分搜索字词,因此通常没必要加引号。如果您坚持用词组搜索,可能会意外错过若干有用的搜索结果。例如,搜索 [ "李云" ] (加引号)会错过包含李小云的网页。    搜索单

2013-05-05 10:35:19 603

原创 xcode 快捷键备忘

1. ctrl + 6    在xcode中打开当前文档搜索方法的快捷键2. ⌘ + 0    打开或关闭左侧的navigator侧边栏    ⌥ + ⌘ + 0    打开或关闭右侧的utility侧边栏3. ⇧ + ⌘ + o     打开open quickly4.  ⌘ + T ----- 打开一个tabs     ⌘ + w -

2013-05-03 17:19:33 897

原创 c++文件打开时可以设置的属性

2013-05-01 21:15:43 678

原创 all manipulators in c++

for memory, all the manipulator since c++11:

2013-05-01 21:05:03 740

原创 check your ubuntu version

To find your Ubuntu version from a terminal console, open a new terminal window and typelsb_release -a like shown in Figure 1.Figure 1

2013-04-30 13:23:48 909

原创 os x--- 如何保护自己私密文件/文件夹

1. 使用系统自带的disk utility 创建带密码的disk image, 然后将文件/文件夹放入其中2. 直接将文件以及文件夹进行隐藏     chflags hidden/nohidden  yourfils

2013-02-08 15:02:50 672

原创 python studying ---- memo and difference compared to c++

1. expression ends      not use ; to end one sentence,  it just like marco define in c++2. block of codes     use : to perform the same function as {} in c++ define of  block of codes3

2012-12-16 11:18:33 392

原创 python studying----- types

fundamental types:    integers, real numbers, strings, boolean, lists    boolean : True and false        None ----- describe somthing that hasn't created yet1. List     mylist  = [item

2012-12-16 11:12:35 430

原创 python studying ---- keyword and operator precedence

Python has twenty-nine keywords:and def exec if not return assert del finally import or try break elif for in pass w

2012-12-16 00:18:36 640

转载 Ubuntu 中文字体美化方案大全 (6): 使用免费文泉驿正黑字体

首先,下载安装文泉驿正黑字体,做好准备工作;然后,编辑下面4个文件:1. /etc/fonts/conf.d/69-language-selector-zh-cn.conf serif Liberation Serif WenQuanYi Zen Hei WenQuanYi Bitmap Song

2012-12-11 23:04:29 3227

转载 Ubuntu 中文字体美化方案大全 (5): 使用苹果字体

首先,下载安装所需苹果字体,做好准备工作;然后,编辑下面两个文件:1. /etc/fonts/conf.d/69-language-selector-zh-cn.conf serif

2012-12-11 23:03:22 3928

转载 Ubuntu 中文字体美化方案大全 (4): 使用Windows Vista字体

首先,下载安装Windows Vista 字体,做好准备工作;然后,编辑下面两个文件:1. /etc/fonts/conf.d/69-language-selector-zh-cn.conf serif

2012-12-11 23:02:39 612

转载 Ubuntu 中文字体美化方案大全 (3): 使用Windows XP字体

首先,下载安装Windows XP 字体,做好准备工作;然后,编辑下面两个文件:1. /etc/fonts/conf.d/69-language-selector-zh-cn.conf serif

2012-12-11 23:01:46 965

转载 Ubuntu中文字体美化方案大全(2): 安装字体文件

1. 下载相关字体根据你选定的方案,下载相关字体:XP 字体TahomaSimSunCourier NewVista 字体Microsoft YaHeiConsolas 或 YaHei Consolas Hybrid苹果字体Lucida GrandeSTHeitiLi

2012-12-11 23:00:57 907

转载 Ubuntu 中文字体美化方案大全 (1): 概述篇

其实,Ubuntu自带的默认UMING中文字体,已经看得过去了。如果对中文显示没有什么特殊的要求,也够用了。不过,很多用惯了Windows或者苹果系统的Ubuntu用户还是觉得Ubuntu的字体不够舒服。的确,Ubuntu自带的免费UMING中文字体(还有免费文泉驿宋体)都不如Windows XP的SimSun宋体,或者Windows Vista的雅黑字体,或者苹果系统的黑体好看。

2012-12-11 22:52:49 3071

原创 C++ FAQ Memo

c++ faq ----------- comp.lang.c++一、section[10] constructor          10.9 ---------- whether the complier optimize away the tempory object when a function return a object by value  and how

2012-11-17 21:28:23 451

原创 linux 下 -------- 创建和调用动态共享库(.so)

以下print.cpp为要创建的动态共享库#include#includeusing namespace std;#ifdef __cplusplusextern "C"{#endif/*template void print_vector(const vector& v){ typename vector::iterator iter = v.be

2012-10-26 21:38:14 682

原创 win7下 使用easybcd引导进入linux live cd

这里以ubuntu (ubuntu-12.04.1-desktop-i386.iso)的live cd 为例, 其它发行版的应该大同小异1. 首先下载easybcd (官网可以进行下载 http://neosmart.net/EasyBCD/)         它用于在win7 的bootloader中添加相应的grub引导选项,可以用于引导硬盘或移动硬盘或u盘上的ubuntu

2012-10-13 21:06:43 3499

原创 vmware 与主机共享文件夹

1. 首先在虚拟机设置中,设置好共享文件夹位置2. 安装vmware tools     解压其压缩文件,运行里面的.vmware-install.pl文件即可3. 在/mnt/hgfs下就会出现设置的共享文件夹

2012-10-13 00:03:41 854

原创 win7 -- bootable usb drive

1. 下载POWISO, 打开win7系统iso文件2. 将映像写入到usb中,"USB-HDD" is recommended.

2012-10-13 00:01:22 617

原创 魔方小助手

可以在系统右下角显示农历以及天气, 更可以自定义格式, 相当不错的一款小工具

2012-09-29 22:40:16 387

原创 Windows 7加快系统速度的九大方法

微软官方宣称,同样的硬件配置下,Windows 7系统启动速度比Vista快20%,而且微软内部已经实现了快速15秒启动,所以正式Windows 7的启动速度可能会非常快。但是使用过beta、RC、RTM及其他版本的Windows 7的网友们知道,根本不可能这么快!那到底是什么原因呢?除去硬件老化和病毒侵蚀两个不可抗拒的主要因素外,是否还有设置方面的原因呢?我们应该如何做才能加快系统速度?

2012-09-29 05:20:46 567

原创 vim 使用和配置相关-memo

一、omni completion  -------  c++ auto completion        you can navigate the suggestion by ctrl + n or ctrl + p,  you can open the suggestions by ctrl+x plus ctrl+o manually                1. o

2012-09-18 16:14:11 369

原创 linuxmint 网卡备忘

今天不知道怎么的,突然无线网络连不上了,有可能是刚装了有些更新相关google一下,最后解决了,备忘一下:开始以为网卡坏了-------- 使用ifconfig -a 查看是否有无线网卡的信息(如wlan0)       如果有,说明没坏,并且已经驱动起来了      查看了wlan0,如一下信息:wlan0 Link encap:以太网 硬件地址 00:1b:

2012-09-05 19:02:24 641

原创 手机刷机知识学习&备忘

1.  backspace + power 键(以htc desire 为例, 进入hboot)       在HTC的Android 系统的系列手机中,HBOOT就是SPL(second program loader)2. 进入hboot后,一般会有以下这些参数BRAVO PVT1 SHIP S-ON  HBOOT-0.93.0001MICROP-031dRADI

2012-09-01 05:15:40 803

原创 IRC(xchat)---学习和使用笔记

1. 使用图片交流----- imagebin.org        将图片上传到该网站, 然后贴出地址即可2. 大量文字 ------ pastebin.ca3. Highlighted message to someone         username: the messages4. /msg user message ------- 发私信

2012-08-31 00:28:06 1375

原创 virtualbox 开启usb支持

由于要使用网银,安装了virtualbox + xp, 但是装好后发现不能支持usb,google之后解决方法如下:在 Linux 中出现无法挂载 USB 设备的问题是由于 Linux 的权限限制,我们只需要将当前用户添加到 vboxusers 组即可。完成这一任务有命令行和图形界面两种配置途径:命令行配置:启动终端,在终端中输入gpasswd -a USERNAME vb

2012-08-29 19:13:53 693

原创 virtual box 文件夹共享

1. 在菜单Devices->shared folder 下选择要共享的文件夹2. 进行网络文件夹影射                \\vboxsvr\yourfoldername

2012-08-29 17:04:26 399

原创 Linux mint 13 ---- Dictionary 配置

Mint 13中有个自带的dictionary, 不过那是要联网的, 如果要想本地进行查询,这需安装一个dict database以及字典1. 安装dictd, 以及字典,英文推荐dict-wn, dict-gcide; 中文推荐dict-xdict和dict-stardic,别的词典自己在新力德里搜索dict,然后慢慢找2.配置字典服务器    Edit->Preference中

2012-08-27 22:35:43 1289

原创 cron学习笔记

一. croncron 是一个可以用来根据时间、日期、月份、星期的组合来调度对重复任务的执行的守护进程。 cron 假定系统持续运行。如果当某任务被调度时系统不在运行,该任务就不会被执行(这时可以使用at/anacron)。 二. 配置 cron 任务cron的主要配置文件为/etc/crontab,它的格式如下:# /etc/crontab: system

2012-06-26 15:08:40 682

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除