Showing posts with label IronPython. Show all posts
Showing posts with label IronPython. Show all posts

Saturday, April 02, 2016

Running Python one liner

Running on liner Python is sometimes just fells awesome, practice with caution though. Below spits out uuid4 using Python one liner.

c:\> ipy -c "import uuid; print(uuid.uuid4())"

Reference(s):
http://stackoverflow.com/questions/2043453/executing-python-multi-line-statements-in-the-one-line-command-line

Sunday, November 16, 2014

Installing Pyro 4.30 in IronPython 2.7.4

This assumes that IronPython is installed in D:\ipy.
  1. Download Serpent archive file - used 1.7 (link). Serpent is needed by Pyro 4.
  2. Extract to a folder, say D:\Serpent.
  3. Change directory to where Serpent was extracted then do D:\Serpent>D:\ipy\ipy.exe setup.py install. This will install Serpent.
  4. Download Pyro 4 tar archive (link).
  5. Extra to a folder, say D:\Pyro4.
  6. Change directory to where Pyro4 was extracted then do D:\Pyro4>D:\ipy\ipy.exe setup.py install.

Wednesday, February 19, 2014

Read 64-bit registry key from 32-bit process in IronPython using WMI

References:
http://msdn.microsoft.com/en-us/library/aa393297(v=vs.85).aspx
http://www.experts-exchange.com/Programming/Languages/C_Sharp/Q_23080571.html

Note(s):
This is not reliable on Windows 10 or maybe related to the version of .Net? Anyway updated version is located here:
http://8thstring.blogspot.com/2016/01/read-64-bit-remote-registry-from-32-bit.html

Friday, May 04, 2012

Setting up Eclipse 4.1 as IronPython IDE

There are various IDEs available out there that can be used for IronPython. One of them is Eclipse + PyDev + Subclipse for version control. The nice thing with this setup is that it provides intellesense and it does understand Python language well.

Setting it up is fairly easy. First download Java Runtime, I have used v6 update 32 for this exercise. Second, download Eclipse 4.1 (4.1.2 as of this writing). The way I see it, version 4.x is not yet for the mainstream use but it does work fairly well. Third, install latest PyDev and finally install Subclipse for SVN integration.

~ts

CPP Quick Guide

Basics Hello world User input While loop If statement For loop Switch statement Read file using ifstream Write to a file using ofstr...