原创 win7安裝ubuntu雙系統
硬盤安裝 win7下: 1.給ubuntu分配空間:兩種方式,可以都選擇: 11.如果你不是用Windows home版本的話,不需要工具,開始菜單
原创 python 字符串轉16進制
def toHex(s): lst = [] for ch in s: hv = hex(ord(ch)).replace('0x', '') if len(hv) == 1:
原创 從文件中恢復jpg
代碼: import re fp = open('Image.raw', 'rb') content = fp.read() fp.close() cnt = 0 start = 0 while True: pic_st
原创 To R小米
我們要藕斷絲連,我們要互相虧欠
原创 wargames bandit 1-25
http://overthewire.org/wargames/bandit/bandit12.html http://blog.csdn.net/
原创 One month
I love smallsun.
原创 【Python】多線程-簡單
import time import threading def print_(do, x): for i in range(x): print(i, do) time.sleep(1) if
原创 劍指offer:二維數組中的查找
參考:http://www.07net01.com/2015/07/874135.html 描述 在一個二維數組中,每一行都按照從左到右遞增的順序排序,每一列都按照從上到下遞增的順序排序。請完成一個函數,輸入這樣的一個二維數組和一個整
原创 sqlite3.OperationalError: unable to open database file
# -*- coding:utf-8 -*- ''' Created on 2016年1月12日 @author: Lux ''' import sqlite3 chromeHistoryDbPath = 'C:\Users\L
原创 EL 單選框的顯示
假設變量People已經通過ModelAndView.addObject()添加到jsp了, <input type="radio" name="sex" value="male" ${People.sex=="male"? 'check
原创 劍指offer:從尾到頭打印鏈表
描述 輸入一個鏈表,從尾到頭打印鏈表每個節點的值。 解決之道 從頭到尾遍歷一遍,將元素放入容器中,然後,再將容器逆序 code /** * struct ListNode { * int val; * str
原创 將標準輸入複製到標準輸出
cpp #include <stdio.h> #include <unistd.h> #include <stdlib.h> #define BUFFSIZE 4096 int main(){ int n; char
原创 LSBInitScripts
LSBInitScripts 原文:https://wiki.debian.org/LSBInitScripts 以下是譯文。 怎樣LSB化 Init Script 一個可用的狀態頁,講解了引導序列的依賴關係。 這是一篇簡短文檔,介紹
原创 ls(1)命令的實現
cpp ubuntu server 14.04 測試通過 #include <stdio.h> #include <dirent.h> #include <stdlib.h> int main(int argc, char *argv[
原创 Java 異常彙總
org.hibernate.PropertyValueException: not-null property references a null or transient value 字面意思:一個不允許爲Null的屬性引用了一個爲