Search Results

Showing results 1 to 40 of 64
Search took 0.01 seconds.
Search: Posts Made By: cfajohnson
Forum: Shell Scripting 19 Days Ago
Replies: 1
Views: 460
Posted By cfajohnson
Put the function call into the background:


timer "00:00:10" &


Please put code inside tags, as I have done above and below, and indent it for legibility.
Forum: HTML and CSS 19 Days Ago
Replies: 3
Views: 373
Posted By cfajohnson
First validate your page. There is currently at least one problem:


Sorry, I am unable to validate this document because on line 154 it contained one or more bytes that I cannot interpret as...
Forum: HTML and CSS 30 Days Ago
Replies: 8
Views: 400
Posted By cfajohnson
XHTML cannot be served as XHTML because the most-used browser wouldn't know what to do with it. IE will offer to download the file is it is served as XHTML.

If it is not served as XHTML, then all...
Forum: HTML and CSS 31 Days Ago
Replies: 4
Views: 360
Posted By cfajohnson
It would help if you posted a URL.
Forum: HTML and CSS 31 Days Ago
Replies: 8
Views: 400
Posted By cfajohnson
Note that w3schools has nothing to do with the W3 Consortium, and much of its information is inaccurate.
Forum: HTML and CSS 33 Days Ago
Replies: 8
Views: 400
Posted By cfajohnson
Start with:


<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<title>YOUR PAGE TITLE HERE</title>
<link href=""...
Forum: Shell Scripting 33 Days Ago
Replies: 2
Views: 620
Posted By cfajohnson
Please use CODE tags.



Why two cats?


cat $fname > output.dat
Forum: HTML and CSS Oct 7th, 2009
Replies: 7
Views: 535
Posted By cfajohnson
That even more bizarre. Does it work anywhere?
Forum: Shell Scripting Oct 7th, 2009
Replies: 1
Views: 595
Posted By cfajohnson
You are missing ;; before 2) on line 168 or thereabouts and in many other places.
Forum: HTML and CSS Oct 7th, 2009
Replies: 7
Views: 535
Posted By cfajohnson
There is no need to comment out the style rules, and hasn't been since Netscape 4.



Where did you come up with that? It's nonsense! Did you even try it?
Forum: Shell Scripting Oct 4th, 2009
Replies: 2
Views: 737
Posted By cfajohnson
sed 's/(see: \([^)]*\))/[[\1]]/'
Forum: HTML and CSS Oct 4th, 2009
Replies: 7
Views: 535
Posted By cfajohnson
a:hover
{
background-color: blue;
color: white;
}
Forum: HTML and CSS Oct 4th, 2009
Replies: 8
Views: 458
Posted By cfajohnson
I still don't see a white line (1900px window). (How can there be one, the background is white.)
Forum: HTML and CSS Oct 4th, 2009
Replies: 3
Views: 524
Posted By cfajohnson
A <p> element cannot contain another block-level element. A <p> is implicitly ended when another block-level element is encountered. Add the colours to the <ol>s directly.
Forum: HTML and CSS Oct 4th, 2009
Replies: 8
Views: 458
Posted By cfajohnson
(I don't see a white line).

Don't use frames; use CSS.
Forum: Shell Scripting Oct 4th, 2009
Replies: 2
Views: 691
Posted By cfajohnson
password=boom
n=0
for n in 1 2 3
do
read -ep "Code: " code
[ "$code" = "$password" ] && break
done

if [ "$code" = "$password" ]
then
Forum: HTML and CSS Sep 27th, 2009
Replies: 2
Views: 254
Posted By cfajohnson
Why do you want it in XHTML? It serves no function, as it must be served as HTML or Internet Explorer will not be able to do anything with it.
Forum: HTML and CSS Sep 27th, 2009
Replies: 2
Views: 396
Posted By cfajohnson
Before you do anything else, check with http://validator.w3.org that your code is correct. If it isn't, fix it, then post a URL here if there are still problems.
Forum: Shell Scripting Sep 27th, 2009
Replies: 2
Views: 585
Posted By cfajohnson
Note that the -i option to sed is not standard, and many versions do not have it.

Those that do either require or can take an argument with a backup suffix to save the original file -- a good...
Forum: Shell Scripting Sep 23rd, 2009
Replies: 6
Views: 763
Posted By cfajohnson
They are three lines because the backslash is not the last character on the line; that's a carriage return.

If the backslash were the last character on the line, grep would still read it as three...
Forum: Shell Scripting Sep 23rd, 2009
Replies: 6
Views: 763
Posted By cfajohnson
Search for what is actually there: a backslash followed by a carriage return.
Forum: Shell Scripting Sep 23rd, 2009
Replies: 6
Views: 763
Posted By cfajohnson
It works for me.

Did you create the file on a Windows box? If so, there will be a carriage return before the newline, and the backslash will therefore not be the last character on the line.
Forum: Shell Scripting May 28th, 2009
Replies: 2
Views: 1,309
Posted By cfajohnson
case $1 in
-o) shift ;;
*) set -- /dev/stdin ;;
esac

while IFS= read -r
do
: do whatever with "$line"
done < "$1"
Forum: HTML and CSS May 27th, 2009
Replies: 19
Views: 1,364
Posted By cfajohnson
MSIE doesn't understand XHTML if it is served properly; if it is served as text/html (so that IE will display it) you lose whatever benefit there might be to XHTML.
Forum: *nix Software May 24th, 2009
Replies: 2
Solved: unix PS1
Views: 833
Posted By cfajohnson
What shell are you using?

In bash:


PS1='\[\e[[7m\]${HOSTNAME}/${PWD}\[\e[0m\]'


Adjust the 7 to whatever you want, e.g., 1;31 or 1;37;40m.
Forum: HTML and CSS May 24th, 2009
Replies: 19
Views: 1,364
Posted By cfajohnson
Why is it XHTML, and why is it transitional?



Why do you have:


<div id="navigation">
<div id="nav-container">
...
Forum: Shell Scripting May 24th, 2009
Replies: 2
Code Snippet: Spinner
Views: 5,198
Posted By cfajohnson
If you want to slow down the loop increase the argument to sleep, don't call an external command for integer arithmetic.

icon_num=$(( $icon_num + 1 ))

That's a very complicated script for a...
Forum: Shell Scripting May 24th, 2009
Replies: 2
Views: 2,946
Posted By cfajohnson
echo "Syntax: sln <start[-end]> < file > [ <file> ]"

'for file in $*' will fail if any filenames contain spaces. Use:

for file in "$@"
Forum: HTML and CSS Mar 30th, 2009
Replies: 32
Views: 3,144
Posted By cfajohnson
Can you provide screenshots that demonstrate that?

If there is a problem, it should be fixable with CSS.



No, you don't. That's probably what is causing your problems.
Forum: HTML and CSS Mar 26th, 2009
Replies: 2
Views: 676
Posted By cfajohnson
The first step is always to validate your page and correct any HTML and CSS errors. Your page has 551 HTML errors:

Errors found while checking this document as XHTML 1.0 Strict!
Result: 551...
Forum: HTML and CSS Mar 25th, 2009
Replies: 32
Views: 3,144
Posted By cfajohnson
Is this what you want: http://cfaj.freeshell.org/testing/MidiMagic.html?
Forum: HTML and CSS Mar 23rd, 2009
Replies: 2
Views: 357
Posted By cfajohnson
Forum: HTML and CSS Mar 23rd, 2009
Replies: 5
Views: 1,009
Posted By cfajohnson
Use Server-Side Includes, e.g.:


<!--#include file="page.html" -->


Or:


<!--#include file="header.html" -->
Forum: HTML and CSS Mar 23rd, 2009
Replies: 32
Views: 3,144
Posted By cfajohnson
They will if you do it correctly.



Do you have an example? Please post a URL.



They certainly do!
Forum: HTML and CSS Mar 23rd, 2009
Replies: 15
Views: 1,132
Posted By cfajohnson
No tag can contain another tag. An element can contain another element. Elements are delimited by tags.

The P element cannot contain any block-level element, and since its closing tag is optional,...
Forum: HTML and CSS Mar 13th, 2009
Replies: 32
Views: 3,144
Posted By cfajohnson
Of course! That's what tables are for.



In fact, it can work with fairly complicated layouts.
Forum: HTML and CSS Mar 10th, 2009
Replies: 32
Views: 3,144
Posted By cfajohnson
Yes, so am I.



Me, too.



If you use absolute measures they cannot expand.
Forum: HTML and CSS Mar 10th, 2009
Replies: 15
Views: 1,132
Posted By cfajohnson
Lists are block-level objects, but they can only contain <li> elements; <li> elements are also block-level, and they can contain anything.
Forum: HTML and CSS Mar 9th, 2009
Replies: 32
Views: 3,144
Posted By cfajohnson
Almost all browsers (including IE since 6) do comply with most of the standards. It is not hard to write CSS that works in all browsers. It means avoiding some things that IE doesn't do correctly,...
Forum: HTML and CSS Mar 6th, 2009
Replies: 15
Views: 1,132
Posted By cfajohnson
Apart from being semantic nonsense, it requires unnecessarily bloated CSS to style the lists.
Showing results 1 to 40 of 64

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC