« first day (540 days earlier)      last day (4391 days later) » 

12:00 AM
Umh?
 
@unNaturhal I'm not well versed in C/C++ as most of the gurus here.
 
@LewsTherin Aaaaah! Neither me xD
 
@unNaturhal Who knows maybe I can learn something from it ha ha... how would I help you?
i need an excuse to be doing C/C++ anyways
 
@LewsTherin Just finding a way to make a snapshot of code more obfuscated as possible
(yeah, my english sucks...)
 
What are you trying to do anyways?
 
12:05 AM
is std::cin opened in binary or in text mode?
 
@RMartinhoFernandes Guaranteed?
 
@LewsTherin Watch this:
#define F3CD putchar
#define BA9C F3CD
#define xDC10 here
main(){int z[]={/*A sequence of number from 0 to 127*/};int i=sizeof(z)/sizeof(int)-1;xDC10:if(z[i]!=46){F3CD((char)z[i--]);goto here;}else BA9C((char)46);}
 
Facepalm.
 
@KerrekSB I think so. It's associated with stdin, and I think that one is in text mode.
 
12:08 AM
It's really unreadable, but I think that we can obfuscate it even more.
 
I'm wondering about this question -- doesn't the application always see a newline as \n, no matter the platform, if the input stream is in text mode?
 
I'd have to download the C standard to this machine to confirm.
 
I.e. all the translation is done by the host platform?
 
@unNaturhal Ah... whyyyyyyyyy???? lol
 
@RMartinhoFernandes I don't believe you have to "download the standard". I was certain that the standard downloads you.
 
12:11 AM
@LewsTherin Ahahahah! It's easy! Paste it in a .c file and put a sequence of number (separated with ,) where there is the comment.. And indent it xD
 
@unNaturhal more like remove the indentation..
 
#define F3CD putchar
#define BA9C F3CD
#define xDC10 here
main() {
    int z[] = {/*sequence of int separated by ,*/};
    int i = sizeof(z)/sizeof(int) - 1;

    xDC10:
        if (z[i] != 46) {
            F3CD((char)z[i--]);
            goto here;
        } else
            BA9C((char)46);
}
 
seems a bit redundant
#define F3CD putchar
#define BA9C F3CD
No?
 
Yeah, it is. Increase the obfuscation.. I think..
 
Why not make the name longer and filled with crap? putsdsihuthidjsodjs lol
 
12:16 AM
It's an idea.. mmmh :O
 
@unNaturhal lol
@unNaturhal Use pointer notation instead of subscript notation
 
In which way?
 
*(z+i)
*(z--)
 
Mmmh
Yeah!
F3CD((char)*(z+i--));
Very nice!!
 
lol
If you want to remove the (char) you can try -48 I can't remember which
*(z+i--)-48
It is harder to tell what you are doing.. unless you are a pro of course
 
12:22 AM
-48? It doesn't work xD
 
@LewsTherin The cast doesn't change the value.
(char)1 is still 1, not '1'.
 
@RMartinhoFernandes ?
Ugh, no way.
 
'1' is 49 in ASCII. (char)1 doesn't get you 49, it gets you 1.
char is a numeric type, just like int and short.
 
@RMartinhoFernandes Ehm... (char)46 gets you '.'
 
is there a large, stable, noncrappy data type for C++
 
12:25 AM
Casting int to short doesn't add or subtract anything. Same goes for char.
 
Hi all!
 
@RMartinhoFernandes But when I cast an int to a char.. I expect it to be a char
 
Hi man
 
The simple stuff I never get. Fml
 
12:26 AM
@LewsTherin Your expectation of what a "char" is is wrong.
 
@RMartinhoFernandes int to short can change the value. char to short normally won't (in theory it could, I've yet to see a compiler for which it was true).
@LewsTherin It is. But in C and C++, char is just a small integer type, typically with a range for -128 to +127.
 
@LewsTherin It is. But casting 1 to char doesn't get you the "digit one", it gets you the character 1, which in ASCII is the "start of header" character.
 
@LewsTherin Maybe I'm wrong, but I'm sure enough that you can see char as a byte (the atomic type byte of the pascal)
 
@unNaturhal That's right.
Ok so a char just happens to be an accidental name?
 
@JerryCoffin Isn't it UB if the value doesn't fit? Maybe I'm confusing things.
 
12:28 AM
@WhatsInAName No. All large, stable data types are crappy, regardless of language.
 
Well maybe not accidental
 
@LewsTherin "char" is a terribly misnamed type that has confused amateur programmer minds for decades
 
@RMartinhoFernandes Yes, it's officially UB, but from a practical viewpoint, you'll normally just get the N least significant bits.
 
It should be called machine_storage_unit_t or something like that. Maybe io_unit_t.
 
Ok, it's time to sleep. Gotta be up at 9 tomorrow. Good night.
 
12:30 AM
@KerrekSB Because when I think of char.. I think of you know char as in character bloody hell.
 
@KerrekSB byte?
 
@RMartinhoFernandes Night dude
 
@RMartinhoFernandes Good night!
 
@RMartinhoFernandes Or that lol
 
@JerryCoffin I thought we agreed it's not UB, but rather IDD?
 
12:30 AM
I am overflowing like mad
 
@RMartinhoFernandes G'night.
 
@LewsTherin In C, you need sometimes need to think differently.
@RMartinhoFernandes "byte" sounds like something for a cake shop.
maybe by_t, to stick with the idiom.
 
@KerrekSB By casting an into a char.. what exactly happens if it doesn't return the character format?
 
@KerrekSB IIRC, it actually depends on which standard you're talking about. In C89/90, I believe it was UB. In C99, it's either IDD, or else an implementation defined signal is raised. In C++ I believe it's always been IDD.
 
@LewsTherin Something else happens. See "standard conversions", in the standard.
It's not a magic "do what I want" type.
 
12:33 AM
@LewsTherin Think to char as the minimum allocable space of an architecture. If you studied a bit of pascal, you know that it has a type called 'byte' that have a range of value from 0 to 255.
Char is the same, but it's range is from -128 to 127. So, to have a type totally like 'byte', you have to use 'unsigned char'
 
daddy_i_want_a_pony_t x = argv[1]; std::cout << x << std::endl;
 
Signedness of unmodified char is implementation-defined, AFAIR.
 
@CatPlusPlus Indeed
 
@unNaturhal I won't be surprised if we could do unsigned char.. but that's probably a short.. not sure at this stage. I will read that standard
 
The only type which has two mutually exclusive permissible minimal ranges.
 
12:35 AM
I have to admit, a lot of the time I'm sloppy about IDD vs. UB. At one point I asked a couple of committee members, and they all agreed that though it's clearly not intended, there's probably nothing to stop an implementation from giving "the program crashes" for the definition of a particular implementation defined behavior.
 
Bye.. late here. Take care @unNaturhal good luck
 
@LewsTherin short int occupy 2bytes of memory, byte and char 1byte
@LewsTherin Bye bye man! Thanks for the help :)
 
@JerryCoffin I on the other hand am very interested in the distinction, mainly so I can give correct answers.
I once claimed that converting a too large value to signed was UB, and I was told off for it.
 
@KerrekSB Yeah, most people go through a period where they really care. I once reveled in it, but I've largely gotten tired of that particular type of argument. My life's been long enough now that I've decided life's too short (if that makes any sense).
 
@JerryCoffin If life is that short, what the hell are you doing on StackOverflow??
 
12:40 AM
Bwhahahahahah
 
Go and get your wife some flowers and buy that goat in Tanzania...
 
@KerrekSB Good question. Obviously wasting far too much of it.
 
@unNaturhal Size of short doesn't have to be 2 bytes.
 
@CatPlusPlus That's what she said.
 
@CatPlusPlus I know, it depends on the architecture. It was an example
 
12:42 AM
It depends on implementation.
 
Yeah, also
 
@KerrekSB Got my wife flowers earlier today. No interest in goats or Tanzania. Maybe I'll buy her a bottle of good Bordeaux. Maybe some Petrus. Then drink it when she can't stand it!
 
However, it's 2.42AM here, it's time to sleep. Good night people, thanks for the help.
 
anyone here know chinese remainder theorem
 
12:45 AM
@WhatsInAName Wikipedia?
 
Xeo
1:21 AM
@KerrekSB We should have a wikipedia bot in here
!wiki blablabla
and stuff
 
That one bot does wikipedia
The one with the smiley face :S
 
1:40 AM
@KerrekSB The wikipedia article for CRT sucks... I took me forever to figure how it worked...
and I still don't quite understand it without relying on Mathematica to do it for me.
 
Cathode ray tube?
 
lol
 
C Run Time?
 
Crystallographic restriction theorem?
 
Corneal Refractive Therapy?
Cardiac resynchronization therapy?
Certified Respiratory Therapist?
 
1:48 AM
Chongqing Rail Transit?
 
Capillary refill time?
 
Charitable remainder trust?
 
Critical race theory?
 
Criterion-referenced test?
 
Crisis Response Team?
 
1:50 AM
Cross River Tram?
 
Clinical Research Trial?
 
I don't even care anymore
 
C++ Retardedness Time
 
C++ Revolution Time
 
2:36 AM
Christmas Time?
 
Xeo
3:01 AM
freaks
And you brought me into the TVTropes Loop Of Death™ again. Shame on you.
 
@Xeo: Loop Of Death? More like the TVTropes Directed Acyclic Graph of Death™
 
Xeo
Right
 
Wait no it's not necessarily a DAG
 
Xeo
But I meant more like "read - open tab - read - open tab ..."
 
Ah, yes.
So it's more the TVTropes Directed Graph of Death™
 
Xeo
3:39 AM
Oh hey, I'm out of it
Seems I didn't pick the most interesting path
Just 40mins..
 
3:56 AM
IT... LIIIVES....
:D
 
Can I bother someone with a quick question?
 
@stormdrain who you bothering?
 
anyone who will listen
 
Well, I can listen, don't know much about C++ though :)
 
it's pretty basic--wondering how c handles int inputs. e.g. why would 65536 cause an int overflow, but 165536 would not
 
4:04 AM
Lol I think its because 165536 is the maximum and if it does overflow it will simply show the max
idk :P
 
cool. thanks for trying
 
Xeo
@stormdrain 65536 will cause an unsigned short overflow. Not an int, though
 
unsigned short can't overflow
 
Xeo
meh
You know what I mean
 
Hehehe
 
Xeo
4:15 AM
It's commonly called overflow, but it really is a modulo or wrap-around.
 
yes, sorry
 
Xeo
1
Q: How to initialize static member array in class with template

chm#include <iostream> using namespace std; template <class T> class Test { union obj { union obj* next; int num; }; static const int SZ=3; static obj* volatile list[SZ]; }; template <class T> Test<T>::obj* volatile Test<T>::list[S...

Close votes please
 
4:34 AM
            i = atoi(argv[1]);
            s = i;

            if(s >= 80){            /* [w1] */
                    printf("Oh no you don't!\n");
                    return -1;
            }
so given argv[1] == 65536, it "overflows" and passes the check s>=80
but given 165536, it does not pass s>=80
i guess i don't get how the truncation is working
and sorry, there should be unsigned short s; at the top of that code
 
Xeo
well... 165536 % 65536 = 35464, so it doesn't wrap around yet again
but 65536 % 65536 = 0, wrap-around.
 
aha!
Huge thank you!
 
Xeo
np
 
Xeo
4:55 AM
Just to reiterate, wrap-around isn't defined in steps of 100k, but in steps of the number of numbers the type can represent (65536 in case of unsigned short, or more specifically uint16_t aka an unsigned integral type of 16 bit)
 
I literally pulled an old computer up out of my grandmothers basement and found out it had MS-DOS on it... :D
multiple grammar fails ^
and spelling errors ^ :)
 
@Hoxieboy play some oregon trail
 
lol
 
5:15 AM
Good morning everyone! How's your compiler treating you today?
 
@DomagojPandĹľa: Like a nagging bitch.
Compiler errors galore! :-P
 
5:40 AM
augh wtf found a user account thats made for like a 6 year old
grandma.... why D:
 
@Insilico Ha! Today, I cherish compiler errors. A render architect usually faces his worst nightmares during runtime, when you get treated to a black screen of madness which won't crash and won't tell you what's wrong. A few hours later, you find that the code you went over 20 times had a typo, a boo-boo which acted like a crashing domino on the rest. And you feel ashamed. Disgraced. After 10 years of experience.
And then it runs. A beautiful radiosity renderer which actually runs realtime (after you allow it to process the geometry and simplify it). And then I'm the king of the world. And the cycle repeats. Like the Reapers in Mass Effect. :D
 
@DomagojPandĹľa you should become a poet... Or a philosopher? lol
Gangster windows "Yeah, Windows will delete all of Dave's files, then delete Dave's account."
Me: Sure! clicks continue
goodbye Dave
 
@Hoxieboy A poet? For I have passed through the valley of stacks, to which every automatic variable maps. I have battled the heap, and sometimes my code has sunk like a ship. Like Titanic, less than six days from now, to its dead we shall bow. For the hundreth time, a century - until we are all dead - eventually. It's really quite elementary.
 
@DomagojPandĹľa A natural.
Its pretty strange when you can find someones email in an old broken (now fixed) computer and potentially email them saying you fixed it
 
6:10 AM
Elementary, the poet says! Perhaps comparable to the concept of integration, or the eternal differentiation? Some will say: "Is he mad?". And to that, the poet says: "Quite, and I'm glad!". For I contemplate the vastness of space, while the cops introduce civilians to mace. It was to preserve peace, they said. Might as well get a maid. How does a maid factor in? Well, she keeps the house clean. Is this... Abstract? A polymorphic start? An interface in design? I do not know, it seems benign.
 
6:22 AM
hi
This is more of an OS/hardware question, but maybe one of you will know the answer: If you devote a thread to reading and writing to the disk, and it will probably be spending most of its time waiting due to hard disk latency, will the OS be smart and give core time to other threads while the thread devoted to reading and writing to the disk is waiting for the disk?
 
@newprogrammer I believe the scheduler changes threads/processes when they block
 
@newprogrammer Yes, I do it all the time - spawning threads for the purpose of I/O.
 
6:45 AM
Thanks guys
 
6:59 AM
0
Q: Why people use boost?

user1282910People say a lot about the unavoidable connection between cpp and boost. Some say that c++ without boost is nothing. I personally think that they`re overreacting. Since I cannot find a honestly answer for this on their website, I wanna know from you guys. What is it for? What it brings to me? Wha...

close or migrate?
 
sbi
7:12 AM
@Mysticial Actually, I fail to see what's wrong with it. The title was a bit unfortunate, but that was easily fixed.
The actual question content seems fine to me.
 
I wasn't sure whether it would've been suitable for Programmers.SE after a bit of cleanup.
 
sbi
@Mysticial I might be wrong here (I am still waiting for a reply to my comment to the question before I vote to reopen), but I fail to see what's wrong about a question "What is boost for?"
 
I'm for reopening. But -4 looks pretty bad.
Upvoted to put it back on the front page.
 
any one in here know how a program communicates with a micro kernel system.?
 
7:25 AM
normally via some sort of an interface
 
yes by the system call interface
but what I am trying to find out is if this interface is in the base (microkernel) or if it is in the servers
 
well, hard for me to tell, cause I have no idea what microkernel you're using
 
how about QNX or minix
or L4
 
sbi
7:47 AM
@Mysticial Based on jmort's reply, I have now voted to reopen, because that question, if not a shiny example of a great one, certainly seems good enough for me.
 
wow, you're right, he knows nothing about C++
 
sbi
@TaylorBioniks While I know next to nothing about microkernels, it seems to me an interface only makes sense if it is right between the stuff that is supposed to interpret with each other. (Unless, of course, you are actually asking about the interface's implementation. That would certainly be in the kernel.)
 
@sbi thanks, makes sense
 
sbi
@Mysticial Of course, the 5mins grace period ended the very moment I was trying to delete the superfluous ' out of that comment... :( I wonder how Murphy does that. He must be damn well on his toes all the time.
 
so that means the program communicates to the kernel and the kernel then communicate this the file system for example then back to the kernel and back to the program
 
sbi
7:57 AM
@TaylorBioniks As I said, I know next to nothing about kernel architecture. Usually, though, I think system calls simply return the results directly, either as a return value or an out parameter.
More advanced system interfaces do have asynchronous calls (I call into the system, my call returns immediately, and the system calls me back whenever it has results), but I don't know whether this would be implemented in the kernel itself, and somewhat doubt that it would be implemented in a microkernel. But this is just my guessing, don't take this as facts.
 
OK, thank you for the help
 
sbi
I'm in the process of extending my answer with examples of boost libs that made it into the std lib, but I'm afraid I'll miss out the most important. Anyone out there care to throw me a few examples?
 
threads
chrono?
 
sbi
Ah, threads. Yeah. About chrono I know nothing.
 
chrono is all the time functions
 
sbi
8:05 AM
But there's also lots of stuff added in C++03. Like shared_ptr, regex etc.
 
I've never used boost in my own code so I can't say more than that - other than the fact that it's been suggested to me before.
 
why is chrono actually called chrono, where does the word come from? any clues?
 
sbi
@Mysticial Yeah, the name implied as much. :) Still, I don't like to listen what I know nothing about.
@bamboon It's Greek, IIRC.
 
Chronotropic effects (from chrono-, meaning time, and tropos, "a turn") are those that change the heart rate. Chronotropic drugs may change the heart rate by affecting the nerves controlling the heart, or by changing the rhythm produced by the sinoatrial node. Positive chronotropes increase heart rate; negative chronotropes decrease heart rate. A dromotrope affects atrioventricular node (AV node) conduction. A positive dromotrope increases AV nodal conduction, and a negative dromotrope decreases AV nodal conduction. A lusitrope is an agent that affects diastolic relaxation. Many positi...
from chrono-, meaning time
@sbi yeap found it
 
sbi
In Greek mythology, Chronos () in pre-Socratic philosophical works is said to be the Personification of Time. His name in Greek means "time" and is alternatively spelled Chronus (Latin spelling) or Khronos. Chronos was imagined as a god, serpentine in form, with three heads—those of a man, a bull, and a lion. He and his consort, serpentine Ananke (Inevitability), circled the primal world egg in their coils and split it apart to form the ordered universe of earth, sea and sky. He is not to be confused with the Titan Cronus. He was depicted in Greco-Roman mosaics as a man turning the ...
 
8:07 AM
I learned the word from the original Red Alert. There's a building called a "Chronosphere".
 
@sbi, looks like you made the guy eat his words... :)
omg... I reading about someone who's trying to implement a bignum library and as @Xeo calls it "shoehorn" it into an ugly inheritance tree...
 
sbi
-1
Q: What is boost good for?

sbicommented: @jmort253: It's certainly a fine and rare trait to be able to admit an error, apologize, and try to limit the damage done. If we all could do this to the extend you just showed, this would be a much better place.

Well, time I had some breakfast.
afk
 
RealNumber -> Rational Number -> Integer -> UnsignedInteger...
 
shoehorning sounds good
 
8:21 AM
The problem is that although that chain is indeed an "is a" relationship, the amount of functionality decreases as you go further down the inheritance tree...
 
doing it the other way around would break the "is a" relationship
 
exactly
no matter how you do it, you'll break the representation that's under it.
a rational number has a numerator and a denominator... but um... integers don't have a denominator...
and you can't "subtract" fields going down an inheritance tree... lol
 
8:38 AM
@Mysticial your unsignedinteger is weird in that chain
 
it's just and example, but how is it weird anyway?
 
8:54 AM
ah wait, it's the other way around.
Your arrows threw me off ;-)
 
sbi
9:09 AM
Southern Guilford High School, North Carolina
 
 
1 hour later…
10:19 AM
what do you do about a question like this? stackoverflow.com/questions/10062039/pinteur-dans-c
 
Either close or decrypt.
 
I wonder if he just ran it through google translate
 
No, Google Translate isn't that crappy.
 
by the way, this one really makes me want to cry
-2
Q: Multiple threads adding values in a unordered_map at the same time makes it crash

Gregounordered_map<std::string,unordered_map<std::string, std::string> >* storing_vars; I have this variable in the scope declared in the scope. This is declared in the constructor. this->storing_vars = new unordered_map<std::string,unordered_map<std::string, std::string> ...

 
I'd close the question as it doesn't give very much useful information. Yeah, myBayNet doesn't name a type, but where is it declared? How is it used?
 
10:22 AM
apparently someone believes you can practice programming by pleading: "Dear compiler, I promise I'll understand what's going on afterwards, but I'm on a deadline, so just make it work now please"
2
 
I think I'm going to answer some more questions. I want more rep.
 
have fun
 
The most difficult of all is finding a good question that's not already answered.
 
10:39 AM
0
Q: Scope of evaluation of array bound of static data member

PotatoswatterI was going to file a bug against GCC, but then realized that if my interpretation of the Standard is correct, it's a core language defect, not a compiler bug. When a static data member of array type is defined outside class scope, identifiers in the array bound are looked up in class scope. §9...

 
@jalf that makes me sick in disgust!
 
ugh, some guy trying to convince me that references can be null, and people who say otherwise are wrong
-1
A: What is the point of having both points to and dot operator?

stefan bachertThe difference should be clear -> operates on pointers . operates on references. pointers could easily converted to references with * (dereference) references could easily converted to pointers with & (address operator) In most cases you could decide only to use concept. I guess the ...

 
Where can I actually find stuff on standard conversion? Because the one I am reading doesn't say anything about int to char typecasting
 
Where is @johannes when you need him.
@LewsTherin Standard conversions are implicit and not narrowing. int to char is not a standard conversion.
char to int is a standard conversion, and the reverse of (almost) any standard conversion can be performed by static_cast.
 
@Potatoswatter Well I was told to read about it earlier this morning..
@Potatoswatter so a lower type to an higher type is a standard conversion?
 
10:51 AM
@LewsTherin 1. What kind of evil person gives that kind of reading assignment. 2. Now you know about int to char.
@LewsTherin derived to base is a standard conversion, narrow to wide is a standard conversion.
 
10 hours ago, by R. Martinho Fernandes
@LewsTherin The cast doesn't change the value.
 
@jalf who up voted that crap?
 
As an exception to the rule, float to int is a standard conversion despite losing data. But this will often generate a compiler warning.
(long int to float may also lose data. Always use due diligence with FP.)
 
@Potatoswatter Ok earlier I assumed that (char)46 will return 46..
But it doesn't.. and I want to know why.. I just can't find info about it. I mean I guess that's why atoi/itoa was written.
 
@LewsTherin What doesn't it do?
Hmm, I was mistaken, wide to narrow is also a standard conversion.
 
10:56 AM
@Potatoswatter It doesn't return a character representation of 46
 
Narrowing conversions are only forbidden in initializer lists, oops.
@LewsTherin But that would be 2 characters. Where would the second one be stored?
It represents the number 46 in one char, that is, one byte. So it is a character representation of 46, just not using the character set.
 
@Potatoswatter How do I force it to use the character set? By character set you mean ASCII right?
 
@LewsTherin Yeah. To use text, you need to work with a string, not an individual char, and call something like atoi.
 
Pity, that it's not for programming :(
 
I do like me some bicycles, but that's linkspam.
 
11:02 AM
@Potatoswatter ok I want to try something.
 
@Potatoswatter Why is it spam? :) I have found such theme on SE and only say , that it's pity , that it's about real bicycles, not programming one :)
 
@user1131997 Who's to say that real bicycles can't be programmable? Anyway, you've given no context but just dropped a link for no reason and said "this is unrelated."
As it happens, my current work involves bicycle physics, so don't tell me that bicycles and programming don't intersect.
 
:3210607
char a = (char)1 ;
printf("%d", a) ;
 
@LewsTherin Yeah, a gets a standard conversion to int and it works fine :)
 
Why does it print 1.. even using %d
@Potatoswatter When I print using a %c I get a nice smiley lol.. if I use %d I get a 1. What's happening?
Does %d use atoi?
 
11:07 AM
@LewsTherin %d is more complicated than atoi.
 
@Potatoswatter Are you sure it is %c? I thought that was %s
Oh right..
?
Was that right or not? Why remove it?
 
Oops, I'm wrong again. %c in printf does expect an integer value, not a pointer.
It takes an int and prints the ascii.
 
Should I be listening to you? xD
 
%c in scanf takes a pointer. Confusing.
I never use that library anyway.
 
Mat
Everything in scanf takes a pointer. Thats the whole idea
 
11:10 AM
@Potatoswatter Yeah that's odd. C as we know it.
 
@Mat Well, yes, but more specifically it takes an array, which is rather different.
 
@Potatoswatter So when I pass in that char(46) It isn't taking an int?
Isn't it an underlying int
 
@LewsTherin When you pass any char to printf it's extended to an int as you pass it.
 
So why is
char a = char(46) ;
Not printing 46?
 
Mat
Using %i or %c?
 
11:13 AM
%c
It prints a .
 
Mat
Should be .
As ascii character 46 is a dot
 
yeah because it checks the ascii value
 
Right... so how can I force it to look numeric representation of char(46) without using atoi to doing -48 or something
 
Mat
Use %i instead. Or %u is probably better.
 
I guess I might as well wait for the sun to rise in the west?
@Mat %d works as well.. it doesn't use the ascii value
@Mat Btw, have we met before Mat? In another Age maybe?
 
Mat
11:17 AM
I know of at least two other people using the username Mat on so.
And I can't claim to be the first either :(
 
@Mat ha ha
nvm
 
Mat
In fact there are 205 pages of users called Mat on so...
That's scary
And I'm only fourth on rep.
 
Could someone help me with debootstrap?
 
Nothing can help you.
 
@Mat Why?
 
11:20 AM
I have a USB hard disk with a blank primary partition on it. I want to install Ubuntu on it. I already have Ubuntu as my main system.
Can I just magically "make that disk boot"?
(I'm happy with GRUB and all that.)
 
What does CD1 status mean in a C++ CWG defect report?
 
Mat
@LewsTherin I'm used to being the only one... Most sites don't allow dupes, and I can get in first.
 
committee draft 1… but what is that?
 
Mat
@KerrekSB Yes, but it might not work like you would like. Just set the boot flag in some partitioning program like GParted.
 
@Mat yeah..
Hopefully I am unique
 
11:29 AM
@Mat I'm not worried about the booting. I just literally want to install the OS.
Actually it looks very easy: sudo debootstrap oneiric /media/thedrive
 
18 hours ago, by daknok_t
Does anyone know why I cannot use boost::spirit::lex::tokenize with an std::istreambuf_iterator<char>? Probably some silly thing I overlooked…
@daknokt mainly because the documentation states that you should be using boost::spirit::istream_iterator (just a guess) although in practice I favour either reading the entire data in memory first or using a memory mapped file with char* input iterators
 
Xeo
Parsing while reading from a stream? Slow²
 
11:45 AM
Is it possible to actually resize part of visual studio? Like Eclipse does?
 
14 hours ago, by StackedCrooked
@kbok You can Google that exact sentence :)
@daknokt brilliant^^
 
Xeo
Isn't there any Q/A for non-deduced contexts?
Oh wait, I think I can use the typename FAQ
0
Q: no matching function error using template template parameters in a function

user1192525I'm trying to define a function using template template parameters (I just want to know how it works). I have the following: template <typename T, template <typename> class Cont> typename Cont<T>::iterator binary_search (typename Cont<T>::iterator first, typename Cont<...

 
@unNaturhal man cobfusc yields:
#define q0 putchar
#define q1 q0
#define q2 q3
main()??<int q4??(??)=??<??>;int q5=sizeof(q4)/sizeof(int)-1;q2:if(q4??(q5??)
!=46)??<q0((char)q4??(q5--??));goto q3;??>else q1((char)46);??>
 
hi
i m working on a logging project
can someone help me looking for bugs while i test it
 
-3
A: What is the point of having both points to and dot operator?

jalfcommented: If this isn't good enough for you, have a look at what actual compiler writers have to say: blog.llvm.org/2011/05/what-every-c-programmer-should-know.html, blog.llvm.org/2011/05/… and blog.llvm.org/2011/05/…

@jalf nice link. Also, brilliant: the OP has one thing going: he has endurance
 
11:59 AM
@Xeo This is why I chose to use output iterators in my preprocessor… it's natural for the owner of the buffer to manage buffering, whereas the parsing library shouldn't be specialized on char*.
 

« first day (540 days earlier)      last day (4391 days later) »