web

Why does HttpCacheability.Private suppress ETags?

While writing a custom IHttpHandler I came across a behavior that I didn't expect concerning the HttpCachePolicy object. My handler calculates and sets an entity-tag (using the SetETag method on the HttpCachePolicy associated with the current response object). If I set the cache-control to public using the SetCacheability method everyth...

How to remove "VsDebuggerCausalityData" data from SOAP message?

I've got a problem where incoming SOAP messages from one particular client are being marked as invalid and rejected by our XML firewall device. It appears extra payload data is being inserted by Visual Studio; we're thinking the extra data may be causing a problem b/c we're seeing "VsDebuggerCausalityData" in these messages but not in ot...

ensuring uploaded files are safe

My boss has come to me and asked how to enure a file uploaded through web page is safe. He wants people to be able to upload pdfs and tiff images (and the like) and his real concern is someone embedding a virus in a pdf that is then viewed/altered (and the virus executed). I just read something on a procedure that could be used to destr...

ASP.NET vs. Silverlight

I'm starting a new web project and I am considering two presentation frameworks. I am thinking either about ASP.NET MVC or Silverlight. I would tend toward Silverlight since I'm quite experienced .NET developer while I have just a basic knowledge of ASP.NET controls. ...

How should I build a good (web) API

I'm going to build an API for a web app and I'm interested in what people can suggest as good practices. I'm already planning to make it versioned (version 1 can only control certain aspects of the system, version 2 could control more, but this may need a change in the way authentication is performed that would be incompatible with vers...

Ajax polling.

In the project i am currently working on, we have the need to develop a web chat application, not a very complex chat, just a way to connect two people to talk about a very specific topic, we don't need any kind of authentication for one of the two users, we don't have to support emoticons, avatars, or stuff like that. Some project memb...

Preview theme in Wordpress

In the latest version of Wordpress it gives you the opportunity to view a preview of what your site would look like using a different heme. You basically just click on the theme and it takes over the screen and you have a chance to activate it or close it (and return to the previous screen, which is grayed out in the background). I have ...

Redirecting users from edit page back to calling page

I am working on a project management web application. The user has a variety of ways to display a list of tasks. When viewing a list page, they click on task and are redirected to the task edit page. Since they are coming from a variety of ways, I am just curious as to the best way to redirect the user back to the calling page. I h...

How to make Ruby or Python web sites to use multiple cores?

Even though Python and Ruby have one kernel thread per interpreter thread, they have a global interpreter lock (GIL) that is used to protect potentially shared data structures, so this inhibits multi-processor execution. Even though the portions in those languajes that are written in C or C++ can be free-threaded, that's not possible wit...

How to implement a file download in asp.net

What is the best way to implement, from a web page a download action using asp.net 2.0? Log files for a action are created in a directory called [Application Root]/Logs. I have the full path and want to provide a button, that when clicked will download the log file from the IIS server to the users local pc. ...

How long do you think IE6 will survive?

I am pretty sick of IE6, would not want to support it anymore. When do you think its market share will decline to, say, 5%? ...

PHP : session variable aren't usable when site is redirected

I've to admin a small website for my alumni group which is hosted by my ISV. The url is something like www.myIsv.com/myWebSite/ which is quite ugly and very forgetable. The main admin of the webserver has registered a domain name www.mysmallwebsite.com and put a index.html with this content: <html> <head> <title>www.mysmallwebsite.com</...

What's the difference between DOCUMENT_URI and URI_REQUEST in SSI?

When looking at a SSI printenv dump I see a variable URI_REQUEST. When reading the Apache mod_include docs I see DOCUMENT_URI which they define as "The (%-decoded) URL path of the document requested by the user." Anyone know the difference between the two? TIA. ...

What web log file analyzer do you recommend

I am looking into getting a log file analysis tool for multiple sites. All the sites currently run Google analytics, however I have noticed that the stats that this provides can be a bit off (lower numbers than log files report etc etc). It needn't be expensive although expensive tools will be considered. It needs to be scriptable so ...

Javascript Best Practices

What are some good resources to learn best practices for Javascript? I'm mainly concerned about when something should be an object vs. when it should just be tracked in the DOM. Also I would like to better learn how to organize my code so it's easy to unit test. ...

Encrypt data from users in web applications

Some web applications, like Google Docs, store data generated by the users. Data that can only be read by its owner. Or maybe not? As far as I know, this data is stored as is in a remote database. So, if anybody with enough privileges in the remote system (a sysadmin, for instance) can lurk my data, my privacy could get compromised. Wh...

I have an Idea, now what?

I have an idea for a website that I think could be successful, but it will require ALOT more work then the other projects that I have worked on in the past. Where should I start? ...

is it possible to detect if a flash movie also contains (plays) sound?

Is there a way to detect if a flash movie contains any sound or is playing any music? It would be nice if this could be done inside a webbrowser (actionscript from another flash object, javascript,..) and could be done before the flash movie starts playing. However, I have my doubts this will be possible altogether, so any other (progra...

Best Language for an AJAX-driven "Reputation Index"

I'd like to produce a fun AJAX-driven "Reputation Index" taking from Cory Doctorow's book "Down an Out in the Magic Kingdom" where "Whuffie" is a measurement of reputation/currency. I'd like to allow people to create accounts, login, see other people and assign positive or negative amounts of "whuffie" to them. There would then be an "o...

Why continue writing legacy systems?

I have a student position working on some websites for my school. Everything my school does is in VBScript/ASP Classic. I'm a bit confused about something. I can understand that my school as a LOT of code written in VBScript, and that migrating it would be a phenomenal task. But is it just me, or is it kinda stupid that they make us ...