XAMPP Slow on Windows 10

Posted by & filed under Programming.

Is XAMPP slow? I’ve used XAMPP for pretty much as long as I’ve been doing web development. It makes it trivial to get Apache, MySQL, and PHP set up.Since upgrading from Windows 7 to Windows 10 though I’ve noticed it was running much slower. I just assumed that XAMPP is slow. There was also an… Read more »

Importing into Moodle from Examview – With Images

Posted by & filed under Moodle, Programming.

Edit on 8/7/2014 Well, this script is pretty much worthless now. Not sure when it happened, but Moodle now lets you upload the entire Blackboard zip file, images included, and everything gets imported. No more messing around with the res00000 files. Going to leave the original post though. Might be handy for someone stuck using… Read more »

Web safe color list with PHP

Posted by & filed under Programming.

Needed to create a list of the web safe colors for another site of mine. Yeah, I know that web safe colors are outdated. But it was still something I wanted on the site. Typing in 216 hex color codes was not something I wanted to do though. Looking over a list of the safe… Read more »

Converting column number Excel column name

Posted by & filed under Programming.

Quick little snippet needed while working on a web app that exports to an Excel worksheet. What I needed was a way to convert column numbers to the lettering that Excel uses. So, for example, column 27 would become AA. Found a bulk of the solution at Stack Overflow. Logic wasn’t exactly what I was… Read more »

Regex to replace multiple spaces

Posted by & filed under Programming.

Normally I just don’t worry about this since I’m usually building websites and HTML takes care of merging multiple spaces. But it comes up occasionally. And since it’s just a quick regex replace, it’s pretty quick to merge multiple spaces. Piece of cake. It looks for any places that there is 2 or more spaces and… Read more »

Datatables jQuery plugin – Refresh table

Posted by & filed under Programming.

Sometimes I try and make things way too hard. One of the things that a web app I’m working on needs is the ability to do an advanced search. It’s using the outstanding DataTables plugin for jQuery which takes care of most of the work. But the way I wanted to have the advanced search… Read more »

Double click on file in Chrome developer tools

Posted by & filed under Programming.

How did I not know this already? I’m working on a web app that’s pretty Ajax heavy so I’ve got the Chrome developer tools window opened up to the Network tab so I can see what’s going on. By accident I double clicked on one of the files and it pulled it up in the… Read more »

PHP, __FILE__, and eval()

Posted by & filed under Programming.

Came across an odd error last week. And by odd, I mean that Googling for the error message only turned up one page. One of my scripts was using eval as a way to semi-protect the code. Yeah, not a great solution. But it’s not possible to install software on all of the users’ servers… Read more »