Quantcast
Channel: Gary Sieling » Uncategorized
Browsing all 12 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Sample Greasemonkey Script in Chrome to process local files

The following script will fire an alert box for local files:// ==UserScript== // @name Matcher // @descriptions Match Local Files // @version 1 // @match file://* // ==/UserScript== alert(1); Save as...

View Article


Installing postgres client for nodejs

This fixes the following error: /vagrant/node_modules/pg/wscript:16: error: The program ['pg_config'] is required apt-get install libpq-dev npm install pg

View Article


How to fix “Error: NAMESPACE_ERR: DOM Exception 14″ in Chrome

The only references I’ve found online are to an old bug in Chrome. Error: NAMESPACE_ERR: DOM Exception 14 I generated this with the following xpath expression generated by Firebug:...

View Article

Image may be NSFW.
Clik here to view.

Adding Adzerk Units to Blogspot blogs

This applies to adding any html/js widget to blogspot, but in this case, we’re adding adzerk. Select “Layout” on the left hand side of blogger. Click images to enlarge.Select to add a new...

View Article

ExtJS TreePanel Example

ProblemYou want to display a file manager style tree grid.SolutionUse the Ext.chart.Chart, and set several properties under the “series” property to render a pie chart. DiscussionThe official ExtJS...

View Article


Generating ARFF files for Weka from Postgres

Since all my scraped data is in Postgres, this is the easiest way to get it out – the fastest iteration possible. At some point I’ll probably switch to a Java library. It’s interesting to see, but...

View Article

Image may be NSFW.
Clik here to view.

Cobol v. Fortran

I thought it’d be interesting to compare how many people admit to knowing ancient programming languages on their LinkedIn pages. This is in a contrast to my post on the popularity of hip JVM languages...

View Article

Optimizing WordPress Tag Pages

Normally I don’t like to write about...Read more

View Article


Summary of Weekly R News

Reading Interesting discussion on career paths and current buzzwords Statisticians Contemplate Their Own Extinction Multi-Armed Bandit Simulation Spare Matrices Statistics An interesting look at a...

View Article


Fixing Solr error “no segments* file found in NRTCachingDirectory”

If you try to run a Solr DataImportHandler by running HTTP commands (e.g. from a build script), you may hit an error like this: "no segments* file found in NRTCachingDirectory" It appears that this...

View Article

Decision Tree Testing Lessons

I’m running some tests on sklearn decision trees, and the lessons learned so far may be interesting. I’ve put my measurement code at the end – I’m tracking % correct, number of tests that are positive,...

View Article

RethinkDB cursor to array in python

The following code will retrieve query results as an array: r.connect("localhost", 28015).repl() db = r.db("search") table = db.table("industries") cursor = table.filter(lambda x: x['search_query'] ==...

View Article
Browsing all 12 articles
Browse latest View live