James Wilson

Paintball RSS Feeds

If you didn't know, I loves me Google Reader. It's just so badass, but many paintball sites don't have RSS feeds, or they're hidden away. Most are stuck in the old, you have to go to the site site to get content phase. But, I've compiled a list of paintball releated RSS feeds, which some had to be made using feed43.com.

Or here they are:

Paintball Headlines – New Paintball Blog. Disclaimer: This is my site

News: http://feeds.feedburner.com/PaintballHeadlines

You can have feeds for certain categories by adding feed to the end, like In The Media, http://paintballheadlines.com/category/in-the-media/feed/

PbNation – Yes, I do hate the some of the people running the site, but they do have a user base.

News – http://www.pbnation.com/external.php?type=RSS2&forumids=13
Tournaments (smaller ones) –
http://www.pbnation.com/external.php?type=RSS2&forumids=447,345,284,390,185,379,446,266,222,232,445,250,67,381,444,442,400,281,364,65
Tournaments (PSP, NPPL, Millenium) –
http://www.pbnation.com/external.php?type=RSS2&forumids=281,64,317

PBJunkie.com – NEWS Junkie and news forum. Not really sure what the differences are, but they usually have different content. Pretty good feed.
News – http://www.pbjunkie.com/forums/external.php?type=RSS2&forumids=3
News – http://www.pbjunkie.com/forums/external.php?type=RSS2&forumids=106

PbReview – Meh
News –
http://www.pbreview.com/forums/external.php?type=RSS2&forumids=55

68 Caliber Has Been Removed. See this post.

Paintball.com – Removed. Changed site design.

Warpig.com – These are hidden away somewhere, but google found them
Headlines – http://www.warpig.com/newswire/headlines_rss.xml
PRWire – http://www.warpig.com/newswire/prwire_rss.xml

PSP – Tournament news. Feed 43
News – http://feed43.com/7620551077587803.xml

ESPN – Any mentioning of paintball on the ESPN site
News – http://sports.espn.go.com/keyword/search?searchString=paintball&feed=rss&filter=null&page=espn&language=en-us

Google BlogSearch – This is the feed for the search 'paintball'. Not too bad of a source
News – http://blogsearch.google.com/blogsearch_feeds?hl=en&q=paintball&ie=utf-8&num=10&output=atom

Technorati – The feed for the tag search of 'paintball'. Mostly useless.
News – http://feeds.technorati.com/feed/posts/tag/paintball

PBHeadlines – Not to be confused with Paintball Headlines. Removed for being utter crap.

PbBucket – Removed since site has completely changed.

Paintball Journal – No longer updated.

paintballguns.net – Removed due to being a douchebag.

PaintballTimes – Kinda screwed up feed, and rarely updated?
News – http://www.paintballtimes.com/RSS2.asp

classifieds.pbbucket.com – This indexes various B/S/T feeds and mashes them together. Full content. Disclaimer: This is my site.
B/S/T – http://classifieds.pbbucket.com/rss.xml

If you have anymore, let me know so I can add it. I'll update this post as I find more feeds.

Last updated – Jun 17, 2007, Jul 11, 2007

Windows sucks at DNS caching

Here is the graph of my DNS queries in the past month via opendns

opendns2.png

Notice how the left is about 10 times taller than the right. What changed? Switching over to Linux, and that's it. I'm still doing basically the same thing as before. You can see that from the graph of unique domains.

opendns3.png

Now, it does show it as less, but nowhere near the drop off as shown in the previous graph. Which leads me to believe that either I had some program that was doing crap it shouldn't have been, or Linux is just better at caching DNS info.

If you're wondering, the complete drop off is where I switched over to linux. It took me a while to get around setting up opendns.

Amarok Jukebox

I've coded a jukebox script for amarok. It consists of a python HTTP server and an amarok control script. Unlike this one, it is not a script to add to amarok. It's completely separate. It's also only 3 python files. Also, AJAX! :)

What it does:
You visit the url, where you can then control the player, or search for songs, albums, or artists. After searching, you can then add songs to the current playlist. This can be accessed via any browser in the lan, or, if you're ports are forwarded correctly, the internet.

Using it:
You start it by running python server.py.

You use it by going to http://localhost:7000/.

Download:

Download as tar.gz
Download as ZIP

Screenshots:

Simple Weather

weather.com logo There's a site called SimpleWeather. It prides itself on being simple. Enter a zip code, and you get the weather. Go there again, and it will automatically show you the current weather for your location. It's so awesome that it can remember your location.

But being too simple has it's drawbacks, such as being able to be ripped off very quickly and easily, such as in 1 hour.

WeatherSimple ;)

It took me just about an hour to make that in 120 lines of PHP (plus about 35 lines of javascript and 20 of CSS), and I have a site that does everything this SimpleWeather does, and a little more.

Such as not being limited to a zip code, you can enter "Houston", and be given the option of choosing the exact location. It also does the requests in AJAX, though not very well.

It doesn't look as pretty, but probably another hour in Photoshop and messing with the CSS, it could be there. Nor does it have a nice domain name associated with it, because I have no plan on launching it as some site.

It also fixes the problem with not showing the High after 3 PM, by a incredibly simple fix, just show the next day's.

Really, what makes it so easy, is that weather.com basically supplies everything you need. It even gives you images and tells you which image to use. Now, it does give you some pretty annoying restrictions, like your logo can overpower the Weather Channel logo, you can't fuck with their logo, such as the 'W' in "Weather" is 1/2 of the space of the word "weather.com" from the sides, and a whole set of caching requirements.

Note: I didn't really follow any of them. I did give attribution though.

Anyways, here's the source. You need the class SimpleXML, which is the reason it's hosted on xrho instead of this site, since PHP 5 is required.

Source.zip

Update 04/19:

I've added support for permalinks, like http://xrho.com/weather/77450 from a suggestion on this TechCrunch article about SimpleWeather, which I can't believe they actually mentioned.

Access MySQL Command Line in XAMPP

Or XLMPP for that matter ;)

There are two ways to do it. Both are basically the same, but one just makes it a lot easier. We'll go over the harder one first.

First Method:

Start the command prompt, and cd to the xampp directory. It'll usually be something like:
cd ../../Program Files/xampp
if you used the installer and default install location.

Once in there, cd to the mysql bin directory.
cd mysql/bin

Now, run the command:
mysql.exe --user=root --password=
And the MySQL command line will start. If you've changed the username or password of the MySQL user, you need to change the –user= and –password= accordingly.

Second method:

Basically the same way as before, but we'll create a batch file to make it easier.

First, create a file called mysql_command.bat in the XAMPP directory.

Edit this file with Notepad or any text editor, and paste in this:

@echo off

echo Starting MySQL command line...

mysql\bin\mysql.exe --user=root --password= 

pause

Save it, and change the –user= and –password= if you've changed the user or password.

Now, run mysql_command.bat and a command prompt will show up with the MySQL command line running.

It's as easy as that.

XLMPP

XLMPP is XAMPP, but instead of Apache, it uses lighttpd.

This is from version 1.6.0a of XAMPP and lighttpd is 1.4.13 from here.

This is a very primitive release. There are of course problems with it. If you find something not listed or have a fix for it, please let me know.

Usage:
1. Run setup-xampp.bat to update configuration.
2. Run lighttpd_start.bat to start lighttpd.
3. Use the .bat files to start or stop the other components.

Issues:
1. The xampp-start.exe, xampp-stop.exe, xampp-control.exe either don't work, or don't work well. If someone wants to fix these, please do so.
2. Perl, I didn't test, but should work.
3. XAMPP is still shown everywhere instead of XLMPP. Meh.
4. No installer
5. Only for Windows
6. Doesn't work on Vista, or shouldn't, since lighttpd doesn't.
7. Setup changes lighttpd.conf even if you don't select 'Refresh XAMPP'.

Changes between XAMPP and XLMPP:
1. lighttpd directory added.
2. lighttpd_start.bat and lighttpd_stop.bat created
3. apache_start.bat and apache_stop.bat edited to start lighty instead
4. install.php edited to edit lighttpd.conf. (lines 57-68)
5. apache directory deleted.

Download:
Download XLMPP in ZIP archive (75.6 MB) This was removed for being outdated.
MD5: 362ff2b7366d3457061d3e7d8f2098a2

Download lighttpd + XAMPP->XLMPP files (3.68 MB)
MD5: 382d8ff96c83294dd40879dbcc506663
You need some version of XAMPP. Extract this archive into that folder, overwriting existing files. Run setup_xampp.bat. Start lighttpd by running lighttpd_start.bat. (Note: This lighttpd is probably outdated now)

(XAMPP + lighttpd) -> XLMPP files (10.2 KB)
MD5: 2e39627fe17c612f5880f7b93971e4ce
You need a version of XAMPP and lighttpd. Copy the lighttpd directory into the XAMPP directory. Extract this archive to the XAMPP directory, overwriting existing files. Run setup_xampp.bat. Start lighttpd by running lighttpd_start.bat. This includes the new batch files, new install file, and a new lighttpd.conf.

BB Code Parser

I've been looking for a good BBCode parser, and never really found any good ones that were small, easy to deploy, and worked properly. They were either really large, required the whole class deal, or just didn't work right. All the str_replace method ones don't account for non closed tags, so an open [b] will amke the rest of the page bold. Some of the preg_replace method ones used something like [b](.*)[/b], which something like
[b]bold[/b] not bold [b]bold again[/b]
will evaluate to
bold[/b] not bold [b]bold again
Other parsers used (.+?) which will work for multiple tags, but not nested tags, like
[b]bold[b]still bold[/b][/b]
would evaluate to
bold[b]stillbold[/b]
This is fixed by adding a while loop checking preg_match of the regex.

Anyways, I broke down and wrote my own. It correctly parses everything I've thrown at it without any vulnerabilities, like javascript: uris, that other parsers had problems with.

Demo:
Demo of BB Code Parser

Download:
Download as single txt file
Download in ZIP format

Scripts

BB Code Parser – Parses BB Code correctly without using classes.

Maple Command Generator – Will create commands to use with Maple. Can create commands for most things done in Calculus I, II, and III.

Game Script – This is an adsense ready script for a flash game site. Demo is here.

Custom Style Generator – This would create a custom style using Greasemonkey for PbNation, but since they sent me a copyright infringement notice, I took it down. You can download the source and still be able to create the styles. You need PHP, and MySQL if you want to use the Showcase feature.

Wget 2 – Basically an alternative to wget that downloads the files in parts. It's not fast, but uses a small file cache which allows you to use it on hosts that might only allow like 8 MB of cache. Written in python. There are still a couple of problems with the new version that uses XML files to denote the parts that are delaying it's release.

Simple Remote Client – A simple client that tells you your uptime, processes, netstat, screenshot, and allows you to execute commands on a host computer through a web interface. The web interface uses PHP and files, and the client is done in python. Demo. Note: I haven't used this in a while, I just use Logmein now.

Sites

DiabloOwners.com – Owners Group for Diablo Paintball Guns. Needs to have the code revamped.

OnyxOwners.com – Mainly bought to prevent one company from snatching it up. Just random cat pics now (or see all the kitties!). Available for non-profit use.

RicksNutone.com – Site written for my uncle's company. One of the first websites I made.

PbBucket.com – Paintball News site. Never really got off the ground. Based on Pligg.

Xrho.com – Mainly used for file storage and PHP 5 testing.

Free-Flash-Games.xrho.com – Flash game site. Custom script I created. Available on the scripts page

MySpace.xrho.com – Site for MySpace codes, images, and other things. Based on some script someone gave me. It seemed kinda cool.

Social Networking:

Facebook

Last.fm

twitter

Netfirms Friendly Url Fix

So I was searching around for Netfirms plus some other terms and happened across this nice thread. The third to last post shows a nice, simple fix for it, just edit your .htaccess file with this code:

# BEGIN WordPress
<IfModule mod_rewrite.c%gt;
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !index.php
RewriteRule (.*) /index.php/$1 [L]
</IfModule>
# END WordPress

It just works perfectly.