How do I set up Mercurial and hgweb on IIS?

I just had to install a fresh Mercurial instance yesterday, here’s updated instructions for 1.7: Install Mercurial (these instructions were tested with 1.7) Install Python (for Mercurial 1.7, you must use the x86 version of Python 2.6.6) You will need to download the hgweb.cgi file from the Mercurial source. You can download the source by … Read more

netbeans shows “Waiting For Connection (netbeans-xdebug)”

Have you rectified the issue ? If not then please try this. 1.) php.ini file content [xDebug] zend_extension = “c:\xampp\php\ext\php_xdebug-2.2.3-5.4-vc9.dll” xdebug.remote_autostart=on xdebug.remote_enable=on xdebug.remote_enable=1 xdebug.remote_handler=”dbgp” ;xdebug.remote_host=”localhost:81″ xdebug.remote_host=192.168.1.5 ;xdebug.remote_connect_back=1 xdebug.remote_port=9000 xdebug.remote_mode=req xdebug.idekey=”netbeans-xdebug” xdebug.remote_host=192.168.1.5 – This is the IPv4 address of my system, I changed to this because I couldn’t debug with localhost and 127.0.0.1. in NetBeans IDE, … Read more

How can I write a ESLint rule for “linebreak-style”, changing depending on Windows or Unix?

I spent time trying to find how to shut off the linkbreak-style and lost it due to reverting some of my code I thought others my like to have this as well. In the .eslintrc file you can also set linebreak-style to 0 which shuts off the linebreak feature: module.exports = { extends: ‘google’, quotes: … Read more

Windows equivalent of linux cksum command

In Windows (command prompt) you can use CertUtil, here is the syntax: CertUtil [Options] -hashfile InFile [HashAlgorithm] for syntax explanation type in cmd: CertUtil -hashfile -? example: CertUtil -hashfile C:\myFile.txt MD5 default is SHA1 it supports: MD2, MD4, MD5, SHA1, SHA256, SHA384, SHA512. Unfortunately no CRC32 as Unix shell does. Here is a link if … Read more

A Python script that activates the virtualenv and then runs another Python script?

You can activate your virtualenv and then start server using a bat file. Copy this script in to a file and save it with .bat extension (eg. runserver.bat) @echo off cmd /k “cd /d C:\Users\Admin\Desktop\venv\Scripts & activate & cd /d C:\Users\Admin\Desktop\helloworld & python manage.py runserver” Then you can just run this bat file (just double … Read more

Run Python script without Windows console appearing

pythonw.exe will run the script without a command prompt. The problem is that the Python interpreter, Python.exe, is linked against the console subsystem to produce console output (since that’s 90% of cases) — pythonw.exe is instead linked against the GUI subsystem, and Windows will not create a console output window for it unless it asks … Read more