Jul 04 2008

How To Get Wordpress to Link to an External URL

Justin | Category: Web | 4 Comments

This requires a little code hacking but it’s pretty simple. Open up: wp-includes/classes.php and find function: start_el

After the if else block that sets the value of the $css_class variable add the following code:


$url = get_page_link($page->ID);
$post_url = get_post_meta($page->ID, "url", true);
if ( $post_url ) {
    $url = $post_url;
}

and then remove get_page_link($page->ID) from the following line<a href="' get_page_link($page->ID) . '".... and replace it with $url: <a href="' . $url . '"

Now log in and edit the page or post you wish to specify a customized url for. Add a ‘Custom Field’ with key: ‘url‘ and a value of the full url (including http://) that you wish to send users to. The screenshot below shows the completed hack. NOTE: This will get wiped out next time you upgrade! I’ve also used the same logic to show/hide posts and pages from the menu systems.



Nov 27 2007

What’s Next: Beyond BASE Jumping

Justin | Category: Appropriate Technology | 0 Comments

Sky SuitI’ve always been a fan of non-motorized adrenalin sports. This evolution of skydiving certainly wins hands down: http://www.biertijd.com/mediaplayer/?itemid=4262

Oct 16 2007

Subversion Basics for Windows Users: How to use Tortoise SVN

Justin | Category: Web | 0 Comments

1. Check out files from a Subversion server.

Right click on the folder where you want to save the files and select SVN Checkout:
Checkout Step 1
Copy and paste or type the url of the repository and click OK:
Checkout Step 2
Confirmation screen indicating that a folder called ‘resources’ and a file called AssetMapping.pdf were downloaded successfully:
Checkout Step 3

(more…)

Oct 15 2007

Configuring svnX on Mac OS X

Justin | Category: Web | 0 Comments

1. Create a folder somewhere you like to keep documents that will hold all revision controlled files. I created the ‘ALP’ folder below.
Create Folder for Subversion Files
2. Start svnX (it should be in Applications)Start svnX

3. Load Repository Window. If the repository window is not visible it can be loaded by navigating to Window –> Repositories.Repository Default
4. Configure Repository (the server where the files permanently live).Repository Configured
  • Name: A descriptive name
  • The path: http://www1.sevaserver.org/svn/community/alp
  • Your username
  • Your password
5. Double click on the URL configured in the upper scrollable pane to launch the repository browser.
6. Click the svn checkout button (left hand, big green arrow in the top right corner of the window). Browse to the folder you created to store the local copy of your documents and click open. This will do two things: download the files from the server to your machine and open a small window titled “Working Copies”. The Path field should be filled in for you already. Change the name to match the name in the repositories window (not required but makes sense to do). Fill in your username and password.
Working Copy Default
Working Copy Configured
7. My next post will cover how to use svnX!
Jun 13 2007

Breakeven Analysis Calculator

Justin | Category: Appropriate Technology | 0 Comments

In response to an energy conservation challenge initiatied by BC Hydro, our home has set a goal to use 15% less power this year. Using less electricity is going to be a challenge as we have already done all the easy things like change our lightbulbs to CFLs and fanatically turning off lights when not in use. The best candidate for upgrade are 3 fixtures from IKEA that use 4 20W Halogen bulbs each that are often on.

I think I found some bulbs that are compatible with my fixtures from LED Liquidators. I’m still waiting a response from them. I found a useful tidbit of information comparing the approximate lumens from LED bulbs to traditional halogen bulbs:

12 White LEDs = 7 W
24 White LEDs = 14 W

I wanted to figure out how long it would take to breakeven on upgrading all 12 lightbulbs to LEDs. Plus I thought it would be good to calculate what sort of energy savings I could expect from the purchase. To solve the problem, I created a little Excel speadsheet to crunch the numbers. Please download and test away. The BOLD values are editable. If anyone finds any flaws in my logic please leave a comment and I will update the spreadsheet.

References

Mar 29 2007

kiva.org Enables Third World Entrepreneurs with Micro Loans

Justin | Category: Web | 0 Comments

KIVA Microfunds are building on the success of the microcredit banking model created by the Grameen Foundation. KIVA is leveraging all that is great about the internet to fund poor entrepreneurs in third world countries by matching philanthropic microlenders with third world entrepreneurs in need. Their simple to use website lets you search entrepreneur’s profiles and make $25, $50, $75 loans to the entrepreneurs of your choice.

References

[tags]KIVA, Grameen Bank, Microcredit, Microloans[/tags]

Mar 28 2007

Soil Blockers Arrive From England

Justin | Category: Low Tech | 0 Comments

Ladbrooke Soil BlockersIn my unending quest for self-sufficiency and living with a light footprint, I have tracked down soil blockers from Ladbrooke Soil Blocking via Johnny’s Selected Seeds in the US.

I learned about soil blockers while volunteering for my friends Paul & Heather on Manitoulin Island last summer. They run a CSA (Community Sponsored Agriculture) organic garden and rely on these tools to create soil blocks to start all of their plants. I have been using compressed peat pellets for the last few years which work great and are neat and tidy but somewhat expensive ($0.13CDN/each). Peat also has to be mined, transported, made into pellets, transported again to the garden centre and once again to the garden. The soil blockers involve a little more manual labour but of the good kind that gets dirt under one’s finger nails.

Mar 06 2007

Geo-tagging Wordpress Posts

Justin | Category: Web | 0 Comments

I installed the Geo & Plug ‘n’ Play Google Map plugins so I can geo-tag my posts. You can see it working here: http://shibumi.net/appropriate-technology/high-tech/web/geo-tag/.

I tried several different google maps plugins and this combo was the only one that worked. Install Geo first, then Plug ‘n’ Play Google Map. You can use Google Maps or Free Geocoder to find your logitude and latitude.

References

[tags]Wordpress Plugin, Geo-tag[/tags]

Mar 02 2007

How to Power your Home with Hydrogen

Justin | Category: Appropriate Technology | 0 Comments

This is an absoluetly fantastic step in the right direction of energy production and storage for the energy independent home. Batteries alone are generally insufficent as a storage medium and don’t work well in the cold. This homemade hydrogren generation and storage system is definately a viable option for widespead adoption once the system is refined and commercially available.

References

http://www.wired.com/wired/archive/15.03/play.html?pg=9

[tags]Hydrogen Powered Home[/tags]

Feb 28 2007

Sharing Backyards in Greater Vancouver

Justin | Category: Urban Agriculture, Web | 0 Comments

Praise for Google Maps and a little creative use of their free API! This excellent website visually displays people in Vancouver with yards who would like a garden alongside those who want to garden but don’t have a yard.

References

[tags]Urban Agriculture, Yard Sharing, Vancouver[/tags]

Page 1 of 2

© 2006 shibumi.net | Wordpress | dKret2 1.2 | Top