not so active anymore, yet still stuff and code that works in Perl, bash, sh, PLSQL, TSQL, NZPLSQL , XML, HTML, XSL, C#, Scala , Python, Teradata SQL, cmd batch scripts, Oracle , MySql some old Java stuff , Linux , DB2 , Sun Solaris , NSIS , VB 6.0 , some old Essbase VB API and plain English - all this in non-user friendly fashion combined with occasionally strong statements and opinions about IT best practices, Agile Development , energy ... dump end ...Wait - https://qto.fi
Search This Blog
2010-12-31
Get the things done
Forbes-lehti on koonnut joukon neuvoja, joiden avulla töiden lykkäämiselle voi tehdä lopun.
Pidä yllä tehtävä-listaa ja päivitä sitä usein.
Pidä asiat tärkeysjärjestyksessä. Tee ensin kiireiset tehtävät ja sitten ikävimmät tehtävät.
Tarkista sähköposti vain kerran tunnissa.
Vastaa sähköpostiin vain, jos se on tarpeellista. Älä avaa sähköpostia, jos sinulla ei ole aikaa lukea sitä.
Selvitä, ketkä kollegasi ovat tuotteliaita ja hankkiudu yhteistyöhön heidän kanssaan.
Tee loppuun asti se, mitä olit tekemässä.
Valitse projektisi huolella, äläkä kasaa itsellesi liikaa työtä.
Csharp primitive types vs. Java types
Short Name |
.NET Class |
Type |
Width |
Range (bits) |
---|---|---|---|---|
|
Unsigned integer |
8 |
0 to 255 |
|
|
Signed integer |
8 |
-128 to 127 |
|
|
Signed integer |
32 |
-2,147,483,648 to 2,147,483,647 |
|
|
Unsigned integer |
32 |
0 to 4294967295 |
|
|
Signed integer |
16 |
-32,768 to 32,767 |
|
|
Unsigned integer |
16 |
0 to 65535 |
|
|
Signed integer |
64 |
-9223372036854775808 to 9223372036854775807 |
|
|
Unsigned integer |
64 |
0 to 18446744073709551615 |
|
|
Single-precision floating point type |
32 |
-3.402823e38 to 3.402823e38 |
|
|
Double-precision floating point type |
64 |
-1.79769313486232e308 to 1.79769313486232e308 |
|
|
A single Unicode character |
16 |
Unicode symbols used in text |
|
|
Logical Boolean type |
8 |
True or false |
|
|
Base type of all other types |
|||
|
A sequence of characters |
|||
|
Precise fractional or integral type that can represent decimal numbers with 29 significant digits |
128 |
±1.0 × 10e-28 to ±7.9 × 10e28 |
2010-12-27
how-to import textpad 5 settings on windows 64 bit
REM FILE IMPORT_TEXTPAD_SETTINGS.cmd
REM This tool makes a imports the backup of all your TextPad settings
REM in the Windows Registry.
REM COURTESY TO EXPORT VERSION OF
REM © 2002 Rasmus Andersson [flajm.com / rasmusandersson.com]
REM ADDED SIMPLE IMPORT
REM Yordan Georgiev
set CurrentSettings=CurrentSettings.reg
REG IMPORT "%CurrentSettings%"
copy /y "%cd%\textpad_system\*.syn" "C:\Program Files (x86)\TextPad 5\system"
how-to backup textpad 5 settings on windows 64-bit
REM This tool makes a complete backup of all your TextPad settings
REM in the Windows Registry.
REM The area of useage is quite wide. You can make custom "workspaces"
REM trough launching different .reg-files. Also, you may set the "prompt for parameters"
REM checkbox in textpad. Also, "Capture output" & "supress until..." sould be checked.
REM
REM In the "Parameters" textfield you can type in the deafult name for a
REM backup. ex: "texpad.reg" or "c:\textpad.reg"
REM
REM As the "initial folder" you can type in a default value, leave it blank or use $FileDir
REM © 2002 Rasmus Andersson [flajm.com / rasmusandersson.com]
REM ADDED DOUBLE EXPORT FOR CURRENT SETTINGS ALSO
REM Yordan Georgiev
REM Dim vars
set KEYPATH=HKEY_CURRENT_USER\Software\Helios\TextPad 5
set BUFILENAME=textpad_settings_on_%computername%_%date%.reg
set CurrentSettings=CurrentSettings.reg
REM check for errors
:DOCHECK
if "%BUFILENAME%"=="" goto :REPORTERROR
:DOBACKUP
REG EXPORT "%KEYPATH%" "%BUFILENAME%"
::BACKUP THE LATEST SETTINGS INTO SEPARATE FILE
REG EXPORT "%KEYPATH%" "%CurrentSettings%"
::CREATE A FOLDER FOR THE SYNTAX FILE
mkdir textpad_system
::NOW COPY ALL THE SYN FILES INTO
copy /y "C:\Program Files (x86)\TextPad 5\system\*.syn" "%cd%\textpad_system"
REM Report success
:SUCCESS
echo Registry backup of "%KEYPATH%"
echo successfully saved to "%BUFILENAME%"
goto :ENDBAT
REM reports an error
:REPORTERROR
echo You must specify an output filename for the
echo backup.
echo Example: c:\appbackup.reg, textpad.reg, \\computer\folder\backup.reg
REM Exits and quits
:ENDBAT
EXIT
2010-12-26
batch file to stop sql server 2008
ECHO START::FILE:Start_Sql_Server_2008:==========================================
:: File: STOP_Sql_Server_2008.cmd
:: Purpose: To stop a running SQL Service on
:: Usage: RUN AS Admin
:: Requirements: Installed MSSQL 2008 server and the Win GNU grep utility
:: Write here the instance name in your environment, default is MSSQL
set InstanceName=POC_QA
ECHO STOPING SQL Server (%InstanceName%)
NET STOP "SQL Server (%InstanceName%)"
::PAUSE
ECHO STOPING SQL Full-text Filter Daemon Launcher (%InstanceName%)
NET STOP "SQL Full-text Filter Daemon Launcher (%InstanceName%)"
::PAUSE
ECHO STOPING SQL Server Agent (%InstanceName%)
NET STOP "SQL Server Agent (%InstanceName%)"
::PAUSE
ECHO STOPING SQL Server Browser
NET STOP "SQL Server Browser"
::PAUSE
ECHO STOPING SQL Server VSS Writer
NET STOP "SQL Server VSS Writer"
::PAUSE
ECHO CHECK WHETHER ANY SQL SERVICE IS RUNNING
ECHO NET START ^| grep SQL
NET START | grep SQL
PAUSE
ECHO STOP::FILE:STOP_Sql_Server_2008:==========================================
batch file to Start sql server 2008 service
ECHO START::FILE:Start_Sql_Server_2008:==========================================
:: File: START_Sql_Server_2008.cmd
:: Purpose: To START a running SQL Service on
:: Usage: RUN AS Admin
:: Requirements: Installed MSSQL 2008 server and the Win GNU grep utility
:: Write here the instance name in your environment, default is MSSQL
set InstanceName=POC_QA
ECHO STARTING SQL Server (%InstanceName%)
NET START "SQL Server (%InstanceName%)"
::PAUSE
ECHO STARTING SQL Full-text Filter Daemon Launcher (%InstanceName%)
NET START "SQL Full-text Filter Daemon Launcher (%InstanceName%)"
::PAUSE
ECHO STARTING SQL Server Agent (%InstanceName%)
NET START "SQL Server Agent (%InstanceName%)"
::PAUSE
ECHO STARTING SQL Server Browser
NET START "SQL Server Browser"
::PAUSE
ECHO STARTING SQL Server VSS Writer
NET START "SQL Server VSS Writer"
::PAUSE
ECHO CHECK WHETHER ANY SQL SERVICE IS RUNNING
ECHO NET START ^| grep SQL
NET START | grep SQL
PAUSE
ECHO STOP::FILE:Start_Sql_Server_2008:==========================================
2010-12-25
Cool programs , utilities and programming environments for Windows, most of which free ( revised )
Cool programs , utilities and programming environments for Windows, most of which free ( revised )
2010-12-21
Application life cycle - lessons learned
- what would happen if the number of my users increases 10 fold ...
- what could happen to my db if the amount of data increases 100 fold
- what could happen if my customers would like to change the GUI technology used so far ... how-easy could it be made ...
- what could happen after 1 , 3 , 10 years to my application
- what could happen to my application if the security realm within it operates would change drastically
- what could happen if somebody would be willing to pay a lot to investigate how my code works ...
2010-12-11
Cool programs , utilities and programming environments for Windows, most of which free ( revised )
Cool programs , utilities and programming environments for Windows, most of which free ( revised )
Arrange files and folders easily on win 7
- download SysInternals Suite
- Unzip all the exe's into folder belonging to your path
- Run:
2010-12-07
File::Find example in perl
use File::Find ;
use Cwd ;
my $currentWorkingDir = getcwd;
my @filesToRun = ();
my $filePattern = '*.log' ;
#add only files of type filePattern recursively from the $currentWorkingDir
find( sub { push @filesToRun, $File::Find::name
if ( m/^(.*)$filePattern$/ ) }, $currentWorkingDir) ;
foreach my $file ( @filesToRun )
{
print "$file\n" ;
}
how-to read huge file in perl
sub ReadHugeFileSpareResources
{
open(MYINPUTFILE, "<filename.out");
while(<MYINPUTFILE>)
{
# Good practice to store $_ value because
# subsequent operations may change it.
my ($line) = $_;
# Good practice to always strip the trailing
# newline from the line.
chomp ($line);
# Action !!! Convert the line to upper case.
$line =~ tr/[a-z]/[A-Z]/;
# Print the line to the screen and add a newline
print "$line\n";
} #eof sub ReadHugeFileSpareResources
2010-12-06
About Me
Labels
Blog Archive
- November (1)
- December (1)
- November (1)
- January (3)
- December (1)
- November (2)
- August (7)
- July (1)
- May (3)
- April (1)
- March (5)
- February (1)
- January (1)
- December (7)
- November (1)
- October (2)
- September (3)
- August (4)
- July (1)
- June (1)
- May (7)
- April (5)
- March (3)
- January (2)
- December (3)
- November (1)
- October (5)
- September (3)
- July (3)
- April (1)
- March (4)
- February (4)
- November (2)
- September (5)
- August (3)
- June (3)
- May (6)
- April (8)
- March (1)
- February (4)
- January (1)
- December (5)
- November (4)
- October (7)
- September (3)
- August (3)
- May (1)
- April (2)
- March (1)
- December (5)
- November (5)
- October (4)
- September (4)
- August (1)
- July (13)
- June (1)
- May (13)
- April (14)
- March (10)
- February (7)
- January (3)
- December (4)
- November (3)
- October (8)
- September (5)
- August (9)
- July (4)
- May (10)
- April (6)
- March (11)
- February (4)
- January (13)
- December (19)
- November (15)
- October (32)
- September (16)
- August (26)
- July (37)
- June (34)
- May (26)
- April (32)
- March (26)
- February (8)
- December (2)
- November (5)
- October (10)
- September (17)
- August (6)
- July (15)
- June (24)
- May (26)
- April (29)
- March (18)
- February (26)
- January (16)
- December (7)
- November (16)
- October (4)
- September (10)
- June (3)
- May (21)
- April (4)
- March (13)
- February (3)
- January (14)
- December (12)
- November (1)
- October (3)
- September (6)
- August (2)
- July (4)
- June (4)
- May (3)
- April (11)
- March (11)
- February (16)
- January (5)
- December (22)
- November (23)
- October (5)
- July (14)
Translate with Google Translate
My Blog List
-
Getting the Current TabItem when the Tab is not selected in WPF - [image: Banner] This is a quick reminder to self on how to retrieve a TabItem from a WPF TabControl *when the tab is not currently selected* because I ru...4 weeks ago
-
Major solar energy project operational in western Michigan - TV reports 11,000 solar panels are installed on a 17-acre plot of land just south of Grand Valley State University's main campus in Allendale. Consumers ...8 years ago
-
-
-