Monthly Archives: August 2011

download from a stubborn ftp using wget

We had the following issue:
Status:	Resolving address of
Status:	Connecting to
Status:	Connection established, waiting for welcome message...
Response:	220 Welcome to this FTP Server
Command:	USER our-username
Response:	331 Please specify the password.
Command:	PASS *******
Response:	230 Login successful.
Status:	Connected
Status:	Retrieving directory listing...
Command:	PWD
Response:	257 "/"
Command:	TYPE I
Response:	200 Switching to Binary mode.
Command:	PASV
Response:	227 Entering Passive Mode 
Command:	LIST
Error:	Connection timed out
Error:	Failed to retrieve directory listing
the FTP server just would work in passive mode, and about every FTP-Client
we had was defaulting to Passive mode because we are behind a rooter and
obviously most ports aren't forwarded for security reasons.
What worked in the end was WGET
wget -m --no-passive-ftp
the -m option for wget means "mirror", so it mirror the folder structure on the server
(this is similar to -r but you don't have to specify which files using *
--no-passive-ftp sets wget to use only active connection

typo3: different max width for images in different columns

The problem:

We usually have several content regions populated in the TS-Template like this:

subparts.main_content < styles.content.get = colPos = 1 subparts.second_content < styles.content.get = colPos = 2


You can define a global maxW for images, but often this needs to be specific for every content region.

And this is how it should be done:

instead of:

subparts.right_content < styles.content.get = colPos = 2 subparts.right_content.slide = -1

you must use:

subparts.right_content = COA
5.maxImageWidth = 320
10= COA
10 < styles.content.get = colPos = 2 10.slide =-1 15 = RESTORE_REGISTER }