Problem: You’ve added JQuery dialog boxes to your WordPress page, and you added the following to $(document).ready(function()… in your JQuery file. $(“#My_Dialog”).dialog({ autoOpen: false, modal: true, buttons: { Cancel: function() {$(this).dialog(“close”);}, Save: function() {$(this).dialog(“close”);} },}); Now your Chrome debugger complains about: Uncaught TypeError: $(…).dialog is not a function Reason: Your JQuery file needs /wp-includes/js/jquery/ui/dialog.js which… Continue reading WordPress JQuery: “Uncaught TypeError: $(…).dialog is not a function”
Category: Bits & Bytes
Word 2010 VBA Restrictions
Restrictions found in VBA for Word 2010 Cannot create subclasses of classes. Can pass static arrays to functions and procedures, but not methods. Get a compile error. Cannot delete paragraph or table styles from the template using style.Delete. Get run-time error. Cannot add table styles to the template. Get run-time error when code hits template.Style.baseStyle… Continue reading Word 2010 VBA Restrictions
Windows Symbolic Links
The following creates a symbolic link to a directory: mklink /j <link_folder> <path_to_real_folder> where link_folder is C:\folder\folder2 where folder2 does not exist path_to_real_folder is D:\folder3\folder4
Apple Hidden Files
Execute from a Terminal window: Show hidden files defaults write com.apple.finder AppleShowAllFiles YES killall Finder Hide hidden files defaults write com.apple.finder AppleShowAllFiles NO killall Finder
MAC Word 2011 – Customize Menu
Word 2011 for MAC New tabs cannot be added to the ribbon, but custom toolbars and buttons can be added. To use custom images: Create a 24 x 24 PNG. Save the desired image onto the clipboard. Right click on the toolbar button and choose Properties Click the little triangle next the existing button face… Continue reading MAC Word 2011 – Customize Menu
Comparing Directories
$my_dir = Get-ChildItem -Recurse -path X:\ $my_other_dir = Get-ChildItem -Recurse -path W:\ Compare-Object -ReferenceObject $my_dir -DifferenceObject $my_other_dir
UNIX Shortcuts
grep -r WORD . Recursive search for &quo;WORD&quo; from current directory down. find FILENAME . Recursive search for &quo;FILENAME&quo; from current directory down. sudo COMMAND Run &quo;COMMAND&quo; as super user. ⌘ On a non Apple Keyboard the command Key is the same as the Windows key. Also is the ALT key Command+Shift+4 Takes a screenshot… Continue reading UNIX Shortcuts
Windows Shortcuts
A quick reminder for the times you’ve been using a MAC or UNIX system too long. Ctrl + Alt + PrintScreen Puts entire desktop (content of all monitors) in paste buffer. Alt + PrintScreen Puts current window or dialog box in paste buffer. Ctrl + C Copy selected object into paste buffer. Ctrl + V… Continue reading Windows Shortcuts