web-development

Can't get setenv to work in .htaccess

SetEnv doesn't seem to work for me. I tried this in my .htaccess: SetEnvIf Remote_Addr ^192\.168\.0$ ip_ok <IfDefine !ip_ok> AuthName "Guest Login" AuthType Basic AuthUserFile /opt/lampp/lib/ok_users/guests.users require valid-user </IfDefine> and I had to provide username/password credentials even though my ip is 192.168.0.10...

Help with this api call...Am i missing something

I am currently trying to find a way to make a request to get only the songs for artist with two bits of information for example. I am searching for any of Ushers songs that have the word remind in them Here's an example for Usher http://ax.itunes.apple.com/WebObjects/MZStoreServices.woa/wa/wsSearch?term=usher I see many other examp...

Related Parameters in HTML

I have a table of rows and columns on an HTML-based entry form that allows the user to edit multiple records. Each row corresponds to a database record and each column to a database field. When the user submits the form, the server needs to figure out which request parameter belongs to which row. The method I've been using for years is ...

Javascript MVC framework

Has anyone used Javascript MVC Framework(s) to develop a production web app? If so what has been your experience? Thanks ...

Google Chrome Plugin: How to get domain from URL (tab.url)

Using the Google Chrome API tab.url value what is the best method to get just the domain from the entire value? In JavaScript I would use 'window.location.protocol' & 'window.location.hostname'...for example something like this: var domain = window.location.protocol + "//" + window.location.hostname; But that gets the extension dom...

Basic architecture guideline for web based project : cloud

We are doing small database maintenance work to earn some money. A new client asked if we can develop a shopping website to list items to sell and buy. This is to cater 300K users,(around 20K users online at same time ). Each user has custom home page, saved setting for shopping carts, items to sell, basic reports (earning etc). we...

PHP session id problem

It it safe to use the built in session creator in PHP? My worry is that someone could hijack the token cookie on another persons machine, and set theirs to exactly the same, therefore tricking the server into thinking that they're the same person. Is there protection (e.g. IP checks) to stop this or should I be using something more secu...

Django models and multilingual websites

I have a model that has multiple text properties - title, short and long description etc. I want to have multilanguage site so I need a way to easy by able to add new languages and translations for this field for every item. What is the best way to achieve this? ...

need help understanding nonce

i have a question about nonce. ok i undertstand its to prevent replay attacks but what happens if the hacker somehow got the nonce and uses it before the user does? ...

What are the advantages of creating web pages with XML instead of HTML?

Hi Everyone, From time to time, I see web pages whose content is solely written in XML (not HTML or XHTML). These pages usually have some style sheets (either XSLT or CSS) attached to them which makes them look like any other ordinary web page. My question is, what are the advantages of such an approach (if any), and why would anyone...

Using web technologies to create desktop applications

Recently, the pace at which web browsers improved and implemented new technologies (e.g. HTML5) seemed to have accellerated considerably. At the same time, the tools for developing web applications, like e.g. jQuery, or the myriads of web frameworks have also made web development much easier. Are we now at a point were it makes sense t...

What technology behind Jango.com

Hi, I would like to know what technology has Jango use to stream the music with out breaking. Also the UI seems pretty cool..is it flex or something? Mainly how they maintain that music doesn't get drop..if i play a you tube video with my internet connection it needs to pause some time to load..but the songs in this site doesn't. I gue...

Why is this Joomla template not working?

Hi, I just installed Joomla on my pc. Everything works just fine. I installed a lot of templates and they all worked, but the template i really want to use doesn't. I want to use this template: http: //byjoomla.com/docman/bj-joomla-templates/bj-venus/download.html The result would have to be like this. When I installed Joomla i clicke...

How can add Amazon Wish List to my site? (PHP, jquery, CSS)

Hiya, I want to add an Amazon Books Wish List to my site and I want to style it with CSS. So, how can I do it? Should I use PHP or can I use Jquery? Do you know PHP tutorials for it or any Jquery plug in? Thanks ...

How do I resemble the typical "confirmation of account" procedure seen in multiple websites?

I want to resemble the typical "confirmation of account" procedure seen in multiple websites. When a user registers an email is sent to him with a confirmation link. Once the user goes to that confirmation link its account gets confirmed. Don't worry about the email sending process. The thing is that I need to generate a URL to which the...

Ruby MongoDB- how to sort records based on datetime?

Hi all: I must have done it in a wrong way: the records printed out are out of order, even though they are inserted into db one at a time. Here is the code: get '/' do db = Mongo::Connection.new("localhost", 27017).db("testdb") @notes = db.collection('notes') @notelist = Set.new() @notes.find().each{|record| @notelist.add(recor...

How do server controls violate MVC design pattern?

The reason I'm asking is tvanfosson's (first) comment to his answer to another question of mine where he said (about ASP.NET MVC): "The lack of server-side controls is due to the inherent separation of concerns that makes MVC a good development pattern..". I surely know ASP.NET server controls, and I think I know MVC design pattern, but ...

XMPP to show presence and without login in a web application?

The main problem is, how would you ensure people can login to the xmpp server securely without having to login again from the web app login page? ...

How to make Sinatra work over HTTPS/SSL?

As the title says... Google doesn't give anything useful concerning this. How do I set up and configure https/ssl for Sinatra apps? How to create a https route? etc. I have never used https for my apps before and have no experience tweaking Rack/whatever, so I appreciate detailed answers... ...

jQuery - Get URL of iframe AFTER redirection on same domain

Using Jquery, how can I get the URL of an iframe after redirection has occurred to a URL in the same domain? ...