list

Sharepoint 2010: Can't create a folder in a custom list

Hi, I'm trying to create folders in a set of custom lists I've created. However, when I try to do this, the New Folder button in the Ribbon is disabled. I read up on the matter; and this lead me to look to enable folder creation in List Settings -> Advance Settings. However, there doesn't seem to be an option to enable folder creation o...

Why am I getting stuck making IN query with Groovy to run against Oracle.

I'm trying to make an in statement with values coming from DB and then use them in another query. DB is Oracle Example: I've been beating my head around this for quite some time now. I need some help: Groovy Code: def myList = [] def myQuery = "select USER_ID from USER_TABLE where rownum < 3" println myQuery sql_dw.eachRow(myQuery) {...

Shell script to merge two list and remove duplicates

I have the following code: get_list_a() { $MYSQL -B -u $USER --passwword="$PW" $DB1 <<EOF select name, value from mytable_a EOF } get_list_b() { $MYSQL -B -u $USER --passwword="$PW" $DB2 <<EOF select name, value from mytable_b EOF } get_list_a >$test.txt Now I need to combine a and b first and remove all dups(key is name, ...

The correct display name/field for a list item in a Sharepoint list (using Web Services)

I'm creating a program that uses SharePoint Web Services to query and show a Sharepoint list to the user. I can only show one column at a time, so I need to find a 'default column' or 'display column' to show. I know 'Title' is commonly used in many of the content types but I want this to be robust with any type of custom content type or...

How To Use LINQ To Find Matching Data Against A List Of Strings

Hello, I have a specialized string dictionary of (string, string) (_RulesAndTheirDescriptions) that contains the name (key) and description (value) of methods in a given class. I currently do the following query to search for a match on the key or value and then bind that to a grid. Works great! Dim Results = From v In _RulesAndThe...

How can I make a std::list of arrays?

I would like to make an std::list of arrays. specifically, I want a list of arrays of Borland Code Builders AnsiStrings. the real kicker being that I would like the arrays to be allocated dynamically. How do I define the list? Im so lost here i dont know were to begin. std::list<???> myList; What am I putting inside the angle brack...

Type-mismatch in between List.reduce and defined type

Hello guys, I'm trying to make a function array, which I'm using inside a List.reduce HOF. I used to have a let minimax = [| (min : int->int->int); max |] which was working great, but now I want to get the max value of a list, so I thought: let minimax = [|List.min; List.max|] This, however, throws the following error: Minimax.f...

Converting a list of ints to a byte array

I tried to use the List.ConvertAll method and failed. What I am trying to do is convert a List to byte[] I copped out and went this route but I need to figure out the ConvertAll method... List<Int32> integers... internal byte[] GetBytes() { List<byte> bytes = new List<byte>(integers.Count * sizeof(byte)); ...

Extension methods and a GetBytes implementation

I'd like to use a GetBytes extension method on the List class... public static class Extensions { public static byte[] GetBytes<T>(this ICollection<T> col) { List<byte> bytes = new List<byte>(); foreach (T t in col) bytes.AddRange(BitConverter.GetBytes(t)); return bytes.ToArray(); } } W...

Created a numbered list with For Loop

You would think I would get this done in 10 seconds, but I've spent 1/2 hour and am getting nowhere..Here is what I have/want: <table> <% i=0 %> <% for name in @names%> <% i++ %> <tr> <td><%= "#{i}" %></td> <td><%= name.first %>"></td> </tr> </table> Yes, all I want is a numbered list of names, l...

How To Sort A List Of Lists?

Ok, I have a list of lists that I would like to sort. First, some code: foreach (var Row in Result) { foreach (var RowAll in Row.All) { DataObject.Add(new List<string>() { RowAll.Value1, RowAll.Value2, RowAll.Value3}); break; } } Now I want to sort the parent list by each c...

tricks for floating elements inside list elements

I'm trying to create a instruction list using ordered lists (ol). Inside I want the text for the instruction to be floated left and the image showing the step floated right. I've tried wrapping the content inside the list item (li) like so: <ol> <li><p style="float:left">Follow these instructions</p><img style="float:right" s...

Concatenate tuples in empty dict

errors = {} #errorexample errors['id'] += ('error1',) errors['id'] += ('error2',) #works but ugly errors['id'] = ('error1',) errors['id'] += ('error2',) If 'error1' is not present it will fail. Do I really have to extend dict? ...

jQuery next sibling li not working on last item

This is currently working, for the most part: $(".nextproject").click(function() { $(window).scrollTo( $(this) .parents() .nextAll() .find("li:visible:first"), 1000, {easing:'easeOutExpo', axis:'x', offset:-75 } ); }); You can see the demo here: http://www.studioimbrue.com/index2...

How to subtract specific elements in a list using functional programming in Mathematica?

I have a list of dates and values in the format: {{{dateInfo1},value1},{{dateInfo2},value2},...,{{dateInfoN},valueN}} With some actual dates and values: {{{1971, 1, 31, 0, 0, 0.}, 1.0118}, {{1971, 2, 28, 0, 0, 0}, 1.0075}, ..., {{2010, 5, 31, 0, 0, 0.}, 1.0403}} For those curious, it's a list of US versus CAD $ values pulled from...

using malloc for block of structs

I am trying to allocate a block of memory, and store a list of structures without using multiple mallocs for each... this is just a generic example, I don't have the original code I was working with earlier, but this is the general idea, but my problem was that I was getting heap corruption when other parts of my code executed after the ...

how to create a linked list of tables, a table represents a group of elements

what I am trying to do is represented in my other question with code. Basically I need to keep in memory a table of elements (structs), there's no fixed number of elements that can exist, but it is small, but I still can't use an array. And I don't want to use a linked list of elements because I don't want to keep adding and deletin...

Null check always returns null, if removed returns Object reference not set to an instance of an object.

I have some code which gets child items for a menu via the GetChildren function which takes a list of menuData: Dim builtMenu As New List(Of MenuData)(_rawData.FindAll(Function(item) item.GroupingID = 0)) For Each menuData As MenuData In builtMenu If menuData.Children IsNot Nothing Then menuData.Children.AddRan...

List Sorting puzzle

Assuming I have final Iterable<String> unsorted = asList("FOO", "BAR", "PREFA", "ZOO", "PREFZ", "PREFOO"); What can I do to transform this unsorted list into this: [PREFZ, PREFA, BAR, FOO, PREFOO, ZOO] (a list which begin with known values that must appears first (here "PREFA" and "PREFZ") and the rest is alphabetically sorted) ...

will asp.net mvc model binder keep a posted array in the proper order?

Hello, so i've got an array of numbers that i'm posting to an asp.net mvc action that has a list(of integer) parameter and it all works great. my question is this: Is it safe to assume that the list(of integer) will have the numbers in the same order as they were in the array i posted? Thanks for your time! EDIT: The data being ...