web-development

Portfolio Thumbnail Opacity

Hey guys, I am a designer, creating myself a portfolio. The idea of the portfolio is to lazy-load my work as the user scrolls, and they can use the thumbnails on the left to jump to a project (just using anchors). My question: is there a way to have it so the thumbnails on the right are less opaque unless the user is looking at the par...

How to program a super simple software activation system?

Hi, I have a piece of shareware that I wrote that I'd like to distribute on the internet. I have a serial number type thing set up but there is still a ton of key sharing :(. I'd like to add a system where once the user enters the serial, it is checked with my server to make sure that it is valid. Simplicity is key. -Client sends MD5 o...

How to deal with private/public pictures of a user created image gallery?

I am working currently on a web project where users can create image galleries and upload pictures. Optionally they can mark pictures as private so that nobody else can look at them. Now i am not sure how to properly implement the protection mechanism. Of course i have some ideas but none of them seems to be optimal. Here is one of my i...

How to dynamically generate XML file from MySQL database using PHP

Hi, I am searching for a PHP function that dynamically generates an XML file with data from a MySQL database. It should also update the database if the XML file is changed. ...

How to handle role-based views in MVC?

Regardless of the language or MVC framework used, how should I handle different views based on roles? For example (pseudo code): views/post/show: <% show post here %> if (role.isAdmin or role.isModerator) { <% show moderation tools %> } <% show rest of content %> I don't quite like the idea of putting too much business logic into...

How do you determine the webhosting requirements of a site proir to going live?

I have built a drupal site that will contain over a 2500 nodes (real estate listings). I have a feeling that a standard shared webhost will not be sufficient but I really have no way to know. Neither do I know how many hits the site will get, but I expect search engine traffic to be more than humans! The site itself isn't that complex b...

Website character encoding

I have a website in Turkish language. I have the text in turkish and shows well in the editor. When i publish it and view it in the browser; the term : müdürlügü shows as : m�d�rl�g� How can i avoid this? Character encoding of the site is : UTF-8 ...

Newbie with PHP. Keep getting same database error even after I modified my source.

Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'dbuser1'@'localhost This is probably something stupid, but I created some code to access my database from a PHP script but there was an error (dbuser1 doesn't exist) at the first run and now its stuck with the same error even if I change the username to anoth...

Execute local JavaScript directly on webpage

I have a JavaScript file highlight.js which highlights all strings within a given document class with a certain background color. eg. $("div").highlight("the") This highlights all occurrences of "the" within all divs with a yellow background. I am writing a web application; which needs to open an link to an HTML page and automaticall...

What to do after learning basic PHP?

I have learned extremely basic PHP(I think so) using Lynda Tutorial( http://bit.ly/aCIhiu ). After that, I feel, I got some grip on that language. My ambition is to become a web developer! After some googling, I planned to learn some more advanced and practical php by using websites like PHPSCripts, Webapps etc.. But, now I'm in a confu...

Can I get Google Analytics to ignore all sessions where the visitor only pressed the login button?

I have a site that gets most of it's traffic (like 90%) from users who are only looking for a login-button that will take them to a different site. This button is a customer requirement I'm not allowed to remove it. This setup is currently an nightmare when it it comes to the statistics since we want them for all users who actually brow...

Difference between hello/ and hello in file names, URIs

What's the difference between using the name of a directory and using it's name with a trailing dash (hello vs hello/). It seems to matter a lot in web development. ...

Design, storage and retrieval of dynamic forms

What is the design behind custom dynamically generated forms? Would like to implement something like drupal's CCK. In the control panel, the owner of the form designs what fields should be in the form and in what order the form fields should be in, as well as the field's attributes such as "required: yes/no" Once the form has been de...

HTTP upload script that doesn't fail on disconnect?

The upload form on http://www.example.com/ (a service that uploads to multiple online file hosting services) works really well; I was uploading a file and got disconnected partway through, but when I got back online the site resumed the transfer automatically. There doesn't appear to be any flash involved; does anyone know how it's done,...

Help on available payment modules (skype type) where credit can be stored

I am designing a web app, which needs a payment model. I am looking for a module similar to the one on skype (which is prepaid). As in you can transfer some credit to your account and that amount will be pre-paid. After that you can use that amount for various stuff on the website. Firstly, i would like to know if there are reusable or ...

Useful Forums For Web Development?

I am a new user to stackoverflow and have realized it isn't too beginner friendly and I need to ask a lot of silly questions. So, I imagine this question is more valuable than any of my others. I am looking for GOOD web development forums, mainly php, but please do send over all your recommendations. But I am looking for certain criter...

web develop + usb notification

In a local area network is lamp-server, on which the site is located. On the client computers (winXP, Ubuntu) network running opera / firefox (mode kioskmode). Opera-kioskmode local_site.ru.dev Is it possible to doing what any script / code local_site.ru.dev - access usb devices (flash drive, SD card and other drives) connected to ...

Is this web development approach more MVC or SOA? Or both?

Hi all: My usual way of working on web development is to split the project into three tiers, which are: Data Tier - Accessing Relational Database of all sorts, based on requirements Server Tier - providing services to client-side controller calls. Client Tier - Rendering the view as well as loading the controller javascript. Basi...

how change content by CHANGE event and save/hold last cursor position

I want clear content by change event and save last cursor position ed.onChange.add(function(ed, o) { var newContent = o.content.replace(/SOMEREGEXP/ig, ""); ed.setContent(newContent); //ed.selection.select(ed.getBody(), true); //ed.selection.collapse(false); }); How can this do? ...

Hand over variables to a website without a querystring

I have a web-application (ASP.NET) and want to open another external webpage on another machine. I have to forward some information (variables) to that webpage, but they should not be part of the URL. So my question is, how can I achieve this without querystrings? ...