If I wanted to have a collection that described the (recursive) contents of a root directory, including directories and files, how would I store them? Or do I need to come up with an object that holds:
-Current directory
-Parent directory
-Files in directory
..and slap them all in one big list and manually work out the relationship at runtime from…
Given the rise in popularity of C# and others, (which you can point out in the comments) what future does C++ have?
Consider that most OS code is a mix of Asm/C/C++ and a lot of FOSS still use it.
Also consider the upcoming C++0x standard that brings a few changes to the mix.
Should I frequently rely on default values?
For example, in PHP, if you have the following:
<?php
$var .= "Value";
?>
This is perfectly fine - it works. But what if assignment like this to a previously unused variable is later eliminated from the language? (I'm not referring to just general assignment to an unused variable.)
There are…
var r = /\d/g;
var a = r.test("1"); // will be true
var b = r.test("1"); // will be false
console.log(a == b); // will be false
Please explain to me why the result of r.test("1") alternates with each call?
I was able to work around the issue I was having by removing the g modifier. However I would still like to understand why this happens.
When it comes to TTS (text-to-speech) libraries in Linux, what choices do developers have?
What libraries ship with the majority of distros?
Are there minimal libraries? What functionality does each library offer?
I'm approaching this primarily from a C++ point of view, although Python would suit me too.
I could easily be wrong, but when I see databind I think of code that is quick to develop and inflexible and often ugly, e.g, embedding <% % tags in html.
O
The NHibernate Book discusses very briefly queries that fetch several queries at the same time. They only show how to do this with the native CreateSQLQuery command. Are there any options for fetching multiple entities simultaneously using the criteria or hql APIs?
I have a MDIForm with a MenuBar and a StatusBar. When I create a childform and position it with "Align = alBottom" the form goes out off the screen area and mainform scrollbars are activated. How to position the childform just over the StatusBar?
I have a Qt application that I can compile in Ubuntu 10.04 64-bit and on Windows. However, I would like to avoid switching to Windows every time I want to compile the Windows version.
Is there a way I can compile a Windows Qt executable in Ubuntu with mingw32 or something?
Further, is there a way to integrate that compiler into Qt Creator?
Pure Chat looked great but it was discontinued. Damn.
Any other great chat programs for ASP.NET? Looking for one that can be used in Operator Help mode.
I have the following script:
(function($) {
$.fn.easyPaginate = function(options){
var defaults = {
step: 4,
delay: 100,
numeric: true,
nextprev: true,
controls: 'pagination',
current: 'current'
};
var options =…
I am currently using subversion with visual SVN to manage and host my repo across my local subnet. i.e.
https://WIN-NU2CCXWBFDF/svn/
How can I configure Visual SVN to host outside of my subnet, i.e.
https://www.mysite.com/svn
I am trying to implement the deleting method and pass my parameters for the delete operation. I am using sqldatasource. Since the ID doesnt have a column in my gridview how can I get the value of the ID and set it as my delete parameter?
I was under the impression that the express version of Visual C++ 2010 was free for commercial use. However, when I start it up, the slash screen says that the app is for evaluation use only.
What gives?
Is it possible to do a regex replace on all IMG tags that are unclosed? If so, how would I identify:
<img src="..." alt="...">
...as a potential canidate to be replaced?
= <img src="..." alt="..."/>
Update: We have hundreds of pages, and thousands of image tags, all must of which must be closed. I'm not…
How can I apply multiple regexs to a single string?
For instance, a user inputs the following into a text area:
red bird
blue cat
black dog
and I want to replace each carriage return with a comma and each space with an underscore so the final string reads as red_bird,blue_cat,black_dog.
I've tried variations in syntax along…
I have a PHP script on a webserver.
This file is invoked via the shell by another program but it could still be run by the webserver in response to an HTTP request.
How can the script determine the way it was invoked?
I have created a C++ CLI wrapper for native C++ code, which in turn I reference in my C# application. Is it possible to somehow protect this assembly so that it may only be used in my application without the possibility of someone else using it?
I'm a Microsoft technology developer, I'm all about selfishness :)
Suppose that I have a test server with a large group of test accounts. The test accounts have unknown passwords which are hard-coded into the application's reports and are stored encrypted in the mysql.users table.
Is there any option or hack which can be used to make mysql accept any text as the "correct" password for an…
If you build the edmx file from the database and then the db changes, how do you get the model to pick up the change?
Do you delete the whole model and regenerate or can you detect changes?
I'm just starting out...
I am drawing some graphs using the Point object and I want to set it so
it supports doubles as its parameters. I am working on Visual C#, WindowsConsoleApplication
Thank you.
Probably a stupid question, but I couldn't find anything searching...
Is there a standard header that allows me to fetch the current time? Otherwise is there some cross-platform alternative?