Thanks to Markus for pointing me to all the Apache stuff
http://bytes.com/topic/html-css/answ...-site-template
My Web site is hosted on a shared Linux hosting, that runs the Apache 2.2
I got multiple static "utility" files: CSS, JavaScripts, Impages, etc. In order to maintain a coherent and consistent structure, I put all these kind of utility files in one directory hierarchy. However,...
User Profile
Collapse
-
Setting a Varing Directory Structure for Static Utility Files
-
DHTML? I'm confused.
If you communicate HTML (which is by its definition, a *static* document layout, from its origin SGML) with any "dynamicall y generating text" executable program, only then it becomes DHTML. -
-
Thanks Markus for your quick reply. I was reading and experimenting through the SSI conditionals, and that requires some sort of "twedling" with the Apache server docs -- as some new stuff and different things that I was thinking before. For instance, the Linux environment variables need to be set/pass to the Apache.Leave a comment:
-
Thanks Markus, you've been a great saver.
My Web site is hosted on a Linux system, with Apache. But SSI is exactly what I needed; it was the best fit.
The apache docs for ssi-howto and `mod include' were not enough, that I'm currently trying to automate small changes between some pages, e.g. for the menu that differs from one page into another, where the options are dependent on the *current* active page.
...Leave a comment:
-
Automating a Web Site Template
I'm working on a web site I'm almost done with designing the appearance using pure HTML and CSS, so I'm done as an HTML template.
Most of the HTML code should be replicated into almost all my current pages and any newly created HTML page.
To copy and paste the HTML for the entire HTML pages, in order to have the same menus, footer, etc., is a tedious and less efficient.
What is the best way to replicate all... -
Thanks Dormilich for the tips. I got how the X/HTML <base> tag attribute works.
In PHP, perhaps things are different and need more background. Could you please provide a simple example as a tip and I will digg down with what you provide?
For instance,
Set base_url
what the exact PHP code of referencing a relative URL -- if you can provide a simple tip, it would be helpful and I will read...Leave a comment:
-
Varying the HTML References
Hey there,
Problem: In HTML or in server-side generated HTML, is there a way to change the inclusion of the HTML references, dynamically, e.g.
In one setting, all references are based upon one place of the included files
//my_base_web_URL/skins/images/someimage.gif
//my_base_web_URL/skins/images/somestyle.css
at some other situation, this should be changed accordingly, e.g
... -
You are right Don, I was not that precise in writing the pseudo code.
Ah, how large is that N, and how to find some info related to that N!
Two things can decide upon N:
(don't forget the problem is undecidable)
1. the hardware capabilities,
2. the time available
Check out
http://primes.utm.edu/largest.html...Leave a comment:
-
That's absolutely right! Other than Assemblers, C is the language of choice that's very close to the hardware and the operating system, of course not the MS Windows.
Also, up to this point, many new "testbed" language compilers that generate C code, and then a domain-specific optimizing C compiler is used to generate the final code.
A lot of other well-known paradigms and world-research problems make use of...Leave a comment:
-
Primality Testing
To test for a number whether it's a prime or not is "undecidabl e," and in terms of time efficiency, I think it's NP-Hard; NP stands for None-polynomial.
Odd factors? I don't exactly got what you mean by this!
In the below discussion, I'm using the Dynamic Programming technique.
To shorten the loop you are writing,
1. start with the 2 and 3 as the prime...Leave a comment:
-
One of the most interesting "point of views" I've seen on this board!
What makes a country differ than another with highly-spanned levels?
I think, yes!
Remember: it's politics, it's always politics. Politics bring economy! If I want to do it right, for this topic at least, I would write a book.
A country, its top-tier "politician s", and its economy is made of ...Leave a comment:
-
I was mistaken. It is solvable whether you want to keep track of the deleted node or just want to discard it, i.e. delete it.
First, check to see whether the matched node is the first one, separate check
Then do traversal with theCode:curr->next->data == key
Code:struct node *temp = curr->next; curr->next = curr->next->next; return
Leave a comment:
-
As much as it concerned, donbock is right in the sense of whether you want to keep track of the node that you want to discard, i.e. the deleted node, where it fills 1, 2, and 4 above. The 3rd choice need not to keep track of the deleted node.
If you don't have to keep track of the deleted node, then the *trick* as you mentioned, is easy to deal with. It's solvable! On the other hand, as weaknessforcats wrote:
...Leave a comment:
No activity results to display
Show More
Leave a comment: