I have an object allStudents=Dictionary()
In Linq how would I get a list of all the students who are male? (student.Gender=="m") from all the Classrooms?
Ian
Hi there,
If I have the report name how can I programmatically get the name of the project/folder the report is in?
So for example if I have a report like so
http://server/Reports/Pages/Report.aspx?ItemPath=/ReportProject1/ReportName
Given "ReportName" how can I figure out that the report is in the folder "ReportProject1"?
So I guess is there a function where I can pass int he report name and get it's details or else query the report server for a list of its report folders and I can loop through these and check some how that the report is inside?
I'm looking for a way to collect the dependencies from Flex ActionScript and MXML files. I was hoping that mxmlc could spit them out (like gcc's -M option), but its option list doesn't seem to have anything relevant. I could write a parser, but would prefer not to reinvent the wheel if it has already been done, particularly given the two very different languages involved. Is there a program available to do this for me?
I'm tring to get my product's types to a list with Linq.
var types = (from t in NHibernateSession.Linq<Product>()
select t.Type).Distinct().ToList<Type>();
return types;
But its giving an Unable to cast object of type error
'...Domain.Product' to type '...Domain.Type'.
Please tell where am I going wrong.
i need to make a drag and drop list for re-ordering which is longer than the screen height.
in order to make this usable, the window needs to scroll while the element selected and the mouse is near the boundaries of the screen.
what is the best way to achieve this?
thanks :)
Is there a way in Zend Framework or default PHP to map a country (using country code) to a list of timezones? As an example I'm trying to replicate the Google functionality when searching for "time in australia right now" which displays all of the timezones and cities for that country.
a while ago i could comment any code in php with netbeans like this:
/*
*
*
*/
I just typed /* ENTER and netbeans gave me that lines above. then when i typed @ it gave me a full list of all available tags (author, param and so on).
i reinstalled my mac and since then it hasnt worked.
someone knows why and how i can activate it? i installed the netbeans for php only.
I am trying to use the Directory.GetFiles() method to retrieve a list of files of multiple types, such as mp3's and jpg's. I have tried both of the following with no luck:
Directory.GetFiles("C:\\path", "*.mp3|*.jpg", SearchOption.AllDirectories);
Directory.GetFiles("C:\\path", "*.mp3;*.jpg", SearchOption.AllDirectories);
Is there a way to do this in one call?
Here is a simple header file for six different programs that used to work right, but then my files also include other files. This needs to get changed so that if the dependencies change the files that include those dependencies get updated.
all: load list show add delete btree
%: %.cpp
g++ $< -g -o $@
From older times (Mac OS 10.4) I had found this command line on the web somewhere:
mdfind '(kMDItemFSContentChangeDate >= $time.now(-60)) && (kMDItemFSContentChangeDate <= $time.now)'
it gave me a list of files that where changed in the last minute. This does not work anymore on Mac OS 10.6. Can anybody explain why this doesn't work? And even suggest a working command line?
Just to confirm what I think I understand from reading about use of google APIs in RIAs (FLEX 4 and ActionScript) there is no way to connect to blogger API for example, directly from RIA because of google's crossdomain.xml file, right?
So if I want to use their APIs to get some data like content of my mailbox or list of posts on my blog I have to have some code running server side and RIA would just use that code as httpservice to collect data from google?
Or maybe I got it completly wrong?
In my application I need to keep track of a list of objects that are being displayed. Right now I have an NSArray with all of the NSManagedObjects. Would I be better off to store the ObjectIDs and then only request the object when I need it?
I am mainly concerned about memory at this point.
Hi,
I actually had a multiautocompletetextview, where i call host after 3 characters to have a dynamic search list.
But if the user put others characters, my code call host for each of them. So it must be very long.
Could I wait a moment (about 500 ms) before launching the action , in order to look if user do an action or not ? that's possible ?
Instead of executable code all it does is create files that don't do anything, even if the files are made executable.
TARGETS = load list show add delete btree
all: $(TARGETS)
%: %.cpp
g++ $< -g -o $@ -MM -MF [email protected]
sed "s/$@\.o:/$@:/" [email protected] > [email protected]
-@rm [email protected]
DEPS=$(TARGETS:%=%.d)
-include $(DEPS)
It starts to bore me that I always have to ask questions about trifles.
I simply need a list of all plugged in USB devices and have the user select one to let the console application receive any data the USB device sends.
I can then start playing around with the data in my program.
I don't want to use library's, only standard C++ functions, and the program should work in Windows 98.
How can I view and override the full definition for built in classes? I have seen the library docs but am looking for something more.
For e.g. is it possible to override the Array Class such that the base index starts from 1 instead of 0, or to override .sort() of list to a sorting algorithm of my own liking?
How can i show the input text from UITextFiled into UITableView
and the UITable Updated automatically once the UITextFiled get field by another user?
like, one the user get online he should be shown in the UITableView so the other users be able to see who's online
i did that already for the room list but!!!
So I have lots of links like address:port/Bla-bla/bla-bla/file/blabla234times/ created by some server (like VLC) how can I get all links (list of them) avaliable from server (abstract server working on windows) from my C# programm?
Am unable to add elements to a dropdown list via Javascript.
The below piece of code works in IE and Chrome, but not in firefox.
ddlId.add(new Option("",0));
In firefox, I keep getting an 'Not enough arguments' exception. Any idea on how to resolve it? Thanks
In VB.NET type this on a new line:
DateAdd(
Shouldn't a dropdown picklist of enum values appear?
It used to! I miss it!
Of course, this is just one example where an enum pick list does not appear where it did before.
Can anyone defend this or is it a bug?
I have a set of data in a matrix which I would like to display in my iPhone app with all of the rows and columns intact. Everything I can find on the web dealing with "tables iPhone" gives me information on UITableView, which only lets you show a list of items to the user - not an actual table in the HTML sense. What's the best way on the iPhone to display an actual table of data to the user, with column & row headings and table cells?
Was discussing over lunch why several ports of languages to the .net framework are prefixed with 'Iron'.
e.g.
IronPython
IronRuby
IronLisp
IronScheme
IronPHP
Anyone out there know?
(language list sourced from http://www.dotnetpowered.com/languages.aspx)