Tips & Clues

.bashrc functions to do repetitive tasks

A cool thing to do if you find yourself doing something LOTs of times:

Edit your ".bashrc" (in your home directory)
and create your personalised script as follows:

wch()
{
sudo chmod 774 $1 $2 $3 $4;
sudo chown www-data.www-data $1 $2 $3 $4;
}

Then you can execute the command "wch" with parameters to execute the commands you want. Very cool...

Using ImageCache and positioning in node output (Drupal)

See "Joe's" comment here: http://drupal.org/node/139915

Go to [Content management] > [Content types] > [Manage fields] and make sure yiour image field is LIGHTER than [body] eg -2
this will force the image above your teaser but not yet inline

then go to modules > system > defaults.css

and add

.field-type-image img {
float: right;
margin-left: 1em;
border: 0px solid red;
}

Note: my CCK image field is called "image" and I choose to float it right, adjust yours to suit your tastes.

A fantastic medley of modules for the discerning drupal developer

A featured story on drupal.org: Case Study of OpenTheMagazine.com
In the story, we get a fantastic closeup view of the drupal modules used and the reasoning behind their use. For a young Drupal developer/user, it is a very useful article.

The "Heroes" of the site were considered to be Views 2, CCK, & for search, Apache SOLR.
The list below of other drupal modules used by the site is excerpted from the article on drupal.org:

Binary Maths

Download the Zip file attached...

I need my Quick Launch...

As I evaluate Windows 7 (which looks pretty good overall), I missed terribly the "Quick Launch" feature that I rely upon heavily in XP...
So I found this very well done lesson on how to get the Quick Launch back in V7... Read more »

Apache Web Logs - more than you ever wanted to know

Note: This article is published HERE:
www.sitepoint.com/article/configuring-web-logs-apache (although it is not loading right now)

Configure Web Logs in Apache

Author's Note: While most of this piece discusses configuration options for any operating system Apache supports, some of the content will be Unix/Linux (*nix) specific, which now includes Macintosh OS X and its underlying Unix kernel.

One of the many pieces of the Website puzzle is Web logs. Traffic analysis is central to most Websites, and the key to getting the most out of your traffic analysis revolves around how you configure your Web logs. Apache is one of the most -- if not the most -- powerful open source solutions for Website operations. You will find that Apache's Web logging features are flexible for the single Website or for managing numerous domains requiring Web log analysis. Read more »

Simple Windows password reset

I just used this tool to reset a Vista password - it is a Linux boot CD very simple and effective. So if you've forgotten your Windows XP or VISTA password, don't despair - this tool will get you back in business FAST.

See: http://home.eunet.no/pnordahl/ntpasswd/bootdisk.html

A very good walk-through is provided here:
http://pcsupport.about.com/od/toolsofthetrade/ss/ontpre-screenshot-guide...

Oh, and yes, it's completely FREE.

Processor Performance by Name

This chart comes from the crowd sourced PassMark benchmarking utility.
http://www.passmark.com/download/pt_download.htm
Please note that the slowest CPU recorded in this data set is the "AMD-K6 3D"
This table is sorted by CPU Name
To see this table sorted by CPU Rank (i.e. performance), CLICK HERE.
Read more »

Processor Performance by Rank

This chart comes from the crowd sourced PassMark benchmarking utility.
Please note that the slowest CPU recorded in this data set is the "AMD-K6 3D"
You can get their software at their web site here:
http://www.passmark.com/download/pt_download.htm
This table is sorted by CPU Ranking
To see this table sorted by CPU Name, CLICK HERE.
Read more »

Transparent Icons in XP

Here is the solution to this one:

  1. Open the Control Panel
  2. Click System
  3. Click the Advanced tab
  4. Click Settings in the Performance section
  5. Check the “Use drop shadows for icon labels on the desktop” checkbox
  6. Click OK until you close the windows
  7. Then, right click somewhere on the desktop. Select "Arrange Icons By" and disable "Lock Web Items on Desktop"
Syndicate content