All,
I have an issue with a remote ftp server that has kept me busy for three days now and I am going nuts over it. :(
A while ago, I wrote a simple ftp retriever class that uses apache commons-net 2.0. The class works fine on 5 different ftp servers, I can retrieve data as I want.
Now I have come across a server that I need to connect...
hi!
I have two comboboxes:
The first one is Language (English, Italian, French...) and the second one is another list of stuff that is different for every language (or a little bit different) so the content must be loaded every time the language is changed.
How can I handle it?
Example:
If I select English, in the second combobox I ...
I want test whether a string is present within any of the list values in a defaultdict.
For instance:
from collections import defaultdict
animals = defaultdict(list)
animals['farm']=['cow', 'pig', 'chicken']
animals['house']=['cat', 'rat']
I want to know if 'cow' occurs in any of the lists within animals.
'cow' in animals.valu...
<ul class="menu">
<li><a href="#">texT</a>
<ul>
<li>text</li>
<li>text</li>
<li>text</li>
</ul>
</li>
<li>text</li>
<li>text</li>
</ul>
How to get direct <li> from .menu?
<li> inside child <ul> should not be taken.
Thanks.
...
Hello Friends,
I have some id which i am getting from database matching some criteria specified there.
No of id may be 100.
I will store all that id at somewhere at loading of application.
I have one continuos running process which return id and i want to check that returned id is exist in stored IDS.
So how can i check it.I am thinking...
Using R, I generate a list that contains certain unquoted elements. Please see at the bottom- it is invalid javascript code.
R code (does not work)
outq <- lapply (out, function (el){
el <- if( is.factor(el$ann) ){
el$ann <- apply(el$ann, 1, function(e){ e <- paste('"', e, '"', sep="") })
}
})
In the R language, How can I ...
Yet another list-comparing question.
I have:
List<MyType> list1;
List<MyType> list2;
I need to check that they both have the same elements, regardless of their position within the list. Each MyType object may appear multiple times on a list. Is there a built-in function that checks this? What if I guarantee that each element appears on...
Hi
I recently started learning LINQ. Bsically to understand this technology better I try to rewrite some of my previous programs using LINQ. I mean I try to replace foreach methods etc with linq queries.
Today I encounterd a problem.
I have a list of objects element
List<Element> elementList
public class Element
{
priv...
I suspect these are some of the limiations of SharePoint.
Does anything in the SharePoint UI allow for a column to be added to a list that enable users to enter multiple time and user stamped entries to a single custom list row? For example like a comment column?
And on the subject of connecting two list to each other. Ideally, we wou...
I have this:
Lt = [('ABC', ), ('Abc', ), ('xyz', ),
('ABC', ), ('Abc', )]
I want this:
Lt = ('Abc', 'Abc', 'xyz', 'ABC', 'ABc')
remove the extra "(",")" and ",".... How do i do this.
...
I have a list of booleans I'd like to logically combine using and/or. The expanded operations would be:
vals = [True, False, True, True, True, False]
# And-ing them together
result = True
for item in vals:
result = result and item
# Or-ing them together
result = False
for item in vals:
result = result or item
Are there nift...
I am making a small program and at some point from each row of a matrix I need to subtract the average of the row itself. Quite a standard renormalization procedure.
Note in the code
def subtractaverage(data):
datanormalized=[]
for row in data:
average_row=sum(row)/len(row)
print "average=",average_row
# r...
I'm tying to make a radgrid that sorts items like a bank statement. By this I mean it has to follow a specific pattern.
All the data is pulled in one linq statement and put into what is essentially a list.
Each page must have an ascending sort (by date dd-mm-yy) from top to bottom. This means we should see :
26/09/10 | item 1 | €9...
my question is, is I have a list like the following:
someList = [[0,1,2],[3,4,5],[6,7,8]]
how would I get the first entry of each sublist?
I know I could do this:
newList = []
for entry in someList:
newList.append(entry[0])
where newList would be:
[0, 3, 6]
But is there a way to do something like:
newList = someList[:][0]...
Hi there,
im trying to build a simple HTML+CSS menu with submenu popups.
If a list item has a child list and gets hovered the child list would show up. This works already.
But I want the parent item to be on top of the child list. I tried it with the z-index and.. failed.
The child always overlaps the parent.
I try to do this to ma...
so I list
mList = ['list1', 'list2', 'list8', 'list99']
I want to choose a value in that list say 'list8' and have it so that it is the first entry in the list
['list2', 'list1', 'list8', 'list99']
how do I reorder just this one entry
all I can think of at the moment is
-get the index
-remove that entry
-insert(0, entry)
what is a cl...
Hi everyone,
I've got a question about iPhone developing. Is there a example code or tutorial for getting a list or maybe an array with wifi spots that where find in the current environment?
Thanks a lot! :)
...
I have a simple class called Tuple. which looks like this :
class tuple
{
string name;
string code
}
i inserted few of these items into a combobox, now when i want to select through the code some item, i try to write
myComboBox.selectedItem = new tuple("Hello" , "5");
and of course it doesn't work at all and the selected ...
Hello, i have a list.
name|num|num|num|num
name|num|num|num|num
name|num|num|num|num
How i can sort this list on need me field (2,3,4,5) ?
Sorry for my enlish.
Update
Input:
str|10|20
str|1|30
Sort by first field (1,10):
str|1|30
str|10|20
Sort by second field(20,30):
str|10|20
str|1|30
...
I need to make a custom list based component that orders the items in its data provider in tile format (using tile layout). Also, the component should have a maxNumberOfItems, based on which a number of "empty spots" must be rendered if the length of the data provider is less than maxNumberOfItems. What I do not want is affecting the da...