I can pretty much spell what happened. Bound to be something like mkdir -pv "$(dirname "SOMETHINGWRONG")" but where does it happen (and why does dirname not signal an error and post Usage to stderr etc.)
Subshells spawned to execute command substitutions inherit the value
of the '-e' option from the parent shell. When not in POSIX mode, Bash
clears the '-e' option in such subshells.
@Morwenn it's just that I like to go back to project regularly. ideas-luminus started in 2014, Sprockets-PHP in 2012, gol 2014, bow 2013, RPG 2014, sprockets-pl 2014, bdiscuss 2013.
@EtiennedeMartel So they've decided the Paris accords are nonsense, and a little more global warming would be a good thing. What of it?
@BartekBanachewicz Actually, yes--there's a big difference between "tires touching snow", and "whole undercarriage of car dragging in snow", and "car completely buried in snow".
@BartekBanachewicz In that case, I'd agree--it doesn't make much difference how thick of a layer it is (except how long it takes to melt).
Well, at least until/unless snow gets so deep you can't see road signs any more. Most places, road signs are something like 2 meters off the ground. In some of the mountain passes in Colorado, they put them more like 4 meters up...
@BartekBanachewicz I actually played with that once. Some people had a bike that sounded wrong or something and the cylinder (?) had a small access hole that you could attach a tube to and that was fed into a raspberry pi air pressure meter so we could plot the pressure. In other words this is somewhat DIY.
@BartekBanachewicz Yes (at least AFAIK). I wasn't trying to say the two are the same--only that Honda has a pretty long history of unconventional thinking/designs with respect to valve timing and how to manipulate it to get a lot of power when you need it, and still drive nicely the rest of the time.
So I am writing a function in C++ that mimics the Java toUpperCase() and for some reason I keep getting a segmentation fault but I can't find the memory error anywhere. Can someone point out the problem here? I am also using the stringEqual function in toUpperCase().
Thanks, Evin
//Global Variab...
@Mysticial It's there twice in the middle of other code, so it's not just a matter of accidentally pasting the code in twice, if that's what you're asking.
Hi folks, can somebody recommend a good book (ideally available in PDF format) for coding standards in C++? I haven't touched C++ in the last decade and that was a homework for college. I've been writing code since (Java, Ruby, Clojure) and I need to quickly get up to speed. Thanks!
This question attempts to collect the few pearls among the dozens of bad C++ books that are published every year.
Unlike many other programming languages, which are often picked up on the go from tutorials found on the Internet, few are able to quickly pick up C++ without studying a well-written...
@fredoverflow Probably. And he thought he thought he needed (x.compare(y) == true) because of his background with the department of redundancy department.
I took an exam today. One of the tasks was to write a Markov algorithm that would enter an infinite loop if a certain condition was met. I could have made the algorithm just sit there doing nothing, but instead I decided it would be more fun to make it write DEADBEEFDEADBEEFDEADBEEF... Don't know it the exterminator got the reference but I did get "excellent" for the exam.
@АндрейБеньковский Probably received marks for succeeding and showing that you succeeded. Easy to grade, and programmers worth their salt know it's a reference, though not always to what.
@Perfect_Comment I don't know. Give it a shot and tell us how it goes.
I would like to know how to get the currenty logged on user's name as a wstring.
I only found LPWSTR examples like that:
#include <iostream>
#include <windows.h>
#include <Lmcons.h>
using namespace std;
int main()
{
wchar_t name[UNLEN+1];
DWORD size = UNLEN + 1;
if (GetUserNameW(...
How can I have so many vga cables in this house and yet have no idea where a single one is :\
@nwp a foot is a spot more than than 30cm
I am of course coming from a point of view where I don't have my head up my arse and can comprehend units of various sizes and not get caught up on their apparently silly yet undeniably relatable origins
Hi, I had a small question: I know that Rule 90: en.wikipedia.org/wiki/Rule_90 for cellular automation is simply an XOR of the neighbors, but what is rule 110? en.wikipedia.org/wiki/Rule_110 is there a simple mathematical operator for it as well?