web-development

JavaScript: How do I use the "callback" function of the "autoload" feature of Google Maps v3

I am using Google Maps v3. I'm currently using the autoload functionality and it's working great: <script type="text/javascript" src='http://www.google.com/jsapi?autoload={modules:[{name:"maps",version:3,other_params:"sensor=false"}]}'&gt;&lt;/script&gt; Now I want to use the autoload to also include the callback option to callback m...

What's a simple to implement Javascript or Flash-based tool for adding rotating images to a static website?

I'd like to find a free or inexpensive tool for adding images that change at intervals to a small school's webpage. I'm thinking of something very much like the Wordpress plugin JS Banner Rotate, but for static websites. Any suggestions? Thanks! ...

Grails - getting a message value from controller

How can I get a value from message properties outside of GSPs? For instance, the equivalent of <g:message code="some.message"/> but in a controller? ...

New to web development - backend questions

I'm new to web development although I'm confident in the roadmap for the front-end. I need direction on two things: Basic architecture Back-end technologies For architecture, what do I need to get started? From what I know, its: Get a domain name registered (godaddy?) Find a web host ??? anything else? or start developing the site?...

Facebook Privacy Permissions Design

Does anyone know the general layout of how facebook's privacy permissions system works (database)? I've been trying to figure out how they manage to have such a complex set of rules be applied to various content on their site, yet it remains fast. How are they doing that? ...

validates_uniqueness_of...limiting scope - How do I restrict someone from creating a certain number of entries...

I have the following code: class Like < ActiveRecord::Base belongs_to :site validates_uniqueness_of :ip_address, :scope => [:site_id] end Which limits a person from "liking" a site more than one time based on a remote ip request. Essentially when someone "likes" a site, a record is created in the Likes table and I use a hidden fie...

How can I order my entries by sum from a separate table?

I am wondering how I can order posts in my PostController#index to display by a column total in a separate table. Here is how I have it set up. class Post < ActiveRecord::Base :has_many :votes end and Class Vote < ActiveRecord::Base :belongs_to :post end I user can either vote up or down a particular post. I know there are li...

HTML5 frameworks and tools?

If you were starting to build a relatively complex HTML5 app (for the iPad), what tools and frameworks would you look at using to make your life easier? SproutCore looked like it might be useful if you could just use the front end UI on its own, but it has to be used with the Ruby server, which is no use to me. Are there any libs like ...

Java technologies for web-development.

Hello. I'm PHP-programmer, but I'm extremely interested in learning Java. So I decided to change speciality from PHP to Java. At the moment I have an opportunity to try to make quite simple web-application (it should contain 2-3 forms, several pages with information from the database and authorization module) and also I have a chance to...

What is the recomended setup for a small .net/php development shop?

First of all I don't know if it this question belongs here if not please tell me. I've recently evolved from freelancer to a small .net/php development shop and we're trying to figure out what the best tools for team development will be (code repository, continuos integration server, automated testing, etc.). Do you have some recommend...

How do I prevent iphone from resizing fonts of my website

Iphone changes some fonts making the site unproportional and not as originally designed. Is there a way to preserve original? ...

Is there a way to identify which web framework is used in a site?

Whenever I come across a cute website, I am always curious to know which web framework was used by its developers? Being a novice in web development, a look at the page source doesn't give any clue. Any way(s) to get this information? If possible, may be with a bit of Ruby magic, I can figure out things like: which is the most/least us...

How to read data between two html tags as text.

Hi, I am working on a project which needs to extract text form a predefined div tag. My requirement is to send the content in the target div in a email body. I have to use javascript or php for this task. The Process : When a given link will be clicked; a javascript function will trigger and read that target div. The content of the d...

Want to understand authorization,cookies,users logins,sessions...

Hello, I want to understand the logic of authorization,cookies,users logins,sessions..Do you know any source that explain and teach me about it. If it could give any examples it would be great. I mostly use php,jsp but it would be no problem if you give answer related other languages. ...

Importing dynamically generated content into Flash

I have a website that uses some JavaScript APIs to create flash-based charts (namely Im using annotated timeline from google's charts api). Now, however, the client wants a flash-based slide show that embeds some of the features of the website. Is there a way to import the flash graphs generated by a JavaScript api into my completely-fl...

Question about how to read the Safari/Chrome developer tool result

Hi, I am using the developer tool in chrome (i think it is the same as safari). I did a timeline when I load wwww.yahoo.com. I attached the screen shot: http://yfrog.com/4jpicture2yyp You see: * Send Request (http://www.yahoo.com) * Receive Response (http://www.yahoo.com) * Receive Response (http://www.yahoo.com) * Event (unload) * Fu...

Should I use .pl or .cgi for Perl web script files?

HI. I created two files 'hello.pl' and 'hello.cgi' with the code below. #!/usr/bin/perl print "Content-type:text/html\n\n"; print "hello world"; I can view the page via both http://www.mydomain.com/cgi-bin/hello.pl and http://www.mydomain.com/cgi-bin/hello.cgi. Which one is more sense in Perl web dev? BTW, the directory of 'cgi-bi...

Quest for Multi-Development Web Platforms: Titanium, OpenLaszlo or others if any ? Which to prefer ?

In my quest for Multidevelopement Web Platforms (Desktop Browser and Mobile), I have encountered only 2 : Titanium Openlaszlo Only two. So are there any others ? I have looked at Titanium, seems very promising but I wasn't even able to create a project as It crashed on my windows 7 PC. As for Openlaszlo I heard about it years ago; ...

Wordpress form handling

I need to add a basic form page in the website, that runs on WordPress framework. I have the following raw materials ready: Client side: html form layout,css and jquery validation code. Server side: form handler php function that processes the $_POST[] data. My problem is to integrate this code in the Wordpress framework. I have look...

What should a PHP/MySQL web developer know about servers?

I develop websites using PHP and MySQL. What resources would a seasoned web developer recommend that would cover server-specific information relevant to the job of a developer. If it helps, I work specifically with an Apache server (through my hosting company). ...