« first day (2052 days earlier)      last day (2910 days later) » 

4:03 AM
we are dead
^^ listen to this guys
who sounds like this besides this
 
It kind of reminds me of Inevitabilis composed by Yuki Kajiura
I really don't like this guy, but apparently he made a desk-bottom computer
Yeah, he's pretty much the most annoying tech commentator out there and he's a lot like Vince Offer in that he's a salesman, not an expert
I only watch the 20 seconds of video I'm interested in, then leave his channel
Sounds about right. Really depends on the quality of drive you need, but 2TB was going for 58-85$ recently where I am
Oh! And it's Seagate, so it'll be half-decent :D
 
4:24 AM
@Aaron3468 ???
lank?
 
@QPaysTaxes Haha, one of those, and an SSD for your OS/dev software and you are golden my friend
Windows is about 20-30 GB if I recall.
I ended up buying a second SSD, but only because pc games are 40-50GB >.>
So I have ~380GB of SSD space and a free 50GB after nearly 2 years of ownership
Exactly. Any CAD/graphics design software will also love your SSD.
 
there is android.widget.Filter then there is android.widget.Filterable
 
Yeah, I'm running software on a separate drive. You just need shortcuts to run the executable from desktop, or you can open them from the file browser
 
4:39 AM
copy pasted code needs a lot of imports to support, lol
 
No, but if the drive gets disconnected, you won't be able to run programs from it and some programs (like iTunes) mess with their settings to point to an accessible drive instead
 
@QPaysTaxes that’s correct
 
C++ Problems: Should I pass it by const & like god intended or should I pass it by const * to avoid including additional headers.
 
@Mikhail False dilemma.
 
well that was quick
 
4:53 AM
Now wait why would you have to include additional headers when passing by const &?
 
@Mikhail Pass by const & to avoid including additional headers.
 
@HSchmale the target must be complete
 
@LucDanton Wait, it does?
 
@R.MartinhoFernandes I’m double checking
 
Sounds like something really stupid that should have had a big fat DR decades ago.
 
4:56 AM
if you expect to use linux at some point in the future, yes, both, especially vim
 
@QPaysTaxes Learn VIM then you can use evil mode in emacs, and have the best of both worlds.
 
Unless you're on Ubuntu in which case you should use nano
 
It's where you can use vim keybindings in emacs.
 
@R.MartinhoFernandes it’s in the back of my head because my rule of thumb is that X& ref; is the same as having X* const p; *p;
 
@Morwenn do you like symphonic rock?
 
5:00 AM
@Mikhail I'd guess the overwhelming majority of Ubuntu users don't use nano.
 
@R.MartinhoFernandes it’s surprisingly hard to track, and I’m not sure I’m willing to spend too much time on this this morning
 
And then that the vast majority of them doesn't use vim nor emacs.
 
> A reference shall be initialized to refer to a valid object or function.
is that possible when an incomplete type is involved?
 
That's not enough.
 
I think so, e.g. arrays of unspecified length
 
5:01 AM
@R.MartinhoFernandes My boss uses nano.
 
@HSchmale What do you want me to say? That your boss is in the overwhelmed minority?
 
@R.MartinhoFernandes to cut the story short though, one way or the other you can still have your function declarations—forming a reference type for a parameter is fine and I agree with you
 
In declarations you can even have incomplete types.
 
codepad.org/vFokA18T It was SIGSEGVing on my machine. Debugged this piece of **** for an hour and was salty when I finally found the bug.
 
@R.MartinhoFernandes practically speaking I don’t find it useful so I never mention that sort of stuff, at least in the context of API design (not that we’ve established anything about ref to incomplete types)
what’s maddening is that the Standard goes out of its way to say 'yeah pointers to incomplete types are fine, go ahead'
 
5:07 AM
Um wtf just lost 25 rep. Anyone know why? Nobody deleted anything. Weird
 
> Pointers to incomplete types are allowed although there are restrictions on what can be done with them.
 
The real alternative to a incomplete type pointer is to just have unsigned long long and cast it everywhere.
 
the real alternative is to have double and cast it everywhere
 
@QPaysTaxes The reference (p) was invalidated.
 
@LucDanton do you play SC?
or HC?
 
5:15 AM
@QPaysTaxes Because of u.push_back(v[i]);.
@QPaysTaxes Yeah.
 
People should learn about physics and programming basics before taking on a game as a beginner project. Even if it's taking 30 min to write formulas and objects on a sheet of paper and then starting.
 
@QPaysTaxes There was some code between push_back and pop_back. Then I tried to reproduce it with minimal code.
 
In other words, helping people on SO who are in over their heads is not very fun.
 
you're making me remember the worse production code I've found. :( Please, no.
 
Code review for business, or academics?
@jaggedSpire What was it, if you can share it in one or two sentences?
 
5:24 AM
@Aaron3468 it was cut and pasted code from stack overflow with the lines that made it work properly commented out
and mindlessly, too: they never added the part in the comments section that prevented resource contention for the life of the program
 
Ahaha ^_^ so, working as intended then?
 
yeah, I spent the entire day pissed off about it
lol
I was unhappy finding obviously buggy code, but, I thought, maybe someone just...forgot while they were debugging to uncomment some lines of code
and because I wasn't completely familiar with the API that was used, I decided to google it.
Which is when I found the SO post
I'll see if I can find it again
 
@QPaysTaxes That's similar to how brute-forcing a mathematical problem rightly earns ire from your professors
Like 3^6 should never be calculated as 3+3+3...
 
ah yes, here it is:
284
A: What is a good pattern for using a Global Mutex in C#?

Sam SaffronI want to make sure this is out there, because it's so hard to get right: using System.Runtime.InteropServices; //GuidAttribute using System.Reflection; //Assembly using System.Threading; //Mutex using System.Security.AccessControl; //MutexAcce...

 
So it basically creates zombie threads that do nothing?
 
5:30 AM
the infinite timeout version was used, and the failure detection was commented out
sort of?
it depends on which lines are commented out
 
Whoops, mutexes, not thread ^^; It locks up resources you need until the program stops executing due to a forced exit
 
the original, non corrected answer would prevent threads from proceeding beyond that point until the original thread had exited
this was the base used by the Enterprise Ready code I found
 
D:
 
the failure detection would never be triggered, because there wasn't a timeout for it
when they added the timeout, it would proceed to work as expected.
as long as they didn't comment out the detection of the timeout case like fools
 
Samsung's Evo SSDs are a good series. Sandisk has a few cheaper ones that are nearly as good
 
5:34 AM
which the code I found did, happily rendering the use of a non-infinite timeout completely !#$^&%$ useless
since they weren't using it
 
XD Professionals!
 
because they'd gone with the badlet version of the original code
yeeeep
that is anot a happy thing to be reminded of
 
Generally I have at least a general idea of the problems I'm solving written on paper before I touch code
@QPaysTaxes Because their tests are poor
 
they need to write better tests
 
O.O O.O O.O
Seriously, even if you just write a static test function in each class, it's better than nothing at all
That's how I used to do testing until I found testing suites. Before that, my code had like 5-10x the debugging headaches
 
5:40 AM
jfc
 
Japan's First Christians
 
curses, all strung together like Christmas lights. :)
 
I really like 'john fing cena' though
 
awww thank you <3
you can start a club with @ThePhD
 
Just make sure your motherboard has enough sata connectors for hard drives/SSDs, and that the hard drive is a supported sata speed, e.g 6GBPs
 
5:48 AM
the interface between HDD and motherboard must be compatible
 
No, but if you link me your list when you finish, I can tell you. Give it a shot on your own first though, because it's worth figuring out
 
No. Go in the details and look for SATA III.
 
It'll take a few weeks to plan and watch videos of how to build a PC, but it isn't too difficult to learn. No problem with asking :)
I recommend just jotting down which outputs/inputs you need on a notepad. Then use the rest of the notepad to write down anything you learn while you're comparing/studying parts
lol, I mean paper. notepad is terrible for taking notes
It's about the right size. OneNote isn't too bad, but I actually prefer paper to digital for some reason
 
6:03 AM
All of it
 
RAM isn't a huge factor, but if you're running game dev software 8-16GB is ideal
 
Getting less than 16 for a new thing today is silly
 
Honestly, it's such a cheap upgrade at the moment that you may as well go 16 or 32 ^_^
 
32 or 64
Not on consumer motherboards
 
it’s a crazy idea but it might just burn the house down
2
 
6:11 AM
be sure to use blue LEDs to make it run cooler
you want the eventual inferno to be as cool as physically possible after all
 
6:39 AM
Which CPU did you choose?
Haha, alright. A good cooling system if you are building in an ATX case is the Corsair H110i, but for some CPUs you can get by without liquid coolers
 
6:54 AM
It's a fairly efficient processor, but you may want to see if you can find a slightly higher base clock, or overclock it if you're comfortable with overclocking.
It overclocks well, so if you're willing to give it a shot, it should be a nice processor
There are programs that can do a great job of it automatically
Generally if you don't overclock properly, it's just a matter of removing the motherboard battery or shorting two pins to reset the setting
 
Does anybody here have experience with Apple support for macs out of warranty?
 
@Shoe A PITA and you can expect the repair to be a little expensive
 
I heard big macs work even couple of years after warranty!
 
@Aaron3468 Oh wow
What issues did you have?
 
Repairs are really expensive, and you can't get support over the phone; you've got to schedule an appointment. They aren't bad, but their service system is just inconvenient
So it's worth giving them a try; they are professional. Just don't be surprised if you find yourself having to work around their schedule and pricing
 
7:16 AM
How much did you pay for the support?
 
~$150; just a screen repair. Getting in touch with them to solve iTunes bugs is also more difficult than it should be.
 
 
1 hour later…
user1804599
8:52 AM
@QPaysTaxes not with dynamic amounts of arguments
 
9:03 AM
@orlp Not always but S&M is a masterpiece.
The Call of Ktulu is so much better with the orchestra *-*
 
user1804599
I'm kind of getting sick of my bank
 
user1804599
Last time they sponsored a murderer, now they are funding a broiler farm in Ukraine
 
user1804599
I think I'm going to look for a different bank
 
a chicken farm?
sounds pretty normal to me.
 
user1804599
9:19 AM
@Puppy stuffed chicks
 
user1804599
that collapse under their own weight
 
> So what’s the most important characteristic to be a decent developer? Curiosity
 
user1804599
Competence
 
user1804599
In need to randomly generate corridors such that all rooms are visitable
 
Visitor Pattern? ;)
 
user1804599
9:32 AM
@fredoverflow no, player movement
 
Move semantics!
0
A: Is C++ context-free or context-sensitive?

Ira BaxterThis answer says C++ is not context-free... there's an implication (not by OP) that it can't be parsed, and the answer offers a difficult code example. As others have observed, the question about whether the language is context-sensitive/free is different than the same question about a specific ...

A new challenger appears!
 
I edited his answer to remove all references to his product and company.
 
I've got a cake to bake today.
 
I've got a bunch of boring cleaning and shit to do today
 
I prefer to bake things when it's context-free, but mother's day and stuff... well I promised I'd bake one.
 
9:47 AM
68
Q: How do you do dependency injection with the Cake pattern without hardcoding?

BillI just read and enjoyed the Cake pattern article. However, to my mind, one of the key reasons to use dependency injection is that you can vary the components being used by either an XML file or command-line arguments. How is that aspect of DI handled with the Cake pattern? The examples I've seen...

 
But I can't stand cake patterns :(
Overloading function in mathematical notation: done, but I don't even know whether that's a thing or not.
 
10:03 AM
of course it's a thing
you never seen + for matrices and for reals, for instance?
 
Well, that's right.
At least it handles pretty smoothly the problem of « parity » having a different meaning for an integral number and for a bit vector.
 
nwp
@Morwenn I would prefer different functions integer_parity and bitvector_parity instead of overloading for that
 
Not me.
 
user1804599
10:21 AM
Hello.
 
Weren't you already there like an hour ago? :o
 
user1804599
I took a shower.
 
user1804599
@fredoverflow cake pattern is shit
 
Excuse me
 
user1804599
just use currying aka constructor parameters
 
10:30 AM
why do I have problem passing std::string by reference?
4
 
How are std::string references formed
 
user1804599
@Shoe By implicit conversions.
 
user1804599
 
user1804599
The web design is super rad.
 
10:32 AM
With the example input at the command line
 
user1804599
How are worrld formed
 
For some reason, I'm calling str.erase() which should erase the first character of the string
But it doesn't. It erases the entire string
 
@rightfold Yup. ANd the drawings are gorgeous.
 
@VermillionAzure What
Why would it erase the first character?
 
Go to match()
wait a minute
 
10:34 AM
erase() removes all characters
It's the intended behaviour
 
Wait a minute
Shit I think it's because
fuckkkkk
 
erase(0, 1) is what you want.
 
god damn it
no no no
I know the problem now
 
ok
 
10:37 AM
> std::cin >> input;
THIS
 
user1804599
Fun fact: if Amsterdam is the capital of France, the Eiffel Tower is on Mars.
 
user1804599
This is due to the truth table of implication:
 
user1804599
true  -> true  = true
true  -> false = false
false -> true  = true
false -> false = true
 
Alrighty looks like I successfully made a recursive descent parser
 
Ell
@rightfold is that called Curry's paradox?
 
user1804599
10:44 AM
I don't know what Curry's paradox is.
 
user1804599
It's called the truth table of implication.
 
Eh, now I want to eat a Japanese curry.
 
user1804599
holy guacamole this exists sharkdp.github.io/purescript-isometric
 
@Ell that's enough math for you for today
(We just had an unfinished discussion about induction "not working for big numbers" on discord ;_;)
 
user1804599
Focaccia is the most delicious bread.
 
Ell
10:49 AM
@Griwes xD
 
Xeo
11:00 AM
@rightfold panini mozzarella sandwich, please.
 
user1804599
 
user1804599
<3
 
Xeo
mozzarella is just so goooood
 
user1804599
Parameterization over evaluation strategy! try.purescript.org/?gist=590de0a426b1d7f88e800a61db6f7b33
 
user1804599
Higher kinded types are love. Higher kinded types are life.
 
11:04 AM
HAHAHAHAH YESSSSSSSSSS
I DID IT
YES
this effing parser is so ugly
WHY DOES C++ NOT HAVE A TREE STRUCTURE WTFFFFF
 
I mean in the standard library
I know Boost probably has something already
 
nwp
@VermillionAzure std::set
 
It was proposed for standardization: open-std.org/jtc1/sc22/wg21/docs/papers/2013/n3700.html
 
@Morwenn finally
 
11:06 AM
But wasn't accepted because it was rather huge and lacked user experience.
Apparently it never made it into Boost either, so there isn't much user experience.
 
@nwp how is that a tree
 
So it will probably never be standardized.
 
@Morwenn Such a shame
Given the usefulness of trees in algorithms idk
 
That proposal felt pretty complete anyway.
Maybe @sehe has a clue why it never made it into Boost either.
 
@Morwenn Too big perhaps
It's absolutely massive
 
11:14 AM
Well the STL had sequence containers and associate containers. That proposal tried to add as much tree containers, with n-ary trees, AVL trees, treaps, red-black trees, etc...
And to define the corresponding traversing and cursor semantics.
 
11:26 AM
@Nooble hey that's my major. Well. Was
 
user1804599
sehe write me a type checker for simply typed lambda calculus
 
@Morwenn no idea. I do note some competition with the comprehensive set of tree implementations already in Boost Intrusive. I think I've seen they're used under the his in Boost Container for node based containers
@rightfold see a doctor please. Is not ok for you to lose taste for implementing stuff like that
 
Still, sometimes people need the raw trees and not the higher level interfaces. It's a shame not a have a comprehensive and well-documented set of such :/
 
user1804599
It's really easy though.
 
user1804599
I could do it in like 30 minutes.
 
11:33 AM
Dunno what such a library would contain really
 
That's the problem. Everyone can. And it will be equally reliable
 
Everyone makes their own trees and lists because they have special needs
 
@rightfold Hey
 
Otherwise they would use standard containers
 
@rightfold How would you build a predictive parser and represent epsilon if you were required to output a parse tree?
I'm having a hard time detecting an empty string with a simple input string stream because how the heck do you describe the absence of something in between two characters without external state or going by character-character edge?
@sehe POLAH BEYAH
HALP
 
11:46 AM
@milleniumbug Well, I was originally talking about the tree library proposed for standardization a few years ago. Not sure whether you followed :p
 
Cake baking time. cul8r as they say.
 
@rightfold You not gonna answer my question?
 
12:12 PM
@Nooble No, it actually evaluated pixel data
 
rofl, I was suddenly unable to open calc.exe through a shortcut in the start menu because as it turns out when i installed something last night it made my %PATH% env variable longer than 2048 characters and that fucks things up.
Windows, the 1980s called they want their string limits back
8
 
lol
way to go
 
sure enough i removed some entries and now it works again
 
12:36 PM
That's so sad
As is answered below, get some straps. You'll find a million and one uses for them. Make your own clothes line, strap your luggage together, strap your luggage to a luggage cart (harder for someone to just pick up a piece and walk away, strap together your beds, strap your kids in place.... heh just kidding about that one. — CGCampbell Jan 11 '15 at 19:44
 
Ven
Hi
 
user1804599
@Ven Hello
 
user1804599
aaaaaaaaaaaaaaaaa phantom notifications are so annoying
 
(Why can't we wrong it?) What is wrong with the existing answers that had the same code? — sehe 39 secs ago
Forever policing
 
user1804599
Forever laughing at the inability to compose standard algorithms.
 
12:51 PM
Yeah. Well. They're working on it
 
user1804599
I.e. it'll never happen
 
user1804599
hence forever laughing
 
That's a weird reason to laugh
 

« first day (2052 days earlier)      last day (2910 days later) »