Category: Freelance

Freelance work related.

Novosoft Handy Backup

I don’t usually endorse software.  I’m not an endorser.  However, I’ve been using Novosoft’s Handy Backup for awhile now.  I’m quite pleased with it, and think it’s worth every penny.  I use it to pull down backups of remote websites, sync local data, and make archives of apps whose settings I would hate to lose in the event of a crash.  It’s all automated.  It does the job.

Export Windows Services to a CSV

Another nice trick – exporting a list of Windows Services to a CSV.  Using Powershell:

Or get fancy and pull based on status:

 

Windows 2003 Terminal Services Restriction

File this under Simple Stuff I Forget.

  1. Open Terminal Services Configuration in Administrative Tools
  2. In the left pane select Connections.  In the right pane, right click on RDP-Tcp and choose Properties
  3. Under the Permissions tab add or remove as necessary

I recommend utilizing the Remote Desktop Users security group builtin for good administrative karma.

 

Firefox download warning when closing browser

More than once I’ve closed Firefox whilst in the midst of a download that cannot be resumed.  When I do it, it makes me crazy.  But the fix is easy.

  1. Get to the Firefox config info by typing about:config in the URL line of the browser.
  2. Seek out the line browser.download.manager.quitBehavior
  3. Set its pref from 0 to 2.

 

The psychology of poverty. The psychology of loneliness.

This interview really got me thinking about myself. Not simply in terms of scarcity, but also loneliness and enrichment. I have friends and associates that I consider successful (speaking both fiscally and in overall fulfillment) and I’ve always envied what I perceived to be some innate tendency towards success that many of them appear to have. I never thought much, however, about the psychology of failure – especially not pertaining to myself. Hell, why would I want to? But taking it into account while considering many of of the important decisions and actions I’ve taken in my life… well, it’s eye opening.
Being Poor Changes Your Thinking About Everything

Battling XP

I was given an old (old!) laptop to rebuild – Dell Latitude D630 – and short of putting Linux on it XP was the only way to go.  I dusted off an ancient XP Pro SP 3 disc and got to work.  Lo and behold after install I could not get it to run updates (“the website has encountered a problem”).  Hitting the site produced an error every time.  I downloaded and installed IE 8 to no avail.  I downloaded what one site claimed was the latest Windows Update package and it also produced an error.  I ran a variety of Microsoft’s “Fix-its,” none of which found any problems.

What I wound up doing is turning on Automatic Updates and then forcing a detection via a command prompt with:

wuauclt  /detectnow

This allowed it to pull enough to update the, er, Updater and get me over the hump.  It still wouldn’t pull updates from the site (rather than erroring it spun forever), so I headed to the MS fixit site:

http://support.microsoft.com/fixit/

And chose Windows, Install or Upgrade Software or Hardware, and Windows Update and then downloaded and ran the first Fix-it in the list (“Fix the problem with Microsoft Windows Update that is not working”).  This repaired 2 problems and allowed updates to begin working.

Kind of ridiculous, no?

Windows 7 “Black Screen of Death”

Upon logging into a friends Windows 7 laptop I was given to get working again I was presented with a solid black background and a navigation window opened to Computer.  No taskbar.  No desktop icons.  I figured explorer.exe wasn’t running, but a check in task manager proved me wrong.  I Googled around and discovered that though I hadn’t seen this problem before, it was not uncommon.  The fix turned out to be easy:

  1. Get into the registry via regedit.exe. You can launch regedit via task manager (which you can launch via ctrl+alt+esc or ctrl+alt+del and  then choosing it) by doing a File > Run.
  2. Head to HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon.
  3. Delete the Shell key.
  4. Reboot.

 

Modified page of categories in WordPress using “Page of Posts”

I hate it when I fail to document.  About a year ago I solved a problem I was having on a client site involving customized pages of categories.  I didn’t document my solution, and not unexpectedly as the months ticked by it slipped out of my brain.  Fast forward to now and I need the solution again.  After too much time spent poking at my own mess, I have the solution again.

My problem was this: I want a page that shows all posts of a particular category, and I want the ability to format those posts into a custom view.  No links in titles, no thumbnails, etc.

Find the Slug of the particular category you want to display.  This is in the Category edit page.  Then create a .PHP file named SLUG_page_template.php.  Populate the file thusly:

{code type=php}
<?php
/*
Template Name: PageOfPosts
*/
get_header(); ?>
<div id=”content” class=”narrowcolumn”>
<?php
if (is_page() ) {
$category = get_post_meta($posts[0]->ID, ‘SLUG’, true);
}
if ($category) {
$cat = get_cat_ID($category);
$paged = (get_query_var(‘paged’)) ? get_query_var(‘paged’) : 1;
$post_per_page = 4; // -1 shows all posts
$do_not_show_stickies = 1; // 0 to show stickies
$args=array(
‘category__in’ => array($cat),
‘orderby’ => ‘date’,
‘order’ => ‘DESC’,
‘paged’ => $paged,
‘posts_per_page’ => $post_per_page,
‘caller_get_posts’ => $do_not_show_stickies
);
$temp = $wp_query; // assign orginal query to temp variable for later use
$wp_query = null;
$wp_query = new WP_Query($args);
if( have_posts() ) :
while ($wp_query->have_posts()) : $wp_query->the_post(); ?>
<div <?php post_class() ?> id=”post-<?php the_ID(); ?>”>
<h2><a href=”<?php the_permalink() ?>” rel=”bookmark” title=”Permanent Link to <?php the_title_attribute(); ?>”><?php the_title(); ?></a></h2>
<small><?php the_time(‘F jS, Y’) ?> <!– by <?php the_author() ?> –></small>
<div class=”entry”>
<?php the_content(‘Read the rest of this entry »’); ?>
</div>
<p class=”postmetadata”><?php the_tags(‘Tags: ‘, ‘, ‘, ‘<br />’); ?> Posted in <?php the_category(‘, ‘) ?> | <?php edit_post_link(‘Edit’, ”, ‘ | ‘); ?> <?php comments_popup_link(‘No Comments »’, ‘1 Comment »’, ‘% Comments »’); ?></p>
</div>
<?php endwhile; ?>
<div class=”navigation”>
<div class=”alignleft”><?php next_posts_link(‘« Older Entries’) ?></div>
<div class=”alignright”><?php previous_posts_link(‘Newer Entries »’) ?></div>
</div>
<?php else : ?>
<h2 class=”center”>Not Found</h2>
<p class=”center”>Sorry, but you are looking for something that isn’t here.</p>
<?php get_search_form(); ?>
<?php endif;
$wp_query = $temp; //reset back to original query
} // if ($category)
?>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>
{/code}

On line 9 change SLUG to the appropriate slug of your category.  Update this file to represent the changes you want reflected on the category page.

Determine the cat number of your category.  This is easily done by going into Categories and hovering over View.  Then you can test by going to http://www.yoursite.com/?cat=#  where # represents the category.  Category pages can also be added to menus easily.

TuxBoot

Tuxboot, a bootable USB drive for Clonezilla, DRBL Live, GParted Live and Tux2Live, is a lifesaver.  I cannot recommend it enough.   I got a new, 3x bigger drive for my laptop and cloned it with Tuxboot/Clonezilla and resized the primary partition with Tuxboot/GParted.  All went without a hitch.  I love free things that work.