August 31, 2006

Fan Noise after upgrading to OS X 10.4.7

Every so often, I show up in the office to see that my year-old G5 tower has decided to emulate a jet engine. Overnight, the fans rev up to the maximum, and stay that way until I come in and restart.

After the latest software update from Apple, it also began revving up during work, but briefly, as if I had done something that taxed it.

After reading various forums, I found the best solution seems to be to open System Prefernces: Energy Saver, click on the options tab, and look toward the bottom of the panel for "Processor Performance." For me, "Reduced" performance seems to work best, but other people find "Highest" works better for them. Apparently anything but "Automatic" is likely to reduce the occurrence of fan revving.

Posted by ellen at 9:50 AM

August 19, 2006

GoLive's Javascript IDE

Although I don't use Adobe GoLive much for day-to-day work, it has certain features that are hard to find anywhere else. One of them is a rather impressive Javascript authoring environment. It gives contextual hints, code coloring and lists your functions in a drop-down selection menu. GoLive seems to go farther in previewing javascripts than Dreamweaver does, but I'm not so sure how useful that really is yet.

It also has a debugger that I haven't tried yet. To use the javascript authoring features, select

File:New: Scripting: Scripts: Javascript

Posted by ellen at 12:07 PM

August 17, 2006

Customizing dotProject files

dotProject is the most promising open-source (and free) project management software that I've found so far.

There are many small changes that needed to be made to the dotProject interface in order for it to work for my team, though. Chief among them was that all projects be numbered. The "short name" field just wasn't sufficient to uniquely identify projects. We use project numbers in our workflow, in documents, email, and file systems. The number needs to combine the month and year the project was started with a 4-digit unique number.

projectsScreen.jpg

Under "Projects," by default, you see a tabbed view, with the "All Projects" tab selected.

The files that generate all these Project views are in

modules/projects/
The one that generates the "All Projects" view is
modules/projects/vw_idx_proposed.php
. Besides adding a number column to each of the project views, some of the other columns needed to be rearranged or removed.

To rearrange/remove columns from the "All Projects View", open

modules/projects/vw_idx_proposed.php

At approximately line 18 in the unmodified file, you'll find the HTML code that creates the top row of the multi-column table:


Click image to see larger view.

<table width="100%" border="0" cellpadding="3" cellspacing="1" class="tbl">
<tr>
	<td align="right" width="65" nowrap="nowrap">&nbsp;<?php echo $AppUI->_('sort by');?>:&nbsp;</td>
</tr>
<tr>
    <th nowrap="nowrap">
    	<a href="?m=projects&orderby=project_id" class="hdr">Number</a>
    </th>
	<th nowrap="nowrap">
		<a href="?m=projects&orderby=company_name" class="hdr"><?php echo $AppUI->_('Company');?></a>
	</th>
	<th nowrap="nowrap">
		<a href="?m=projects&orderby=project_name" class="hdr"><?php echo $AppUI->_('Project Name');?></a>
	</th>
        <th nowrap="nowrap">
		<a href="?m=projects&orderby=project_start_date" class="hdr"><?php echo $AppUI->_('Start');?></a>
	</th>
        <th nowrap="nowrap">
		<a href="?m=projects&orderby=project_end_date" class="hdr"><?php echo $AppUI->_('End');?></a>
	</th>
        <th nowrap="nowrap">
		<a href="?m=projects&orderby=project_actual_end_date" class="hdr"><?php echo $AppUI->_('Actual');?></a>
	</th>
        <th nowrap="nowrap">
		<a href="?m=projects&orderby=task_log_problem" class="hdr"><?php echo $AppUI->_('P');?></a>
	</th>
	<th nowrap="nowrap">
		<a href="?m=projects&orderby=user_username" class="hdr"><?php echo $AppUI->_('Owner');?></a>
	</th>
	<th nowrap="nowrap">
		<a href="?m=projects&orderby=total_tasks" class="hdr"><?php echo $AppUI->_('Tasks');?></a>
		<a href="?m=projects&orderby=my_tasks" class="hdr">(<?php echo $AppUI->_('My');?>)</a>
	</th>
	<th nowrap="nowrap">
		<?php echo $AppUI->_('Selection'); ?>
	</th>
	<?php
	if($show_all_projects){
		?>
		<th nowrap="nowrap">
			<?php echo $AppUI->_('Status'); ?>
		</th>
		<?php
	}
	?>
</tr>
<tr>

To rearrange column headings, simply move around the <th> tags and the text between them.

To change the order of the data columns themselves, things get a little stickier. The HTML comprising each table cell is generated by several lines of code, concatenated together. To move the entire cell you need to be sure you get all relevant code.

For example the code comprising the project color cell starts on line 89:


$s .= '<td width="65" align="center" style="border: outset #eeeeee 2px;background-color:#'
			. $row["project_color_identifier"] . '">';
		$s .= $CT . '<font color="' . bestColor( $row["project_color_identifier"] ) . '">'
			. sprintf( "%.1f%%", $row["project_percent_complete"] )
			. '</font>';
		$s .= $CR . '</td>';

The cell containing the checkbox at t is a little trickier, since it contains an if statement. To move this column, you would have to move all of:

$s .= $CR . '<td align="center">';
		if ($perms->checkModuleItem('projects', 'edit', $row['project_id']))
			$s .= $CT . '<input type="checkbox" name="project_id[]" value="'.$row["project_id"].'" />';
		else
  	    	$s .= $CT . '&nbsp;';
		$s .= $CR . '</td>';
Posted by ellen at 12:51 PM

August 16, 2006

We're now squarely in the land of unintended consequences

Creating a new Taliban in Iraq

It is beginning to look like the war in Iraq has created a new Taliban. Women in Baghdad are being intimidated into giving up the right to choose whether to be veiled or not, the right to drive, and the right to simply go outside.

See the blog "Baghdad Burning"
by "Riverbend"
Saturday, August 05, 2006

For me, June marked the first month I don't dare leave the house without a hijab, or headscarf. I don't wear a hijab usually, but it's no longer possible to drive around Baghdad without one. It's just not a good idea. (Take note that when I say 'drive' I actually mean 'sit in the back seat of the car'- I haven't driven for the longest time.) Going around bare-headed in a car or in the street also puts the family members with you in danger. You risk hearing something you don't want to hear and then the father or the brother or cousin or uncle can't just sit by and let it happen. I haven't driven for the longest time. If you're a female, you risk being attacked.

...There are no laws that say we have to wear a hijab (yet), but there are the men in head-to-toe black and the turbans, the extremists and fanatics who were liberated by the occupation, and at some point, you tire of the defiance. You no longer want to be seen. I feel like the black or white scarf I fling haphazardly on my head as I walk out the door makes me invisible to a certain degree- it's easier to blend in with the masses shrouded in black. If you're a female, you don't want the attention- you don't want it from Iraqi police, you don't want it from the black-clad militia man, you don't want it from the American soldier. You don't want to be noticed or seen.


United States is no help to Iraqi women By BONNIE ERBE Wednesday, April 19, 2006
... women's basic rights under the Hussein regime were guaranteed in the constitution and more importantly respected, with women often occupying important government positions. Now, although their rights are still enshrined in the national constitution, activists complain that, in practice, they have lost almost all of their rights."

Moreover, leaders of women's groups say that in Iraq's new government, more men in power follow conservative Sharia (to wit, Islamic law) on women's rights and on their role in society. . .

The report says more men are ordering women to "take the veil" (wear coverings from head to toe), and fewer women are working in professional jobs than when Saddam was in power.



The plight of women in Iraq

by Natasha Walter
09/05/2006

To show the negative effects of these developments on women, Zeina travels to Basra. It will not come as news to those who have followed developments in southern Iraq that women are being forced to wear the hijab and prevented from living their lives freely. But it brings these developments home when we see young women and their families talking about being sent bullets and death threats because they played sport or did not wear a headscarf. As Zeina emphasises, this kind of experience is new to most women in Iraq, who enjoyed economic and social freedom before the occupation. "A while ago, I was looking at photographs of my aunt in college in the 60s, wearing pants and sleeveless tops, playing sports in the college yard; and then I looked at the photographs of the women in college today, and they are covered in black from head to toe, their faces also covered."


In Baghdad, women fear everyone
by Joan Ryan
Thursday, January 27, 2005

But over lunch in San Francisco this week, she said her recent visit to Baghdad from her current home in Washington, D.C., was unlike anything she has experienced. She so feared assassination she slept in a different house every night. For the first time in her life, she covered herself with a traditional Muslim scarf when she went outside, afraid of the religious fundamentalists who have been attacking, kidnapping and killing women in professional and leadership roles.

Salbi knows 14 Iraqi women -- businesswomen, translators, activists, journalists, public officials -- who have been slain in the past 10 months. While Salbi was in Baghdad in October, one friend, a pharmacist, was kidnapped and killed; her body found 10 days later on a highway. Her head had been wrapped in a scarf, something she never wore.




Insecurity Driving Women Indoors
(New York, July 16, 2003)

The insecurity plaguing Baghdad and other Iraqi cities has a distinct and debilitating impact on the daily lives of women and girls, preventing them from participating in public life at a crucial time in their country's history, Human Rights Watch said in a report released today.

The 17-page report, "Climate of Fear: Sexual Violence and Abduction of Women and Girls in Baghdad," concludes that the failure of Iraqi and U.S.-led occupation authorities to provide public security in Iraq's capital lies at the root of a widespread fear of rape and abduction among women and their families.

"Women and girls today in Baghdad are scared, and many are not going to schools or jobs or looking for work," said Hanny Megally, executive director of the Middle East and North Africa division of Human Rights Watch. "If Iraqi women are to participate in postwar society, their physical security needs to be an urgent priority."




Betwixt and between
For young women in Baghdad, it's a disorienting time to be a teen

By Ilana Ozernoy
10/4/04

But more than just a fad or symbol of faith, the hijab , along with long-sleeve shirts and loose skirts, has become a means of security, providing young women the shapeless anonymity that will let them blend into the crowd and out of the eyes of would-be assailants. Fatin Abbas, 17, puts it simply: "People look at me if I wear my hair down. But no one looks at me if I wear a hijab. ". . .

. . .Peer pressure. There is also social pressure to conform--not just from troublesome clerics but also from other women. For Leila Ali Hussein, 20, covering herself from head to toe was a hard-won imperative. "After the fall of the regime, I started covering my face completely," says Leila, who will reveal her bright eyes and toothy grin to only a few close relatives and female friends. She says under Saddam, dressing so conservatively aroused suspicion, if not persecution. Leila's family has suffered hard times since the start of the war. . .

. . .Despite her extreme views, Leila is like many teenage girls. Her walls are covered with pictures of her idol (in this case, the wagging finger and irascible face of the militant street cleric Moqtada al-Sadr). She yearns for a father figure, dreams of a greater role in society, and cries when she doesn't get her way. She is impressionable, motivated, and outraged, and it wasn't long before she found an outlet for her angst in religious extremism. She stopped listening to music, which she now considers un-Islamic, and started praying. She enrolled in religious classes at a Sadr City mosque and reinvented herself as a "warrior."

Just in case you need a reminder of what life was like for women under the Taliban:
Buried Alive: Afghan Women Under the Taliban


. . .Before the Taliban ban on female employment, 70 percent of the teachers in Kabul were women, as were 50 percent of the civil servants and
university students, and 40 percent of the doctors. . .

. . .Why does the regime insist that women be confined at home? Reducing
women to mere objects, the minister of education says, "It's like having a
flower, or a rose. You water it and keep it at home for yourself, to look at
it and smell it. It [a woman] is not supposed to be taken out of the house
to be smelled." Another Taliban leader is less poetic: "There are only two
places for Afghan women: in her husband's house, and in the graveyard.". . .

. . .I have been visiting and reporting on Afghanistan since 1984, and have
traveled extensively throughout the country, but it was only during my visit
last fall that I saw for the first time legions of women and children reduced
to beggary, the result of the Taliban's ban on women's employment. . .

Posted by ellen at 5:39 PM

The Museum of My Favorite Artists has been updated

The Museum of My Favorite Artists has been updated to the latest version of Gallery, with an improved look and many new features.

Stop in, learn about some new artists, leave some comments!

Click to visit the Museum now

Posted by ellen at 1:30 PM

Review of MovableType 3.3 so far

I am happy to say that this site has been updated to the latest version of MoveableType with no serious problems at all.

Installation
My old templates all worked. The old database converted without any issues. Overall the basic installation took about 45 minutes, with me being extra careful and backing things up several ways.

Comments are back on!
The new comment features are WONDERFUL. I have turned commenting back ON and someone has already made a genuine comment! I feel like awarding him a prize! Of course there have also been about 150 junk comments, but they were easily disposed of.


Plugins
The items that depended on old plugins that worked only with the older version needed to be readjusted:

  • My subcategories had to be re-arranged using the new interface.
  • The "links-mentioned" plugin needs to be reinstalled or something - I haven't looked into that yet.
  • I had a fair number of entries that depended on the quickcode plugin for formatting. The plugin probably exists out there but I have been converting them all to standard HTML. Let me know if you find a badly formatted entry.
  • I give the new version two thumbs up so far!

    UPDATE
    The only bugs I've encountered so far have to do with trying out all the new plugins. The alogblog plugin killed the "editable date" part of the edit-entry screen, and also the "save" button - it would give a "clearDirty" function not found javascript error. Shutting off the unnecessary plugins and clearing out the alt-tmpl folder corrected the problem.

    Posted by ellen at 12:49 PM

    August 12, 2006

    About me!

    My name is Ellen Meiselman. I work as a web and elearning developer for the University of Michigan Health System.

    This site serves both as a place to explore my interests and as an extra memory space to store the solutions to the software and web development issues I encounter daily. I began writing these posts and articles to avoid having to solve the same problem twice. Hopefully they will help others as well.

    Besides the many tutorials available on this site, I've written an article for the eLearning Guild's Learning Solutions e-magazine (available with membership):
    A Guide to Captioning Windows Media and QuickTime Using Subtitle Workshop

    What can you find here?

    Tutorials
    A museum of my favorite artists
    Free Photoshop brushes
    Free downloads and code snippets

    Drop me a line at ellen@thedesignspace.net.

    Thanks for stopping by!

    Posted by ellen at 6:25 PM

    Missing horizontal scrollbar in Firefox on wide pages

    My home page doesn't show horizontal scrollbars in version 1.5.0.6 of Firefox on the Mac. I'm sorry about that. It is a known bug that has been fixed in a patch that I assume will appear in the next update.

    Bug#: 192767 fixed 2006-08-07

    For a test case, see this link

    Posted by ellen at 12:02 PM

    August 11, 2006

    Minimizing Flash of White on page load

    While testing a javascript-heavy frameset-based learning module, users complained bitterly about the white frameset background flashing at them before each page loaded, particularly in IE. A related issue was that graphics were not preloading properly in IE, so mouseovers often resulted in a white flash or a brief appearance of a "no-image" icon. Sometimes the hover image would simply never load.

    Using frames is unavoidable for this module because there must be a persistent frame to store scoring and page data. So, I needed to find ways to speed up page load, and fix the flashing.

    After a lot of research I found this link: Stop Image Flicker with Cache-Control Extensions.

    A description of the Internet Explorer caching bug is here

    I implemented the change on our IIS content server, and it worked like a charm! It makes a huge difference in both the preloading issue and the speed of page loads in general.

    Posted by ellen at 7:12 AM