« first day (2400 days earlier)      last day (2549 days later) » 
00:00 - 17:0017:00 - 00:00

12:26 AM
For f(times=5), how does python interpreter know that, it is second arg passed in def f(str='default', times=7): pass?
 
read about keyword arguments
 
 
2 hours later…
2:37 AM
Anyone here used ttk.notebook with a lot of tabs containing a lot of information?
 
 
2 hours later…
4:11 AM
Cabbage :-)
 
 
2 hours later…
6:30 AM
cbg
 
0
Q: Python program from MIT course not working as expected

Shameem FairoozI'm currently following an intro to cs course in python. The code is given below. school = 'Massachusetts Institute of Technology' numVowels = 0 numCons = 0 for char in school: if char == 'a' or char == 'e' or char == 'i' \ or char == 'o' or char == 'u': numVowels += 1 elif...

I asked a question on Stack Overflow. I got a lot of down votes to that question . Now I'm unable to ask any questions. Here is the link
Any help ?
 
6:47 AM
@ShameemFairooz what do you expect us to do?
 
A little help on how to edit this question,
So that I can ask questons again
 
@ShameemFairooz Your answer is no heplp to anyone
you have received another answer, with a code and well written
if that solves the problem, delete your answer and accept that one
if it doesn't solve your problem, write a proper answer to yourself
 
I deleted my answer and accepted that one. Tha doesn't solve that problem.
I'm not sure as to how to write a better answer.
 
@ShameemFairooz for that question, don't write an answer. In general, stackoverflow.com/help/how-to-answer
 
@khajvah What should I do then ?
 
6:57 AM
@ShameemFairooz leave the question alone, you got your answer. Maybe answer some other questions?
@ShameemFairooz btw, what does it say? Did they just ban you because of 3 downvotes?
 
@khajvah I think so. I haven't got any downvotes for other questions.
 
51
Q: What can I do when getting “We are no longer accepting questions/answers from this account”?

Robert HarveyDo not repost the question you were about to ask until you have READ EVERYTHING WE ARE ABOUT TO TELL YOU. While trying to ask a question, one could get: We are no longer accepting questions from this account. See the Help Center to learn more. Likewise, for answers: We are no longer a...

It says fix your bad posts
but in your case fixing it would mean posting the same thing as the other answer
so I don'tknow
 
stackoverflow.com/questions/43930772/send-an-array-in-json unclear/mcve (and OP flat refuses to clarify)
 
7:13 AM
cbg folks
 
7:31 AM
can we use userProfile in two different views in django?
from django.shortcuts import render
from django.http import HttpResponse,HttpResponseRedirect
from django.contrib.auth.models import User
from django.contrib.auth.decorators import login_required
from myapp.forms import UserForm,UserProfileForm
from django.core import serializers


# @login_required(login_url="login/")
def home(request):
    return render(request,'myapp/home.html')



def signin(request):
    if request.method=="POST":
        signup_data = request.POST.dict()
        print signup_data
please look this code
please help..
when i am doing such as giving error :<User: abhijeet> is not JSON serializable
 
@harivanskumar please read http://sopython.com/chatroom – especially:
3. Only paste code directly into chat if it is not very long.
There is no hard limit, but about a dozen lines is acceptable. For longer code, use an external paste tool such as dpaste.
*and*
4. Double check that your code is properly formatted.
For a multi-line post to retain its indentation, every line (including empty lines) must be preceded with four spaces. Paste your text and indent it with Ctrl+K. Alternatively, press the “fixed font” button that appears next to “send” and “upload” when your post is more than one li
 
 
2 hours later…
9:25 AM
/me watches the tumbleweeds blow by
 
/me eats carbonara
 
/me typing on a keyboard and watching my screen
 
@Gemtastic oh great... now I'm hungry - good job :p
 
It's lunchtime here
 
lucky you gemstatic
 
10:02 AM
Nomnomnom
What about you people then? Don't you have some delicious Python code to sink your teeth into?
 
10:29 AM
cbg
 
 
2 hours later…
12:11 PM
morning cabbage
 
Cabbage. There seems to be a few people lurking, but I guess we've got nothing to say. ;)
 
It's a fairly typically slow time for the room, I'm not surprised :)
 
I'm almost inclined to downvote this OP for their non-standard usage of the term "sorting": stackoverflow.com/questions/43935016/… I guess he means it in the sense of sorting the desired data from the unwanted data, but it's still confusing.
 
12:28 PM
I was going to say "it's inelegant that the accepted way to get the most common element from a list is with collections.Counter(seq).most_common()[0][0]", but then I found out that Python 3 has statistics.mode
Now to twiddle my thumbs waiting for 2.7 to die so I can start using mode in answers without having to preface it with "if you're using 3.X..."
> If data is empty, or if there is not exactly one most common value, StatisticsError is raised.
Hmm, I guess it's not functionally identical to most_common, which will happily choose one of the most common values basically at random
I feel like mode should have a just_pick_one_already=True optional flag
 
@Kevin Yeah, feels weird to have to build that counter to get the most common item
I had not even given a thought to statistics.mode
 
@PM2Ring well, if that doesn't answer the OPs question, he needs to be beaten about the head with a clue by four
 
Well failing that there's always max([(k, list(g)) for k, g in itertools.groupby(sorted(x, key=len))], key=lambda t: len(list(t[1])))
 
@WayneWerner Thanks. I couldn't be bothered looking at the API myself.
 
12:44 PM
Yeah, it's unsurprising that there aren't any filters. Any person who isn't focused on completely the wrong thing would be fine with that
My guess is they're a n00b and they got bit by some kind of errors like... deleting things that they didn't want?
like: del sport['id'], etc.
 
CABBAGE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
I just saw a news report of a guy called The Python Hunter in Florida
I want that to be a job title now.
I want to be a python hunter
 
cabbage @idjaw
that's pretty awesome
 
Seinfeld teaches us that choosing a nickname for yourself is easy, but getting everyone else to go along with it is hard.
 
@WayneWerner Or trying to delete fields that don't exist... I guess I can see a valid reason just to request a list of the names of the sports, but I can't imagine it would be a common thing to do. Normally you'd want at least their ids as well to perform further requests.
 
12:48 PM
haha. Yesterday I "jerk stored" someone at work after a silly water cooler joke about wasting water .
 
Yeah. Nobody knows what the OP has in mind. I'm not much of a betting man, because that's a great way to lose, unless you can make up a Dutch book
 
morning everyone
 
morning cabbage @corvid
 
@gemstatic I have a delicious disaster recovery plan to write
 
12:51 PM
Max Walker was a legendary football and cricket player who passed away last year from multiple myeloma.
 
0
Q: Django Updating wrong fields when loading from Excel

Rick LesnarI am trying to update a django model using data from an excel sheet. I am using the Modelclassname.objects.create() method My View.py def create_user(request): if request.method == 'POST': book = xlrd.open_workbook("C://Users//10613527//Desktop//asd//Invoice List-Jan2017 (1).xls") ...

Any thoughts on this one guys
 
I really like the idea of separate packages for an app, but it always seems to be too much overhead :\
 
e.g.?
@Anarach I think you should re-read the room rules
 
Well it's a gray area because it's not his own question
 
@WayneWerner I am sorry, Feel free to delete it,
 
1:06 PM
Section 4 makes an exception for cases like this if the intent is to have an interesting discussion about the Q
... Although I would have liked a more directed prompt than an open ended "thoughts?"
 
@Kevin That is my question actually Different ID , I am asking from this one since the other one does not have enough reputation to the chat room
SO yeah , according to the room rules
i am at fault here
 
Heh. Alright then.
 
Its just that there are no errors on that problem and i have been stuck on it for two whole days , LIKE there are 0 errors ..
 
ohaycab gozaibage
4
 
The DB keeps on updating one column to the right for two or three columns ..
 
1:10 PM
Ah, the dreaded "runs with no exceptions but doesn't produce the desired result" failure mode
 
I tried my best to solve it myself , was not going to ask on SO since there are 0 errors its hard to explain the problem, LOL
 
@Anarach Indeed. ;) OTOH, it's perfectly ok to have meta discussions here about fresh questions, i.e., discussions about how to help the OP improve the question.
 
@PM2Ring Understood!!
 
In in any case, I'm guessing the problem is your indexing
 
@Anarach Or if you see a misguided answer and you need help formulating a good comment to let the answerer know why they're wrong, and/or how to improve their answer.
 
1:15 PM
@PM2Ring Got it :-) thanks
 
\o cbg
 
cbg @MooingRawr
 
waddup bud, how goes it :D
 
@PM2Ring I keep meaning to ask but I always forget -- what does your name mean?
 
@MarcusS It's in homage to A M Turing.
 
1:21 PM
Going well here, just comparing new and old stuff to make sure the new process works like the old one
@PM2Ring Clever Dan
 
I always thought it had something to do with ring theory.
 
cbg @Code-Apprentice
 
I assumed it was physics/chemistry-related or something
interesting to know -- thanks, haha
 
It has absolutely nothing to do with this Monty Python sketch: montypython.net/scripts/man3butt.php
 
1:23 PM
I just remembered, today is Friday! \o/
 
@PM2Ring That's something completely different
 
What does 2Ring ... oh I get it now that I pronounced it in my head.
 
Of course, being Australian, I pronounce "Turing" as "TYOO-ring", but I guess Americans would pronounce it as "TOO-ring".
 
American here. Yes.
 
I think it's more of a "TUR-ing", at least when I've heard it
 
1:27 PM
^ "TER-ing"
 
I mentally pronounced 2Ring as too-RING so the stress pattern didn't match up closely enough for me to make a connection
 
When I originally chose it, I was kinda poking fun at leet-speak by using the digit 2, but it's turned out rather handy because it makes it fairly easy for me to Google my own stuff.
 
That's always nice
 
Until you come across something embarrassing you wrote ten years ago
 
I used to find a lot of results for Wayne Werner when I searched for my name
 
1:29 PM
Googling "Kevin" doesn't turn up much for me
 
seems us Wayne's have a proclivity for creating things
 
@Kevin True. :) But it doesn't worry me too much. OTOH, I've been very careful not to reveal too much personal info, so it'd be rather hard for someone to connect "PM 2Ring" to my IRL identity. Hopefully. :)
 
I do often miss the more anonymous days of the Internet
There was a tendency to stop dealing with people you no longer care about
 
I was active on FidoNet for several years before I got Internet access. On most of FidoNet you had to use your real name, and there was a strong distrust of the culture of anonymity of Usenet. (This was before the WWW).
 
I never did either of those - BBSes were my first "network" experience
mostly downloading shareware games
 
1:38 PM
My SO and GitHub profiles are in the first page when I google my name. But so are other apprenticeship websites
 
I discovered FidoNet via Bulletin boards, and I always used them to access FidoNet. Lots of people did have their systems set up as FidoNet nodes, but I never bothered, it was easy enough to do it via a Fido-connected BBS. In the end days of Fido, most of the Fido traffic was actually passed around via the Internet, but originally it was all transmitted by a network of dial-up phone connections.
 
One of my favorite things from those days: purpleabyss.neocities.org/dotb.htm
 
I do kinda miss the days of shareware... twas quaint
 
en.wikipedia.org/wiki/ZZT was another super fun game
 
It seems rather primitive compared to what we do these days. Back then, modems were 2400 bps, and you checked for new messages once or maybe twice a day. Yes, it was slow, but the slowness had one big advantage: it reduced the tendency of flame wars, and people thought more about what they were writing.
 
1:45 PM
This reminds me of an article I read the other day: My BBS Software from 1993.
 
I haven't gone down the book route in a while, but does anyone know if this is any good: shop.oreilly.com/product/0636920053675.do?
 
oh man! I found it! Mostly Morphine Powdered Strangers, the ZZT game!
 
The Hacker News comments on the article also give an interesting look into the social hierarchy of that culture
> It took a ton of effort just to get your BBS to participate in the network and once you did, data moved so slowly that you became very observant of each step of the process of communicating.
Coincides with PM's testimony.
 
@Kevin Nice. It's good to see some of the old-school ASCII art again.
 
It reminds me of my own early experiences with computers around '95
 
1:50 PM
I think I know what I'm doing this lunch. Going to read up on how those JPEG/PNG to ascii art converters work...
 
Back when Duke Nukem was a platformer.
 
There's a prominent SO user who hangs out in the C++ chat room that I know from FidoNet days. I kinda want to say hi to him, and talk about the good old days, but I don't want to accidentally dox myself.
 
AOL keywords were sort of like first-generation hashtags
 
Stonehenge was the main BBS we used in LR
@PM2Ring you could always create another account on SO and get 20 rep
 
@MooingRawr There's a pretty good bitmap to ASCII converter in the NetPBM package
@WayneWerner That's a point...
 
1:53 PM
although now the jig is up, if someone was that interested
@Kevin That Duke Nukem was the best
rbrb
 
A year or two ago I encountered someone who was a regular in a message board that we used in like '01. I briefly considered reaching out but there was basically zero chance they'd remember me because I had 17 posts on that message board and they had 10,000.
So it was more of a celebrity-fan relationship than a peer-peer relationship. Except it would also be odd to say "I love your work" when their work constituted posting random BS on a web site fifteen years ago
 
@PM2Ring dont know what a NetPBM is going to look it up during lunch I suppose.
@Kevin who knows maybe it would make em happy if they knew..
 
Any way to private message someone on SO in general?
 
I'm trying to imagine how I'd feel if in 2032 someone complimented me on my starred messages on SO, back before the solar flare of '19 knocked out the Internet for good
"Thanks. Do you have any food or gasoline?"
 
@MooingRawr NetPBM is an ancient family of image file formats, and a whole bunch of CLI image processing programs that's been popular on Unix systems for decades.
 
2:02 PM
@MarcusS Nope, best you can do is invite them to a very public chat room.
 
NetPBM isn't as powerful as say ImageMagick, but I find it a lot easier to use because it's just a bunch of simple programs which each focus on a particular thing.
 
Evidence suggests that mods have at least one private room but that doesn't do much good for us mortals
 
And the NetPBM file formats are so simple that you can read & write them without needing library code (although it is a bit more robust if you do use library code).
 
@WayneWerner New user QN 3Torus, whose avatar matches PM's except for a Groucho Marx glasses/nose combo
Nobody will ever suspect
 
DSM
2:20 PM
Cabbage of friendship for everyone!
 
aww, recbg
 
2:36 PM
Here's some ASCII art I just made using NetPBM programs. To reduce its size (and make it vaguely on-topic) I used a little Python. :)
import bz2, base64; print(bz2.decompress(base64.b64decode('''\
QlpoOTFBWSZTWUnAk8EABPj/gH/YAgBVn6U9gFIIB1QggARQBZgRASoSKElCGmRNNITQE001PTTUaaaG
gw0Mhpk0AxDTTRoaMEmkiITQRpG0aU2k8oMIMNDIaZNAMQ000aGjDDQyGmTQDENNNGhoz8ez+ULP8XER
Ji/LMRx/DcLPbMf+6OLnC6ye/tkdXn7cU/Fv1/N66iVC0p42wkDxQA/LPcgQ4fNISoGFdJjBE22IySLO
UA7MJiMgrFFiwbxSQzi1jIJpJwITEF0yCwFlFBBHparyljugbcvDmkKnDsTV0i5xcwlf9kCnOEG8P8gE
s27Pfv3aJcp1U8avy+A7n4mA7EGiiHN8C7tslGLvM9LaW7xYCs6vA97YkwCCcIZdeQx+EBqOONPfPzm9
1w/3Pbs3vuGYqxnSzktJ6ttOfYv8+BfPMmZ9vdubTeUOr4PO76ZtBV7MIaQA5YQ0tsCXzteUKydE8WTG
 
@PM2Ring that looks familiar....hmm
 
The command pipeline I used was
jpegtopnm davidism0.jpeg | ppmtopgm | pnmscale -width 158 | pgmnorm | pgmtopbm -d8 | pbmtoascii -2x4
 
A program that judges its own usefulness.
 
So it pronts a thumbs-up?
 
They're good dogs, pront
 
2:46 PM
Bah, mobile
Also: post-distress cbg
 
@DSM I needed this.... I just found out I was working in the wrong branch for the last 2 days... at least I can copy and paste my code over to the right branch... but my god :( #rookieMistakes :(
 
If you're in git, you can rebase and/or cherry-pick and that'll make it... uh, "easier"
 
I'm embarrasses to make such a silly mistake :D
 
Doggo was highly unwell in the morning...unscheduled trip to the vet, all's mostly fine
 
2:47 PM
Oh no! What happened?
 
@KevinMGranger I am in git (sourceTree) so yeah I'm not going to try and rebase.... just going to copy and paste code over
@AndrasDeak not the doge :( at least it's fine :D -reads mostly- :|
 
She looked half in shock. Fortunately it's "just" some back pain, probably
Good thing vets don't cost an arm and a leg here:)
 
Give them a pat for me, will you?
Or ear scritch or belly rub
 
Will do, thanks:)
 
What kind of dog is it ?
 
2:52 PM
Done
Wire-haired dachshund
Weakly typed when it comes to spines
 
I have a problematic dog myself, but now it's down to a manageable $100 a month for meds. The first seizure was definitely a shock because it happened in the middle of the night. Hope all is well for you though
 
I'm sorry to hear that :(
 
So their spines can just turn into something else without being explicit about it?
 
Seizures are scary
 
Yeah once they realize what is happening it's worse. One time he tried to run from it and that worried me.
 
2:55 PM
@KevinMGranger yeah: spines with dislocated discs :P
 
My dog's got a cataract but the vet said it's not a big quality of life drop for an inside animal as long as we don't rearrange the furniture a lot
 
Yeah, I know some almost-blind dogs, they're nose-centric anyway
 
Anyway, didn't mean to bring everyone down :P
 
Dogs getting cataracts, cats getting dogaracts, those four-dimensional spiders from the SCP wiki getting tesseracts?
 
2:58 PM
Doggy lasik is available but I question the practicality of such a surgery because you just know she'll use her new laser vision to melt a hole through the wall into the backyard the first time she wants to go out
 
Similar to ours:
 
Can it be treated with cannabis? I know it's "not good" for dogs but it still takes a lot to do harm. Not that it's legal where you are (if I remember correctly)
 
You mean Programmer's, or ours?
 
I think he meant the Kevinson dog.
 
Cataracts with cannabis? Wow
 
3:01 PM
Trying to remember what my parents told me... It was either "cataracts aren't painful for dogs like they are for people" or "we've got medicine for that". Either way I'm sure it's under control
 
I didn't even know they were painful for people
 
Aren't they? Maybe I dreamed that part.
 
They aren't.
 
Kevin Kevinson: professional unreliable narrator
 
The lense fogs up, that's all
 
3:03 PM
Maybe they were talking about hypothetical doggy glaucoma
 
There's a different condition due to increased eye pressure... they are called similar in Hungarian
That, glaucoma
 
I wish I could share a doge picture but I haven't gotten my new phone's drivers to work. I assure you he's well though and he still loves getting plenty of exercise despite his meds. Sorry if it was bringing down the atmosphere earlier :P
 
About to leave and come back just for a joke
jazz-cbg
 
Rbrb
I'm off too, having hijacked the mood :D
 
3:11 PM
hey all
I have a terminology question for you:
if you wrote a class, and I import it, and without subclassing, I add other methods to your class and decorate existing methods... is that called monkey patching?
 
Layman vote: yes
Wait for a pro :P
 
I'm 70% sure that's what that is.
 
super! thank you :)
 
@inspectorG4dget 100% yes ALSO please don't do that :)
(only if you are writing test cases)
 
I think there's a whole Foo Fighters song about resisting that. "I will not be your monkey patch" or something.
 
3:18 PM
(there's always a better way: either inherit and override, or way-way better: compose and dispatch)
@KevinMGranger +1
 
"When should I do it, then? / One-in-ten, one-in-teeeen"
 
@PeterVaro I had to - I have to use someone else's C++ code (which I couldn't change) through boost. So I had to do all sorts of weirdness to make it make sense in python land
 
@KevinMGranger well.. if you only write 1 test scenario for every 9 feature.. :P
@inspectorG4dget you can always wrap/compose -- which is just 500% better, and the best solution you can get, instead of the weird black-magic that you are about to do..
 
Sometimes I find it necessary to hack existing classes that way due to a poorly designed interface. If I'm driven to such extremes, I don't feel bad about it. Corner an animal and you'll see its claws, baby.
 
"All this time to make amends / What do you do when all your enemies are friends" here, Grohl refers to violating a key principle of SOLID: modifying the class instead of extending it.
"Now and then I'll try to bend / Under pressure wind up snapping in the end" here, Grohl refers to interfaces that far too inflexible and brittle being the cause of the issues seen here.
 
3:22 PM
@PeterVaro Could you show me an example of what you mean?
 
@inspectorG4dget for composition?
 
Me: "This API expects a Widget object, whose behavior doesn't quite match what I need... No problem, I'll make a Sprocket subclass and wrap the widget."
API: TypeError: expected Widget, got Sprocket on line `assert type(x) is Widget`
Me: [flips table]
 
@PeterVaro composition is f(g(*args)), yes? What do you mean by wrapping?
 
@inspectorG4dget That's function composition, which is a little different to class composition.
 
@Kevin but with a little boilerplate, you can create maintainable, readable and less magical solution.. I still don't see the reason of not wrapping a shitty API..
 
3:25 PM
I'm not familiar with class composition, it seems
 
I'll whip you up a quick example
 
thank you
 
Composition over inheritance (or composite reuse principle) in object-oriented programming is the principle that classes should achieve polymorphic behavior and code reuse by their composition (by containing instances of other classes that implement the desired functionality) rather than inheritance from a base or parent class. This is an often-stated principle of OOP, such as in the influential book Design Patterns. == Basics == An implementation of composition over inheritance typically begins with the creation of various interfaces representing the behaviors that the system must exhibit. The...
this seems about right @inspectorG4dget ^
 
@inspectorG4dget Class composition means (for example) using instances of classes A and B inside class C. This is in contrast to having C inherit from A & B.
 
ahh. I see
 
3:26 PM
@PeterVaro Well, there's bad, and then there's bad. I'm talking about APIs that don't respect Liskov's substitution principle. Refusing to accept an A when it wants a B even when A inherits from B.
 
class FooBarDispatcher:
    # use a better name than this though please
    def __init__(self, foo, bar):
        self.foo = foo; self.bar = bar
    def baz(self, *args, **kwargs):
        return self.foo.baz(*args, **kwargs)
    def bing(self, *args, **kwargs):
        return self.bar.baz(*args, **kwargs)
Sorry I can't think of a real-world example, I've been lucky enough to never really need to do this :P
 
This is like a once-a-year occurrence, mind you.
 
no that makes sense
so my context is that a colleague has written <X> in C++. I then used boost::python to expose his classes to python
but then his classes didn't have methods like __hash__ and __eq__, so I couldn't put those instances in a dict
 
@inspectorG4dget A composed class is generally easier to work with than one that uses inheritance. If C inherits from A & B then C is a kind of A and a kind of B, so it has to "quack" like both A & B, it can also do extra stuff. But with composition, C merely contains an A & B, so it gets to use their stuff while being its own kind of entity.
 
@inspectorG4dget then create a wrapper class around the exposed one and dispatch the methods you have and define the ones that are missing
 
3:29 PM
so I had to write a python file to import the exposed C++, and monkey patch it so that I could import my python everywhere in the project, so that I can use his C++ pythonically
 
expose it as _MyClass and then create the wrapper MyClass
 
Basically, don't make a horrific full-metal-alchemist-chimera class, just make a thing that has boxes for both
 
everyone is always coughing :| what even causes the compulsion to cough for people?
 
Respiratory irritation or congestion, mainly
 
could you give an example of a wrapper class, please?
 
3:32 PM
I think adapter pattern might be what you're looking for
 
I can't do adaptor pattern, because the C++ functions return objects of a type defined in the C++ code. So subclassing doesn't really help
 
basically, you define a class, class HashableX(<X>): and define __hash__ and __eq__
 
I don't get it... the only time I ever feel that is after eating too many peppers
 
or alternatively
 
random gripe out of nowhere but I never understood the appeal of foo and bar
 
3:34 PM
class HashableX: def __init__(self): self.x = <X>()
 
They're short but readable, idk
I usually use variations of dingus in my personal stuff but that's the the defacto standard
 
yeah
 
@MarcusS because fubar(fouled/f***ed up beyond all recognition) -> foobar
 
from _cpp_module import _MyExposedClass

class MyExposedClass:

    def __init__(self):
        self._wrapped = _MyExposedClass()

    def method_defined_on_cpp_class(self, *args, **kwargs):
        self._wrapped.method_defined_on_cpp_class(*args, **kwargs)

    def new_method_we_add(self):
        # do something with self._wrapped
 
For me, when I look at code using foo and bar, it's no different than if someone labeled all their variables a, b, x, y, etc, with no context
 
3:35 PM
And the Baz is... uh, because it was invented by a fan of Baz Luhrman's work
 
It's not clear what each piece is supposed to represent
 
@PeterVaro that's composition, no?
 
fnord is one of my favorite metasyntactic variable
 
Yes, that's why I apologized for not knowing a good real-world example
 
@WayneWerner Haha, nice, haven't seen that one before
 
3:37 PM
Ooh, another idea for my joke language: foo bar and baz are reserved words ;D
 
after reading about it, I'm a huge fan
 
@inspectorG4dget wrapping/composing, yeah
 
so wrapping == composing ONE class?
 
@MarcusS that's roughly the point. I mean, if someone is using foo and bar in a place where it matters what they're named then that's wrong
 
@inspectorG4dget I think so -- I'm not an expert on naming though.. :P
 
3:38 PM
Yeah, I mean I understand the purpose / usage / utility
 
I once saw code that used cereal, milk, and bowl, because they were "opening" the cereal and "pouring it" into the bowl
 
@inspectorG4dget aka adapter pattern
basically it's what you do when an interface isn't what you want
 
For me I find it easier to abstract something once you have a concrete / "real" example
 
super! thanks
really? I thought adapter was subclassing
 
@MarcusS yeah, and that's the problem with monads :D
@inspectorG4dget it can be. It's not necessary, though. Nor sufficient, actually.
 
3:40 PM
ahh. Gotcha. Thank you
and now iG4 disappears
 
"What is a monad?" is a particularly effective debate-grenade
 
rbrb follks!
 
rbrb @inspectorG4dget
 
puppers are just doggos in the category of smol good boys, what's the problem?
 
Off topic: there's a free game on humble bundle right now called Dungeons 2, for those gamers of the room.
 
3:52 PM
haha
 
waiting on the merchant to accept my pament of $0
 
I thought you couldn't do that anymore?
Oh, it's the store, not the bundle
 
4:08 PM
@KevinMGranger Bow wow
 
Yeah they locked the keys down. I am tempted with that new bundle but only because Hello Neighbor looks interesting.
 
wim
 
4:23 PM
That dog knows the secret of infinite beer. We must find him.
Unfortunately all we have to offer in trade is infinite chocolate.
 
@MarcusS not really, if everyone reads Functors, Applicatives, And Monads In Pictures everyone will have the same deep understanding of the same thing :)
 
Hey, if there's missing images/broken links on SO where's the best place to point this out?
 
If the image is missing in a question, probably as a comment for that question.
 
Which image is broken?
 
4:34 PM
Neither of them are appearing.
 
Are we talking about the image that is directly under the "After you achieve this privilege, the two "leaderboard" style ads will be automatically suppressed from question pages when you are logged in." paragraph? It's loading fine for me.
Although that's the only image I see on the page, but you say "neither" so it implies you can see more than one image, so maybe whatever image is missing, I can't see it, not even as a broken image icon
 
Blame your network.
I see both images.
 
This is the one and only image I see.
 
After you achieve this privilege, the two "leaderboard" style ads will be automatically suppressed from question pages when you are logged in.
Hm ok.
The links to https://i.stack.imgur.com/6b6yZ.png and https://i.stack.imgur.com/9kupb.png don't appear for me. Interesting.
 
Oh, there's a second image under the "But what if I still want to see those ads?" section. I thought that was an actual page element.
Ok, I can see both images.
 
4:42 PM
@toonarmycaptain can you go directly to the images? If not your <somewhere between you and the images> is probably blocking it.
 
@toonarmycaptain ask on meta if you're concerned. This is the Python room, it's not really on topic here for us to debug your/SO's network.
 
also, hit F12 or whatever you need to do to open your developer console and see if you have any error messages
 
Oh true fair enough. Must be me, nothing else is malfunctioning anywhere, so that's strange. Might be employers' filter.
@WayneWerner Yeap, it states ERR connection reset
 
there you go
 
But I'm good, I just didn't know where to report such things, if they were real
 
4:55 PM
meta is where you go for bug reports. But it looks like it's just your internet filter keeping you off of imgur
that's not surprising :D
 
@WayneWerner eye roll
 
00:00 - 17:0017:00 - 00:00

« first day (2400 days earlier)      last day (2549 days later) »