Quantcast
Browsing latest articles
Browse All 50 View Live

(Windows) LogParser - Install Without Admin Rights

A twitter acquaintaince @zippy1981 recommended the Window's software LogParser as a replacement for MSSQL bcp for my data transfer needs.  I downloaded the msi file from Microsoft and tried to install...

View Article


Image may be NSFW.
Clik here to view.

Editing a PDF file with Python (with a little help from PDFTKBuilder)

I'm working with a report published with SQL Server Reporting Services (SSRS).  The report is located on a remote server in Africa.  It is inconvenient for management in North America to view the...

View Article


Image may be NSFW.
Clik here to view.

Internet Explorer 9 Save Dialog - SendKeys Last Resort

At work we use Internet Explorer 9 on Windows 7 Enterprise.  SharePoint is the favored software for filesharing inside organizational groups.  Our mine planning office is in the States; the mine...

View Article

PDF - Removing Pages and Inserting Nested Bookmarks

I blogged before about PyPDF2 and some initial work I had done in response to a request to get a report from Microsoft SQL Server Reporting Services into PDF format.  Since then I've had better luck...

View Article

Image may be NSFW.
Clik here to view.

Event report: pycon.za

I managed to squeeze in a 4 day stop in Johannesburg on a recent trip that happily coincided with pycon.za.  I love pycon.us and all the other big conferences, but for value, these smaller localized...

View Article


Image may be NSFW.
Clik here to view.

Downloading a Bunch of MP3's off the Internet (Foreign Language Tapes)

A mining bud Jen wrote a blog post lamenting the difficulty of learning a foreign language as an adult in a far off land.  This inspired me to clean up my "download the Foreign Service Institute"...

View Article

subprocess.Popen() or Abusing a Home-grown Windows Executable

Each month I redo 3D block model interpolations for a series of open pits at a distant mine.  Those of you who follow my twitter feed often see me tweet, "The 3D geologic block model interpolation...

View Article

Image may be NSFW.
Clik here to view.

Mono gtk-sharp IronPython CalendarView

A number of years ago I did a post on the IronPython Cookbook site about the Windows.Forms Calendar control.  I could never get the thing to render nicely on *nix operating systems (BSD family).  It...

View Article


Image may be NSFW.
Clik here to view.

Gtk.TreeView (grid view) with mono, gtk-sharp, and IronPython

The post immediately prior to this one was an attempt to reproduce Windows.Forms Calendar controls in Gtk for cross platform (Windows/*nix) effective rendering.This time I am attempting to get familiar...

View Article


Image may be NSFW.
Clik here to view.

MeetBSD California 2014 Recap

I am returning from MeetBSD in San Jose, California.  This isn't a Python-related post per se, but the BSD family of operating systems maintains packages and ports for Python and Python third party...

View Article

Image may be NSFW.
Clik here to view.

Polygon Offset With pyeuclid Revisited

A few years back I did two or three posts on polygon offset.  It was a learning experience that I never quite completed to my satisfaction.  A kind visitor to my last post on the subject, Mr. Ahmad...

View Article

Image may be NSFW.
Clik here to view.

Polygon Offset Using Vector Math in IronPython

The other day I saw a something retweeted by @leppie (I think) about an experimental hyper-fast vector math driven 3D engine for the dot Net Framework.  This led me to investigate whether there is a...

View Article

Image may be NSFW.
Clik here to view.

IE and Getting a Text File Off the Web - Selenium Web Tools

I've blogged previously about getting information off of a distant server on my employer's internal SharePoint site.  Automating this can be a little challenging, especially when there's a change.My...

View Article


Image may be NSFW.
Clik here to view.

Lenovo Thinkpad X201 Fan Replacement

This is not a Python-related post per se, but it may be useful to people getting started with UNIX-based, open source software, or even a Windows user who happens to be using a Thinkpad X201...

View Article

Image may be NSFW.
Clik here to view.

MSSQL sqlcmd -> bcp csv dump -> Excel

A couple months back I had a one-off assignment to dump some data from a vendor provided relational database to a csv file and then from there to Excel (essentially a fairly simple ETL - extract,...

View Article


Image may be NSFW.
Clik here to view.

Setting Up Toy Postgresql Database on OpenBSD

This isn't a Python scripting post, but the next one will be on the same topic.  In this post I get a Postgresql database set up on my OpenBSD laptop and get familiar with the Postgresql environment.I...

View Article

Image may be NSFW.
Clik here to view.

Storing and Displaying Images in Postgresql

Last post I set up a toy (literally) Postgresql database for my model train car collection.  A big part of the utility of the database is its ability to store images (pictures or photos) of the real...

View Article


Image may be NSFW.
Clik here to view.

Improved Storing and Displaying Images in Postgresql - bytea

Last post I brute forced the storage of binary image (jpeg) data as text in a Postgresql database, and accordingly brute forced the data's display in the Unix image viewer feh from output from a psql...

View Article

7-Zip-JBinding API with jython on Windows

I have a set of multi-GB Windows folders that I need to archive in 7-zip format each month.  I'd prefer not to use the mouse to compress the folders "manually."  Also, I didn't want to use the command...

View Article

Using Generators and Coroutines to Merge Tabular Data (Drill Holes)

I have some mining drill hole data that I need to merge into an old vendor FORTRAN input format.  Basically I do a series of SQL pulls from the drillhole database to csv files, then merge the data.  My...

View Article

sqlcmd faux csv dump and parsing with the csv module

Lately I had another Excel-VBA-Python one off hack project.  Once again there was the dilemma of not being able to use MSSQL's bcp because my query string was too long.  sqlcmd can run a query from a...

View Article


Crude Testing of Equivalent Code With assert

In engineering and business environments, it is common to have to1) recreate an equivalent calculation in a different format for a different purpose and check the results against the original...

View Article


Image may be NSFW.
Clik here to view.

Filling in Missing Grouping Columns of MSSQL SSRS Report Dumped to Excel

This is another simple but common problem in certain business environments:1) Data are presented via a Microsoft SQL Server Reporting Services report, BUT2) The user wants the data in Excel, and,...

View Article

Powershell Encoded Command, sqlcmd, and csv Query Output

A while back I did a post on using sqlcmd and dumping data to Excel.  At the time I was using Microsoft SQL Server's bcp (bulk copy) utility to dump data to a csv file.Use of bcp is blocked where I am...

View Article

Image may be NSFW.
Clik here to view.

Embedding an Image in an Outlook Email

 I had a project where I needed to generate some draft emails programmatically in Outlook.Inserting the company logo and some content related images took some googling to sort through. Ideally I wanted...

View Article

Browsing latest articles
Browse All 50 View Live