Profile cover photo
Profile photo
Philip Steiner
20 followers
20 followers
About
Posts

Post has attachment
Ten Years On
Just realized I've had this blog up since February 2007.
Add a comment...

Post has attachment
Control+Shift+Enter to launch a Windows program as admin!
To launch any Windows program with elevated (admin) privileges, hold Control+Shift  keys, then double-click the program's icon, even on the taskbar. Alternatively, hit the Windows key, type the program name, e.g. cmd then type Control+Shift+Enter  to launch...
Add a comment...

Post has attachment
How to check for admin rights from a Windows batch file
Simple check for administrative permissions in a batch file: REM Check for admin rights - net session must run as admin net session >nul 2>&1 if %ErrorLevel% NEQ 0 (     echo You must right-click and select "RUN AS ADMINISTRATOR" to run this script.     ech...
Add a comment...

Post has attachment
Another HEREDOC style for Windows Batch Files
I wanted to pipe a SQL query to sqlplus in a batch file, without using a temp SQL file. That technique involves echo'ing the SQL  statements  to a temp file, then call sqlplus on that file: REM create the temp SQL file echo SELECT USER >>temp.sql echo FROM ...
Add a comment...

Post has attachment
Perl property method?
package Foo sub new {     ... } # bar property sub bar {     my ($self, $text) = @_;     if ($text)     {         $self->{bar} = $text;     }     else     {         return $self->{bar};     } } 1; my $foo = Foo->new; $foo->bar; # returns value of $self->bar...
Add a comment...

Post has attachment
HEREDOC for Windows Batch Files
From Wikipedia : "In computer science , a here document (here-document, heredoc, hereis, here-string or here-script) is a file literal or input stream literal: it is a section of a source code file that is treated as if it were a separate file." Here's one ...
Add a comment...

Post has attachment
Sometimes it's hard seeing something you love grow old. Sometimes, you can do something about it.
Add a comment...

Post has attachment

Post has attachment

Post has attachment
Wait while more posts are being loaded