Hi!
It's my PHP-codes - http://www.adverts.ru/codes/
Criticism this! Now working one module - "User", his url: http://www.adverts.ru/admin/user
It code basic on MVC model and use php 5.3 version
Hi,
i'm pretty new 2 programming, and I'm creating a simple text-based game
I'm wondering if there is a simple way to create my own terminal-type window with which I can place coloured input etc.
Is there a graphics module well suited to this?
I'm using Mac, but I would like it to work on Windows as well
Thanks
These are the (pseudo) models I've got.
Blog:
name
etc...
Article:
name
blog
creator
etc
User (as per django.contrib.auth)
So my problem is this: I've got two users. I want to get all of the articles that the two users published on the same blog (no matter which blog). I can't simply filter the Article model by both users, because that would yield the set of Articles created by both users. Obviously not what I want. but can I filter somehow to get all of the articles where a field of the object matches between the two querysets?
hey guys, im trying to run a python script after every 5 minutes using cron, inside the script is a django import
import django
when running the crontab i get mailed the following error
ImportError: No module named django
this is what the crontab file looks like:
[email protected]
*/5 * * * * /usr/bin/python /Users/paulo/Desktop/ashtanga/ping/sender.py
do anyone of you know whats causing this ?
btw i do have django insalled version 1.2, python 2.6, and MacOX 10.6
I am trying to use str.encode() but I get
>>> "hello".encode(hex)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: must be string, not builtin_function_or_method
I have tried a bunch of variations and they seem to all work in Python 2.5.2, so what do I need to do to get them to work in Python 3.1?
I have a need to store files on Amazon AWS S3, but in order to isolate the user from the AWS authentication I want to go via an ASP page on my site, which the user will be logged into. So:
The application sends the file using the Delphi Indy library TidHTTP.Put (FileStream) routine to the ASP page, along with some authentication stuff (mine, not AWS) on the querystring.
The ASP page checks the auth details and then if OK stores the file on S3 using my Amazon account.
Problem I have is: how do I access the data coming in from the Indy PUT using JScript in the ASP page and pass it on to S3. I'm OK with AWS signing, etc, it's just the nuts and bolts of connecting the two bits (the incoming request and the outgoing AWS request) ...
TIA
R
I am using the urllib2 module in Python 2.6.4, running in Windows XP, to access a URL. I am making a post request, that does not involve cookies or https or anything too complicated. The domain is redirected in my C:\WINDOWS\system32\drivers\etc\hosts file. However, I would like the request from urllib2 to go to the "real" domain and ignore the entry in the hosts file. Is there any easy and practical way to do this?
Hello everybody!!
I am trying to learn Flex and now i have the next code: http://pastebin.com/rZwxF7w1
This code is for my login component. I want to get a special string for encrypting my password. This string is given by my authservice. But when i login i get a multiple times a alert with Done(line 69 in the pastebin code or line 4 in the code on the bottom of this question). But i want that it shows one single time. Does someone know what is wrong with this code?
Tom
protected function tryLogin():void {
encryptStringResult.addEventListener('result', function(event:ResultEvent):void {
var encryptString:String = event.result.toString();
Alert.show('Done');
});
encryptStringResult.token = auth.getEncryptString();
}
I'm quite new to SCSF.
So, I'm developping a SCSF Winforms in C# (using May 2007 version in VSNet 2005 Fwk2.0, I can't use new version). I've implemented a Business module. What is the best practise to log errors? I've configured the Logging Application Block. But how to use that ?
Thanks for answers
hi,
DRUPAL question.
I'm using Views, with an exposed filter (Taxonomy). I've downloaded the "better exposed filter" module to display it as checkbox list.
a
Now, how can I order the tags in the filter list ? "Views Sort" is not the solution because I only can order articles but not the filter items!!
I want to add an option (checkbox) for the customer to order the tags alphabetically or leave them in the default order.
thanks
Hey,
I'm running a post, and need the request to be replied fast. So I wanted to put a worker running some operations in background and reply the request imidiatly.
The worker is always finite in operations and executes in [0;1] second
How can I do this? Is there any module that suports this in the google app engine api?
Edit:
In python
Hi,
I have just installed the ACL and Content Access module. Imedietly after enabling them I was asked to rebuild the permissions. All perfectly normal I am told.
However, I set the 'rebuild' permissions page running about 40 minutes ago and it still says 'Initializing'. How long should it take? Am I doing something wrong?
The very handy right click menu option "Go To Header File" in Visual Studio 2005 doesn't seem to work if my header file is an .hpp file for that module; I've deleted/rebuilt the intellisense file but it still doesn't want to know.
Is there a setting or something somewhere to do this?
Tell why you think Python, Perl, Ruby, etc is easiest for plugging in modules from other languages with minimal though.
To clarify, an example: I want to write business logic in Python, but use functionality that conveniently exists as a Perl module.
In other words, which language "just works" with the most modules?
I'm playing around with Apache's mod_rewrite module, and want to know if there is a decent way to output some debugging information? For example, the documentation lists a number of variables available:
%{HTTP_USER_AGENT}, %{HTTP_REFERER}, %{HTTP_COOKIE} ... etc
Is there a way I could output these just to see what I'm working with? I set up the RewriteLog (Level 2) and have been looking at that, but it'd be nice to be able to see the value of the variables.
Hey Everyone,
The installation for clearance seems very straight forward (http://wiki.github.com/thoughtbot/clearance/installation). I'm following in the instructions, although I'm getting an error almost immediately.
On the the fifth step "rake db:migrate"
I get the following error:
rake aborted!
undefined method `configure' for Clearance:Module
I have no idea what I should be doing differently?
Thanks in advance!
-Elliot
Hello!
I have list of IPs:
238.51.208.96/28
238.51.209.180-199
238.51.209.100-109
238.51.213.2-254
...
How can I easily parse them? I need first and last IP from range.
For First line I can use Net::Netmask CPAN module, but what can I do with others lines?
I need to write a module which will be used from both CPython and IronPython. What's the best way to detect IronPython, since I need a slightly different behaviour in that case?
I noticed that sys.platform is "win32" on CPython, but "cli" on IronPython.
Is there another preferred/standard way of detecting it?
Looking to do output formatting (sprintf type functionality) in node.js, but before I write it myself I was wondering if there's something similar built-in (I've trawled the docs to no avail) or if someone's already written a module.
Many thanks
To extend the User object with custom fields, the Django docs recommend using UserProfiles. However, according to this answer to a question about this from a year or so back:
extending django.contrib.auth.models.User also works better now -- ever since the refactoring of Django's inheritance code in the models API.
And articles such as this lay out how to extend the User model with custom fields, together with the advantages (retrieving properties directly from the user object, rather than through the .get_profile()).
So I was wondering whether there is any consensus on this issue, or reasons to use one or the other. Or even what the Django team currently think?
I am writing a python script that needs to make a log entry whenever it's invoked. The log created by the script must not be changeable by the user (except root) who invoked the script. I tried the syslog module and while this does exactly what I want in terms of file permissions, I need to be able to put the resulting log file in an arbitrary location. How would I go about doing this?
Hi, so I'm having a lot of fun with Perl at home for some time now.
How much more difficult do things get when you develop Perl modules (In my case it's mostly catalyst) in a team? How do we make sure we all got the same development environment (Perl/Module versions)? Simply by keeping up to date with CPAN? Do some teams setup their 'private' CPANs?
I am trying to test a googleapengine project locally, but am getting errors loading templates:
My settings.py contains TEMPLATE_LOADERS with Loader wrappers:
e.g. django.template.loaders.filesystem.Loader
but there is no Loader wrapper class in the bundled filesystem.py file within
xx/google_appengine/lib/django/django/template/loaders/
so I'm getting this error:
Exception Type: ImproperlyConfigured
Exception Value: Module "django.template.loaders.filesystem" does not define a "Loader" callable template source loader
Exception Location: in xxxx/google_appengine/lib/django/django/template/loader.py in find_template_source, line 60
Hey,
I am using the datetime module. I am looking to calculate the date 6 months from the current date. Could someone give me a little help doing this?
Edit: The reason I am wanting to generate a date 6 months from the current date is to produce a Review Date. If the user enters data into the system it will have a review date of 6 months from the date they entered the data. Does this help?
Cheers
Eef