« first day (1681 days earlier)      last day (3269 days later) » 

11:00 AM
You can learn Java in a week, why would you skip any details?
 
user1804599
I learned Java in 30 minutes.
 
@fredoverflow And you can learn C++ in 21 days!
 
user1804599
yummy, satay
 
@fredoverflow I still don't know Java :(
It's so complicated
 
[general question] any one know some kind of tool with which i can get access all the devices connected a wifi network?
kick them off my wifi and stuff like that
from command line or terminal
 
11:04 AM
I wonder if an implementation of enable_shared_from_this that returns shared_ptr if the object is owned, and nullptr if it's not is possible.
 
@android it's called your router.
 
Ell
@milleniumbug it just creates an owning one doesn't it?
 
i know its called router
 
That's the tool.
There's nothing generic for that.
 
11:06 AM
@BenjaminGruenbaum What have you tried so far in learning Java?
 
@Ell Like this A nonown; nonown.shared_from_this(); /* returns null shared pointer */ auto own = std::make_shared<A>(); own.shared_from_this(); /* returns a shared pointer that points to own */
 
They usually expose an HTTP interface so I guess if you really really want to do it from the command-line you can curl it. You'll have to figure out the right curl requests for your router yourself.
 
@milleniumbug It is, but why would you want it?
 
@fredoverflow not killing myself for several years, not blowing my head with a rifle when I see people needlessly doing <? extends Foo, T super bar> on every single container, writing a script that shows me the actual implementations instead of jumping to an interface in IntelliJ. Also, lots of shouting at people using Spring AOP and Spring's DI for no reason whatsoever in 60 line scripts.
The usual, I guess.
 
lol Spring
 
11:09 AM
Oh, I can also read XML files pretty well now. It's how all the cool kids code Java anyway.
 
Ell
@milleniumbug I think it will return a non null pointer
 
"Look at this awesome program, it doesn't have a single line of code, it's just 1000 lines of configuration". No, you idiots, it's a 1000 lines of code program but it's unmaintainable and code is written in one language and errors come out in another :(
 
Ell
Or are you asking if its possible to make that implementation?
 
@Ell the latter
 
@AndyProwl No specific needs, I'm just reading the reference.
I think the current behaviour is UB if you do it.
So you have to hide constructors and only use factory functions.
 
11:12 AM
Nice
I got a personal email from the CodeMentor staff asking me about a long-term project I clicked "I can help" on
apparently they're helping people pair with an appropriate mentor nowadays
 
@ScarletAmaranth Too bad Kotlin does not come bundled with persistent collections.
But there is probably a Java library out there for that.
Maybe one can simply take Clojure's persistent collections.
They're written in Java anyway, aren't they?
Although they probably have a non-generic interface sprinkled with java.lang.Objects.
 
@BenjaminGruenbaum Who stole my design?
 
Ell
@milleniumbug it is possible
 
@BartekBanachewicz cool
 
Ell
Just check the use_count of the week ptr of the enable_shared_from_this class
In the shared_from_this functions
 
11:16 AM
@MartinJames every Java developer ever :D
 
@fredoverflow honestly I'm not sure why I'd use Kotlin for anything, I'm not convinced it works better than Scala and "no baggage" isn't that strong of a selling point to me.
 
I converted from Scala to Kotlin because I was sick of the bad tooling support. I could not even rename a method with confidence.
Sure, sometimes I miss pattern matching and implicit parameters, but tooling is #1 for me.
 
@BenjaminGruenbaum esp. in my current situation :P
 
I am gonna move my bed to the toilet
 
11:27 AM
derp I got 4.5/5 on the UpWork's OpenGL test
it was so bad
 
Ell
18 days until my first exam ahh
 
> When you do work that matters, the crowd will call you a fool link
This is for all you loungers doing the needful
 
@BartekBanachewicz ?
 
May 21 at 11:21, by Bartek Banachewicz
I got fired today.
 
Oh wow, why?
 
11:35 AM
well look around the context
 
@BartekBanachewicz Too much of Bartek for them to handle? :)
 
Well, I'm sorry it happened to you again. Must feel shitty. Better luck next time.
Maybe you need to look at different types of jobs.
Or freelance a bit
 
@BenjaminGruenbaum true
@BenjaminGruenbaum i'm looking around for that
 
how do you find freelance jobs?
 
11:38 AM
@khajvah via Princess Celestia
 
oh
 
@BartekBanachewicz: I guess that meeting the speed that they want you to produce the code is also part of being professional. Stop being idealistic. It is better to have the job and money than not, IMHO.
:)
Well, at least for me in my situation.
 
it's also better to have a job you like doing
 
Step 1.: strip naked Step 2.: get a barrel Step 3.: live like a dog

Problems solved
 
> .:
It's a bird. It's a plane. It's a stealth fighter.
 
11:43 AM
@BartekBanachewicz It is certainly better than having a job that you are indifferent to or a job that you hate. But having job that you are indifferent to is still p/ good.
 
Ah Coffee
If only I could marry it
 
I think you need to find a company that takes both internal and external quality seriously, but that's hard. Most companies will just tell you "do it within time X even if it's unmaintainable crap and then we'll figure out something". I hate that cause "we'll figure out something" usually means "we'll (you'll) have to live with the mess"
 
@Ell Topic?
 
@Columbo If only you could divorce it.
 
Ell
@fredoverflow physics :)
just mechanics
so shouldn't be too hard
#define J_FIELD(type, name) Field<type> name = f<type>(#name);
^I wonder if there is a macro-less way of doing this
I guess not the #name part
this is a member variable btw
 
11:58 AM
'Restore from the backup you made before using the registry cleaner.' ...

'I didn't made a backup'

lol, I would never have guessed:)
 
Is using stringstream more efficient when concatenating a lot of strings?
 
Ell
@Nils more efficient than what? :)
 
Than what...
@Nils In my experience Boost IOstreams (e.g. array_sink) has the absolute best proposition in terms of tweakable allocations
std::stringstream 's interface necessitates buffer copies ...
 
I am not completely sure how string works, but assume like vector? So a + b results in a free, malloc and memcpy. But what about stringstream?
 
It grows a single buffer. But when you get it (with str()) you get a copy of the whole thing.
 
12:03 PM
Maybe I should just use string with reserve? I don't really get what stringstream does better in case of concat.
 
In other news: I bought my first ever android app for ~$15 play.google.com/store/apps/…
@Nils Well. Try std::string s = "hello: "; s+=42;. Get it?
 
Yeah
But that's it?
@sehe looks like a nice app :)
 
Ven
well met, lounge
 
It's not /just/ about allocations. It's also about availabilty of all standard stream formatting operations
@Ven Hi
@Nils Yup. It's gonna save me a ton of printing for my upcoming Big Band guest gigs
I was surprised at how well it works. Will be a little bit stressy (I really like just shifting/turning old fashioned sheets)
 
thx for the info :)
 
12:14 PM
@Nils Also you can do this std::stringstream ss("some data"); std::cin.rdbuf(ss.rdbuf()); // now whenever you're reading from cin, you're reading from the stringstream
 
12:26 PM
> It also comes with a number of powerful features for musicians
you're not a musician
ah, i'm just trolling your horses. it's a nice app.
 
@BenjaminGruenbaum Oh hey, thanks. :) /cc @khajvah, @AndyProwl, @Columbo
@fredoverflow :c
 
@Jefffrey The instant you pinged me North Korea ate me
 
@sehe I like String interpolation in Scala and Kotlin: int i = 42; return "hello: $i" or something.
 
@AndyProwl oww
 
@buttifulbuttefly how would I go about finding out more about the recruitment (in china)? For starters, does it only apply to current residents over there?
 
12:30 PM
@Jefffrey Ah, Jefffrey is the shoe-in-the-sky guy. Happy birthday!
 
@AndyProwl I thought you were:
yesterday, by Andy Prowl
I am now immune /cc @Jefffrey
@fredoverflow Thanks :)
 
How long have you been in the Lounge?
 
Don't know. Couple of years, maybe more maybe less.
 
@Jefffrey Only at work
 
Yesterday I fucked up. I was following one of my team that was almost eating the biggest of another team, but quite couldn't. So I decided to donate some of my mass with W, but instead I mistakenly started pressing space towards the green guy, the green guy hate my buddy and became the biggest on the server.
I decided to commit suicide on one of the third team and retire.
 
Ell
12:36 PM
happy cakeday jefff
 
@Jefffrey You're not talking about real life, are you? :)
 
@fredoverflow Yes, I'm connected to internet from hell. A hell of a connection too.
@Ell Thanks :)
 
agar.io
 
@fredoverflow what, you've never seen a green guy in real life?
 
@AndyProwl I saw Hulk once in the cinema. The ciname was real.
 
12:39 PM
I guess that counts
 
Qt's docs seem to be good
this tutorial is neverending but at least there's a lot of well-explained info
 
Qt is a decent library.
 
I haven't tried it yet, I'm reading the docs. I don't like all those owning raw pointers and I hate those Qt-specific keywords but the docs seem to be good
 
just curious has anyone tried Qt mobile yet?
 
12:53 PM
@Jefffrey You sound like my late grandma. She would recount their card playing games in detail on saturday family visits. They clearly were the highlight of her week.
 
@AndyProwl They have a hierarchical object management.
@sehe I really do feel old.
 
@Jefffrey yeah I figured
@Jefffrey fuck off
 
At least my age is odd and prime (23).
 
What question are you answering? — sehe 28 secs ago
Needs some downvotes
@Jefffrey Oddly, you feel old while in your primes
 
Well played
 
12:58 PM
I should go to the sandbox lol
 
We have one you can buy pick up gratis
> Another oddity about placement new is that it requires you to explicitly call the destructor.
Sadly I can only downvotes once. That's just very sloppy. In general it's wrong. Insofare as it borders on a truth It's misleadingly worded
 
@sehe lol what a fail
 
you don't have to explicitly call the destructor?
 
Ah. Your added verbiage is only making things worse. Nobody is helped with a bit of confused wording about placement new and explicit constructors. "Another oddity about placement new is that it requires you to explicitly call the destructor." - that's just plain not true and misleading. "But calling the destructor in the context of placement new is not about reclaiming the memory". Destructors are never about reclaiming the memory of the destructed object — sehe 11 secs ago
 
1:05 PM
@AndyProwl Not if you reused a stack alloced object (of course you might need to call the destructor of the object that previously lived there iff the destructor is non-trivial)
The stack allocated object will still be destructed when it's life time ends
 
ah, right
 
@sehe wat
 
> 1) Java has a compiler: Ruby does not. That's great! Fuck compilers and their false sense of security. Too often is bad code checked in or even deployed to production, simply because it compiled. No such luxury in the Ruby world.
lol
 
someday i want to have the ability to deal with trolls like sehe does
> Java doesn't have blocks and closures
i hate that
 
Ell
@fredoverflow wat
 
1:07 PM
backwards right? java has no compiler, ruby does (or doesnt? ive never used ruby)
 
> 5) Java is Too Slow: Ha. This is one of my favorite reasons, for the bloody irony of it. You see, Java isn't actually slow. Everyone reading this knows that it got plenty fast over the last five years or so. Nevertheless, 90% of the world that knows of Java thinks that it is slow, because of its association with crappy slow Java applets and crappy slow Java loading screens on mobile devices. Ruby is slow, compared to Java, and yet it is fast enough. Amazing, isn't it.
His reasoning is fucking ridiculous.
 
Ell
this is a troll isn't it?
 
Does he look like a troll?
 
> Java has great and powerful debugging (which is very necessary since most Java code sucks so much ass).
lol
 
> 7) Java has Integrated Development Environments (IDEs): Closely related to Reason #3 Most Java Programmers are morons. Everyone knows that the best programmers use Vim and Emacs. Then come the TextMate users. If you need to use an IDE then you suck, period.
 
1:08 PM
trolls have nothing marked on their face
 
> If you need to use an IDE then you suck, period.
ahhh wat
 
also I am frustrated on this online novel because the female leader is way too dumb
 
> Ruby doesn't make major money for anyone except Pragmatic Dave.
 
@fredoverflow lol
 
Please thank @Jefffrey for providing us with today's daily troll training. Thanks, jefffrey!
 
1:10 PM
@chmod711telkitty fork it
 
oh and happpy birthday
 
> you suck period
 
you suck, ..
syntax error
 
@fredoverflow He looks like @LRIO In 6 years of @AlexM diet
 
lol!
 
1:11 PM
Come on, you know you can do it
 
@DonLarynx ahahah
And to celebrate, let's write some PHP
5
 
Have a star of shame
 
Uni forces me to
 
user1804599
boo!
 
bool
 
1:17 PM
is_bool
 
user1804599
@Jefffrey read phptherightway.com
 
user1804599
if you don't want to read it (for whatever reason), then also don't complain about your code being incomprehensible and buggy.
 
> delete parent->takeChild(index);
Qt has odd names
I guess remove wasn't intuitive enough
 
@AndyProwl tacoChild sounds better
taco taco
 
burrito burritto
 
user1804599
1:24 PM
Oh, observer module in Erlang is nice.
 
Xeo
I feel ripped off. 66 eur for 5min ultrasound :<
 
I have palindrome rep
 
user1804599
In decimal.
 
@Xeo what is this about?
 
Xeo
Taiga got a small infection around scar from the spaying, so I took her to the emergency vet. 5min ultrasound, two small injections, and two kinds of medicine for the next three days - 135 bucks total. :|
 
Ell
1:27 PM
maybe because it was emergency vet vs regular vet
 
Xeo
The ultrasound was the really expensive part - 66 bucks, almost half the total
the "emergency" extra price was part of the general consultation, according to the receipt. the ultrasound had not "emergency" extra
 
Gravis ultrasound?
 
Who loves php here?
 
A bodyguard company CEO, who was personally involved in bodyguarding Royal family of UK just called me "hoot" in comments. What should I do?
 
Xeo
@sehe whatever that may be
 
1:30 PM
Should I be scared?
I bet you are a hoot on Facebook! Look, I only came here for help and advice. Wish I had not bothered now. — bomberg 37 mins ago
 
Xeo
@SeçkinSavaşçı Maybe they meant to say "hot" and typo'd?
 
@AndyProwl The tho,usa,nds sep,ara,tor r,eal,ly ru,ins t,hat
Gravis UltraSound or GUS is a sound card for the IBM PC compatible system platform, made by Canada-based Advanced Gravis Computer Technology Ltd. It was very popular in the demo scene in the 1990s. The Gravis UltraSound was notable at the time of its 1992 launch by providing the IBM PC platform with sample-based music synthesis technology (marketed as 'wavetable'). That is the ability to use real-world sound recordings rather than artificial computer-generated waveforms as the basis of a musical instrument. Samples of pianos or trumpets, for example, sound more like their real respective instruments...
 
Xeo
aha
 
0
Q: Issue with page loader

bombergI have a real issue with the page loader on my new website. I purchased a template but am unable to get any help from the website where I purchased it from (bad service). My site is: http://www.intelligent-protection.co.uk/index.html I would like advise on removing it or making the thing work r...

Alex Bomberg
 
those marketing guys are relentless
 
1:36 PM
The Jurassic Park is open trailer is so stupid
"They can communicate; 'We're talking about an animal here'"
Animals can communicate? you dont say?
 
@SeçkinSavaşçı Downvoted and closevoted.
 
@wilx I flagged for moderation just after I spotted the question. Then I proceeded to help but no use.
 
@DonLarynx my cats do that. They're smart.
 
@SeçkinSavaşçı attack him
with swordsmen
 
@StackedCrooked In which direction? Direction::UP?
 
1:47 PM
not bad for now, it might actually be worth a shot in the future
 
@MarcoA. totally sublime vOv
 
@FilipRoséen-refp Interviews are conducted through Skype or equivalent, anyone can apply. The company will take care of getting a work visa for foreign employees.
@Jefffrey omg happpy birthddday!
 
@buttifulbuttefly Thanks :)
@rightfold Looks good
 
@buttifulbuttefly How does Shenzhen look so...clean? All I saw in textbooks representing China were pictures of smog
 
@DonLarynx Danke
 
1:58 PM
@Jefffrey Happy birthday!
 
@Nooble Gracias
 
@DonLarynx Looks beautiful.
 
@DonLarynx photoshop?
 
Today's entertainment: Listen to this while looking at the most downvoted posts on the Tools page
 
this looks more real
 
user1804599
2:06 PM
You can serialise closures in Erlang.
 
@ScarletAmaranth yeah, although the target is quite different. This targets C++ tools (plus it's opensource)
 
Btw., what a surprise, the most downvoted answer today is from @Puppy
 
Link, please.
 
@MarcoA. Sublime "targets" whatever you want :) I use it for C++, Idris, Haskell, Agda...
 
-6
A: Will there be standardization of scope guard/scope exit idioms?

PuppyScope guards are a terrible idea, writing a bunch of one-off destructors implies quite thoroughly that your design is broken, and should not be Standardized. However, that has never stopped the Committee from doing anything in the past so I doubt it will be in the future. As far as I know, ther...

 
2:09 PM
@ScarletAmaranth that's not what I meant.. I mean that you can link clang C++ tools to it
 
@Puppy ^^
 
user1804599
And send them to other processes to have them executed!
 
@MarcoA. I am pretty sure you can link clang C++ tools to Sublime; maybe not as directly as your "API" allows, but still
 
@Columbo s/most downvoted/most downvoted that hasn't been deleted/ ?
 
writing your open-source tool which calls a payment external program and communicates with crappy script bindings (and can't render anything you want) seems dementia
but it can be done, nonetheless
 
2:11 PM
"can't render anything you want"?
 
can you do openGL stuff in it?
 
mmm; potentially - I know you can run interactive shells and you can certainly have it open a new window with <anything> on build or whatnot
 
I used this several times, it's really flexible
 
@Columbo lol
 
@AndyProwl I don't even know if he's trollin' or genuinely naive
 
2:18 PM
@Columbo he's DeadMGing
 
@Columbo He's puppyin'.
 
They see me trollin', they ascribin'...
 
Ell
thanks wolfram
that is a great "step by step" solution :P
 
Its really not that difficult..
 
user1804599
Is there a Boston Bombing Simulator?
 
2:26 PM
2^t (2^h - 1)/h. Take the limit as h goes to zero. Was that so hard?
 
Ell
@DonLarynx that is not correct...?
 
WTH who flags that
 
Ell
as h goes to zero, 2^h - 1 goes to 0
so the whole thing goes to 0
also integrals aren't defined by limits
 
@Ell yeah. 1 step
@DonLarynx yup. you are looking at the inverse question
 
shittt i thought it was derivative lol
 
Ell
2:29 PM
it says "take the integral" :P
the derivative is "ln2 e^t" I think
or some variant, depending on your chosen base for log
 
@Ell wrong
 
Ell
@DonLarynx I don't care man
 
the denominator also goes to zero
well that's why you're dumb lmfao
 
Ell
you really are SPAM-tier
 
you really are shit-tier
 
2:32 PM
Stop it, now.
 
Ell
@milleniumbug did you get your shared_ptr thing working?
 
Hmm.. most of the chat flags I get to vote "valid, invalid, not sure" come from the C++ room. Is that because this room is uniquely pathological, or does it send those to me because I ask/answer C++ questions?
 
user1804599
No, everyone with at least 10000 reputation sees the flags.
 
user1804599
That's why flagging is done only by morons.
 
user1804599
Any sane person recognises how terribly annoying flags are and hence avoids flagging.
 
2:42 PM
Everyone 10k+ sees every flag that ever happens, because the system is shit
 
@Ell Not doing it right now, I'm on mobile. I'll let you know when I get somewhere.
 
So I'm a fairly anti-censorship type. Got something the other day, it was like a model train being run through asian girls breasts at varying cup sizes with a camera on the train.
Do I say "valid", "invalid" or "not sure"?
 
Ell
sounds like you're "not sure" :P
 
@Ell I think that's what I clicked.
It depends on context, I think.
 
user3010322
BLah.
 
user3010322
2:46 PM
I can't figure out the right way to lex this.
 
user3010322
I mean, I have something that works.
 
user3010322
But it... it just feels BLEH.
 
@HostileFork that's definitely something i approve of
 
@DonLarynx I don't like mechanical censorship, always sounds like bugs or spec violations... it's just pictures. I'd rather teach people to toughen up to pictures, I guess. A testing ethos.
 
@DonLarynx Because that picture is edited? lol
 
2:53 PM
Been using address sanitizer and undefined behavior sanitizer lately. That's the kind of audit I can get behind. Catching things valgrind didn't. (?)
If you haven't seen a picture of a naked person, I dunno. Get over it.
 
i like asian girls.
 
But... think about culture and how it doesn't particularly prepare people to step into here and have a conversation with "i like asian girls" that would be welcoming to a software developer who happened to be an asian girl
I'd say it all depends. They need to set their boundaries, vs. the internet net-nanny setting them.
I went to sushi with the guy who wrote the code for what was bought and sold later as NetNanny
 
user3010322
Grrr
 
user3010322
This happens to me in a lot of my projects.
 
user3010322
I want to find out the optimal way to do something.
 
2:56 PM
And then you get stuck and you slip over the deadline and into a coma
 
user3010322
So I try a thousand different ways of doing the same thing and test and measure.
 
And when it was bought and rebranded, it was purchased by some Christian organization. And one of the requests he got to adapt it that came back was "We need you to *un-censor" articles that involve blowjobs, if it mentions Bill Clinton and Monica Lewinsky..."
 
user3010322
Well, that's the thing.
 
user3010322
There IS no deadline for these.
 
user3010322
They're my personal projects.
 
user3010322
2:57 PM
If there WAS a deadline I'd do things lickety split, whatever worked first.
 
@ThePhD Where's the link to what you want to do?
 
user3010322
@Borgleader I unfortunately feel like I'm in the first category.
 
user3010322
FML.
 

« first day (1681 days earlier)      last day (3269 days later) »