take this simple code:
class A{
public:
virtual void foo() = 0;
void x(){ foo(); }
};
class B: public A{ foo(){ ... } };
main(){
B b;
b.x();
}
What I want is to build an abstract class that will have a function that will call a function expecting it to be implemented in the derived class
Thanks,
Jonathan
Hey all-
I have some files in my SVN repository that I would like to have execute permissions. When I check them into the repository with 755 permissions and run an svn export, the resulting files have 644 permissions.
There doesn't appear to be an option in "svn export" to retain the permissions. Am I missing something?
Thanks-
Jonathan
i'm facing a lot of TCP timed-out on a busy cache server and here below my sysctl.conf configuration as well as an output of "netstat -st"
Kernel 3.2.0-4-amd64 #1 SMP Debian 3.2.57-3 x86_64 GNU/Linux
Any advice or help would be highly appreciated
#################### Sysctl.conf
cat /etc/sysctl.conf
net.ipv4.tcp_tw_reuse = 1…
I'm attempting to sort a csv on my machine, but I seem to be erasing the contents each time I use the sort command. I've basically created a copy of my csv lacking the first row:
sed '1d' original.csv > newcopy.csv
To confirm that my new copy exists lacking the first row I can check with head:
head 1 newcopy.csv
Sure…
Hello,
I'm running a VPS with openSUSE 11.1 (i586). On the VPS is Parallels Plesk Panel 9.3.0 installed. The current PHP-version is PHP 5.2.11. I want to upgrade PHP to PHP 5.3, but I can't find good instructions on how to do this.
If I check for updates in Zypper, it says this is the latest release. In the Plesk Updates…
During set-up of a home server (running Kubuntu 10.04), I created an admin user for performing administrative tasks that may require an unmounted home. This user has a home directory on the root partition of the box.
The machine has an internet-facing SSH server, and I have restricted the set of users that can connect via…
I download many files, usually 2 or 3 a day, often 10ish.
Some of them are duplicates because I just can't be bothered to find the original in my downloads folder.
I have previously tried DAP and used that to create a new subfolder for each day's download.
yet I have found this insufficient as sometimes I wish to find…
During set-up of a home server (running Kubuntu 10.04), I created an admin user for performing administrative tasks that may require an unmounted home. This user has a home directory on the root partition of the box.
The machine has an internet-facing SSH server, and I have restricted the set of users that can connect…
I have the following code, which is run every 10ms as part of a game:
private void gameRender()
{
if(dbImage == null)
{
//createImage() returns null if GraphicsEnvironment.isHeadless()
//returns true. (java.awt.GraphicsEnvironment)
dbImage = createImage(PWIDTH, PHEIGHT);
…
I'm looking for a TFS 2010 GUI client that I can use outside of an IDE. I'm only looking to use the source control features in this case. I'm not talking about work items or build management.
Ideally it would be a complete client that can be used on a machine where Visual Studio is not installed.
Options I…
I'm building some basic Twitter functionality into my app, and am using the JTwitter JAR to read and set status.
It looks like there is a User class that can be used to set the location, but I just can't figure out how to set it with my GPS coordinates once I've got my Twitter object.
Has anyone been able…
My team is looking to switch from source safe to something else (finally). I think we have it narrowed down to Team Server 2010 or Subversion.
I would prefer Subversion, but my boss has concerns about how we will get support if were using Subversion and something goes wrong. It was suggested that we pay…
I am coding an external Javascript slideshow file, which i want to load and display on my HTML/CSS webpage.
How do i go about doing that?
I understand that i need to load the .js file in the header of the HTML, but what do i call inside the body's DIV that will make the javascript file understand that…
I'm working with an existing database where all dates are stored as integers in the following format: yyyy[3 digit day of year].
For example:
2010-01-01 == 2010001
2010-12-31 == 2010356
I'm using the following SQL to convert to a datetime:
DATEADD(d,
CAST(SUBSTRING(
…
There is a famous quote about unknown unknowns and known knowns and so on but I’ll let you review that if you are interested.
What I am worried about is that there are things going on in your environment that you ought to know about, indeed you have asked to be told about but you are not…
In this Issue: Sigurd Snørteland, Yochay Kiriaty, WindowsPhoneGeek(-2-), Jesse Liberty(-2-), Kunal Chowdhury, Martin Krüger(-2-), Jonathan Cardy.
Above the Fold:
…
In this all-sumbittal (while I was at MVP11) Issue: Michael Washington(-2-), goldytech, JFo, Andrea Boschin, Jonathan Marbutt, Gregor Biswanger, Michael Wolf, and Peter Kuhn.
…
I am trying to record using the iphones microphone: This is my code:
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
NSString *documentsDirectory = [paths objectAtIndex:0];
// the path to write file
NSString *appFile =…
Hello,
I just cannot for the life of me get my nant build file to terminate upon a test failure and return (thus preventing the packaging and artifact step from running)
This is the unit part of the nant file:
<target name="unittest" depends="build">
…
Is it possible to configure the FlexPaper reader to un-encrypt password-protected pdfs or swfs?
Here is the use-case:
User uploads a pdf
My server would then convert the pdf to swf via pdf2swf
Then somehow encrypt the swf with a password (not sure best way…