![]() |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Welcome to Deadbeef.com
SearchLinksOpen SourceOtherFavoritesWho's Online?
Misc |
|
Archives for: July 200607/31/06My LinkedIn PageI have a profile up at LinkedIn, which I am not sure if this is a good idea or not, but here it is. There is one nice feature, where you can upload your contacts and it will tell you which people are already in LinkedIn, so that you don't have to spam all of your friends for no reason. 07/28/06Pronet SEO tipsThe linked article is a really good list of tips on how to improve your search engine rankings. I have implemented two of their simpler suggestions, changing the page titles to "Post title - Deadbeef.com" instead of the silly "Deadbeef.com - Post Detail: Post title". I also put in a 301 redirect for deadbeef.com to www.deadbeef.com. We'll have to see if it makes any difference. The West Dodge Road expressway actually works!I came home today on the new West Dodge Road Expressway here in Omaha, and it only took 11 minutes. This was at the peak of rush hour too. Normally this would take me over 20 minutes. Other than being a big federal earmark ($80 million), it is turning out nice. It opened early, and has an immediate and positive impact on the traffic. Microsoft gets into the medical record businessThe linked article of note because both of the hospitals noted in the article are also using my software! I wonder if any of the 42 people that used to work at Washington Hospical Center and now work for Microsoft have heard of my employer? I had not heard of their product Azyxxi before this, but I would not be suprised if we are already sharing data with them via HL-7 messaging. Redirecting the output of a program to a file in .NET frameworkIt doesn't seem like this should be so hard, but it is. The Win32 CreateProcess API call has two nifty ways to do this. Now, we all know that in .NET using win32 api calls is naughty, so let's try using System.Diagnosis.Process.Start() instead. It has a very convient methods for capturing the output, but no way to set the handles to a file. Rats. So all we have left is a hack. Launch cmd.exe and have it redirect the output as described here: http://weblogs.asp.net/israelio/archive/2004/08/31/223447.aspx Code:
icky :( Oh and wait, the process exits immediatly, and the Process.ExitCode is always 1. Arg! Ok, so we need another hack. How about instead of starting cmd.exe we just run a bat file. Code:
Truly horrific, but it has the advantage of working! Of course this is subject to a race condition where foo.bat could be replaced with another file by a malicious process, and it's evil commands would be executed within our user context. I don't know how to fix that. Perhaps generate a random path name, create a directory, change the ACL's to prevent anyone from creating files in there, create the batch file in the directory, and then run it. Maybe. My wife has a blog nowMy lovely wife Amy has set up her own blog along with a few of her friends at http://www.teachingwithjoy.com. It will cover her favorite topics which are homeschooling & teaching in general. Right now she has her list of book recommendations up, but expect to see some nifty lesson plans and activities in the near future. 07/27/06Automatically remove invalid b2evolution usersIf your web site is anything like mine, you have spammers registering as users in the hope that they will have their spammy comments show up. Here is how you can get b2evolution 1.8 to automatically delete the users if they have not validated their email address within 7 days. First, copy this file to .../blogs/inc/CONTROL/cron/ Then edit .../blogs/inc/CONTROL/cron/crontab.php and add in these records: $cron_job_names:
'delete_users' => T_('Delete invalid users'),
$cron_job_params:
'delete_users' => array(
'ctrl' => 'cron/_delete_users.job.php', 'params' => NULL ), Then go to the Scheduler page in the backoffice, and add a new job. Now all your fake spam users will get autodeleted! 07/26/06"As per" is evil and should dieI was reminded again today about how much I dislike the phrase "as per". It is complete useless and unnecessary! I find that every usage could be expressed using either "as" or "per" or by leaving out the two words altogether. I have tried to find some references on the web, as to the correctness of this idiom, but I have not had much luck. Please leave a comment if you know of a definitive source for the evilness of this phrase. It's Evil: Noncommital: It's good: 07/18/06Fake ID's Save Lives in IraqI saw this article linked from Bruce Schneier's Blog. I always prickle at having to show my ID so this caught my attention. 07/17/06B2Evolution 1.8 releasedThe new version of b2evolution is out for download and I have moved over my blog. Changes I had to make:
B2Evolution: Table of Contents pluginHere is a plugin for B2Evolution 1.6, that creates a renders the special tag: This way you can create a menu post that displays posts from a certain category. This is handy, if you use b2evolution as a content system for a traditional web site, not just as a blog. Here is a sample use. For the top 5 posts in the B2evolution category, and the first 10 words from each post, showing dates; use:
The blog's or the skin's css file can be used to customize the display of the table of contents. Download the file and save it in your b2evolution plugins directory. Update 1/30/2006: Download link fixed
|
|
Sponsored LinksTop Articles
Categories
Archives
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||