HI all,
I have an account in getresponse.com
I want to send emails to the members in my mailing list after one hour of their joining.
Please tell me how can i do this
I have the following abstract Django models:
class Food(models.Model):
name = models.CharField(max_length=100)
class Meta:
abstract = True
In one of my view, I created a bunch of Food model:
panino = Food(name='Panino')
poutine = Food(name='Poutine')
food = [panino, poutine]
From the above, I'm not saving the model and storing the Food model in a regular Python list. I want to store the above food models in a QuerySet object. How can I do that without storing any data to the database?
I have a list of installed software, obtained from WMI class select * from Win32_Product.
I'd like to deny execution rights for some users on certain software like so:
find the path to installed software
recursively remove execution rights
I find the path to installed software from Win32_Product InstallLocation column. But the PROBLEM is that not all rows in Win32_Product have a value for InstallLocation. What can I do to overcome this? Is there somewhere in registry where I can find this path?
I have a comma delimited list I want to import into a database, and in some cases the last item is blank:
item1, item2, item3
item1, item2,
item1, item2,
I'd like to replace all of these empty columns with a placeholder value using a regexp
item1, item2, item3
item1, item2, PLACEHOLDER
item1, item2, PLACEHOLDER
I tried preg_replace("/,\n/", ",PLACEHOLDER\n",$csv);, but this isn't working. Anyone know what regexp would work for this?
Hi
i have a gridview with information about documents: name, document type (policy, guidelines, forms, etc), category, etc. I want to sort the gridview alphabetically (name) and by document type, but always having the 'policy' above the other document types when document name is the same. How do I do that?
eg
If I do
sort by DocumentName, DocumentType ('policy' maybe not be the first one in the list)
but if I do
sort by DocumentType , DocumentName (I would get for example all guidelines first in alphabetical order, then procedures, then policies, etc)
Hello,
I am using the .NET 4.0 client profile for my app and I run a dual core with 4 GB Ram and a fast hard disk.
nothing big is done at the start just showing a generic List in a wpf listview.
How can I make the cold start faster of my assembly ?
I have a file whose size is about 300mb i want to read the contents line by line and then add it into arraylist. So i have made an object of array list a1 , then reading the file using bufferedreader , after that when i add the lines from file into arraylist it gives an error Exception in thread "main" java.lang.OutOfMemoryError: Java heap space. Please tell me what should be the solution for this.
What is going on?
Is this a result of a programming class assignment or someting?
Find the list at Wikipedia (older revision, somone removed them as non-notable)
http://en.wikipedia.org/w/index.php?title=Comparison_of_File_synchronization_software&oldid=361345181
Hi,
is it possible to call with reflection a method with "explict type argument" <S> definition
e.g. oObject.Cast<S>() ?
where is:
IList <P> oObject = new List <P>();
I tried with
oObject.getType().InvokeMember( "Cast", BindingFlags.InvokeMethod, null, oObject, null)
but it does not work, does anyone know why?
I'm just looking for a little guidance as to how i might implement a chat box.
There needs to be a text area for user entry, and a scrolling list of past messages. Is there an easy/standard way of going about doing this?
Thanks
if a have a declaration like
theclass = Classroom.objects.get(classname = classname)
members = theclass.members.all()
and i want to display all the members(of a class) in a template, how should i do it??
if i write:
{{theclass.members.all}}
the output is an empty list(though the class has some members)
How should the elements of a m2m table be displayed in a template?
thanks!
Hey all
so i wehnt ahead and opened up my .gitconfig file and manually input the
[core]
editor = 'C:/Program Files/Notepad++/notepad++.exe'
which would allow me to execute command:
(im trying to setup my .gitignore list)
"C:/Program Files/Notepad++/notepad++.exe" .gitignore
im JUSt not interested in typing this out every time that i need to make a file
SO ive heard something about editing PATH to allow me to replace the above with something like:
npp .gitignore
any help would be aprpeciated!
How to make this merge function as class decorator?
def merge(*arg, **kwarg): # get decorator args & kwargs
def func(f):
def tmp(*args, **kwargs): # get function args & kwargs
kwargs.update(kwarg) # merge two dictionaries
return f(*args, **kwargs) # return merged data
return tmp
return func
Usage:
@other_decorator # return *args and **kwarg
@merge(list=['one','two','three']) # need to merge with @other_decorator
def test(*a, **k): # get merged args and kwargs
print 'args:', a
print 'kwargs:', k
I read the description from MSDN about MSBuild at http://msdn.microsoft.com/en-us/library/ms164311(v=VS.80).aspx) (the /logger parameter) but it is absolutely not clear enough. I need a list of available arguments for file logger. Please help!
How can I find the dimensions of a matrix in Python. Len(A) returns only one variable.
Edit:
Hi Thanks.
close = dataobj.get_data(timestamps, symbols, closefield)
Is (I assume) generating a matrix of integers (less likely strings). I need to find the size of that matrix, so I can run some tests without having to iterate through all of the elements. As far as the data type goes, I assume it's an array of arrays (or list of lists).
Hi,
I would like to know which type of persistent store would be most appropriate in what situations, like how can I decide where to use core data, property list or archives for my iPhone application.
Thanks
I'd like to do something like this:
def results = Item.findAll("from Item c, Tag b, ItemTag a where c = a.item and b = a.tag and (b.tag like :q or c.uri like :q) " + ob,[q:q])
def items = (Item) results[0..1][0]
but I get
Cannot cast object '[Ljava.lang.Object;@1e224a5' with class '[Ljava.lang.Object;' to class 'org.maflt.ibidem.Item'
I can get what I need with this, but it doesn't seem like it's the best solution:
def items = [] as Set
def cnt = results.size()
for (i=0;i<cnt-1;i++) { items << results[i][0] }
items = items as List
Hi,
there are several list filters in jquery (quicksand, filterprojects, etc.), but I am looking to filter divs by class.
I want the same functionality of the above - you select a menu item attached to a class and the other items fade out.
Anyone seen anything like this anywhere?
I have a csv (large) file of ip addresses, and wish to covert into single line ip address in bash.
aa.bb.cc.dd,aa.bb.cc.dd,aa.bb.cc.dd,..
into
aa.bb.cc.dd
aa.bb.cc.dd
aa.bb.cc.dd
[..]
The list of ips in question,
http://www.stopforumspam.com/downloads/bannedips.zip
I have a number 9877342931235. Using Haskell, I need to show it as:
987-734293-123-5
i've tried interspersing the list but of course that puts '-' between every digit. How would I do it to yield the actual result?
I am try to get a full list of a user's tweets. I do not particularly care what order they come in, but I need all of them, including what the user has ReTweeted. Essentially, I would like to have status/retweeted_by_me, but for specified user.
Is this at all possible?
The pipe operator in prolog returns one or more atomic Heads and a Tail list.
?- [a,b,c] = [a,b|[c]].
true.
Nesting multiple pipes in a single match can be done similar to this:
?- [a,b,c] = [a|[b|[c]]].
true.
What does the statement [a|b|c] infer about a, b and c?