« first day (1619 days earlier)      last day (3312 days later) » 

user1804599
2:00 PM
@R.MartinhoFernandes Nice.
 
user1804599
What if the text contains |]? Can you escape it?
 
user1804599
$("|]") I presume.
 
user1804599
Well that wouldn't always work.
 
@райтфолд Can't splice strings.
Splices are AST nodes.
I don't know if there's an escape syntax.
 
user1804599
I want something more like Scala's/ES6's custom string interpolation.
 
user1804599
2:02 PM
So you can have stuff like sql"select c from t where x = ${foo()}" without SQL injection.
 
If I needed to quasiquote quasiquotes, I'd use the Quasiquote method or whatever it's called.
 
> The vulnerabilities, which they're calling incursion vulnerabilities, were so easy to find that they wrote a script to automate the process and eventually stopped counting the vulns it uncovered because there were too many
About BIOS vulnerabilities
 
user1804599
I don't know whether that's actually called quasiquotation.
 
@райтфолд That's not quasiquotation, though.
 
user1804599
But I know ES6 calls it something with "quasi" :P
 
user1804599
2:03 PM
ah, a quasi-literal
 
Quasiquotation is a device to refer to the syntax, instead of the semantics.
x means the variable x, [| x |] means the code that refers to the variable x (so it has type Boo.Compiler.Ast.Identifier or something).
Consider the word "word".
 
user1804599
Traceur turns sql`a ${b} c` into var $__0 = Object.freeze(Object.defineProperties(["a ", " c"], {raw: {value: Object.freeze(["a ", " c"])}})); sql($__0, b).
 
The first instance of "word" is normal prose, the second is a quasiquotation. The previous sentence also quasiquotes "word", as does this one. /cc @AndyProwl.
 
user1804599
I understand.
 
A piece of cheerfulness for the day
 
user1804599
> C - 0 years experience
Winapi
 
@R.MartinhoFernandes Strange loop party?
 
@райтфолд hmm lol
must've made a mistake when filling that one out
 
user1804599
I guess [sql| ... |] isn't too unreasonable.
 
user1804599
|] occurs rarely in text, so I can do something more sane than bracket counting.
 
2:10 PM
@BartekBanachewicz Or you're just displaying your contempt towards C? :p
Damn, the weather is too good to work
I just wanna leave and run run run ruuuun
 
@райтфолд Just tokenise properly and it should have no problems.
 
@BartekBanachewicz Eh
 
user1804599
@R.MartinhoFernandes nono it's something different
 
user1804599
It's a generalised form of string interpolation.
 
Oh. Right.
You can do something horrible like CDATA.
 
user1804599
2:13 PM
:[
 
user1804599
let memoryUsage = [awk([sh| ps aux |])| { s += $6 } END { print s } |] :P
 
<![CDATA[]]]]><![CDATA[>]]> encodes ]]>, the CDATA terminator.
4
 
user1804599
@R.MartinhoFernandes Absolutely gorgeous.
 
ASR
@BartekBanachewicz OMG :(
 
> Makenzie Wethington broke her pelvis, spine, shoulder, several ribs and a tooth in the fall
Couldn't catch her a little better next time :)
I like "and a tooth" in that enumeration
 
user1804599
2:16 PM
[awk([sh| ps aux |])| { print "<![CDATA[|]]]>" } |] that should work
 
@ASR what?
 
ASR
@BartekBanachewicz I cant pay
 
user1804599
@ASR Then he can't help.
 
user1804599
No Pay, No Cure.
 
@райтфолд It basically splits ]]> into two CDATA sections. The first one encodes ]] and the second >.
 
user1804599
2:17 PM
Yeah I know how it works.
 
So you could do [|||][|]|], I guess. Can't believe I wrote that.
Pure beauty.
 
user1804599
For some reason doing it the way you'd expect you could do it is not allowed.
 
@ASR It's $36/hr here.
 
ASR
@райтфолд I am getting 190$ per month
 
well thankfully dollar is high right now
 
2:19 PM
@райтфолд lol
 
I could actually get my rate a bit lower because of that
 
@AndyProwl I don't get it
 
user1804599
@R.MartinhoFernandes \u...]
 
@райтфолд Gee it took a while to find the credits again sourceforge.net/p/htop/mailman/message/28428307
 
user1804599
@sehe nice
 
2:21 PM
That was immediately time to release v1.0 :)
 
user1804599
@sehe nice
 
:D They must have been waiting for me
 
user1804599
 
What the hell makes people downvote an answer like this stackoverflow.com/a/23579922/85371
 
ASR
@BartekBanachewicz :) why dont you take in indian rupees :) ha ha 1$=60 indian rupees
 
2:28 PM
@ASR because conversions are annoying
I have PayPal in $ and my personal account in PLN
 
ASR
@BartekBanachewicz :)
 
I could think about having an account in € but so far had no need for it
and my GF has an account in GBP so I don't need to have one in that either
 
ASR
@BartekBanachewicz ok
 
GEEEEAR PORN TIME
yes it's a Ferrari
 
user1804599
eww
 
user1804599
2:34 PM
terrible car
 
@райтфолд I kinda like it
 
user1804599
@sehe spite
 
I'd move the headlights a bit more to the side, but overall the body is cool
especially the back
 
user1804599
looks like LEGO
 
ASR
@BartekBanachewicz nice
 
2:36 PM
Imagine how awful the sightlines are inside the car
 
hmpfh reminds me
 
can't even see the cars in front of you, let alone to the sides or behind
 
I have to reconnect the cable to a fuel injector in my car
because I think whoever did that fucked it up
 
user1804599
> The American swimmer Jennifer Figge has become the first woman to swim the Atlantic, crossing the ocean in 24 days.
 
But great for looking at the stars from a parking lot at night, I guess. Right before you get car-jacked.
 
user1804599
2:37 PM
> Im thinking about swimming to america from england, can this be done?
Or would it be more sensible to swim from america to england as while in america I would probably put lots of weight on and swimming back would burn this weight off
 
and as a result the engine randomly stops
 
ASR
Bye all its time to leave
thank you all
 
@Jefffrey I found "vice presidente di Windows" funny
(I still do)
 
why
 
Everything sounds funny in Italian?
Or does that not work for Italians?
 
2:42 PM
Tua mamma
3
 
@Jefffrey Being vice president of a product sounds weird
 
@Jefffrey Yep, sounds funny.
:P
 
@R.MartinhoFernandes For non-Italians yes, apparently
 
user1804599
Tuna momma.
 
Although the accent they use for mocking us abroad does not sound like Italian accent IMO
 
user1804599
 
0
Q: Why foo(short int *) and bar(signed short *) considered different signature by QT?

user3528438QObject::connect: Incompatible sender/receiver arguments Bar::bar(signed short*) --> Foo::foo(short int*) Is there a way to make QT smarter on this kind of thing, or shall I use coding standard to avoid this kind of bizarre?

 
> shall I use coding standard
 
@AndyProwl Yeah, I see. You mean that he really is the Vice President of Microsoft, not Windows.
 
@AndyProwl I have a couple of Italian friends. It sounds funny to me. But then that seems true of all Romance languages except French and Portuguese from Portugal.
@Jefffrey No, he's actually the Vice President of Operating Systems.
 
I see
 
2:46 PM
@Jefffrey He's Vice President of a division, the division is responsible for Windows
 
@sehe I think some people treat it a bit like voting on Meta, and downvote simply because they don't like a particular answer.
 
So it's not completely incorrect but "vice president of Windows" is a weird shorthand
 
Xeo
@EtiennedeMartel Tch, upvotes to wrong answers.
 
Hm. Nawaz is probably thinking that what applies to char applies to all integer types.
 
Xeo
Well, deleted now.
Crap, you broke my SO hiatus. You bastard.
 
2:54 PM
How foolish to expect consistency from C++
 
Xeo
Well, at least it was just a comment
 
@Xeo Geee Geeee!
 
@Jefffrey He is a Vice President in Microsoft. His Vice Presidentship imbues upon him responsibility for Windows. He is, thus, a Windows VP.
This isn't hard.
@AndyProwl Of a division.
Think of the Windows team as a sub-organisation.
 
Microsoft is split into multiple such groups.
 
I do realize that
 
2:57 PM
As a pretty decent analogy, the US has a Secretary of Agriculture.
 
But written that way it's just weird
 
doesn't mean Agriculture is a country
 
"Vice President of the Windows Group" would have sounded more reasonable
 
@LightnessRacesinOrbit You racist.
 
Vice President of Windows is just odd
 
2:58 PM
ITT foreigners deciding what does and does not sound "weird" in English
 
@AndyProwl That sounds derogatory.
 
He is vice president of a division that is responsible for a product, not vice president of a product. Also there's no "Windows" division in Microsoft
There's "Operating Systems Group"
@LightnessRacesinOrbit (the original article was in Italian)
 
@AndyProwl except Microsoft produces more than just windows in the range of Operating Systems
 
@Mgetz Well, but that's just an argument against calling him "the vice president of Windows"
 
@AndyProwl so you've been arguing about English phrases that you didn't even read -.-
:facepalm:
@AndyProwl What other Operating Systems does Microsoft create?
@AndyProwl There is no useful distinction between being VP of Windows and VP of the group that creates Windows
@Mgetz For example?
 
3:02 PM
@LightnessRacesinOrbit I was arguing about an Italian sentence that I translated into English for others to understand
 
maybe Xbox counts
@AndyProwl So you took an Italian sentence, translated it into English, then moaned about the weirdness of the English translation?
@AndyProwl And then everybody understood it anyway, except you? lol
 
@LightnessRacesinOrbit DOS, previously Xenix, the various experimental managed OS's, Embedded 'windows' which is really closer to unix.... etc.
 
@LightnessRacesinOrbit Xbox is handled by a separate team.
 
@Mgetz DOS is still being developed?
@Mgetz Embedded Windows exists still?
 
@LightnessRacesinOrbit Pretty much. But it seems the translation was not inaccurate
 
3:03 PM
@LightnessRacesinOrbit for paying customers
@LightnessRacesinOrbit yes
 
@LightnessRacesinOrbit I guess
 
I thought Windows 10 was unifying them
 
@LightnessRacesinOrbit dunno, might be they are finally killing WINCE
 
@LightnessRacesinOrbit But they have "support" anyway
 
The following is a list of Microsoft operating systems. For the codenames that Microsoft gave their operating systems, see Microsoft codenames. == Xenix == See Xenix Radharani == Windows == Windows 1.0 (1985) Windows 2.0 (1987) Windows 3.x (1990, 1992) Windows 95 (1995) Windows 98 (1998) Windows ME (2000) Windows 2000 (2000) Windows XP (2001) Windows Vista (2006) Windows 7 (2009) Windows 8 (2012) Windows 8.1 (2013) Windows 10 (N/A) == Windows NT == Windows NT 3.1 (1993) Windows NT 3.5 (1994) Windows NT 3.51 (1995) Windows NT 4.0 (1996) All releases of Windows after Windows 2000 are a...
 
3:04 PM
@JerryCoffin Yeah "you used boost in the sample to explain why standard library doesn't have transform_if" kind of reasoning, I guess...
 
AFAIK they have an internal distribution of Linux and BSD too
 
@Mgetz Such vandalism -.-
fixed it
before you posted the link, FWIW
 
Morning. I'm very very lost, I've been told the following code represents 18 bits but I don't know why.
(((U32)(val) & (U32)0x0003FFFF)<< 0)

Am I right in assuming that 0x0003FFFF is hex?
 
> Hello, I'm I dream of horses. An edit you recently made to List of Microsoft operating systems seemed to be a test and has been removed. If you want more practice editing, the sandbox is the best place to do so. If you think I made a mistake, or if you have any questions, you can leave me a message on my talk page. Thanks. I dream of horses If you reply here, please leave me a {{Talkback}} message on my talk page. @ 05:39, 29 January 2015 (UTC)
 
Not a confusing username at all
 
3:09 PM
@AndyProwl Doesn't "tua madre" seem more aggressive than "tua mamma"?
 
@Jefffrey It does
 
@MyDaftQuestions why on earth would you assume such things? It's simply fact and not too hard to find out en.cppreference.com/w/cpp/language/integer_literal
 
It's like the former is trying to be intentionally mean, the latter is more of a joke.
 
Yeah
"madre" is more formal
 
@MyDaftQuestions Also what you posted there is pretty evil.
 
3:11 PM
"Tua matre" is Mafian instead.
 
@MyDaftQuestions static_cast<uint32_t>(0x0003FFFFUL & val) should just fine
@BartekBanachewicz you don't even list Haskell there?
 
> C++ Black Belt
lol
More like brownish, towards bluette
 
@sehe, well, the thing I don't get is why does it have the value of 18 when (apparently) 0x0000001F has a value of 5?
 
@MyDaftQuestions That can't be
 
@MyDaftQuestions (1u<<18)-1 is better than 0x0003FFFF.
 
3:14 PM
5 is 0x00000005
 
hmmmm... may be I've been told incorretly then by the people here
 
It's more likely that I'm incorrect
 
So why is 0x0003FFFF = 18
 
@MyDaftQuestions Read your own words.
You said it correctly the first time around.
 
@MyDaftQuestions That definitely does not seem 18
More like 200+ something
 
3:16 PM
@BartekBanachewicz Etienne on the prowl again
 
@Jefffrey It's 128k-1.
 
Yeah, 262'143 actually
 
10 mins ago, by MyDaftQuestions
Morning. I'm very very lost, I've been told the following code represents 18 bits but I don't know why.
(((U32)(val) & (U32)0x0003FFFF)<< 0)

Am I right in assuming that 0x0003FFFF is hex?
 
The problem is that "value" is underspecified here.
 
Here, read it.
 
3:18 PM
right, I see...
 
and what is val?
 
Can't you just remove << 0?
 
( Mon-15:18:20 ) ( tomalak ) << std::bitset<32>((((uint32_t)0x0003FFFF)<< 0));
( Mon-15:18:21 ) ( geordi ) 00000000000000111111111111111111
next
 
Apparently not,... Sorry all, I don't think I can explain what I'm after well enough, I need to go away and learn more about hex-literals I think...
 
in fact
( Mon-15:18:51 ) ( tomalak ) << std::bitset<32>(0x0003FFFF);
( Mon-15:18:52 ) ( geordi ) 00000000000000111111111111111111
next
 
3:19 PM
@LightnessRacesinOrbit SSshhh.
 
@sehe well I'm just a hobby haskell dev also forgot to add it
 
I'm listening to the Tarzan soundtrack.
 
0x0003FFFF is 262143 is 0777777 is 0b111111111111111111
simple as that.
 
lol, nobody uses octal literals
 
zigamorph<18>()
 
3:24 PM
@Jefffrey I just did.
 
@LightnessRacesinOrbit You are nobody
Ba dum tss
 
Oh, I worked it out... Do I share, or do people not care?
I suspect the latter
 
Both. None.
 
well, 0003ffff is 18 because it's hex and 4 bit. so each f is 15, represented as 1111 and the 3 is represented as 0011 so, we have 4 f's meaning 1111 1111 1111 1111 and then then 3 0011 (add all the 1's and we've got 18)
 
Er.
That's not how it works.
 
3:27 PM
I get the feeling though this may be a strange way of working.
All I can say is this is how it's just been explained to me @R.MartinhoFernandes , I admit I'm in no position to say it's good/bad/other
 
lolol
he's not far off
the "it's 4 bit" thing is highly misleading, of course
but, yes, a hex digit is equal in bit-width to a nibble (half an octet)
 
@MyDaftQuestions f = 15, 0x3ffff = f * 16^0 + f * 16^1 + f * 16^2 + f * 16^3 + 3 * 16^4
 
to a nibble? What? That's what you do when you're feeling pekish!! Also, why is 4 bit misleading ? Can it be other things?
Actually, this has left me more confused. If I do binary, 01000000 is different to 00000010
But, according to what I wrote, F0000000 is the same as 0000000F ---- this means I must be wrong?
 
15 + 240 + 3840 + 61440 + 196608 = 262143
Of course assuming the most significant digit to be on the left.
 
@MyDaftQuestions Because it sounds like you were saying that "0003ffff is 4 bit", which is nonsense.
@MyDaftQuestions You meant to say that each digit in "0x0003ffff" represents 4 bits (a nibble), which is true.
@MyDaftQuestions Direction matters. You can't just add up the values. It's more like a lexical subsitution.
 
3:37 PM
s/represents/can be represented by/
 
It's 262144 bub, you can't have all ones and an odd number
3
 
@LightnessRacesinOrbit, I'm sure direction matters, but based upon the example I gave, it doesn't meaning, my example must be wrong?
 
You're actually lucky that you're converting between hex and binary, as you can't do it this way for most bases.
 
Accept my pull request scrub
 
@MyDaftQuestions Yes. You didn't take direction into account.
 
3:37 PM
oh I see...
 
@CatPlusPlus Erm, of course it's an odd number.
Odd numbers have the latest digits of their binary representation as 1, bub
 
Okay I'm dumb and just woke up
 
@R.MartinhoFernandes what's word for that again. zylogism or something?
 
19 mins ago, by R. Martinho Fernandes
zigamorph<18>()
 
Thank you all for the hlep
help
 
3:41 PM
s/hlep/fish/
 
@R.MartinhoFernandes Ahaha. How on earth am I anchoring that beauty in in long term retrievable
 
you know
reading motorisation forums is a bit like reading post-mortem-SO
you know all of those vampires and the shitty answers to their problems, right
so forums about cars sound like people actually took those answers and put them live in the ECUs
 
3:59 PM
Did you buy it yet, can we make Lounge<Space>
 
7
A: Meaning of "Too true, too true!"

StoneyBToo true is a response to being reminded of a distressing fact: it acknowledges the truth of the other person's observation while wishing that it were not true. The fact is truer than I like, hence too true.

wtf
bullshit
 
user1804599
Is Boost.Python good?
 
Boost.Whython
 
user1804599
I want to embed Python in my C++ program.
 
4:20 PM
MOAR delicious performance optimzing stackoverflow.com/a/29214966/85371
@orlp found another use for gperf ^
 
@sehe That's sounds like something that would fit some SIMD hacking.
 
@CatPlusPlus it's expensive :(
@CatPlusPlus also will I get sucked in
I can't get sucked in
 
@Mysticial I mention it :) I would always make the compiler optimize it, though
 
Factorio multi incoming
I don't game p much at all these days
my next weekend is booked for flat renovation already
it's food, sleep, work and a bit of guitar
well and reading about engines while my projects build
I was so fucking tired yesterday I couldn't make it till the end of the jam
just outright collapsed on the bed
 
@sehe What you would basically do it write a kernel that takes 4 SIMD vectors and compresses it into 1. You take the 4 vectors, subtract '0' from every member. Then proceed with the logarithmic bit compress.
Not that I've tried it. But I have a similar kernel for (binary integer <-> hex string conversions).
 
4:28 PM
God Chrome is such a pile of FUCKING wank
5
I have like a gazillion cores yet an accidental infinite loop in JavaScript still locks up the entire machine
 
@CatPlusPlus Also my friends are pushing for two-ship crew in GoI
 
@Mysticial Ahaha. You should join the fun!
Maybe some GPGPU code :/
 
@sehe did I hear GPGPU?
 
Give me an excuse to meddle with OpenCL
 
had to actually power cycle it
isduhfkusaydgfkausdygfaskulshfd
 
4:32 PM
@BartekBanachewicz Stop being poor
Let's blow up space things
 
everybody stfu
 
As a side note, for super-duper performance I have it on authority hand-tuned SIMD can squeeze a few more drops out. — sehe 9 secs ago
 
> There is a shortage in the blood supply, but there is no shortage of blood.
 
Got 300k bounty from one ship woo
 
@Lightness at least when I get trouble with FF, the browser is the only victim.
 
4:41 PM
@LightnessRacesinOrbit lol
 
@CatPlusPlus it's about being poor in time
@CatPlusPlus I've just asked a colleague and he said you have to put a lot of hours in
@sehe none
lol tempted to ask @R.m if it's safe to service ABS meters in my car myself :D
internet guides said so
all of those "safety precautions" are just suggestions after all... right?
like dates on yoghurt
also WHAT THE FUCK CAN readers for €150
are those people mad
it's hardware worth €10
 
What's this space game you guys are talking about?
@BartekBanachewicz That's irrelevant.
 
@Jefffrey inb4 "and software worth €140"
@Jefffrey Elite Dangerous
hmm actually
if I could get the specs for the CAN bus in my car
I could hook up my STM to it
those could be a problem because they look awfully specialized
 
woo space
 
lol the computers hold data like "number of impacts"
 
4:53 PM
@BartekBanachewicz how is the wikiing going?
 
I'm at work
getting stuff wrapped up for today
I'll do it when I get back home
 
wokay
 
I kinda wish I was as smart as Jerry and robot combined and could write a software for that STM in 2 hours and wire everything and fix the damn ABS myself
oh and hi @Jerry
@JerryCoffin I need meanings of specific codes though, look
 
is it undefined to cast a an array of size N*M to a multidimensional NxM array?
 
4:55 PM
I need to know that PR003 means "number of impacts"
@Veritas don't use C arrays.
don't cast arrays
 
@Veritas How are you doing it?
 
@BartekBanachewicz That's not really about CAN. CAN is roughly equivalent to a combination of, say, Ethernet and TCP. You're looking for the equivalent of a spec for something like, say, SMTP running on top of TCP.
I believe that's all specific to particular system controllers.
 
yes yes I know use std::vector only that I am trying to implement a dynamic multidimensional array with contiguous storage.
 
@Veritas It should be one buffer anyway
 
measuring the options I just wondered if this type of casting is allowed
it's probably undefined but I thought I should ask
 
4:59 PM
of course not. An array of size N*M is T*, a 2-dimensional array is T**
 
@BartekBanachewicz There's always time for space
 
posted on March 23, 2015 by Eric Battalio

Are you using Visual Studio 2015 for cross-platform development? Take our survey! In CTP 6, we've added or updated the following: Support for Android API Level 21 (Lollipop). Improvements to Android Logcat. (Logcat is a diagnostic tool and...(read more)

 
> Driver's seat position
 
@Mr.kbok arrays are not pointers.
@Mr.kbok and two dimensional arrays are stored contiguously
 
@Bartek those codes you have to get from the manufacturer.
My knowledge of ABS systems is only theoretic from reading my dad's library, so I don't know how easy it is to do stuff in practice.
But as a general principle I'd recommend against any non-trivial operation in anything safety-related.
Mistakes can cost dearly.
 
5:13 PM
@Mr.kbok Total nonsense in every way.
@Veritas This came up on SO recently I think
 
okay
 
I don't remember the answer but you can simply wrap access and rewrite the index
 
I will probably do it with an operator[] of many arguments
think pascal syntax
 
@Veritas Impossible
 
5:19 PM
it cna't take multiple arguments?
can't*
 
@bluefog Not really
@Veritas No
operator() instead is conventional
> @LightnessRacesinOrbit: you explained and I explained, so good news, I made an appointment for you to TALK TO THE HAND! – sina Tavakoli 6 mins ago
lol
 
I wonder what was the reason on this decision. I could probably also return some proxy class to get the same syntax as conventional multidimensional arrays.
 
@Veritas Yes, you can.
Most people find it easier to just overload operator() instead (because it can take an arbitrary number of arguments directly).
 
@BartekBanachewicz Dunno
 
5:27 PM
Yay, off to teach kids Minecraft
 
Maybe to get to the high tier of ships
 
user1804599
5:39 PM
I had this wonderful idea.
 
5:49 PM
a new language?
 
@LightnessRacesinOrbit
 
Manuel beat me to it, but your compiler does not support regexes. Therefore this is a near-enough duplicate of stackoverflow.com/q/12530406/560648. — Lightness Races in Orbit 1 min ago
plz some1 dupehammer
I wasted my closevote
thanks @Jefffrey
 

« first day (1619 days earlier)      last day (3312 days later) »