If I'm right, each request for http://ajax.microsoft.com/ajax/jQuery/jquery-1.4.2.js
uses something like 3kb of microsoft.com cookies. Do I not understand something and it doesn't matter or is Microsoft wrong?
...
I have developed an application and I seem to be having some problems with my associations. I have the following:
class User < ActiveRecord::Base
acts_as_authentic
has_many :questions, :dependent => :destroy
has_many :sites , :dependent => :destroy
end
Questions
class Question < ActiveRecord::Base
has_many :sites, :dependent...
I think I am missing something while using the Authlogic gem w/ Rails. To set the stage I have multiple users and each user can create posts and comments. Upon the display of a post or comment I would like to give the user who created them the option to edit or destroy.
I am successfully using the following code to hide and show element...
Where, when and how to create the administrator account/user for a private website?
So what I am asking is what's the preferable technique for creating that first administrator account/user. In my case it's for a private webapplication. I am talking about the account/user that will own the application and will if needed create/promote ...
Hello,
As you must have seen in gmail, a small popup appears to chat when you click on right bottom corner of your screen. Interestingly, this popup remains open and at the same place even when we navigate from one webpage to another. How can this be done? It doesn't look as though it's different page. Is it different page altogether? or...
Hi,
i have a webpage with table and in it images,
i would like to add the option to increase/decrease image size, how could i do that?
Something like ctr+plus and ctr+ minus does.
This is what it is for now, http://www.ursic-ei.si/1.html
Thank you all for answers.
...
I'm trying to develop an app using Django 1.1 on Webfaction. I'd like to get the IP address of the incoming request, but when I use request.META['REMOTE_ADDR'] it returns 127.0.0.1. There seems to be a number of different ways of getting the address, such as using
HTTP_X_FORWARDED_FOR or plugging in some middleware called SetRemoteAddrF...
Hi All,
I need to program a very huge web site.
The site should contain public part with search engine, user registration forms, cart and all other stuff.
The private part should contain administrative web application with a lot of data grids, complex edit forms, security checks, services and so on. Also I need very good support for htm...
I'm putting together a site that will make itself available for user input. I was wondering if writing a function like:
if(getenv("HTTP_REFERER") != 'http://www.myURL.com/submitArea'){
die('don\'t be an jerk, ruin your own site');
}else{
// continue with form processing
}
is enough to prevent cross site...
I'm looking for a decent book or online resource to help me learn about developing large Javascript applications.
There are lots of books that go over the fundamental and advanced features of JS, but I'm looking for something which covers application structure, coding practices etc.
Any ideas?
...
I searched for many web-bases html editor for asp.net such as tinyMCE ,ckeditor ... but i want one that give me ability to upload image into server while inserting image into the text
Could anyone give me best editor that have this feature ?
...
Given an object X; I want this object to have an image. The image must be stored in the database. I can't store the path, the actual image must be in the database.
My question can be answered by answering the following subquestions:
a). What type of field should I put in the database? (e.g VARCHAR)
b) What type of object should I use ...
can I somehow using css place the block2 in right top corner of block1?
Note that block2 must be the (very) last inside html code of block1 or it could be placed after block1. I cannot make it the first element in block1
Note2
that within block1 could be <p>, images, text and it is beyond my control to know what and how many.
also ...
I have run into these problems several times and was never able to find a comfortable solution. Let's say my website has the domain name MyDomain.com. When I run the tests on the test machine (a continuous integration server), I will modify the HOSTS file on this machine so the MyDomain.com is mapped to this local machine instead of the ...
Hi,
I want to create a simple site for my personal usage. And this only in python based technologies. So I want to get a expert oponian on this topic.
What should i used as platform? I did a search for available options and found Django, grok, web2py and many more of these. Which one a novice use should use? If I choose to use only th...
Hi,
Just wanted to know what could be the security cautions I should know about PHP Hosting?
Thanks
...
I've added the following to my settings.py file:
import logging
...
logging.basicConfig(level=logging.DEBUG,
format='%(asctime)s %(levelname)s %(message)s',
filename=os.path.join(rootdir, 'django.log'),
filemode='a+')
And in views.py, I've added:
import logging
log = logging.getLogger(__name__)
...
log.info("testing 123!"...
I have organized a menu. Its HTML is as follows:
<ul class="topmenu">
<li><a href="sample.html">Text 1</a></li>
<li><a href="sample.html">Text 2</a></li>
<li><a href="sample.html">Text 3</a></li>
<li><a href="sample.html">Text 4</a></li>
<ul>
This is a horizontal menu, so I have floated th...
I am using this but it is not working:
$replaced = str_replace(''', '"', $text);
Any help would be appreciated.
...
I'd like to know which Java web application frameworks do provide a "hot reload" capability, i.e. allow to develop applications and have them redeployed on the server "almost instantly" (i.e. in less than a few seconds).
I the Java world, Play! has it out of the box, but what I'm looking for is a more exhaustive list.
Other examples t...