« first day (521 days earlier)      last day (4441 days later) » 

10:00 PM
hmm, there is a message on my screen from over two hours ago. Something is wrong here.
 
@MooingDuck Sorry. I've been reading about salted hashes.
I would flag the comments if they're egregiously off-topic.
 
@Maxpm AFAIK git, there'll be only merge commit on master. But you should just try and see.
Yuck, ugly legacy GL questions.
 
hmm, my stack tracing has quite a bit of overhead though :/
 
That code looks awfully complicated.
 
19 simple ASM ops (push/pop/mov), 3 lea, and a call to enter. 7 moves, a test and a je to leave.
@CatPlusPlus It's designed to be simple first and foremost
oh well
 
10:17 PM
@Xeo My OS will boot without ever even writing to disk (i.e. can run from CD image if necessary). Rebooting things, therefore, does not result in any extra wear.
@Xeo besides, IME laptops get suspended instead of rebooted, due the fact that it convenes the mobility side of things. Desktops get shutdown out of power consumption considerations
@Xeo lastly, SSD's are in fact ideal just for laptops: decreased power consumption, decreased heat generation (reducing fan noise) and less sensitive to shocks (no moving parts).
As far as I can tell, having SSD in your laptop makes OODLES of sense.
 
10:45 PM
The SSD I had in my laptop was awesome... until it failed...
 
11:19 PM
     Aye, I answered a Usenet posting!
(Note: the reason that there's no vote button is that there's no rep count.)
 
oh damn, no rep
 
Hi.
What's new?
 
Nothing.
Same old boring life.
 
oh how boring.
 
11:33 PM
well there is a story about a swede who had immigrated to America and had set up a farm on the prairie (speling?). anyway, he knew that many scandinavian words sound about the same in english, like "hus" -> "house", or "seil" -> "sail". So when the crank to the water-lift broke, such crank being a "veiv" in Norwegian, he went over to the neighbour and said, "may i borrow your wife?".
^ I do not know why the swede started with the Norwegian word for crank.
ok im 2 dumb
 
@MooingDuck if I have a vector of vectors, can I have vectors of different sizes?
 
@PetrisRodrigoFernandes yes.
 
@je4d which is the best way to make a vector of vectors? (i'm new with stl)
 
@PetrisRodrigoFernandes depends on which dimensions are known ahead of time
@PetrisRodrigoFernandes yes
 
@PetrisRodrigoFernandes I'm not really sure which different ways you're considering. vector<vector<T>> var is the normal way
 
11:46 PM
std::vector<std::vector<T>> container(rows, std::vector<T>(cols)); //resizable
std::vector<std::array<cols, T>> container(rows); //faster, not resizable
 
@je4d I did vector<vector<int>> but i got a lot of wrong values
http://stackoverflow.com/questions/9796475/2d-vector-with-wrong-values
 
@PetrisRodrigoFernandes because you only resized the first one, each vector is seperate
 
it's annoying that answers that just post fixed code get accepted over answers that explain what's wrong
4
 
@SethCarnegie yes
also, why does the STL still not have a matrix/grid/2dvector class?
 
@MooingDuck This could work?
vetor[0].resize(10);
for(int i =0;i<vetor[0].capacity();i++){
vetor[0][i].resize(10);
}
 
11:50 PM
@MooingDuck how fundamental a data structure is a matrix?
 
zzzz
 
@PetrisRodrigoFernandes no
 
@SethCarnegie Yeah, one of the many reasons why I've (almost) stopped answering a certain category of questions... lol
 
@SethCarnegie how fundamental is that stupid type for doing fast matrix math? I can't even recall it's name because I've never used it
 
And the result is... I've answered like 1 question in 5 days. Wonder what's happened to all the good stuff...
 
11:51 PM
@MooingDuck I have no idea which one you're talking about
 
@SethCarnegie at GoingNative the guys implied they want a much bigger library to approach the C#/Java libraries
 
@Mysticial same, I just decided to go down to the noob questions again because of the lack of real questions
@MooingDuck yeah, but the STL wasn't designed for that, you'd need a new library (PCL was it?)
 
@SethCarnegie valarray, but also complex.
@SethCarnegie that's past tense. WHere should C++ be going? People are looking for bigger libraries
 
@SethCarnegie yeah, PCL was what herb called it
 
Well, which I should study to grow up my stl knowledge? (sry about my english)
 
11:53 PM
@PetrisRodrigoFernandes vetor.resize(10, std::vector<int>(10));
 
All the "hot" questions in the past 2 weeks have been mostly silly ones...
 
@PetrisRodrigoFernandes en.cppreference.com/w/cpp
 
@PetrisRodrigoFernandes you're on the right track, keep on as you are :D
@SethCarnegie but 2d arrays are very common
 
@MooingDuck your chance to make a C++ standards proposal :P
do C# and/or java have matrix libraries?
 
@je4d I would push for 99% of boost, and then start going through the Java library and bringing over those... categories. (Obviously not a 1:1, because the Java library is flawed, but we can learn
 
11:55 PM
i feel like I should know, but it's been ages since i used either
 
boost should be reimplemented with all of C++11
 
@je4d int[][] a = new int[2][4]; // Two rows and four columns. 2d arrays are so basic that they're part of the language.
@je4d (C++ kinda sorta has this, but C++ ones aren't runtime resizable, Java/C# are)
 
@MooingDuck well you can do that with C++... but that ain't gonna give you a dot and/or cross product
 
int[][] a = new int[2][4];
a = new int[3][6];
a[1][2] = 7;
now translate that to C++, and there's a scary amount of math involved, plus no bounds checking.
You need an entire class
it's bigger than vector
so why isn't it in the library
 

« first day (521 days earlier)      last day (4441 days later) »