je t’aim MS Exchange – not!

February 17th, 2009

Seriously. We’re using Exchange as our group and mail server. And it’s been working rather good I must say. What I thought. Found out now that – at least since SP2 – we’ve had serious troubles sending to mail servers using grey listning. funny… One fix is to add a batch script restarting smtp server every day (forcing it to resend the queued mail). I gave up and added a smarthost instead and now I rely on my broadband provider.

So now I’m waiting for people to start reacting on my old mails finally delivered. Wooho. :)

For anyone else forced to play exchange-guru on your own due to costs or whatever.. this is what I did:

  • Added a scheduled batch script restarting the smtp server
    net stop smtpsvc
    net start smtpsvc
  • Added a non-existing registry key:
    HKLM\System\CurrentControlSet\Services\SMTPSVC\Queuing\
    “GlitchRetrySeconds” – DWORD set to 300.
  • Added my broadband providers smtp server as a smarthost in Exchange following http://www.arrowmail.co.uk/howto/smrthost.aspx

Hope helps someone else. Now back to real work. Back to my PHP code, away from Exchange, away from Windows server..

Typoscript code completion in TYPO3 version 4.3a1

February 10th, 2009

Finally I took a quick test of TYPO3 version 4.3 alpha 1. Read the link for a detailed release info. However I’d like to highlight one update a bit extra for you. The TypoScript editing extension that made life prittier highlightning and helping out with the indentation for the TS code when editing has now got itself a usefull and very nicely implemented code completion function. Look at the image below.

It’s perfect for people like me that just cant get all those object and attribute names to stick in memory.

Code completion in TYPO3 v 4.3

Now, I’m having a hard time waiting for next alpha or maybe beta so I can test the new front end editing fuzz which at least seems awsome!. Check it out at Jeff Segars blogg.

TYPO3 commerce extension finally shows prices for me

December 30th, 2008

I’ve actually had trouble with this for quite some time. I’m using the commerce extension for TYPO3 for a site. The plan is to turn the site into an e-com site eventually, but starting of with plain product listings so I thought I’d give the commerce extension a shot. It’s quite comprehensive. Amongst a lot of things it has a good internal structure to allow all kinds of variants of an article – especially suitable for things like textiles where you have a combination of color and sizes making an article.

One big downside I feel currently is the template setup. It’s heavily templated, but still not really as flexible as I’d like. Could be a competence/knowledge issue – but nah! I’m smart! really..

However I’ve had some real troubles showing the prices. Really. Seems so basic, but I just couldn’t get into it. Today I logged into the #typo3 channel @ freenode irc. Thanks to friendly help from PiMB there I got it working. It all had to do with setting the currency. I ended up with this in my TS:

  1. plugin.tx_commerce_pi1.currency = SEK
  2. plugin.tx_commerce_pi2.currency = SEK
  3. plugin.tx_commerce_pi3.currency = SEK
  4. plugin.tx_commerce_pi5.currency = SEK

The default for ..pi1.currency was – “currency” – and not a real currency – like SEK or EUR. That’s all. the other FE commerce plugings actually has EUR as default.

Anyway. by this post I’d like to state that the open source community is (at least around TYPO3) very friendly and helpsome. – and – thanks PiMP for the hint ;)

The site – still in a bit of progress (have some wierd positioning in the templates) – can be found here (swedish) http://www.byylva.se/. High quality carpets and other textiles :)

cheers. And a happy new Year!

Adobe CS4 is down for counting

December 10th, 2008

As soon as Adobe CS4 was released we got our hands on it. Since I’ve been doing quite a lot Flash things lately I was hoping the new version would reveal some greate new features. However after trying it for couple of weeks now, I can only summarize the experience as; grumpy. To begin with Flash crashes for me when opening most of my old cs3 files, doesn’t recognize an old flash project file (.flp), crashes totaly if I’m to fast clicking around (hey.. it’s fun to click around with the mouse). The last behaviour is the same for the other nifty tools such as Illustrator and Fireworks.

They die right in front of me leaving me with a broken (long-time-since-last-save) file. Some say it’s about fonts, some say it’s about somethingelse. I saw someone who solved it by buying a new computer..

I contacted Adobe in for the subject, posted an error report and gave them full dumps of my machines current state.. getting the reply to go through a bunch of help yourself links with twenty steps each! Things like that make me grumby.

Anyway.. I’ve tried reinstalling the entire CS4 premium package (uninstall and install taking for ages) without success.. and yeah. one last thing.. Acrobat reader now crashes if I try to open a pdf link within the (a/any) browser. Thanks..

regards,
A grumpy web developer

editing PHP with NetBeans IDE

October 27th, 2008

I admit. I’m an IDE and RAD lover. And I enjoy trying out new development enviroments all the time in the quest for the perfect work tools. After using Eclipse for quite a long time for PHP, I switched to Activestate’s Komodo 4.4 IDE. Komodo is a really nice and slick IDE with by far the best PHP code completition I’ve found in any tool. The debugging is easy to setup using xdebugger and it’s easy to analyse your code using watches and analysing tools. One tool I found useful was the Watch file tool wich could be compared to the tail -f command in Linux (allows you to ‘stream’ the data of a file to output. useful to analyze log files on the fly for instance).

However, I think Komodo suffers a bit from a ruff UI, loosing variables and values in debugging sessions, forgets it’s line position and break point positions from time to time and has a limited subversion integration.

Then I found NetBeans early access for PHP. This was a really nice surprise, however I couldn’t get debugging working so I switched back to Komodo again. But now Netbeans.org released the RC1 of version 6.5. After some fiddeling I got the debbuger working (I guess it really didn’t have to do with rc1 but still..) and by that I’ve got my new favourite environment. Main advantages are for me:

  • The debugger is the best PHP debugger I’ve tried.
  • A slick and fast UI. Very easy and intuitive to rearrange panels and views almost in any way I’d like
  • Superb subversion support. Direct markers for changes, easy shortcuts to view diffs and revert actions.
  • Good refactoring support (things like Ctrl+R to refactor a variable etc).
  • Built in SQL editor with code completion
  • Active and easy class/property inspector (Komodo lists all open files, Netbeans shows only active or selected file in file list without opening it)
  • and so on..

A screen shot attached, editing a TYPO3 ext project for a client.. note the SVN popup..

coding PHP with NetBeans 6.5 RC1

TYPO3 Bug day the 29th of august

August 27th, 2008

TYPO3 bug hunt day is an official day with an official IRC channel for hunting down bugs together. I missed the first two bug hunting days, but this time I really hope to be able to help out. I like the initiative of a bug day to get the general community more involved into TYPO3. Let’s hunts some bugs shall we? (c’mon. join me :P )

T3CON08, here I come

August 24th, 2008

Me and my colleague decided to register for the annual TYPO3 conference – t3con08. This year it’s taking place in Berlin, which will be cool as I’ve never been there. But the best part will hopefully be to meet a lot of TYPO3 users and developers – perhaps even one or two from freenode channel #typo3 where I’m hanging around from time to time.

Not only did we register for the conference but also to become association members for Merea, our company, which feels like the right choice to do as we focus our business more and more around TYPO3 services. It’s a good way of giving back something to the product and community as well as taking further engagement with TYPO3.

So, I hope to meet a lot of friendly faces and get loaded with inspiration and knowledge.

create new record link with TCE

August 8th, 2008

If you need a ‘create new record’ link in BE of TYPO3 and also need to supply some default values, this is the way;

  1. $params = "&edit[$mapTable][123]=new&defVals[$mapTable][name]=banana&defVals[$mapTable][codename]=hajaja";
  2. $aOnClick = t3lib_BEfunc::editOnClick($params,‘../../../../’.TYPO3_mainDir);
  3. $icon = ‘<img’.t3lib_iconWorks::skinImg($this->doc->backPath,‘gfx/edit2.gif’,).‘ title="Create secret agent" alt="" style="border:0;" />’;
  4.  
  5. //print a pen icon with the link
  6. $HTML = ‘<a href="#" onclick="’.$aOnClick.‘">’.$icon.‘</a>’;
  7.  

So, what we do is setting up necessary parameters for alt_doc.php to perform cmd actions. In this example I use;

edit[table name][uid OR pid OR -uid]=command – use uid and the command edit to edit a uid, otherswise (as I do  above) use pid and new as command to create a new record in a certain pid. A negative uid together with the new command Creates a new record right after the supplied uid.
defVals[table name][table column]=value – two times. This sets default values for my two fields; name and codename.

Then assemble the parameters with the TYPO3 API call t3lib_BEfunc::editOnClick(); into a javascript call.

Getting rid of typohead tag in the tiny rte

July 9th, 2008

I can honestly say that I’m no expert in the typoscript part of TYPO3. I realised this when I tried to find a solution on not using the Hx <-> <typohead..> tag transformation with the RTE. Took me hours to find the solution, but as mostly with typoscript, it’s quite simple. The brutal way was to add a pageTSConfig

RTE.default.proc.typohead = 0

But that just disables the use of typohead right off, breaking all current content on the site. And when reading a bit more I realised that what I really wanted was to use another transformation method than the default set for tinyrte;

RTE.default.prod.overruleMode = ts_css

This nicely allows the typohead tags stored in DB to be there, get transformed to Hx when opened with the rte and then when saved, never seen again :)

The overruleMode sets the general transformation mode that the rte should use, and afaik ts_css is to be the modern way of transforming data. The ts_css mode is actually a meta mode for a bunch of transformation rules. See the RTE reference for in depth know how about that.

It’s a boy!

June 8th, 2008

I’ve become a father once again, and once again it was a boy! a truly lovely one as well. See some pictures (“bäbis 08″) at http://people.merea.se/david/site/index.php?id=23