Projects

Chillout Mixes Update

Well, I have come to the conclusion that I am going to make it easier for people to be nice who visit chilloutmixes.com. I just took the time to finally make it look reasonably good via a free template (and extensive modding). I have succumb for pretty much begging for money though. I’m going to put Google AdSense (text ads) in the left column soon and already have a PayPal donate button. There is absolutely no requirement to donate, but every cent is appreciated. Because I realize that after someone donates (or even some who chose not to donate) may not want to look at the ads and donate button anymore, there is a link in that column that will disable the ads from showing by setting a cookie on your computer. I appreciate any ad clicks or donations very much. Also, I am expecting a Clint Mansell cd within the next week that I will review....

Read More

Server Updates

Well, I can’t say i’ve been idle, but I can’t say that you really can see what I’ve been doing either. I am working on a project, but unfortunately, I cannot reveal anything about it yet (if not until it is done). Because of this, I actually set up subversion on this server finally. It’s running quite well actually. This project can take advantage of the Zip package for PHP though. This isn’t standard in php5 < 5.2, so I updated PHP tonight. It seems to have gone over without a hitch. While it might be pushing it, I really would like to update Apache to Apache 2... but I'm really worried about hosing my web server if I do that. If suddenly the web server dies, that might be why. I was listening to some music from Spyra and was quite happy, but I would have to go back and listen again to really give an opinion. Nothing else for...

Read More

Word Press Hacking

Well, as per usual, I wanted more out of my WordPress and hence got it. This time, it was searching. I don’t know when the basic searching was added to WordPress, but I really like MySQL’s FULLTEXT matching abilities, so I went to implement them on my site. NOTE: this is not a plugin and does indeed cause you to modify core files. preform at own risk. I started by copying the searchform.php out of the default template and adding it into my current template’s folder. That is for ease of typing. I then opened my template’s header file (you might put this in sidebar.php also) and added in for it to include searchform.php by writing (note i added a div so i could edit its appearance in css): I verified that my edits worked and updated my css to display that div as I wanted it. The search should currently work, although poorly. Next, I modified my database. You need to execute the following query on the database that holds your wordpress tables. (You can execute it from the sql input in phpMyAdmin if you have that set up. Note that this assumes the default prefix of wp_ that you should change as appropriate): ALTER TABLE `wp_posts` ADD FULLTEXT `realsearch` (`post_title`,`post_content`) Next was time to modify the actual search function of WordPress. This is stored in the wp-includes/classes.php and is in the get_posts() function of WP_Query. You need to do the following: locate line 416 and cut it (it comes after the comment about search pattern and reads $search = ' AND (';) add the following after line 424***: if(strlen($q['s'])>3){ $search .= " AND MATCH(`post_content`,`post_title`) AGAINST('".mysql_escape_string($q['s'])."' IN BOOLEAN MODE) "; } else { paste the line below this. add a closing brace after the closing brace of the next else (should end on line 448, add another on line 449 so you can read it) You may want to alter the lines around 580 to have it order by the match…against clause also, but you have to be aware that wordpress will add post_ to the beginning of the $q[‘orderby’] clause by default. i decided to override the $q[‘orderby’] with ‘score’ when i was matching fulltext and then editted line 585 (4 for me since i removed part) to add the direct section if needed. the place where $post_ is added was changed also to only occur if it was not matching fulltext. i tested and made all this on my new child. Her name is Sin. She is a Mac. I am somewhat ashamed to admit how nice it is to work with. More on that later though. To look at my finished file, browse over to...

Read More

Site Status and Imagine Cup

Yesterday, the entire server was offline for a few hours for expected maintenance. Sorry for any inconvienance. It appears that the server upgrade will go on at the same time as this server is running so this site shouldn’t go down again until I go to transfer it. The Microsoft people got back to me. They are going to work on the registration problem and get back to me some time during the week with when I can register. I felt pretty special receiving the email. Short version: Dear Jim, Thank you for contacting us with your question. [Insert information about problem and project status] Best Regards and Good Luck! The Imagine Cup team I took out the main part since I was wrong about that format but past that, I was pretty close. I spent yesterday setting up my laptop as Server 2003 Sp 1 (for the next 179 days, until the beta runs out) with MSSQL 2005 and C# and ASP Express editions of Visual Studio (all free! Yes, MSSQL is a trial, not the free express edition). I also want my lappy to still play music and do more normal things. Incase anyone else needs the reference, here’s a short list of things to enable and how: 3D Acceleration Open the display properties (right click on background or through control panel) Go to the troubleshooting tab Slide the hardware acceleration slider all the way to the right Sound Open Sound Properties (from the control panel) Flip the checkbox to start the sound service Hit OK and reboot I’m going to hopefully figure out my team within the next couple days and then we can decide on the project. Then comes mapping it out and setting up a loose schedule. Then coding and then testing. Let the games...

Read More

Zend Studio 5: More or Less Review

I can’t call this a full fledged review because I don’t have anything set up to really review the new features. At first glance, the improvements seem small. They are not by any means. CVS/Subversion has been integrated. If you happen to be working on a server with this set up (sourceforge uses this, all you open source people), you can check out your documents and files and do all of your editting straight through ZDE. This is as huge as the ftp support that I fell in love with originally. FTP support has even been improved: sFTP is now supported. I really like this idea for people who work on things that matter. It’s nice to at least have support for it. I don’t work on those types of things, so it’s not something I can really test. Code Folding is not as extensive as I hoped it would be. It does exactly what is on the list of new features: you can fold functions, classes, non-php sections and phpDoc sections. Well… that’s nice except we don’t always have the luxery of classes. On something like this, you still are reverting back to the indentation of the braces and putting your cursor at the end to find out how the brace started. It’s useful for just seeing the code (which is very nice when you have a bunch of non-php sections) but I would liked to have seen folding on the other braced sections also so entire if blocks or when loops could be folded but the rest stay visible. The integrated browser is a massive time-saver for most people. I personally have 2 monitors set up that I use when developing. I use my main one for ZDE and set opera up with “Reload Every:” set so I don’t even have to hit refresh. When I’m doing something smaller or am not at a location where I have the luxery of two monitors, this is a great way to organize. Actually, it still has it’s advantages of trying to analize the web site through the browser also. If you’re doing PHP development, it’s pretty likely that you are, at one time or another, working on a web site. If you’ve told zce to run your code, you get to look at the html output and try to figure out if everything is right from there. You no longer do. You can change the view of your debug output to show html now. Very nice. The find file and find resource have limited uses because they restrict themselves to what is open. This is great when you have an entire project open at once, but I personally like...

Read More

Zend Studio 5

It’s officially out of beta! Latest and greatest version of Zend Studio is available. You can go and see a list of the enhancements on the linked page. I’ll download it and try it out later and then write up whether someone whose liscense ran out should re-up. (I love it a lot in version 4, so I can only hope they can amaze me with 5. They do have code folding…) Go try it, you PHP developer...

Read More