Author Archive
Simple PHP Random Image Script
There are times when working with smaller sites you need a simple method of displaying random images. This can be done in one line of text directly in your HTML and a collection of images.
Prepare the Images
The first step is to gather together the images you wish to have randomly rotated. Change all of their [...]
The Square HTML Special Character
Displaying a simple square in HTML can be done by using the code:
☐
Example: ☐
Will Desktops be Irrelevant in 3 years?
At a recent conference, European Director of Google’s online sales John Herlihy stated that in 3 years time, desktops will become irrelevant. The statement is not as farfetched as it sounds, in Japan that is already the case, where the only uses for desktops are in actual work environments, the vast majority of all other [...]
Read moreAndroid Phones predicted to outsell iPhones by year’s end
In the planning stages for your next killer-iPhone app?
You might want to rethink the platform.
There are currently 60,000 Android phones being pushed out every day, says Google’s CEO Eric Schmidt. That comes out to over 21 million phones a year, a number that may help Android overtake the iPhone by the end of the year. [...]
TED Talk on the upcoming Bing Maps
This TED Talk demonstrates the new Bing Map features that are far more advanced than any competitor. The most notable feature is the ability to stream live video that overlays the default Bing Map’s street views. This is amazing considering you could be browsing around cities and stores while at the same time seeing a [...]
Read morePublic Google Apps Calendar showing “busy”
If you are trying to publicly display a calendar created through a Google Apps account, but all events are displaying as “busy”, follow these steps to allow the public to see all event details.
1) Login as an Administrator to your Google Apps account. (http://www.google.com/a/yourdomain.com)
2) At the dashboard, click “Calendar”.
3) Under “Sharing options”, change the “Outside [...]
Read moreTwitter’s Most Common Passwords
While locking down their security, Twitter posted a list of the 370 most used passwords by their users. I highly recommend looking at the list and changing your default password (for any email client, application, computer, etc) if it’s on there.
1. 111111
2. 11111111
3. 112233
4. 121212
5. 123123
6. 123456
7. 1234567
8. 12345678
9. 131313
10. 232323
11. 654321
12. 666666
13. 696969
14. 777777
15. [...]
Pre-Selecting Form Elements
Checkboxes:
<input type="checkbox" name="test_box" value="1" checked />
<input type="checkbox" name="test_box" value="2" />
Radio Buttons
<input type="radio" name="test_radio" value="1" checked />
<input type="radio" name="test_radio" value="2" />
Dropdowns (<select>)
<select name="test_select">
<option value="1" selected>Value 1</option>
<option value="2">Value 2</option>
</select>
The Easiest Way to Select All Checkboxes with jQuery
After looking at many code samples online that were unnecessarily complex I’ve come up with my own simple method of selecting all checkboxes on a page:
$(":checkbox").attr("checked", true);
You can change the selector to target certain groups of checkboxes.
To deselect all checkboxes, simply change the “true” to “false”:
$(":checkbox").attr("checked", false);
Read moreCKEditor ReplaceAll Config
To place configuration values into the ReplaceAll command for CKEditor, use the following format:
CKEDITOR.replaceAll(function( textarea, config ){
config.toolbar_Full =
[
['Source','-','Save','NewPage','Preview','-','Templates'],
['Cut','Copy','Paste','PasteText','PasteFromWord','-','Print', 'SpellChecker', 'Scayt'],
['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
[...]
