Thursday, March 24, 2011

SMB usage

smbclient '//computername/sharefolder' --workgroup=domainname --user=user
lcd /
put or get filename

Example: copy file to you windows machine

smbclient '//computername/sharefolder' --workgroup=domainname --user=user
lcd /path/to/file
put file.name

Friday, March 11, 2011

SSL keystore

By default keystore is users directory (example: C:\Users\myname\.keystore)

%JAVA_HOME%\bin>keytool.exe -importcert -file PATH_TO_CERT.cer –v
keytool.exe –list
%JAVA_HOME%\bin>keytool.exe -printcert - file PATH_TO_CERT.cer

Friday, March 4, 2011

Constructor chain execution with overriding methods inside

Note that when the Base constructor is called from within the Sub constructor, "this" clearly refers to an instance of Sub, not Base. Even though "this" has not been completely constructed yet, the JVM knows what class it will ultimately be. This is how it's able call overriding methods from the constructor.

Tuesday, February 22, 2011

Ruby Cucumber BDD for Java devs

Nice article how to integrate cucumber into java project.
http://www.goodercode.com/wp/using-cucumber-tests-with-maven-and-java
Change cuke4duke version to 0.4.3 and picocotainer to 2.10.2
Happy BDD!

Friday, February 18, 2011

Ruby 1.9 configuration

http://ascarter.net/2011/01/02/rails-development-on-ubuntu-10.10.html

Thursday, February 10, 2011

SMTP (RFC822) testing

telnet mailhost port
EHLO
MAIL FROM: email
RCPT TO: email
DATA
Subject:
From:
To:
ENTER
message text
.

Tuesday, January 18, 2011

Regexp-Commander

From 20-04-2010
To 2010-04-20

([^0-9])([0-9][0-9])/([0-9][0-9])/([0-9][0-9][0-9][0-9])([^0-9])
\1\4-\3-\2\5