« first day (1832 days earlier)      last day (3110 days later) » 

Ell
10:03 PM
@sehe I was thinking the same thing
 
I'm out. Night all!
 
Ell
@sehe night :)
 
why should i use vector? — haywire 25 mins ago
same old dreadful stories today
 
sad, sad people
 
It makes me sad :(
 
10:05 PM
@sehe night
 
Someone just reminded me it's my birthday. I'm getting old again .___.
 
Yay! \o/
OK, time for more vodka!
Fuck Miller, it's Stoli time!
 
@ScottW Aw~~~, thanks :3
 
10:16 PM
how bad is it to impromptu turn a T into a range of Ts by taking its address as begin and one past as end?
 
HOW TO TUCK COCK
 
Xeo
@ScarletAmaranth not bad at all, really
purely from a mechanical point of view
the question is, why do you need to do that? :P
 
too lazy to do make an overload for a single value in any other way other than delegating to a working range-based one
why does the range-based one exist? because it made sense then :P
 
Xeo
...
 
Ell
Ugh I forgot star star syntax again :V
 
10:18 PM
OK OK I will do it the right way and map f in the range overload you WIN
(@Xeo it arose from turning a specific class-bound method into a more general free function, and the specific one simply never needed a single-T overload)
 
@Morwenn Shpongle!
 
@wilx Are you Shpongled? :D
 
@Morwenn Probably, unsure. :D
 
@Morwenn yeah happy birthday
 
lol, who cleared the starboard of the "size" messages?
 
10:29 PM
@Rapptz Thank you ^_^
 
Happy b-day
 
Ell
const char** is pointer to pointer to const char right?
 
it's a pointer to your mother, and you don't need to bounds check the indices
 
Ell
ayyyy
man I hate that I have that I have to use #define for constants in C
 
well
I must actually say that most of the time I find myself very rarely using integer constants.
if you're using them a lot it probably means you have way too much MAGIC_BUFFER_SIZE going on.
 
10:48 PM
@JerryCoffin Kayak isn't bad for flight tickets and stuff.
 
10:59 PM
@Morwenn Happy Birthday :)
 
Happy birthday, @Morwenn
 
Hippo birdbath, @Morwenn.
 
You guys are too nice :$
@Nooble And you're weird, but in a good way :D
 
:D
 
@Nooble Hi
 
11:01 PM
@TonyTheLion Hi.
 
Hows homework?
 
@TonyTheLion Not finished.
 
@Nooble Finish it, quick!!!
 
@TonyTheLion Not possible.
 
@Morwenn happy same spot relative to the sun day!
 
11:03 PM
@Nooble What subject is it?
 
This homework is np-complete.
@TonyTheLion English.
 
Should be easy for you no?
 
@TonyTheLion Oh but it's about the history of literature.
Not grammar and composition.
 
Floccinaucinihilipilification <--- English
@Nooble oh I see
sounds like phun
 
@Ell uff? why not const int MyConst = 5; even in C?
 
11:05 PM
@TonyTheLion :P
 
Ell
@ScarletAmaranth you can't do myarray[MyConst] then
 
@DemCodeLines It's not even attempting the kinds of things I have in mind though.
 
@Ell ideone.com/MMUm49 (am I missing your point entirely?)
 
Lol. Passed out so fucking hard I missed the rest of my classes AND my exam. And I wasn't even awake for eight hours. :l
Fuck this, fuck that, fuck everything.
 
@ThePhD :(
 
11:09 PM
@ThePhD Fucking so hard you passed out?
Puns apart, it's sad :(
 
@Morwenn That'd only be the case if you were here, and we were kissing /cc @Nooble
 
@ThePhD Fuck the fucking fuckers :)
 
Also, Happy Birthday!
Have a dancing ghost.
 
@ThePhD Haha, I don't know how I might take that now xD
 
Ell
@ScarletAmaranth does it work over different translation units?
ie #include "my_constant.h" then using it for an array size
 
11:11 PM
@Ell can't see why it shouldn't? (sometimes you need to extern it I feel, I am hazy on C details, sorry)
 
@Ell extern const int foo = 40;?
prolly have to define it in the place you're going to use it, I think
extern confus me
 
Ell
me also, I don't really use it
 
oh Ell oh Ell
 
still, #define is definitely not required for constants
also tehre is a chance of the constant not being in the constant table OR being there multiple times (if it's just macro-stitched-in)
(performance implications only IIRC)
 
Ell
11:13 PM
error: variably modified ‘shots’ at file scope
I will try using extern though
 
yes, extern define it
 
Ell
error: ‘BOARD_WIDTH’ initialized and declared ‘extern’ [-Werror]
 
sort of like forward declare with extern, saying the thing has been defined already in a different TU
 
Ell
I will try with a different file though
 
don't reinit!
just DECLARE
 
Ell
11:14 PM
I was just thining along the lines of tony
 
Ell
ie, prolly have to define in the place I'm going to use.
 
tony did it wrong
 
@ScarletAmaranth :(
 
Ell
nope, still get error: variably modified ‘shots’ at file scope
 
11:15 PM
go google how to use extern constants then :P
 
@Morwenn It was a joke about how kissing "counts as the real deal".
 
Ell
But it is reasonable - there is no way the compiler knows how big the array will be, if it cannot see what the definition of the variable is
 
just use a proper array
 
Ell
@ScarletAmaranth I'm p sure it can't be done
 
not a VLA
 
11:16 PM
it sure as fuck sees what the definition is, headers are visible at compile time
 
Ell
@ScarletAmaranth I mean consumer.c won't see producer.c, it will only see producer.h
 
your constant had better be in a header file of course
 
Ell
wat
 
Ell
why can't I just define it in the same file then? :P
 
11:17 PM
@ThePhD Oh, I get what you mean then ^_^"
 
Ell
@ScarletAmaranth I just tried that.
 
well it works; so you tried somethign else :P
 
char* foo = new char[1024];
 
Ell
sigh let me prove it to you :P
 
chaddup and take my array
 
11:19 PM
@Nooble nope, I've been preparing for a toptal coding exercise
hopefully I'll work on that later though
 
Ell
egh I need multiple files on coliru :L
I know there is a way but it's a pain IIRC
 
sure as fuck lesser pain than macro
 
Ell
this is the best I can do on coliru :P
it produces the same error tho
 
@nick What's that?
 
 
11:26 PM
@Ell ehhh... well, I don't know - that doesn't "prove" anything as you have a single TU there but feel free to macro it up, I ultimately don't care :P
 
Ell
@ScarletAmaranth well, I realise that I only need one translation unit
a header is in the same translation unit
 
@nick Whoa.
 
Ell
the preprocessor is not aware of translation units
(right?)
 
it's not; technically, it's what creates them :P
#include tells the preprocessor to literally copy pasta
 
Ell
exactly
so this is "proof" :P
 
11:28 PM
it's a feeble attempt at proof ^^
 
Ell
If I could avoid a macro I would
but it's not possible
 
@Ell put extern const MyConst = 42; in a header file (and then const MyConst; in your main.c for example)
 
Ell
@ScarletAmaranth a different header file? :P
 
in your constants.h
and then provide a single const MyConst; (without value) in a single *.c
then #include "constants.h" and you're good to go
 
Ell
11:32 PM
I need to use the constant in a header file to declare the size of an array
 
yes, the header is the visible part at compilation
the value needs to be there
 
@Morwenn D'awww happy b-day, may you have as many tasty burritos as you want :)
 
@Borgleader I only have comfy ones, but thanks :3
 
@Morwenn Comfy is just another way of saying tasty for your soul :P
 
@Borgleader I like this sentence :D
 
11:38 PM
what's a good app for reading books on the iphone?
 
@chmod711telkitty kindle
 
Ell
@ScarletAmaranth wat
I don't understand
 
that's amazon's app isn't it?
 
Ell
so inside constants.h I have: static extern int my_array_size;
in my my_array.h I have int my_array[my_array_size];
 
Ell
11:39 PM
and in main.c I have const int my_array_size;
 
constant.h contains extern const MyConst = 42; (NO STATIC!!!!)
 
Ell
that will error
 
main.c contains const MyConst;
 
Ell
but I'll try it vOv
oh feck
why have I been using static
I am nub :(
I am ashame
 
No that's me.
 
11:41 PM
I have never ever bloody written static; static in C says it has static linkage
not sure how you would like to mix static with extern
 
Ell
It doesn't work anyway
 
Ell
but I have been putting static by instinct on my constants
 
As see on reddit, I need dis
 
Ell
I conclude that it's not possible
 
11:44 PM
#define away
 
Ell
:(
 
good morning politically-incorrect friends and sehe
 
Ell
Herro
 
Ell
I don't really browse /pol/ though
 
11:46 PM
@Borgleader that an excellent thing to get for my friend who loves Star Wars. (Loungers are the only ones I know who watch Star Trek)
 
@jaggedSpire It would go well with this other one i found
 
@Borgleader :D Now I know five people who love Doctor Who...
 
It's sad to see you all taking the piss out of BSG like that..
 
@Morwenn Deiz ha bloaz laouen !
 
@GregorMcGregor I don't speak Dutch.
 
11:51 PM
Ah so that's how subdomains are auto-generated. They use a wildcard record.
I need to learn more about web stuff ;~;
 
@jaggedSpire Also this one
 
@GregorMcGregor Joking, trugarez :p
 
@MartinJames Not my fault no one made funny t-shirts of them
 
83
Q: How to let PHP to create subdomain automatically for each user?

SkutaHow do I create subdomain like http://user.mywebsite.com ? Do i have to access htaccess somehow? Is it actually simply possible to create it via pure php code or I need to use some external script-server side language? To those who answered: Well, then, should i ask my hosting if they provide so...

Maybe I didn't word it right.
@ScottW :C
 
@MartinJames BSG was such a great show, such a shame it was cancelled after its first season. That Josh Whedon is such a good writer
 
11:53 PM
lol
 
@jaggedSpire that's fire oh... hahah :P
 
@Borgleader :P
 
litterally what went on in my head ^
 
@ScottW I'm well aware. :)
 
im not the fastest processor on the silicon wafer
 
11:55 PM
:P
 
@ScottW it was part of the whole "I don't have a damn clue what I'm talking about" thing
@ScottW you take that back /jk
 
@ScottW I watched Buffy, liked it, watch Cabin in the Woods and liked it. Didnt watch Firefly because I knew up front it only had one season and id probably like it :(
 
I prefer Grant Morrison for comics, really. The man's so insane it's inspiring.
 
@ElimGarak How are you?
 

« first day (1832 days earlier)      last day (3110 days later) »