Feb 28, 2013

Blah-blah #3


One wife tells her husband (a programmer): "Go to the shop and buy sausages. If there are eggs, buy ten". The programmer comes to the shop, dialog:
- Do you have eggs?
- Yes.
- Than give me ten sausages.

Yep. We really think like that, dear wives :)

Feb 27, 2013

Speeding up OpenOffice/LibreOffice

I had major problems with OpenOffice and its clone: LibreOffice. When I launched OpenOffice, it took about a minute for it to start. With LibreOffice the start was fast but opening each document took about 15 seconds of waiting.

I took OS X Activity Monitor and found that both apps spend all this time waiting in a call to gethostbyname. The call before that was a call to get the name of the local host. So both apps first tried to get the name of the local host and than to resolve its IP address and that did not work well.

Feb 26, 2013

Some photos of Uetliberg, Zurich, Switzerland



You can check some of my photos in this album on Facebook.

Google Chrome and Apple Time Capsule

If you back up your Mac using Apple Time Capsule and you use Google Chrome, you will notice that Time Machine sends around 300MB to the Time Capsule each time. This is because Google Chrome changes a lot of large file each time when you navigate to a new page.

To Solve the issue, go to the Time Machine properties and exclude ~/Library/Application Support/Google/Chrome from the backup. If you do not like the idea to loose data, just sign in to your Google Account with Chrome and it will ask you to set up a sync. Sync will send most of your data Chrome to Google and it can be stored in the encrypted form if you tick the corresponding box in settings. If you do not mind that, you can restore your Chrome in case of failure.

Feb 25, 2013

Blah-blah #2

– Why is it called "beta"?
– 'Cause it's beta than nothin'.

Sorry. Could not resist.

Feb 24, 2013

Blah-blah...

From one framework docs: "Before describing the configuration aspects of components (...), component types and implementations are described, since it is aspects of the component type that are configured by components – and the configurable aspects are defined by the component type.".

Reminds me something. Just can't remember what...

Feb 21, 2013

SVN: how to see only modified files

When you work with a command line SVN client, you may find its output too clattered, especially if you have a lot of externals or generated files that you do not commit (such as in typo3temp/ or uploads/).

To see only modified files, you can use egrep like this:

svn st | egrep '^M '

Feb 14, 2013

TYPO3 at GitHub

Some of you may know that there is a mirror of the official TYPO3 GIT repository at GitHub. It is quite difficult recently to get patches through the official review system, so I decided to work on GitHub from now on. Here is my fork of the official repository. I plan to add there patches I do for Snowflake as well as my own enhancements. I will merge official code into this fork from time to time.

This is not an attempt to fork entire project and go "my own way". This is an attempt to enhance TYPO3 using the patches that do not pass the official review system. I plan to do performance improvements as well as other enhancements. Think of it as of an experiment :)

I will continue patch reviews in TYPO3 Gerrit as before.

Feb 12, 2013

Speeding up Samba access in OS X

The following Terminal commands will help you to speed up the access to Samba shares. Note that one of command will report a error in recent OS X versions. You can ignore that error safely.


sudo sysctl -w net.inet.tcp.mssdflt=1460 
sudo sysctl -w net.inet.tcp.sendspace=262144 
sudo sysctl -w net.inet.tcp.recvspace=262144 
sudo sysctl -w net.inet.udp.recvspace=74848
sudo sysctl -w net.inet.udp.maxdgram=65535
sudo sysctl -w net.inet.tcp.rfc1323=1 
sudo sysctl -w net.inet.tcp.newreno=1 
sudo sysctl -w net.inet.tcp.always_keepalive=1 
sudo sysctl -w net.inet.tcp.keepidle=3600 
sudo sysctl -w net.inet.tcp.keepintvl=150 
sudo sysctl -w net.inet.tcp.slowstart_flightsize=4
sudo sysctl -w net.inet.tcp.strict_rfc1948=1
sudo sysctl -w net.inet.tcp.delayed_ack=1