Category: programming languages
On 64-bit Windows, we have two different sets of Window Scripting Host (WSH), 32-bit or 64-bit. The defaults are located at C:\Windows\System32, where cscript.exe or wscript.exe (with GUI, e.g. …
Previous tutorials on node.js could be found at , , . Reading files is easy in node.js via the package fs. The following shows the straightforward procedure in event-driven model to read a text file …
February 9, 2013
beginner, client-server, http, I/O File, implementation, internet, javascript, network, nodejs, programming languages, sockets, tcp/ip
Previous tutorials on node.js could be found here: We have learned to create a http server by using require(‘http’) and http.createServer(…).listen(port). The node.js is based on Javascript and event-driven model, which means that the events happen later …
Heron’s Formula is a method to compute the area of a triangle when you know its three sides, a, b, and c. The area S is then based on p where and can be easily implemented …
The problem is from codeforces: http://www.codeforces.com/problemset/problem/268/C This problem is put at the third problem in the online contests. But it seems too easy for being in that place. The sample …