Connecting to remote SSH server (via Node.js/html5 console)

This is easily doable with modules like ssh2, xterm, and socket.io. Here’s an example: npm install ssh2 xterm socket.io Create index.html: <html> <head> <title>SSH Terminal</title> <link rel=”stylesheet” href=”https://stackoverflow.com/src/xterm.css” /> <script src=”/src/xterm.js”></script> <script src=”/addons/fit/fit.js”></script> <script src=”/socket.io/socket.io.js”></script> <script> window.addEventListener(‘load’, function() { var terminalContainer = document.getElementById(‘terminal-container’); var term = new Terminal({ cursorBlink: true }); term.open(terminalContainer); term.fit(); var socket … Read more

Can’t install Fiona on Windows

When building from source on Windows, it is important to know that setup.py cannot rely on gdal-config, which is only present on UNIX systems. On Windows, these paths need to be provided by the user. You will need to find the include files and the library files for gdal and use setup.py The GDAL DLL … Read more

Errorlevel in a For loop (Windows batch)

Add setlocal EnableDelayedExpansion to the start of your script, then use !errorlevel! instead of %errorlevel% Delayed Expansion will cause variables to be expanded at execution time rather than at parse time ~ http://ss64.com/nt/delayedexpansion.html The answer to another question that pointed me in the right direction: Errorlevel of command executed by batch for loop

How to translate MS Windows OS version numbers into product names in .NET?

howto net os version VB: Public Function GetOSVersion() As String Select Case Environment.OSVersion.Platform Case PlatformID.Win32S Return “Win 3.1” Case PlatformID.Win32Windows Select Case Environment.OSVersion.Version.Minor Case 0 Return “Win95” Case 10 Return “Win98” Case 90 Return “WinME” Case Else Return “Unknown” End Select Case PlatformID.Win32NT Select Case Environment.OSVersion.Version.Major Case 3 Return “NT 3.51” Case 4 Return “NT … Read more

How do you programmatically resize and move windows with the Windows API?

For flicker-free, simultaneously positioning two (or more) windows, your best bet is to use BeginDeferWindowPos(), DeferWindowPos() and EndDeferWindowPos(). In your case, since you’re moving two at the same time, this is your best bet. Three older, simpler functions you might also consider are SetWindowPos(), MoveWindow() and AdjustWindowRectEx().