« first day (2022 days earlier)      last day (2941 days later) » 

user1804599
8:00 AM
And the products are in a different order.
 
I always have trouble with that. Never sure whether I'm going too far. Fighting temptation.
 
user1804599
And I have to join on according to the XSD potentially missing keys.
 
Ven
"sudo: unable to resolve host"
WHAT THE FUCK
 
@StackedCrooked Aligning? I have a plugin command that does it (\Tsp)
@Zoidberg lol. Don't import into a RDBMS. Don't use multi index. Don't use memory maps. Whatever you do, use Vim.
 
666
Q: Compiling an application for use in highly radioactive environments

rookWe are compiling an embedded C/C++ application that is deployed in a shielded device in an environment bombarded with ionizing radiation. We are using GCC and cross-compiling for ARM. When deployed, our application generates some erroneous data and crashes more often that we would like. The hardw...

 
user1804599
8:03 AM
@sehe I use Vim to manually inspect its structure.
 
Zoidberg is so screwed
@Zoidberg Ok, I do that too
 
user1804599
I am going to write code that imports it into a PostgreSQL database.
 
user1804599
Problem is that my current design is to implement the interface Iterator<(ProductInfo, Vector<PriceInfo>)>.
 
user1804599
For various different file formats.
 
333
A: Error message when I run sudo: unable to resolve host (none)

Jeremy KerrTwo things to check (assuming your machine is called my-machine, you can change this as appropriate): That the /etc/hostname file contains just the name of the machine. That /etc/hosts has an entry for localhost. It should have something like: 127.0.0.1 localhost.localdomain localhost 12...

 
Ven
8:05 AM
@doug65536 I found that already
 
user1804599
And have a single procedure that takes such an iterator and imports it into PostgreSQL.
 
Ven
I'm just wtf-in
 
666 / 2 = 333
coincidence?
 
user1804599
So there's three options basically: one is to restructure everything, the other one is to use an in-memory hash join, and the third one is to write a preprocessor that converts this format into a different already implemented one.
 
no, mathematics
 
8:07 AM
you have 10 fingers, most popular system is also 10 (decimal) based
coincidence?
if the people who have created maths based on the number of arms a human has, we would have started with a binary number system
 
user1804599
EUREKA
 
user1804599
SQLite to the rescue!
 
user1804599
@sehe :D :D :D
 
user1804599
It does on-disk indexed storage.
 
user1804599
8:11 AM
So I'll open SQLite db in temp file, write all prices to that, then read through the product catalog and fetch the prices from the SQLite db as I go.
 
@Zoidberg duh. It's a RDBMS.
 
> "We are going to do a comparative test of the ability of the F-35 to perform close air support, combat search-and-rescue missions and related missions with the A-10," Michael Gilmore, the Pentagon's director of operational test and evaluation, told a Senate Armed Service Committee hearing on Tuesday.
LOL
this is fucking hilarious
 
I hope the OP (42k rep...) can edit his trainwreck to be a bit clearer stackoverflow.com/q/36932948/85371
 
context:
> The F-35 has been designated to replace the A-10 in the Air Force's main ground-attack role by 2022, but the plan has been met with skepticism by critics who say the $163 million F-35 can't do the job as well as the $18 million A-10.
and A-10 is a 40-year-old design
 
> The Fairchild Republic A-10 Thunderbolt II is an American twin-engine, straight wing jet aircraft developed by Fairchild-Republic in the 1970s.
lol
 
8:17 AM
> designated
 
@Griwes it's a legendary airplane, has loads of fans and stuff
I'm going to laugh so hard if it comes out that F-35 can't actually replace it
Also I wonder why didn't they call it F/A-35 like Hornet
here's the buttiful A-10
 
Does Ubuntu still come with amazon spyware by default, or have they gotten rid of it?
 
Got rid in 16.04
Coliru-like for plenty more languages: glot.io
6
 
Man. it's still a massive wall of text with a stack trace. I'll edit. Hang on — sehe 5 mins ago
Dang. Writing a question should not be too hard for a 42k rep right
 
Counter example: vlad
 
8:28 AM
@DmitriBudnikov Vi bindings. Solarized theme. Love it
@DmitriBudnikov His net reputation is sub-zero
 
I am sick and tired of hearing how A.I. is going to take over the world. I don't care about you claiming how Artificial intelligence revolution is near, or there will be an intelligent assistant helping you through your day.
The truth is that I have been waiting for the past 20 years and ... nothing!
 
> language version: latest
 
@DmitriBudnikov non lag editor, nice
 
does it include moeduls
 
And I don't care about your virtual reality or machines acting like human friends, I want A.I.s to cook for me and clean after me.
 
8:30 AM
@AndyProwl sure it does
 
I could careless about your useless innovations
 
@Telkitty AI is like nuclear fusion reactors in that sense. Juuuuust around the corner :)
 
Ven
@DmitriBudnikov so, coliru, ideone, repl.it, glot.io
cool stuff
 
@Telkitty But cooking is so much fun!
 
@BartekBanachewicz <3
 
8:31 AM
@fredoverflow It is, when you are in the mood. But I am not kind of person who is in the mood to cook 3 times a day
 
inb4 AI cooks Telkitty's chickens, Telkitty starts cooking on her own
 
Cook lots of stuff in the morning and then eat it over the course of the day? That's what I mostly do.
 
I also want A.I. to help me building houses, maybe even bridges, roads and rail way tracks.
ALL I WANT IS SOME USEFUL THINGS
USELESS INNOVATION IS USELESS
 
Can't we just skip building the AI ourselves and go straight to building an AI_Factory_AI or something?
 
this is how I imagine @ThePhD handles his hardware
 
8:40 AM
Why do people even think they need iPads? Aren't smartphones more then enough these days?
 
Bigger screen probably
if you don't have an iphone and have no laptop then ipad is something good as a substitute
 
@BartekBanachewicz Same with Ell and his kernels
Ell@17h15: finally built my new kernel (◡ ‿ ◡ ✿)
Ell@18h30: `/dev/null` became regular file again (ノಥ益ಥ)
 
user1804599
public function __destruct() {
    unlink($this->priceIndexFilename);
}
 
user1804599
PHP destructors are great.
 
This video was linked on isocpp.org as being brand-new...?
 
8:50 AM
Haven't you heard of this brand new C++11 standard thing
 
I heard it has moeduls
 
I heard it has cocnepts
 
Ven
@Zoidberg except when they don't work, LOL.
PHP destructors ran before your script exits have no cwd. That's absolutely retarded.
 
There are many things you can do in C++, that you shouldn't. This would be one of them. — Sam Varshavchik 9 hours ago
 
Ven
9:08 AM
@DmitriBudnikov nice emotees
 
9:20 AM
> C++ already has concepts, and modules are going to be a thing very soon. — Nicol Bolas, 2 hours ago
9
almost
 
Ven
:D
 
Optimism Never Dies.
@Telkitty We've been waiting for you to take a hint for years now. And... nothing!!!!!! I conclude natural intelligence is also just a hoax.
Sick and tired of it. Hoaxes are tiresome
@Telkitty That's poetry
(I can tell, because it's not strictly meaning anything but it resembles language)
 
9:46 AM
@DmitriBudnikov lol
 
user1804599
@sehe my approach works very well
 
user1804599
It's like a hash join where the table is SQLite.
 
TIL that the signature of a function doesn't include its return type, but the signature of a function template does
WTF C++.
 
10:02 AM
what do you mean by that?
void(int, int) is a signature
 
No, that's a function type.
void foo() {}'s signature doesn't include the return type.
template<typename T> void foo() {}' signature does.
@milleniumbug Compare this and this.
 
ok, cool
How does that influence semantics of C++ code?
 
It doesn't, but it's retarded.
 
how this affects you
 
deeply
 
10:22 AM
@Griwes what? retardation in C++? no way
 
Fucking fuck Java generics! >_<
They are so useless!!!!!!!
 
@fredoverflow um, why do you need computer screens, code on a smartphone
 
@Telkitty Sick and tired? Maybe you should not hold your breath and should invest your emotions elsewhere? :)
 
10:45 AM
@Zoidberg hmm? The table is SQLite, no? Where's the hash join then
Are you implying you can transparently mount the XML using SQlite? That would be awesome
 
Met a guy who does not like types today. He argued that double[] reads better than using Vector:)
 
It does.
 
@sehe who are we & what are you waiting for?
 
@JohanLarsson It also has fewer features than are often needed.
 
@wilx I have not been holding my breath ... for 20 years, you serious? :p
 
10:49 AM
@sehe so you prefer double[] for a 2D vector?
This was not a c++ Vector<T>or whateveritiscalled. Maybe std::vector<T> idk and will never know.
 
@JohanLarsson I prefer the syntax, given a choice
E.g. in C# I like the syntax for arrays better than C++ vector. Nothing spectacular
 
@JohanLarsson and that's true
but that's where the advantages end
 
user1804599
@sehe in Hack
 
I received a few spam replies on my blog, I edited the body of one reply to be it zero percent matching the original content and approved it
go me!
 
user1804599
Flanders is a really nice country.
 
10:56 AM
so I ate amazing Wurst today, outside
it's finally sunny
 
@sehe new double[] {1, 2} over new Vector(1, 2)?
 
cancer
completely different saymantics
 
Not important just trying to understand.
 
@Telkitty Am I?
 
@JohanLarsson Depends a lot. (Mainly, what Vector is and whether the data is a tuple or a collection that happens to be size 2)
 
11:10 AM
Ok, I underspecced it. In context it is a 2D vector.
 
Well. Then there's no debate.
 
double[] :D
 
struct V2 { double x,y; }
(better names required)
 
BUT TUPLES ARE EVIL SAY JAVA---FAGS---PEOPLE
oopsie
I should probably correct the striketrough. Probably.
 
did you just insult fags of being java people
 
11:14 AM
no it's one word, javafags
 
fagmentation
 
c#7 will get nicer tuples
strange that they are making them mutable stucts though
 
user1804599
@JohanLarsson Why?
 
> nicer
> mutable
pick one @Johan
 
user1804599
Mutable struct is equivalent to mutable pointer to immutable class
 
11:19 AM
@Zoidberg dunno
@Zoidberg a gun that will forever point at your foot
 
user1804599
MutableStruct x;
ImmutableClass x; // equally safe

readonly MutableStruct y;
readonly ImmutableClass y; // equally safe
 
user1804599
disregarding null
 
uh also PayPal doesn't open here
 
>paypal
>2016
 
> > >2016
> > >two '>'s
 
11:25 AM
@DmitriBudnikov what's wrong with paypal again
it's still convenient and widely supported
 
user1804599
PayPal is old. SpaceX and Tesla are all the rage.
 
@Griwes only one, just markdown being broken
>(try it yourself)
@BartekBanachewicz their policies
 
>broken
>you
>say
lolwut
 
user1804599
type Picture = Array PictureElement

data PictureElement
  = AlphanumericPictureElement
  | NumericPictureElement
 
That is... a new low, even for snackchat.
 
user1804599
11:28 AM
I'm thinking of renaming PictureElement to Pixel.
 
@Griwes it's been like that for years honey
how new are you
(it was not-broken years ago, and then it was broken, and it still is)
thanks madara
 
user1804599
You know, COBOL has this killer feature called table indices
 
@AndyProwl sigh
 
11:44 AM
why do people put html is react code
is this some kind of dsl
> JSX is a JavaScript syntax extension that looks similar to XML. You can use a simple JSX syntactic transform with React.
oh
 
lol
jsx is semi dumb
 
@DmitriBudnikov Does that mean it is also semi clever?
 
So I have finished some shit here. I used plexus-archiver to create Tar archives and then I have used Sshj library to upload that somewhere. All pure Java. Quite nice.
 
> Java
> nice
 
11:57 AM
compressed shit doesn't make diamonds hth
 
@Borgleader I know, I'm also disappointed by lack of modules :(
 
@AndyProwl You tainted Bolas' name with your bullshit link D:
 
Well, Bolas is a villain, I think he'd be glad...
 
@Griwes Villain? He's an OpenGL hero!
 
Hardly looks heroic.
Also dunno about his programming skills with these claws...
 
12:07 PM
> Choose the right language
Scripting languages need not apply.
Good intro
> almost 1/4 TB of RAM
Can't you just say 256 GB like everyone
 
@DmitriBudnikov ENOCONTEXT
 
@Borgleader also his name is Jason
 
> the tougher it is to write in a language, the faster it executes.
malbolge must be blazing fast
 
See, this is why we need to democratize every society on earth, so they can elect anyone they want.
 
12:17 PM
@BartekBanachewicz vOv
 
@Griwes if I see a monster with small head, can I assume that it's really dumb?
 
user406009
@DmitriBudnikov there is a sort of kernel of truth there though. Easy to use language features often come with performance costs.
 
@Lalaland Kernel programming doesn't count.
 
12:36 PM
I took some time to create a nice table for the Java access modifiers. I noticed that there's an almost identical question on C++ access modifiers. I'm not very experienced with C++, but if someone would like to post a similar table on that question, I'm happy to share the svg-version of the table.
 
morning
 
@Lalaland you never fail at taking everything I say literally
thank you for that
notice the rare correct usage of 'literally'
 
I want to go home and code but I'm sitting at work and coding
 
@MarcoA. Welcome back :)
^ some of us have moved here
 
thanks Andy, I never tried discourse
 
12:47 PM
eh, I had also never tried @Bartek's mom, but once I did...
 
@AndyProwl lol
 
@MarcoA. it's discord not discourse
 
@BartekBanachewicz apologies, and hi Bartek :)
 
@aioobe Access in C++ is enough simpler that I'm not at all sure a table adds much. OTOH, if there were any chance of its being accepted, that would have to be an improvement, since the currently-accepted answer is wrong in some important ways.
 
I see. And the OP seems long gone so there's no hope that the the checkmark will move. I think the right thing to do is to ping Anzurio (which was actually seen 22h ago) and suggest that he corrects it.
Re. C++ access modifiers are simpler. Keep in mind that this type of question is usually interests absolute newbies, so a clear and pedagogical explanation is still important (even if it's not a tricky topic).
 
1:01 PM
@aioobe makes a lot of sense to link (or embed as <!-- comment -->) the SVG source right in the answer, so people could find it, instead of you having to find the interested person
 
1:28 PM
@sehe, good idea. Do you know if there's any file hosting service endorsed by SO? (Like imgur, but for files such as .svg)
(I don't think imgur accepts .svg)
 
GitHub or GH.Gist
 
Ven
Yo lounge
 
hi @Ven
 
nwp
@aioobe that would surprise me. Complain on meta if that is true.
 
@Sehe, done. Uploaded it on github gist.
 
1:39 PM
Cool
(dem edits)
 
nwp
typing is hard
 
@nwp, (gah) I tried uploading the svg to imgur but it says it's an invalid format. :(
 
user1804599
$stmt->bindValue(
    ':factor',
    BigDecimal::of($vat)
        ->dividedBy(BigDecimal::of('100'))
        ->plus(BigDecimal::of('1'))
        ->__toString()
);
 
user1804599
Absolutely wondermazing.
 
nwp
@Zoidberg if that is considered good I'm glad I don't use that language
5
 
Ven
1:51 PM
That's considered shit.
Even worse, that's considered Java-level "shit".
 
What game console to buy for someone like me who is used to PCs?
I want to play Deus Ex Mankind Divided when it comes out.
 
Oh, now I remember why I wrote my own tribool implementation.
constexpr.
 
nwp
@wilx buy a controller and pretend your PC is a console
 
@nwp My PC is using Ubuntu and it is old.
 
Not sure if I want to require 1.60.
 
user1804599
1:57 PM
@nwp Why not?
 
user1804599
Hack is great.
 
Oh yeah, I want to do a straw poll about what is acceptable as minimum compiler/library version requirements for ogonek.
3
 
nwp
looks like a hack to me
I'd expect something like (BigDecimal::of($vat)/100+1).to_string()
 
@Griwes no :)
 
@R.MartinhoFernandes Visual Studio 2015 or GCC 5?
 
2:00 PM
@Mysticial Do it, I know you want to :D
 
 
@wilx lol, VS.
Nope.
 
@R.MartinhoFernandes Well, yes, I want it there! With SP2.
 
Straw poll: what's the minimum GCC version I should support with ogonek (https://github.com/rmartinho/ogonek)?
@wilx Sorry, it's too flaky to do any of the cool stuff I want. No variadic templates, no ogonek.
I do support VS with nonius, but that's because I don't need variadic templates.
 
@R.MartinhoFernandes VS 2015 SP2 does not have those?
 
Ven
2:02 PM
@nwp only PHP functions written in C can override operators.
 
user1804599
@nwp oh no not the syntax
 
@wilx No. And don't bother telling me that they claim it does.
 
@R.MartinhoFernandes You are just mean!
 
I spent almost two years essentially being an unpaid tester for Microsoft for a feature that they claimed to support four years earlier.
 
@R.MartinhoFernandes :D
 
2:05 PM
it's your fault for using obscure language features
 
@R.MartinhoFernandes: Have you tried the SP2?
 
user1804599
WTF, artist gets 13 million euro subsidy for art on a dike.
 
Ven
why does stackexchange kick me from rooms every few hours?
 
@wilx The last one I used was the RC for that, I think.
 
2:05 PM
@R.MartinhoFernandes I'd say either 4.9 or 5.1
 
nwp
@Ven too much trolling?
 
@milleniumbug Why not the latest minor in the 5 series?
 
@R.MartinhoFernandes They have fixed a lot at least according to change logs, IIRC, in those two service packs.
 
user1804599
Meanwhile the elderly are starving.
 
Ven
@nwp I don't talk
 
nwp
2:06 PM
not enough trolling then?
 
@R.MartinhoFernandes Just do wtv and I'll keep trying to compile with VS like i did with your previous version of ogonek. If the error count is low enough I'll try and see what it would take to fix them.
 
@wilx Not enough IME. Unless they did a massive overhaul between SP2 RC and SP2 RTM, nope.
 
TBF, your previous version didnt compile on clang IIRC
 
@R.MartinhoFernandes I'd say these are the versions used in mainstream distributions currently, with 4.8 being phased out
 
Ven
idk
 
2:07 PM
@milleniumbug Ubuntu 16 ships 5.3
 
@R.MartinhoFernandes Just try it. Pweees!
 
Depending on when you'll release the 1.0 version, you could aim for later versions
 
Nevertheless, I have to dash.
 
@R.MartinhoFernandes Yeah, that's because the previous LTS had 4.8
I think Ubuntu 16 is two weeks old or sth
 
Yes, but don't expect 1.0 in less than a year.
 
2:09 PM
Then sure, I'd disregard 4.9 and go with 5 as minimum
 
@milleniumbug More like a week old.
5.x finally brings sane constexpr, so there's that.
 
no puppies around yet?
hmpfh
 
Ven
you wanna into sc2?
wanna play with me instead?
 
Ven
well, you might want to un-into discord vocal, btw :)
 
2:13 PM
true
 
@milleniumbug Isnt the latest 6.1? o.o
 
time for another haskell records rant song
haskell records suck
NANANANANAN
they are the shittiest thing ever
NANANAANNAAN
but I have to use them because I am too lazy to install Lens
 
{ // open plonk scope
 
NANANANA NNANANA ANNANANANANA
@Borgleader how original
 
Ven
@BartekBanachewicz use Lens dude
 
2:21 PM
why can't Lens be standard
why can't it just work
 
nwp
@BartekBanachewicz did you make the batman theme song?
 
} // end of plonk scope
@BartekBanachewicz its for my own sake
 
nwp
@Borgleader error, reference out of scope
 
@nwp almost
 
@Borgleader Yeah, but the discussion is about which version to choose as the minimal supported
 
Ven
2:25 PM
1
A: Default arguments in overloaded methods

Régis Jean-GillesOne of the simplest alternative would be to use this helper method: import scala.reflect._ def isPrimitive[T:ClassTag] = implicitly[ClassTag[T]].erasure.isPrimitive Then: def toJson[T:ClassTag](writer: Writer, data: T) { val wrapped = if (isPrimitive[T]) Map("result" -> data) else data js...

"simplest alternative"
 
@milleniumbug Yes I know, its just 5 seems a bit old if 6 is out. Or are they going through version number like chrome does?
 
The versioning scheme changed
Expect more changes to the major version number
 
@milleniumbug Oh, I just meant why 5.1 and not 5.3.
 
Ven
minus 1 – you're returning a copy after you modified the string. That doesn't make sense. — Ven 9 secs ago
sigh, people. Sigh, "-1" filter.
 
> GCC 4.9.0 released [2014-04-22]
GCC 5.1 released [2015-04-22]
GCC 6.1 released [2016-04-27]
 
Ven
2:28 PM
they broke it!
 
it’s also come with at least one annoying regression on inheriting constructors, of all things :(
 
@milleniumbug GCC2014, GCC2015, GCC2016.
 
night.
 
Oracle says lint is an important program, but Ubuntu doesn't have it (at least when I attempt to install with sudo apt-get install lint). Are Oracles docs out of date?
 
@AaronHall splint
 
2:31 PM
Is lint even relevant these days?
 
lint is the BSD version.
 
I don’t remember what 4.9.x was like
5.x is outstanding
 
my work blocks reddit, mind pasting relevant info?
 
36 mins ago, by R. Martinho Fernandes
Oh yeah, I want to do a straw poll about what is acceptable as minimum compiler/library version requirements for ogonek.
 
2:35 PM
@LucDanton It's the bare minimum of C++11 features I need.
Anything less is vetoed (i.e. VS).
 
@R.MartinhoFernandes I don't have any specific preference, I just haven't noticed many differences there in casual use. I assume most distros will provide updates to 5.3 so you could go with that.
 
@Borgleader that reads like it's just a question - sorry, I thought it was in response to my question... :)
 
@R.MartinhoFernandes since you have an eye out for C++14 as well, ISTR that some things need workarounds on 4.9
 
I would just check what are the versions supported in mainstream distributions, and extrapolate that to the year you plan releasing ogonek
 
although really I guess it depends which C++14 features you go for, e.g. I remember variable templates being wonky
library features are fine
 
2:37 PM
Meh, I can do without those, or with them #ifdefed
I.e., I probably won't use them in the implementation, but might provide them as an extended interface.
 
but how else will you provide Niebler-style functions
 
@LucDanton Yeah, that's something else I have on my list of things that weren't relevant/known back then but that I should think about now.
 
createClass :: (props -> Element a) -> Class a
genericButton :: (props -> GenericButton a) -> (props -> Element a)
hmmm
 
joking aside, does a Unicode library have much need for extension points?
 
@LucDanton There's a bunch of things you can tailor, but I don't think overloading functions will cut it for many of those.
 
2:42 PM
making the whole API ADL-safe may not be a priority at all then
 
user1804599
Somebody is livestreaming a fish stick on Facebook and there's almost 4000 viewers.
 
New encodings are types because they need certain static properties to be defined; there's an official format for defining collation tailorings and they can be a runtime thing; etc.
@LucDanton Yeah, I haven't thought it through exhaustively yet, but that's my current opinion too.
Most things you can tailor are effectively tables.
 

« first day (2022 days earlier)      last day (2941 days later) »