web

In Apache .htaccess file using mod_rewrite, is it possible to force www AND force https for a domain ?

RewriteCond %{HTTP_HOST} !^www.example.co.uk$ [NC] RewriteRule ^(.*)$ https://www.example.co.uk/$1 [R=301,QSA,L] thats for the www, but I cannot figure out in a one-pass way how to force the https too? ...

Is there a way to recognize the visit from user's iphone and automatically adjust web page to fit iPhone screen size?

Hello everyone I wonder if there is a way to recognize the visit from user's iphone and automatically adjust web page to fit iPhone screen size? ...

Prerequisites to run Web Deployment projects

Hi, I'm installing a product developped in ASP .NET 3.5 SP1 I made a setup using ASP .NET Web Deployment Project. The Setup runs without any problems on one server, and fails on a freshly installed one. The .NET 3.5 SP1 framework is installed on a fresh W2k8 Server. Anyone knows what I should install to get the Setup running? ...

Java website protection solutions (especially XSS)

I'm developing a web application, and facing some security problems. In my app users can send messages and see other's (a bulletin board like app). I'm validating all the form fields that users can send to my app. There are some very easy fields, like "nick name", that can be 6-10 alpabetical characters, or message sending time, which ...

Axis Web Service throws error: Exception occurred while trying to invoke service method

I am trying to invoke a web service that I have just hosted on out linux redhat server but it throws the error {http://xml.apache.org/axis/}stackTrace:Exception occurred while trying to invoke service method + "methodname" I host the service in apache tomcat webserver The same service works fine when i host it in the windows xp environm...

WCF Service hangs on the 14th call

Hi everyone. I'm having a problem where the WCF service hangs after 13-14 asynchronous process calls from the client. This occurs all the time. The client is a mobile JavaFX app. There is no specific error outputted in the server as well as in client. Someone suggested that it might be a throttling issue. I've set the service side .co...

Problem with background color on li tag

I am setting background color of an li element by the code below : $('#li123').animate({ backgroundColor: color}, 'slow'); It works fine but the color spans whole length of li. What do I do if I want it to span the text contained in the li only. ...

Most effective way to auto detect/select language in a website?

Hello, I need to implement an autodetect feature for a simple, plain html website I am working on. It has two languages and the client wants it to automatically select the language. This could be done either via the browser's language or geolocalization, both options are good. Can someone point me to a good script or solution to do th...

Handling authentication for a web app

Hello, Sending username and password as plaintext, but trough HTTPS; then on server hash(salt+password) and compare that with the hash in the DB. (salt is per-user) Doin' it right? :) Cheers PS: I'm using Ruby/Sinatra, gonna serve via lighttpd, I think. ...

XtraReports Web Viewer not loading Parameters Popup

So were loading a a report from a saved file (this seems to not be the general way to do things), but the report viewer refuses to initialise the parameters popup. WTF!!! Here's the code: protected void Page_Load(object sender, EventArgs e) { string ReportName = Request["ReportName"]; XtraReport newReport = CreateReportFromFile(Rep...

Spring web application: executing common code before entering RequestMapping in controller

I have a web application developed with Spring 2.5. The application has numerous controllers, containing GET and POST request methods, which are marked with RequestMapping annotations, like this: @RequestMapping(method = RequestMethod.GET) I would want to execute some code before each such request, without modifying the existing cont...

Open an URL in a web browser and refresh it continuously from C# app

Hello, The title is self explanatory I guess. How can I develop a C# application to open a page in a web browser, given the URL, and refresh it continuously (always the same URL). Thanks! ...

Customization of ASCX user controls

We have a little situation thats kinda got out of hand latly. Our web application is built upon several ASCX user controls. All of them is available to customize (pointing to another ASCX-path). What we do when we customize is to make a copy of the source ASCX and make some changes. Now the problem, when there have been much commits to ...

How to control which keyboard is displayed when a user touches a text field in iPad?

I am currently developing a web application to be run in iPad. How do I control which keyboard is displayed when a user touches a text field? input type="text" pattern="[0-9]*" I have tried the above html codes which tested working in ITouch but in the Apple iPad SDK emulator, it imply brings up the normal keyboard. Any idea? Thank...

.NET Web Service hydrate custom class

I am consuming an external C# Web Service method which returns a simple calculation result object like this: [Serializable] public class CalculationResult { public string Name { get; set; } public string Unit { get; set; } public decimal? Value { get; set; } } When I add a Web Reference to this service in my ASP .NET proje...

Is OpenId easier or harder for users?

I'm wondering if I should use OpenId for my website. My first exposure to OpenId was StackOverflow, and I found it confusing that they only had a login link, yet no register link. Now that I've learned about OpenId though I prefer it over the regular way of registration. I have a feeling that only a small percentage of the internet us...

Web Development: Which browsers are recommend to be used for web developers?

Hi, I need your opinion about this one. Which browsers (well, the best, at least) do you recommend for web developers to use? ...

how to embed a webpage using wx?

I need to show a webpage (a complex page with script and stuff, no static html) in a frame or something. It's for a desktop application, I'm using python 2.6 + wxPython 2.8.10.1. I need to catch some events too (mostly about changing page). I've found some samples using the webview module in a gtk application, but I couldn't have it work...

Who is a web developer? What does he do

I am wrting an article on web developers. It seems to me there are some problems on the definition of "what is a web developer". It looks like a web developer title is a bit misunderstood, and people with this title often do not get the recognition they deserve. While most people in IT have some well defined job defitinitions, a web de...

How to use system in Cocoa to invoke curl

Hello, I was wondering the best way to upload file to a web server in cocoa. I cant seem to get my curl code to work even though it works when run from terminal. curl code: system(@"curl -T /file.txt http://webserevertouploadto.com") Thanks for any help ...