Now and again, I’ll enable some sort of feature in CRiSP and not be sure either what I pressed or what I enabled.
If you ever find yourself with the big, blinking, square, cursor that overwrites and does not insert text just press Alt-I.
Principal Software Engineer/Architect, motorcyclist, drummer, and artist
Now and again, I’ll enable some sort of feature in CRiSP and not be sure either what I pressed or what I enabled.
If you ever find yourself with the big, blinking, square, cursor that overwrites and does not insert text just press Alt-I.
If you have ever wanted to use a SWF generated in Captivate in another Flash application, here is a good article on how to get Captivate to talk to a hosting Flash app.
Let’s say you have a table and you want to know how many rows have the same e-mail adress.
SELECT count(*), email FROM email_list GROUP BY email HAVING count(*)>1 ORDER BY count(*) DESC;
This assumes that you are creating the repo on your local drive.
First, create the directory in which you’ll store your repo.
Then, use svnadmin to create the repository in that directory:
svnadmin create /path/to/directory/
The typical convention is to set up an initial directory structure as follows:
/trunk
/branches
/tags
To do so, do the following:
mkdir svntemp
cd svntemp
mkdir trunk branches tags
svn import -m ‘Import of initial directory structure’ file:///path/to/repo
Now cd to whatever working directory into which you want to check out your repo and do a:
svn co file:///path/to/repo /name_of_dir_to_checkout_to
This online utility will let you convert a set of vcards file into either a .csv, or an LDIF file that youcan use to import into Thunderbird or other mail programs.
Here are a few links to some guides to writing HTMLemail newsletters.
http://www.sitepoint.com/article/code-html-email-newsletters/
Anyone who has used it knows that the default styling for the HTML <sup> tag leaves a lot to be desired. The biggest is that it modifies the line-height of the line on which it it rendered.
Here is some CSS that fixes that behavior:
sup
{
height: 0;
line-height: 1px;
position: relative;
top: -0.6em;
vertical-align: baseline !important;
vertical-align: bottom;
}
If you have ever wanted to recursively search through all of the files in a directory for a specific string, here is the bash command to do it:
find . | xargs grep ‘string’ -sl
Below is the mirrored content should the page no longer be available.
# ---------------------------------------------------------------------
# Ignore all the .txt files in the /trunk/Blah/ directory
# ---------------------------------------------------------------------
# Go to the directory
cd trunk/Blah/ # The directory with the files
# Start editing the properties for the current directory
svn propedit svn:ignore . # Opens an editor (SVN_EDITOR, EDITOR)
# Add the following value with a new line, save, and exit:
*.txt
# See that things worked
svn propget svn:ignore . # So you can see the properties
svn status --no-ignore # You should see an 'I' next to the ignored files
# Commit
svn commit -m "New Ignores" # You must commit the new property change
# ---------------------------------------------------------------------
# Ignore a single file secret.txt in the /trunk/ directory
# ---------------------------------------------------------------------
# Go to the directory
cd trunk/
# Add just the single file to the current directories ignore list (like above)
# Note the dot at the end of the command is important
svn propset svn:ignore secret.txt .
# See that things worked
svn propget svn:ignore . # Notice the single file was added to the list
svn status --no-ignore # You should see an 'I' next to the ignored files
# Commit
svn commit -m "Its secret" # You must commit the new property change
If you have ever used a workstation whereby you login through remote access, you’ll notice that you cannot shut down the machine (even if you are able to boot it remotely).
If you want to shut it down simply run the following command at a command prompt:
%systemroot%system32shutdown.exe -s -t 0