list

how to align list text to center

i'm using an image for "li" element. the problem is the text displayed under the image.how to align text to center of the list image? looks as follows css: ul.mark{ list-style-image: url('bullet1.jpg'); } html: <ul class='mark'> ... </ul> ...

I need a list of Async-Signal-Safe Functions from glibc.

Non syscall's wrappers but something like snprintf(), dprintf() ...

How to use multiple List<> as DatagridView's datasource

I'm looking for a highly efficient way to save data to a table like structure in C#. The number of rows, columns and data type for each column is determined at runtime. One of my approaches is to create a struct that defines a column. The struct consists of ColumnName, Units, and a generic List of doubles. (For now I am sticking to one d...

Forcing tuples within tuples?

I've got a python function that should loop through a tuple of coordinates and print their contents: def do(coordList): for element in coordList: print element y=((5,5),(4,4)) x=((5,5)) When y is run through the function, it outputs (5,5) and (4,4), the desired result. However, running x through the function outputs 5 and ...

Sorting lists by date and then order by latest

Hi, I have a list and would like to sort by date then order by latest date first. The code below sorts by date: allFeeds.Sort(delegate(SimplifiedFeedItem p1, SimplifiedFeedItem p2) { return p1.PublishDate.CompareTo(p2.PublishDate); }); allFeeds.ForEach(delegate(SimplifiedFeedItem p) ...

Using a list objects to look up items in a dictionary in Python

I have a a wxPython checklist box that returns a list of integers. I want to use the integers to look up items in a dictionary. I am not really sure the best way to do this. Any suggestions? ...

Hibernate list operation question

I'm working on a utility to update a list of entities in a database as a group. The database contains a list of entities. The result of the update is a new list. The API accepts this new list. The update may end up modifying some of the entities in the list, creating new ones and deleting some. So at the entity level, I may have to do a...

Databind a List with a Template to a Dropdown Datasource

I have a Template via: public class OwnedProvinces { public Guid ProvinceID; public string ProvinceName; } And I created a list with this template here: List<OwnedProvinces> getinfo = (from upi in db.Utopia_Province_Data_Captured_Gens where upi.Owner_User_ID == SQLStatementsCS.UserID(...

Minor versions for SharePoint custom list

I've developed a SharePoint 2007 custom list with a single custom content type derived from Item. The problem is that I only get major versions when enabling versioning on the list. Is it possible to get minor version on a custom list? If not, does anyone know of a post explaining a good approach around how this might be accomplished for...

First 6 from a foreach .net 2.0

Hi I need to sort a list then take the first 6 in .net 2.0 for example the code below sorts but does not take the first 6 how can i do this? allFeeds.Sort(delegate(SimplifiedFeedItem p1, SimplifiedFeedItem p2) { return -p1.PublishDate.CompareTo(p2.PublishDate); }); allFeeds.ForEach(delegate(SimplifiedF...

Python inserting a short integer into a list of bytes

Hi I have a list of bytes as follows pkt_bytes = [ 0x02,0x07, 0xff,0xff ,0x00,0x03] in the position 0xff,0xff I want to put a 16bit short integer How do I do it Regards ...

Python append() vs. + operator on lists, why do these give different results?

Why do these two operations give different results? >>> c = [1, 2, 3] >>> c [1, 2, 3] >>> c += c >>> c [1, 2, 3, 1, 2, 3] >>> c = [1, 2, 3] >>> c.append(c) >>> c [1, 2, 3, [...]] >>> In the last case there's actually infinite recursion. c[-1] and c are the same. Why is it different with the + operation? ...

Prevent deletion of Attachments from a SharePoint List Item

We have a custom SharePoint list type. Part of our list's functionality depends on the existence of a specific attachment for each list item. When the user accidentally or intentionally deletes the attachment (named DoNotDelete.fi!) of a list item our functionality for that item is broken. Therefore we would like to prevent user from bei...

List to Anonymous Type in c#

The short story: I want to convert a list/dictionary into an anonymous object Basically what I had before was: var model = from item in IEnumerable<Item> select new { name = item.Name value = item.Value } etc. If I have name, item.Name in a list or dictionary, how can I go about creating the same anonymous obje...

Is it possible to Consumes Sharepoint Webservices(SOAP-based) into ORACLE DB using PL/SQL

We have a requirement to store Sharepoint List Data into Oracle. Is it possible to Consumes Sharepoint Webservices(SOAP-based) into ORACLE DB using PL/SQL, like to access _vti_bin/lists.asmx?op=GetList and parse the list data and store in the DB. Has anybody tried this ??? Are there any things (Security, environment) things to consider...

How to get every Nth element of an infinite list in Haskell?

More specifically, how do I generate a new list of every Nth element from an existing infinite list? E.g. if the list is [5, 3, 0, 1, 8, 0, 3, 4, 0, 93, 211, 0 ...] then getting every 3rd element would result in this list [0,0,0,0,0 ...] ...

Manipulating Lists and Collections

I recently came across a module in my application which heavily uses Collections and Lists. And yeah its in Java. So either for performance reasons or whatsoever the author has used Lists and also maps in so many places. He does the usual operations on it like deleting some elements, adding, updating the list and every time he does that...

+ and += operators are different?

>>> c = [1, 2, 3] >>> print(c, id(c)) [1, 2, 3] 43955984 >>> c += c >>> print(c, id(c)) [1, 2, 3, 1, 2, 3] 43955984 >>> del c >>> c = [1, 2, 3] >>> print(c, id(c)) [1, 2, 3] 44023976 >>> c = c + c >>> print(c, id(c)) [1, 2, 3, 1, 2, 3] 26564048 What's the difference? are += and + not supposed to be merely syntactic sugar? ...

What is the most efficient way to place a list of drives in a ComboBox using C#?

I am creating a program that allows the user to select a drive letter from a combo box. I am debating between populating the box using a list or an array. What is the best and most efficient way to do this? ...

VS2008 IDE Error List not populating until build or debug

My Error List is not populating if I code something that should be a compiler error. When I go to run the program I finally see the build errors in the Error List. If I fix the code, the errors do not disappear from the Error List until I run again. I can't find the option driving this behaviour. It only does this when I'm working in ...