原创 紅米note4G在wind7上面鏈接不上的問題

兩種方法 1、安裝微軟的  Media TranSFer Protocol Porting Kit 2、安裝紅米note官方驅動

原创 linux 仿windows pause指令

#include <cstdlib> #include <unistd.h> #include <termios.h> void pausee() { printf("\nPress any key to continu

原创 windows下使用cmake編譯libvncserver

cmake -G"Visual Studio 12 2013" .. -DZLIB_INCLUDE_DIR=..\deps\zlib -DZLIB_LIBRARY=..\deps\zlib\debug\zlibstaticd.lib

原创 gdi 屏幕畫線

HWND appwnd; appwnd = (HWND)winId(); HMONITOR hMonitor; hMonitor = MonitorFromWindow(appwnd, MONITOR_DEFAULTTONULL

原创 qt畫four corner border(多屏幕)

int cc = QApplication::desktop()->screenCount(); if (cc < SCREEN_COUNT) { return; } static int last_n = QAppli

原创 python 數字拆分

def SpliteUnit(lens, step, arr, index, results): if lens == 0: print arr[:index] results.append(arr

原创 python upload file and form

#!/usr/bin/python # demo from here: http://pymotw.com/2/urllib2/index.html#uploading-files import itertools import mi

原创 c++調用.net dll,調試時報異常First-chance exception at 0x7556C54F (KernelBase.dll)

調用堆棧如下: KernelBase.dll!_RaiseException@16() Unknown > clr.dll!Debugger::SendRawEvent(struct DebuggerIPCEvent c

原创 winhttp和wininet頭文件衝突

合併之後的文件winhttp.h /*++ Copyright (c) Microsoft Corporation. All rights reserved. Module Name: winhttp.h Abstrac

原创 漢語中的26種結構歧義

上世紀80年代我在德國Fraunhofer研究院新信息技術與通訊系統研究所研究中文科學技術術語結構時,曾經提出了“潛在歧義論”(Potential Ambiguity Theory, 簡稱PA論)。PA論認爲,語言學家總結出的各種“歧義格

原创 mongodb 分佈式集羣部署記錄

資源有限,所有shard和repl在同一臺機器,且只有一個repl 目錄結構 . ├── cfg │?? ├── c1 │?? └── c2 ├── mos │?? ├── m1 │?? └── m2 ├── repl │?? ├──

原创 nutch2.3.1 nutch-site.xml配置

<configuration> <property> <name>storage.data.store.class</name> <value>org.apache.gora.mongodb.store.MongoStor

原创 windows下面自動打包exe批處理

@echo off ::flag to modify variables setlocal enabledelayedexpansion setlocal enableextensions cd %~dp0 echo "Init Vi

原创 nutch2.3.1 構建solr6索引時meta_keywords longer than the max length 32766

解決辦法有3 1是在managed schema置meta_* 的index=false 2是在managed schema置meta_* 的type=任意一種class是solr.TextField的類型 3是修改nutch代碼M

原创 nutch2.3.1 SolrDeleteDuplicates.java 去重時空指針崩潰

修改源代碼如下: @Override public boolean nextKeyValue() throws IOException, InterruptedException { while(true)