web-development

Creating a custom forum, help with building a query that counts posts in a categories etc.

So my database setup is fairly simple. I have a forum_cat table (a forum category) and forum_post table. The forum_post has a field fk_forum_cat_id which ties each forum post to a category. Each forum_post also has a field fk_parent_forum_post_id which basically says it belongs to an original post. Further more, there is a date_added...

How can I add a "Vary: Accept-Encoding" header to a file on Amazon S3

In Amazon's S3 Management Console, I'm trying to add metadata, with the key being "Vary" and the value being "Accept-Encoding". This seems to work, I hit save. But when I hit refresh it disappears, as if Amazon rejected the tag. The file in question is a gzip compressed javascript file. My other headers are working and added properly ...

which scripting language in the url part use : and ? to request or get info from the server side?

familiar with the example below? eg: http://www.example001.com/browse:tags?word=red elaborate further using the : and ? and = :xxxx?xxxx=xxxx and suggestions on scripting language that can combine together with regular expressions and tag with @ or hash etc thanks ...

robots.txt file dissallow option

I am modifying my robots.txt file as follows: I want to prevent the robots from accessing urls that end with /new My question is: is this the correct pattern to use to disallow access to all urls terminating in '/new' ? Disallow: /*/new ...

Only the first message is delivered to the server

I'm trying to poll a DB on client side and send the result over HTTP to a server which collects data. Unfortunatly only the first message is delivered. I'm new to spring-integration (1.0.3) What is wrong with my configuration? Clients config: <si:channel id="msgChannel"> <si:queue capacity="1" /> </si:channel> <si:inbound-channel...

Rationale for separate HTML template files in Scala webapps?

Everyone who's done any web application development in Scala knows that you can use any existing Java web framework, or you can use Lift. Something that all of these frameworks have in common is that they all require two or more files to generate a page: an HTML template of some kind, and one or more classes to provide associated logic...

USB device on website

Is it possible to use a USB device peripheral that I have created directly on a website. I am not sure how to start, but for example, on websites like connect.garmin.com they allow you to connect your Sat Nav and then transfer the data to the website after you have downloaded a application and restarted your browser. What do I need t...

How to prevent our site from visitor access via domain masking or url masking

Example real site http://stackoverflow.com/ URL Masking http://masking.com/stackoverflow Question How to switch the URL masking http://masking.com/stackoverflow to original URL http://stackoverflow.com/ Let me know how can be done in PHP or JavaScript ...

question about sitemap files and their content for a dynamic website

I am writing a set of functions to generate a sitemap for a website. Lets assume that the website is a blog. The definition of a sitemap is that it lists the pages that are available in a website. For a dynamic website, those pages change quite regularly. Using the example of a blog, the 'pages' will be the blog posts (I'm guessing), s...

How to start a social networking site?

If I want to start my own social networking site, are there any templates available to start my design from, or should I start from scratch? ...

Can qTip chase after mouse position?

Hi everyone, I want to use in my website and I want the tooltip to "chase" after the mouse. That is the tooltip balloon should display next to the cursor and remain next to it even if it moves. What's the best method to do so? Thanks! ...

Using last.fm API in javascript

I have very little experience with web development. I have a little experience with HTML and I am learning JavaScript right now. I created a program in Java using a a last.fm library for Java. I was able to get user information, artist information, and venue information. Now I want to try and do that in a webpage, which is where my probl...

Oracle has OWA. What is the PostgresSQL equivalent?

I'd like to write stored procedures in pgSQL that dynamically generate web-ready data. I need a pure SQL to HTML or SQL to XML gateway. Oracle has OWA. In Oracle you can setup a RAC frontend to a SAN and connect a large set of OWA hosts to your RAC so you layer your web requests and spread your queries. What is the PostgresSQL or MyS...

Filtering results in rails with multi-valued checkboxes

Hello, I'm attempting to create a filter on a rails application that uses multiple check boxes corresponding to one db-column/attribute to filter through results, but I'm not sure how to go about it exactly. EX. index shows a list of the last few years' weather and you want to filter through it These attributes would be part of a Day c...

Using CMS in web development.

What are advantages and drawbacks in CM systems. What cases are suitable for CMS adaptation? Performance issues... et cetera... ...

good website creation tutorial

Hello, I know that there are a lot of books where html xhtml css and javascript is described but maybe You know is there any example of creating modern website from scratch using above techniques with nice design and so on? Thanks for help ...

why do you need an event-loop for asynchronous requests (e.g., AJAX long polling)

I understand that it's considered bad design to use a normal, threaded webserver (e.g., Apache) for AJAX long polling…but I don't really understand why. Is it because each longpolling request takes significantly more time than a normal one would (thus tying up the processor)? And if that's the case, do threads really take that much ove...

Static page with Websharper?

I have been looking into Websharper, and was wondering if it's possible to use it for static web apps. That is, not hosted in IIS, but as a static web page with javascript. ...

For Loop repeats first loop twice

I have this for loop, and it seems to be repeating the first loop twice (x=0) and then not doing the last one (x=2) for (x=0;x<=2;x++) { if (document.getElementById("sub"+catCount+x).value != "") { if (nonums.test(document.getElementById("sub"+catCount+x).value)) { total = tota...

how are viewing permissions usually implemented in a relational database?

What's the standard relational database idiom for setting permissions for items? Answers should be general; however, they should be able to be applied to example below. Anything flies: adding columns, adding another table—whatever as long as it works well. Application / Example Assume the Twitter database is extremely simple: we have ...