web-development

setup an ftp server with mamp pro

I am currently using mamp pro on osx for local development and I want to mirror my mosso cloud setup as much as possible. has anyone setup an ftp server with their local installation of mamp pro using sites i.e. local.mydev.com through apache? hope everyone had a great holiday. ...

rich internet application solutions for ruby

I am wondering what are the possible rich internet application solutions that goes well with ruby or if there is a GWT equivalent? ...

How to apply a MVC architecture to a ExtJS project ?

Hello, I would like to build a web project, using ExtJS, the famous javascript library. The goal is to use only ExtJS (and some CSS and HTML) to build the entire client-side web application. I also would like to apply a Model-View-Controller structure to the code of this project. First question: is it possible and pertinent to apply su...

Currency exchange rates for paypal

Does anyone know a way to get the currency exchange rates for paypal? We have custom shopping cart and use Paypal (Website Payments Standard) to handle payments. Our 'home' currency is Euro, but we would like to present our customers the option to pay in different currencies (USD, CAD, AUD and GBP). PayPal offers the option to:     a) ...

Best web programming book for stand alone application guy?

what are the web programming book or books that takes you as a stand alone application programmer and make(develop your skills) you web programmer and make you think more in web way so that if you have idea about web you can directly sit front of the computer and code it by yourself? Edit:i prefer using php,mysql ...

Why isn't information about the openID user coming through the protocol?

I am using DotNetOpenAuth to integrate openID in our web application. The code below requests the information to the provider. try { var req = openid.CreateRequest(Request.Form["openid_identifier"]); req.AddExtension(new DotNetOpenAuth.OpenId.Extensions.SimpleRegistration.ClaimsRequest { Email = DotNetOpenAuth.OpenId.Extensi...

PHP Detect how many URLS in the string

I'm implementing a contact form for a website, and I'd like to avoid using a captcha because I believe it has a negative effect on user experience. Instead, I've decided to trial detecting the number of URLs that have been submitted with the message. I am retrieving the message as a string from the $_POST submission. I know inbuilt PH...

Content-Disposition:What are the differences between "inline" and "attachment"?

What are the differences between Response.AddHeader("content-disposition", "attachment;filename=somefile.ext") and Response.AddHeader("content-disposition", "inline;filename=somefile.ext") I don't know the differences , because when I use one or another I always get a window prompt asking me to download the file for both of them. I...

Recursive menu builder with c#

Trying to build a recursive html menu using c#. The html structure I need is as follows: <ul> <li>Office</li> <li>Home <ul> <li>Beds</li> <li>Desks</li> </ul> </li> <li>Outdoor <ul> <li>Children <ul> <li>Playsets</li> </ul> </li> ...

Caching data vs. recalculating in PHP

Here's the lowdown of the situation. I am creating a role-playing game with PHP. The combat system consists of the various buffs and debuffs. The combat is likely to take several turns (it's against an AI). I am of two mind about ensuring the correctness of the player's data (buffs and debuffs expire over time. A +5 strength buff may la...

Fat Java client need two-way communication channel to web server over http/https

I have a situation where I want a Java client to have a two-way data channel with a servlet (I have control over both), so that either can begin data transferring without having to wait for the other to do something first, but to get through the firewalls this needs to be tunnelled in http or https. I have looked around, but I do not ...

Custom sort-order in a database

I have a "products" table in a database. It is used to populate a dropdown list on a website. Currently the list is being output alphabetically, but my client has suggested that if he signs Coca Cola as a customer, they might want to put "Vanilla Coke" as the product on the top of the list, followed by "Coke", then have the rest sort al...

multi threading a web application

I know there are many cases when it's best to multi thread an application but when is it best to multi thread a .net web Application? ...

Adding the CANONICAL tag to my page for SEO through code behind?

I am using ASP.NET with MasterPages. Thus i cant just place this link in my pages that reference my MasterPage. <link rel="canonical" href="http://www.erate.co.za/" /> I need to place this link in though my Page Load of each one of my pages. How would i do this through code? I am using VB.NET but C# will also help me in the right dire...

How to design a masterpage for a website? Is there any template?

HI I am going to create a website, So I need to have a master page for all my own pages. But its difficult to design it from scratch, Is there any template I use and just changing for example the colors, font sizes, ...? ...

How to test new features without corrupting the trunk?

I create branches for each new features. Then I'm merges them into the trunk after I'll sending them on a test site.This means that the trunk is not stable. I wonder if there is a better approach. EDIT After reading the comment, I realize that I should have specified that it was a web applcation.So a website for testing each branch se...

Does apparent filename affect SEO?

If I name my HTML file "Banks.html" located at www.example.com/Banks.html, but all the content is about Cats and all my other SEO tags are about Cats on the page, will it affect my page's SEO? Can you name your files whatever you want, as long as you have the page title, description, and the rest of the SEO done properly? ...

Incorporating Java Styles in code preview

I am creating a website where you have a text area to write java code and need to incorporate java style colors for classes, keywords etc.. just like a normal java editor would provide. Is there a plug-in kind of a solution for this. ...

How can my website delete another site's cookies?

I'd like to remove the cookies of another site from users on my site. Is there any way to access the cookies from different domains. ...

Code not populating from xml after changing

In my asp.net code there is a xml data reader where the values from xml has been picked and put it in the variable in the code. I have recently changed the values in the xml file But my code still taking the previous values instead of the new one. please help me Code as below: xmlData.ReadXml(Server.MapPath("./App_Data/EmailAd.xml...