• Home

CodingExperiments.com

CodingExperiments.com is a site where I can (obviously) experiment with various demonstrations of code.

Search

Category:

  • AJAX
  • Announcement
  • Apple-related
  • Best Practices
  • Blogger
  • Blogging
  • BurstCMS
  • Content Management System
  • Debugging
  • Experiments
  • FriendFeed
  • Gaming
  • General Code
  • Internet
  • Javascript
  • Linux
  • Microsoft
  • Microsoft Windows
  • Networks
  • Open Source
  • PHP
  • Programming Tips
  • Rant
  • Security
  • Storage
  • Twitter
  • Ubuntu
  • Uncategorized
  • Web Development
  • Windows Vista
  • WordPress

Archives:

  • November 2008
  • October 2008
  • September 2008
  • August 2008
  • July 2008
  • June 2008
  • May 2008
  • April 2008
  • March 2008
  • February 2008
  • January 2008
  • December 2007

Pages

  • About
    • The Authors
  • Commenting your code
  • How to Write Papers with Groff
  • ModCMS Anti-Spam Component Set
  • ModCMS Technical Specifications
  • Regular Expressions Guessing Game
  • Saving code directly to a web server
  • The (Almost) Perfect PHP 404 Page

Meta:

  • RSS
  • Comments RSS

Awesomeness tracker

CodingExperiments at Blogged View blog authority
Free Page Rank Tool

Linux 2.6.26 Released

July 14th, 2008 by i80and

Gentlemen, start your compilers.  On July 13, 2008, Linux 2.6.26 was given the green light, and features an impressive list of changes.  Go ahead and download it at the kernel archives.  And, if you have the nerve, see the list of commits.

There are several new features that I consider worthy of particular mention.  First of all, there’s the addition of a V4L/DVB driver that adds support for USB Video Class devices; this means that most USB webcams, video cameras, video capture cards, etc. will now work fine with Linux.

One of the more controversial changes is the addition of a kernel debugger, or KGDB.  Linus Torvalds has been notoriously against kernel debuggers, but I guess in the end, KGDB was good enough to be merged.

KVM, or the kernel virtualization layer, has been ported to more architectures; IA64, S390, and PPC.

Barriers have been enabled by default in ext4.  This improves data integrity, as it gives a mechanism for ensuring that the transaction information has been written to the filesystem journal before the commit record can be written, along with the rest of the write operation.  However, Andrew Morton stated that it can cause a 30% slowdown, and thus the reason that up to now it hasn’t been enabled by default on ext3 or ext4.  The situation may not be as severe for ext4, however, as the barrier process for it is less time-consuming than it is for ext3.

In addition, support for the mesh networking draft has been implemented, which will allow for interesting networking clouds, a lá OLPC.

Posted in Announcement, Linux, Open Source | Comments

How I broke and fixed this website

June 12th, 2008 by possible248

Yes, another post entirely about this website, but I think you’ll find it useful should you ever need to fix your comments in Wordpress.

This morning, I had marked 25 of the most recent Wordpress comments as spam. I use Disqus for new posts, but old posts with comments still use the Wordpress mechanism.

In Wordpress, comments stay in the database when marked as spam. This is probably done to train the spam filters. What I had to do was permanently delete all of the real spam comments and then set all the good comments marked spam (as the only comments marked spam that are left are the good comments) as good again.

I have Disqus on Wordpress, and it is set to only replace Wordpress’s commenting system on new or other posts without pre-existing comments. Now that more posts were without comments when they were marked as spam, Disqus took them over.

Setting the flags in the comments table in the database that Wordpress uses only solved part of the problem. Disqus was still taking control of the comments.

In the posts table, there is a column that contains how many comments there are for the post. This was modified when I marked all those comments as spam. I wrote a short little PHP script to look through all the posts and see if the number of comments according to the posts table was the same as the number of comments for that post. If the two numbers were different, I would change the number of comments in the posts table to reflect the actual number of posts.

I might put up a modified version of the script later.

Posted in Announcement | Comments

This site will have ads for one day (now a week)

June 11th, 2008 by possible248

As the bandwidth [usage] on CodingExperiments increases, I’m being increasingly pressured by family and friends to put advertisements on CodingExperiments to either cash in or pay less for hosting.

I’m not a pro-advertising person at all, so I’ve always said that putting advertising on a tech site is pointless as everybody runs Adblock Plus now.

But now, I’ve lost. For one day it’s a week now, advertisements will be placed on CodingExperiments.com. I would ask that you do not disable Adblock Plus to click on them. Don’t do anything out of the ordinary. If I make no money in one day, I’ll go back to a nice, ad-free website.

UPDATE (June 13th): Except for four clicks on the first day, no clicks so far.

Please share your opinions about the advertisements in the comments.

and yes, Voyagerfan5761, there is a Disqus thread below.

Posted in Announcement | Comments

« Previous Entries

 
Wordpress Themes by and Website Templates by Blogcut Blogged Blog Directory Blog Directory - Blogged