« first day (430 days earlier)      last day (4532 days later) » 

cpx
11:03 AM
Ok, question has been reopened.
 
i think it's mostly herd instinct
what if a determined few people started walking with their right arm straight up
could they convince a herd of people on the street to do the same, just by example?
 
I am reading some source code.
 
Hmm, cake.
> some of the files are more than 8k lines
Is this common?
 
what exactly is the meaning of int myint = mychar - 'A';
 
It subtracts the value of 'A' from the value of mychar.
 
11:08 AM
what does the above formula do?
 
@IntermediateHacker it's ascii for a a char to int conversion
it makes the char equal to '9' be the integer value of 9.
 
It's a non-portable way of converting an uppercase letter to a number (A = 0, B = 1, C = 2, etc).
 
oh, i see. The coder is using this for a Tile-Map parser.
thanks.
 
char a = '9'; int i = a-'A'; i is equal to 9 if the char is ASCII.
 
11:10 AM
Sigh. Newbie isn't taking a hint on SO voting :)
1
A: redirecting output to a file in C

seheThis is the result of my testing things out with dup2 The more subtle point is remembering fflush at the right times :) Otherwise, you'll get very surprising results. Also, prefer fileno instead of hardcoding 1 (stdout) 2 (stderr). Redirecting stdin was left as an exercise for the reader #inc...

 
@rubenvb uh, no
 
Not even in ASCII.
 
but it might be part of some hex translation
 
ASCII 9 (0x39) comes before ASCII A (0x41).
 
@rubenvb a-'0'...
 
11:11 AM
hold on. What I meant was something else. nvm
mind lapse
you'd need a c-48 for the char to int thing.
@sehe or that.
I'm gonna shut up now.
 
Yeah, just stick with c - '0'. Besides working on EBCDIC (lol), it's much more readable.
 
Hey, i've got it. the source code converts A-Z characters on an external tilemap into int's (A=0 etc. thanks @RMartinhoFernandes) and then uses the value as an index for an array of images (tiles) and puts them in place. making platformers is not as easy as i thought.
woah almost all the starred messages belong to @RMartinhoFernandes
 
I'm awesome. And your screen is small.
2
 
@RMartinhoFernandes sherlock :-)
 
@RMartinhoFernandes even if I click on "show five more", I can't see them...
 
11:19 AM
My screen is displaying 5 starred messages, I think that's normal.
 
@rubenvb Hit show all 5646?
 
aaaargh new tab
and I can't star any of those :(
 
anyway, I've got source code to read. bye
 
0
Q: What is the type of a builtin datatype in C and C++?

Anisha KaulWhen we write int a;, it doesn't mean that we are creating an object of class int. What does it mean? What is the type of the datatype int in C and C++? Which header file shows what it is?

 
@rubenvb please tell me you don't instinctively star a message just becuase you see someone else has stared it
 
11:27 AM
please don't
(star nor tell)
 
@thecoshman not instinctively. Only when I think it deserves it.
I'm not a gnu
 
Just wanted to share what I think to be a rather nicely presented blog jeffwofford.com/?author=2
it's nice to see things that look so nice... now to actually read some stuff :P
 
@thecoshman yes, but you can't in general do the aesthetics without controlling the site. e.g. making a free wordpress blog that looks good is near impossible. because that's part of what they earn moneys on.
 
@AlfPSteinbach huh... I'm saying I like the aesthetics of this guys blog...
@AlfPSteinbach oh I see what your getting at. I find there are plenty of places to get reliable, all be it restricted free web hosting. Sure you will almost always have to pay for a URL, but then, bogging sites will not give you a free URL (Just a sub-domain) and even if you did feel the need to buy hosting, it is not that much these days
 
norwegian start.no used to have free web hosting with PHP. it was there for about a decade, i think. when they finally closed down i tried some other free hosting services, but they were all ephemeral, lasting only months.
 
11:36 AM
> bogging sites will not give you...
LOL. bogging sites give me a headache
@user1107594 I didn't know anonymous could come into chat
@user1107594: aha, just found you just can't talk in chat (need 20 rep)
 
¬_¬ I hate typos
 
what is the english word for the state of a firm that's had to close down, like us chapter 11?
in norwegian we say they're "konkurs"
 
@sehe Well, you can come to chat without even being logged in. Forbidding people that are already logged in would be a bit silly :)
 
erm... not to sure what you mean @alf
 
well we can say that Swedish Saab is "konkurs", and everybody knows what that means
 
11:40 AM
a company would be 'bankrupt' if it is out of money and has no way of getting (or making) any more money
 
ah thanks!
 
is that what you meant?
 
@AlfPSteinbach "Fucked up"?
:P
 
go me teaching Engrish :D
 
11:41 AM
just a snafu
 
wow, lua 5.2 was released, and now there is goto statement
 
@Rmartin I am having a hard time working out how to go about get my code to make use of shaders for things like the modelview matrix... any pointers?
 
you mean the most fundamental statement was missing?
 
yep, it was missing until recent release
 
@thecoshman In C++ I build my matrices outside and send them already computed to the shader. I use this neat math library called GLM that has functions to build matrices that replace all the old fixed function stuff. If you can find something like that for Java, I'd recommend that.
Like, I say, my_matrix = glm::translate(blah blah blah) * glm::perspective(blah, blah, blah); and then I just send that to the shader.
 
11:47 AM
anyone familiar with text encoding APIs on Windows?
 
so your vertex shader has one unifrom matrix for a persepctive translation etc
 
Need to convert UTF8->latin1, but it seems like Windows only has functions for going to/from UTF16?
 
I have a uniform for the modelview matrix and one for the projection matrix.
 
is your 'camera class' aware of the shaders? or do you have something that sites between the two?
 
cpx
11:48 AM
@jalf MultiByteToWideChar?
 
@jalf try to convert utf-8 -> utf-16 -> latin1
 
@thecoshman I don't have a camera class yet :)
 
@Rmartin huh
 
But I'd do it without knowledge of the shaders.
Just give it a function that returns a matrix that corresponds to the camera position/orientation and then the rendering code associates that with the uniforms.
 
that's what I was thinking
thanks
 
11:52 AM
@Abyx yeah, that's my fallback plan, was just wondering if it wasn't possible to do the conversion directly
@cpx that only converts to utf-16, as far as I can tell
 
If you can't find a decent math library, it's probably easier to do the math in the shaders than doing it yourself (GLSL has all those matrix operations builtin :), but it might hurt performance a bit.
It would mean recomputing the MV matrix for each vertex, which is clearly wasteful.
 
I am sure there is a matrix library out there, failing that, I would just roll my own.
 
The difficulty might be finding one that makes it easy to put the matrices into a FloatBuffer :)
 
putting a float[] into a FloatBuffer should be the easy bit :P
 
Ah, right, forgot that :)
3
Q: Fast Java matrix library suitable for JOGL + generic matrix math?

AlterscapeI'm interested in writing an OpenGL app in JOGL 2, using shaders instead of the fixed-function pipeline. I'll need to do a fair bit of 4x4 double-precision matrix math CPU-side, to replace the fixed function pipeline's push/pop/transform business. The same app is also going to include some mach...

 
11:58 AM
oooh
 
Not very good answers :(
It seems that you can find some decent libraries, but they lack the factory functions to generate translation, rotation, perspective, etc matrices quickly. Guess you'll have to build them by hand.
 
12:35 PM
@RMartinhoFernandes lol, I have found both of those before :P thanks though
 
Hi there, I am preparing for a test and I need a quick help. Is there an easy explanation, or a good source, to see the difference between virtual and non-virtual inheritance? I see that objects are shared in virtual inheritance, I would rather like to understand what is the reason for this distinction, pros/cons etc.
 
hi..guys. ... i got some success...in my code...code is compile well , Now the problem is to open the file..... fd = open( argv[1], O_RDONLY );
if( fd == -1 ) {
perror( "Failed to open audio file" );
return -1;
}
 
@Bober02: search on SO, cpptruths.blogspot.com/2006/03/… looks like it is a startingpoint
 
i m not able to pass file address for open........through jni code..
 
12:39 PM
will have a look now
cheers
 
@RanaS are you getting any sort of exceptions
 
@RanaS: I expect you mean the filename?
 
yes
no exception.. it returns.-1
 
is this the C code of the Java code?
 
this is c code thecosh
 
12:43 PM
and open is one of the functions from the library wasn't it? Just trying to get back up to speed with your problem
 
i read somewhere that argv[1] is a pointer of pointer.....is it true ??
yes open is library ..function.
 
let me guess... this argv[] is defined as a parameter of main
 
thecosh ,yes argv[] is main parameter
in my code , there is no need of main function.
my code is something like that...
jint Java_com_cls_ndk_NdktryActivity_pcmimp(JNIEnv* env, jobject javaThis,jint j1,jstring j2) {
short *blocks;
// char **argv[1]="wamu.pcm";
const char *pathname="wamu.pcm";

int fd;
struct stat fdStat;
int offset = 0;

// if( j1 == 1 ) {
// printf( "%s <audio file>\n", argv[0] );
// return 1;
// }

fd = open( j2 , O_RDONLY );
if( fd == -1 ) {
perror( "Failed to open audio file" );
return 2;
}

if( fstat( fd, &fdStat ) ) {
perror( "Failed to stat file" );
return 3;
}

if( !strncmp( ( j2 + strlen( j2 - 4 ) ), ".wav", 4 ) ) {
 
so you need to provide a replacement for the value of argv[1] which will probably need to be of type char[]
use www.pastebin.com in future btw
 
i m pasing file name as a string from the java code..
 
12:48 PM
yaeh, but you are dealing with a C library, where the concept of a string dose not exist. C code relies a lot on arrays of 'chars'
 
ok
 
@thecoshman @thecoshman: use Stackoverflow?
 
jstring is a data that is designed to allow JNI to take strings from JVM and push them into native code
@sehe yes, for a proper question use SO, but for just pasting code for use in chat, something like pastebin does the job
 
what will jstring conversion in native code ???
 
Jstring is like a magic class that both native code and java code can understand.
 
12:51 PM
@thecoshman yes, my point is that proper questions shouldn't go into chat
you can discuss questions in chat
 
@sehe I thought this was going to be a simple thing ¬_¬
 
and simple questions don't belong on SO?
 
thecosh do u have any idea , how to pass a file from java to native code ??
 
@Rana well, there is no fixed way of doing it. Though I am fairly sure you do not want to pass the file handler. You want to pass a string that is the file path to open. You want to make sure that either Java or Native code is working on a file, else you will shoot your self in the foot
I would guess that open() takes a charp[] or char* as it's first operand. so you need to convert jstring to one of those types, which ever one it is
assuming that open() does indeed take one of those types. You should probably find out what data type it is expecting
 
I agree with @sehe. You should try stackoverflow.com/questions/ask. I'm sure there's lots of people there that know a lot about JNI.
@thecoshman open() is a POSIX system call. It takes a char const* as first parameter.
 
12:57 PM
@sehe quickly little questions such as "what is the stl linked list class" do not belong on SO, they are a Google search, or perhaps here if they are not so simple to search for
 
Given a pathname for a file, open() returns a file descriptor, a small, nonnegative integer for use in subsequent system calls (read(2), write(2), lseek(2), fcntl(2), etc.). The file descriptor returned by a successful call will be the lowest-numbered file descriptor not currently open for the process. By default, the new file descriptor is set to remain open across an execve(2) (i.e., the FD_CLOEXEC file descriptor flag described in fcntl(2) is initially disabled; the Linux-specific O_CLOEXEC flag, described below, can be used to change this default). The file offset is set to the beginning of the file (see lseek(2)). A call to open() creates a new open file description, an entry in the system-wide table of open files. This entry records the file offset and the file status flags (modifiable via the fcntl(2) F_SETFL operation). A file descript
 
@RMartinhoFernandes well then, there you go @rana you need to convert your Jstring to a char*
 
0
A: C++ decrement confusions

R. Martinho FernandesIn Hell++, a theoretical implementation of C++ that is 100% compliant with the standard but unfortunately only exists in my head, that C++ code doesn't print anything, and instead tries to order pizza online.

 
1:12 PM
@thecoshman yeah brown bags have different color than blue balls. True. but irrelevant
 
sbi
@RMartinhoFernandes Should we close this older question in favor of the newer FAQ entry?
 
0
Q: Why is my scoped lock faster than a manual lock?

StackedCrookedIn this code sample I benchmark scoped vs manual lock of pthread mutex. I expected equal perfomance for both approaches. But much to my surprise the scoped lock solution seems a little faster. Can anyone explain why this happens? I'm using using g++ 4.5.2 and compile with the following options:...

^ I'm curious.
 
@StackedCrooked Did you look at the generated code?
 
@RMartinhoFernandes I don't understand assembly.
 
@sbi Dunno. I don't see a great benefit in closing old questions, but if you guys want to I won't oppose.
Wait, you get either 270ms and 280ms and you're drawing conclusions?
Don't those values look suspicious to you?
 
1:17 PM
@RMartinhoFernandes I'm not drawing conclusions, I'm asking for someone to explain these results.
 
scoped_lock: 280ms
normal: 270ms
 
Ok, I just diffed the assembly output and there are simply no differences..
 
See.
clock() is not very accurate.
 
@RMartinhoFernandes It's resolution is 0.01s on GCC. Given a long enough test this should be good enough. For ideone I had to keep it short or else the process gets killed.
 
Did you notice that 0.01s is exactly the difference in running time you got?
 
sbi
1:27 PM
59
Q: Allow more than 1 comment upvote in 5 seconds

Click Upvote This dialog box pops up so much that it's annoying. Please have it removed or allow something like 5 comment upvotes every 5 seconds. At the least, make the box very small or replace the vote button with another graphic for 5 seconds.

And lots of dupes. :(
 
> I hate all this hate. – Jeff Atwood♦ Jul 27 '09 at 17:44
lol
 
@sbi I tried to click there to dismiss it, but it's an image =(
 
@sbi photoshop, anyone (gimp, paint.net)
 
sbi
@Abyx I had the reflex, too, but was able to suppress it.
@sehe ??
 
@sbi it says 30000 upvotes?
or is that views? Nah, they show as 30k
 
Oh, LOL
So, indeed, "anyone, photoshop" was appropriate. "Click Upvote" is anyone
 
Yeah, but when I increased the iteration count to 200 million I got:
scoped_lock: 1040ms
normal: 1120ms
 
Oooh. 'normal' is clearly slower!
 
Ah, you should have published those results in the question!
 
1:35 PM
And 2 billion:
scoped_lock: 10530ms
normal: 11290ms
 
I need two upvotes to reach the rep cap.
(This seems to work for Xeo, so I'm trying it too.)
 
Really? Worried about two votes in 10.4 hours?
 
I want to not have to care anymore.
 
@RMartinhoFernandes Permission granted. Stop caring
And don't forget to vote for me - I have a meager +20 for the whole day now. Definitely deserved more :)
(beggars forum, this)
 
> The questions you have to ask yourself are: "Does a Person own his Wife?" and "When a Person's lifetime ends, should his Wife be automatically destroyed?". – Charles Bailey 4 mins ago
 
1:44 PM
@RMartinhoFernandes how about to stop caring...
 
@sehe There, have a badge :)
> Setting a new wife will lead to the memory leak of the old one
 
@thecoshman Has anyone really been far even as stopped to use even go want care more like?
 
@sehe point taken :(
 
cpx
Highest upvoted answer on SO
4435
A: RegEx match open tags except XHTML self-contained tags

bobinceYou can't parse [X]HTML with regex. Because HTML can't be parsed by regex. Regex is not a tool that can be used to correctly parse HTML. As I have answered in HTML-and-regex questions here so many times before, the use of regex will not allow you to consume HTML. Regular expressions are a tool th...

 
@RMartinhoFernandes Splendid. It took me a while to see what you meant there :) LOL
 
1:47 PM
Try typing <[^>]+>
3
 
<[^>]+>
<whistles/> WOW
That's nuts
 
hmm...
 
I just ran my demangling allocator through shared_ptr<T>(new T, default_delete<T>(), funky_allocator<T>()) and allocate_shared<T>(funky_allocator<T>()). What fun.
 
<[^>]+>
 
Star it! Star it! Who did that. That is freaking beatiful
 
1:50 PM
@RMartinhoFernandes In Amazonian Brazil, wife owns you.
 
some one had too much time on there hands
 
Tag Soup redefined
 
@sehe You did it.
 
@RMartinhoFernandes What does it do?
 
Try it.
It's mostly harmless.
 
cpx
1:51 PM
Can you search comments by user id?
 
melt your mind
 
@RMartinhoFernandes No I didn't program that. Of course I know what I did last summer. That's not what I meant
 
@RMartinhoFernandes Try it where? In this chat?
 
<[^>]+>
 
1:51 PM
hmmm...
 
Bazooms!
 
<[^>]+>
 
I can just picture the hesitance on his face before typing that (mmm actually, likely copy-pasting it like I did)
 
huh... you can't spam that message :P
<[^>]+>
 
I want that as a separate module!
 
1:52 PM
Yup, you can.
Just not your own
 
cpx
<[^>]+>
 
I want it in comments at questions
 
You can post a different regex as long as it looks like something to parse HTML. The filter is pretty smart.
 
Who wants to hunt singletons?
 
cpx
what was that?
 
1:54 PM
@KerrekSB @_@
 
@KerrekSB: That's java. Let them sit in their own puddle
2
 
@sehe I work with Java :(
 
@sehe Keep that puddle outside!
 
I'm starry.
3
 
I'm not giving you another one :P
 
1:57 PM
Wow, two stars for a regex to parse HTML, in the C++ room
 
Because that's awesome.
 
So anything that looks like a fraudulent regex will do?
 
@Potatoswatter Huh? <[^>]+> is not a regex to parse HTML. It isn't even necessarily a regex
 
@sehe Yes, it is.
 
<(.*?)+/?>
 
1:58 PM
It matches a tag.
 
<!-- deleted -->
 
Oh no, so it begins…
 
<(.*?)+/?>
 
@RMartinhoFernandes Duh. I know that it can be. Right now, we're just pasting <[^>]+><[^>]+> in here as random sequences of characters, not as regexes to parse anything in particular.
 
¬_¬
 
1:59 PM
@KerrekSB Did that one work?
 
@RMartinhoFernandes No :-(
 
nope
 
sigh
 
Oh. When I learned of this, I tried a few combinations and a lot of them worked.
 
repeating seemed to get more animation, though
 
2:00 PM
Can't we just check the source to see what the function is called?
 
Of course you can. You don't assume this is server-side generated flash evil magic, do you
 
@sehe Individually tailored to one's tag history? Maybe not...
 
yeah, it could be some sort of server side trigger
 
@thecoshman true
 
cpx
<[^>]+>
 
2:02 PM
but then... surely we could work out what triggers the client side animation...
 
Man, I didn't think I'd be making addicts.
 
anyone good with the theoretical DBMS? I need some help :)
 
Gee, exactly 40k rep now
sehe, Netherlands
40k 4 17 50
 
or perhaps the animation code sent as a message thus it does not get loaded with the chat room...
 
cpx
seems like a combo. hmm
 
2:03 PM
@FreakEnum: what with
 
@sehe I'm unable to get what is database-model :( , I mean what do they do in DBMS?
 
cpx
<[^>]+> <[^>]+>
 
hello all
 
@Kerrek did you take the FPAs down? Or changed its location?
 
2:05 PM
@FreakEnum: I suppose that is best asked on SO/dba.stackexchange.com
 
I need some advice, I have a buffer in which is contained an image of the .JPG type. I need to downscale and rotate this image, any advice on what I can use to do this from a buffer in memory, rather then from a file?
 
Boost something.
 
@sehe cool , Thanks :)
 
lol
that doesn't tell me much
 
@KerrekSB java again
 
2:07 PM
GIL, I think.
 
@RMartinhoFernandes +1
Whoever just upvoted me again.. thanks anyway. Those were very old answers with very good answers (if I may say so myself) and I think noone ever saw them :)
 
@RMartinhoFernandes They moved.
 
2:23 PM
@TonyTheLion convert it bitmap then you can play with it
@Tony if all you have is the JPG file in memory, it is still an incompressible mess. It will need decoding... which if I am not mistaken, is not fun
ahh the work lunching... is there a better excuse to not be working :D
 
2:44 PM
@StackedCrooked - you seen the pending "exact duplicate" flag against one of your old questions?
 
@thecoshman right
hmmm
@thecoshman surely there's some lib that will do that?
 
user406009
Imagemagick is a main one
 
user406009
All the formating you could ever want.
 
user406009
Here is a list of their formatting operations.
 
3:03 PM
@awoodland No, which one?
 
10
Q: Simple Haskell graphics library?

StackedCrookedI'd like to experiment with Haskell a bit, and I'm hoping to write a small 2D arcade game (Tetris or Breakout). Can you recommend a simple graphics library that will help me to get started quickly? Btw, I've been experimenting with SDL and wxWidgets, but haven't yet succeeded in running any samp...

 
3:19 PM
Sup.
 
I sup on the beating hearts of my defeated rivals!
 
@StackedCrooked stackoverflow.com/questions/5612201 was the proposed dupe
 
huh, some laden swallows flew by
 
@AlfPSteinbach African or European?
 
what do you mean? african or european?
 
they were carrying coconuts?
 
for the sound effects only
it sounded like horse's hooves clinking and clanking on stone cobble thing
i always liked this scene:
 
3:46 PM
@RMartinhoFernandes @awoodland I don't see any flags though.
 
Lol the coconuts?
 
@StackedCrooked it's not had any votes yet, I don't think you can see flags against your own stuff in the flag queue
 
@awoodland He can't see the flag queue anyway. That's a 10k tool.
 
Ohhh its the shrubbery knights ^_^
 
@awoodland Aren't flags supposed to be used for offensive posts? Why not use a closing vote?
 
3:54 PM
@StackedCrooked low rep users can effectively vote to close via a flag
 
Your muthar was a hamster, and your father smells of elderberries! Now go away before I taunt you a second time!
 
so it's like a peer-reviewed close vote
 
Ah, I see.
 
4:11 PM
This is awesome: torrentfreak.com/…
> Aside from recent music albums from Jay-Z and Kanye West – which may have been downloaded for research purposes – RIAA staff also pirated the first five seasons of Dexter, an episode of Law and Order SVU, and a pirated audio converter and MP3 tagger.
3
 
Research purposes? Sounds legit.
 
well for RIAA it would make sense if they were downloading things produced by their members
 
sbi
I have already flagged this for low quality, even got flag weight for it, but it's still not closed. Anyone?
@RMartinhoFernandes Yeah, I read that earlier today. I think the French President's palace was caught downloading or sharing, too.
 
4:29 PM
template<typename... T> struct flexible : T... { flexible(): T()... { } }; what does the syntax T()... means in constructor initializer list?
 
It initializes all the base classes.
 
@RMartinhoFernandes I think you already know all that present in book
 
They weren't trying to shut down the Torrent tracker to make torrenting harder for pirates. They were trying to shut down the tracker so they wouldn't show up on the radar.
 
@FreakEnum Oh, I'm not buying it. I saw someone mention it.
@Xaade What tracker?
There's a ton of trackers out there. And with DHT, each peer is effectively a tracker.
 
@RMartinhoFernandes T()... this is syntax or some mechanism working behind? e.g call T() then some passing etc
 
4:33 PM
@FreakEnum That's a pack expansion. It generates an expression like T() for each type argument in the parameter pack.
 
sbi
@RMartinhoFernandes The top review google shows me for this C++ book starts out with "I don't quite like this as much as KR's classic..." OMG.
 
@FreakEnum E.g. if you instantiate that constructor for flexible<foo, bar, qux> it will be flexible() : foo(), bar(), qux() { }.
 
sbi
One more close vote here, please. Thank you.
 
@RMartinhoFernandes T... is pack expansion which expands the pack T to foo, bar, qux, how that T()... can works that way? pardon me if my Q looks very dumb
 
@FreakEnum You can expand any expression.
It simply replaces the T parts with the appropriate types, and leaves the rest as is.
In this case, it adds () after the type.
 
4:37 PM
@RMartinhoFernandes now what does expanding the expression means here? :(
 
Simply replacing T with each of the types in the pack.
 
@RMartinhoFernandes aah
 
If you have T... it expands to foo, bar, qux; if you have T()... to foo(), bar(), qux(); and if you have blah<T>() it expands to blah<foo>(), blah<bar>(), blah<qux>().
The syntax is pretty neat.
 
blah<T...>() ?
@RMartinhoFernandes syntax should've been (T of foo, bar, qux) -> T...()
 
That would give blah<foo, bar, qux>().
 
4:41 PM
That'd expand to blah<foo, bar, quux>.
GCC had some troubles with that AFAIR.
 
@FreakEnum I don't think that could work as well as it does now.
 
I think T...() would be a syntax error.
 
@RMartinhoFernandes blah<T>() it expands to blah<foo>(), blah<bar>(), blah<qux>(). // where is the meta operator , so how is expansion happening?
 
blah<T>()...
 
4:43 PM
aah
 
@FreakEnum Oops, sorry, missed the ellipsis :(
 
T("Thanks a lot :) ")... @RMartinhoFernandes @CatPlusPlus
 
0
Q: String to const char* in Arduino?

phpnerd211I have a variable tweet that is a string and it has a character at the very beginning that I want to clip off. So what I want to do is use strstr() to remove it. Here's my code: tweet = strstr(tweet, "]"); However, I get this error: cannot convert 'String' to 'const char*' for argument '1...

Awesome. Some guy comes along and removes the tag for no reason. Now the question is full of totally irrelevant answers.
 
@RMartinhoFernandes That happens a lot in SO
 
It's not the fault of the answerers.
They were answering what seemed like a "normal" C++ question.
 
4:50 PM
I see you've added the tag again :)
 
@RMartinhoFernandes This was before DHT, and thus proves my point even more. They don't know how it works. They think there's some physical tracker, or physical server, or such. They can't comprehend distributed information.
 
sbi
WTF is umlcat trying to say in this accepted answer?
 
You static class
 
Added a comment.
Is it too obvious that I despise people that let their code vulnerable to buffer overflows?
 
it looks like it's going out of the way be bad
and it's wrong too
&AnyString should be just AnyString for scanf
 

« first day (430 days earlier)      last day (4532 days later) »