« first day (1202 days earlier)      last day (3738 days later) » 

12:10 AM
@sehe wow
:)
 
0
A: Problems boost spirit is deprecated

seheYou should upgrade to Spirit V2. I actually showed you how to do this in "Problems with grammar" :) Seriously. Boost 1_37 was release November 3rd 2008. Now, the docs (http://boost-spirit.com/home/doc/) explain To avoid namespace conflicts with the new Spirit V2 library we moved Spirit Clas...

^ also much WOW
Why does the guy even ask the first question? He clearly hasn't read the answer there. And can't even make things work anyway?!
Also, hidden markdown edgecase: total bitch to get cursively printed (and still have the hyperlink be functional and verbatim readable):
_(source page: [boost.org/doc/libs/1\_55\_0/libs/spirit/doc/html/spirit/what\_s\_new.html](boost.org/doc/libs/1_55_0/libs/spirit/doc/html/spirit/…) under "Classic")_
 
@sehe I usually do [*text*](http://example.com)
 
@HamZa Doesn't work if text contains underscores. Also, I wanted specifically to have the hyperlink shown (for instructive reasons)
@ScottW :)
 
Escape those underscores *text\_text* :)
 
@HamZa What are you telling me for?
3 mins ago, by sehe
_(source page: [http://www.boost.org/doc/libs/1\_55\_0/libs/spirit/doc/html/spirit/what\_s\_new.html](http://www.boost.org/doc/libs/1_55_0/libs/spirit/doc/html/spirit/what_s_new.html) under "Classic")_
 
12:19 AM
owh, sorry it must be late
 
             total       used       free     shared    buffers     cached
Mem:          4041        137       3903          0         16         71
-/+ buffers/cache:         50       3991
Swap:         4092          0       4092
fuck yeah
 
@HamZa Interestingly, the oneboxed quote of the multiline "fixed font" chat message is completely borking up the hyperlink as well the loose http:// o.O
             total       used       free     shared    buffers     cached
Mem:      32903256   10881924   22021332          0     288304    4540596
-/+ buffers/cache:    6053024   26850232
Swap:            0          0          0
@BartekBanachewicz :)
 
@sehe that's different units :P
having 32TB of RAM would be nice tho
 
Anyways. having 32GiB is nice too. I vow by it these days. Only the laptop has 'just' 16
And: NO SWAP.
 
Is having no swap nice?
 
12:27 AM
Yes. It ensures your system will only OOM/die if memory is out. Which is what you want.
 
@sehe Gb?
hmpfh
 
Contrast with windows, where paging starts happening looooooooooooooong before memory is really exhausted (just bad OS predictions/scheduling I guess?). It's just slowing things down
 
it didn't mount my 2nd HDD
maybe it's not formatted
meh, I don't need it now anyway
yaaay RAM and CPU
 
Maybe because you didn't tell it to mount
 
how can I list all physical drives?
 
12:29 AM
lspci, lsusb
 
bajtek@localhost:~$ ls /dev/sd*
/dev/sda  /dev/sda1  /dev/sda2  /dev/sda5  /dev/sdb  /dev/sdb1  /dev/sdb2  /dev/sdb5
 
Or, if you have the time and are root: lshw (which also does html)
@BartekBanachewicz That's not mounting though. That's just the SATA drivers showing that there are units on the controller
 
that's showing :v
 
@BartekBanachewicz try blkid for more info (not all distros have it by default)
 
bajtek@localhost:~$ ls /mnt
bajtek@localhost:~$ sudo mkdir /mnt/2
[sudo] password for bajtek:
bajtek@localhost:~$ sudo mount /dev/sdb1 /mnt/2
bajtek@localhost:~$ ls /2
ls: cannot access /2: No such file or directory
bajtek@localhost:~$ ls /mnt/2/
bin   dev  home        lib         media  opt   root  sbin     srv  tmp  var
boot  etc  initrd.img  lost+found  mnt    proc  run   selinux  sys  usr  vmlinuz
bajtek@localhost:~$
looks alright
 
12:31 AM
You ... copy your errors into chat? Low standards
 
@sehe it's Upoontu server LTS 2014
@sehe oh lol that typo indeed
 
Has blkid. Is nice.
 
Why do you have OS on second drive also
 
leftover
 
@CatPlusPlus It's just a drive, right
 
12:31 AM
it was in the sister server
imma buy a hdd tomorrow probably
now, the not funny thing is that it has old GHC in the repos
old everything actually
 
By the way, since you want to show off: cat /proc/cpuinfo (optionally | sort | uniq -c)
inb4 LTS2012
 
bajtek@localhost:~$ cat /proc/cpuinfo | sort | uniq -c
      1
      1 address sizes   : 36 bits physical, 48 bits virtual
      1 apicid          : 0
      1 bogomips        : 5333.12
      1 cache_alignment : 64
      1 cache size      : 3072 KB
      1 clflush size    : 64
      1 coma_bug        : no
      1 core id         : 0
      1 cpu cores       : 1
      1 cpu family      : 6
      1 cpuid level     : 10
      1 cpu MHz         : 2666.561
      1 f00f_bug        : no
      1 fdiv_bug        : no
@sehe yep.
I mistyped it as LTS 2014 whoever knows why
 
I have designed/discovered a new superfood. Take one Tesco Beef Madras with pilau rice. Preheat at 50% for 10 min. Stir in one heaped tablespoonful of Patak's phall sauce, six slices birds-eye chillis and sufficient Everyday Value chunky chicken to cover the sauce. Wrap the rice-side of the container with foil to distribute he uWaves eavenly and radiate for 15 minutes at 80%. Serve with lime pickle and mango chutney. WOT A BLOWOUT!! AT BOTH ENDS!!
 
so, am I fucked now?
 
Well. duh. 2012 is somewhat older
 
12:34 AM
or can I just download fresh GHC binaries from somewhere and be happy?
 
@BartekBanachewicz just... install a newer (debian)
 
@BartekBanachewicz You will be if you follow my recipie:)
 
@sehe can't I upgrade the existing one?
 
@BartekBanachewicz binaries? Just sudo apt-get build-dep ghc/apt-get source --compile ghc
 
> Ubuntu only supports upgrading from one version to the next version, or from one LTS version to the next LTS version.
 
12:35 AM
@BartekBanachewicz I've learned to "not-do-that". What's the gain?!
 
@sehe I've spent quite some time configuring that one
 
So, save /home, /root and /etc.
I always nuke my boxen. Have etckeeper + git on all. Always back live in <20 minutes.
 
Of course, all data is in separate (lvm2) partitions
 
@sehe they say it will take a long time
 
12:37 AM
> sufficient Everyday Value chunky chicken
@BartekBanachewicz "they say"? Oh, the Glasgow guys. Yeah, but they don't have your server specs :) (jk)
4 mins ago, by sehe
@BartekBanachewicz just... install a newer (debian)
 
user406009
@BartekBanachewicz Why don't you just add newer repositories to your apt?
 
Don't build GHC from source
 
@Lalaland I am afraid it will wreak shit
 
@Lalaland That's rarely good advice
 
Install Haskell Platform
 
12:39 AM
> Generic i386 Linux. This is a complete build, including interactive system, profiling libraries and documentation.
 
@BartekBanachewicz "wreak shit"
 
@CatPlusPlus my thoughts exactly
 
@sehe Oh my god...
 
Also fuck Ubuntu repos
 
s/ repos//
Windows PC master race ;)
Resistance is futile!
 
12:42 AM
Well, people think the Titanic is a a movie, that Mandela was a famous actor and tweet "Happy 2014th birthday World|America"...
 
My faith in humanity decreases with every example you give =/
 
This question appears to be off-topic because it is about premature optimization. — H2CO3 35 mins ago
^^ seriously...
 
I'm tempted to reopen because H2CO3 closed it :P
 
lol
 
C programmers talking about readability
 
user406009
12:46 AM
I haven't seen a single new person since the name change.
 
user406009
I think we are scaring people away.
 
Wait. Who the fuck changed the name to that? lol
 
Xeo.
 
12:47 AM
@CatPlusPlus I imagined grumpy cat as I read this.
@Mysticial You accidentally a word.
 
because it's an official fact that making tests makes you gay.
 
We definitely don't want people scared away by that
 
@Borgleader I accidentally fucked a word.
 
@sehe Speaking of servers and admining, remember my box with zfs? It are broke by 3.12 kernel lol.
 
egh
now it can't use DNS
 
12:48 AM
@LucDanton Oops. I'll keep that in mind then. I run "everything" on ZFS these days
 
Also Chef is awesome
 
@Mysticial Did you use protection, or is the word likely to become pregnant?
 
That assumes fertility
@CatPlusPlus Doing what?
 
Is it a German compound word? IME, those are the most likely to expand.
 
Have a go at Turkish.
 
12:50 AM
Configuring the box, duh
 
@sehe Info here, but the tl;dr is that 3.12 removed a deprecated API that of course was used by people. The fix will be in the zfsonlinux 6.13 release, which a comment on a issue tracker from two months ago stated ‘is due later this month’.
 
uh finally
 
@CatPlusPlus Which one(s)?
 
All of em
 
@sehe I have enough unicode shit as it is:)
 
12:51 AM
@CatPlusPlus kind of etc. but you know, I'm happy you're happy. And I'll never figure out what Chef does :)
@MartinJames Turkish is remarkably low on mutant alphabet members. Blame Attaturk
 
hıhı
 
those, mostly
 
@BartekBanachewicz vim /etc/network/interfaces && /etc/init.d/networking restart (perhaps a dhclient& to diagnose/prod a little). Oh, and stale /etc/resolv.conf is nice
@CatPlusPlus Don't they have anything else than vids? So annoying
 
There's gettingstartedwithchef.com and tutorials in the docs
 
12:55 AM
How much Ruby is involved? I feel like there should be full disclosure on that very important matter.
2
 
@CatPlusPlus Brillant. They hid it well :) I concluded (a) I wasn't smart enough (b) they sell baked air (c) their product isn't for me (d) ...
 
@sehe of course on ubuntu it's completely different
 
@BartekBanachewicz Duh. You already told me what you're using. So. No.
 
Baked, cooked, broiled, etc.
 
@sehe it was different.
resolv.conf isn't used
 
12:57 AM
Oh, I don't have ECC ram.
@BartekBanachewicz It is with me. Mmmm. /etc/resolvconf/... hell?
 
that box isn't on ECC
 
I didn't say :)
 
@sehe well it displays a big warning for me that it's generated and will be overwritten
 
@LucDanton Configs are in-Ruby DSL so there's some, but it's mostly declarative stuff
 
bajtek@localhost:~/hsp/ghc-7.6.1$ ghc --version
The Glorious Glasgow Haskell Compilation System, version 7.6.1
yaaay
 
12:58 AM
@BartekBanachewicz trololol. Yeah?
> "Oh, and stale /etc/resolv.conf is nice"
 
:S
it's 2am
 
Ahaha, LRIO and I pissed off H2CO3.
 
@Mysticial where. link
 
@Mysticial That's been a long time
 
And puppy.
@LightnessRacesinOrbit Fortunately, just a little. (I. e. this question is off-topic because it's about a "general design decision that cannot possibly answered correctly and concisely because it's too early for such a decision to be made". This is not a made-up reason, this is precisely the definition of premature optimization.) — H2CO3 2 mins ago
 
12:59 AM
15 mins ago, by Mysticial
This question appears to be off-topic because it is about premature optimization. — H2CO3 35 mins ago
 
> root@intro:~# curl -L https://www.opscode.com/chef/install.sh | bash
Okay.
 
Cough. Convenience over security. For an infrastructure management product.
 
user406009
@LucDanton Won't that cause a lot of issues if the connection gets dropped while downloading the file?
 
user3010322
@thecoshman vOv I did!
 
1:01 AM
wow... (its old but i hadnt seen it)
 
@CatPlusPlus You're gonna argue "https" has my back. Well... I hope curl does cert validation by default
 
TIL iPhone battery power is roughly the same as 4 AA batteries.
 
I don’t know enough about curl. Should complain on stderr though.
 
is there a concept similar to a dictionary in C++ in any way?
 
@Lalaland Depends on how they made the script.
@Crowz map, unordered_map (also: google)
 
1:02 AM
google is not an unordered set of keys and values. It is a search engine
 
unordered_map it is
 
if you look up stuff in a real dictionary then you use binary search, so map would be closest match.
 
fortunately, we don't choose containers based on entirely arbitrary comparisons to real life procedures of dubious relevance
 
I know.
 
@CatPlusPlus Oooh, bare wordy!
 
1:05 AM
most people don't iterate through a dictionary but always perform searches for specific entries. that's the point.
 
I always start from the first page and read everything until I find the thing I'm looking for
 
@Crowz you mean c#? if so, Dictionary = std::map, Hashtable = std::unordered_map
 
That explains why your English is so good, but better for words beginning with letters from the first half of the alphabet, on average
 
And I use my finger to point to things, so therefore std::list is clearly the best choice
 
I start with binary search and switch to linear search later.
 
1:06 AM
Actually you perform a much more complex search using heuristics
 
@doug65536 Nope
Dictionary is unordered_map too
 
@CatPlusPlus hehe you are fingering the dictionary
 
@LightnessRacesinOrbit Because everybody knows, languages are learnt from a dictionary.
 
@CatPlusPlus is correct
 
I don't know any words that start with z
 
1:09 AM
@CatPlusPlus what's the difference then? my c# is getting rusty
 
Zealot? Zigamorph? Zeugma? Zombo?
 
@doug65536 Dictionary is generic, Hashtable isn't
Also has a crappy name
 
@CatPlusPlus But! There's HashSet<>
 
Don't use anything from System.Collections
 
1:09 AM
Mmmh the tutorial outlines digging into a configuration file to find out dependencies, then going about fetching a missing dependency. I know Chef is moving at a fast pace and the tutorial is doing that on purpose to demystify the process but I still find it annoying.
 
@CatPlusPlus The bases use it :)
 
35
A: Why is Dictionary preferred over hashtable?

Marc GravellIn .NET, the difference between Dictionary<,> and HashTable is primarily that the former is a generic type, so you get all the benefits of generics in terms of static type checking (and reduced boxing, but this isn't as big as people tend to think in terms of performance - there is a definite me...

 
The Berlin meetup is a gay event now? I guess that, if I have to sleep with one or more Loungers, it will reduce the overall hotel charges. I have to state now, though, that I'm not paying anyone else's minibar bill.
 
Minibar won't do
 
evening
 
1:10 AM
yeah that's right. SortedDictionary would be std::map
 
gays
 
@CatPlusPlus ..or any other chargeable bar bills.
 
@CatPlusPlus Oh. Sorry god: Zoroaster /c @StackedCrooked
 
wtf the whole process is manual, no dependency resolution
 
1:12 AM
@doug65536 yeah more or less
 
You're all berking mad.
 
not taking the bait...
 
> (Hold on to that website! It answers your questions much faster than we do) lol
 
not taking the berk
 
Bait.. bait.. can't do anything with 'bait' except 'jailbait'. Underage Loungers stay away from my room:)
 
1:16 AM
berserk
@MartinJames aaaaaaaaaaaaaaaaaaaaaaaand switch!
 
@sehe Nice edit. I would upvote you for that, but you already have it :P
 
1
Q: Substring in C++

user3064203I am writing a program that will calculate password strength according to two formulas. One of these formulas requires me to extract certain parts of the password, first character, next seven, next 12, and all remaining characters. I am having trouble extracting all the remaining characters. I ...

 
bartekserker
 
berserker mode activated. BLARHAG...!
 
@Borgleader lol
 
Xeo
1:17 AM
@StackedCrooked Servant Berserker? :)
 
user3010322
Sword of the Beserker.
 
@Xeo kinda
 
@LightnessRacesinOrbit Hmm? I think it's a decent question well-posed. Too bad it's probably a 100x dupe
Formatting could be improved (question hard to find)
 
@sehe It's "give me code/solution" and/or "talk me through this". Never going to help anyone else. Not viable candidate for Q&A archive.
 
1:18 AM
Oh shit. While I've been posting, Bailey has eaten my turbo-curry leftovers. Chemical warfare tomorrow morning:(
 
This question is off-topic because it appears to be about butts
 
@MartinJames Oh shit indeed
 
> You may only load the close dialog every 3 seconds.
wut
 
@LightnessRacesinOrbit Unless you change the title to "How to substr until end of string" or something along those lines.
 
@LightnessRacesinOrbit No? He's clearly tried things, knows about the substr member and it's parameters. And he's "pondered". Now, he's unsure whether he needs to pass something. If anything, he needs to improve on doc-reading skills and try-it-before-you-ask, maybe
@LightnessRacesinOrbit Anyone else with the same existential crisis will benefit
 
1:20 AM
@sehe I don't see how they'd ever find it. It's deeply mired in OP-specific code and conversational prose
 
Xeo
@StackedCrooked Such meaningful choices! dl.dropbox.com/s/ay3q5bf46b7gxyl/dem_choices.png
 
@LightnessRacesinOrbit True. But then again, that's the root cause here :/ If things were easier to find/search skills were better, the question wouldn't exist on SO
 
@Xeo what a quandary
 
@Xeo (i apologize in advance) such choices, much roleplay, wow
 
I learned the English word quandary while studying kanji. Actually I learned many English words by learning kanji from English sources.
 
1:22 AM
@sehe True. Then he should ask on some chatroom or discussion forum, or ask a friend, or a teacher, or read his book again, or study the documentation. SO doesn't exist to do that work for him
 
I think you're forgetting about reality. I know it's not the intended purpose.
 
lifestyle choice
 
I should've ordered pizza yesterday
 
@sehe Lightness Chases After Utopia ;)
 
:)
yeah, I suppose, more a fact of my brain chemistry
 
1:24 AM
I should go practice writing some Haskell code >.>
 
I should go to sleep
tata
 
@Borgleader what are you going to write?
Also my Flask app doesn't work
it just dies
@CatPlusPlus what am I doing wrong?
I'm in virtualenv
yolk -l shows proper Flask version
 
@BartekBanachewicz No clue, that's one of the reasons I'm not currently writing any.
 
@BartekBanachewicz Ghost Busters!
 
1:27 AM
@BartekBanachewicz Good diagnosis
 
(omconf)bajtek@localhost:/var/www/omconf$ python main.py
(omconf)bajtek@localhost:/var/www/omconf$
it's the most basic code from tutorial
 
user406009
What is in main.py?
 
from flask import Flask
app = Flask(__name__)

@app.route("/")
def hello():
    return "Hello World!"

if __name__ == "__main__":
    app.run()
 
python -v main.py
 
1:29 AM
that's a lot of text
 
oh hey SO in portuguese
> People should stop being lazy and learn English instead, as it’s the de facto language for programming anyway.
 
it does a lot of imports and then a lot of clears
 
user406009
Are you using an up to date python version?
 
@Jefffrey Agreed, it might also be a chance for us to learn another language !
 
@Lalaland 2.7.3
 
1:31 AM
@HamZa what other language
english?
 
@Jefffrey portuguese :)
 
Flask states it needs 2.6+
 
@HamZa your comment does not make any sense :/
 
user406009
Yeah, 2.7.3 should be fine. (It's just that I sometimes see a lot of computers running around with 2.5 for some reason)
 
Oh, hey SO in portuguese, it shouldn't even be proposed -> agreed, it's a chance to learn a new language
wat
 
1:32 AM
@Jefffrey Let me fix it: "Agreed on the other hand it might also be a chance for us to learn another language !"
 
that's better :)
 
user406009
@BartekBanachewicz What happens when you manually type app.run() in the interpreter?
 
My english is quite bad, not my first nor my second nor my third language :P
 
user406009
from flask import Flask
app = Flask("foo")
app.run()
 
@Lalaland it works
what the hell
@Lalaland when I put that into my file it works
 
1:50 AM
tmux is awesome
 
user3010322
tmux?
 
@ThePhD console manager / screen replacement
 
@BartekBanachewicz do you prefer it over screen?
 
@xslr screen is rather poor
 
user3010322
@BartekBanachewicz Uh. So you can make debug consoles with it, or...?
 
1:58 AM
I've never had an issue with screen but sounds like I gotta try tmux.
 
I wish emacs performance on windows was not so full of suck.
 
emacs was always too big for a text editor
 
I don't mind it being an OS, as long as it's nimble.
 
meh. those are kinda exclusive
 
2:07 AM
:v
 
hehe I made an app showing disk usage
 
like windirstat?
 
maybe, never used it. it's a web app
oh what the fuck
temp3: -2.0°C
it's really cold up there
 
@BartekBanachewicz That's warm.
 
that's technically inside my house, dude
 
2:18 AM
@EtiennedeMartel Maybe in Canananada
 
@BartekBanachewicz Oh.
@CatPlusPlus We live in igloos here.
 
user3010322
@EtiennedeMartel Hey, sorry about missing your question before. I was trying to get into contact with Mr. David DaCosta. He left a message, but my phone is terrible and it ate the message so I don't have it anymore. =[
 
@ThePhD Oh, right, he's our recruiter. I think.
 
user3010322
I sent him an e-mail, asking him for a good time to call him back so I could find a time that wasn't during one of my classes (my schedule is pretty full right now, and it doesn't help they're putting me in all kinds of auxiliary meetings).
 
I bet your boiling water is actually an icicle
 
user3010322
2:20 AM
Speaking of Auxiliary meetings, there's a "Cookies and Code" thing here.
 
user3010322
It goes until midnight. I'm about to head over and sit down and bury my face in some programming, FINALLY.
 
@EtiennedeMartel it's the input from sensors command from my server
 
user3010322
Having no actual programming courses is more brutal than I originally thought =_=
 
user3010322
I kind of subsist on code. :v
2
 
I am making a simple wrapper over basic linux commands with Flask
it's pretty fun
 
user3010322
2:23 AM
@BartekBanachewicz Sounds fun.
 
I desperately need templating now
 
user3010322
:3c
 
@ThePhD not that templating, silly
hmmm
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 71: ordinal not in range(128)
//cc @R.MartinhoFernandes
I guess that's a blocker and I should go to sleep
 
2:40 AM
@EtiennedeMartel oh god a laugh track
 
 
1 hour later…
3:49 AM
"After backup is complete, plus shut down the computer and repair or replace the faulty hard disk. Try not to use the computer until you have repaired or replaced the hard disk." Is this a bad thing?
@BartekBanachewicz what's the problem. 0xc2 is not a valid ascii anything
@BartekBanachewicz use a codepage encoding, or utf8, whichever actually fits your data
 

« first day (1202 days earlier)      last day (3738 days later) »