web-development

Software evaluation licensing for Web Services

Hi all, We have developed a web application. (Eclipse - Dynamic Web Project). We are deploying it as .war file. We want to implement evaluation period license check on this .war file. (Most of the functionalities are Java SOAP Web services and Web UI is in Flex) I have written a Java code for generating the license file and thread for ch...

How to set CSS property when developing for the Vodafone MWP ?

I'm working on a widget for the Vodafone Mobile Widget Platform and was trying to change some properties of a DIV using JS. I used document.getElementById('mydiv').style="width: 10px; height: 10px""; I should work, but it doesn't seem to set the right values. Is the widget run-time treating these statements differently than normal? ...

How do i resume an upload on a HTML Form?

I asked a question and it appears no one knows the answer. So i'll ask one specific part. How can i resume a file uploaded from an html form? While uploading the user has a full network disconnect. Then when the user is back online the form resumes. Before saying it isnt possible this site appears to do it and without corruption. -edit...

How to write a complete web application?

These questions were asked me in a technical interview: If we deploy an application on multiple server (like database server, web server) then, each request should be redirected to proper server, then how you will handle it in your code? How security pinholes will be handled in an application? What things should be considered while wri...

Placing two images into top corners of web page without overlapping

I need to place two images into top-left and top-right corners of a web page, with an empty space between them that would consume the available space, i.e. if the browser displaying the page is resized, the two images will stay at corners for as long as the browser window width is enough to display them both. If the browser is then resiz...

Know word at text insertion pointer on a webpage?

Hi, I would like to know the word at the position of the text insertion pointer in a form on a webpage. My problem is that I don't really know what language to use to do this, and I have no idea how to do it in Javascript. Any ideas? ...

Return non-HTML, non-JSON http bodies in Tapestry 5 ?

Hi, I have to implement the service provider of the OAuth protocol in a project that uses Tapestry5. Therefor I just need to return a very simple HTTP response body that is neither HTML or JSON. At first I tried to use the standard tml & pojo (java class, page) approach but this doesn't work because Tapestry tries to parse the template...

How to use Content-Type: Multipart/Related

I want to send a binary file to the user and have some HTML display on the browser. I'm using a CGI-BIN script with apache2. I found this example on page 4. The link also shows details about the multipart/related content-type. Here's what I tried so far: Content-Type: Multipart/Related; boundary="boundary-content"; start=""; type=\...

Better VHOST management in Nginx?

My nginx.conf file is getting larger and large with dozens of vhosts repeating the same lines over and over. I was wondering if there is anyway to declare the following globally without having to repeat them for each project: # Route all requests for non-existent files to index.php if (!-e $request_filename) { rewrite ^(.*)$ /index.php...

How do I detect a mobile browser, and direct appropriate content to it?

I've read that its bad (not advised) to use User Agent Sniffing to send down the correct content for a mobile browser, so I'm wondering what IS the best way to do this? I'm using ASP.NET MVC, and I've built my site and it works well on desktop browsers, so I'm looking to begin building a mobile version. When a mobile browser comes to m...

How does Google create its form buttons?

I really like how Gmail has created the form input and accompanying "Search Mail" button. See linked for screenshot. However, I'm having a difficult time deciphering Gmails compressed HTML/CSS code to figure out how they created this look. Can someone assist me in figuring out what HTML and CSS I need to use to recreate the combinatio...

How to improve web App

I would love my client's web app to take off, but I feel that there is much improvement to be had before it can be completely usable. What are some resources that will allow me to get feedback and advice/suggestions for improvement/addition of features that will make it more usable?! If you'd like to take a look yourself see it here. R...

How should I structure a video streaming web app?

I want a user to be able to create an account and upload a video to the site. How should I structure this web app, how should I start thinking about the project, how should I store the videos, and what stack would you recommend for this project? How should I think about the front-end, the server, and the database? The more detail, the ...

Creating an advertisement system for your web sites (my own AdSense).

I do not know the right term for this but say I want to have Ads on my web sites where there advertisers need to pay whenever users click on the web sites. How should one go about doing this? My approach is to link the Ad to a script file that will record the click in a database and redirect the user to the advertiser's site. I see one...

Naming website strings

There are 2 types of strings in any website: Shorter with no formatting (menu items, section titles, labels...). Longer with formatting (content). If you have to store these 2 types of strings in 2 different database tables, how would you call these 2 tables? ...

Is there an ActiveScaffold equivalent for Django?

A while ago I created a frontend for a database using RoR and ActiveScaffold. ActiveScaffold let me easily create lots of the features I needed: Read Only Access, Sexy Interface, Sorting, Advanced Search, Pagination etc. I would now like to do the same thing in Django. Is there any equivalent to ActiveScaffold for Django? Do I need to u...

apache shiro: authc.loginUrl doesn't work

Hello folks, I configured Shiro as follows: [main] [users] ... [roles] ... [urls] /welcome.xhtml = anon /overview.xhtml = authc As you can imagine 'welcome.xhtml' contains my login-form. If I am not logged into the application and I try to access overview.xhtml I...

Document Sharing App With MVC

Hello, I have been assigned a new task by the client, a document sharing application to be made as per MVC design pattern. Here are the requirements: Uploads and downloads files with a browser Store the document in db if that are more secure documents else store on the directory with options of password enabled or accessible with out ...

Get Scale Weight into Web App

I want to make a web app that weighs a load on a scale hooked up to a serial port. I would like to make this a web app. How would I go about getting the RS232-interfaced scale into the web app? I am using PHP and Codeigniter. ...

How do i automate the process of filling up forms through software?

Hello, How do i automate the process of filling up form? How do i parse each field and fill it with junk data? I want to test my website. I actually want to hack this link :- http://www.placement.vnsguit.org/placementIt.aspx If any software is available that i can immitate while programming then it will be very helful. Thanks in adva...