hi guys, i wonder if theres a tutorial out there or you could give me a quick and simple approach how i could do the following task.
i have a folder on my server. i want to build a kind of cms where i can easily delete files from a folder. i know how to upload them, i already found a tutorial.
i think of simply running through all file...
How can I get a list of the available NSFont familes, preferably with the fontName: equivalents.
...
I have a class which uses a list for passing to ssrs
and for each report I had to define a list of that type.
like this
List<ReportClass1> ReportClass1prods;
public List<ReportClass1> GetReportClass1
{
get
{
return ReportClass1prods;
}
}
List<ReportClass2> ReportClass2prods;
public List<ReportClass2> GetReportClass2
...
Hi everyone,
I'm new to prolog and I just can't figure it out.
I'm trying to build a simple program that receives a list of predicates, searchs for a specific predicate in the list, and applies a function to that predicate parameters.
something along these lines:
?- program([pred1(a,b,p), pred2(d,b,p), pred2 (a,c,p)]).
program (lis...
Hi!
Been reading a bit about the subject, and out of curiosity, online games which maintain a "lobby" system that lists games;
How do they keep each client synchronized with the current games list state?
I'm talking in a "client asks for the games list update" terms and not in event driven terms (game's state changes and immediately br...
Suppose I have a List with the elements
4,7,9,17,24
and I want to insert 11 but to keep them ordered.
So I'd like to do something like
list.add(3, 11), and to get the following list:
4,7,9,11,17,24
but if I do that I get the 17 replaced by 11.
Can you help?
...
I apologize in advance if this is vague...What is the best or most practical way to implement lists of custom types for MVVM? I had someone tell me that for each type I have I should have corresponding List of it. For example, if I have a Customer class I should also have a CustomerList class whose base class is List and within this c...
I have a class named Graph, in this class I have a member named V, it is a vector. I have a struct named Edge, and a list of Edges. like below:
struct Edge{
int u;
int v;
Edge(int u,int v){
this->u=u;
this->v=v;
}
};
struct Vertex{
int d;
int f;
.
.
.
}
class Graph{
vector < Vertex > V;
.
.
.
int edgeCmp(Edge* ...
If I have a class that holds one or several lists, is it better to allow other classes to fetch those lists (with a getter)? Or to implement a doXyzList/eachXyzList type method for that list, passing a function and call that function on each element of the list contained by that object?
I wrote a program that did a ton of this and I hat...
I thought I'd put together a quick script to consolidate the CSS rules I have distributed across multiple CSS files, then I can minify it.
I'm new to Python but figured this would be a good exercise to try a new language. My main loop isn't parsing the CSS as I thought it would.
I populate a list with selectors parsed from the CSS file...
Is it possible to use custom view as a section indexer? I.e. make it more transparent and use images instead of characters?
Is it possible to enable/disable SectionIndexer popup on demand without disabling FastScroll feature?
...
Suppose I have a bulleted list like this:
* list item 1
* list item 2 (a parent)
** list item 3 (a child of list item 2)
** list item 4 (a child of list item 2 as well)
*** list item 5 (a child of list item 4 and a grand-child of list item 2)
* list item 6
I'd like to parse that into a nested list or some other data structure which ma...
Im reading in a file and storing it in t1. How do i access the elements in t1? When i try to print it i get addresses instead of values. Also whats the dif between string and string[]?
CSVReader reader = new CSVReader(new FileReader("src/new_acquisitions.csv"));
List <String[]> t1 = reader.readAll();
int i = 0
...
I have two List of array string. I want to be able to create a New List (newList) by combining the 2 lists. But it must meet these 3 conditions:
1) Copy the contents of store_inventory into newList.
2) Then if the item names in store_inventory & new_acquisitions match, just add the two quantities together and change it in newList.
3)...
Hi,
I'm writing a parser in Python. I've converted an input string into a list of tokens, such as:
['(', '2', '.', 'x', '.', '(', '3', '-', '1', ')', '+', '4', ')', '/', '3', '.', 'x', '^', '2']
I want to be able to split the list into multiple lists, like the str.split('+') function. But there doesn't seem to be a way to do my_list.s...
Why editable-select list plugin<select><option>value</option>doesn't work with latest jQuery?
editable-select code:
/**
* Copyright (c) 2009 Anders Ekdahl (http://coffeescripter.com/)
* Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php)
* and GPL (http://www.opensource.org/licenses/gpl-license.php) licen...
Hi all,
i am using jCarousel as a menu in my website. there is a list of links there which is longer than its containing elements and jCarousel is used as a scroll bar to view that list.
my problem is that whenever a link is clicked and a new page is loaded, jCarousel resets to its begining position thus sometimes an active link is no ...
I don't know what I'm missing here.
I want to add an element if it is in arg1 but not in arg2 and want to remove an element if it is in arg1 but not in arg2.
I'm using an if condition with includes a function that return true if the element is in the arg2 list, false otherwise. Then use built in predicates append and select to add or r...
Hi,
I have about 100,000 lines of generic data. Columns/Properties of this data are user definable and are of the usual data types (string, int, double, date). There will be about 50 columns/properties.
I have 2 needs:
To be able to calculate new columns/properties using an expression
e.g. Column3 = Column1 * Column2.
Ultimately I woul...
I'm looking for something similar to List<T>, that would allow me to have multiple T. For example: List<TabItem, DataGrid, int, string, ...> = new List<TabItem, DataGrid, int, string, ...>().
...