Archive for the ‘Tutorials’ Category

Skemahapser, iCal and ASB campusnet

Tuesday, September 30th, 2008
by Philip Hoyos

Skemahapser is a online application that allows students at ASB to download or subscribe to their campus calendar. It works with iCal so that you can subscribe or download your calendar to your own calendars.

  • If you subscribe, you will be able to see changes as soon as the subscription auto-updates.
  • If you you choose to download your calendar to your iCal, you will have to manually download every time changes have been made to the campus-calendar. 

To use the function click here and fill in the form with your details. If you want to subscribe to your CampusNet Calendar in iCal you have to follow these instructions:

  • Open iCal
  • Click “Calendar>Subscribe…”
  • And type/copy the following line

“webcal://it.afdelingen.dk/skemahapser/iCal.aspx?username=AB12345&stud=true”

  • Where it says AB12345 fill in your CampusNet logon-id instead.
  • A new window opens and you have various options. I recommend the default settings except for the “auto-refresh”, which I have set to every day. I would set this setting depending on my schedule.

I have not tried the function on outlook, though it seems to me that the possibility is offered.

I hope you will find this possibility as useful as I do. If you have a mobile that you connect to your mac, it is possible to load the calendar on to your mobile device. For help see my post “iSync your Mobil“.

Update: New date format

Wednesday, September 17th, 2008
by Philip Hoyos

It might seem that I have not been active for a while. However, I am currently working on a new design which I will implement into the website whenever I have the time. 

Today I have implemented a new date format, which uses a background picture I created in Photoshop. If you would like to have a similar date format on you website please read on.

You need to be able to edit:
- Main Index Template -> index.php
- StyleSheet -> style.css

and have a date picture that you want to use. This picture should be uploaded to the same folder as where you keep your other theme pictures. I would recommend the picture to be either png, jpg or gif. Of course that depends on your theme.

At first you will have to create the following style in your style.css

/* Begin Date Format */

.dateblock{ text-align: center; width: 65px; font-family: Arial; float: left; display: inline; margin: 10px 10px 0 0; background: url(images/your-date-picture.png) no-repeat }

.day { font-size: 22px; position: relative; top: 0px; margin: 2px 0 0 0; }

.month { font-size: 10px; top: 0px; margin: 6px 0 0 0; }

.year { font-size: 10px; font-weight: bold; position: relative; top: 0px; margin: 7px 0 10px 0; }
}

/* End Date Format*/

Secondly you will have to edit your index.php. The line you need to locate looks like the following, in the default WordPress theme:

<small><?php the_time(‘F jS, Y’) ?> <!– by <?php the_author() ?> –></small>

This line needs to be changed into the following, if it should look like mine

<small><div class=”dateblock”><div class=”month”><?php the_time(‘F’) ?></div><div class=”day”><?php the_time(‘jS’) ?></div><div class=”year”><?php the_time(‘Y’) ?></div></div> <div class=”author”>by <?php the_author() ?></div></small>

There are a lot of other ways to display the_time format. But this is my setting. To see other variations or create your own. Go to http://us2.php.net/manual/en/function.date.php

To make the date fit the your-date picture you will have to mess around with the top and margin settings until you are satisfied.

Good luck.

HowTo: Get a blank title in kubrick default theme

Thursday, June 19th, 2008
by Philip Hoyos

I have been asked if I knew how to stop the title showing up on top of the kubrick header, while it still maintains the title and description of the site. So here goes I hope it will help you.

First, get this plugin All-in-one-SEO 
Configuring this plugin should allow you the option of having a site title name, but without it showing up on top of the kubrick image header.

Secondly, remove the title from the kubrick image header.
In the WordPress admin site, you need to go to Design>Theme Editor>header.php
Here you will need to remove or comment out the code that looks like this: 

<div id=”header”>
<div id=”headerimg”>
<h1><a href=”<?php echo get_option(‘home’); ?>/”>
<?php bloginfo(‘name’); ?></a></h1>
<div class=”description”><?php bloginfo(‘description’); ?></div>
</div>
</div>

This is the code that generates the Title and blog description of your WordPress site.

HowTo: Search with keywords and operators

Friday, June 13th, 2008
by Philip Hoyos

Last night I came to think about the way I preformed searches with the various search engines. So I thought I that might help others.

When you are for something on the internet, you are doing so with words. What most people does not realize is that there are a number of ways to preform a search.

Lets say that I wanted to figure out how to change the kubrick header in the WordPress default theme. In google I might write something like:

HowTo: Change +kubrick header in default +WordPress theme

As you can see above I have put a little plus sign(+), which is called an operator, in front of some of my words. The reason why I have done this is because the plus sign tells the search engine that the word that comes after(kubrick and wordpress) must be in the result. In my above search I chose kubrick and wordpress as my keywords. The reason for this is because theses words tells most about what Im looking for. I could refine my search by including quotation marks around part of the sentence or the whole thing. The search engine would then look that exact line, like this:

“HowTo: Change Kubrick header in default WordPress Theme”

Here is a link to an excellent site that can help you refine your search with google.
Googleguide.com 

Show hidden files in Finder

Wednesday, May 28th, 2008
by Philip Hoyos

As I have had to show hidden files in Finder so many times, I thought others might find it useful. The system files in Finder are hidden by default. However, it is useful to know how to show these files.

You have to locate the application “Terminal”. Now there are two ways to find this application. Either go to spotlight and type “Terminal”, and chose the application or locate Terminal in Applications/Utilities/ chose Terminal.

In the Terminal Type:

defaults write com.apple.finder AppleShowAllFiles TRUE
killall Finder

The first line, will tell Finder to show all files. To get this working, Finder must be restarted, hence the second line “killall Finder” will restart Finder and show all files, system files and non-system files.

To revert to the original state, simply type FALSE instead of TRUE, like this

In the Terminal Type:

defaults write com.apple.finder AppleShowAllFiles TRUE
killall Finder

This will revert Finder to the original state when it comes to the hidden files.

It is a very handy thing to be able to do!