web-development

How to load a webpage in a visual designer?

I'd like to load a webpage and be able to change it, much like the A/B testing tools do. How is that done? ...

What's new for developers in Mobile Safari iOS 4.2

Does anyone know what the changes are to Safari in the iPad OS update coming in November, from a web application development standpoint? Is there any expanded support for hardware acceleration, any changes to JavaScript, etc, etc? ...

Testing against the 'current_user' with Devise in Rails 3

I'm just starting out with Ruby and Rails, trying out Devise with Rails 3. I've got a loop around a list of Posts, each of which has an associated user. I only want to display editing controls for those posts which are associated with the current user. <% @posts.each do |post| %> <%= link_to "show" %> <% if current_user = post.user ...

Alternative syntax to GET in url

I've inherited terrible code in the past, but one idea in there struck me as a logical step. It's to use non-standard get queries for links inside the application. So instead of /search?category=23&city=Venice when applicable, use /search/category-23;city-Venice These kind of uris get parsed for comfortable use by the system and ...

dynamic web page automatic snapshot

Hi!! I have a dynamic web site (php/mySQL/Ajax on a Linux server), I need to take automatically a photo (snapshot) of each web page periodically (If I can find the way to do the snapshot... I can use cron) and save this image to the database (I also know how to do this...my only problem is the photo!). I can't do it manually, so I need...

Dynamically printing javascript

I recently ran into a situation where it made sense (at first at least) to have my server-side code not only "print" html, but also some of the javascript on the page (basically making the dynamic browser code dynamic itself). I'm just wondering if there is sometimes a valid need for this or if this can usually be avoided...basically fr...

JQuery language drop-down selector

I need an already implemented solution for a JQuery or JavaScript drop-down language selector. The drop-down should open when the user clicks on it and it should display a list of languages with the country's flag on the left. I cannot even find an example. ...

RESTful URL structure for displaying local data

I am developing a web app which displays sales from local stores around the United States. The sales and stores listed vary by location. Is there a RESTful URL scheme for describing this information while avoiding duplicate content? Specifically, the app needs to list local stores, and list items sold at a particular store. Zip (postal)...

Which has higher performance java or javascript?

Since now javascript gets compiled to machine code by browsers. I was wondering which programming language gets better performance between java and javascript. I'm thinking of writing a 3d browser FPS or MMO and am trying to decide between the two. Also what are thoughts on compatibility? It seems like with java and opengl I could ...

22 years old, been having problems learning programming/php, with adhd.

Hello, I will try to keep it as short as I can, I'm 22 years old, having many many difficulties of motivation, persistence and dealing with mental jobs for years. Ii have very few interests (couldn't persist and learn), and as computers is probably the biggest, whenever I think about all the problems i have/had with my ADHD I immediatel...

Why is Jboss "better" than Tomcat?

Hi all. I'm currently starting a new app development. The app architect insists we use JBoss5 because its "better". Do anyone has a wider definition of "better" (if its the case)? I have experience using Tomcat5 and 6 in large scale applications with big user loads and it handles pretty well (IMHO). Both would be running over a RedHat...

looking for full project, graphic tutorials for php and web programming(example inside)

hello, im looking for graphic site tutorials like this one: http://net.tutsplus.com/tutorials/php/creating-a-web-poll-with-php/ that give you step by step explanations for a full project, with the final result and some pictures for each step. i found some other sites, consisting mostly with text for project tutorials and for some reason...

What is a best practice method to log visits per page / object

Take my profile for example, or any question number of views on this site, what is the process of logging the number of visits per page or object on a website, which I presumably think includes: Counting registered users once (this must be reflected in the db, which pages / objects the user has visited). this will also not include unre...

Best way to store user permissions?

Hey all, Designing a fairly complicated site with a lot of ajax running on a single page. I have reached the point where some user's need to have specific permission to do things and some need to be stopped from the action. I have set up user roles in my database and all is working fine, but I wonder if there is an easier/safer method f...

Multiple Web Development Environments on Windows

Beginner here, stuck wondering what I need to do to learn development in different web environments. Say, for instance I want to play around in PHP & MySQL. But I also want to try things with Ruby on Rails and maybe even server things with Python. Do I need a different environment for each platform? Am I required to have a virtual ma...

What tool(s) for fairly complex stress testing a web application

I'm part of a team developing a new web-based product for our company. Whilst we're pretty positive the application will work perfectly with our expected average of 10-50 concurrent users, we have a requirement to ensure it will continue to work correctly for 1000 concurrent users. Our primary concern is around the loading and displayin...

Creating two <img> elements while using one MotionJPEG stream

Hi, I'm trying to make a page that would display several MotionJPEG image thumbnails. When a thumbnail is clicked, its contents are shown in a larger image element as well. The problem is that when I try to use the same MotionJPEG stream for both a thumbnail and the main view (setting the main image's src attribute), the data never arr...

Geolocation strategies for web apps

Building a server-side geolocation module, I was wondering what were the general view and best practices regarding this. I don't need something very precise as geolocation is concerned, I only need the cc/ll pair so I can redirect the user to the appropriate version of the website. Currently, the logic behind what I built is the followi...

How to create a dynamic form?

I want to create a form consisting of checkboxes that is based on data stored in a database and accessed via a RESTful web service in JSON format. Furthermore, some of these checkboxes will need to be pre-checked, based on other data stored and accessed in the manner described above. From what I understand I can use a repeater to create ...

How to use a javascript function in a pure php page.

Howdy y'all, I am looking for a way to include a .js function with in a straight php page. By straight php I mean there is no html included. Explanation of process if you will. I have a page where employees must swipe their ID badge for access to a computer. The employee swipes the badge, the magnetic strip is read, and the data sti...