Author Archive
When assigning values to an associative array in KSH, it's important to note the significance of the $ value: # typeset -A ABCD; $(( ABCD[“moi”]=0 )); $(( ABCD[“moi”]++ )); $(( ABCD[“moi”]++ )); $(( ABCD[“moi”]++ )); print ${ABCD[“moi”]}; /bin/ksh93u+: 0: not found [No such file or directory] /bin/ksh93u+: 0: not found [No such file or […]
December 6th, 2012 | Posted in NIX Posts | No Comments
Here's are an example of a random number generator in KSH or it's newer counterpart KSH93. For this post, we'll use the latest KSH from AT&T Labs: Generate a random set of integers between 0 – 256 and use them to create a random set of IP type entries: #!/bin/ksh93u+ for (( KEY=0; KEY < […]
December 6th, 2012 | Posted in NIX Posts | No Comments
The current theme does not natively support menus, but you can use the "Custom Menu" widget to add any menus you create here to the theme's sidebar. “Your theme supports 0 menus. Select which menu appears in each location” Reading further on the following pages, we can enable the menus using these functions: http://codex.wordpress.org/Function_Reference/register_nav_menu http://codex.wordpress.org/Function_Reference/register_nav_menus […]
December 2nd, 2012 | Posted in NIX Posts | 3 Comments
After enabling the wordpress WP Super Cache and the HTML Minifi plugin for the WP Super Cache plugin (That's right, a plugin for a plugin) I get empty pages on /localhost/wp/ (Or https://www.microdevsys.com/wp/) which obviously isn't so good for the readers. So i download the plugin to my local server LAMP installation and test it […]
November 30th, 2012 | Posted in NIX Posts | 1 Comment
Sure enough we baught outselves a Nexus 7 tablet and of course what's a PC, miniature or not, without some sort of web access. My router is setup with MAC address filtering which prevented initial connection unless I get the MAC address of the device to begin with. Unfortunately, Nexus 7 won't let you into […]
November 30th, 2012 | Posted in NIX Posts | 1 Comment
WP Super Cache sometimes prints out this message. Cliking on the link revealed a 403 forbidden error wehn we did try. Test your cached website by clicking the test button below. Fetching https://www.microdevsys.com/wp/ to prime cache: OK Fetching first copy of https://www.microdevsys.com/wp/: OK (1.html) Fetching second copy of https://www.microdevsys.com/wp/: OK (2.html) The pages do not […]
November 30th, 2012 | Posted in NIX Posts | No Comments
Google, I love that company but sometimes it puzzles me. I'll search for: ckeditor links.js getSelectedLink but google returns this link: http://ckeditor.com/forums/CKEditor-3.x/Tutorial-how-modify-Links-Plugin-link-cms-pages (HINT: There's nothing on that page for getSelectedLink, not even in the source code of the page) but what I needed was: https://gist.github.com/3940239 but that doesn't appear in any of the search results. […]
November 29th, 2012 | Posted in NIX Posts | No Comments
While setting up my LAMP configuration on my HTPC, I get this error while trying to replicate my hosting environment for a future site upgrade: [error] [client ::1] File does not exist: /var/www/html/wp/download-rpm-package-using-yum-without-installing, referer: http://localhost/wp/ [error] [client ::1] File does not exist: /var/www/html/wp/how-to-find-the-mac-address-of-an-ethernet-or-wireless-card, referer: http://localhost/wp/ No matter what I tried, I couldn't get the links […]
November 18th, 2012 | Posted in NIX Posts | No Comments
To find the MAC address of an ethernet or wireless card is generally straight forward for straight forward configurations. The MAC address is a unique identifier for every NIC (Network Interface Card) that uniquely identifies that card amongst all others. There's several commands that can be used for this depending on your network configuration and […]
November 11th, 2012 | Posted in NIX Posts | 1 Comment
To list the contents of an uninstalled RPM package issue one of the following: # less kmod-compat-wireless-3.5.4-1.sn.el6.elrepo.x86_64.rpm 2>&1|grep 9170 or issue: # rpm -qpl kmod-compat-wireless-3.5.4-1.sn.el6.elrepo.x86_64.rpm
November 11th, 2012 | Posted in NIX Posts | No Comments