replace dolphin with konqueror

24 Aug 2010 In: General

Dolphin is still missing some features that I have set up in Konqueror.

But EVEN AFTER changing your preferred "file browsing" application to Konqueror under System Settings ->Default Applications, Dolphin still runs on mostly any folder operation. I found that the easiest way to get Konqueror to run instead was to symlink dolphin to konqueror. as root:


cd /usr/bin
mv dolphin dolphinx
ln -s konqueror dolphin

Now Konqueror runs for everything.

instead of doing


ssh customuser@hostname.com -p 12345

put some lines in your ~/.ssh/config file (create it if it doesn't exist)


Host hostname.com
Port 12345
User customuser

save some keystrokes, now you can do


ssh hostname.com

PowerGenix NiZn batteries

3 Mar 2010 In: General

nizn battery

I managed to pick up a PowerGenix 4-pack of NiZn (Nickel-Zinc) rechargeable batteries and a charger while I was at the International CES in Las Vegas - I saw them demoed at Lunch@Pieros and they were nice enough to donate a pack.

Well, that was back at the beginning of January. I've had them in my Wiimote since then, and my battery is still at 100% from a full charge. I thought they were full of bologna, telling me that it was the "next generation" of battery technology, geared towards high-draw use - seriously, how many times have we heard this in the past?

I have a pack of NiCds gathering dust now. They would be on their 37th charge if I was using them in my Wiimote this long.

It seems like we've finally seen a STRONG contender towards alkaline AA's. These batteries even put out 1.6v, a little more than most AA's, and the same as the best high-capacity lithiums. I really don't have to mention that it puts the 1.2v of NiCd rechargables to shame.

And another thing, they are cheap.

20 Feb 2010 In: General

for some reason, node_save was timing out inside of a hook_workflow block. hook_workflow is passed the operation, old state, new state, and the node being operated on.

 
function custom_workflow($op, $old_state, $new_state, $node) {
        $new_state_array = workflow_get_state($new_state);
        $new_state_name = $new_state_array['state'];
        if ($op=="transition post")
        {
                if ($new_state_name=="Published")
                {
                        $node->status=1;
                        node_save($node);
                }
        }
}
 

this wasn't working. when the workflow changed to Published, the page would hang and then die. it processed the node save, but the workflow never advanced. I'm not entirely sure why, but this quick fix made it work:

 
function custom_workflow($op, $old_state, $new_state, $node) {
        $new_state_array = workflow_get_state($new_state);
        $new_state_name = $new_state_array['state'];
        if ($op=="transition post")
        {
                if ($new_state_name=="Published")
                {
                        $node = node_load($node->nid); //here
                        $node->status=1;
                        node_save($node);
                }
        }
}
 

don't ask me why reloading the node (which was...already loaded) made it work. I just had a feeling that maybe something inside the node object hook_workflow was giving me might have been wonky. works perfectly now.

actually just posting this so I'll google it in the future and will get to this page. for some reason sound only comes out of the front speakers and is impossible to route to any others. adding this model parameter makes it happen.

/etc/modprobe.d/local.conf

options snd-hda-intel model=6stack

rinse and repeat, I mean, reboot

ten what?

7 Oct 2009 In: General

A man goes in to see his doctor, and after some tests, the doctor says, "I'm sorry, but you have a fatal disease."

Man: "That's terrible! How long have I got?"

Doctor: "Ten."

Man: "Ten? What kind of answer is that? Ten months? Ten years? Ten what?"

The doctor looks at his watch. "Nine."

i play maximal

16 Sep 2009 In: General

About this blog

Just a blog about my journeys through PHP...oh, and life