pebkac

Java not inheriting accessor methods?

Given a class "Bar" that extends class "Foo" which implements interface "DeeDum" public interface DeeDum { public String getDee(); public String getDum(); } public class Foo implements DeeDum { public String dee = "D"; public String dum; public String getDee() { return dee; } public String getDum() { return dum...

How do you compare a value from jQuery with a fixed number?

How do you compare a value from jQuery with a fixed number? I thought this might work but it doesn't: if (parseInt($("#days").value) > 7) { alert("more than one week"); } ...

Visual Studio loses track of pending changes after unshelve

Yesterday I worked on a set of changes I don't want to check in yet, and at the end of the day, decided to shelve my changes. The changes included a bunch of added files. The shelving worked fine, but today when I unshelved, the following happened: VS told me four writable files already exist in my workspace. These files were the ones ...

Odd Behaviour in Removing .git

I tried to remove my Git-files: rm -R .git | yes My CPU becomes loud, and no file is removed. I cannot understand what is going on. How can I remove my .git-files? ...

How to retain similar character encoding

I have a logfile that contains the half character ½, I need to process this log file and rewrite certain lines to a new file, which contain that character. However, when I write out the file the characters appear in notepad incorrectly. I know this is some kind of encoding issue, and i'm not sure if it's just that the files i'm writing...

modulus operator in c++ driving me mad!

Hey all, my names joe and im running into a few issues with the modulus in c++ heres the problem: #include <iostream> #include <string> using namespace std; int main() { //In short, this is what i am trying to do: //divide two numbers, and get both the quotient //and the remainder //however, as an example, this below produces a remai...