i have intel 86 motherboard....how to load kernel and how to connect motherboard through another computer.Does anybosy have any clue reagrding this..I am newbie in this area.
This is the default stuff in post-commit.tmpl, which I don't think do anything useful:
REPOS="$1"
REV="$2"
mailer.py commit "$REPOS" "$REV" /path/to/mailer.conf
How to make use of this hook to automate the deployment?
Hello, Django newbie here, I need to do a count over a certain filter in a django model. If I do it like so: my_model.objects.filter(...).count() I'm guessing it does the SQL query that retrieves all the rows and only afterwards does the count. To my knowledge it's much more efficient to do the count without retrieving those rows like so "SELECT COUNT(*) FROM ...". Is there a way to do so in django?
I am a total newbie in the Python world.
I want to start to experiment with Python and IronPython and compare the results.
Is it possible to install Python and IronPython on the same machine with interfering each other or is it besser to this in the virtual machine.
Thx in advance.
Trying to save files in python:
g = open('~/ccna_pages/'+filename, 'w')
g.write(page)
g.close()
Get this error:
Traceback (most recent call last): File "dl-pages.py", line 50, in
g = open('~/ccna_pages/'+filename, 'w') IOError: [Errno 2] No such file or directory: '~/ccna_pages/1.0.1.1.html'
However, the directory does exist at that location.
This syntax seems to be the what the python docs recommend.. http://docs.python.org/release/1.5/tut/node46.html
What am I missing? Thanks..
My friend said, "Pylons is so much better for web services."
My other friend said, "You can modify Django in a way to do exactly whatever you like."
In Django, what is necessary to be modified (urls.py? models classes? settings?) in order to do "web services" with APIs and REST and versioning, etc etc.?
I am developing a simple application which hava a file Constants.py containing all configuration, it is like this
x = y
during execution of program , the value of y changes , I want value of x o get updated too , automatically, this can be reffered as binding, how can I achieve this
I am working on exercise 13 from learnpythonthehardway.org. I should run this code:
from sys import argv
script, first, second, third = argv
print "The script is called:", script
print "Your first variable is:", first
print "Your second variable is:", second
print "Your third variable is:", third
Then enter "python ex13.py first 2nd 3rd" on command line. However, I am using Aptana Studio 3 on Vista and I get the
"ValueError: too many values to unpack" error.
I am new to Python and Aptana so how can I enter the separate arguments here?
Hi,
I'm trying to build a website that will allow user to upload video files and show them as a streaming video.
I'm a complete newbie in the streaming world so I don't know exactly how to do that, and I definitely don't want to reinvent the wheel.
Are there any free platforms that I can use for that? Do I need a streaming server, or is there a special kind of player I can use that does not require dedicated server?
Thanks!
I am trying to use graphics.py to write a user graphics interface. The problem is that how can I capture the right click event? It seems that the function getMouse() could just returns where the mouse was left-clicked as a Point object.
from graphics import *
def main():
win = GraphWin("My Circle", 100, 100)
c = Circle(Point(50,50), 10)
c.draw(win)
win.getMouse() # pause for click in window
win.close()
main()
I want to know how can I capture the right-click event in the window, thanks.
Let's say a user runs the script w/o giving any paramters. How can I make it so that it defaults to ./myscript.py -h so that it shows them the help info?
parser = optparse.OptionParser()
parser.add_option("-d", "--directory", metavar="DIR",
help="Directory to scan for big files")
parser.add_option("-e", "--email", metavar='EMAIL',
help='email to send the list to')
parser.add_option("-l", "--limit", metavar='LIMIT',
help='return number of files')
I am creating a chat like facebook chat... so in views.py of my Chat Application, I need to retrieve only the last messages every 3-4 seconds with ajax poll ( the latency is not a problem for me ).
If I can disable some Middlewares and some Request Context in this view, the response will be faster... no ?
My question is:
Is there a way to disable some Middlewares and some Request Context in some views ?
Hello,
I'm still quite a mySQL newbie, so I would like to do this right to avoid future mishaps.
What is the right way to detect when do I need to UPDATE an entry in a table or INSERT a new one?
Thank you.
Is there some relatively simple way to programmatically include source code lines to python logger report. For example...
import logging
def main():
something_is_not_right = True
logging.basicConfig(level=logging.DEBUG,
format=('%(filename)s: '
'%(levelname)s: '
'%(funcName)s(): '
'%(lineno)d:\t'
'%(message)s')
)
if something_is_not_right == True:
logging.debug('some way to get previous line of source code here?')
So that output would look like this.
example.py: DEBUG: main(): 14: if something_is_not_right == True:
Eclipse/PyDev, Python 2.6, Django 1.1
All is working in run mode. If I put debug point inside manage.py file, breakpoint worked. But when I putted it in any action method, it causes nothing :(
I'm a newbie at networking. I understand the concept of multicast, but was wondering if it's reliable on the open/public internet?
It seems like sort of an edge case that different backbones or ISPs might intentionally break to reduce router load or generally segment the network for practical high-use applications.
Is my fear reasonable?
P.S. Follow-up question here:
http://stackoverflow.com/questions/256125/best-tutorial-for-application-multicasting
I am newbie to Windows Azure application. I have downloaded the Microsoft Visual Studio express edition 2010 BETA and want to develop Window Azure application. My PC is having Microsoft Windows XP Service Pack 2 with IIS 5.0.
Will Windows Azure cloud application work on IIS 5.0 or IIS 6.0?
I've created a Sphinx document using sphinx-quickstart.
Are there any good examples/tutorials about customizing the look? Specifically to modify the header and add a logo.
Are there some projects with downloadable Sphinx docs? I would like to see how they've customized their look.
update: Adding a logo is supported in the default setup, just not particularly well documented. Look in conf.py for the *_logo settings.`
Hello! I am an MVC newbie. I'm trying to get my URLs to look like this:
/Corporate/Users/Edit/1
/Corporate/Stores/Edit/17
/Corporate/Contacts/Edit/17
/Store/Contacts/Create
/Store/Products/Edit/29
Pretty much like plain-vanilla urls, except with a user type at the front. I'm running into a lot of problems with duplicate controller names, etc.
Is there a simple way to do this? I looked briefly at Areas, but this seemed way to complicated.
I think in the past python scripts would run off CGI, which would create a new thread for each process.
I am a newbie so I'm not really sure, what options do we have?
Is the web server pipeline that python works under any more/less effecient than say php?
Hello, python newbie here.
I'm going through python and I was wondering what are the advantages of using the *args as a parameter over just passing a list as a parameter, besides aesthetics?
Is there any lightweight mvc webframework which is not necessary to install to the server?
I need something simple, that i could just copy to the shared hosting. And it must handle urls other that localhost/test.py, something like this localhost/Blog/test
hi all ! Newbie need help !!!
I have a plist made of string, what i'd like to do is to replace the content if this plist by the content of an another array is it possible ????
thanks to all !
I'm trying to set up a proxy model in django admin. It will represent a subset of the original model. The code from models.py:
class MyManager(models.Manager):
def get_query_set(self):
return super(MyManager, self).get_query_set().filter(some_column='value')
class MyModel(OrigModel):
objects = MyManager()
class Meta:
proxy = True
Now instead of filter() I need to use a complex SELECT statement with JOINS. What's the proper way to inject it wholly to the custom manager?