I have a code like this:
<table>
<tr>
<td align="center">
<ul>
<li style="float:left;display:inline">Some text</li>
<li style="float:left;display:inline">Other text</li>
</ul>
</td>
</tr>
</table>
The problem is that the UL with is 100% and then all UL is aligned to the left, how can i center the content into UL? I must have that styl...
I have a DataSource in my control which is always a List<T> where T has to inherit from IEntity.
public class MyClass<T> where T : IEntity
{
public List<T> DataSource
{
get;
set;
}
}
Now, obviously you can't cast a List<T> to a List<IEntity> doing the following:
List<IEntity> wontWork = (List<IEntity>)this...
In an C# ASP.Net MVC project, I'm trying to make a List<string> from a LINQ variable.
Now this might be a pretty basic thing, but I just cannot get that to work without using the actual column names for the data in that variable. The thing is that in the interests of trying to make the program as dynamic as possible, I'm leaving it up t...
Hi,
I am looking for a vb script that would list the folders and subfolders from a directory, and output it to excel so that i could open the folders via hyperlinks.
I am trying to create a sort of directory index that collates about 100 parent folders from 2 directories located on 2 different servers. Some parent folders have up to ...
I need a way to go through all the text on my page, including links and other controls and find words that are in a certain list and add the html character entity ™ () to them.
I need this to be fast too.
The list is held in a javascript array. I've already got code using .each to find all Links on the page with text from that lis...
Hi,
Newbie here. I am looking at company code.
It appears that there are NO member variables in class A yet in A's constructor it initializes an object B even though class A does not contain any member variable of type B (or any member variable at all!).
I guess I don't understand it enough to even ask a question...so what's goin...
Ok I have a class similar to the following...
public class Order
{
private Guid id;
[DataMember]
public Guid ID
{
get { return id; }
set { id = value; }
}
private List<Items> orderItems;
[DataMember]
public List<Items> OrderItems
{
get { return orderItems; }
set { orde...
Hi folks,
I am calculating a large number of possible resulting combinations of an algortihm. To sort this combinations I rate them with a double value und store them in PriorityQueue. Currently, there are about 200k items in that queue which is pretty much memory intesive. Acutally, I only need lets say the best 1000 or 100 of all ite...
What is the best way to do the following in Python:
for item in [ x.attr for x in some_list ]:
do_something_with(item)
This may be a nub question, but isn't the list comprehension generating a new list that we don't need and just taking up memory? Wouldn't it be better if we could make an iterator-like list comprehension.
...
I use flex4 list:
<component:SmoothScrollingList x="200"
y="180"
dataProvider="{myProvider}"
itemRenderer="myitemdrender.FriendPageItemRender"
id="friendPageList"
mouseDown="friendPageList_mouseDownHandler(event)">
<component:layout>
<s:HorizontalLayout requestedColumnC...
Hi, have any of you ever had the need for a nested list like this:
1. Item 1
1.1 - Subitem 1
1.2 - Subitem 2
1.3 - Subitem 3
1.4 - Subitem 4
1.5 - Subitem 5
2. Item 2
2.1 - Subitem 1
2.2 - Subitem 2
2.3 - Subitem 3
2.4 - Subitem 4
2.5 - Subitem 5
Well, I know I cannot achieve that with pure HTML. It would be great ...
Java: How do I perform list operations with different definitions of equals?
I have two lists of generic POJOs. I need to perform some set operations on the lists based on different ways of comparing the POJOs within the lists.
For example, if my POJO had the following structure:
public class GenericPojo {
private String id;
p...
I want to convert a tuples list into a nested list using Python. How do I do that?
I have a sorted list of tuples (sorted by the second value):
[(1, 5), (5, 4), (13, 3), (4, 3), (3, 2), (14, 1), (12, 1),
(10, 1), (9, 1), (8, 1), (7, 1), (6, 1), (2, 1)]
Now I want it to have like this (second value ignored and nested in lists):
[...
Hey everybody,
I'm a python noob and I'm trying to write a program that will show a user a list of phone numbers called greater than X times (X input by users). I've got the program to successfully read in the duplicates and count them (the numbers are stored in a dictionary where {phoneNumber : numberOfTimesCalled}), but I need to comp...
I have a list of checkboxes, looking like this:
<table>
<tr><td><input type="checkbox" /> <label>Bla</label></td></tr>
<tr><td><input type="checkbox" /> <label> + Bla Sub 1</label></td></tr>
<tr><td><input type="checkbox" /> <label> + Bla Sub 2</label></td></tr>
<tr><td><input type="checkbox" /> <label> + Bla Sub 3</label></td></tr>...
In some library code, I have a List that can contain 50,000 items or more.
Callers of the library can invoke methods that result in strings being added to the list. How do I efficiently check for uniqueness of the strings being added?
Currently, just before adding a string, I scan the entire list and compare each string to the to-be...
I have a list. The list can contain multiple items of the same enum type.
Lets say i have an enum : TOY which has values: BALL, DOLL, PLAYSTATION. I want to know how many PLAYSTATION items are in a list with the type TOY. (ie, List<Toy> toys)
What is the best possible solution for this? I don't want to keep iterating through the list ...
hi all:
i want use two button to control list turn left/right one element.
but i got some confuse about how to layout those component.
i use " requestedColumnCount="6" " to set the list width , so in the design model
i only know this list can display 6 element , but i don't know how width it will be.
so i use the "HGroup" to set t...
Hi, I have a list List<T> instances
where T has a date variable and a string ID. Now I need the list to remove duplicates on the string ID and only keep the latest dates. Anyone know how?
I was thinking of creating a new list List<T> final and looping through the instances list. In the loop checking if the list contains an item with th...
I have the following classes...
public class Order
{
private Guid id;
public Guid ID
{
get { return id; }
set { id = value; }
}
private List<Items> orderItems;
public List<Items> OrderItems
{
get { return orderItems; }
set { orderItems= value; }
}
}
public class Item
{
...