Search and Replace Anchor Href using Javascript
I have a site that is under development and it was made really badly so I needed a quick way to replace all anchors on page to the relevant path.
The …
Read Article →In-depth guides, insights, and best practices for modern software engineering
I have a site that is under development and it was made really badly so I needed a quick way to replace all anchors on page to the relevant path.
The …
Read Article →I was trying to install Microsoft SQL Server Management Studio Express (what a long name) on a machine and kept getting error 29506 right near the end …
Read Article →It is quite easy to use javascript to swap between divs or any other html dom elements.
Using the function below you can pass the id of the element to …
Below is a Mail class I created in PHP, it requires 4 arguments on initiation of the class via the constructor and uses the method ->send() to send …
Read Article →Oh my goodness, this can be an annoying issue with iTunes.
The problem is: iTunes will restore itself or maximize itself all the time every 20 or so …
Read Article →Ever needed to find & replace the newline character in a large excel document?
This comes up when you’ve imported data from a CSV or …
Read Article →I just finished adding an export xls (excel) export feature to a web application.
I used the PHPExcel Class from CodePlex, its really great to work …
Read Article →Getting “Parse error: syntax error, unexpected T_IF” in PHP?
Check if the preceding line ends with a ;
This is one of the most common PHP …
Read Article →http://www.theworstwebsite.com/ – beware, alert boxes coming!
Read Article →This is how to add text leading using Actionscript 2 for Flash.
var txtFormat:TextFormat = new TextFormat();
txtFormat.leading = 5; // change this to …
Read Article →
SELECT * FROM tablename
INSERT INTO tablename (col1, col2, col3,..) VALUES (val1, val2, val3,...)
UPDATE …
Read Article →
If you need to connect to a mysql database from php you can do it like this:
<?php
$DBH = 'localhost';
$DBU = 'root';
$DBPWD = …
Read Article →
I have a question for anyone that can answer it:
I create an .htaccess file in the root of a subdomain, but if I enter either of these two lines I get …
Read Article →If you get an error message similar to this one when trying to run Quake 4…
Fatal Error: could not create destination file C:/Program Files (x86)/id …
Read Article →I was trying to import a massive csv dataset into phpMyAdmin and it kept throwing error:
Invalid field count in csv input on line 1
This is quite …
Read Article →This is somewhat of a debatable topic, but it has come up a lot of times without any real final clarity, so I will try and cover it all.
Lets begin by …
Read Article →CSS allows you to add a border to almost all html elements. This is one of many CSS techniques you can use to enhance your web pages, along with using …
Read Article →What the heck is..
uncaught exception: [Exception… “Could not convert JavaScript argument arg 0 [nsIDOMHTMLDivElement.appendChild]” …
Read Article →Getting this error in ActionScript 3?
Error 1046: Type was not found or was not a compile-time constant: Event.
You need to import the Event class: …
Read Article →I needed to work out a date range according to the date 3weeks away from the current date.
After a bit of thinking, I found that it’s actually …
I have been working on a project where I need to select a date range starting today and ending a month from now, so the user cannot select anything in …
Read Article →The hitTest method in ActionScript 2 is how you check whether the mouse (or another object) is overlapping a movie clip. It’s essential for …
Recently I checked my website stats and saw I had a few hits from “127.0.0.1:4664” and wondered to myself, what the heck is that? Am I …
Read Article →If you want to only show numeric characters in a textfield in Flash ActionScript 2, you can use the restrict property:
myTextField.restrict = …