关闭

Indent Makefile via Python

#!/usr/bin/env python import os import sys __version__ = "0.10" def space(lv): buf = "" if lv > 0: for i in range(lv): buf += "/t" return buf def write(line, lv=0): print("%s%s" % (space(lv), line.stri...
阅读(285) 评论(0)

Retreive First Enabled Modem Device Using .Net System.Management

 In case we want to send some AT Command to the first workable mobile device connected to the computer, normally we start the devmgmt.msc to find out which COM port is the right port, but if there...
阅读(188) 评论(0)

Met Someone on Z12 from Wuhan to Beijing

Dear Birmingham,Weve met on the train Z12 carriage 8, (9M, 10M) from Wuhan to Beijing on July 5th. --email/msn stupidbot at hotmail dot com...
阅读(172) 评论(0)

C Socket Forwarding

csocket_forward.c#include #include #include int error (char *s){ printf ("%s/n", s); return 0;}void info (char *s) { puts (s);}int usage(){ printf ("forward req...
阅读(249) 评论(0)

Running Without vcl60.bpl borlndmm.dll

Borland C++ Builder 6, in project options1 uncheck Packages->Build with Runtime Packages2 uncheck Linker->Use Dynamic RTLrelease .exe size ten times but without borlndmm.dll vcl60.bpl cc3260.dll ......
阅读(281) 评论(0)

By Reference or By Pointer in Method Arguments

Why Use Reference/Pointer in Method Argument To allow you to alter a data object in the calling functionTo speed up a program by passing a reference instead of an entire data objectWhen Should B...
阅读(471) 评论(0)

Motorola U9 User Feedback

 今天看了一下U9的反馈,在第一期, 在拉美销售了256,000 台, 退货160台, 其中20%是因为后盖人为损坏(这个手机小巧精致, 老外的粗手指, 使蛮力肯定会坏), 还有20%是应为SIM Card接口, 电池金手指, USB接口损坏(都是小巧惹的祸), 这么看来退货率0.037%, 马马虎虎还是可以接受的, 有了第一期的教训, 第二期在欧洲, 第三期在中国, 亚洲销售, 可能退货率还要更...
阅读(236) 评论(0)

Hide Title Bar in C Windows Programming

#include windows.h>/**//*  Declare Windows procedure  */LRESULT CALLBACK WindowProcedure (HWND, UINT, WPARAM, LPARAM);/**//*  Make the class name into a global variable  */char szClassName[ ] = "Win...
阅读(446) 评论(0)

Sseq the Enhanced Version of Seq

 As we all know there is a seq (seq.exe for windows), but we can do more with sseq.main.h#include stdio.h>#include stdlib.h>#define MAX 9#define LINE_LEN 1024#define WORD_LEN 80#define BLOCK_LEN 2...
阅读(469) 评论(0)

Java ME, take a snapshot from a playing video

The following code will give you a demonstration on how to take a snapshot from a playing video.Preconditions,resource available at "/mmawtk.mpeg";VideoSnapShotJPEG.java/**//* * VideoSnapShotJPEG....
阅读(425) 评论(0)

Useful MIME-Type

Type/sub-type Extension application/envoy evy application/fractals ...
阅读(263) 评论(0)

Dos Loop Command Example

echo offfor /L %%i in (1,1,%1) do echo %%icreate file named loop1.cmdrun the following command in console loop1.cmd 10will output12345678910--for more for usage type for /?...
阅读(495) 评论(0)

Nickname of US States

Alabama Montgomery Yellowhammer State Alaska Juneau The Last Frontier ...
阅读(331) 评论(0)

Confusing Verbs, Raise vs Rise

RaiseRegular Verb TRANSITIVE - needs an objectVERB FORMS: raise - raised - raised - raisingTO RAISE =to lift something,to elevate,to bring to maturity,to increase,to set upright by lifting or building...
阅读(316) 评论(0)

Sample Computer Engineer Resume

Computer Engineer ResumeSteve James 2230, 173, East B St, NY 228978 Home: 111-111-1111 Cell: 222-222-2222 Email: (include Email Address) Have excellent technical skills, communication sk...
阅读(1052) 评论(0)

IELTS Vocabulary 2007

A-1 abandon 2 abbreviation 3 abnormal 4 abolish 5 aboriginal 6 abort 7 abortion 8 abound 9 abrasion 10 abridge 11 abrupt 12 absorb 13 abstract 14 absurd ...
阅读(2969) 评论(0)

CipherInputStream and CipherOutputStream in Action

/* * TestCipherFile.java * Nov 8, 2007 */package com.vendor.dept.prj.subprj.gen;import java.io.DataInputStream;import java.io.DataOutputStream;import java.io.File;import java.io.Fil...
阅读(750) 评论(5)

ScreenSaver MIDlet with Location Service in MIDP 3.0

Without MIDP3, the Navigator MIDlet must run when the screen saver is turned off when you set the cell phone in your car, but with MIDP3 with screen saver MIDlet build in, the Navigator MIDlet can als...
阅读(352) 评论(0)

PostBot--Post Data via JavaME Http Connection

/* * PostBot.java * Oct. 9, 2007 */package com.vendor.dept.midp.http;import java.io.IOException;import java.io.InputStream;import java.io.OutputStream;import javax.microedition.io.Connector;import ja...
阅读(1349) 评论(0)

Beginning C stdin pipe programming

#include #include int main(int argc, char *argv[]){ FILE * fi; fi = stdin; int i; int ch; while ((ch = getc(fi)) != EOF) { putchar(ch); } return 0;} ...
阅读(522) 评论(0)
66条 共4页1 2 3 4 下一页 尾页
    个人资料
    • 访问:65660次
    • 积分:1268
    • 等级:
    • 排名:千里之外
    • 原创:56篇
    • 转载:10篇
    • 译文:0篇
    • 评论:7条
    文章分类
    最新评论