Archive for the ‘Uncategorized’ Category

Mini Searches with Answers

Friday, November 4th, 2011

These are links associated with recent searches I’ve done. They’re not difficult enough to warrant to their own posts but still super useful.

Sun Grid Engine (SGE) – qstat – What do the states stand for?
Category State SGE Letter Code
Pending pending qw
pending, user hold qw
pending, system hold hqw
pending, user and system hold hqw
pending, user hold, re-queue hRwq
pending, system hold, re-queue hRwq
pending, user and system hold, re-queue hRwq
Running running r
transferring t
running, re-submit Rr
transferring, re-submit Rt
Suspended job suspended s, ts
queue suspended S, tS
queue suspended by alarm T, tT
all suspended with re-submit Rs, Rts, RS, RtS, RT, RtT
Error all pending states with error Eqw, Ehqw, EhRqw
Deleted all running and suspended states with deletion dr, dt, dRr, dRt, ds, dS, dT, dRs, dRS, dRT

FileMaker Pro Barcode Tutorial 2D Barcodes
I think you can use a Google chart API instead of buying this service?

git ready » pick out individual commits
A good explanation of git cherry picking.

Python Thread Pool « Python recipes « ActiveState Code
This thread pool implementation seems to work well

Should ‘Hi’, ‘thanks,’ taglines, and salutations be removed from posts? – Meta Stack Overflow
Stackoverflow just removed my greeting “hi guys”! I found the explanation here.

If you want your greeting to show up on a question prefix it with non space characters e.g.,

– hi guys,

Tags: , , , , , , , ,

Mini Searches with Answers

Saturday, October 22nd, 2011

These are links associated with recent searches I’ve done. They’re not difficult enough to warrant to their own posts but still super useful.

svn – Revision 4862: /xlwt/trunk/xlwt/examples
Useful examples of how to use the Python Excel library, xlwt.

The equivalent of Python’s repr in perl
use Data::Dumper;
$boo = ” test n”;
print Dumper($boo);

Preserving styles using python’s xlrd,xlwt, and xlutils.copy – Stack Overflow
Python Excel (xlrd, xlwt) – How to copy a style from one cell and put it on another:

newCell.xf_idx = previousCell.xf_idx

New JDBC Drivers for FileMaker 11
I was getting these errors trying to connect to FileMaker 11 via JDBC on DBVisualizer. It turns out you need this new JDBC driver.

Product: DbVisualizer Personal 7.1.5
Build: #1590 (2011/02/24 17:23)
Java VM: Java HotSpot(TM) 64-Bit Server VM
Java Version: 1.6.0_26
Java Vendor: Apple Inc.
OS Name: Mac OS X
OS Arch: x86_64
OS Version: 10.6.8

An error occurred while establishing the connection:

Long Message:
[DataDirect][SequeLink JDBC Driver]Internal network error, session aborted due to session protocol data unit format error, connection closed.

Details:
   Type: java.sql.SQLException
   Error Code: 2207
   SQL State: HY000

1) Nested Exception:

Long Message:
Session aborted due to IIOP problems.

Details:
   Type: java.sql.SQLException
   Error Code: 7772
   SQL State: HY000

2) Nested Exception:

Long Message:
IIOP error, invalid protocol identifier.

Details:
   Type: java.sql.SQLException
   Error Code: 7529
   SQL State: HY000

Mean and Standard Deviation in Python
8.3 meanstdv()

Summary
Mean and standard deviation of data

Usage
real, real = meanstdv(list)

“”" Calculate mean and standard deviation of data x[]: mean = {sum_i x_i over n} std = sqrt(sum_i (x_i – mean)^2 over n-1) “”" def meanstdv(x): from math import sqrt n, mean, std = len(x), 0, 0 for a in x: mean = mean + a mean = mean / float(n) for a in x: std = std + (a – mean)**2 std = sqrt(std / float(n-1)) return mean, std

File Requires “Full Access” to login. – FileMaker Forums – FileMaker Pro Help and Support Worldwide Community
How to fix FileMaker error:
“your access privileges do not allow you to perform this action” when logging in with a non-full-access account.

You simply want to add the extended privilege “Access via FileMaker Network (fmapp)” to make this work

Tags: , , , , , , ,

Mini Searches with Answers

Thursday, October 13th, 2011

These are links associated with recent searches I’ve done. They’re not difficult enough to warrant to their own posts but still super useful.

Statistical Computing with R: A tutorial
This is a refreshingly straight-forward R tutorial. The first I’ve seen.

Requests: HTTP for Humans — Requests 0.6.2 (dev) documentation
Most existing Python modules for sending HTTP requests are extremely verbose and cumbersome. Python’s builtin urllib2 module provides most of the HTTP capabilities you should need, but the api is thoroughly broken. It requires an enormous amount of work (even method overrides) to perform the simplest of tasks.

Things shouldn’t be this way. Not in Python.

Basics: Master Control Genes and Pax-6 : Pharyngula
A very interesting discussion of master control genes. Did you know you can take a single squid gene, put it into a fly cell, and have it create a fly eye?

R Tutorials
These are supposed to be good R tutorials

Tags: , , , , , , , , , , , , ,

Mini Searches with Answers

Friday, September 23rd, 2011

These are links associated with recent searches I’ve done. They’re not difficult enough to warrant to their own posts but still super useful.

The Mouse as a Model System
This somewhat explains why a backcross experiment would be desired or necessary. It also explains some interesting ideas about genetics in general.

Autodesk Labs Utilities Project Photofly 2.1
Allows anyone with a digital camera to create near accurate 3D models from photographs using the web.

Django Model Field to MySQL Datatype – The Glenbot
This page tells you what MySQL datatype each Django model field type uses … as of 2009. It’s still pretty handy.
My search term was “django time field mysql datatype”

Tags: , , , , , , , , , , , ,

Mini Searches with Answers

Friday, September 16th, 2011

These are links associated with recent searches I’ve done. They’re not difficult enough to warrant to their own posts but still super useful.

Switch “origin” of your GIT repository « Dariusz Cieślak’s Blog on Software
I was trying to put my existing, cloned repository into github and I got this error:
$git remote add origin git@github.com:JaneliaSciComp/msg.git
fatal: remote origin already exists.

This page tells how you change your remote origin.

Pro Git – Table of Contents
This seems like a really good online git book.

Perl Warning WTF – Scalar value @t[7] better written as $t[7]
This page has the answer:

The problem is that @names[3] denotes an array slice — you can tell by the @. What you really want is $names[3], which is a true scalar

perl – How can variables be set to NULL under the strict pragma? – Stack Overflow
Fixing warning:
Bareword “null” not allowed while “strict subs” in use

My commentary:
Null isn’t real? The other tutorials said it was. Why is it allowed at all then?

perlintro – perldoc.perl.org
This seems like the best perl tutorial I’ve seen. It’s simple and to the point.

Tags: , , , , , , , , , , , ,