mercredi 24 décembre 2014

How to center a heading based on a certain word

I am trying to create a header for my website, however I am trying to figure out the best to way align it.


The header is something along the lines of "Welcome to SHEP at the University of XXXX". However, I am trying to make the sentence be centered around the word "SHEP". In other words, I'm trying to make the "SHEP" portion of the sentence be dead-center on the page.


I've tried a few methods such as <h1>Welcome to <span> SHEP </span> at the University of XXX</h1> and setting the span to align center, however I can't quite get it working.





What is the meaning of ajaxify?

I've been hearing ajaxify for awhile now. However when I tried google/youtube to have it explained to me better, I really cannot grasp the nuts and bolts about it. Like, is it something that makes my page load faster? It is? Why? Is is something that my html/php codes are converted into something by ajaxify to make my page faster to load? It is? Why? Thanks for any concept you might share.





Dynamic chat system?

I'm trying to build a live wrestling/sports streaming site and would like a real time chat system embedded on each individual video page (not a comment system). The problem is though, I need each chat to be unique to that video page (ex: /page1.html is a different chat from /page2.html).


Are there any chat frameworks that already have this function? If not, where should I start my search? What language(s) would be best suited for this implementation?


Thanks SO, and Happy Holidays.





Best web design books 2014/2015 [on hold]

I'm starting to study web design, and i'm looking for some books about this area. Since i'm a web developer for almost 8 years, my real interest is not only about HTML and CSS (Which i already have some pretty good knowledge), i'm most interested about the concepts of web design, things like:



  • Pre-production.

  • Production.

  • Layout.

  • User experience.

  • Proportion and aesthetics.

  • Color harmony and theory.

  • Visual communication.

  • Images.

  • Typography.

  • Navigation.


I don't believe that there is a single book that could really cover all this contents, so feel free to provide more that one!


Thanks.


PS: The only web design book that i read so far was Head First Web Design (And it was really basic).





Which HTTP header fields must be re-sent when reusing connection?

An HTTP connection may be reused for several following requests to the same webserver. And each request contains some header fields. When the connection is reused and several requests are sent, can the header fields of the requests made before be ignored so that the client must send all header fields again (even if they haven't changed)?


What does the specification say about this?





Do HTTP paths have to start with a slash?

I have a question regarding the HTTP format. The first line of a HTTP request looks something like this:



GET /path/to/resource.txt HTTP/1.1


or in other words:



METHOD URI HTTP-VERSION


Is it required that the URI starts with the / character so that /path/to/resource.txt would be the same as path/to/resource.txt and both are valid?


And if a leading / is not required, are GET / HTTP/1.1 and GET HTTP/1.1 the same too? (two spaces between GET and HTTP/1.1)





How to input python outputs into website html automatically

How can I do this, is there even a way to do so? The data is in a csv file which I need to upload to a certain file on the website.