« first day (946 days earlier)      last day (4003 days later) » 

4:00 PM
Q: Why do people keep writing new RDBs?
 
Why does @rightfold keeps starting new projects?
 
@EtiennedeMartel because he finishes so many on time and under budget
 
@Pubby cough
@undefinedbehaviour Yes, we know about that one. It's only been linked here about a hundred times.
 
user142019
@EtiennedeMartel I become bored and thing of something more awesome.
 
4:02 PM
@EtiennedeMartel Oh. I apologise. I didn't know that.
 
I miss @sehe :(
 
user142019
@Jeffrey PostgreSQL.
 
user142019
PostgreSQL is best.
 
user142019
But nobody uses PostgreSQL. :<
 
user142019
It's like Haskell.
 
D'awww
 
@rightfold I think Instagram uses it.
 
Note that they can't get out.
 
@rightfold Why don't you use that one Haskell DB then?
 
user142019
Flickr uses it too.
 
4:04 PM
@TonyTheLion The Internet....
@TomW ... is heartless.
 
user142019
@Pubby acid-state? Because if you want to store a shitload of data you need a shitload of RAM.
 
@TonyTheLion Those look like sinkletts to me
 
@EtiennedeMartel d'aww too, but also Not Sure If Cruelty...
 
Oh wait, ducklett isn't a word. I've got pokemon on my mind.
 
You're thinking about Diglett, the ground-type phallic pokémon.
 
user142019
4:06 PM
Dicklet.
 
@EtiennedeMartel There's one called Ducklett now: bulbapedia.bulbagarden.net/wiki/Ducklett_(Pok%C3%A9mon)
 
@rightfold We dont want to know about your genitalia
 
user142019
I am a pony.
 
user142019
4:06 PM
I have no genitalia.
 
Ell
In PostgreSQL can you create classes & keep instances in tables?
 
user142019
@Ell no idea what you mean by that.
 
user142019
You store records, like… C structs.
 
Can a class defined in a method access private members?
 
@Riga Why hello there.
 
Ell
4:07 PM
@rightfold Right. Can I have a record of type table?
meh. I can't explain. Can I have a table containing other tables?
 
user142019
@Ell you can create custom types, if that's what you mean.
 
-1
Q: What is 9.99920220005E+15?

user2054689I'm doing some folder and file creation in php. It's about thousands of folder, html files, and image file. And an interisting thing is i got 9.99920220005E+15 from one of my folders. While i open that folders and check html file inside it, i see weird character, like when you open image file in...

 
Ell
That is what I mean
 
user142019
@Ell Inheritance?
 
user142019
PostgreSQL supports inheritance too.
 
4:08 PM
@LightnessRacesinOrbit That fly bugs (no pun intended) me.
 
Ell
Basically I want to be able to have a forum post table containing a threads field where threads can contain posts.
 
@EtiennedeMartel :-)
 
Ell
I can't explain what I mean. Ignore me
 
user142019
CREATE TYPE point AS (x int, y int); -- struct
CREATE TYPE bug_status AS ENUM ('new', 'open', 'closed'); -- enum
 
yiz
4:09 PM
buggy person :D
 
@Ell We call those "foreign keys".
It's a pretty basic concept for relational databases.
 
user142019
@Ell you'd have three tables: forums, threads and posts.
 
@rightfold SQL?
 
(Yes, I just called you a noob)
 
Ell
I am a DB noob :P
 
4:09 PM
I see a class B defined in a method A::M can access private members of A. Is it aligned with standard?
 
@Riga Classes don't access anything. Try again.
struct A { void M() { struct B { B() { cout << x; } } b; } private: int x; };
"This compiles. How?!" is that your question?
cos the answer is:
 
user142019
 
> error: invalid use of non-static data member 'A::x'
 
user142019
Omitted the users table, though.
 
@LightnessRacesinOrbit no I mean access via pointer to A
 
4:12 PM
@Riga give an example because it's about as clear as mud what you're asking
 
@rightfold Did you watch Snowdrop?
 
user142019
@EtiennedeMartel Nope, what is it?
 
@rightfold A MLP short film made by fans.
 
struct A { void M() { struct B { B(A* ptr) { cout << ptr->x; } } b(this); } private: int x; };
^ is valid
 
It's pretty impressive, considering it was entirely done by fans.
 
user142019
4:13 PM
Neat.
 
@LightnessRacesinOrbit yes, why
 
yiz
unicorns not ponies
 
@Riga Basically, because why not?
[C++11: 9.8/1]: A class can be declared within a function definition; such a class is called a local class. The name of a local class is local to its enclosing scope. The local class is in the scope of the enclosing scope, and has the same access to names outside the function as does the enclosing function. Declarations in a local class shall not odr-use (3.2) a variable with automatic storage duration from an enclosing scope.
3
This is interesting:
[C++11: 9.8/4]: A local class shall not have static data members.
4
struct A { void M() { struct B { static int x; } b; } };
> error: local class 'struct A::M()::B' shall not have static data member 'int A::M()::B::x'
 
@LightnessRacesinOrbit OK then it is like a lambda
 
@LightnessRacesinOrbit Why was that starred? Stupidest restriction ever.
 
4:15 PM
@Riga No, it's not like a lambda in any way.
@Pubby Perhaps that's why.
 
@rightfold That is neat. Never heard of REFERENCES or ON DELETE...
 
@Riga (But I see what you mean)
 
@LightnessRacesinOrbit
> A class can be declared within a function definition; such a class is called a local class.
...I did not know that.
y u no blockquote
 
user142019
@Jeffrey every RDBMS supports it.
 
@Jeffrey that is Day Two relational databases.
 
user142019
4:16 PM
Hence the R in "RDBMS".
 
@TomW the newline
@TomW welcome to chatletdown :)
 
Ell
@rightfold thank you
 
@Pubby How would you provide its definition?
 
Ell
I really ought to learn some database-ey stuff
 
@rightfold I was just pointing out how much a noob I am
 
4:16 PM
@LightnessRacesinOrbit thanks. I mean it's like a lambda has access to the context in some meaning
 
(I suppose one could consider allowing ICEs. Meh.)
 
@LucDanton int A::M()::B::x = 0;
@Riga Yep.
 
@LightnessRacesinOrbit That's quasi-standard, possibly.
 
@rightfold, so you try to program in a Lisp, you love Ruby, you like Sinatra and you prefer PostgreSQL. Will you marry me?
 
@LucDanton I just recall a case where I wanted a int const foo = 5; and the big bad compiler wouldn't let me.
 
user142019
4:17 PM
@Jeffrey No.
 
the big meanie :(
 
Fight the power!
 
@Pubby huh?
struct A { void M() { struct B { int const x = 0; } b; } };
 
:..(
 
I meant static int const foo = 5;
 
@Pubby Shit on his doorstep!
 
Ell
this ocean renderng is beautiful! youtube.com/watch?v=2AVh1x-Uqjs
 
That'll teach him.
 
@EtiennedeMartel He wouldn't mind, he's used to dealing with shit. I'll switch to Java. That'll teach him.
 
user142019
@EtiennedeMartel Piss in his backpack. Much more effective.
 
yiz
4:22 PM
If I see a guy asking another guy to marry him but I can not call it 'gay', what should I do?
 
The best thing, I think, is to draw an heart with your own shit on his door. Sends some mixed signals.
@yiz Well, are they gay?
 
user142019
And some blood.
 
Ell
@yiz if a man is asking another man to marry him, it's gay
6
 
user142019
Or a joke.
 
The problem isn't using the word "gay". The problem is using it in a pejorative manner.
 
user142019
4:25 PM
Or a trap.
 
A bit like when Bartek uses "gay" instead of "crap".
 
@rightfold The word "trap" is rarely intended to be derogatory. At least within the Anime universe.
 
user142019
In Dutch "homo" is both an insult and the normal, accepted word to refer to a homosexual person.
 
wtf
 
4:28 PM
 
yiz
looks delicious
 
user142019
That is a terrible pun.
 
yiz
fancy it grilled & served with butter potatos & rocket parmesan Salad
 
-2
A: C - determine if a number is prime

Ram BalwadI think the best way to find the prime is only check given number is divisible by 2,3,5,7 numbers only. protected bool chekPrime(int number){ if (number % 2 == 0) { return false; } else if (number % 3 == 0) { return false; } else if (number % 5 == 0){ return false; ...

6
^^ WOW
 
@yiz Is there something that doesn't make you think about food?
Oh oh oh, we have a winner! — Etienne de Martel 9 secs ago
 
user142019
4:31 PM
@Mysticial LØÕÖÓÔÖÒÕŌL
 
@rightfold Dem Os.
 
yiz
@EtiennedeMartel Umm ... stop posting food!
 
user142019
DemCodeLines
 
@yiz Everything is food.
 
@Mysticial I saw that code in a daily WTF before that answer was posted
 
4:31 PM
@Mysticial I just noticed, not only is the answer really shitty... its for a question that is almost 4 years old
 
user142019
LΩL
 
yiz
Also I don't feel very hungry when I look at the pictures in the users section.
 
user142019
> chekPrime
 
user142019
> protected
 
yiz
4:32 PM
And I don't look at a piece of rock and feeling like eating it
 
user142019
if (number % 2 == 0) {
   return false;
}
 
user142019
2 is prime!
 
Well it is
 
@rightfold No it isn't. We all know that the definition of a prime is "any odd positive integer that is less than 13, except 9".
 
user142019
@Pubby PHP! BURN IT WITH FIRE!
 
yiz
4:35 PM
re-write PHP into C++ is easy
 
user142019
> I don't know much C, anyone care to give me some pointers?
 
user142019
Dat pun.
 
yiz
Anyone good with perl?
 
user142019
> License If you use this, you must donate $1 to someone more intelligent than you.
 
user142019
lol
 
yiz
4:44 PM
means the most intelligent person can not use that code?
 
@yiz It means "don't be a conceited ass".
 
Xbox reveal in 2 days.... cant wait
inb4 pc master race and/or fuck consoles
 
I don't really see the appeal in consoles anymore, now that AAAs are dying.
 
AAAs? As in the batteries?
 
PC gaming will survive through obscure indie stuff or high-end hardcore stuff that stress the hardware.
 
4:47 PM
@Mysticial No as in 60$ million dollar budget games
 
Most gaming will be done on mobile
 
@Borgleader oh
 
And consoles will wither and die
 
@EtiennedeMartel really? Even though mobile games...well, suck?
 
@EtiennedeMartel playing a mass effect like rpg on a mobile device? fuck no
 
4:48 PM
@TomW They don't suck. And if they do, it's not a property of the platform.
 
What about computer/desktop games?
 
@Borgleader The kind of people who play those are a minority.
Face it: gamers like you and me are a small group. I'm not sure we can sustain a console, not when most of us are already on PC.
 
One console maybe, but not 3-4 (Xbox, PS, Nintendo, Ouya/Steambox/...)
 
It's about economics.
 
I assume some of them will disappear
 
4:50 PM
Consoles just don't fit in the new business model.
 
yiz
google glass gaming future, anyone?
 
I don't see any reason for them to not just become the same device
apart from the uber optimisation that consoles get
 
With F2P, microtransactions, development costs for indies going down...
 
and I think graphics are now probably 'good enough' that massive optimisation will diminish in importance
PC gamers are sort of fetish-y about how many triangles they have, but the rest don't seem to care much anymore
 
Honestly I don't pretend to know what the future of gaming/consoles/pcs will be like. People have said pc gaming is dying for years and look at that it's still here. I'm just happy to see new hardware being pushed because that usually leads to new interesting games.
What happens to consoles and pcs? only time will tell
 
4:53 PM
Problem with consoles is that it's not new hardware.
 
Maybe there's a renaissance coming. If the industry finally gets the message that nobody cares about graphics anymore, they might start focusing on making games that are fun again
 
@TomW Games released today are fun. Remove your nostalgia goggles.
 
@TomW Actually, I care about graphics.
 
I'm not saying that I don't
 
I can see the huge difference betweeen 720p and 1080p FPS.
 
4:54 PM
Games are better right now than they were before.
And they'll get even better.
 
And I'd like to enjoy my 1080p FPS, but my machines can't handle it.
 
But I'm satisfied. I don't care that Call of Warface 6 has twice as many triangles as Call of Warface 5
 
At least not without spending $500 USD on a video card.
 
Why do everyone keeps bringing up CoD.
 
because it's the biggest and most obvious cash-cow?
 
4:55 PM
So what?
 
That's like saying films are getting dumber because Michael Bay is allowed to work.
 
@EtiennedeMartel But they are
 
@EtiennedeMartel Most games these days are target for consoles. So new consoles means new target hardware.
 
I think you missed the point.
 
I smell the faintest scent of snobbism.
 
4:56 PM
Goddamn, 2560 x 1440 res. 27 in. monitors are friggin expensive.
 
because the pixel density on that would be insane
 
I want one of those for coding...
$500 USD for the lowest priced one with positive user feedback.
 
@Mysticial I have 3 monitors, because I fucking can xD
 
I need a second monitor.
I still only have one.
 
yiz
I prefer 8 core machine with four 27 inch monitors
 
4:58 PM
@Borgleader Do you wanna see my current setup?
 
I've never gotten around to getting more because I'm terrified of buyer's remorse
 
I just moved back home and I have a bit more... space... than I did in the dorms.
 
@Mysticial Are you compensating for something?
@Borgleader The core issue is the game design paradigm, not the hardware the games run on.
 
@EtiennedeMartel I have 3 monitors and a TV on top right now. One of the 3 monitors is my Mom's that I'm borrowing for now. I'm eventually gonna replace it with a 27 in. when the price is right.
 
27" is insane.
 
5:00 PM
@Mysticial Yes
 
How far away are you from the screen?
 
gimme a sec to upload a pic
I need to send it through my laptop because my desktop (formally a dedicated compute-server) doesn't have a card reader.
 
@EtiennedeMartel Not sure what you mean by that. But what I meant was, sometimes there are things you can't do because you run out of "processing power". Take AC's crowd simulation. You couldn't have had that a few years ago.
 
It's like a domino effect. You think you might be able to afford one thing (a display), but you realize you also have to be able to afford the furniture as well.
 
@Borgleader But that doesn't make the game any better.
The problem is that most designers don't stop and think about why people would play their game.
Why we play.
It's a very important question.
Why is a game considered better than another one.
So, they implement a GoW-style cover system, not because it's a good system, but because GoW did it, and GoW was good.
 
yiz
5:03 PM
I prefer multiplayer strategy games
 
They're throwing fucking darts at a wall. That's how games are designed.
 
Oh sure, but that's a totally different issue to what I was talking about.
 
What I'm saying is: hardware does not matter.
Games should be about games, not about what they run on.
 
PlanetSide 2 was my last regular
 
I didn't like PS2
 
5:04 PM
it has to be co-op with people you know; trying to interact with net-tards is just a waste of everyone's time
 
Oh I was playing with friends on Skype, still didnt like it
 
we came from Battlefield 3 - the spawn-die-spawn-... is much diminished compared to that - and we were happy, for a while
 
@Mysticial Dayum, you win
 
The monitor on the right is my Mom's. As soon as I find a suitable 27in. I'll put that in the middle and move the current middle to the right.
 
5:06 PM
I'm languishing on 1x22" - which was a present
 
@Mysticial That's SO awesome
 
and it's lovely...but I could really go for more space
 
I had a 4 monitor setup in my dorm before I left school. But they were smaller and the top monitor was further away since I couldn't mount it to a wall.
 
I have this horrible habit of being unable to buy anything until I can afford top of the line
so I usually just go without
 
I have a 1 monitor setup and I'm drooling
 
5:10 PM
I'd say my 4 monitor setup is about $850 USD right now.
Which isn't bad at all. Consider how much stuff I can do on it.
 
Can't. Saving for a house.
 
@Mysticial Too much pink
 
lol
@CatPlusPlus I'll see how long it lasts before it gets old. That machine was formerly a compute-server so I never used it as a normal desktop. I set it to pink 2 years ago and I haven't changed it since.
 
My eyes are bleeding and I'm only watching a picture of it
 
IOW, I've never stared at so much pink for an extended period of time until now.
 
5:14 PM
@Mysticial So it was a security measure
 
Make people unable to look at it for more than 5 seconds so they can't mess with it
 
ahaha
 
I've had this box nearly 2 years and never gotten round to making a CPU temp measurement until today. Is 34C idle good? I'll try it on something with some grunt later and see how much it goes up
 
34C idle is good.
 
5:18 PM
it's got a corsair hydro on it
 
Idle temps don't really matter that much below 50C since different machines throttle differently.
 
should probably also check the gpu temp
 
@LightnessRacesinOrbit super effective
@Mysticial Dat lamp
 
@BartekBanachewicz Which? The boring one? Or the engineering one?
:)
 
@Mysticial Well, boring is subjective, I guess
 
@Mysticial 4x30? How does your neck feel after a session?
 
user142019
Are there proposals for a standard cryptography library?
 
Every time I want to rewrite Ambrosia, I think of how the standard C++ library sucks, and how I would rewrite it.
 
@TomW Samsung, duh.
 
user142019
What is Ambrosia?
 
5:25 PM
Every time I think of how I would write that, I think of how much work that is.
 
@TomW 27 in. 2560 x 1440 are $500 USD now.
 
@Mysticial but not with a Samsung badge :P
 
user142019
Ah neat.
 
Samsung sucks
 
5:26 PM
@rightfold it works pretty much with basic basic functionality. Now I'm thinking of redoing large parts of it.
 
I wouldn't buy a wasning machine from them, let alone a screen
 
@TomW I had three Samsung 30" they all failed. Have always liked Samsung though.
 
@JohanLarsson No. Bottom left and middle are 24 in. 1080p. Bottom right is 20 in. 1680 x 1050. Top is a 27 in. 1080p TV.
 
starting with how I handle files.
 
user142019
Does it support distributed builds?
 
5:26 PM
@rightfold no.
it's at version 0.0.1.
What do you think?
 
user142019
OIC. :P
 
XD
 
I've got a phone, a camera, a monitor and a blu-ray drive from them. Used to have a CRT too which went a bit nuts, but that was because I dropped it
 
I'm thinking of using boost.spirit for Ambrosia.
I fear it won't bring any advantage... anywhere.
except for my street creds in here.
 
bbc y u no have anything good
 
5:31 PM
huh, explorer handles renaming Filesystem.h to filesystem.h. That's new.
 
@TomW bbc has the most amazing documentations
 
hmm, do I even need a filesystem cache.
 
Mein setup :)
 
call stat/GetFileAttributesEx a gazillion times or store the data.
 
@Borgleader Oh nice! How big are those?
 
5:32 PM
 
neat
you've got better speakers than me
 
oh the big speaker on the right is the tv speaker
(yes the tv in my room is that close)
 
Do we have the same monitor?
 
the computer speakers are hidden behind the screen
 
24 in. ASUS
?
 
5:34 PM
I'm not showing my desktop
 
anyway bbiab
 
"Splendid Try me" sticker on the bottom of each one?
 
for two reasons i) I haven't got a picture and am not going to justify you cretins by taking one and ii) it's pathetic
 
@Borgleader Dat book to give the impression you're studying rather than gaming. Nice. =p
 
@Tuntuni I usually have an Anime running on my top monitor. But I'm actually writing code right now so I have music on instead since it's less distracting.
 
5:36 PM
@Mysticial Nice. :) When coding and having an anime playing, do you actually watch the anime?
Or is it just for the atmosphere? (I sometimes enjoy working when people are talking in the background.)
 
@Tuntuni Just the atmosphere.
 
@Mysticial Nice! :D
That's awesome. :)
 
maybe I should stop with the metal. No wonder I can't code at home
 
Sad part is how much power my setup draws even when I'm not gaming or running any code.
 
@TomW That's why I hate metal. I prefer hydrogen instead.
@Mysticial Lol. High bills?
 
5:37 PM
Combined the 4 monitors draw only 80W. But the two video cards draw 100W each.
 
I should definitely mine bitcoins. I don't pay the electricity bill here
 
@Tuntuni I'll find out when we get the next month's bill.
Since I just moved back home.
 
@Mysticial Ah. Welcome home. :D
 
thx
Yeah, yesterday my Dad helped me mount that rack to hold the top monitor/TV.
So I haven't used this setup for even a day yet.
 
I just checked the pic you posted. Nice setup indeed. I see you use VS. :)
Oh
And the one on your numberworld.net?
 
5:40 PM
VS FTW - just not intellisense.
@Tuntuni That was back in the dorm.
 
@Mysticial Why is that?
@Mysticial Ah.
 
I sold those 4 monitors to a friend when I left.
It was too risky to ship monitors without paying half their retail value in extra protective packaging.
 
Ah. So the ones you got now are brand new?
 
The bottom left and middle are new. The one on the right is my Mom's and it's old. I'm not sure about the TV on top. All I know is that my Dad left it on my desk for too long so I'm taking it for good.
 
@Mysticial Haha nice. :)
@Mysticial Btw, about the intellisense. You don't find it useful?
 
5:43 PM
@Tuntuni You have to setup your code perfectly for it to work.
IOW, every single file must be able to compile with only the headers that are included in it.
 
“@JanetWillsone: I was raised in US I didn't get it, metric smetric” Use pennies, dimes, and dollars? Guess what- metric.
 
@Mysticial Ah, so it gets in the way for you?
 
@Tuntuni Yeah, since I often omit dependencies since I know they are included before the current file.
And it's not as simple as just adding in all the missing includes. It gets ugly when I have CPU dispatching and different target architectures need different files.
 
@Mysticial Oh, like that.
@Mysticial Do you use VC11 CTP with VS?
 
algorithm.h - contains the core algorithm
But it needs `datatype`, which is defined in one of about 5 different headers depending on what I'm targeting.
 
5:47 PM
@Mysticial but it's included somewhere, right?
that sounds like maintenance hell.
 
In the build environment, the correct header is included at the beginning of the program. (where CPU dispatch is done) All the other headers are included afterwards and use it.
 
that sounds evil shmeevil
 
So when I open up "algorithm.h", it doesn't find datatype and bitches about everything.
@Tuntuni CTP?
 
@Mysticial Community Techincal Preview or something. Their newest version of the compiler which supports more C++11 features like raw literals, uniform initalization, etc. It's still beta though (I think).
 
ah, then no. :)
 
5:50 PM
@Tuntuni yes, they have failed to deliver in the timeframe of 2 updates to MSVS.
 
@rubenvb Haha, true. I was hoping those updates would bring some new C++11 features.
 
> I was hoping those updates would bring some new C++11 features. <-FTFY
 
@rubenvb Oh, those updates don't have anything to do with the compiler?
 
@Tuntuni mostly the IDE. There were some minor bug fixes wrt bad code generation though.
 
@rubenvb Ah.
 
5:55 PM
@Tuntuni Update 1 and Update 2
granted, lots of fixes, but nothing new for C++ support.
 
@rubenvb Too bad. So far only GCC and Clang have all of the features implemented?
 
@Tuntuni nope. GCC is language-complete, but lacks in large parts of the library (<regex>) and Clang is near-language complete (with some arcane bugs) but its libc++ should be feature-complete.
 
@Tuntuni Well I am reading "Programming Principles and Practices Using C++" but the computer is essentially a gaming machine.
@Mysticial Mine are the VE248H
 
@Borgleader :)
@rubenvb Ah, right, I remember ThePhD talking about GCC not having <regex> a few days ago.
 

« first day (946 days earlier)      last day (4003 days later) »