Posts filed under 'General'

Gandhi’s top ten list on how to change the world

I got this here. I am sharing an abridged version. The original has some nice commentary. My version only includes the actual Gandhi quotes for each number.

1. Change yourself. “You must be the change you want to see in the world.” and “As human beings, our greatness lies not so much in being able to remake the world - that is the myth of the atomic age - as in being able to remake ourselves.”

2. You are in control. “Nobody can hurt me without my permission.”

3. Forgive and let it go. “The weak can never forgive. Forgiveness is the attribute of the strong.” and “An eye for eye only ends up making the whole world blind.”

4. Without action you aren’t going anywhere. “An ounce of practice is worth more than tons of preaching.”

5. Take care of this moment. “I do not want to foresee the future. I am concerned with taking care of the present. God has given me no control over the moment following.”

6. Everyone is human. “I claim to be a simple individual liable to err like any other fellow mortal. I own, however, that I have humility enough to confess my errors and to retrace my steps.” and “It is unwise to be too sure of one’s own wisdom. It is healthy to be reminded that the strongest might weaken and the wisest might err.”

7. Persist. “First they ignore you, then they laugh at you, then they fight you, then you win.”

8. See the good in people and help them. I look only to the good qualities of men. Not being faultless myself, I won’t presume to probe into the faults of others.” and “Man becomes great exactly in the degree in which he works for the welfare of his fellow-men.” and “I suppose leadership at one time meant muscles; but today it means getting along with people.”

9. Be congruent, be authentic, be your true self. “Happiness is when what you think, what you say, and what you do are in harmony.” and “Always aim at complete harmony of thought and word and deed. Always aim at purifying your thoughts and everything will be well.”

10. Continue to grow and evolve. ”Constant development is the law of life, and a man who always tries to maintain his dogmas in order to appear consistent drives himself into a false position.”

6 comments May 13th, 2008

Christians in America looking to moderate themselves

Today I was reading the news and ran across a link to something called The Evangelical Manifesto. This isn’t from all members of that community, but only those who wrote it. The authors have said the main goal is to get a conversation started among believers as a starting point for some needed reforms in their community (their words, not mine).

In any case, I see this a something that gives me hope.

I would love to see people of faith able to live their beliefs publicly and openly, yet without forcing them on others, just as I would love to see people who do not believe in spiritual things able to live their lives in freedom without forcing others to give up their beliefs. If this manifesto were actually accepted by most Christians, it could have a positive impact in each of these directions.

I have also noticed that it is beginning to give rise to a positive sounding conversation among Jews and Muslims as well.

In a large community, I would like to see room for everyone to feel welcome. Part of what this requires is a maturity within the individuals in a diverse setting. With that maturity comes a sense of security that is not easily shaken by the presence of others who believe differently, making it far less difficult to take offense when someone says or embraces something you do not like.

I wonder what sort of comments I’ll find on this post…I’ve posted similar thoughts before.

16 comments May 10th, 2008

This world is not my home

Is it possible to spam your own blog? I’m not sure, but I’ll try anyway. :) I have a new project.

People who move away from their country or culture of origin to live in another culture for any amount of time will understand what I say when I comment that this is a wonderful, life changing, and sometimes difficult experience. Cross cultual living requires adaptation, a sense of humor, and will cause a person to grow, often in unanticipated ways.

If you have experienced this sort of thing and tried to share your new insights with others who have not, you may have found them to be a bit less excited about your ideas than you had expected. They didn’t mean to frustrate or hurt you, or anything else, they just didn’t understand what you were saying or where you were coming from.

I have started a small niche forum for people who, like me, either live in a culture other than the one that they were born in or that issued their passport, or that have done so previously. If that sounds interesting to you, check it out at http://thisworldisnotmyhome.com/ and see what you think.

If you are not interested, that’s okay. I now return you to your regularly scheduled blog reading and promise not to interrupt further with news on this project (unless, of course, the positive response is truly overwhelming). :)

1 comment May 8th, 2008

SMF forum modifications

I like to create and administer websites. I’m forever starting new projects, giving projects away, and finding something to tinker with. My most recent (not quite ready for the public) is a Simple Machines Forum installation. While I prefer vBulletin, SMF has some wonderful qualities and is a good piece of software and I am enjoying working with it.

The first thing I did after installing the software was look at themes. I don’t like the default theme of any forum software that I have seen. Maybe the elegant beauty of the Ubuntu Forums has spoiled me. I went on a search. There are a lot of decent and free themes available for SMF, but none was exactly what I was looking for. I did find one I liked pretty well, though, so I downloaded and installed it and began customizing the theme to suit my needs.

After the theme was set up and working, I realized there are several functions that SMF does not have out of the gate, functions that I wanted. I began to search for MODS, bits of code to add in to give me the functions I wanted. I added mods for pretty urls, creating a sitemap for Google, customizing the permissions beyond what is allowed in the standard setup, adding custom fields to member profile pages, and allowing members to choose or upload an avatar at registration.

I also found some nice mods that required some hacking to fix…for example, there is a mod to add drop down boxes for font and font size to the text entry area for posts, but the boxes were mislabeled. Most of the fixes are easy if you are able to dig through and read the PHP or html, but it takes time.

What I would like to find is a mod for spam control (the Akismet mod for SMF does not work with my custom theme, even after hours of hacking at it and also appears to be unsupported/unmaintained).

Anyway, this is kind of a followup to the “why does the Ubuntu Forums website use vBulletin instead of a free forum software?” questions we receive from time to time. vBulletin is easier, has more features by default, more complete control over how it operates, better customization options that add in and operate correctly with less work, and is well worth what little is paid for the annual license. We get complete access to the source code and can (and do) modify it at will when we want to, but almost never do we find ourselves forced to do so to make something work.

4 comments May 6th, 2008

Some users are expressing disappointment with Ubuntu 8.04 - Hardy Heron

One such user is my friend K.Mandla. His disappointment? It’s too easy to set up. :) Those of us who have been around since Hoary Hedgehog (Ubuntu 5.04) or earlier remember the work that was needed to get things up and running. Well, for the majority of people, those days are gone (and good riddance!).

Congrats again and huge thanks to all involved in making Hardy the best Ubuntu release so far, and perhaps the best Linux distro release ever!

11 comments April 30th, 2008

I upgraded to WordPress 2.5.1 yesterday…and a bug was found today

If you have upgraded to WordPress 2.5.1, you may have discovered a bug that hit a lot of people this weekend. What happens is if you change your password, the login link you are sent doesn’t work and you end up locked out. You can reset a WP password manually, and here is a link to two updated files that fix this issue.

The fix will also be included in 2.5.2, so if you haven’t upgraded yet, I suppose you could wait for that, however there were several important security fixes in 2.5.1, so I recommend upgrading and then uploading the two updated files.

2 comments April 27th, 2008

Apologies to my Planet Ubuntu friends

Sorry about the length of that last post. I thought using the “more” tag in WordPress would cause only the first couple of paragraphs to be carried by my rss feed, like it does on my blog front page…I didn’t expect the whole, long thing to end up on the Planet.

So, dear lazyweb, any idea how I can accomplish that goal for the next time? I certainly don’t want to overwhelm the Planet page or others.

16 comments April 26th, 2008

Allowing flash (flv) files to be stored and embedded in a coppermine gallery

I have several websites for which I am responsible. On one site, I am building a new gallery site for storing pictures as well as sound and video clips. There are several good options for building a gallery site, and I have used more than one with success. For the site in question, I decided to use Coppermine, which is powerful, configurable, open source, and freely licensed using the GNU GPL.

I ran into a little snag that took some work to figure out. To help me remember what I did, I am blogging it here. Maybe someone else will find it useful as well.

Coppermine makes it very easy to store, embed and play lots of media files and formats. That is awesome. I found one that is not supported…the now common flv, or flash video. In fact, by default you can’t even upload a file with an flv extension. Bummer. Off to Google I ran.

I found several sites with ideas and info, but one was more useful than others. Even it required lots of reading and page turning. I decided to put all the info in one page for my easy reference, but the Coppermine Gallery forum deserves a link and the credit for this method. I’m just posting it, people there came up with it. That is an old thread, though, and things have changed since the first post. I had to read the whole thing to figure out what needed to happen to make this work, and that is the reason for this post, rather than just a bookmark in my personal web browser. Okay, here are the steps I took that got this working for me.

Note: get your site up and running, with the theme work complete before doing this. That will make your life a little easier.

1. Download and install the filetype editor MOD discussed here. The mod is included in the cpg1.4.x_plugin_pack_v3 package available on the SourceForge download page for Coppermine. I happened to upload all of the plugins to my website, and sorted them from there, ending up using only a handful. That was easier for me. You do it how you want to.

2. Run the plugin and make a new filetype using the following data; “flv - application/x-shockwave-flash - movie - Flash player”

3. Download the FLV Player from this site. Extract the archive locally and upload mediaplayer.swf and swfobject.js to your Coppermine site’s root directory.

4. I added the following code to my theme’s theme.php file, before the function theme_html_img_nav_menu().
//** added by matthew to try to get flv play to work **
function theme_html_picture()
{
global $CONFIG, $CURRENT_PIC_DATA, $CURRENT_ALBUM_DATA, $USER;
global $album, $comment_date_fmt, $template_display_media;
global $lang_display_image_php, $lang_picinfo;

$pid = $CURRENT_PIC_DATA['pid'];
$pic_title = ”;

if (!isset($USER['liv']) || !is_array($USER['liv'])) {
$USER['liv'] = array();
}
// Add 1 to hit counter
if (!USER_IS_ADMIN && !in_array($pid, $USER['liv']) && isset($_COOKIE[$CONFIG['cookie_name'] . ‘_data’])) {
add_hit($pid);
if (count($USER['liv']) > 4) array_shift($USER['liv']);
array_push($USER['liv'], $pid);
}

if($CONFIG['thumb_use']==’ht’ && $CURRENT_PIC_DATA['pheight'] > $CONFIG['picture_width'] ){ // The wierd comparision is because only picture_width is stored
$condition = true;
}elseif($CONFIG['thumb_use']==’wd’ && $CURRENT_PIC_DATA['pwidth'] > $CONFIG['picture_width']){
$condition = true;
}elseif($CONFIG['thumb_use']==’any’ && max($CURRENT_PIC_DATA['pwidth'], $CURRENT_PIC_DATA['pheight']) > $CONFIG['picture_width']){
$condition = true;
}else{
$condition = false;
}

if ($CURRENT_PIC_DATA['title'] != ”) {
$pic_title .= $CURRENT_PIC_DATA['title'] . “\n”;
}
if ($CURRENT_PIC_DATA['caption'] != ”) {
$pic_title .= $CURRENT_PIC_DATA['caption'] . “\n”;
}
if ($CURRENT_PIC_DATA['keywords'] != ”) {
$pic_title .= $lang_picinfo['Keywords'] . “: ” . $CURRENT_PIC_DATA['keywords'];
}

if (!$CURRENT_PIC_DATA['title'] && !$CURRENT_PIC_DATA['caption']) {
template_extract_block($template_display_media, ‘img_desc’);
} else {
if (!$CURRENT_PIC_DATA['title']) {
template_extract_block($template_display_media, ‘title’);
}
if (!$CURRENT_PIC_DATA['caption']) {
template_extract_block($template_display_media, ‘caption’);
}
}

$CURRENT_PIC_DATA['menu'] = html_picture_menu(); //((USER_ADMIN_MODE && $CURRENT_ALBUM_DATA['category'] == FIRST_USER_CAT + USER_ID) || ($CONFIG['users_can_edit_pics'] && $CURRENT_PIC_DATA['owner_id'] == USER_ID && USER_ID != 0) || GALLERY_ADMIN_MODE) ? html_picture_menu($pid) : ”;

if ($CONFIG['make_intermediate'] && $condition ) {
$picture_url = get_pic_url($CURRENT_PIC_DATA, ‘normal’);
} else {
$picture_url = get_pic_url($CURRENT_PIC_DATA, ‘fullsize’);
}

$image_size = compute_img_size($CURRENT_PIC_DATA['pwidth'], $CURRENT_PIC_DATA['pheight'], $CONFIG['picture_width']);

$pic_title = ”;
$mime_content = cpg_get_type($CURRENT_PIC_DATA['filename']);

if ($mime_content['content']==’movie’ || $mime_content['content']==’audio’) {

if ($CURRENT_PIC_DATA['pwidth']==0 || $CURRENT_PIC_DATA['pheight']==0) {
$CURRENT_PIC_DATA['pwidth']  = 320; // Default width

// Set default height; if file is a movie
if ($mime_content['content']==’movie’) {
$CURRENT_PIC_DATA['pheight'] = 240; // Default height
}
}

$ctrl_offset['mov']=15;
$ctrl_offset['wmv']=45;
$ctrl_offset['swf']=0;
$ctrl_offset['rm']=0;
$ctrl_offset_default=45;
$ctrl_height = (isset($ctrl_offset[$mime_content['extension']]))?($ctrl_offset[$mime_content['extension']]):$ctrl_offset_default;
$image_size['whole']=’width=”‘.$CURRENT_PIC_DATA['pwidth'].’” height=”‘.($CURRENT_PIC_DATA['pheight']+$ctrl_height).’”‘;
}

if ($mime_content['content']==’image’) {
if (isset($image_size['reduced'])) {
$winsizeX = $CURRENT_PIC_DATA['pwidth']+5;  //the +’s are the mysterious FF and IE paddings
$winsizeY = $CURRENT_PIC_DATA['pheight']+3; //the +’s are the mysterious FF and IE paddings
$pic_html = “<a href=\”javascript:;\” onclick=\”MM_openBrWindow(’displayimage.php?pid=$pid&fullsize=1′,’” . uniqid(rand()) . “‘,’scrollbars=yes,toolbar=no,status=no,resizable=yes,width=$winsizeX,height=$winsizeY’)\”>”;
$pic_title = $lang_display_image_php['view_fs'] . “\n==============\n” . $pic_title;
$pic_html .= “<img src=\”" . $picture_url . “\” class=\”image\” border=\”0\” alt=\”{$lang_display_image_php['view_fs']}\” /><br />”;
$pic_html .= “</a>\n”;
} else {
$pic_html = “<img src=\”" . $picture_url . “\” {$image_size['geom']} class=\”image\” border=\”0\” alt=\”\” /><br />\n”;
}
} elseif ($mime_content['content']==’document’) {
$pic_thumb_url = get_pic_url($CURRENT_PIC_DATA,’thumb’);
$pic_html = “<a href=\”{$picture_url}\” target=\”_blank\” class=\”document_link\”><img src=\”".$pic_thumb_url.”\” border=\”0\” class=\”image\” /></a>\n<br />”;
} else {
$autostart = ($CONFIG['media_autostart']) ? (’true’):(’false’);

$players['WMP'] = array(’id’ => ‘MediaPlayer’,
‘clsid’ => ‘classid=”clsid:6BF52A52-394A-11d3-B153-00C04F79FAA6″ ‘,
‘codebase’ => ‘codebase=”http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701″ ‘,
‘mime’ => ‘type=”application/x-mplayer2″ ‘,
);
$players['RMP'] = array(’id’ => ‘RealPlayer’,
‘clsid’ => ‘classid=”clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA” ‘,
‘codebase’ => ”,
‘mime’ => ‘type=”audio/x-pn-realaudio-plugin” ‘
);
$players['QT']  = array(’id’ => ‘QuickTime’,
‘clsid’ => ‘classid=”clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B” ‘,
‘codebase’ => ‘codebase=”http://www.apple.com/qtactivex/qtplugin.cab” ‘,
‘mime’ => ‘type=”video/x-quicktime” ‘
);
$players['SWF'] = array(’id’ => ‘SWFlash’,
‘clsid’ => ‘ classid=”clsid:D27CDB6E-AE6D-11cf-96B8-444553540000″ ‘,
‘codebase’ => ‘codebase=”http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0″ ‘,
‘mime’ => ‘type=”application/x-shockwave-flash” ‘
);
$players['UNK'] = array(’id’ => ‘DefaultPlayer’,
‘clsid’ => ”,
‘codebase’ => ”,
‘mime’ => ”
);

if (isset($_COOKIE[$CONFIG['cookie_name'].’_’.$mime_content['extension'].’player’])) {
$user_player = $_COOKIE[$CONFIG['cookie_name'].’_’.$mime_content['extension'].’player’];
} else {
$user_player = $mime_content['player'];
}

// There isn’t a player selected or user wants client-side control
if (!$user_player) {
$user_player = ‘UNK’;
}

if ($mime_content['content']==’movie’ && $mime_content['mime']==’application/x-shockwave-flash’) {
if ($CURRENT_PIC_DATA['pwidth']==0 || $CURRENT_PIC_DATA['pheight']==0) {
$CURRENT_PIC_DATA['pwidth']  = 640; // Default width
$CURRENT_PIC_DATA['pheight'] = 480; // Default height
}
$CURRENT_PIC_DATA['pwidth']-=26; // black bars on sides for me for some reason

$flv =  $CONFIG['fullpath'] . $CURRENT_PIC_DATA['filepath'] . $CURRENT_PIC_DATA['filename'];

if($mime_content['extension']!=’flv’) {
$flvcheck = fopen($flv,”r”);
$flv=fgets($flvcheck);
fclose($flvcheck);
}
$exxvars=str_replace($CONFIG['thumb_pfx'], $CONFIG['normal_pfx'], get_pic_url($CURRENT_PIC_DATA,’thumb’));
if(!file_exists($exxvars)) $exxvars=get_pic_url($CURRENT_PIC_DATA,’thumb’);
$exxvars=”ℑ=”.$exxvars;
$pic_html = “<embed src=\”mediaplayer.swf\” width=’”.$CURRENT_PIC_DATA['pwidth'].”‘ height=’”.$CURRENT_PIC_DATA['pheight'].”‘ allowfullscreen=\”true\” allowscriptaccess=\”always\” type=\”application/x-shockwave-flash\” pluginspage=\”http://www.macromedia.com/go/getflashplayer\”
flashvars=\”file=$flv$exxvars\”></embed>”;

} else {

$player = $players[$user_player];

$pic_html  = ‘<object id=”‘.$player['id'].’” ‘.$player['classid'].$player['codebase'].$player['mime'].$image_size['whole'].’>’;
$pic_html .= “<param name=\”autostart\” value=\”$autostart\” /><param name=\”src\” value=\”". $picture_url . “\” />”;
$pic_html .= ‘<embed ‘.$image_size['whole'].’ src=”‘. $picture_url . ‘” autostart=”‘.$autostart.’” ‘.$player['mime'].’></embed>’;
$pic_html .= “</object><br />\n”;

}
}

$CURRENT_PIC_DATA['html'] = $pic_html;
$CURRENT_PIC_DATA['header'] = ”;
$CURRENT_PIC_DATA['footer'] = ”;

$CURRENT_PIC_DATA = CPGPluginAPI::filter(’file_data’,$CURRENT_PIC_DATA);

$params = array(’{CELL_HEIGHT}’ => ‘100′,
‘{IMAGE}’ => $CURRENT_PIC_DATA['header'].$CURRENT_PIC_DATA['html'].$CURRENT_PIC_DATA['footer'],
‘{ADMIN_MENU}’ => $CURRENT_PIC_DATA['menu'],
‘{TITLE}’ => bb_decode($CURRENT_PIC_DATA['title']),
‘{CAPTION}’ => bb_decode($CURRENT_PIC_DATA['caption']),
);

return template_eval($template_display_media, $params);
}
//** end added by matthew **

I have not tried them, but I have read that there are some changes you can make to your theme’s template.html file that will allow you to change the size of the video on site. If I am successful doing so, I will add that info in a comment here. Otherwise, this is all I have done, and the site in question now allows me to upload flash video and play it in the same way as an mpg or mov.

11 comments April 26th, 2008

That’s not my circle

One of the most freeing moments of my life was when I learned to stay out of other people’s business. That moment freed me from the stress and worry of trying to keep everyone else safe, correct, or “on the right path.” Don’t get me wrong, there is a place and a time for that. The real trick is learning how to discern what is your responsibility and what is not, in other words, when are where are those proper times and places?

I like to use the analogy of circles. Each of us is given a circle of responsibility and influence. Everything in the circle is ours. Everything outside of that circle is not ours. The things inside of other people’s circles are their responsibility.

Sometimes responsibilities are shared, like my wife and I each have our children within the shared, overlapping portions of our individual circles.

Sometimes my circles contain other people’s circles. My children, especially as they are very young, are fully within my circle. As they get older, my job as a father is to help them learn how to manage the things in their circle well, giving them authority and power over their lives. At first, I control the decisions. Then, I allow them to make decisions within parameters I establish. Finally, we move to more and more freedom, ultimately allowing them to make decisions for themselves as they learn how to do so.

Sometimes circles exist only for specific areas of life. An employer’s circle of responsibility at work completely encompasses the circles of his employees, but only where work is concerned. The employer does, or should not have, any such authority over the employee at home.

Sometimes circles are unique. This blog is in my circle and no one else is responsible for it in any way (other than my web host keeping its uptime promise).

Problems appear when people overstep proper boundaries and begin trying to manage the things in other people’s circles. You are still within your circle when you state a preference or a belief. You are probably still within your circle when you advocate or promote an idea (depending on how you do it, obtrusively or respectfully). You are no longer within the boundaries of your circle when you demand that someone do things the way you want them done.

It goes the other way, too. I am fully within my circle when I delete spam comments from my blog, when I prevent them altogether, when I decide who may or may not post comments, and when I arbitrarily change the theme of my site. I am stepping outside of my circle when I demand that someone else do the same things on their site. I can comment, “I do this. Here is why. You might like it as well.” I may not say, “Anyone who administers their site differently is a moron,” and I certainly have no power or authority to demand that they change.

Actually, realizing that is quite freeing. Suddenly it is okay to allow people to make choices. I might comment occasionally, if I can do so politely and without stepping out of my circle and into someone else’s, but ultimately I must allow others to have control over their lives, to have the freedom to live as they would, if I am to expect the same consideration.

So, with that in mind, I won’t tell you how to raise your children, how to run your software project, how to administer your website, or what you should or shouldn’t believe. I might make a comment occasionally based on my personal preferences, but only when I can so do in a way that does not steal from you your freedom. I’ll stay out of your circle, you can rule it as you see fit. If you are working for me, I will limit my attempts to control or influence your actions only within proper the boundaries of the workplace and the job and our professional relationship. That is the path of respect.

In return, please feel free to tell me what you think, what you believe, and share ideas you have that I may not have considered. I want to hear them! Really. Then, let me make an informed decision, and let the decision be mine. Stay out of my circle.

6 comments April 24th, 2008

How do people find your site?

I spent some time this morning looking through my logs and reading some stats (when I should have been working, but that’s a different post altogether). One statistic that fascinated me was the list of search terms that have led people to this site. Some are obvious, because I have written posts on these topics.

conky

using rsync for backup

ubuntu forums

date ideas

guitar effect settings

automatic php database backup

But then there are some that both confuse and amuse me. I thought I would share them, in case you needed a chuckle. How any of these led someone to my site is a mystery, probably involving chaos math and a butterfly somewhere in Venezuela.

joke donut difference between a

the coolest things ever known to man

soda cause achy feeling

“top secret” morocco site:net

what are the coolest clothes on oblivion

can diet coke cause indigestion

what do you call a conductor’s stick?

Please, share yours. I need the laugh.

1 comment April 24th, 2008

Previous Posts


Categories

 

May 2008
S M T W T F S
« Apr    
 123
45678910
11121314151617
18192021222324
25262728293031

Site Content License

The content on this site is
© Matthew Helmke.

Unless otherwise noted, content on this site is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License.

Creative Commons License

Blogroll

Interesting Sites

Archives

Spam Blocked