Advanced Search
Search Results
32 total results found
The Document Object Model (DOM) and what it's good for
If you develop for the web, you may have heard the term “Document Object Model” or “DOM” thrown around. You might have even used it without realizing it. The DOM is an object structure that represents web pages. It’s primary use is in Javascript, though it can...
The importance of "!important" in CSS
Normally, CSS works by having the most recently-declared rule take precedence. However, this isn’t always the case. Rules can be followed by the expression “!important” to give them precedence over later rules.This can come up a lot in systems like Plone, wher...
How to get rid of icons in Plone
Plone’s default style calls for an assortment of eye candy to decorate links, list items, and various other elements. Sometimes users don’t want to see these icons. Plone makes it easy to disable any of these individual elements, but sometimes tracking down al...
Case-insensitive searching in vi
By default, all searches in vi are case-sensitive. To do a case-insensitive search, go into command mode (press Escape), and type :set ignorecase. You can also type :set ic as an abbreviation.To change back to case-sensitive mode, type :set noignorecase or :se...
Customizing vi
The Unix editor vi lets you customize its behavior in a numer of ways. There are two ways to customize vi. The first way is to enter command mode by hitting Escape, then type a colon and the command as it is shown.The second way is to create a file called .exr...
Setting REMOTE_USER Apache variable in scripts
REMOTE_USER is an Apache server variable that is sometimes set on web pages. It is useful for identifying users who log in, since it can be stored in the Apache logs. It’s similar to session variables, but it’s not as easy to change.In modperl, the simplest wa...
How do I find what Perl modules are installed on my system?
Assuming you have perldoc installed, simply typing perldoc perllocal will give you a nicely-formatted detailed list of all the installed Perl modules.For a simpler list that simply prints out the module names and their version numbers, there is another alterna...
Greasemonkey and Firefox
Greasemonkey is a Firefox extension that allows user-created Javascripts to tweak Firefox in various ways. Greasemonkey scripts are like Firefox extensions, but much simpler.You can download Greasemonkey from its page on Firefox add-ons.Once you have it instal...
Resizing form text areas on web pages
Sometimes you run into forms on web pages that have text boxes that are too small for your liking. Is there any way to resize them?If you have Firefox 1.5 or higher, the answer is yes!First, install Greasemonkey. I love it, and this article will explain why yo...
Changing number of displayed news/events in Plone portlets
Find out which version of Plone you are running. Versions prior to 2.5 keep their portlet code in Zope Page Templates and can be modified easily. Plone 2.5 uses a new programming method called Views that complicates things. Versions after the 2.5.x series are ...
How can I search/replace strings in MySQL?
MySQL lets you replace all occurrences of a character or string of characters in a table with some other character or string.UPDATE table SET field1 = REPLACE(field1, 'replace_that', 'with_this'), field2 = REPLACE(field2, 'and_that', 'with_this')As an example,...
Get rid of default annoyances in MySQL Workbench
By default, if you make any changes to table rows, there is an annoying 2-step confirmation dialog when you click Apply. It also prevents you from doing many mass UPDATEs and DELETEs (this is called ‘Safe Updates’).Safe Updates is a good idea in principle, sin...
Regular expression use cases
This article is meant to be a companion to the regular expressions resources article. Instead of telling you how to do certain things, this article aims to answer, “why would I want to do that?”Character classesSyntax: [aeiou] or [0-9]Matches a single characte...
Knowledge Base Changes for March 2017
Keith Rozett updated this Knowledge Base after a 7-year hiatus.The biggest change was the ability to review existing articles.Review Articles feature Logged-in users are encouraged to check existing articles for correctness, broken links, etc. A Review Article...