Writing Fractions in HTML
January 25th, 2010Want to write fractions in HTML?
http://changelog.ca/log/2008/07/01/writing_fractions_in_html
Want to write fractions in HTML?
http://changelog.ca/log/2008/07/01/writing_fractions_in_html
I was checking out a Wordpress template for a client who wanted to use it for one of their sites. When I came to the footer.php file, I noticed that the entire file consisted of a block of text in the following format:
eval(gzinflate(str_rot13(base64_decode('FZrHEo...'))));
I suppose that template authors do this to protect the footer ‘Designed by’ references to their own site, which is fair enough. However, as would generally be the case, I wanted to see the unencrypted PHP code to ensure that nothing malicious was happening within it. Also, in this case, a significant portion of design code was contained within this encrypted code, and I wanted to modify the design a bit.
Decryption code for this type of stuff is common, and a google search will give you ample results.
One great online decoder I found is here: http://josh.thespiffylife.com/decrypt.php
I have just come across this neat Wordpress plugin called Structured Blogging, which I think is so cool that I needed to post about it.
I was looking to change the way my personal website at simondalfonso.id.au is accessed. Currently, both http://www.simondalfonso.id.au and http://simondalfonso.id.au work separately. I wanted to change it so that the www version re-directs to the non-www version, in effect removing the www prefix (See here for some history on the topic).
The following piece of code added to a .htaccess file achieves this nicely:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
Today I was working on my band’s website, which is based on Wordpress. The site contains two different sidebars, 1 and 2. I encountered a problem when after I added the Search sidebar widget to sidebar 1, it was ‘used up’ and I could not add it to sidebar 2 also. After some brief searching and thinking, I realised what I could do.
I recently started working on a review site based on Wordpress. It was clear that the easiest way to achieve review functionality was to use the Wordpress comment system. Basically, items were added to the site as posts, and post comments would serve as reviews for the items.
Having made the decision to use the comment system, I needed to then add some extra fields to the comment form, which would accept pieces of information that were part of the reviews. I searched around briefly for some information on the web regarding how to modify the Wordpress comment system, but could not find much, hence I have written the following short account of how to add custom field to the Wordpress comment system.
I recently installed a WAMP (Windows, Apache, MySQL and PHP) setup on my copy of Windows Vista and set up an installation of Bamboo Invoice. I created an invoice to send to a client but then realised there was no PHP mail configuration. I couldn’t be bothered (and am not very expert) setting up a mail server on my computer, but it occurred to me that I could just reference the SMTP server provided by my ISP that I use for my usual email sending.
Want to add functionality to your site/application so that upon hovering over a link to a site, a thumbnail image preview of the site will appear in a dynamic pop-up? Check out http://thumbnails.iwebtool.com.
I was recently working on a project which required me to insert external, dynamically generated, HTML code into a HTML page. The dynamic HTML code was being generated with PHP, as it was extracting data from a MySQL database for display. So people would be able to paste some static code into their page and this code would reference an external file on a remote server which would return content.
There seems to be an issue with Wordpress 2.5 and greater regarding the inability of Contributors to upload media to their posts. When someone with Contributor permissions tries to upload, say, an image, they are greeted with the following message:
You do not have permission to upload files.
Well, I am not sure if this is a bug; it might be a design decision. Either way, versions of Wordpress prior to 2.5 do allow Contributors to upload media to their posts, so people who upgrade from pre 2.5 to post 2.5 might be affected by this difference.
A neat way to get around this issue is by installing the Role Manager plugin, activating it and granting contributors the right to upload files.