In the preface, I found the following quote, to which I wholeheartedly agree:
Wednesday, July 8, 2015
Whether you like it or not, no one should ever claim to be a data analyst until he or she has done string manipulation.
Saturday, June 20, 2015
Little things that make life easier #9: Using data.entry in r
data.entry()
, it's easy to visually fill (small) matrices in r.
Let's see it in action. First, I create a 4x3 matrix:
The matrix is created with the cells' values being NA
Now, in order to assign values to these cells, I use
This opens a small window where I can enter the data.
This is how the cells were filled before my editing them:

And here's how they looked after my editing them just before I used File > Close:
Back in the shell, the matrix has indeed changed its values:
Pretty cool, imho.
Thursday, March 5, 2015
Is a sequence incremented in a failed insert?
If the insert statement fails, is the sequence still incremented?
Let's try it with a test. The table:
After running this anonymous block, the table contains:
Returning:
netxtval
is "wasted" if the insert statement fails.
Monday, February 16, 2015
The most important wget command line options (flags)
Inserting and selecting CLOBs with DBD::Oracle
CLOB
:
With Perl and DBD::Oracle
, the CLOB
in the table can be filled like so:
A CLOB
can be selected like so:
Tuesday, February 10, 2015
A Perl wrapper for Oracle's UTL_FILE package
Here's a simple perl script that demonstrates its use:
The code is on github: OracleTool.pm and UtlFile.pm.
Checking the value of NLS_LANG in SQL*Plus on Windows
NLS_LANG
on Windows in SQL*Plus.
First, it can be verified if the environment variable NLS_LANG
is set:
SQL*Plus will answer with either something similar to
In the first case, the environment variable is set and its value, as displayed by the echo
command is the value for NLS_LANG
.
If the variable is not set, that is in the second case, the following trick allows to determine its value none the less:
There are again two possibilities how SQL*Plus will react. Either
In the first case, the value for NLS_LANG is set in the Windows registry (to the value between [ and ]). In the second case, NLS_LANG is not even set in the Windows registry.
Incidentally, this seems to be achieved much easier like so