web-development

Remove newline character from a string using php regex

How can i remove a new line character from a string using php. ...

IE8 in IE7-compatibility mode with extended CSS support

When IE8 is in IE7-compatibility mode it behabes like IE7 in quirks mode, which means there is no support for the new CSS features that IE7 supports (e.g. object selectors --child selectors, adjacent selectors, etc..). How can I make IE8 to emulate IE7's standard mode rather than quirks mode?? Note: The purpose of this is not to find...

How does a parameterless View() command reaches the correct view in Asp.NET MVC?

I auto-generated a controller, and it includes calls such as: // // GET: /User/ public ActionResult Index() { return View(); } // // GET: /User/Create public ActionResult Create() { return View(); } What determines the actual view (.aspx file) that these parameterless View() calls invoke? ...

How to embed audio message into an audio file with php?

Hi, I would like know if it is possible to create embedding of audio message to audio files? For example, on playing every 10 sec of an audio, it would be interrupted with an audio message "You are currently listening to an audio by XYZ band" and then the audio continues. And even if someone were to download the mp3 file, the audio mes...

Multiple Authentification methods, or implement role based Authentification?

I have a problem I am trying to solve as smooth as possible, and also keep it as safe and flexible as possible! I have a web app where I have 2 kinds of users; Back end users (trusted users; Admins!), and Customers (Front end users; not trusted in the same way)! They do work on some of the same data in the database, but the Customers ca...

Understanding Redirections in ASP.Net MVC

How do redirections work in ASP.Net MVC? I've copied and modified the code bit from Scott Henselman's blog that uses DotNetOpenId to login via OpenID. Debugging, I find that when executing this code segment: // Stage 2: user submitting Identifier var openId = Request.Form["openId"]; new OpenIdRelyingParty().CreateRequest(openId).Redire...

accessing Browser's javascript from Java applet with MS Internet Explorer

I'm using JSObject plugin to write a cookie through the java applet and it worked with SUN's Java. but, With MS JVM the javascript command returning undefined I'm issuing the following from my Applet: String s1 = "document.cookie='logged=1'"; aobj = new Object[] { s1 }; JSObject.getWindow(MyAppletWindow).call("eval", aobj); any clue...

What problem does LDAP solve in the web world?

I understand LDAP is the protocol which is used to talk to an active directory system like OpenLDAP. I also understand OpenLDAP is a kind of database which stores objects in a tree. My question is: When and for what should I use (if at all) LDAP instead of a relational DB. ...

Which version of Ruby should I be using now (Jan 2010)?

I have vanilla Mac OS X Leopard which comes with 1.8.6. I am new to RoR so will be following tutorials on the net. Am I likely to find problems following them when using later versions of Ruby? I am currently looking at this one which mentions 1.8.6 and 1.8.7 - http://www.railstutorial.org/book ...

How does FormsAuthentication.RedirectFromLoginPage() work?

It doesn't return a view. In fact, the Action still needs to return a view after calling this ... so what's going on? ...

How might I improve my development and deployment strategy?

I am working on a web application that runs on the LAMP stack (Linux Apache Mysql PHP) and would like recommendations on improving my workflow. I have 3 environments: My local machine AKA my development environment A staging account on my dedicated server so that I can test the web app A production account on my dedicated server I d...

Tools and techniques for productive web based development

I work in a company which is primarily concerned with desktop apps not served over the internet. Part of my value is I have a web based background and proficiencies in ASP.NET, JavaScript, JQuery etc. The issue I'm having is that compared to a traditional desktop application building a rich web based app is more time consuming. This is...

html making table borders invisible

I use Drupal 6 with theme summertime. Also I use FCKeditor. In order to align content I wanted to create a table with invisible borders. First I tried FCKEditor table properties and I gave 0 to border size in order to make borders invisible. But it did not work. I looked up the source and non working code was like below (Why giving borde...

Getting the current user entity in ASP.Net MVC

I have this code sample: <%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %> <% if (Request.IsAuthenticated) { %> Welcome <b><%= Html.Encode(Page.User.Identity.Name) %></b>! The catch is I am putting the user's id and not name into the 'username' field: User user = _userRepository.Get(...); FormsAuthent...

How do I handle web widget frameworks when advocating Perl?

Recently, I've chatted with a fellow Perl Monger about my and his job. He has a lot of Perl background, but works in a team that creates and maintains many low-scale projects for the customers, mostly based on .NET and Java. His opinion is currently that Perl has mostly lost the web game, since it's still lacking widget toolkits, which a...

How to launch my web page in a web hosting domain?

Am very to new to web development. I have the web pages; web pages are developed in html, CSS Style sheet. For Example I have the ftp domain or crystal.com for hosting my web page For hosting my web pages, I have to create setup file for hosting my web page or simply post my html files. Can any one tell the procedure, what are the ...

How to Conduct an online coding competition?

I need to design a website for a programming competition event. It will be similar to TOP CODER competitions. User will be given all questions & then user submits the code, that will be running on the server and checks if it gives the correct solution or not. The first one to finish all the questions is the winner. I've no clue about ho...

Problems loading XML file with swf on my site?

I created a swf that I have on my website. The swf loads xml data. it works fine when I test it locally. But when I upload it to the server, I get a IOErrorEvent(). Why is this occurring? Here is the code for the XML file: <?xml version="1.0" encode="UTF-8"?> <menu> <col>///~~~~~~~~~~~~~~~~~~~~~~~ <tile> ///The "thumb" tag should indi...

looking for asp.net navigation menu editor with source code

web-based so it can be used by users and hopefully using the class SQLSiteMapProvider which allows for saving sitemap in a SQL Database instead of XML. ...

How to let the div grows based on Jquery sortable grid's height?

Hi, I am new to Jquery, and trying to follow an example on JqueryUI Display Grid, and putting it on a div. So the code basically looks like this: JS code: $('#demoList').sortable(); $('#demoList').disableSelection(); var contentHeight = $('#demoContent').height() + 200; $('#demoContent').animate({height: contentHeight}); HTML code...