Posts in Uncategorized
Querying Wikipedia data using SPARQL
- 05 May 2023
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.
Today’s phishing email (Subject Re: Contract Lease Agreement)
- 14 April 2023
The email body is as the following
How To Determine When a Page Is Done Printing in WebBrowser Control
- 24 March 2021
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.
Icepocalypse 2021 冰狱 2021
- 18 February 2021
this is my dairy about the winter storm occurred in Feb 2021.
Blinking wifi icon and black screen on Surface 2
- 21 August 2018
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.
如何在64位win10的VS2017环境下搭建汇编环境
- 18 June 2018
用户AcmeContracted安装masm32失败,所以想知道是否能集成masm64到Visual Studio 2017中。
Where is the forum for Internet Explorer?
- 21 July 2011
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:
The death of Virgo Shaka under the twin Salas
- 08 June 2006
Gold Saint Virgo Shaka, after a suicidal battle against three fallen Gold Saints, Capricornus Shura, Aquarius Camus and Gemini Saga when defending Athena.
MSN messenger exceeds capacity
- 17 November 2005
This is the first time I get this message when trying to sign in to MSN messenger service
Lab2
- 25 May 2005
# 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 Twice to reveal the clues(Orson Scott Card,SPEAKER FOR THE DEAD)
- 21 May 2005
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.
Champ de Coquelicots, Environs de Giverny
- 14 April 2005
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.
Lincoln’s assassination
- 12 April 2005
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.
4-11日全球互联网群发性故障
- 12 April 2005
美国中部夏令时4月11日,本市多个因特网服务商,包括Yahoo DSL和得克萨斯州教育网的服务短时间中断。根据报道,在同一时间部分中国和澳洲因特网服务商的服务也出现中断。