« first day (1816 days earlier)      last day (3136 days later) » 

11:11 AM
this room seems idle
 
@underscore Don't post walls of code.
Use a debugger.
4 messages moved to bin
 
@R.MartinhoFernandes good idea.
 
@sehe Added my contribution
@underscore resize your vectors
 
while(getline(fileOne, tempLine)) {
  lines[line][0] = tempLine;
  line++;
}
 
@underscore stop posting code
 
11:17 AM
It just a simple code
I got Segmentation fault (core dumped)
 
yeah but stop doing that. it's a general discussion group, not a support channel
 
@Mr.kbok oh ahaha - that's when I still thought there was only one code-dump answer. I just downvoted it
@underscore Stack Overflow is the site that takes questions
 
@underscore Use a debugger.
 
@sehe well, now you downvoted a prettier code dump :D
 
@Mr.kbok Indeed I did. And you freed up my downvote. So I can now redeem my -1 if I want to
 
11:21 AM
I have never played the game. This is genius: imgur.com/gallery/Ms18rqK
 
@underscore put printf at every line
 
@GregorMcGregor ah, good old printf debugging
 
11:39 AM
heheheheh
 
@GregorMcGregor oh... work...
 
@underscore told you to use push_back
Also stop using [] and use .at() instead
 
@BartekBanachewicz
read.cpp:30:17: error: ‘struct std::array<std::vector<std::basic_string<char> >, 2ul>’ has no member named ‘push_back’
           lines.push_back(tempLine);
    std::array<std::vector<std::string>, 2> lines;
 
@underscore lines.at(0).push_back(temp_line)
 
@underscore Well, you can't push additional stuff into an array. Not really surprising, is it?
 
cpx
11:44 AM
@underscore or lines[0].push_back(tempLine);
 
@BartekBanachewicz finally
        for (auto const& v : lines) for (auto const& str : v) { std::cout << str; }
print nothing
 
@GregorMcGregor heh
 
@underscore do you have a brain
 
@cpx meh .at() is generally better
 
11:46 AM
i don't have c++ brain
 
No you don't have a brain at all
 
I have to stop recommending using op[] to beginners
 
You are lazy and annoying
 
OMG operator[] vs. at() fight... IT'S ON!!!
 
cpx
Remember its an array so you can access it as [] as well.
 
11:46 AM
.at only makes sense when you are unsure of your indexes.
 
there's no fight, one is reasonable and the other is OMGWTF MY PURFORMANCES
@Griwes i.e. always
 
i.e. rarely
 
it's C++ you can't be sure of anything
 
@BartekBanachewicz how do i iterate ?
 
Sure you can.
 
11:47 AM
with a range for I told you
 
@underscore What C++ book are you learning from?
 
@underscore you should seriously learn how to google things
 
cpx
I bet most people don't read C++ books.
 
I bet most people are dumb.
 
Brilliant example here
 
11:48 AM
@underscore If that doesn't print anything, then your strings are empty, or your vectors are empty. How about you print the size of the first vector to make sure there's actually something in it?
 
How about you stop being retarded and use a debugger and think like a real little primate
 
also that
 
But Uncle Bob says being good at the debugger is a bad sign. He should do TDD instead!
Where's your green wristband?!?
 
gdb -tdd -helpiamretard
 
11:49 AM
ENOTENOUGHIQ
 
user image
5
sorry ICNR
 
@underscore how about you catch the errors
 
try catch ?
 
what is the exception handler ?
 
11:51 AM
your mom
 
how is handlar formed
 
@underscore In line 31 please write std::cout << lines.at(0).size(); and tell us the result.
 
speaking of which it's time to go home
 
@AndyProwl of course you could
You're just confused. Hormones
 
maybe
 
11:52 AM
@AndyProwl Nice, did you just make it?
 
@fredoverflow uh no fred this is not how you solve his problems
 
@BartekBanachewicz But I'm anxious to know :(
 
who the fuck cares
 
@fredoverflow I think I made it yesterday. sehe made it all possible
 
his file handling might be failing for all we know
 
11:53 AM
145
 
@BartekBanachewicz then kick-mute
 
he revealed to us how to use the tool DON'T STAR
 
I don't care about a particular bug
I like helping people
 
@BartekBanachewicz Then how do you explain the 145?
 
dude, I can write this fucking program reading lines from a file
if I wanted a program reading lines from a file I'd just write it myself
what's the point of telling him to do things to his program that he doesn't understand
getting this program to work isn't even remotely my goal here
 
11:55 AM
@underscore Use a goddamn debugger.
 
@BartekBanachewicz It works on my machine:
fred@blackbox ~ $ g++ -std=c++11 f.cpp
fred@blackbox ~ $ ./a.out muster.txt c.c
FabrikmethodeAbstrakte FabrikEinzelstückErbauerPrototypAdapterBrückeDekoriererFassadeFliegengewichtKompositumStellvertreterInterpreterSchablonenmethodeBeobachterBesucherIteratorKommandoMementoStrategieVermittlerZustandZuständigkeitskette
 
Maybe it's the user's fault, and not the programmers? :)
 
@fredoverflow it's always the user's fault :p
 
for using the program
 
11:57 AM
it's always the user's segfault
 
Ooops. Forgot to actually start streaming. Now I did — sehe 12 secs ago
derp
 
--screw it, do it live
fromRight :: Either a b -> b
fromRight (Right b)= b
lol I found this little gem
 
@AndyProwl I have no idea what they're using, we don't do it ourselves. You could ask the guys at Lecture2go directly.
 
cpx
I wonder why do people write programs what they don't understand.
 
@fredoverflow ok, thanks
 
12:00 PM
@cpx because they are little paid code monkeys?
or students
 
@cpx Because their teacher told them to? At least he's allowed to use vectors and strings...
 
I don't think this guy's a student though
 
brace_index e = liftM (FieldRef e) $ brackets expr
this totally needs a rewrite
brace_index e = (FieldRef e) <$> brackets expr I guess
 
> The name is Samitha Hewawasam, and i work as a Programmer, Architecture mostly though PHP, JavaScript like WEB Development languages. I've been Web Application Developer, Database Architecture, System Administrator, Technical Support Consultor, System Architecture. I have used a lot of different languages over the years, like Pascal, C, C++, PHP, Javascript.
@AndyProwl Wow, this guy knows his stuff!
 
> The name is
 
12:01 PM
> I have used C++
> I've been Database Architecture
3
 
> I've been System Architecture
 
he's been System Architecture too. Bet you haven't
 
@AndyProwl first
 
> Do you have a HDD?
> No I keep 20 Chinese in my basement and tell them to memorize sequences of digits.
 
@Griwes BUT I WROTE MOAR
 
12:02 PM
@Griwes frist
 
@R.MartinhoFernandes I almost wrote that.
 
Please don't star multiple kinds of architectures, one is terrible enough already.
@Griwes I wrote std::vector<std::string>::const_iterator it = v.benign(); once.
@AndyProwl There have been some major glitches in the past (like half of the screen missing in the recording), and I'm thinking about recordMyDesktop this year just in case :)
 
I was thinking of using a desktop recorder in combination with a normal camera and some ambient microphone, then edit the whole thing
 
Ell
I am excited for AMD Zen
I wish it would come out already
but it's a year away
 
I wonder if ambient mic is a good choice though
and in case it is, what to buy
 
12:07 PM
@AndyProwl for podcasts? You want a cardioid
ambient mics are only useful for conference rooms
 
@BartekBanachewicz Nah, for recording presentations at work
 
@AndyProwl then a microport
 
> MicroPort - Where the Patient Always Comes First
I guess that's not it right
google y u no cooperate
 
I guess it might be a polish thing (to call it mikroport)
 
let's see if I can find out more about it
amazon says nope
> Sennheiser MKE 400 Shotgun Microphone - Black
 
12:11 PM
> Shotgun Microphone
sounds dangerous
 
use a suppressor
 
I was thinking about that
but hey with that thing I could really nail the audience
 
0
Q: Why does C have these weird translation limits (section 2.2.4.1)?

fredoverflowI was just browsing the C standard the other day, and the chapter about translation limits really had me stumped. Why are some translation limits 2^n, others 2^n+1 and others 2^n-k (for some small k)? Here are just some examples: 15 nesting levels of compound statements, iteration control stru...

Let the down/close/delete votes begin :D
 
509 is the weirdest of all
 
@Andy If you can afford it, those small clip mics with wireless transmitters will give you the best results
 
12:14 PM
the others are more or less powers of two +1 or -1
@BartekBanachewicz yeah but they don't catch the audience
like if someone says or asks something
the speaker has to repeat everything
 
@AndyProwl I always do, because it also ensures the audience hears it.
 
@R.MartinhoFernandes right, but sometimes the comments are just too long and we engage in discussions
 
@AndyProwl Woah
 
lol
 
@AndyProwl Does she know you're a nerd? Maybe she just wants you to fix her computer.
 
12:17 PM
@fredoverflow Damn
 
@Andy then another mic just for the discussions.
 
@BartekBanachewicz that could work
 
Those are two radically different sources
Pretty obvious you need two different mics
 
@fredoverflow Ping us when it's closed so we can reopen it. :D
 
Hi anyone familiar with obexftp ?
 
12:19 PM
@BartekBanachewicz You don't really want discussions during a lecture.
 
Otherwise what robot said is a good idea as well
 
@n4zg It sounds like Obelix is using ftp.
 
our moms are all familiar with obeseftp
3
 
lol
 
@AndyProwl ...so I wasn't the only one seeing "obesity" there. Good.
I feel better now.
:D
 
12:20 PM
it must be a Lounge thing
 
Thin privilege.
 
these wireless mics with clips tend to have bad reviews on amazon
 
When I see "thin privilege" even ironically it makes me angry
 
@AndyProwl Oh wait, I think I just figured the 509 out... lol
 
i am trying to push a image with obexftp without the requirement of a passkey on the remote device
 
12:22 PM
@fredoverflow Well... that's how it started with the girl who is now my girlfriend.
 
@R.MartinhoFernandes This is amazing. Maybe I should fly more?
 
@fredoverflow tell us more! :P
 
@fredoverflow I mean the computer fixing part.
 
that's how you call it these days?
 
@AndyProwl If you have a buffer of size 512, you want 3 bytes at the end for "\r\n\0" ;)
 
12:23 PM
same for 31 then
 
@fredoverflow oh, right, characters... for some reason I was looking at the description of the one just above it
 
man, the 31 char limit must be such a pain for Java devs coding in C
 
yep, makes sense
 
fuck my stomach hurts again
 
Ell
the ThinkPad T450s is looking a little more attractive to me
it's like the one I was looking at yesterday but a 14" screen instead of 12.5"
and similar price
 
12:25 PM
@Ell ueh, the charging port doesn't have the dock connector
 
Ell
dock connector?
 
Argh, can't forget to try to reach Martin again.
 
for docking station
it's cool that it has a SIM slot though
 
Ell
^what is this thing on the far left?
 
@Ell oh it has a dock connector below
it uses the old big dock connector, not the OneLink
 
12:26 PM
@Ell why would a charging port have a dock connector?
 
lol I read old big dock as well you know
 
Ell
I don't have a dock, it wouldn't bother me vOv
 
dig bock?
 
big lock of course
 
Ell
> Many customers still require a VGA port for projector connections in conference rooms, and native VGA means no dongles for them to buy/lose/replace.
-.-
fair enough, it's an eyesore though :L
 
12:27 PM
@Ell you should buy one then
 
Ell
what does it do?
 
@Ell those are meant for work environments mostly. not to look cool
@Ell Expands your ports, allows you to connect everything at once?
 
Ell
I don't need a dock really
it has enough ports already
 
you think you don't
once you have one it's hard to stop using it
unless you have a workstation like me in which case it's slightly different
do you have a separate workstation?
 
main good thing about dock is that you have all the desktop peripherals attached to it, so it's trivial to attach them all. If you never use a laptop as a portable thing, why have a laptop?
 
12:30 PM
because I can hardly believe anyone would voluntarily choose to work on 14" given how cheap you can get two 22 or 24" screens
 
@Ell Please remind yourself you said that once you have a multi-screen setup together with the rest of peripherals and start needing to plug and unplug everything every time you want to pick the laptop up.
 
I've got screens, keyboard, mouse, charging cable, a floaty usb for phone, network all easily docked.
 
I guess the issue is slightly less relevant now with DisplayPort, but still.
 
@Griwes s/DisplayPort/Thunderbolt/
 
Ell
@BartekBanachewicz I have a desktop already
which takes up all the desk space :L I don't think I could fit a dock if I wanted to
 
12:31 PM
@Ell oh yeah in this case it isn't that necessary
 
@BartekBanachewicz Whatever.
 
@R.MartinhoFernandes Hm, maybe I should get rid of my "No, I won't fix your computer!" coffee mug, then?
 
@Griwes huge difference. Thunderbolt doesn't have screen scanning anymore, it's purely packet based. And it can actually connect everything else besides the screens
in 3rd iteration that would mean power as well
 
@fredoverflow Your licence has been revoked. :D
 
@fredoverflow She didn't ask; I offered :|
 
12:32 PM
@BartekBanachewicz I meant the principle, not the actual implementation; hence "whatever".
 
in Rust, 22 hours ago, by fredoverflow
Robot is probably too busy with cubes and boobs.
 
Well, there's a lot of them.
 
@R.MartinhoFernandes iow, she played you.
 
@Griwes What license?
 
@Griwes he must prooooove it though!!!!
 
12:34 PM
I could use something like this but with lan as well
 
@fredoverflow The one allowing you to have such a mug; you're too helpful to people having problems and not actually doing anything to solve them to actually have one. :P
 
with an SSD case inside as well perhaps
 
@owacoder The compiler might be implemented in a different language. For example, Compcert is implemented in Coq. — FUZxxl 3 mins ago
wow
 
@Griwes I read the last part of the sentence like 4 times and my brain hurts
 
:D
 
12:36 PM
@AndyProwl So I'm not the only one!
 
lol
oh
I got it!
it took a while
 
Is it about "teach a man to fish"?
 
Did it take a whale?
 
slow andy is on par again, keep going guys
@Griwes a whole one yes
 
@Griwes I am allowed to have the mug because it was a birthday present and it would have been rude (smug?) not to accept the mug.
 
12:37 PM
> you're too helpful to (people having problems and not actually doing anything to solve them) to actually have one
the parenthesis help :p
 
yep
 
ohh...
 
(Yes my english parser also broke reading this sentence)
 
@AndyProwl :D
 
I love helping with programming problems, I just hate fixing computers.
Here is how I fix my computer: sudo dd if=/dev/zero of=/dev/sda and the a clean reinstall.
 
12:39 PM
@Rerito Yes; English is about the only language where it actually makes sense to use S-expressions. :D
 
ass expressions
 
I don't want to see your ass expressions.
 
I just updated to Windows 10.
 
Ell
systemd is huge
 
Once I managed to kill Cortana, it's pretty much Windows 8 with a start menu.
 
Yeah, my C: drive when from 30% used to 40% used.
 
@Morwenn So... like Windows 8.1?
 
@fredoverflow I didn't have a start menu with my 8.1 for some reason.
The only annoying thing is that Cortana reboots in seconds when you kill the process.
I find the UI a bit uglier than before but I guess I'll get used to it in days.
 
@ThePhD You should write your own to make it simpler. :3
 
So basically, I like the new task view and that's pretty much it.
 
12:44 PM
Why do you need Windows, anyway? Games?
 
Because I can't be bothered to install Linux.
 
@Griwes 30 comments and 1 answer so far :D
@Morwenn Bothered to install or bothered to use?
 
To install, and to learn how to tweak things the few times I need them too.
 
Ell
Just be careful with your freedums
 
@Ell rms?
 
Ell
12:49 PM
rms wouldn't be using this website
it is too invasive of freedom
 
he doesn't visit any website with javascript
 
sorry, "nontrivial javascript"
 
@BartekBanachewicz I can make my compiler very memory-efficient if I restrict identifiers to 4 characters }:-)
 
as long as it’s not 3 or 5
 
12:56 PM
lol
 
@BartekBanachewicz That's why I don't put any in mine.
 
Is your website content appealing to rms?
 
@Columbo so by clicking "upload" I can post whatever crap I want
got it
 
@R.MartinhoFernandes because you want rms to read it?
 
Ell
I avoid javascript as best as I can in order to make my website more accessible
screen readers, braille screens etc. like well formatted html I think
 
12:57 PM
Of course.
He's almost my nicknamesake.
 
@Ell you can use js and still keep your website accesible FYI
 
@MarcoA. everything except animated GIFs (with the exception of sparkling computer legends like Bjarne or Uncle Bob)
 
Ell
@BartekBanachewicz I know
but I also want it to be readable in links etc.
 
you mean lynx
 
Ell
12:58 PM
No, I mean links
Links is an open source text and graphic web browser with a pull-down menu system. It renders complex pages, has partial HTML 4.0 support (including tables and frames and support for multiple character sets such as UTF-8), supports color and monochrome terminals and allows horizontal scrolling. It is oriented toward users who want to retain many typical elements of graphical user interfaces (pop up windows, menus etc.) in a text-only environment. The original version of Links was developed by Mikuláš Patočka in the Czech Republic. His group, Twibright Labs, later developed version 2 of the Links...
lynx too
 
@Ell the fuck
 
Keep it simple: upload .txt files to your web server.
 
Ell
and w3m
 

« first day (1816 days earlier)      last day (3136 days later) »