web-development

How do I decode a CGI form?

How do I decode a CGI form in Perl? ...

How to implement a possibility for user to post some html-formatted data in a safe way?

I have a textarea and I want to support some simplest formatting for posted data (at least, whitespaces and line breaks). How can I achieve this? If I will not escape the response and keep some html tags then it'll be a great security hole. But I don't see any other solution which will allow text formatting in browser. So, I probably s...

Expression Blend 4 and VS 2008 SP1

Good Day everyone!! One question.. or two.. Is it possible to use Expression Blend 4 and Visual Studio 2008??? if it is... how?? I did this: Install VS2008 Install Expression 4 Install VS2008 SP1 Install Silverlight 3 Tools Remove Silverlight 4 registry key Install Silverlight 3 Developer (Silverlight_Developer.exe, to enable Silver...

Case Insensitive Translation

I'm displaying certain strings in my app in some places as regular case and in some places as upper case: {% trans item.name %} {% trans item.name.upper %} I'm specifying translations using the .po/.mo files: msgid "Welcome" msgstr "歓迎" And the translation seems to be case-sensitive. 'Welcome' gets translated to '歓迎' but 'WELCOME...

Ruby on Rails -- not grokking

I've been learning a lot about web technologies recently and I want to put together a neat little website to play with html, css, javascript, flash, and what have you. I know that as far as the web browser is concerned all I need to do is send a text file (usually HTML) from my server using HTTP over TCP. I've gone through a couple o...

Including SMSFu gives an error. How do I fix it?

How do I go about using SMSFu? I have a Posts controller and I have cloned the sms-fu files into my plugin folder. But when I include SMSFu and refresh my application, I get this error uninitialized constant PostsController::SMSFu. Where am I going wrong? Thanks. ...

LDAP test environment

Hi folks, what's the best way to develop with ldap without having the connection to the productive ldap server. Can you recommend some software? Thanks ...

Browser fires request twice to image handler

I am working on a web application. Some images are calling a web provider, which renders the picture, and send it to the client (the html looks like img ... src="/WebProviders/ImageHandler.ashx?.../>). The problem I have encountered is that both IE8 and Firefox 3.6.8 fire the request to the handler more than once, yet not consistently. ...

Web Apps: Storing ID in hidden fields safe?

I just had this thought, I don't know if I am slow though. Usually, I store the id of the item I am editing in a hidden field. Then in backend (I am using PHP/Zend Framework btw), I get it to determine which item gets edited. But then I thought, in something more secure, eg. edit profile, the user can somehow edit a hidden field right...

JSF 2.0 vs Apache Wicket

I am pretty happy with JSF 2.0 and I am not familiar with Wicket. If I would switch from JSF 2.0 to Wicket... What would I like most in Wicket? What would I miss most from JSF 2.0? I guess it's only possible to answer this question if you have experience with both frameworks. Please don't compare with JSF 1.x. ...

How to make Dynamic Website High Scalable?

Hey How can we make a dynamic website or a website which is developed in PHP and backend as MySQL a Social Networking Site High Scalable? ...

Recomendation tech for adding web to a java application

I am new in web development world (from microcontrollers to web is a really long path) Having a Java software (.jar) running, it's just a background process sending/receiving info through sockets, with no interface. I would like to make a web interface to it, and I need some guidelines, about how to confront these topics The cod...

Dynamically decide which XSL stylesheet to use

I'm trying to create a site which (among other things) will display data which is contained in xml files. I'm using xsl stylesheets to format everything, but some of the pages have similar content. Rather than have to make multiple xml sheets with duplicate data, is there a way to tell the xsl where the data is being displayed and have i...

How does one properly test a javascript widget?

So, I've written a little javascript widget. All a user has to do is paste a script tag into the page, and right below it I insert a div with all of the content the user has requested. Many sites do similar things, such as Twitter, Delicious and even StackOverflow. What I'm curious about is how to test this widget to make sure that it ...

Binding keypress event using JQuery not working in Chrome

I'm using Ubuntu 10 and trying out the below code in Firefox 3.6 and Chrome 5. $(document).ready(function(){ $(document).bind("keypress", function(e){ alert("Pressed"); }); }); Surprisingly the above code works well in FF3.6. i.e. for every key pressed, I'm getting an alert box. But in Chrome, i'm...

How can I make messages (coming from the domain) format/markup ignorant?

I want to send back formatted messages from my domain, For example things like: (Bear with me this is not a real example, its just to illustrate my point) Hello Mr user, you cannot perform that task because: reason 1 reason 2 reason 3 I also want to show colors. Right now I am sending it from the domain already ma...

Using mod_rewrite to hide the .py extension of a Python script accessed on a web browser

I want to hide the .py extension of a Python script loaded in a web browser and still have the script run. For example: typing url.dev/basics/pythonscript in the address bar fires pythonscript.py and shows the results in the browser window. The URL url.dev/basics/pythonscript fetches the static file /pythonscript.py The browser...

What is the infrastructure used for Stackoverflow, Twitter, LinkedIn and Facebook

I am curious, what is the infrastructure used for the following websites : Stackoverflow, Twitter, LinkedIn and Facebook ? (or any other social networks) ...

Handling image-heavy web pages

I have a list of TV shows which is about 200 shows long. Each of these shows has a little image, 40x60 pixels and 3 kB, and they are all listed on the same page at the same time. Now I'm starting to think that maybe it's not such a great idea to have about 200 requests to the server each time the page is being viewed. What is the best ...

JWebUnit to test File Upload

I am trying to test a File Upload field with JWebUnit but I do not know how to do that. I see that JWebUnit has a dependancy on common-fileupload so I expect that this is possible but I can see nothing documenting it so the feature may as well not exist. I have done some extensive searching and looking so I think soon I might even go as ...