I thought it might have something to do with network shares like //mybox but it is more-likely a bug in bash. Hurts nothing, just made me curious....thanks for the braincells on this guys...
Type: Posts; User: jeffcobb
I thought it might have something to do with network shares like //mybox but it is more-likely a bug in bash. Hurts nothing, just made me curious....thanks for the braincells on this guys...
This is a dumb question that I thought of when working whilst tired and more than once when meaning to 'cd ..' (go up one directory) did a 'cd //'. Where exactly does that leave you? pwd just gives...
Some folks I work with would argue that the 'maybe' is superfluous and adds nothing to the code; I know this b/c I am always doing that (boiling down large, complex (IMHO needlessly so) if()...
actually if you are on a non-Microsoft platform, optarg is part of getopt as exemplified here. In any event you can't just assign it to a string and go for it. Here is how to use it (notice some bits...
Huh? You want to open a port....what what? a program? If so, you have to change the program to do it. Since you are on windows I don't know how else to do it. On linux you can treat sockets like...
I hate interview coding tests where you have to code in pencil. Ugh. You have my sympathies.
You do know this is the Linux subforum right?? Like VB doesn't run here....so how did you expect it to work?
I only have two problems with C#:
1. It is one platform only (for all practical purposes; mono is not even close to being useful) and
2. It is not a standard language. Yes MS BS-ed their way...
Actually in the interest of accuracy, the "linux desktop" is a misnomer; it would be fairer to say the GNOME desktop is C/GTK; KDE and others are all C++ oriented and that is not whining, just the...
BTW I would like to share one way that console apps can be better than GUI versions of the same thing. As noted in another thread I am in the process of restoring some 5 years of ripped DVDs to a...
Look into wxWidgets; I have used it to make GUI apps on Linux that also ran on Mac, Winders and a few others. It is C++ though. If you want C and want cross-platform, I think GTK is going to be your...
Well it might have been a longer blink;it was one of those US Robotics NAS units that sports a web interface.I was in the process of adding a new user to the access list and decided that it was time...
On Linux, Umbrello does a wonderful job of that bidirectionally (UML to code and code to UML.Umbrello UML Modeller Screen Shots
Just to avoid the copy when passing a string to a function, generally we create everything as a std::string and then set up functions to take it by reference:
void...
Rule #1: never admin a NAS when overtired.
I just wiped out 2 terabytes of data in the blink of an eye. Took 5 years to accumulate. Since I had to put off getting backup storage for this until I...
This: Semaphores in Linux - O'Reilly Media might help.
This will probably tick off the purists and the OP but the simple truth is this: folks who think that "using such and such dangerous routine because (pick one of "its just a throw-away project", "its...
Depending on your needs mate, check out Htop which I like a lot more than Top....
OK...the answer is...42.42 (number) - Wikipedia, the free encyclopedia
Yeah what MK said is correct: most of the time I just run cmake . (in the directory of the source/CMakeLists.txt file). Read the docs; there is also a decent book available for it from Amazon amongst...
Still not seeing any real solution for the original question; everyone keeps falling back on the one thing I cannot do (which I have made abundantly clear). So there is no way to catch this...
CMake works pretty well across platforms, Bakefile *can* as long as you are using a supported platform. Regular make, VS projects et all are just good on the platforms they come on. For example...
Not to go all George Carlin on ya but you have not tried *everything* because you know there is an answer out there that you have not tried yet so...
Actually we all screwed the pooch on this one, including you Quzah. Before you hit the reply button in indignation, reread what the OP wrote:
IOW he wanted a second array, not a shifted version...
Sure, never meant to imply otherwise; just that using overloaded functions on a struct allowed for code like:
CVariant A, B, C;
A = 42;
B = "Hello";
C = MyClass;
// etc