« first day (1375 days earlier)      last day (3578 days later) » 

4:00 PM
keep in mind, with resistor colour markings, you only get 2 or three digits and a magnitude (and a error percentage)
 
idgi
Also Drupal's db schema is so terrible
 
huh, since when i don't need five other guys to close something as duplicate?
 
dupehammer's been around for a while
and it was only four
 
right, four, but this one died on the first shot stackoverflow.com/questions/24892154
 
1 min ago, by Puppy
dupehammer's been around for a while
 
4:06 PM
okay cool.
 
also
you have a gold C++ badge?
man, I'm so far out of the answer circuit
 
Ah! I must have not looked at the badge description before. Makes sense.
 
@Cubbi hover over the gold badge icon in the close banner
 
It'd be more impressive if you had a gold badge in operator-precedence
 
user1804599
Why did I get so many upvotes for this. stackoverflow.com/a/24881143/1804599
 
4:10 PM
150
A: Increase close vote weight for gold tag badge holders

Tim PostUpdate: this is now enabled everywhere! The rules are: You can instantly close as a duplicate any question that was originally asked with a tag you have a gold badge for. You can instantly reopen any question closed as a duplicate that was originally asked with a tag you have a gold badge for....

@rightfold dunno
 
@rightfold it's a shame that what he's trying to do doesn't work IMO
 
user1804599
Keyword arguments should be allowed.
 
user1804599
Like in Python.
 
user1804599
As a language feature. No ugly library-based hacks.
 
Xeo
/cc @EtiennedeMartel
 
4:13 PM
@Xeo Oh, look, it's that Temple theme from Melee.
(hihi)
 
Xeo
?
 
You know you're sad when everyone is fascinated by macros that are completely readable to you :(
 
Xeo
The game sure feels weird though, if you're used to isometric Zelda.
@chris No, you just know they're wusses then.
 
@Xeo They tried something different, didn't really work, and that's why ALttP is a reboot of the first one.
 
That default positional arguments macro magic reminds me of the random stupid named macro arguments thing I made.
 
user1804599
4:18 PM
Ugh.
 
user1804599
Why would currency be part of locale.
 
user1804599
So fucking useless.
 
user1804599
@thecoshman ever used NumberFormat?
 
user1804599
Oh woo it works.
 
user1804599
4:20 PM
But it displays "EUR" instead of a euro sign. :[
 
@Xeo Funny how I forget I'm at work and just mouse over it.
 
Hi, can I ask about a general question: how to use value initialization explicitly? It is confusing that the primer says I should use "T()" for value init then later it says we cannot use "T()" because it is actually a function decl. Thanks
 
@rightfold I don't recall using it...
 
@Xeo kinda?!
jesus
 
Xeo
@LightnessRacesinOrbit What? All the important parts are covered.
 
4:23 PM
@modeller boost::value_initialized
 
Xeo
@modeller T v{};
 
also most vexing parse
 
user1804599
Most Vexing Programming Language
 
> Namespace declarations cannot be nested
#whyphp
 
WTFPHPBBQ
 
4:24 PM
@Xeo thx
 
user1804599
NumberFormat y u display currencies with abbreviations instead of symbols!
 
T() on its own value-initializes it.
 
@milleniumbug thx. Though I have don't know boost.
@chris do you mean I can write "T() var;" and var will be value init?
 
user1804599
Ohh this looks good joda.org/joda-money.
 
@modeller No, more like foo(T());
 
Xeo
4:26 PM
@modeller No, he means just T(). Creates a value-initialized temporary
 
sbi
Hi.
 
Of course T{} fixes it anyway.
 
Xeo
Hello Ape, how can we help you today?
 
sbi
@Xeo I dunno. Do I look like I need help?
 
The only reliable way to answer the question would be to measure the performance of the two functions with full optimizations, but I'm rather doubtful that the compiler will be able to optimize this out. As a purely anecdotal example, some recent code I've been working on calls std::accumulate on a std::vector and then calls a function that calls std::accumulate on the same std::vector again, and I saw a measurable performance increase when I passed the result of accumulate instead. — T.C. 3 mins ago
 
4:27 PM
Ok. To summarize, for non-temp, use T var{}, for temp, use T(). Thanks a lot guys.
 
Xeo
You almost exclusively come here if you need help of some kind :P
 
Am I missing something there?
 
Xeo
@modeller No, use T{} too
If you want value init, use {}.
 
sbi
@Xeo I come here when I have time to spare or when I need. Unfortunately, I have very little time to spare.
:)
 
@Xeo Like foo(T{})?
 
Xeo
4:28 PM
Yes
 
Yes
 
For C++03 workaround boost::value_initialized<T> var_impl; T& var = var_impl.get();
 
Xeo
@rubenvb Uhm
 
Ok got it .
 
Xeo
@milleniumbug Or just T v = T();. Copy-elision etc
 
sbi
4:29 PM
> My loyal reader fan-base (all three of you...), and really anyone who knows me, knows that I do indeed appreciate the finer things in life. I enjoy a rich Merlot with my steak, I enjoy Niccolo Paganini's classical music, I enjoy perusing bookstore shelves for Surrealist French poetry, I enjoy art museums and the opera and even the feel of fine Turkish cashmere. And I also enjoy large-breasted women with automatic weapons in crappy b-movies. – post-apocalypse.co.uk/tv.html
 
The only part of uniform initialization that's uniform.
 
sbi
^I considered that funny.
 
@Xeo Doesn't work with private operator=
 
why do clients expect me to know everything? :|
 
Xeo
@milleniumbug ...
Really?
 
4:30 PM
@milleniumbug Copy constructor*
 
Xeo
That's initialisation
 
@chris Oops, that's what I meant
 
Did T v = T(); work in C++98?
AFAIK, value-initialization was added in C++03.
 
Xeo
@chris Non-copyable stuff doesn't need these hacks anyways, just T v; suffices
 
Yet it seems like a pretty major change for how people talk about 03 as a couple bug fixes
@Xeo True
 
4:53 PM
What should I name a function that takes a token and returns an user identifier?
 
getUserID sounds pretty standard.
 
user_idFrom_Token
 
Xeo
lol
 
requestIdentification, papersPlease, psychicPaper
 
dat naming
 
4:57 PM
papers please is a nice game
 
user1804599
@Jefffrey getUserIDByToken
 
user1804599
Or use overloading and write getUserID(token: Token): Option[UserID].
 
@Xeo Who said you have to settle on one naming convention
 
user1804599
Or use keyword arguments and write getUserID(token = …).
 
> PHP
 
user1804599
5:00 PM
Oh, then I’d just go with function getUserIDByToken(Token $token) { … }.
 
user1804599
And don’t forget that data types are nice. Use them exuberantly.
 
lol
 
user1804599
What are you writing in PHP?
 
@rightfold I don't care that much. It's an uni assignment where they expect me to mix HTML and PHP all in a single page. I'm pretty sure the professor will be super happy that I've at least split concerns.
 
user1804599
Never mix PHP and HTML in a single page.
 
user1804599
5:04 PM
Use Twig.
 
user1804599
Also using data types and type hints makes silly type errors easier to track down so you’re done more quickly.
 
yeah, never do the thing you're told to do for an assignment
you have standards
 
user1804599
If an assignment is ridiculous I either refuse to do it or I do it as it should’ve been done.
 
user1804599
And if the teacher doesn’t like the latter then he can get cancer.
 
And that kind of attitude has to be its own reward, cause you won't get any others.
 
5:07 PM
@rightfold Can't use libraries.
 
user1804599
@Jefffrey #fail
 
lolwut
 
I know.
 
user1804599
Quit school already.
 
user1804599
Teacher probably doesn’t understand how libraries work.
 
5:07 PM
I mean, I can't use external libraries. I can use PHP "standard" libraries. Of course.
 
XML DOM, PDO
 
user1804599
I had pretty cool teachers.
 
user1804599
Except for one or two they were very open-minded.
 
bah
today on Swamp Internet: Can't play games cause ping too high after brother came home.
 
trollolol
 
user1804599
5:09 PM
@Jefffrey Do you have to deal with time?
 
user1804599
Use Klok. :P
 
Your new PHP library?
 
user1804599
Yes! :3
 
user1804599
Hey that reminds me of FP room.
 
so much for looking into uploading videos for moneys
 
5:11 PM
This and this are the examples we should take inspiration from. If you get at the second half of each PDF you have all the nice PHP code.
 
user1804599
> unset
 
user1804599
Ah, you’re being sarcastic.
 
@$name=$_GET[’name’];
@$type=$_GET[’type’];
@$subtype=$_GET[’subtype’];
@$mana=$_GET[’mana’];
@$powcmp=$_GET[’powcmp’];
...
 
user1804599
lol @
 
user1804599
At least do $name = @$_GET['name']; and you’ll get $name === null instead of a nonexistent variable.
 
5:13 PM
Basically all the HTML is printed out by echo
Yeah, that level of quality is required.
 
user1804599
Tomorrow I’ll implement timezone stuff and arithmetic in Klok.
 
user1804599
And then I can release v0.1!
 
Perfect pair of link-only answers.
 
linkage?
 
gah, I had to open yet another bank account
now I have three of them
gotta close one at least
also the bank chick today came to me and started talking about life insurance and shit
damnit lady, I'm not planning to die soon
 
user1804599
5:24 PM
> came to me
 
user1804599
Nice.
 
lol
 
Typically people don't purchase life insurance for planned deaths. They don't pay out for that.
 
@AlexM. Nobody is and life insurance isn't for that anyway.
 
user1804599
Oh coool Castlefest.
 
5:28 PM
I'll get life insurance once I find out what the hell it does
so far all I know is that my inheritors will get money if I die
 
dependents, really
 
Not necessarily dependents. (US)
 
I'm not sure if you can get a payout to just inheritors.
 
user1804599
Ugh sold out.
 
@rightfold Nathan Fillion 2gud4u
4
 
5:31 PM
chick said the money will go to my direct inheritors or someone I decide to name
 
my (again, US) policy pays out to my named benefactors. As I have no dependents, that is currently my parents.
 
lol Romanian news headline
"After the first rocket in space, Russia is at it again: the first rocket in the luggage space."
 
user1804599
Just spend all your money on hard drugs and try all of them before you die.
 
also this is the first headline that I saw that said "russia" and not "putin"
like, on all other news sites you don't hear about russia doing something, you hear about putin doing something
in contrast, obama does nothing, the us does everything
 
user3010322
Does C# have an ILookup interface?
 
5:37 PM
A what
 
user3010322
Like, ILookup<string, X> or something?
 
What for
 
@AlexM. not according to the US Media. Obama does ~everything himself.
 
user3010322
I'm about to write a lookup interface to use with a bunch of code that indexes things by string
 
user3010322
I would like to use something library-oriented if possible.
 
user1804599
5:38 PM
Scala uses PartialFunction[String, X] for that. :P
 
user1804599
Use Func<String, X>! Oh wait you cannot overload operator() in C# right?
 
user3010322
Rather than write something that just has a this [ TKey index ] thing.
 
user3010322
There's IDictionary, but that includes a whole lot more
 
user3010322
like Add and TryGetValue and what not
 
user3010322
Eh, whatever. IIndexable<T> it is.
 
5:41 PM
user image
6
 
user1804599
Why not IIndexable<K, V>?
 
user3010322
Oh, right
 
user3010322
I should include the V, my bad.
 
user1804599
You’re bad.
 
user3010322
I am. :<
 
@SamDeHaan for some reason that doesn't surprise me
found an interesting apartment, going to check it out tomorrow
 
ah fucksticks.
why does Clang's codegen layer suck so hard.
 
user3010322
Because it loves you deeply.
 
that would a different, much more enjoyable kind of sucking.
 
looks default enough for me to like it
 
user3010322
5:53 PM
But is it really default?
 
I'll find out tomorrow
 
user1804599
 
@Griwes we forget and have to check ~every time.
 
if I were to estimate, 99% of the mistakes I do as a programmer occur because I never read documentations start to end, I just skim and when I feel like I got the idea I close the tab never to return to it again... until bugs occur
 
Xeo
heh
 
user1804599
6:32 PM
> Returns an array containing all of the Cookie objects the client sent with this request. This method returns null if no cookies were sent.
 
user1804599
What moron would decide to return null here. .—.
 
failbucket
 
user1804599
How stupid can one be.
 
what is this empty array you speak of
I don't understand
 
@thecoshman ''10k1' sure. Why bother with a decimal point if you don't need it, especially when printed onto a small component?
@Puppy - Bailey is looking pleasantly full, thank you :)
 
6:36 PM
lol
 
@Puppy We only give him small portions anyway when the weather is this hot.
 
hi robor
 
@Martin I think I finally made up my mind about power supply. Gonna use a 3.7V high capacity LiPo with a boost converter.
 
user3010322
Roborotics
 
user3010322
6:39 PM
Sounds like Aerobics.
 
@R.MartinhoFernandes 3.7V should be OK for a boost without too much loss.
 
I'm too distracted by the music to continue playing Rewrite.
 
@MartinJames I know right! @cat is just stoopid
 
Boosts are expensive unless you order them from China, though.
15:1 expensive.
 
6:41 PM
I give up. I thought making array parameters visible pointers instead of hiding the pointers behind array syntax would cause this not to happen, but apparently not.
void nconcatenate(char *start, char *end, int n)
{
  if(sizeof start + n > MAX_CHARS)
    return;
 
Why pointers.
 
link (and yes, it's been pointed out)
It's a C question
 
Sounds like a regular C programmer.
 
user3010322
Wait
 
user3010322
if you have n
 
6:43 PM
I just don't understand how this can still happen without making the parameter look like an array.
 
user3010322
why are you taking end ?
 
@R.MartinhoFernandes IME, cheap stuff from China is fine, as long as you order 10k off.
 
@ThePhD Good question.
Oh
end is the start of another string to concatenate.
 
@Martin I can get cheap units on eBay.
 
user3010322
.... Well. That's a clear, concise, and helpful name.
 
6:44 PM
@chris there's a simple explanation: "arrays are pointers"
 
@R.MartinhoFernandes Right. That makes sense.
Thank you for saving me from insanity trying to figure this out.
 
@R.MartinhoFernandes I'm sure they'll be fine. Should not be that expensive - it's only an inductor and a chip + sundry bits.
 
Well find me a cheap one elsewhere then.
And I mean <2 euros
 
@R.MartinhoFernandes 3.7->12 ?
 
@R.MartinhoFernandes and pointers are numbers
 
6:47 PM
No, to 5v.
 
user3010322
Fuck.
 
user3010322
I need @Griwes id<struct_tag> trick in C#.
 
user3010322
Arrrgh C# y u do dis
 
Of course, adjustable works too.
 
user3010322
y u no maek da templates ;~;
 
6:48 PM
@R.MartinhoFernandes Wot I was thinking..
 
user3010322
Oooh, wait, maybe i
 
user3010322
Arrgh, no
 
user3010322
Goddamn.
 
Xeo
@StackedCrooked Akane~
 
user3010322
Why do I miss C++. ;~;
 
Xeo
6:50 PM
@ThePhD lol "Griwes"
 
so it's a battle between Haskell and Erlang now
 
32 chunk render distance? yes please
 
Python and Lua ruled out
 
user3010322
@Xeo What? It was his idea.
 
user3010322
Uses it to return a thread-safe static id that can be "reset" with different tags.
 
6:52 PM
Why would you want that for what what
 
@BartekBanachewicz both good functional languages, Erlang makes it trivial to cope with many processes in parallel
 
yeah it's erlang dynamic reloading and parallelism vs haskell's type system
 
Xeo
Welp, fuck this. Time to start my PC build, even if the PSU is missing...
 
I don't think the lack of type system in Erlang is that big of a deal, and what it brings to table is big
 
@Xeo ahahaha
 
6:53 PM
@Xeo obviously
 
@thecoshman is that you?
 
@Xeo oh, and static wrist bands are for wimps!
 
@thecoshman what static typechecking and proper typing brings is also big
 
@Jefffrey no, jeb
@BartekBanachewicz nah :P
 
well if you do think so then it's okay but you're dumb
 
user3010322
6:54 PM
@CatPlusPlus Well, at the moment I have a base class in C# that makes a Dictionary<string, Tuple<Setter, Getter>>
 
user3010322
This is essentially a static binding, however, and should be elevated to static and then populated with one of C#'s static constructors.
 
and in general I don't think that units should run as "processes"
 
Ookay
 
user3010322
... The problem, however, is that the base class or base static class can't be "templated" out to be different for each class that derives from the base.
 
user3010322
Because I need 1 static map per class.
 
6:56 PM
@BartekBanachewicz then I don't think you get Erlang
 
What the hell are you doing
 
Something wrong
 
@CatPlusPlus shhh, just leave him be
 
user3010322
@CatPlusPlus Supporting System.Data access to structs.
 
You mean
Reflection?
 
user3010322
6:56 PM
@R.MartinhoFernandes It is wrong, it's very wrong, but I don't have a choice.
 
@thecoshman the point is that Erlang saves you when errors happen, where in haskell those errors wouldn't even compile in the first place
 
ITT ThePhD reinvents one of the seventeen data access interfaces that Microsoft ships with .NET?
 
live system patching is great, but not having to patch is even better
 
user3010322
@R.MartinhoFernandes Yeah, but doesn't ship with WIndows 8.1
 
@BartekBanachewicz vOv take care with boiling water and you don't burn yourself with boiling water
 
user3010322
6:57 PM
So that means this entire infrastructure that I've been put in charge of now does not work on the target I'm supposed to port it to.
 
@thecoshman that's what C programmers say
go figure.
 
@BartekBanachewicz hot swapping code is there so you can upgrade with zero down time
 
user3010322
So I have to replace all the Column-Row stuff people are using with real data structures and not big fat object[][] matrices.
 
I'm pretty sure it exists. Somewhere.
Or maybe no one ever needed this.
 
@thecoshman I know it's great.
 
6:58 PM
@BartekBanachewicz Not really, no
 
the point is whether that reloading is worth more for me here than haskell's benefits
 
brb eating burrito
 
user3010322
No, it really doesn't. I know because I asked the people in charge of System.Data and the Windows Phone dev team in charge of System.Data for the phone.
 
so far I'm slightly leaning towards haskell
 
@BartekBanachewicz yeah I know type systems are great and all, but you don't have such problems really. { warning, "what went wrong"} <-- boom, that's a 'warning' object.
@R.MartinhoFernandes at that place? man that place was good
 
6:59 PM
if you say "I know they are great and all" then you don't know how great they are
 

« first day (1375 days earlier)      last day (3578 days later) »