I am using the Location module within Drupal 6 to tag geographical locations to blog entries. So every blog entry has a long/lat
My question is: What is the most efficient way of querying all coordinates for all blog entries of a given user?
...
Is there a Python module that can be used in the same way as Perl's Data::Dumper module?
Edit: Sorry, I should have been clearer. I was mainly after a module for inspecting data rather than persisting.
BTW Thanks for the answers. This is one awesome site!
...
I am running python 2.6.5 and pygame 1.9.1 It seems to me I've tried everything but it keeps showing 'module not found' errors... Please help!
...
Is there a way how modules can listen to parent application event? My current solution that works is:
private function directoryRemoteObject_saveCompany_resultHandler(e:ResultEvent):void
{
this.directoryModuleLoader.child.dispatchEvent(new CompanyEvent(CompanyEvent.COMPANY_SAVED, e.result as int));
}
this means that I need to dispa...
I wanted a list of my modules and was told:
>>> help('modules')
Would do the trick. But I just get
Please wait a moment while I gather a
list of all available modules...
For over 10 minutes before I killed it.
Anyone know what could be causing this? Or how I could otherwise see my modules? (System Ubuntu 9.10/Python 2.6.4)
...
If you are developing a large evolving multi module maven project it seems inevitable that there are some dependencies given in the poms that are unneccesary, since they are transitively included by other dependencies. For example this happens if you have a module A that originally includes C. Later you refactor and have A depend on a mo...
Ok, so I've read both PEP 8 and PEP 257, and I've written lots of docstrings for functions and classes, but I'm a little unsure about what should go in a module docstring. I figured, at a minimum, it should document the functions and classes that the module exports, but I've also seen a few modules that list author names, copyright info...
Hello I asked this question to superuser but I did not get a good question there and i really need the answer. I know some of you here can answer this question.
I have installed nginx via yum. Now I want to add a module, but I have to compile the source again and include the the new module.
But i can't find the source. Does someone kno...
Hi All,
I am writing a program that categorizes a list of Python files by which modules they import. As such I need to scan the collection of .py files ad return a list of which modules they import. As an example, if one of the files I import has the following lines:
import os
import sys, gtk
I would like it to return:
["os", "sys",...
Hello, I'm really new to Python and Django. I created a class in Python that I would like to use in a Django application. It doesn't seem like it belongs in it's own application, how can I include it in my django app?
Thank you!
...
I changed page title in hook _ menu section of a Drupal module, re-installed, and cleared caches, but this did not change title on web page.
Finally I renamed the whole module, files, and relevant function names in files and then re-installed. This did the trick.
I suspect that there is a duplicate entry in mysql table that holds tit...
I googled this and it seems that no one has an answer, yet it seems like such an elementary thing that it should be possible.
I have the following project structure:
parent
---sub-project1
---sub-project2
sub-project2 needs to have sub-project1 as a dependency.
So I have this in sub-project2's pom:
<dependencies>
<depend...
I've been looking for a good way to handle revisions in Drupal, but I am yet to succeed. For some reason there is no built in way to save a draft (that I've found so far), and the modules I've tried so far do not seem to fully work. First I tried save_as_draft, which seemed to do almost what I wanted, and if I'm not mistaken, also handle...
Hello,
I'm apparently laboring under a poor understanding of Python scoping. Perhaps you can help.
Background:
I'm using the
if __name__ == "__main__"
construct to perform "self-tests" in my module(s). Each self test makes calls to the various public methods and prints their results for visual checking as I develop the modules.
T...
Hi,
I have installed rpx module in drupal, i am trying to send registration mail details using providers gmail, yahoomail. mail is going properly but i cannot see password details . it is empty kindly any one help me how to send mail with details username and password .
i have used folllowing function _user_mail_notify('register_no_ap...
Say I have a data file that I want to process; I want to take the maximum value of each of the column and append it to the end of each line.
INPUT:
T1 T2 T3
35.82 34.67 31.68
32.20 34.52 33.59
37.41 38.64 37.56
OUTPUT:
T1 T2 T3
35.82 34.67 31.68 35.82
32.20 34.52 33.59 34.52
37.41 38.64 37.56 38.64
I'm trying to implement this as ...
Hi,
http://www.linkmanagementgroup.com/
My problem is that i've got the log in on the Front Page (and homepage) but i need to move it so that it only appears with the "Link Associates" article page.
<div id="logIn">
<jdoc:include type="modules" name="top" style="beezDivision" headerLevel="3" />
<jdoc:include type="modules" name="us...
Ok, so this is probably a silly question, but i thought i'd put it out there anyway:
I know it's a strange solution to a simple problem, but i needed to control the listing of the nodes in the taxonomy pages, which i didn't feel i got the traditional way. So i went ahead and created a module that fetches the nodes based on taxonomy (taxo...
Hi, I've a big GWT module which comprised of many java classes (& of course it's impossible to break it down into several modules).
My GWT application consists of some forms, but the users usually work only with a few of them, anyway they should be abale to open any form as they need.
Now my problem its that gwt generates a big js file t...
Hi.
I want to use object instances as modules/functors, more or less as shown below:
abstract class Lattice[E] extends Set[E] {
val minimum: E
val maximum: E
def meet(x: E, y: E): E
def join(x: E, y: E): E
def neg(x: E): E
}
class Calculus[E](val lat: Lattice[E]) {
abstract class Expr
case class Var(name: String) extends...