Archive for the ‘Useful stuff’ Category

Okay, I have to admit, I am kind of lazy when it comes to small things like the categories in wordpress. Rather then making them all capitalised, I decided to employ a small piece of php to do it for me.

I’m sure most people have heard of John Gruber’s title-case perl script, and if not, you should check it out. Basically, it capitalises strings to be grammatically correct headlines. However, Gruber’s original is in perl, not php like wordpress.

Fear NOT! Mr Kroc Camen came to our rescue, with his version of titleCase, so, we open up functions.php of our theme file, add in his titleCase function to the top of the file, then add in the following line:

add_filter('the_category',  'titleCase');

This line tells wordpress to apply the titleCase function to the hook the_category. And That’s it — Automatically capitalised categories.

Yep, another shorty.

Advertisements

In the new YetToBeBranded site, I’m using wordpress to power it, due to lack of tiem to create a custom platform. The long of the short of it, is that i wanted everything to be as integrated and look as natural as possible. This would mean permalinks.

Another thing, was that YetToBeBranded is a company website, not a blog, so I’m using a custom frontpage, which complicates things just a little.

My permalink structure was to be simple: /articles/ is all my articles, it’d be based on title of the article. However, when I set my permalinks to be

/articles/%postname%/

I also had a page called ‘articles’, which was the default frontpage of a wordpress blog. I messed around for quite a while, trying to figure out why my pagination was bugging up in the custom permalinks, the answer:

Because I had a page called articles, and my articles where pointing to that page, instead of that post, there was conflict. The solution was to set my permalinks to:

/article/%postname%/

This worked. I’m not sure if this article will help anyone else, but this helped me, as i couldn’t find the solution to my problem in the codex or related resources.

Okay, So I’m back from no posts, so I thought I’d write about a nice little gem I found while searching for some techniques, tutorials and ways of doing certain things in The Gimp. I’ll probably post more tutorials soon, but here’s the first one, It’s heavily based on this tutorial by Antichange on deviantart.

Painting Clouds In The Gimp

  1. Create a new blank canvas any size you want, I used 1600×1200, set the canvas up with the following settings:

    Transparency

    Colour Space: RGB; Fill With: Transparency

  2. Here comes a fun part: Take out the paintbrush tool (P), select a nice greyish blue colour – #6caad8 maybe? – and then paint on a few circular scribbles:

    Quite simple to do, and also, quite fun if you make it.

    Animation Of Painting: Quite simple to do, and also, quite fun if you make it.

  3. Now, take out the Dodge/Burn tool ( Shift + D ), and start Dodging colour away from the inside out ­– I used a brush size of 15, a scale of 1, no pressure settings, mode of Midtones, and an exposure of 40.
    Note, This needs to be done in one mouse click
  4. Now, still with the Dodge/Burn tool, Repeat the process of step 3. You should end up with something like:

    What I ended up with; After trial and error, you'll get something that looks about right.

  5. Here’s another fun part: Take out the Smudge tool ( S ), and start smudging the colour from the light area to the transparent area.
    Note,
    I had to fill up the transparent areas that I’d left, simply by using the paintbrush and Selecting the colour I needed to patch up.)
  6. Duplicate the first layer below itself, and add a Gaussian Blur (Filters -> Blur -> Gaussian Blur), and set the radius to around 60 (or whatever looks right to you).
  7. Merge the two layers together. Add a Layer Mask to the resulting layer, we want to select “Black (full transparency)”. Switch to that layer mask – next to the layer preview, there should now be a black box with a white border. (You’re cloud will disappear, due to the layer mask)
  8. Now, take out the gradient tool ( L ), select the shape of Radial and the colour to be white. Then, draw on to several gradients from the center of your cloud out. (As you do, you’re cloud will become visible again)

    I'll be the first to admit that this is kinda cheating, but it gives the desired effect.

    I'll be the first to admit, that this is kind of cheating.

  9. And now we’re pretty much done, you may want to add another layer select the cloud via “alpha to selection” and filling it with white, so you’re cloud isn’t a bright blue. But other then that we’re all done. Here’s the original tutorial, once again.
The Final Piece of Work, with a few additions

The Final Piece of Work, with a few additions


Okay, so check this out, I’ve gotten a domain name and hosting! Woooo….

Okay, so expect this blog to be moving there sometime in the next few months 😀

Recently there’s been a load of discussion about the flow of development different companies use in order to make websites or applications. Continue Reading »