Hi,
I have the following LINQ query:
List<string> Types = (List<string>) Directory.GetFiles(@"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727")
Where(x => System.IO.Path.GetFileNameWithoutExtension(x).Contains("Microsoft"))
.ToList<string>();
How could I modify this so it can only get the values stored in a collection, without writing another LINQ query (which I assume will impact performance?)?
Thanks
How do I backup / restore any kind of databases inside my java application to flate files.Are there any tools framework available to backup database to flat file like CSV, XML, or secure encrypted file, or restore from csv or xml files to databases, it should be also capable of dumping table vise restore and backup also.
I need to convert XML data to Java objects. What would be best practise to convert this XML data to object?
Idea is to fetch data via webservice (it doesn't use WSDL, just HTTP GET queris, so I cannot use any framework) and answers are in XML. What would be best practise to handle this situation?
Using the pysnmp framework i get some values doing a snmp walk. Unfortunately for the oid
1.3.6.1.21.69.1.5.8.1.2 (DOCS-CABLE-DEVICE-MIB)
i get a weird result which i cant correctly print here since it contains ascii chars like BEL ACK
When doing a repr i get:
OctetString('\x07\xd8\t\x17\x03\x184\x00')
But the output should look like:
2008-9-23,3:24:52.0
the format is called "DateAndTime". How can i translate the OctetString output to a "human readable" date/time ?
http://www.microsoft.com/downloads/details.aspx?familyid=ab99342f-5d1a-413d-8319-81da479ab0d7&displaylang=en
there we can see:
Full Package
To download the full package, rather than the bootstrapper, click on the link below:
.NET Framework 3.5 Service Pack 1 (Full Package)
but this "Full" package still requires 50mb to download over the internet.
Is it possible to get the really-Full package to install on the desktop that haven't internet at all?
I have office 2007 installed with .NET programmability checked.
From VS2005/VC#2008 Toolbox I tried to add new item which is axspreadsheet, unfortunately I could not find it from .NET Framework / COM reference
any ideas how to solve this problem? My main purpose is to load xls file to winform.
Thanks
Now that the MVC 2 framework has been out for a while, I'm finding it very difficult to find documentation & answers specific to MVC2.
What are some good sites specific to MVC2?
How can i create a vanity url in codeigniter. Im having real trouble doing this in the framework. And there doesnt seem to be any good answers out there.
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)
I'm working on a simple framework, and I'm having a slight problem. I'd like to use call_user_function_array() to pass parameters to a function. That's fine, except the function I want to pass it to is __construct. I can't create an instance of an object with cufa(), and by instantiating an object, and then using cufa to call that instance's __construct(), I run into problems with a broken class because I'm calling the constructor twice (and one time it's called wrong.)
How to use Regular Expression to extract the answer "Here is the answer" from a HTML webpage like this?
<b>Last Question:</b>
<b>Here is the answer</b>
..:: Update ::..
Thanks everybody!
Here is my solution by using BeautifulSoup since I'm using Python framework:
response = opener.open(url)
the_page = response.read()
soup = BeautifulSoup(''.join(the_page))
paraText1 = soup.body.find('div', 'div_id', text = u'Last Question:')
if paraText1:
answer = paraText1.next
greetings all
i have an app(spring+hibernate) that needs to send thousands of emails simultaneously
and i was told that the best solution here is to have a mail server
i don't have any idea where to start or if there's a framework or a service that is better
so please guys give me some info where to start, thank you.
i have created a simple c# winform program that uses MS sql, and several DLLs. what steps should i do in order to get the program run on another computer.
ie should i transfer the exe file + the dlls i used?
should i also install .net framework 3.5 on the other pc?
i used visual studio 2008 to compile.
Hi everyone im new to a PHP framework codeIgniter, I am going over the user guide iv ran in to a problem, I am on the part where you load helper file but for some reason my code just isnt working I keep getting this error:
Fatal error: Call to undefined function anchor() in /home/fresherd/public_html/CI/system/application/views/blogview.php on line 17
now im not 100% sure that it is loading the helper file this could be causing the but I am not sure how to detect the file has been loaded
any advice will help many thanks, Alan
Do you know any books, articles, examples, screencasts that document how to develop an home screen widget on Android?
I just found these links:
widget design guidelines
Introducing home screen widgets and the AppWidget framework
I would like to develop a tiny home screen ticker and i'm searching for the proper way to code it.
Hi all,
I am using swing framework and applets.
If I take locale as 'en_US',the time shows in AM and PM.
If I take Locale as 'ms_MY',the time shows in Pagi and patang.
I want,
If I take locale as 'ms_MY',the time shows in AM and PM.
How to solve the time format.
please help me
Hi,
I use C# 3.5 DotNet Framework and Linq.
I have 2 Views which have the same result-schema, but in linq that are different objects of course.
How can I convert List a to List b?
I have read about the Tuples provided with the coming-out of the new .NET Framework features, and still am I wondering about how it could be useful in real-world enterprise applications.
Can one give me a brief explanation along with a simple but real-world code sample?
Thanks! =)
I need to find a certain key in a pdf file. As far as I know the only way to do that is to interpret a pdf as txt file. I want to do this in PHP without installing a addon/framework/etc.
Thanks
Most of the applications that I'm finding, inncluding LiveHelp and PHP Live Chat! feature terrible, un-commented, non-cross-browser compatible Javascript.
I'm looking for chat software that uses a Javascript framework to avoid some persistent and common bugs related to the DOM.
If I have no to little experience in either of them, but know enough Java and Ruby to be comfortable, is one framework harder to learn than the other? Is one easier to use for the beginner on these?
I know it is hard to answer. Just looking for general thoughts on it.
Hi all,
I'm trying to setup a simple logging framework in my shell scripts. For this I'd like to define a "log" function callable as
log "LEVEL" $message
Where the message is a variable to which I have previously redirected the outputs of executed commands. My trouble is that I get errors with the following
{message=command 2&3 1&3 3&-} &3
log "INFO" $message
There's something wrong isn't there?
TIA
I was studying the legacy API's in the Java's Collection Framework and I learnt that classes such as Vector and HashTable have been superseded by ArrayList and HashMap.
However still they are NOT deprecated, and deemed as legacy when essentially, deprecation is applied to software features that are superseded and should be avoided, so, I am not sure when is a API deemed legacy and when it is deprecated.
Spring's @Autowire can be configured such that Spring will throw an error if no matching autowire candidates are found: @Autowire(required=false)
Is there an equivalent JSR-330 annotation? @Inject always fails if there is no matching candidate. Is there any way I can use @Inject but not have the framework fail if no matching types are found? I haven't been able to find any documentation to that extent.