Posts in Uncategorized

Querying Wikipedia data using SPARQL

Recently I have been working on a trainer for a football manager game. The game has a player database, when a player retires, another with the same last name would respawn in some other club. When you play the game for many seasons, the player database becomes gradually out of date. Fan patches are created but due to the amount of work involved (check the team roster for every minor team in every league, for starters) only a few patches are ever created. My goal is to get some actual real players to replace the respawned ones and refresh as time elapses.

Read more ...


Today’s phishing email (Subject Re: Contract Lease Agreement)

The email body is as the following

Read more ...


Better Late Than Never

This post originally appeared on Joycode on Sept 17 2004.

Read more ...


How To Determine When a Page Is Done Printing in WebBrowser Control

Note this post is originally written in 2012. It was lost when moving my web site from Windows Live Spaces to WordPress. I found a dead link to my web site on Stackoverflow and found an archive from archive.org. So here it is the old article, with dead link updated of course.

Read more ...


Troubleshooting a memory leak

Got called into a memory leak troubleshooting.

Read more ...


Icepocalypse 2021 冰狱 2021

this is my dairy about the winter storm occurred in Feb 2021.

Read more ...


Today’s fake email of the day

Today’s fake email of the day

Read more ...


Fix sphinxcontrib-googleanalytics on Sphinx 1.8

The Google Analytics extension from

Read more ...


Blinking wifi icon and black screen on Surface 2

This is the second time I run into this problem after a Windows Update. First time was halfway through last year’s Microsoft MVP Summit and I had to Remote Desktop to my home machine with a spare android tablet and Bluetooth keyboard/mouse to get access to Windows apps.

Read more ...


如何在64位win10的VS2017环境下搭建汇编环境

用户AcmeContracted安装masm32失败,所以想知道是否能集成masm64到Visual Studio 2017中

Read more ...


Where is the forum for Internet Explorer?

People get confused by various Microsoft IE forum sites so here is the steps to find the forum closer to IE related questions Basically, the mentality of different Microsoft forum brand is: MSDN: How can my software do something on my customers’ machines. Technet: How can I manage things on machines in my network. Answers: How can I do something on my own machine. So for the case involving IE:

Read more ...


McDonald’s, Yum! Alleged To Break Chinese Wage Laws

Source

Read more ...


The death of Virgo Shaka under the twin Salas

Gold Saint Virgo Shaka, after a suicidal battle against three fallen Gold Saints, Capricornus Shura, Aquarius Camus and Gemini Saga when defending Athena.

Read more ...


整理旧照片……

2004年4月微软MVP峰会前参观上海微软

Read more ...


MSN messenger exceeds capacity

This is the first time I get this message when trying to sign in to MSN messenger service

Read more ...


Talking about Where does power come from?

Quote

Read more ...


Lab5 Draft1

;=====================================================================

Read more ...


Lab2

# makefile for program 1

PROJECT = Lab2

NAME = Sheng_Jiang

Date = 5/25/05

ROOTDRIVE = C

VERSION = V1

SRCS =

$(PROJECT).asm

makefile

MASM32 = $(ROOTDRIVE):/masm32

ML = $(MASM32)/bin/ml

LINK = $(MASM32)/bin/link

Zip = H:/mydoc/Tools/Bin/zip

MLFLAGS = /I. /I $(MASM32)include /Zi /Zd /Zf /c /Fl /coff /Cp

LINKFLAGS = /subsystem:console /libpath:$(MASM32)lib

all: $(PROJECT).exe

$(PROJECT).obj: $(PROJECT).asm

$(ML) $(MLFLAGS) $(PROJECT).asm

$(PROJECT).exe: $(PROJECT).obj

$(LINK) $(LINKFLAGS) $(PROJECT).obj

clean:

del $(PROJECT).exe *.obj *.lst *.map

zip: clean

del $(NAME)_$(PROJECT)_$(VERSION).zip

$(Zip) $(NAME)_$(PROJECT)_$(VERSION).zip $(SRCS)

;=====================================================================

; hello.asm - Example Assembler program

; Propose: a program that displays the following information on the console:

; Line 1: full name

; Line 2: birthday

; Line 3: ACC student ID number

; Line 4: preferred email address

; Course: COSC 2425

; Author: Sheng Jiang

; Date: 5/23/05

;=====================================================================

.386

.MODEL flat, stdcall

; define a few constants

cr equ 0dh

lf equ 0ah

STD_OUTPUT_HANDLE equ -11

; win32 declarations

; kernel32.exe

GetStdHandle proto near32 stdcall,

nStdHandle:dword

WriteFile proto near32 stdcall,

hfile:dword, lpbuff:near32,

lmsg:dword, lwrt:near32, lpovr:near32

ExitProcess proto near32 stdcall,

dwExitCode:dword

;masm32 includes

include masm32.inc

includelib masm32.lib

;win32 includes

includelib kernel32.lib

;variables

.DATA

;Handle of the standard output

nStdHandle dword ?

;string to print

lpBuffer BYTE ‘Sheng Jiang’,cr,lf,’’,cr,lf,’’,cr,lf,’sheng_jiang’,cr,lf,0

;string length

nNumberOfBytesToWrite dword $-lpBuffer

;bytes written

nNumberOfBytesWritten dword ?

.CODE

SayHello PROC

; first get a handle to stdout for output from win32

invoke GetStdHandle, STD_OUTPUT_HANDLE

; save it for later

mov nStdHandle,eax

; now print the message - lots of parameters needed for this one!

invoke WriteFile, nStdHandle, near ptr lpBuffer, nNumberOfBytesToWrite, near ptr nNumberOfBytesWritten,0

; go back to the operating system when done

invoke ExitProcess, 0

SayHello ENDP

END SayHello

Read more ...


Read Twice to reveal the clues(Orson Scott Card,SPEAKER FOR THE DEAD)

Thanks to Austin Public Library, I have a chance to continue my navigating with Ender the Great Commander, the Xenocide, and the Speaker for the Dead. I’v noticed a significant difference between the style of Ender’s Game and Speaker for the Dead, and I like this change. It make ender a less hero, but a greater philosopher. His unconscious victory now considered crime, and he became his own accuser for 3,000 years. However, he still execl in this work. He removed the barrier between human and peggies, and made the treatment between the 3 species.

Read more ...


假如抓到一条美人鱼(转自机战世界论坛,水星的爱发)

Read more ...


Champ de Coquelicots, Environs de Giverny

I fell comfort with the first look to Champ de Coquelicots, Environs de Giverny. It is basically green, with red flowers in the center and dirty yellow sky at the top. The usage of implied lines, height of plants and shadows expressed the shape of the field.

Read more ...


Lincoln’s assassination

The assassination of A. Lincoln on April 14, 1865 may be the result of his making enemies by his good qualities and acts. He represented the poor, freed the slaves, which may have led to him being killed.

Read more ...


4-11日全球互联网群发性故障

美国中部夏令时4月11日,本市多个因特网服务商,包括Yahoo DSL和得克萨斯州教育网的服务短时间中断。根据报道,在同一时间部分中国和澳洲因特网服务商的服务也出现中断。

Read more ...


early working VS studying

Read more ...


The Schiavo case

The Schiavo case

Read more ...


Telephone Tips

Read more ...


Generation Gap Prevention

Jason

Read more ...


Notes

Public Edu phylosephy and funding

Read more ...