Blogs

Programming Blog

Wikidot Blog

Wikitip of the day! Posted 12 Sep 2009 13:22

Short post today.

When you view a file attached to a Wikidot page, you may notice that the URL in the address bar has changed the domain from wikidot.com to wdfiles.com.

If you are, like myself, one to manually manipulate address bar URLs, you may be annoyed to find that you can't view pages from your wiki if you're in the wdfiles domain. That is, http://james.wdfiles.com/blog:50 will not work.
Read more...

3 Comments

I'm wikifused Posted 10 Sep 2009 13:53

Today I was wikifused :-(

The new ListPages functions include the capacity to choose the “range” from your pages. That is, choose the pages before or after the current page.

[[module ListPages order="created_at" range="before" limit="1"]]

With the above code, I expected the interpretation to be:

  • List all pages created BEFORE the current page
  • Arrange them in ASCENDING ORDER (oldest to newest)
  • Choose the 1st item (the oldest item)

Based on this logic, to retrieve the first page that is older than the current page, just change the order to descending:

[[module ListPages order="created_at desc" range="before" limit="1"]]

Read more...

1 Comments

[[footnoteblock title=""]]

Wikidot: "Specify Title Only" Posted 07 Sep 2009 22:56

I can't wait for the wonderful autosave feature comes out… especially in terms of the Polls @ Wikidot application.

This application utilises nothing more than page titles to construct its interface. So when people go to create new options for their Poll, they need only type in the new option, and click the “Create new option” button.
Read more...

1 Comments

[[footnoteblock title=""]]

Education Blog

Technology Blog

Philosophical Blog

Australia: A Baz Luhrmann Film Posted 30 Nov 2008 02:12

Last night I went to see Australia, the film that has been the advertising giant of all films for the past six months.
Read more...

0 Comments

Fake Viruses Posted 28 Nov 2008 07:26

My inbox had was intended to have this interesting life cycle:

  1. Recieve mail;
  2. Sort mail into folders.

But unfortunately, that didn't quite happen. Day after day my poor inbox is poluted with junk mail after junk mail. And I'm not talking about the kind from spam companies — I'm talking about the ones from my family and friends.

Now I don't mind the funny joke e-mails (in small doses), or the occasional "amazing photo" e-mail. It's just the chain e-mails that hooligans start up to create panic amongst ignorant computer users.
Read more...

1 Comments

[[footnoteblock title=""]]

My CSS is complete... sort of Posted 25 Nov 2008 10:20

intro: "intro: \"Hooray! I have finally completed the CSS code for this website!\n\nPreviously I was using a slightly modified version of Squark's Glass theme. I didn't like using it for a few reasons:\n\n# It wasn't my own work. I want my website to be something that I made;\n# Because the Glass theme is available to the public, it means that my website will not be unique;\n# As Squark mentions on the page, \\"[he's] still working on it. It needs some improvements.\\". He is referring to the fact that it is slightly incompatible with Internet Explorer 6;\n# The theme used many image files to make it look professionally pretty. This increases the page-loading time, and some web-browsers aren't clever enough to cache the images (downloading them again and again for each page).\n\nThe simpler your page is, the less complications across browsers.\"\nmain: \"I designed the current theme from Squark's Glass theme. I actually stripped his theme down slowly piece by piece, so that I could understand the code. When I felt that I finally understood how the CSS code worked, I rewrote my CSS code from scratch. Although it is not as appealing as Squark's, I like the simplicity.\n\nThe only thing I retained is Squark's image, which I have inverted the colours of to create a new image (which I quite like).\n\nThe reason I say my CSS code is \\"sort of\\" complete is because I can't make up my mind on something. I can't decide whether the outside colour should be grey (#E1E1E1) or blue (#4FCCEC). What do you think it should be? Click on the links to display each version.\n\nI'm happy now because I have finally got my first comment, and can see how the \\"Recent Posts\\" section renders comments =D\"\nsig: '1'\nafter: '[[module ThemePreviewer noUi=\"true\"]]'\n"\nmain: "intro: \"Hooray! I have finally completed the CSS code for this website!\n\nPreviously I was using a slightly modified version of Squark's Glass theme. I didn't like using it for a few reasons:\n\n# It wasn't my own work. I want my website to be something that I made;\n# Because the Glass theme is available to the public, it means that my website will not be unique;\n# As Squark mentions on the page, \\"[he's] still working on it. It needs some improvements.\\". He is referring to the fact that it is slightly incompatible with Internet Explorer 6;\n# The theme used many image files to make it look professionally pretty. This increases the page-loading time, and some web-browsers aren't clever enough to cache the images (downloading them again and again for each page).\n\nThe simpler your page is, the less complications across browsers.\"\nmain: \"I designed the current theme from Squark's Glass theme. I actually stripped his theme down slowly piece by piece, so that I could understand the code. When I felt that I finally understood how the CSS code worked, I rewrote my CSS code from scratch. Although it is not as appealing as Squark's, I like the simplicity.\n\nThe only thing I retained is Squark's image, which I have inverted the colours of to create a new image (which I quite like).\n\nThe reason I say my CSS code is \\"sort of\\" complete is because I can't make up my mind on something. I can't decide whether the outside colour should be grey (#E1E1E1) or blue (#4FCCEC). What do you think it should be? Click on the links to display each version.\n\nI'm happy now because I have finally got my first comment, and can see how the \\"Recent Posts\\" section renders comments =D\"\nsig: '1'\nafter: '[[module ThemePreviewer noUi=\"true\"]]'\n"\nsig: intro: "Hooray! I have finally completed the CSS code for this website!\n\nPreviously I was using a slightly modified version of Squark's Glass theme. I didn't like using it for a few reasons:\n\n# It wasn't my own work. I want my website to be something that I made;\n# Because the Glass theme is available to the public, it means that my website will not be unique;\n# As Squark mentions on the page, \"[he's] still working on it. It needs some improvements.\". He is referring to the fact that it is slightly incompatible with Internet Explorer 6;\n# The theme used many image files to make it look professionally pretty. This increases the page-loading time, and some web-browsers aren't clever enough to cache the images (downloading them again and again for each page).\n\nThe simpler your page is, the less complications across browsers."\nmain: "I designed the current theme from Squark's Glass theme. I actually stripped his theme down slowly piece by piece, so that I could understand the code. When I felt that I finally understood how the CSS code worked, I rewrote my CSS code from scratch. Although it is not as appealing as Squark's, I like the simplicity.\n\nThe only thing I retained is Squark's image, which I have inverted the colours of to create a new image (which I quite like).\n\nThe reason I say my CSS code is \"sort of\" complete is because I can't make up my mind on something. I can't decide whether the outside colour should be grey (#E1E1E1) or blue (#4FCCEC). What do you think it should be? Click on the links to display each version.\n\nI'm happy now because I have finally got my first comment, and can see how the \"Recent Posts\" section renders comments =D"\nsig: '1'\nafter: '[[module ThemePreviewer noUi="true"]]'\n\nafter: "intro: \"Hooray! I have finally completed the CSS code for this website!\n\nPreviously I was using a slightly modified version of Squark's Glass theme. I didn't like using it for a few reasons:\n\n# It wasn't my own work. I want my website to be something that I made;\n# Because the Glass theme is available to the public, it means that my website will not be unique;\n# As Squark mentions on the page, \\"[he's] still working on it. It needs some improvements.\\". He is referring to the fact that it is slightly incompatible with Internet Explorer 6;\n# The theme used many image files to make it look professionally pretty. This increases the page-loading time, and some web-browsers aren't clever enough to cache the images (downloading them again and again for each page).\n\nThe simpler your page is, the less complications across browsers.\"\nmain: \"I designed the current theme from Squark's Glass theme. I actually stripped his theme down slowly piece by piece, so that I could understand the code. When I felt that I finally understood how the CSS code worked, I rewrote my CSS code from scratch. Although it is not as appealing as Squark's, I like the simplicity.\n\nThe only thing I retained is Squark's image, which I have inverted the colours of to create a new image (which I quite like).\n\nThe reason I say my CSS code is \\"sort of\\" complete is because I can't make up my mind on something. I can't decide whether the outside colour should be grey (#E1E1E1) or blue (#4FCCEC). What do you think it should be? Click on the links to display each version.\n\nI'm happy now because I have finally got my first comment, and can see how the \\"Recent Posts\\" section renders comments =D\"\nsig: '1'\nafter: '[[module ThemePreviewer noUi=\"true\"]]'\n"
Read more...

5 Comments

[[footnoteblock title=""]]

All content on this page is subject to the guidelines outlined here