« first day (2170 days earlier)      last day (2771 days later) » 

12:02 AM
-4
A: Add the ability to ignore users

goneThe ignorant/arrogant position that SE is maintaining is users unhappy with other users in a community will continue to contribute, when in fact they may well just go away completely.

^^ wut
 
Yeah, and their downvotes are also ignored
 
12:22 AM
Lmao
@Borgleader I'm starting on my language soon. :D
We've decided what it's going to be called.
 
@ThePhD FYI it's called lepix
hth
 
Not french enough.
 
@ThePhD WidowMaker
 
Oh, another person to race with. :D
 
LéPix
 
12:25 AM
Is every lounger getting his own language these days? :D
 
@Griwes It's part of my course, so.
I have to decide between writing a recursive descent parser for a C-like language
 
@Griwes except his language is for img manip not for solving already solved problems
 
or just whipping Yacc/Antler/whatever
 
12:46 AM
Erm. Nah. It does not use the null char. Even cplusplus.com got that right in the page you linked. — sehe 7 secs ago
Added proof to the pudding
 
@ThePhD :)
You shall succeed where I have, well run out of time really
 
1:11 AM
@Griwes never
 
Ugh.
Why are there no simple C++ (or even C) libraries for extracting .zip files?
I think this will work.
 
1:45 AM
@ThePhD Ooh, what kind of language?
 
1:57 AM
Did Windows update on the laptop. This time it picked up the Anniversary update which wiped out all the "slimming down" that I did to bring Win10 under control.
 
@Mysticial Which slimming down?
Privacy stuff or other things?
 
Windows updates are obnoxious because they don't ask to change settings
 
@caps Privacy. Telemetry. Most of the task scheduler stuff. All the background tasks.
At least it didn't fuck with the firewall that I use to block telemetry and updates.
That's the only tool I have that's effective at letting me choose when to update.
 
And they also sometimes randomly install new programs (90% of the time they're apps, but seriously?)
 
@Aaron3468 Yeah, they reinstall the apps that I deleted.
So I had to delete them again.
 
2:01 AM
@Mysticial Bleh.
I guess I should go through and redo all of that too.
 
It's only on the really big updates that they do this. The November update and the Anniversary update.
 
Just did anniversary update a couple hours ago
 
I test drove the anniversary update on my desktop a couple weeks ago while I was messing the HD configuration there.
But I didn't do the "slim-down" until after I had upgraded from base all the way to Anniversary update.
MS can get all the telemetry they want about my system while I'm still updating it after a fresh install.
Since none of my shit is on it yet.
It also saves the effort of having to redo everything after each major update.
 
Hey guys.
I have a silly LaTeX question.
I want to have a "main" file that controls styles, but then have multiple files for like, each section / chapter.
is that a thing that's possible?
 
@ThePhD Sure.
There's a thing called \input.
 
2:13 AM
@Griwes Oh, neat. This will help me organize my paper a lot and stop scrolling shit. :B
 
lol
I can't imagine writing even a simple thing without that.
 
That's how I've written all my papers. .-.
 
Like, everything beyond a CV or something similar needs to be split into sane chunks.
 
2:25 AM
@Borgleader
0
Q: Desperate Answer Needed:Android Sqlite Table is not creating

Kunal SikriCommunity I m new in android so to just implement the concept of sqlity from udacity as guided,I built a small app...as show below code with category activity(main) EVEN I CALLED getReadeableDatabase() on open helper class in onCreate of main activity(catalog),clear data,uninstalled app,no soluti...

^^ "Desperate". You don't see that too often in titles.
 
Honestly from my experience with LaTeX, I wish it had a proper programming language embedded instead of counters, etc.
 
Welp... Anniversary update did jack shit as well. Fail in 10 minutes.
 
@Aaron3468 Image processing language.
 
2:38 AM
@ThePhD Interesting, I'm looking forward to hearing about it as it progresses :D
 
FUCK>>> HOW DO I FIX MY LAPTOP?!?!?!
piece of shit
 
@Mysticial Still trying to figure it out? I'm probably going to watch a few eps of saiki kusuo no sai-nan
 
I've probably spent more money in time trying to debug this shit than the laptop is worth itself.
 
Your laptop is borken QwQ
Maybe it's just one of those bugs that you can afford to leave be?
 
@Aaron3468 Yeah. I have a consistent repro switch (the placement new line), that I'm comfortable moving on. But it still ticks me off that I couldn't figure out what's fucking wrong with the laptop.
I guess I'll one last thing which is to relax the rest of the memory timings. Though I'm 99% sure that won't do jack shit either.
This thing also fucked up my desktop...
 
2:50 AM
A few of the icons look weird, but I don't see anything wrong. Did it reposition all the icons? I'd be annoyed by that for sure
 
I let it auto-arrange.
My desktop usually has no more than 2 columns of shit.
 
This is what I have been looking for!
36
A: Simple way to unzip a .zip file using zlib

rodrigozlib handles the deflate compression/decompression algorithm, but there is more than that in a ZIP file. You can try libzip. It is free, portable and easy to use. UPDATE: Here I attach quick'n'dirty example of libzip, with all the error controls ommited: #include <zip.h> int main() { //O...

 
And usually only 1 column on everything that isn't my main machine.
Alright, I've intentionally fucked up my memory times. (set everything to stupidly high levels)
Let's see if that does even a fraction of a jack shit.
fuck this
lol, it died already. AHAAHA
 
@Mysticial That saved a lot of time...
 
Man.
The syntax of these things is so goddamn strange.
I don't know how to deal with functional thought.
Maybe it's because I don't know lambda calculus.
 
3:04 AM
@JerryCoffin yeah
Gonna try one last thing which I haven't tried yet. Downclock the L3 cache. I've downclocked just about everything the BIOS lets me change. But I haven't messed with the L3 cache yet.
Looks like that didn't last long either. 2 minutes?
 
@Mysticial That was definitely quick.
 
Feels like the stability might've actually gone down after the Anniversary update.
I wonder if the known good binaries are still ok.
 
3:37 AM
@Mysticial IRTA Download the L3 cache.
 
@Borgleader I haven't downloaded ram in a while, thanks for the reminder :)
 
But L3 cache != ram.
 
3:59 AM
Well yeah, you can download L3 as well, but it reminded me I need DDR3
 
4:17 AM
The stable binary still looks stable after the update.
How the fuck does a redundant memset cause heisen-failures? Only on this fucking laptop. And regardless of any hardware setting. lol
 
I feel that I'd need a PhD to answer that question
But it definitely doesn't make much sense
 
The only thing that suits the bill at this point is OS or driver.
Or some subtle hardware thing which I have no control over.
That's an overclockable laptop, and it gives me control over almost all the frequencies in the system.
And all the memory timings.
 
4:34 AM
At this point, you've exhausted everything in your code and I don't think you'll figure out why the hardware is doing this without someone extremely well-versed with your platform >.> On the other hand, at least you know a semi-workaround
 
Yeah, it's really dumb.
template <typename T, upL_t alignment = alignof(T)>
SmartBuffer<T> make_trivial_array(upL_t size){
    static_assert(
        std::is_trivially_constructible<T>::value,
        "Object must be trivially constructible."
    );
    static_assert(
        std::is_trivially_destructible<T>::value,
        "Object must be trivially destructible."
    );
    T* ptr = (T*)AlignedMalloc(size * sizeof(T), alignment);
//    for (upL_t c = 0; c < size; c++){
//        ::new (ptr + c) T();
//    }
    return SmartBuffer<T>(ptr);
I might try one more experiment where I replace it with a single memset call to either all zeros or all ones and see what happens. Though I doubt it'll matter. My guess is the act of touching all that memory an extra time is what does the damage.
Btw, that particular file is in one of the open-sourced directories of the project. So it'll show up on my Github on the next major update to either the Digit Viewer or Number Factory repos.
 
5:13 AM
It's strange that double-dipping memory access is the issue. Does it happen with reading as well?
 
Haven't tried yet.
But that did cross my mind.
 
6:05 AM
Whaaaaaaaaaaaaaaaatttt...
I think I just finished my first (personal, self-assigned) programming project! #notrightfold
C++ project, that is. I'm pretty sure I've written some scripts and stuff for myself before.
 
6:51 AM
A zip utility?
 
So I'm testing out the latest update to Intel's compiler. And my code failed instantly. (on my test box, not laptop)
Which made my code incorrect again. lol
 
@Aaron3468 Yeah. For unzipping the music I download from noisetrade.com
 
@Mysticial Always trying to break things.
 
Xeo
> and update you accordingly
so much for that?
 
@Xeo I actually had two versions of all the inline assembly with that instruction. I used the "correct" version on GCC. And I used the "swapped" version on ICC.
Now I can finally nuke the "swapped" version since both ICC and GCC finally agree on an order.
Well, I'm not nuking it yet. I'll wait until I verify that the new ICC is suitable first. (breaks no other things, no major regressions, etc...)
So far no noticeable regressions.
No speedups either.
The compiled binaries got a bit larger though.
 
Xeo
7:06 AM
1 message moved to bin
no gifs
 
Was it animated? I disable autoplay on GIFs.
Oh it is.
 
poor bin
 
@Mysticial So it was related to the instruction you used?
Wait, okay, that's a different bug
 
@Aaron3468 This one is completely separate from the laptop instability.
I was trying out ICC16.4.
 
Still, that cleans up a bit of the complexity :D
 
7:12 AM
It compiled without issues. But a computation of Pi to 25 million digits failed before it got past 0% with a redundancy failure.
The unit tests that I have don't cover the function that uses the instruction in that bug. A quick run of the fast unit tests all passed. That's when I suspected, wait... I filed a bug on them some months ago. If they fixed it, they would break me.
So switched the code to use the GCC version of the inline assembly (with the correct operand order), and sure enough, it didn't error anymore.
 
@caps Well done! I think my first nontrivial/useful program was a music reorganizer; it siphons music with metadata into a new folder organized by that metadata. Really handy considering I had 30GB to organize.
 
@Aaron3468 That's what MediaMonkey is for
 
@Mysticial Ah yes, one never expects bug reports to have an effect
Well, MediaMonkey was fine except that I would have had to pay money to get the features I downloaded it for. So I switched to musicbee and I've had an awesome time. iTunes always annoyed me because there was an upgrading bug that meant I had to uninstall everything and modify a registry entry to install the new version
 
I'm a little bit stuck to iTunes. My library and playlists are vendor locked to their format. And I need to integrate with my iPhone.
I have some 35k songs in my library. It's been accumulating since high school. And it really sped up in college with all the sharing and exposure.
 
To be fair, iTunes is a really nice program despite a few bugs here and there, and the vendor lock. On my old laptop, I still have a photograph of an error message I got while ripping a cd... It said "No Error"
 
7:26 AM
ahaha
My library itself is fine. But my playlists are vendor locked.
Alright, no issues with the new ICC. I guess I'll install it on my main desktop before the unit tests finish.
 
Xeo
8:00 AM
> iTunes
> really nice program
Yeah, I'mma have to go with "no" here.
 
8:11 AM
Who said it?
Oh. He.
@Mysticial why would you post it if only for the still?
 
@sehe I didn't know it was a gif because it didn't animate for me.
My add-on puts a grey play arrow on top of every animated gif. But since that image was dark to begin with, I didn't see the play arrow.
 
user1804599
 
@rightfold It doesn't store a redundant integer. std::vector<T> doesn't use new T[]. It doesn't even use new[]. It uses std::allocator<T>::allocate, which uses ::operator new. There's no redundancy here.
 
user1804599
8:28 AM
Oh right
 
@rightfold awful
 
Xeo
@milleniumbug It also doesn't store an integer. I think all implementations have 3 pointers.
 
 
Xeo
@orlp But that's also not a std::vector :P
 
I find it weird that the datastructure I call devector is not more widespread
the overhead is pretty much nonexistent
 
@Mysticial lol, hipsters these days... :D
 
Xeo
@orlp 1) No namespace. 2) drop the V typedef, use devector inside the class instead (injected class name etc). :P
 
@Xeo what do you mean with no namespace?
btw it isn't done yet
writing exception safe containers is incredibly annoying
 
Xeo
@orlp devector has no namespace!
 
why would it need one?
 
8:55 AM
Think of C++ namespace as Java Objects. Every fucking thing needs to be in a namespace.
 
Xeo
Don't pollute the global namespace, man. Be concious of your environment!
 
that makes literally 0 sense
a namespace will still be global
devector is not worse than devector::devector
also, what's wrong with using V instead of devector<T, Allocator>
 
Xeo
@orlp Nono, just devector. The V just seems unnecessary.
 
@Xeo it needs full qualification though
devector<T, Allocator>
can't write just devector
 
9:12 AM
@Xeo alright
I thought that didn't work
but maybe I was looking at friend functions or w/e
 
Ven
Hi
 
Xeo
Ohey, is Discord ded?
 
Not yet
 
Xeo
 
Oh wait, yes it is
 
user1804599
Haha @ScarletAmaranth on SO asking how to prove forall a. a
 
user1804599
9:54 AM
This is what lack of parametricity does to you
 
Feel free to answer :).
 
user1804599
It already answered
 
Ah, cool.
 
@Mysticial I was wondering why you'd post it if you didn't see the animation (it's ... uninteresting as a still?)
 
hmm
saw an ad saying "240 teabags half price", read as "240 meatbags half price"
 
user1804599
9:58 AM
 
Ven
yeah it's down
for the 3rd time this week or so
 
user1804599
Post about it in #badware
 
Ven
:D
 
10:24 AM
do you actually like Bjarne's latest keynote talk for CppCon?
it seems to me he likes repeating himself a little bit
 
Ven
You just need to remember Bjarne is Always Right™.
 
his "roots of C++" part is in just about every talk about any topic he gives
 
10:40 AM
yeah
 
So how's school coming along @Shoe.
still oppressed by the lady forcing you to study at 8 am ^^?
 
user1804599
10:53 AM
var a = 1
    b = 1;
(function(){
var a = 2
    b = 2;
}())
console.log(a); // prints 1
console.log(b); // prints 2
 
@ScarletAmaranth Attended the exam, now waiting for the result. Let's cross our fingers
 
@Shoe it had just a written part? those are horrible
I much prefer oral exams
6
 
user1804599
I prefer prostate exams.
 
I mostly have written tests
 
user1804599
Write types too.
 
user1804599
10:55 AM
Types are easier than tests.
 
user1804599
So use them instead when possible.
 
Strongly-typed studies.
 
user1804599
declare -a ARGS
while [ "$#" -ne 0 ] && [ "$1" != '--' ]; do
  ARGS+=("$1")
  shift
done
 
user1804599
badware
 
user1804599
@sehe do you still use SQL?
 
11:13 AM
@rightfold yep, you can omit semicolon. what of it?
 
11:25 AM
@rightfold yeah. how so
Moving large chunks of application features to elastic search though as we speak. So - noSql in the corner
@ScarletAmaranth whoa whoa will you think of the gauntlet
 
@sehe Gauntlet is always on my mind
 
user1804599
@sehe It's fun.
 
user1804599
I just wrote a query.
 
user1804599
SELECT (fields -> 'time') :: int / 10 * 10 AS span, count(*)
FROM events
WHERE fields @> '"msg" => "request.timing", "method" => "GET", "uri" => "/login"'
GROUP BY span
ORDER BY span ASC
 
HaskQL
 
user1804599
11:30 AM
Haskell is great.
 
Ven
@Morwenn that's just postgres. Or so I'd say if I understood the "a" => "b"
@> is a json operator, so those "=>"s should be ":"s
 
user1804599
No, @> is a hstore operator here.
 
Ven
Ah, now I understand. Makes sense.
 
user1804599
For some reason fields -> 'msg' = 'request.timing' isn't optimized to fields @> '"msg" => "request.timing"'. :/ The latter can use a GIN index.
 
Ven
;o)
 
user1804599
11:39 AM
hstore is awesome.
 
Scoping in OCaml is weird.
 
user1804599
No, it's very simple.
 
Like. You can declare a type in a previous line, and then in the following lines you don't have to specify that you're working with type whatever, you just construct it and it just assumes 'oh yeah, you're working with the type you just defined'.
 
user1804599
That's type inference.
 
user1804599
You should put types of top-level definitions in mli files though.
 
11:44 AM
If I have two types with fields a, b, and I declare them both, how does {a=5, b=2} know which to be?
 
user1804599
No idea. :D
 
user1804599
I think it picks the last one you defined.
 
That's my guess. I'm gonna finish trying to make this function and then try it to see what happens. .-.
 
user1804599
show it
 
I'm matching on List.length l
But this is probably not the functional way to do things.
Buh.
 
user1804599
11:55 AM
Show code.
 
But it's bad coooode.
 
user1804599
Yes, so I can tell you how to improve it.
 
user1804599
I used to write bad code too.
 
user1804599
lol somebody asked Wadler if he knew about the I/O monad
 
user1804599
12:05 PM
Wadler is the one who came up with it
 
maybe he forgot
seems a valid question
sometimes I come up with something and forget it aswell after a few days
 
"This function has type string, it cannot be applied" but I'm returning values....?
 
@ThePhD functions have function types. are you sure it's a function?
 
There's no list.pop method is there
 
@rightfold fu with yer hipster privilege
@JohannesSchaub-litb
 
12:10 PM
I have to pattern match my way to the elements of a list?
 
ich sehe was was du nicht siehst
 
God this is so dumb I'd jsut write a fucking forloop normally UGH.
 
@ThePhD what's a fucking forloop tho. one that calls std::get i suppose?
 
user1804599
@ThePhD SSCCE or GTFO
 
NICE i now have 666 silver badges
 
12:17 PM
Not even surprised
 
user1804599
@ThePhD If you want to use a list as a stack, then push is :: and pop is tail.
 
If you get another one now your account will be terminated
 
sliver bitches
@sehe and alfC: In an even sillier approach, I have tried to implement a macro that takes something very similar to the "transformation table" in my answer and produces the corresponding Proto grammar (so we now have Boost.Preprocessor->Boost.Metaparse->Boost.Proto->Boost.Spir‌​it, I haven't tested it extensively but the compile times must be really awful). The use of the QI_TO_KARMA macro defines a struct grammar inside namespace qi_to_karma. Right now it only works with binary expressions (so you can't match optional for example). — jv_ 3 hours ago
This guy
 
i wonder how to apply the libfuzzer and AFL programs to [G]UI programs best
 
I would have thought this would work
 
user1804599
12:21 PM
Thanks.
 
user1804599
You're matching the length of a list against list patterns.
 
um, string_view cannot be applied to QString, since the latter is utf16
 
@JohannesSchaub-litb and there is no wstring_view?
 
i guess you would need an overload for basic_string_view<char16_t>.. but i thought the idea is to reduce overloads
 
basic_string_view<>
 
12:24 PM
What about std::u16string_view?
 
yeah, but why not a single class for both use cases. why not have a template template<typename T> void f(string_view_t<T> s); that will accept both
and make it deduce "T" even if the argument is WhateverType
 
user1804599
 
E_TOO_SIMPLE
 
WhateverType is undeclared.
 
with a deduction guide, this could work nicely
 
12:25 PM
@JohannesSchaub-litb Because if I take a string_view as an argument to my function I dont necessarily want to end up with a widestring
 
@rightfold Wait, you can multi-head with :: :: :: ?
 
user1804599
Yes, :: is right-associative.
 
That's OP.
 
user1804599
A list is either [] or x :: xs.
 
@Borgleader what do you mean. if you take a string_view as an argument, it woudl deduce T as "char"
 
user1804599
12:26 PM
[1; 2; 3] is short for 1 :: 2 :: 3 :: [].
 
@rightfold looks like octave
 
user1804599
Which is 1 :: (2 :: (3 :: [])).
 
@ThePhD Remember, with great power comes great fuckupability
 
did you mean to use commas instead of ";"?
 
user1804599
No, [1, 2, 3] would be a list containing a single 3-tuple.
 
user1804599
12:28 PM
It's retarded that you can omit parentheses around tuples.
 
user1804599
It's one of the syntactic annoyances of OCaml, the other being nested matches.
 
@JohannesSchaub-litb Well if you pass wtv type and it outputs char, then it needs to do some conversion, yes? and theres possibly loss of information, not sure i want either of those to be implicit.
 
Wait
 
WHy doesn't | _ -> "?" work as a default case?
I'm still returning strings in all other cases
 
user1804599
12:29 PM
You've already handled all cases.
 
Okay, but that shouldn't error out on me still?
 
@Borgleader of course it needs the conversion, but that's all the point of string_view. the whole idea of string_view is to apply type erasure
 
Do I need to return a strin value or what?
 
user1804599
@ThePhD Oh in the original code.
 
user1804599
It doesn't work because you're passing oxford [] to "?" on line 17.
 
user1804599
12:30 PM
OCaml isn't sensitive to indentation.
 
user1804599
It's good practice to put top-level statements in let () =.
 
Oh. I need ;; don't I?
 
@JohannesSchaub-litb vOv last I heard (in a talk) the point of string view was to permit all the home grown (non wide strings) to be funneled into a single argument type (string_view) im not sure the point was to also permit a "narrowing conversion" on top of that.
 
user1804599
Nobody uses ;; anymore.
 
@Borgleader so my approach is to do the "class template argument deduction" of C++17 in this case, but don't use synthesized deduction guides, but only explicitly provided ones
 
user1804599
12:30 PM
But yeah you can do that if you like.
 
Well, that explains why all the code looks so different everywhere.
 
user1804599
People tend to use let () = for the main "function".
 
@Borgleader i mean that the parameter has the type basic_string_view<T> . not string_view
 
user1804599
Then separate statements with ;.
 
and it deduces the T for you. it becomes char16_t for QString, char for char[], std::string, etc
 
12:32 PM
Oh for fuck's sake
print_endline some_func args ;;
That should work, right?
 
user1804599
No.
 
Ffffffffff
 
user1804599
print_endline (some_func args) ;;
 
Ven
@ThePhD you can't have two types with fields a, b.
 
It's right-associative?
 
user1804599
12:32 PM
If you don't like parentheses you can write print_endline @@ some_func args ;;.
 
user1804599
@ThePhD Function application is left-associative.
 
Fuck.
 
user1804599
That's why you need parentheses.
 
I'm just going to always use paranthesis
 
user1804599
f x y is equivalent to (f x) y.
 
12:33 PM
Might as well make this lisp
 
or maybe you can also consider synthesized guides.. but then i suspect you need to somehow mark the class template to do that deduction, since otherwise unwanted ambiguities will arise
 
user1804599
@ThePhD Or just get used to it, it's very simple.
 
YOU get used to it. D:<
 
user1804599
I already did.
 
user1804599
@Ven I want to write a VM in ATS.
 
Ven
12:38 PM
do it :D
 
user1804599
ATS has this super silly hash table implementation in its stdlib.
 
Ven
@rightfold i've heard it'll get better
 
user1804599
Nice.
 
user1804599
local
  typedef key = int
  typedef itm = string
in
  #include "libats/ML/HATS/myhashtblref.hats"
end
(* now you can use myhashtblref as the type of hash tables mapping ints to strings *)
 
Ven
I have yet to write any significant program in ocaml
 
user1804599
12:40 PM
It's really bad considering ATS has all the type system features needed to build this as a proper abstraction not relying on the C preprocessor.
 
user1804599
I wrote an IRC bot in OCaml. :D
 
Ven
@rightfold pretty disgusting :P
 
user1804599
let not_found opcode = object
  method permission _ () = true
  method execute _ () = ["no such command: '" ^ opcode ^ "'"]
end
let find opcode commands =
  match List.Assoc.find commands opcode with
  | Some command -> command
  | None -> not_found opcode
 
user1804599
 
user1804599
12:56 PM
$ cal sept 1752
   September 1752
Su Mo Tu We Th Fr Sa
       1  2 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
 

« first day (2170 days earlier)      last day (2771 days later) »