I am about to redesign an Online Magazine which was built in Plone.
And I am going to do it in Django. (For the simple reason that I like Django and that I have to maintain this particular site for (basically) free.)
However I am unsure about the way I should design the Models.
Basically the idea is to have a Site structure - which in P...
I have a PHP site which (as every other site) has some hidden errors. The question is what should happen when an error occurs?
I see lots of PHP and other sites where in case of an error the page is a bit broken, sometimes even an internal error message is dumped to the page, but usually the site stays partly usable.
The other approach...
I am currently refactoring some code for work and I have come across some function calls prefixed by the "@" symbol. As I understand it, this is intended to escape PHP error reporting if the call fails.
Is this type of thing good practice? I understand the rationale in a development environment but when the site is pushed to production...
Is something in the http protocol that will help me find out, or should I check the fields by myself.
If identical field values can be submitted more than once, should I add a dummy hidden field or something?
...
I have a little problem and because my WEB development skills are not the sharpest I hope you can help me.
The problem is that I am working on a digital SCRUM task board and one of the core functionality would be that browsers having the same project taskboard open would have to show the same picture. So that if person A moves a task pe...
How can I create a validator that validates if the user inputed the same values in the password field and the password confirmation field?
I did it in the managed bean, but I prefer to do it using a JSF validator...
The real question is, how to create a validator that access other JSF components other than the component being validated...
Is there a standard max for the width of the main content area of a web page? I want to maximize screen real estate without affecting usability. I've seen a lot of sites stick to 980px or less. Anyone have any suggestions?
...
Ok just want to clarify something with my solution.
I have a requirement to grab a file from a respository somewhere, this repository requires a session token to be passed in the form of a cookie along with the request for the file.
I am authenticating the user against this repository and storing the session token in the users cooki...
After reading a couple articles about web MVC architecture, I'm conflicted about how to go about creating an modern web application nowadays.
The previous web paradigm consisted of:
Model: Business logic server
View: Dummy browser client that showed whatever the controller told it to show.
Controller: Web server tier that maintained...
I am trying to figure out the best way to deploy a single google app engine application across multiple regions.
The same code is to be used, but the stored data is specific to each region. Motivating examples are hyperlocal review sites, like yelp.com or urbanspoon, where restaurants and other businesses to review are specific to a re...
I've recently started learning/using django; I'm trying to figure out a way to have two separate authentications systems for administrators and users. Rather than create a whole new auth system, I'd like to leverage django's built-in functionality (i.e. session management, @login_required decorator, etc.).
Specifically, I want to have ...
Good afternoon, Everyone.
Do you have any recommendations for materials (videos, books, tutorials) that would help me get started with load testing web apps? I have VS2008 Team System and will need to use the tools available in there. No third party stuff or online load testing tools.
Thanks,
Scott
...
I've gotten into a habit of using the standard register->send activation email->activate account process for every site that supports user authentication and free registration without questioning if I really need this.
What are your thoughts on this? If I have captcha on the registration form is the email confirmation process really ne...
I'm trying to make a web based media player using the HTML5 audio element implemented in Firefox 3.5 and Chrome. Reading Mozillas documentation, omitting the autobuffer attribute should result in the audio src not being requested:
if specified, the audio will
automatically begin being downloaded,
even if not set to automatically ...
I've read about APC that it speeds up multiple php file sites. So I have this particular project in PHP with many files and i discover that require_once and parsing only class definitions (without executing them) takes most time.
So I've installed APC on my CentOS 5 server. I moved apc.php to my webserver and it displays
Hits: 1 (50....
I want firefox to open C:\somefile.txt on the local drive. I've tried response.redirect with the "file:///" prefix, but it just inserts "Object moved to here." into the page. I also want to htmlencode the path because it could contain special chars...
Edit: To be clear: C:\somefile.txt is a file on the client box running the browser...
As a developer new to Rails, I'd like to know what checklists seasoned Rails developers might have of things to check before putting a Ruby on Rails web site live. I am thinking that you should probably remove generated views that you aren't using, remove controller actions you don't need, remove default routes and so forth.
I'm thin...
I have already developed a website and deployed it.Now i need to document it .
Please provide an example for the documentation.
Also provide, contents needs to added in the document?
Thanks in advance!
...
Here's what this chunk of code does: Pulls back the 6 most recent members and displays a gallery on the home page -- photo, age and location.
My struggle here is whether I should be referencing anything in the SP/DAL method that says "gallery". The data layer only cares about the data, it shouldn't even know a gallery exists.
So my in...
As a followup on this answer:
Specified javascript does work in case of a local website, but fails in case of a remote site. The firefox extension locallink helps in case of links, but is useless in case of the javascript solution provided by the linked answer. Please provide possible workarounds for redirecting to local files (unc) in ...