Re: split an html file

2014-04-22 Thread Scott Ferguson
On 22/04/14 03:08, Mike McClain wrote:
> Hi,
> My brother Rick, a windrider, put together a webpage,
> http://www.photographers1.com/Sailing/NauticalTerms&Nomenclature.html
> about sailing and wind surfing that has grown too large and should be
> split into smaller sections to reduce load time.


First you 'should' fix the code[*1], replace the tables with a
non-deprecated structure, trim those keywords, *and* move all that CSS
to an external rule sheet.
If you are amongst those that insist on using tables (sigh):-
$ cp NauticalTerms&Nomenclature.html NauticalTerms&Nomenclature_0.html
NauticalTerms&Nomenclature_1.html
$ nano NauticalTerms&Nomenclature_0.html # remove the tables from the
last half of the page.
$ nano NauticalTerms&Nomenclature_1.html # remove the tables from the
first half of the page.
$ sed to rewrite your links in the new page 0 and page 1
then delete the original page and use KLinkStatus to check your entire
site for deadlinks.

I'd split that page into 4 pages, so readers don't need to page down too
often - and moving all that inline CSS into an external style sheet will
reduce repetitive code *and* cut hundreds of lines from the page load.

The whole job should take about 1/2 an hour (recode and test).


> Can anyone point me to any tools that would automate the process of
> fixing all the links?

sed
KLinkStatus.


> Thanks,
> Mike
> 
> --
> In theory, there is no difference between theory and practice.
> In practice, there is.  - Yogi Berra
> 
> 

Kind regards

[*1] I've cleaned that code for you - but you really should get rid of
those stinking tables - dynamic element positioning is never "too hard"
*unless* you are 100% positive you'll never have someone visiting your
site whose screen isn't the size you statically coded for (or are using
a mobile device).
The code is too large for paste.debian.net, you can download it here:-
103.1.185.162/surfnom.html


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/53574cd6.7050...@gmail.com



Re: split an html file

2014-04-21 Thread Jerry Stuckle

On 4/21/2014 8:36 PM, Tony Baldwin wrote:

On Mon, Apr 21, 2014 at 03:42:36PM -0700, Go Linux wrote:

On Mon, 4/21/14, Mike McClain  wrote:

  Subject: split an html file
  To: debian-user@lists.debian.org
  Date: Monday, April 21, 2014, 12:08 PM

  Hi,
  My brother Rick, a windrider, put together a
  webpage,
  http://www.photographers1.com/Sailing/NauticalTerms&Nomenclature.html
  about sailing and wind surfing that has grown too large and
  should be
  split into smaller sections to reduce load time.
  Can anyone point me to any tools that would
  automate the process of
  fixing all the links?
  Thanks,
  Mike



That page is beyond resuscitation IMO.  Should be totally reorganized from the 
ground up with multiple pages and a well thought out navigation.


After looking at the page,
I'd seriously consider getting all that data into a DB and writing
something in php to manage it, but that's me.
tony



Tony,

I agree that would be the way I would go, also.  However, it also 
depends on the skills the OP has (or can afford).


It wouldn't be hard for someone who knows what they're doing to serve 
everything from a database.  But it would be very dangerous for someone 
who doesn't know what they're doing (which includes a *lot* of "PHP 
developers") to do it and ensure integrity of the database from hackers.


Jerry


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Archive: https://lists.debian.org/5355c0e7.4010...@attglobal.net



Re: split an html file

2014-04-21 Thread Tony Baldwin
On Mon, Apr 21, 2014 at 03:42:36PM -0700, Go Linux wrote:
> On Mon, 4/21/14, Mike McClain  wrote:
> 
>  Subject: split an html file
>  To: debian-user@lists.debian.org
>  Date: Monday, April 21, 2014, 12:08 PM
>  
>  Hi,
>      My brother Rick, a windrider, put together a
>  webpage,
>  http://www.photographers1.com/Sailing/NauticalTerms&Nomenclature.html
>  about sailing and wind surfing that has grown too large and
>  should be
>  split into smaller sections to reduce load time.
>      Can anyone point me to any tools that would
>  automate the process of
>  fixing all the links?
>  Thanks,
>  Mike
>  
> 
> 
> That page is beyond resuscitation IMO.  Should be totally reorganized from 
> the ground up with multiple pages and a well thought out navigation.

After looking at the page,
I'd seriously consider getting all that data into a DB and writing
something in php to manage it, but that's me.
tony
-- 
https://tonybaldwin.info
art, music, software by me, tony
3F330C6E


signature.asc
Description: Digital signature


Re: split an html file

2014-04-21 Thread Go Linux
On Mon, 4/21/14, Mike McClain  wrote:

 Subject: split an html file
 To: debian-user@lists.debian.org
 Date: Monday, April 21, 2014, 12:08 PM
 
 Hi,
     My brother Rick, a windrider, put together a
 webpage,
 http://www.photographers1.com/Sailing/NauticalTerms&Nomenclature.html
 about sailing and wind surfing that has grown too large and
 should be
 split into smaller sections to reduce load time.
     Can anyone point me to any tools that would
 automate the process of
 fixing all the links?
 Thanks,
 Mike
 


That page is beyond resuscitation IMO.  Should be totally reorganized from the 
ground up with multiple pages and a well thought out navigation.

 



--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/1398120156.43361.yahoomailba...@web163404.mail.gq1.yahoo.com



Re: split an html file

2014-04-21 Thread Francesco Ariis
On Mon, Apr 21, 2014 at 10:08:44AM -0700, Mike McClain wrote:
> Hi,
> My brother Rick, a windrider, put together a webpage,
> http://www.photographers1.com/Sailing/NauticalTerms&Nomenclature.html
> about sailing and wind surfing that has grown too large and should be
> split into smaller sections to reduce load time.
> Can anyone point me to any tools that would automate the process of
> fixing all the links?
> Thanks,
> Mike
> 

Hi Mike,
do you know any programming/scripting language? Getting your page
in some sort of XML could do wonders and allow you more flexibility
than a one-size-fits-all tool. There are probably some languages which are
better suited to the job, but anything with a working HTML4 parser will do
-F


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/20140421175745.ga14...@x60s.casa



Re: split an html file

2014-04-21 Thread Go Linux

On Mon, 4/21/14, Mike McClain  wrote:

 Subject: split an html file
 To: debian-user@lists.debian.org
 Date: Monday, April 21, 2014, 12:08 PM
 
 Hi,
     My brother Rick, a windrider, put together a
 webpage,
 http://www.photographers1.com/Sailing/NauticalTerms&Nomenclature.html
 about sailing and wind surfing that has grown too large and
 should be
 split into smaller sections to reduce load time.
     Can anyone point me to any tools that would
 automate the process of
 fixing all the links?
 Thanks,
 Mike
 
That page is beyond resuscitation IMO.  Should be totally reorganized from the 
ground up with multiple pages and a well thought out navigation.



--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/1398102326.97641.yahoomailba...@web163405.mail.gq1.yahoo.com



split an html file

2014-04-21 Thread Mike McClain
Hi,
My brother Rick, a windrider, put together a webpage,
http://www.photographers1.com/Sailing/NauticalTerms&Nomenclature.html
about sailing and wind surfing that has grown too large and should be
split into smaller sections to reduce load time.
Can anyone point me to any tools that would automate the process of
fixing all the links?
Thanks,
Mike

--
In theory, there is no difference between theory and practice.
In practice, there is.  - Yogi Berra


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/20140421170844.GD18235@playground