原创 基於Node.js的微服務後臺

var express = require('express'); var router = express.Router(); var util = require('util') var weixin = require('

原创 VBA操作提取出sql

Public rngstart As Range Public sid As String Public OutFileName As String Sub rule() Dim iRowMax As Integer Dim

原创 python使用正則表達式解析http url

http Get的原文 /alter?user=abcde&pwd=123456 re.compile(r'/(?P<url_path>alter)\?(?P<query>user=(?P<user>[a-zA-Z]{5,10}

原创 django框架(一) 基於logging的sigton實現

import logging import logging.config import os from RescSystemMng.settings import BASE_DIR __all__=['GetInstance' ,

原创 linux環境下的hive mysql hadoop環境搭建

軟件環境 Centos6.5 vmware workstation 11 JDK1.6或者以上版本 hadoop-1.2.1 hive-0.8.1 ssh hadoop環境搭建 sshd服務安裝和配置ssh免密碼登陸

原创 node.js 異步流程控制async

node.js其最大的優勢在於高併發,而高併發的背後最核心的就是異步了。node.js中幾乎所有函數都是異步。但是,這對於結構化編程簡直是個噩夢。 比如我希望1)打開數據2)查詢A 表3)當A.userid=10時查詢B表 在

原创 LeetCode-- Add two numbers

題目 You are given two non-empty linked lists representing two non-negative integers. The digits are stored in revers

原创 python 給QQ好友發信息

# -*- coding: utf-8 -*- # 需要先安裝pywin32模塊 import sys sys.path.append( r'XXXXXXXXX') import win32gui import win32con

原创 LeetCode--Valiad Phone Nums

題目 Given a text file file.txt that contains list of phone numbers (one per line), write a one liner bash script to

原创 leetcode--Python正則表達式解析Valid Phone nums

#!/usr/bin/env python import os import re import sys filename=sys.argv[1] fd=open(filename,"r") index=1 for row in

原创 如何和程序員打交道

http://www.vaikan.com/interacting-with-geeks/

原创 解決Xmanager連接Linux時任務欄消息的問題

Xmanager連接Linux後,打開一個程序,例如eclipse,之後將它最小化,這時候發現找不到這個 進程了,怎麼辦? Step1: Step2:

原创 hive詳細介紹

hive是一個基於hadoop的搜索與數據分析引擎,它提供了一種類sql的方式供用戶使用.hive能夠將本地文件映射到一個hive表中 ,同樣hive也能直接將hdfs文件映射到hive中使用。hive自動將sql翻譯成mapre