User Profile

Collapse

Profile Sidebar

Collapse
hsheboul
hsheboul
Last Activity: Nov 17 '10, 05:11 AM
Joined: May 25 '09
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Setting a Varing Directory Structure for Static Utility Files

    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,...
    See more | Go to post

  • hsheboul
    replied to DHTML and C communication
    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.
    See more | Go to post

    Leave a comment:


  • hsheboul
    replied to Article on PHP SWIG and C
    Add me to the list of interested people!
    See more | Go to post

    Leave a comment:


  • hsheboul
    replied to Automating a Web Site Template
    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.
    See more | Go to post

    Leave a comment:


  • hsheboul
    replied to Automating a Web Site Template
    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.
    ...
    See more | Go to post

    Leave a comment:


  • hsheboul
    started a topic Automating a Web Site Template

    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...
    See more | Go to post

  • hsheboul
    replied to Varying the HTML References
    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...
    See more | Go to post

    Leave a comment:


  • hsheboul
    started a topic Varying the HTML References

    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

    ...
    See more | Go to post

  • hsheboul
    replied to loop for finding possible odd divisors
    in C
    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...
    See more | Go to post

    Leave a comment:


  • hsheboul
    replied to the new c standard
    in C
    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...
    See more | Go to post

    Leave a comment:


  • hsheboul
    replied to loop for finding possible odd divisors
    in C
    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...
    See more | Go to post

    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 ...
    See more | Go to post

    Leave a comment:


  • hsheboul
    replied to Sinlge linked List -> Delete Using One Pointer
    in C
    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 the
    Code:
    curr->next->data == key
    Once a match found, "bypass" with a code like this
    Code:
    struct node *temp = curr->next;
    curr->next = curr->next->next;
    return
    ...
    See more | Go to post

    Leave a comment:


  • hsheboul
    replied to Sinlge linked List -> Delete Using One Pointer
    in C
    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:


    ...
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...