list

sifr - How to make it work with .active ul links

I have a SIFR script which coverts primary navigation items thusly: [code] /********************* * sIFR configuration **********************/ var itc = { src: '/assets/js/sifr3/demo/font2.swf' ,ratios: [7, 1.32, 11, 1.31, 13, 1.24, 14, 1.25, 19, 1.23, 27, 1.2, 34, 1.19, 42, 1.18, 47, 1.17, 48, 1.18, 69, 1.17, 74, 1.16, 75, 1.1...

C# - Remove a item from list of KeyValuePair

How can I remove a item from list of KeyValuePair? ...

Object to List<Song>

I am currently using ObjectListView, and right now, i'm trying to get it so if i click on an object (row), it will give me information about that song (in list form). Currently, I have a custom list: public Song(string title, string artist, string album, string genre, string time, int playcount, string location) { t...

Shallow copy of a collection in Java

For this method, I have to make a shallow copy of a linked list stack. So, first I would initialize the linked stack then would I use a for loop to go through the values to copy the stack. But, to put them in the right order, would I just have a nested loop to reverse the group of values? here is what I got so far, am I missing somethi...

like a List<string> but keeps the strings ordered?

I want something like a List<string>, but whenever I do an "Add", it keeps the list sorted. Any ideas? ...

Map List<Int32> using Fluent Nhibernate

Hello there, I need to map List<Int32> using Fluent Nhibernate. Sample code: public class ReportRequest { public List<Int32> EntityIds { get { return entityIds; } set { entityIds = value; } } } Please guide. Thank you! ...

How does indexing a list with a tuple work?

I am learning Python and came across this example: W = ((0,1,2),(3,4,5),(0,4,8),(2,4,6)) b = ['a','b','c','d','e','f','g','h','i'] for row in W: print b[row[0]], b[row[1]], b[row[2]] which prints: a b c d e f a e i c e g I am trying to figure out why! I get that for example the first time thru the expanded version is: print...

Sharepoint : Prevent a feature from activating on a condition..

I made a feature that creates a list with some default data (with a list definition and all required XML) I observed that when the list already exists, the data will be inserted again in the list... So I tried to make a "FeatureReceiver" to prevent the feature from creating the list if it already exists, but the base class of FeatureRece...

In Drools Rules, how to use two different ArrayList objects,obj1 is used in rule 1 and obj2 used in rule2?

I am doing ksession.insert(list) and after that I have to fire rule 1 in the drl file, then ksession.insert(list) and fire rule 2 in the drl. Could someone tell me how to achieve this. I read about agenda filters and facthandles but do not really know how to get this to work Below is some code: ArrayList list = new ArrayList(); list....

In Python, can I print 3 lists in order by index number?

So I have three lists: ['this', 'is', 'the', 'first', 'list'] [1, 2, 3, 4, 5] [0.01, 0.2, 0.3, 0.04, 0.05] Is there a way that would allow me to print the values in these lists in order by index? e.g. this, 1, 0.01 (all items at list[0]) is, 2, 0.2 (all items at list[1]) the, 3, 0.3 (all items at list[2]) first, 4, 0.04 (all items ...

Declaring a List of types.

I want to declare a list containing types basically: List<Type> types = new List<Type>() {Button, TextBox }; is this possible? ...

Editable Dropdown?

I have a php page with 4 text boxes, each need a "drop down" when the text boxes have the focus. Clicking the options would populate the (editable) text box(es) and close the drop down. The text boxes are of course part of html forms. How can I do this inline with javascript or ajax using minimal code? ...

How to generate simple Packing List with MySQL ?

Hi, I need help on how to create a packing list of a shipment with MySQL. Let's say i have 32 boxes of keyboard ready to ship, the master carton can contain 12 boxes. I only have value 32 boxes and volume of 12. The other value in result below is generated by sql command. Not coming from record. So this easily calculate that the numb...

Need "Editable Dropdown"

I need a white box, with a gray border to appear below this text box when the button is clicked. The drop down will have say, 5 to 10 lines of text, which hav the look and feel of the URL drop down at the top of your browser. Can I do this with a div? function $(id) { return document.getElementById(id); } <div id="keypad...

How can I maximally partition a set?

I'm trying to solve one of the Project Euler problems. As a consequence, I need an algorithm that will help me find all possible partitions of a set, in any order. For instance, given the set 2 3 3 5: 2 | 3 3 5 2 | 3 | 3 5 2 | 3 3 | 5 2 | 3 | 3 | 5 2 5 | 3 3 and so on. Pretty much every possible combination of the members of the set....

.NET - What is the best/correct way to iterator through a List and remove misc. members?

In C++ using std::list, this is a simple matter of erasing what an iterator is pointing to (the erase statement returns the next valid member of the list). What's the best way to iterator through a list and remove members that match a certain criteria? ...

.NET containers - when are members By Reference, By Value?

I migrate between C++ and VB.NET in my coding ventures... which leads to the occasional confusion about when something is by value or by reference in VB.NET. Let's say for example that I have an array of MyObject which is populated with a bunch of objects. dim MyArr(5000) of MyObject Now let's say that the information from this array...

Is my gridview paging/sorting inefficient?

Hi, I'm using a web service which returns a list of products. I created a Grid View programmatically and used the list as the datasource. However, I can't use the Paging/Sorting methods as it causes errors since I'm not using an ObjectSource control. I handled the paging and sorting manually, but I don't know if I'm doing it efficien...

Where can I advertise an open source project?

I have started an open source project and was wondering how I would best go about inviting people to work on the project. SourceForge is great but didn't fit the needs of the project. Any ideas? ...

Simple Java List Question

I am supposed to create an iterative method stretch that takes a positive number n as a parameter and returns a new ListItem beginning a list in which each of the numbers in the original list is repeated n times. For example, if the original list is ( 6 7 6 9 ) and the parameter value is 2, then the new list returned is ( 6 6 7 7 6 6 9 9...