Yeah, yeah, i know my blog is still on wordpress – I moved it all over to my new host (as the title says! phpwebhosting.com review)  but never got around to activating it. All is going very well there. Fast server, no downtimes (and I’ve been monitoring too just out of curiosity). I wish they’d add mod_dav but I can understand why they haven’t yet (security). Anyway,  I’m happy with them. I still have my godaddy account too but as soon as the contract is up I’m out. I’m also going to move my domain registration to phpwebhosting.com too. They said they’d move it for 6.95 and renew at 7.95 which is just as good as I had before.

update – a year on a still very happy. i’m updating this wordpress blog every now and again. i’m always modifying my config at phpwebhosting.com so I thought I might as well keep this going here.

Many times spotlight on my mac seems to stop returning good results. Searches for common apps turn up nothing. The problem is never permanent and seems to fix itself. I believe the source of the problem is likely the presence of an external USB drive.

My guess is that it is trying to index the external drive and the indexes are all messed up during the process.

To fix :

kill off SystemUIServer with a force quit

It may also work to tell spotlight to not index your external drives or possibly wait for the external drive to be fully indexed. I’ve not confirmed this yet though.

growl for linux

February 11, 2010

I have to admit that growl is pretty nice. Wish there was a linux client – not just an alternative. I would love to have full integration across all my desktops plus phone.

getting killed by:

usr/bin/ld: errno: TLS definition in /lib/libc.so.6 section .tbss mismatches non-TLS reference in substdio.a(substdo.o)
/lib/libc.so.6: could not read symbols: Bad value

?

phew…

man…

ok, here’s how to get this crap to compile:

untar it, etc
cd to the dir

then:

echo gcc -O2 -include /usr/include/errno.h > conf-cc
echo cc -m32 -O2 -include /usr/include/errno.h >> conf-cc
echo cc -m32 >conf-ld

(these are just files in the current dir)

add :

#include “log.h”

to :

ezmlm-manage.c

and

ezmlm-return.c

(thanks to: http://lists.freebsd.org/pipermail/freebsd-ports-bugs/2003-August/009785.html for that little tidbit)

make

it should work

This fixes the following errors:

ezmlm-manage.c: In function âmainâ:
ezmlm-manage.c:320: warning: incompatible implicit declaration of built-in function âlogâ
ezmlm-manage.c:320: error: incompatible type for argument 1 of âlogâ
ezmlm-manage.c:320: error: too many arguments to function âlogâ
ezmlm-manage.c:331: warning: incompatible implicit declaration of built-in function âlogâ
ezmlm-manage.c:331: error: incompatible type for argument 1 of âlogâ
ezmlm-manage.c:331: error: too many arguments to function âlogâ
ezmlm-manage.c:135: warning: return type of âmainâ is not âintâ

and

/usr/bin/ld: errno: TLS definition in /lib/libc.so.6 section .tbss mismatches non-TLS reference in substdio.a(substdo.o)
/lib/libc.so.6: could not read symbols: Bad value

also see:

http://fixunix.com/plan9/353463-re-9fans-plan9-httpd-pegasus-unix.html

yum -y install unrar gnome-applet-netspeed azureus ntfs-config filezilla

wget http://www.mjmwired.net/resources/files/msttcorefonts-2.0-1.noarch.rpm

Mysql Upgrade – left joins not working?

If you are getting an error like:

Unknown column ‘i.blah’ in ‘on clause’

using a left join like:

FROM items_table AS items, meta_data_table AS md, categories_table AS cat LEFT JOIN restricted_table AS rst ON items.item_id=rst.item_id WHERE items.title LIKE ‘the%’

switch the order of the from around so that the item MySQL is complaining about is at the end of the from clause. That should fix it in many cases.

How to change quota’s in an openvz ve:

In the root node :

vzctl set NODE_NUMBER –diskspace hard:soft –save

example:

vzctl set 101 –diskinodes 220000:220000 –save

See:

http://wiki.openvz.org/Resource_shortage

Wow, learned how to do something in emacs that I’ve wanted to do for probably 10 years now.

Replace text with newlines. Here’s how:

when in replace mode, press control-q control-j to insert the newline.

I used replace:

<pre>
on><op></op></pre>

with

<pre>
on>control-q control-j<op></op></pre>

it to fix this ugly html:

<pre>
linux rockslinux rocks the casbahlinux is rad
</pre>

with this:

<blockquote><pre>
linux rocks
linux rocks the casbah
linux is rad
</pre></blockquote>

Of course in real life I had about 50 options I would have had to edit by hand to make it all pretty.

Thanks to http://www.cs.umd.edu/~jspacco/emacs.html

Edit:

/etc/selinux/config

change the line:

SELINUX=enforcing

to:

SELINUX=disabled

Reboot to make the change effective.

Don’t be surprised if cybersource’s php api craps out when calling cybs_run_transaction with any umlauts in the input (card holder name, etc.)

For me I get:

Aborted.

Fun.

Follow

Get every new post delivered to your Inbox.