Archive for the 'General' Category

CoolUri plugin for typo3

Thursday, August 30th, 2007

This is perhaps more of a convenient place for me to store install instructions than anything… BUT:

Installing CoolUri in Typo3 on linux / apache2 / php5

Based on: http://docs.google.com/View?docid=dd33gg45_3f8j96p
Steps :

Check if the weberver has the following settings:
PHP5+ with SimpleXML enabled
MySQL 4.1+
Apache’s mod_rewrite enabled

Go into the extension manager
Choose menu option ‘Import extensions’
Upload extension file: cooluri_1.0.4.t3x
Found here ( http://typo3.org/extensions/repository/view/cooluri/ )

Once imported, install it and accept its defaults (altering tables etc.)

Add a htaccess:
(check that it covers all folders in the root directory)

# Enable URL rewriting
RewriteEngine On
RewriteRule ^/(typo3|typo3temp|typo3conf|t3lib|tslib|css|calculator|fileadmin|uploads|showpic\.php)/ - [L]
RewriteRule ^/(typo3|typo3temp|typo3conf|t3lib|tslib|css|calculator|fileadmin|uploads|showpic\.php)/.*$ - [L]
RewriteRule ^typo3$ typo3/index_re.php [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l

# Main URL rewriting.
RewriteRule .* index.php [L]

Copy across the CoolUriConf xml file:
cp typo3conf/ext/cooluri/cooluri/CoolUriConf.xml_default typo3conf/CoolUriConf.xml

Add a domain record
- Go to the homepage, -> NEW -> DOMAIN (add the domain name in)

Add the following to the main template setup::

# Cooluri
config.simulateStaticDocuments = 0
config.baseURL = http://mtaa.supernaut/
config.tx_cooluri_enable = 1
config.redirectOldLinksToNew = 1

Go to the backend and select the ‘CoolUri’ menu item
Click ‘Delete/Update all’ -> DELETE EVERYTHING AND START AGAIN

Clear cache

Try.

For CATMENU see note from Jan:

try to remove the part which removes cHash parameter from URLs. Since
tt_news are cached, they either require cHash or you’d need to make them
COA_INT.

apache2ctl and apache2 virtual host blah blah

Tuesday, August 14th, 2007

Gary pointed me to apache2ctl the other day and now I cant live with out it.

Useful things:

apache2ctl - t (check the syntax of virtual host files BEFORE reloading and breaking apache)

apache2ctl - M (show all the loaded modules - ie. check if rewrite is enabled and working)

apache2ctl - E (log startup errors to file)

apache2ctl - h (show the rest of the options)

Also, I was having issues getting a “real url” module called cooluri working for a typo3 site. In the end it was because my virtual host file was missing (link) :
AllowOverride All

Thats one of those things thats happened before but was forgotten along the way …. hopefully it will be useful for someone out there searching for why mod_rewrite isn’t working the way it should do….

One bash prompt to rule them all

Friday, July 20th, 2007

I stumbled across Daniel Robbins blog (the creator of Gentoo) and he had an OK article on how to config your bash prompt.

While he makes a good point for using just ‘>’ and putting everything else in the window bar, that just doesn’t cut it for me.

So - heres my suggestion which I have hacked from a CentOS server I ssh into on occasions:
PS1=”\[\033[1;31m\][\$(date +%H):$(date +%M)]\[\033[1;34m\][\u@\h:\w]#\[\033[0;37m\] ”

Just whack that into bash to try it out. To save it put it into your .bashrc file

Filler

Sunday, April 29th, 2007

Contact

Sunday, April 29th, 2007

the idiocy of clocks

Sunday, April 29th, 2007

this blog is dragging along to no-where.
so.
i am going to give it one more burst of effort.

i’ll try 20 posts in 20 days… or give up and resign it to the google archives forever

Links

Wednesday, March 28th, 2007

A web company once referred to as ‘Big one’
killer
Dan Webb
Cameron Adams
FutureTrack_Dave
Gary Gentoo
Ben
Cameron
Priscilla
The good folk at Nectarine

Pubstandards - Melbourne

Friday, March 23rd, 2007

Drink and argue about the extent to which myspace sucks at PubStandards Melbourne.

Based on pubstandards.co.uk its basically like going to Web Standards or PHPMelb, but without the presentation - just the beer. Great.

Reboot

Sunday, October 15th, 2006

Rebooted to a reliable and decent server (we changed hosting companies). Also I stole the design from Hugeobject (Helena did the initial design, I just changed the colours).

Ax

Wednesday, April 26th, 2006

Ax stands for Actionscript XML

Please note: This is a work in progress………

In XHTML there is a standard which is used by all coders which enables browsers to render the code into viewable content.

For example, this sentence in XHTML is within paragraph tags <p >exmaple</p >

XHTML (when done properly) is seperated into three conceptual layers.

  • Content
  • Presentation
  • Behaviour

Flash however is generally quite different. In Flash its very common to see the content seperated out (in xml or via loadVars), however the presentation and behaviour are often grouped together. It could be argued that with Flash this makes more sense. There are obvious advantages to this but there are also disadvantages.

What is Ax?

Ax is an attempt at seperating Flash movies into three layers: Content, Presentation and Behaviour.

But more than that, Ax is attempting to develop a standard for Flash.

The most important feature of Ax is the way that content is stored (The Ax file). This is a XML file which has set standards (similar to XHTML) for storing content. Like XHTML this standard is simple and caters for all types of content.

With a content standard, it is then easy to develop a contentRenderer class. The contentRenderer class talks to the presentationClass to work out how to display the different content elements. There would also be a behaviourClass that would handle things like navigation etc.

This means that you could have a working application as soon as you have the content in a Ax standards based XML. You could then extend the base classes to make the content render and behave as you want.

Advantages

  • Very fast to develop
  • Very easy to change how an application looks or behaves.
  • External tools would be available to make development easy: For example, it would be possible to create a PHP renderer that took a Ax file and turned it into XHTML. Or a basic CMS could easily be build to handle updating Flash movies.
  • Users could switch style sheets while viewing the movie. This means you could create a vision impaired presentation stylesheet (eg. high contrast, big font size)
  • Plugins could be coded and shared. For example if someone created a Ax compatible drop down navigation system, it could be shared and other coders could drop the class straight into their app and it should work.
  • You could have different behaviour and presentation for different devices.
  • Standards are really good :)
  • Easier to develop.

 

Example

This is an example of how Ax may work in its simplest form


function Application(){
    // load fancy stuff only for those who can handle/want it

    if(user == "someone who needs content to be accessible"){
          presentation.setStyleType("highContrastStyleSheet");
          navigation.setNavigationType("simpleList");
          behaviour.setBehaviourType("none");
    }else{
          presentation.setStyleType("fancyStyleSheet");
          navigation.setNavigationType("dropdowns");
          behaviour.setBehaviourType("fadeIn");
    }

    // load content
    contentRenderer.loadAx("myContent.xml");
}

IS this MVC??

No. Not really.