Brain Goo

Carpe Crap ’em

Brain Goo header image 4

Ads help keep this site alive:


Entries Tagged as 'Programming'

Using Oracle SYS_GUID() and RAW in SQLAlchemy

April 12th, 2017 · No Comments

How to use RAW data types from cx_Oracle dialect in SQLAlchemy to create unique row IDs that are generated by SYS_GUID(). Use Oracle’s SYS_GUID() function to create unique IDs for rows without Sequences.

[Read more →]

Tags: cx_Oracle · Oracle · Programming · python · SQLAlchemy

HOWTO use PHP getallheaders() under FastCGI (PHP-FPM, nginx, etc.)

July 14th, 2015 · No Comments

If you use Nginx, PHP-FPM or any other FastCGI method of running PHP you’ve probably noticed that the function getallheaders() does not exist.

[Read more →]

Tags: How Tos · php · Programming

HOW TO Lower Case All Dictionary Keys in a Complex Python Dictionary

November 20th, 2014 · No Comments

This tutorial shows you how to write and use a function that will iterate over complex, nested dictionary or list or combination of the two. For any dictionaries it finds, it will rename the keys to lower-case. This is useful when trying to match an known string with a key name returned from another source […]

[Read more →]

Tags: How Tos · Programming · python · Software