During Investigating an Interaction, I Monitor a Motion;
While I Monitor a Motion, I try to Deduct a Direction;
After I Deduct a Direction, I may Conclude a Connection;
From the Concluded Connection, I can Accumulate a series of Actions;
for most updated version visit:
My Sky (lyric) 3. my roommates 4. grand church 6. Dean and me. Assignment 1. English translation of Chinese poem 4. Exam Program {You are not fish, how can you know the joy of fish} A. Knight's Tour★ B. zebra puzzle★ C. Maze(1)★ D. Maze(2)★ E. Maze(3)★ F. 24game★ G. Morse★ H. Quicksort (template)★★ I. Dynamic List★★ Download My days in Concordia Program (You are not fish, how can you know the joy of fish) 1. Dictionary★ 3. Logic★ 4. Matrix(1)★ 5 Matrix(2)★ 6. Stack 7. Detective★ 8. ArrayTest 9. WordReader 10.PowerDictionary★★ 11.Logic(improved)★★ 12.SuperDictionary★★ 13.Sentence 14.PowerLogic★★ 15.CodeCompetition1★ 16.CodeCompetition2★ 17.CodeCompetition3★ 18.CodeCompetition4★ 20. C++ little game(assignment) 21. Square root (MASM version)★★ 22. Square root (improved version)★★ 24.C++ assignment (simplified Monopoly) 25. Matrix(3)★ 26. MyLib(MASM)★★ 27. LogicSets(1) 29. Prove by contradiction (application of Logic)★★ 30. Relation(1) 32. Relation(2) 33. Generator(1)★ 34. WhoAmI★ 35. RSA(1) encryption★★ 36.RSA(2) encryption★★ 37.RSA(2.5) encryption★★ 38. Generator(2)★ 39. Counting★ 40. SpaceWalker★ 41. Depth-First-Search★★ 42. Container 43. Partition★ 44. Matrix3★ 45. NumberDivider★ 46. CountNumber★ 47. Dijkstra★ 48. Consecutive★ 49. Prim★ 50. Kruskal 51. Queue 52. SortMachine★ 53. Cartesian 54.Fraction 55. DFS--Standardized★★ 56. Zebra--DFS★★ 57. Polynomial★ 58. StackArray 59. DFSArray★★ 60. Missionary★★ 61. Message 62. NewKnights★★ 63. NewWordReader★★ 64. ArrayException★ 65. StringSearch★★ 66. Poke 67. Sequence 68. Haskell★ 69. Reduce1★ 70. Shuffle 71. Reduce2★ 72. SimpleShuffle 73. Reduce3★ 74. Crap 75. Haskell2 76. DirViewer★★ 77. Login★★ 78. SimpleLogin 79. Reduce4★ 80. LevelPrint 81. Dynamic-Static 82. Double-Library 83. withoutDynamic 84. SortComp 85. Radix 86. Schedule 87. TemplateArray★ 88. makefile 90. shortest★ 92. practice(1) 93.simpleScanner★★ 94.practice(2) 95. depend 96. depend(improved) 97. memoryManagement 98. Practice(3) 99. AVLTree★★ 100. MinMaxHeap(1) 101. MinMaxHeap(2) 102. Helloworld 103. MinMaxHeap(3) 104. MinMaxHeap(4)★ 105. RealScanner★ 106. CFGReader★ 107. Table-Driven-Scanner★★ 109. StrangeDictionary★ 110. LayoutManager 111. WhyJava? 112. CFGReader-CLF★ 113. CFGReader-RLR1★ 114. CFGReader-RLR2★ 115. CFGReader-First★ 116. CFGReader-Follow★ 117. CFGReader-Table★ 118. CFGReade-Parser★★ 119. CFGReade-LookAhead★★ 120. practice(4) 121. PrefixSum 122. Philosopher 123. SleepingBarber 124. ConsoleDisplay 125. ConsoleBoard 127. Console-rummy 128. AVLTree-Remove★★ 129. CFGReade-LR(0)★★ 130. CFGReade-LR(1)DFA★★ 131. Console-Rack 132. Hash-Table★ 133. PrefixSum-Multi 134. PrefixSum-final 135. Console-Player 136. CFGReade-LL(1)Symtab★★ 137. PlatformAndBridge 138. LL(1)Symtab-debug★★ 139. WordRover(1) 140. WordRover(2) 141. LL(1)-3-add-code★★5/4 142. WordRover-ultimate★★7/4 143. Parallel-Rank-List8/4 144. WordRover-perfect★★9/4 145. Transaction 146. CFGReader-moon1★ 147. CFGReader-moon2★20/4 147. CFGReader-moon3★★21/4 148. Multiple-Reader28/4 149. 24Revisited2/5 150. Vigenere3/5 151. JapanCode 10/5 152. Polynomial-revised 25/5 153. Dependency-Reader 28/5 154. Dependency-Set 29/5 155. Dependency-Key 1/6 156. Dependency-Canonical 3/6 157. CallBack-Template 4/6 158. Dependency-Application★★ 5/6 159. Random-Data-Generator 13/6 160. QAR-Project ★17/6 161. Enigma-failure 27/6 162. Enigma-Success★ 29/6 163. SQLServer-Connector 5/7 164. Replace 7/7 165. 15Puzzle-Failure 8/7 166. SequenceDFA ★★?/?(a year ago?) 167. 15Puzzle-AnotherFailure 12/7 168 water-allocation 14/7 169. BloodTest★ 18/7 170. BloodTest2 19/7 171. Labyrinth 23/7 172。Snake 25/7 173. MySet★★ 27/7 174. MySet-PowerSet★★ 29/7 175. Huffman 10/8 176. NaughtyBoys 16/8 177. Elevator1 21/8 179. repeatFinding 25/8 180. tracker 29/8 181. file-transfer 13/9 182. SimpleVector 15/9 183. FTPServer 17/9 184. FileTransfer★★ 21/9 185. Lempel-Ziv-1 3/10 186. UDP★★ 11/10 187. LCS 19/10 188. LCS-experiment 8/11 189. monotone 10/11 190. monotone-analysis 12/11 191. goback-N★★ 14/10 192. Dynamic-Programming★ 17/11 193. LCS_counting 17/11 194. goback-N(largeSequence) 20/11 195. PocketRuler 26/11 196. Bellman-Ford 29/11 197. Scheduler-I★ 02/12 198. Scheduler-II★★ 04/12 199. Template-Vector(failure) 12/12 200. extensible-hashing★ 27/12 201. bitmatrix(trivial) 07/01 202. unix (practice)14/01 203. searchString-Linux 22/01 204. dynamicArray-Linux 24/01 205. SRC-Linux 30/01 206. TicTacToe 26/02★at nick of time 207. File-Server1 26/03 208. 3-CNF(naive) 27/03 209. 3-CNF(slight-improved) 28/03 210. minishell ★ 30/03 211. file-server2 ★ 05/04 212. quantum-collision ★ 09/04 213. quantum-scheduler ★ 22/04 214. inexactmatch 04/05 215. bigNumber(trivial) 14/05 216. inexactmatch-DFS 10/05 217. inexactmatch-pureC 30/05 218. GlutObject 12/10 219. CNF-Converstion 12/10 220. Transformation(trivial) 15/10 221. helicopter 16/10 222. cnf-sat 21/10 223. 15puzzle-revisited 28/10 224. GlutObject-face 28/10 225. GlutObject-Success30/10-11/05★ 226. helicopter-camera 31/10 227. alpha-beta-prune ★ 04/11 228. zebra-tester 08/11 229. zebra-brute-force 13/11 230. shortest-path(scheme) 28/11 231. HEX-game-human-AI 01/12 232. ID3 03/12 233. LatinSquare(trivial) 15/01 234. FirstJava(RMI) ★ 30/01 235. gifPartition (first MPI) 04/02 236. BankServer(CORBA) ★★ 22/02 237. Quantity(template)★ 26/02 238. MinimalWeight★ 03/03 239. MinimalWeighy(MPI-Imp)04/03 240. Comb-Algo-Prog 05/03 241. BankServer(Web)★ 07/03 242. MinimalWeighy(Final)★10/03 243. Trotter-Johnson 15/03 244. max-clique 24/03 245. sudoku(trivial) 28/03 246. Primary-Back(huge)★★ 13/04 247. Danckinglink★ 14/04 249. Comb-Algo-Final★ 09/04 250. HowEasy 29/08 251. RemoteWakeup(fake) 30/10 252. Reg-Sample-Sort 08/11 253. ConvexHull 04/01 254. ConvexHull-display 06/01 255. rootReader(trivial?)19/01 256. simplePolygon(trivial?)01/02 257. hibernate(practice)09/02 258. ply-reading(practice)12/03 259. outOfCore(preprocess)18/03 260. RenderEngine(NoWorking)22/03 261. trianGO(game of GO)04/04 262. LinuxDeviceDriver 06/04 263. OutOfCoreRendering 09/04 264. GPU-Programming 09/04 265. chopper2005(forgotten) 09/04 266. OutOfCoreRenderingfinal)15/04 267. zebra-again ★ 01/05 268. bmpReader(temporary)15/08 269. jpegEditor ★ 20/08 270. jpegEditor(Intel-IJL)10/09★ 271. MAPI-readMail(joke) 25/09 272. multi-pro-con ★27/09 273. threadTest(test)09/10 274. renderBox(huge)★★★16/10 275. matching 18/10 276. basicMessage(practice) 30/10 277. prerequisites 20/02 278. TopCoder(2001-semi)25/02 279. TopCoder(2002-semi)13/03 230. My-GDI-SDK(link-only)13/03 231. MySQL(link-only)13/03 232. HttpServer(link-only)13/03 233. HttpServer(multi-thread)25/03 Legend: 1. ★ average 2. ★★ good 3. ★★★ no such stuff! Code competition Record {So it is said. So it is written.} 1. Probability 2. Hardware 4. Misc 6. Newcomer 7. Java 8. database 10. memorandum 11. scheme 12. graphic Footstep (Assignments) 1. Comp229 2. Comp335 3. Comp352 4. Comp348 5. MyView 6. MyReview 7. MyIdea Tutorials Download 1. MyTree 3.Square root by MASM (improved) 7. chessboard 8. source code of chessboard(cheating) 12.Assembly assignment (final verstion) (win98 OK, XP cannot see mouse) 13.input matrix of shortest path (Dijkstra). 16. input of Scanner 18. input for strange dictionary 19. input for testing strange dictionary 22. Moon-Machine 27. Dependency video online My future??? |
Diablo Forum when pictures in brain become blurred, we can only seek answer in digital stored solution. (Came here before? This might be what you are looking for.) The dirt and dust from my pilgrimage form the oceans of stars... (my main page which is in Chinese) It all starts like this... (Do you know why you can see these garbage?) The day-dreaming-gossip is so long that I save them here and here you will only see the latest ones. 30/01/08 What a shame! The only available tool for png file is "libpng" which is as ugly as "ijg". I spent a whole day to compile and made a small adept for convinience. Here it is zlib which is required for libpng. 08/02/08 19/02/08 int x=10; ++x=x++; printf("x=%d\n", x); What is output? I said 10, microsoft said 12, Linux said 11. What is your answer? I think this is a purely compiler issue. Imagine that VC++ simplifies "x=x++;" to be simply "x++;". And if you believe x=x++; is equal to x++; then you may not find surprised about x=12. I tried vc2005 and change optimisation settings, but it remains 12. (WH informs me that x=x++; is syntactically nonsense to C++ standard because they don't think it makes senses. Therefore it is up to compiler to decide what they are going to do. In VC, it translates into x++. That is why x=x++; is different from y=x++;) The phrase "the pursuit of happiness" is originated from "Declaration of Independence" and it is used as a film title which reflects the "American Dream" of many common people. It took American eight years and tens of thousands of lives to pursue their independence and for a common mortal such as you and me it may take more. So, naturally I am not happy now because I am in the procedure of pursuit of my happiness which may never come even till the end. ok,ok, finally I read the STL careful enough and find my solution. If the system doesn't support set<T>::insert(set<T>::iterator, set<T>::iterator); then you can use this "copy(set<T>::iterator, set<T>::iterator, inserter(set<T>, set<T>::iterator));". Isn't it a lovely solution? I get this from the book <C++ STL> by Nicolai. The heap is very neat. 25/02/08 There are countless problems waiting for you in TopCoder and I am pretty slow in coding. Here are what I have done in past few days. 12/03/08 Question: Should Http server be stateless? Why is HttpHeaderKeepAlive not working? Because it is, quote "massively misunderstood", end quote. By default http1.1 allows connection be persistent unless client asks to stop. My mistake is to assume "request id" remains the same between requests which is wrong. Windows Live starts a new free service called "sky drive" and it gives me a chance to store my project there because I really run out of my space in this web hosting. Sadly I think I will not continue my little GDI SDK(I called it for myself.) Let's save it here for future. In my home old computer, I start a purely C-based web service. It is using "my SQL" C-API to access database, using "windows httpAPI" to implement the simplest http server. Currently it only concentrates on binary files web browsing which I think is only challenging part for me. So, in all, it is a purely C program. (http server part are mostly borrowed from MSDN sample, but I changed and plan to change a lot.) This is a stand alone "MySQL" access project which also acts a dataset inserter. By the way, it calculates MD5 of file as a signature to make sure no repeat picture or music is inserted. Of course the MD5 part is downloaded from wiki, but it is not that complicated. My HttpServer+MySQL kit requires a small thing for compiling. It needs http.h+basetsd.h(replace) from "platformSDK". PlatformSDK is supposed to be compatible between VC6 and VC200X, but you need to update the "basetsd.h". By the way, here is my experimental web site with my home old computer. 25/03/08 Finally I finished my multi-threaded version. It takes me so long because I am quite busy and the conflicting problem between VC6 and platformSDK takes me about one week to fix. Now it is a stateless http-server with one listening thread + multiple DB threads. Here is the backup. And here is the server, (The content may contain nudity and mature material, viewer's discretion is recommended. The purpose of this website is purely for research and doesn't represent my viewpoint.) : http://nickhuang99.dynalias.com 02/04/08 This is very educational and I copy the discussion here for future reference! 24/04/08 OK, this is tough, the routing is really complicated. DC is almost driven crazy by Raja because I think this is really a nightmare for all programmer. You see, he is doing his server in virtual machine of windows server running on winXP and later he tells me that it is a big mistake to use NTFS because there is a lot of security issues. The new version of server keeps crashing while the old one is running OK. Almost everything can be the reason. The security, the certificate, the registry, the environment, the dll, the tlb, and of course his new code which uses some windows hook to do something and the service, the server, etc...I can see he is a kind of crazy as he said this is his worst bug and I believe it because for any programmer who doesn't obey those rules of server programming this is the price to pay. The session is running somewhere you can only watch with VNC which is quite difficult to debug. And finally he asks to bring those server physically back to office to be connected by KVM. I saw him installing VC6 in those servers for tracing before I leave office. This seems the only convenient way. The strange thing I noticed about service is that it can start by "system" or by my user. This is also something I don't understand in cluster. Those remote sessions are started and later are failed to be shut down, living as zombies. My eyes hurt. 27/04/08 OK, finally I finished some feature about my picture browser. The permanent domain name is http://nickhuang99.dynalias.com . The source code is here. Thank you so much for your tips about firefox and I think I
just fix the problem. You know, firefox seems to me like baby toy which
doesn't even do a simple guess work as IE. If you give it a picture
file, firefox doesn't even try to check what type of image or even
check if it is some image file like bmp, jpg, png etc. 07/05/08 The old mission: DC wants me to make a debugging tool such
that it uses pipe instead of socket to recv server data and shows exact
image of client. save stable version of my three little projects. httpserver-stable httpClient-stable mySqlTools-stable and here is the small trivial handy tool for md5. 01/06/08 Now it is 100k pictures and just guess how soon I can make it one million? 09/06/08 Congratulations!
The number of pictures reaches 200k.Within 24 hours, I placed
more than a dozen of spiders and the most lucky one grabs almost 50k
pictures from one website. In total, they collected about 150k pictures
for me. Of course many of them are actually replica which I already
collected before. You know, guys in China are doing the same thing as
me to collect picture all over the world. DC's tip is that file name
starting with "\\" will be saved in root directory and this is better
since you may not know where to find your program running. He also
mentioned about "getsystemdirector" which maybe different to
"getwindowsdir". I never used them, but it is always good to know.
Driver has a lot of to read and it is interesting. Congratulations! The database is approaching 400k! And my three tools are all upgrading. a) httpclient now uses mysql to store links so that in near future spiders will work in groups and they can be specialized to work as pure link-finders or image-downloaders. There will be no memory limit, no time limit. i.e. I can shut down any program without losing all data collected. b) httpserver now has a better user interface to allow you browse one picture step or one bunch of pictures step. (This sounds trivial? Yeah, not too much to improve server side.) I use port 1000 for internal testing. http://nickhuang99.dynalias.com:1000/ c) mysqltools now has a new function to add watermark to each picture and I keep the original picture in tact so that later the picture can be reproduced without watermark. 09/07/08 17/07/08 Let me repeat the line of Blackadder: Without you the life is like a broken pencil: pointless. I think I have recorded this sentence before. 03/08/08 16/09/08 20/09/08 23/09/08 28/09/08 5. How to run? search or compute? both. 6. Is it possible? No, because too much data. How to do? abstract map to converge data set to one. (forget details.) 02/10/08 06/10/08 12/11/08 16/11/08 I am wondering and pondering, cannot figure out ends or means. They are such beatiful lines and I have to repeat them by heart whenever I watch the movie. A temporary version of my resource injection, or infection. 14/06/09 This is a simple tool and it can be treated as a little practicing for STL. And for those kids who claim they know how to program, it would be some kind of fun. 10/09/09 In order to remember, I need to forget and when I forget details the abstraction emerges. 27/09/09 Suppose you are feeling extremely bored with your tedious life and have infinite free time to kill, it is only then recommendable to read these garbage. 05/10/09 I wonder if the percentage of population is above 0.001% in any country who enjoy and understand this marvellous political satire series. Yes, PrimeMinister. Yes, Minister. 19/10/09 As ring bearer, you have to be alone. 28/10/09 Life is a kind of meaningless here and I don't know why I stay and how long I am going to stay. I do miss Canada. Maybe the only good thing here is that you can do your jogging along bus line in winter so that you can save s few coins and relieves your mind from thinking. In Montreal, you don't have to try this hard by running 5km because the chilling wind will make your brain totally numb for working. However, the effect is similar. Give me a reason to stay or to go, not just some pathetic excuses. 10/02/10 A true artist only lives in his narcotic creative moment of bliss. ---from <Art School Confidential> I say there exists only one law in China, the law of jungle. The only evidence of human civilization is that the winner does NOT take the loser's body as food. I say the PRC stands for Preparing the Rising of China. However, whenever there is a rise of power of country in each century accompanied with some significant discoveries or inventions, such as new continents, steam engines etc. What on earth do people of China discover or invent? Just as Mr. Bill Gates says, China discovers new ways of capitalism. 21/03/10 Ticket is booked and I am doomed to be back to Canada on next weekend. Back to home? Back to track? Home is becoming such a strange concept for me as I have to apply tourist visa in order to stay here. Can you call this place my home town? Even though I speak the so-called mother tongue, I feel I don't understand what I am talking about. A minute ago, I woke up from nap in crouch while watching CCTV channel 9 which is introducing an American-Chinese or Chinese-American musician, Kaisser Kuo. For a few seconds, I wasn't sure where I was when I woke up. Now I understand this sort of typical feeling when you just wake up from a dream. 26/04/10 Ticket to New York cannot be booked until the documents are received as I am not sure about the visa at all. Funny? Isn't it? How should I describe my own private wish? This is a typical speaking in <Yes, Prime Minister>: Certainly one doesn't have ambition to seek money as one always place one's life achievement before one's wealth. However, if one's best interest for one's life achievement is to seek one's fortune, one might take that direction persuaded by one's friend or any interest group no matter what one's own private wish might be. And if you know the context, you understand what is called pathetic. 26/07/10 I think condor is a kind of joke as they claim to run in heterious platform. Then there must be a simple answer to my simple question: how to let condor run job in windows while central manager is a linux machine? condor simply doesn't work for the
easiest job submittion! While another small issue with ubuntu10 is ssh server by default is NOT installed. You have to check if sshd is running by ps aux| grep sshd. To install ssh server: sudo apt-get install openssh-server. Another trivial issue is that when you connect to some server, you have to make sure they don't delete or change their public key. To be on safe side, just delete your past history in ~/.ssh/known_hosts. 28/07/12 I think I might be wrong with condor as it seems that the executer is trying to create files of log/in/output in submitter side. This is a fundemental concept of condor and I didn't get it. So, it must be a permission problem. Indeed, googled and they said executer would run under user of "nobody" if authentication is not passed. One of them is the "domain name". In my case, there is no true dns server, therefore maybe I should set "trust_uid" =true. As for "filesystem_domain", I better comment it out as it is said to be related with share file system etc. Then in my two ubuntu, the job is held for two unknown reasons. Damn it! 28/08/10 In ec2, sqlserver maybe wrong with login as computer name changes from last time you made AMI. So, just login as .\servername without hostname. As a result, using windows authentication instead of sqlserver authentication as it uses hostname\username as login name. In condor, condor_store_cred add only. When prompted, input password. This works fine with all windows. Let me try with mix of window/linux. Also, pls note this is for submitter host only. For other machines... maybe this only works for windows in which user/passwd are all same in all machines. Time is short, life is fast and my memory slips away. 12/08/10 sudo apt-get install smbfs sudo mount -t smbfs -o username=nick,password=123456 //NICK-PC/data /mnt/data in case error, try 1. shut down windows firewall. 2. smbclient //NICK-PC/data -U nick 13/08/10 Shifu says to Panda:"Tomorrow is a mystery. Yesterday is a history. And today is a gift which is why it is called present." While I think today is a misery which is so identical to tomorrow because you cannot compare today with tomorrow, even though you maybe comparing today with yesterday everyday. A mystery and misery. 14/08/10 T says something I never know. Using VC to compile even same code twice, the binary are different. Indeed, I calculate their MD5 and they are different. Why? 15/08/10 So, I think it is very difficult to submit executable from windows to run in Linux, which I mean script. Therefore you have to use script as parameter for executable already in linux instead of copying scripts to run directly. At least I didn't succeed after more than one and half days struggling. Here is the sample which works:universe = vanilla Executable = /bin/bash Requirements = OpSys == "LINUX" && Memory >= 500 log = c:\work\linux.$(PROCESS).log output = c:\work\linux.$(PROCESS).out error = c:\work\linux.$(PROCESS).err should_transfer_files = YES transfer_executable = false input = myblender.sh transfer_input_files = myblender.sh #Arguments = myblender.sh when_to_transfer_output = ON_EXIT Queue 17/08/10 It was said that 0.7% of population in China controls more than 70% of treasure and till recently I just understand how this figure comes from. Very simple. The total number of communist party memeber of china is about 70million and the total population in China is about 1.3billion. So, you know 70m/1.3b is roughly 0.7%. Hail the communist dictatorship!19/08/10 Shell script doesn't support Unicode, I have to rewrite the list. This is the little program. Unfortunately webhosting doesn't allow wide char as folder, so this might not be true and I have not defined "UNICODE" macro. So this is just a fake. Anyway I don't have time for programming except an hour in the morning. 21/08/10
|
Do you want to know the weather in Montreal? see here.