hidden

A Drupal form hidden field example alvin April 11, 2011 - 2:26pm

Drupal form FAQ: How do I create an HTML hidden field in a Drupal form (a Drupal 6 or Drupal 7 form)?

Assuming that you're comfortable with creating a Drupal form, you can create a Drupal form hidden field like this:

# an html hidden field for our drupal form
$form['wizard_page'] = array(
  '#type' => 'hidden',
  '#value' => 2,
);

The "type=hidden" declaration in this Drupal form array element is what tells Drupal that we want to create a hidden form field with the given property.

How to fix the hide and seek problem with a Mac window and hidden dialog

Mac hidden window/dialog solution: One of the craziest things I see with the Mac OS X operating system from time to time is a game of "hide and seek" that you can get into with dialog windows in Mac applications. You'll hear people describe this problem something like this: "When I click on my Mac application window (like the main iTunes window), my Mac makes a 'dunk' noise (an error sound), like I'm doing something wrong by trying to click on the window.

Google Chrome browser undocumented commands

If you haven't heard about it already, the new Google Chrome browser includes a number of hidden/undocumented commands that can be entered in the browser's address bar. One of them seems to be an easter egg, the others provide information about the browser itself.

The command names seem self-explanatory, so here they are, give 'em a rip, see what they show about your Chrome browser:

How to un-hide a hidden Mac OS X window

Mac OS X "hide" FAQ: How do I "un-hide" a hidden Mac Window (hidden Mac application)?

At one point or another every new Mac OS X user learns that you can easily hide a window on Mac OS X using the [Command][h] keyboard command, but that moment of fun is usually followed by a few moments of panic and terror and the thought "How do I un-hide/show/display a hidden Mac OS X window?"

MacOS tip: How to show hidden windows

Every once in a while I get a similar message from a new Mac OS X user: Help, I've hidden a window from an application, how do I get it back? Having freaked out the first time I accidentally hid a window, I know what that feeling is like.

Fortunately bringing back a hidden window is easy, if not obvious. Just go to the Dock, and click the application icon for the window you accidentally hid. For instance, let's say you accidentally hid a Safari window. Just go to the Dock, and click the Safari icon. Instantly your hidden window comes back into view.

A Ruby script to find hidden messages in text

Here's a simple Ruby program that opens a text file, then uses a series of simple algorithms to look for hidden words in the text. For instance, it looks at only odd words, only even words, then looks at Nth characters, Nth words, and also Fibonacci words and characters.