Deprecated: Return type of Requests_Cookie_Jar::offsetExists($key) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home4/codedogs/public_html/Codedogs/wp-includes/Requests/Cookie/Jar.php on line 63

Deprecated: Return type of Requests_Cookie_Jar::offsetGet($key) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home4/codedogs/public_html/Codedogs/wp-includes/Requests/Cookie/Jar.php on line 73

Deprecated: Return type of Requests_Cookie_Jar::offsetSet($key, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home4/codedogs/public_html/Codedogs/wp-includes/Requests/Cookie/Jar.php on line 89

Deprecated: Return type of Requests_Cookie_Jar::offsetUnset($key) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home4/codedogs/public_html/Codedogs/wp-includes/Requests/Cookie/Jar.php on line 102

Deprecated: Return type of Requests_Cookie_Jar::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home4/codedogs/public_html/Codedogs/wp-includes/Requests/Cookie/Jar.php on line 111

Deprecated: Return type of Requests_Utility_CaseInsensitiveDictionary::offsetExists($key) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home4/codedogs/public_html/Codedogs/wp-includes/Requests/Utility/CaseInsensitiveDictionary.php on line 40

Deprecated: Return type of Requests_Utility_CaseInsensitiveDictionary::offsetGet($key) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home4/codedogs/public_html/Codedogs/wp-includes/Requests/Utility/CaseInsensitiveDictionary.php on line 51

Deprecated: Return type of Requests_Utility_CaseInsensitiveDictionary::offsetSet($key, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home4/codedogs/public_html/Codedogs/wp-includes/Requests/Utility/CaseInsensitiveDictionary.php on line 68

Deprecated: Return type of Requests_Utility_CaseInsensitiveDictionary::offsetUnset($key) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home4/codedogs/public_html/Codedogs/wp-includes/Requests/Utility/CaseInsensitiveDictionary.php on line 82

Deprecated: Return type of Requests_Utility_CaseInsensitiveDictionary::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home4/codedogs/public_html/Codedogs/wp-includes/Requests/Utility/CaseInsensitiveDictionary.php on line 91

Warning: Cannot modify header information - headers already sent by (output started at /home4/codedogs/public_html/Codedogs/wp-includes/Requests/Cookie/Jar.php:15) in /home4/codedogs/public_html/Codedogs/wp-includes/feed-rss2.php on line 8
Bits & Bytes – Codedogs http://codedogs.com Software Without Jargon Wed, 31 Mar 2021 03:12:29 +0000 en-US hourly 1 https://wordpress.org/?v=6.0.8 WordPress JQuery: “Uncaught TypeError: $(…).dialog is not a function” http://codedogs.com/wordpress-jquery-uncaught-typeerror-dialog-is-not-a-function/ Wed, 31 Mar 2021 03:03:15 +0000 http://codedogs.com/?p=323 Continue reading WordPress JQuery: “Uncaught TypeError: $(…).dialog is not a function”]]> 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 is not loaded.

Solution:

To add dialog.js as a dependency to your JQuery file.

By adding jquery-ui-dialog to the array, your file now depends on it. Now when you click on View Source, dialog.js is included and the error is gone.

]]>
Word 2010 VBA Restrictions http://codedogs.com/word-2010-vba/ Tue, 29 Nov 2016 19:40:08 +0000 http://codedogs.com/?p=243 Continue reading 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 = myStyle.baseStyle.
  • Cannot add paragraph styles to the template. No error, but setting of template.Style.NextParagraphStyle is ignored.
]]>
Windows Symbolic Links http://codedogs.com/windows-symbolic-links/ Tue, 26 Apr 2016 19:48:14 +0000 http://codedogs.com/?p=223 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 http://codedogs.com/apple-hidden-files/ Tue, 20 Oct 2015 20:41:29 +0000 http://codedogs.com/?p=158 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 http://codedogs.com/mac-word-2011-customize-menu/ Tue, 18 Aug 2015 21:37:43 +0000 http://codedogs.com/?p=151 Continue reading 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:

  1. Create a 24 x 24 PNG.
  2. Save the desired image onto the clipboard.
  3. Right click on the toolbar button and choose Properties
  4. Click the little triangle next the existing button face
  5. Select Paste from Image
]]>
Comparing Directories http://codedogs.com/comparing-directories/ http://codedogs.com/comparing-directories/#respond Mon, 09 Mar 2015 01:46:44 +0000 http://codedogs.com/?p=142 $my_dir = Get-ChildItem -Recurse -path X:\
$my_other_dir = Get-ChildItem -Recurse -path W:\
Compare-Object -ReferenceObject $my_dir -DifferenceObject $my_other_dir

]]>
http://codedogs.com/comparing-directories/feed/ 0
UNIX Shortcuts http://codedogs.com/unix-shortcuts/ http://codedogs.com/unix-shortcuts/#respond Sun, 08 Feb 2015 01:50:26 +0000 http://codedogs.com/?p=136 Continue reading 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 of portion of the screen.
]]>
http://codedogs.com/unix-shortcuts/feed/ 0
Windows Shortcuts http://codedogs.com/windows-shortcuts/ http://codedogs.com/windows-shortcuts/#respond Sat, 07 Feb 2015 20:41:18 +0000 http://codedogs.com/?p=132 Continue reading 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
Pastes contents of paste buffer into insertion point or replaces selection.
Alt + Tab
Cycles through all the windows on the desktop clockwise.
Alt + Shift + Tab
Cycles through all the windows on the desktop counter clockwise.
Crtl + Alt + Delete
The last resort or to start the Task Manager.
]]>
http://codedogs.com/windows-shortcuts/feed/ 0