I own two domains, abc.com and xyz.com (not the real ones I own, but they work as an example). They both point to the same ip address. The following is my server js file:
var sys=require('sys'),
http=require('http'),
settings=require('./settings');
var srv = http.createServer(function(req, res) {
var body="<b>Hello World!</b>...
I am developing a project that lately have been taking off with increased popularity.
This development is of course met with open arms and has also been somewhat expected. I have therefore taken every precaution I could about creating efficient and secure code. However, when it comes to server capacity I haven't had the financial means ...
I have a local development webserver set up using Win7 and IIS7.
I often have to test the applications and websites I develop on all browsers using "very slow" internet connections to determine how all the clients scripts execute and if the images and all linked resources load properly and in order on all browsers.
Now, this involves ...
I am designing a website with flash video content. If I pass in the URL to a .flv file as a flash parameter to the embedded video player someone can easily extract the URL and download the flv video file. How to do I prevent this? Can someone refer me to anti-leeching techniques being used my websites like youtube.
...
I am building a Photo centric website. I wanna learn how to store photos on disk as well as database. diff sized thumb nails.. etc. Can some one guide me with the same ?
...
Hi all,
I hope you can help as i've been banging my head against the wall for a while.
Long story short, I want to dynamically load UserControls with LoadControl which contain their own updatepanels, and when they're on the page, be able to trigger their updates individually via their children.
To explain better, see my extremely simpli...
I want to save webpage as image file or i want to take snapshot of an webpage using PHP. Just like firefox extension Fireshot doing.
...
Hi, I'm developing a web-application for iPhone and Android. It works flawlessly on the iPhone but when I try to run it on an Android device, it just does not work.
But to the point… I need to access the (JavaScript) error console in the Android default browser. Is there a way to do that?
I tried changing the "Enable tracing" setting a...
I am an experienced Java developer who is trying to learn web development with Java presently. I also had web development experience with ASP.NET (c#) and PHP. I know what basic concepts (JSP, Servlet, Bean) and looking for a framework to go.
My question is not "What is the best framework for Java" or something similar.
After reading ...
Possible Duplicate:
What PHP framework would you choose for a new application and why?
For small and big web apps, which is better ?
...
Usually, a user makes a search, get a hitlist, and can then browse it. The hitlist is an intermediate result that remains consistent throughout the browsing and is typically stored in session state. E.g. if new items are added concurrently by some other, they would appear only in a subsequent search.
In a REST application, I can't have...
I am working on a website and this website contains games and this games will need to submit score to the website so the website will handle saving the user game score in the database.
So i am asking about the standards and common techniques to do this communications between the website and the flash games, is it better to let the fl...
<input type="checkbox" name="feature1" value="0" />
If checked, value="1";
else value="0";
if ( $('input[name=feature1]').is(':checked') ) {
$('input[name=feature1]').val('1');
}
I think the above jQuery may work, but its one-time check, how do I make it that everytime the checkbox is clicked/checked, value becomes 1, else 0?
Man...
Is there any test framework or software that can automatically go through a site and find 404 errors from links?
...
How do I do something like this
Inside JSF file, list.xhtml
<p:dataTable value="#{document.drawings}" var="item">
//document is the backing bean that has method getDrawings() that return list of item
</p:dataTable>
Inside my backing bean, document.java
List<Drawing> drawings;
...
public void List<SelectItem> getDrawings()...
Hi,
I am a SQL Server DBA and have a database that I would like to access via a web browser. It will be used internally on the intranet and will simply be calling stored procedures in SQL Server to enter data into the database and return data into a simple web page. I am not a developer although I'm pretty good at SQL and scripting with...
I am web developer from a year.I have Used PHP,python with client side Js libraries like Jquery,motools, etc.
So if switching to Adobe air will be a good thing ?
If It is strong enough to make decent desktop apps (Eg: music/videos player)?
If apps can be made for Android or iphone OS ?
Can i use Jquery like libraries (i am very used ...
I have a rails app that I host for multiple users as useraccount.mysite.com. I want to have the option to allow my users to have their own url (useraccount.com) but still host the app using my shared server. So they should be able to access useraccount.mysite.com or useraccount.com and it should return the same stuff. If they goto use...
Is it possible to have a webpage where on buttonClick, JQuery goes fetches a certain few URLs to MIDI files, and instead of them playing automatically, they are played on demand ?
<a href="bach.mid">Bach</a>
<a href="beethoven.mid">Beethoven</a>
I want to be able to eagerly fetch them into an array of objects and play them on demand....
I am using a CMS system, which has a template for generating forms, with predefined CSS.
The CSS file in use is here
The form I am using at the moment is:
<div class="bodyline">
<?php $theform->startForm($pageTitle)?>
<div id="rightSideDiv">
<fieldset>
<legend><label for="report">Report</label></legend>
...