« first day (1871 days earlier)      last day (3302 days later) » 
00:00 - 17:0017:00 - 00:00

17:03
cbg
Hi Adam
@davidism reload did the job, thanks again david and @poke!
> My girlfriend i get the impression that cheating me and I want to find an infection before I knew what to do.
I'm interpreting this as "I think my girlfriend is unfaithful, so I want to gather proof by infecting her computer with spyware"
So the first half of the question is asking "how do I embed an executable in an image file so I can trick someone into running it?"
DSM
DSM
17:10
Should I VTC as unclear or as too (ahem) broad?
Both are fine. I think I'll go with "unclear" myself.
@BadgerCat Why Saturday!? I’ll try to make it, but I probably can’t stay too long. Maybe till 9.
@Kevin haha I am posting that to gemsfromse :D
I’ll keep a tab open in my browser so I won’t forget though! :)
any idea what my problem is based on my stack trace?
17:13
You'd think whatever spyware OP wants to run would already be embedded in a convenient obfuscated file format. Don't let those black hats boss you around, OP. Demand a complete product.
Can't say I know anything about Django.
@BadgerCat Do I neet to know what “Toptal” is in order to attend?
hello, i have a project for school, i have to make a captive portal in python (wifi guest). what is the simplest way to do it ?
DSM
DSM
♫ don't know much about geography ♫
17:17
Reading Wikipedia article on "Captive Portal"... Wow, this sounds hard.
The phrase "Uses windows encoding" really makes me want to punch somebody. And windows I guess.
I don't know if intercepting packets is even a thing Python can do
(cue someone saying "sure it can, you just need to do pip install pyPacketInterceptor")
@poke no, just confirm that you're going :)
DSM
DSM
if (word in dictionary[topics] for topics in dictionary.keys()) <- I don't think this will do what the OP thinks it will..
@BadgerCat Done! (Oh, we’re three people already!? Amazing! xD)
17:24
Yeah, that's you, copy and me
Hey, @DSM. If you're looking to kill some time at work, I just posted a new golf answer that I could stand to shave some bytes off of.
When did set literals get introduced to Python? I have a feeling Use Python 3-styled sets in Python 2 should be "...in Python 2.6"
Or whatever version was last to not have it.
@Kevin 2.7 introduced
The question was initially tagged as Python 2.7 (well, and Python 3.x) though
Maybe OP typed in "Python 2." and then clicked the first thing without looking to confirm that it said "Python 2.6"
17:31
@poke feel free to invite any developers you want, drinks are on me :)
ohhh :o How come? Did you win the lottery? ^^
no, Toptal pays for them, but tell them to confirm on the website
I see :)
@MorganThrapp Old, perhaps, but we get frequent issues with field overflow because the hairbrains who designed one of our systems coerced dates to String(6), and sometimes people type 4-digit years.
@AdamSmith That sounds like our system.
17:34
heading home, rbrb
DSM
DSM
@MorganThrapp: can you assume that 'cdCD' are the only characters?
@DSM Yes.
DSM
DSM
Then m.isupper() is m in 'CD', p=='D' is p>'C', and w=='c' is w<'d'.
Oh, nice. Thanks! I always forget that strings are orderable.
DSM
DSM
Actually, m in 'CD' is also m>='C' which is m>'B'.
17:37
Nice :-)
Trying to figure out which of "in" and "is" and "and" are parts of the code. Darn this intuitive syntax!
DSM
DSM
Haha~!
I usually use dict() for empty dictionaries. I was mainly thinking of the result being {"A","B","C"} when I print it instead of set(["A","B","C"])O.rka 3 mins ago
I guess the answer is no
I'm impressed by the commenter before that, who psychically guessed that OP wanted the print representation of sets to look a certain way.
They probably spent too much time with Python 2
DSM
DSM
17:39
(0,2)[d] can become d*2. And then (1,3)[d] can become d*2+1; don't think you'd win if you tried to reuse the d*2 bit.
@vaultah I still do that. I use dict() most of the time rather than remember if {} is an empty dict or an empty set.
DSM
DSM
I've said this a billion times, but I really think we should have switched {:} to be the empty dict in Python 3.
Maybe for Python 4.
Can (3,2)[d] be d+2?
Nope, wait. Nevermind.
DSM
DSM
17:43
3-d.
But we should be able to save parentheses by combining the c and d math (I've only just noticed that your tuples are only used as intermediates).
Well, you have now saved me 26 bytes. :) Thanks!
DSM
DSM
(d*2,d*2+1)[c] is simply d*2+c.
Yeah, I just saw that.
savage optimization right there
Would (3-d,1-d)[c] be 1+c*2-d?
17:47
Generally, you can derive the equation by taking y = mx+b and substituting in x=0, y=3-d followed by x=1, y=1-d and solving for m and b.
It's easier when the tuples don't have variables in them.
DSM
DSM
3-d-2*c, I think.
Who knows whether or not we've preserved correctness during all this.. I stopped rerunning the code a while back. :-)
The change to m<'B' seem to have broken it. :/
That's because I have the check backwards.
3-d = m*0 + b
b = 3-d
1-d = m*1 + b
1-d = m + 3 - d
1 = m+3
m = -2
y = -2x + 3 - d
It still doesn't work, though. :/
So yeah, 3-d-2*c.
DSM
DSM
17:50
@MorganThrapp: bisect to find the last working version..
@DSM It was just that check. I changed it back to [l,u][m.isupper()]+=m and it works fine.
DSM
DSM
!? That makes no sense to me.
.. oops. :-)
Nov 18 at 17:08, by Kevin
I'll put it right under "during road trips as a child, you imagined a little man running along side the car and jumping over obstacles, and/or sliding on top of power lines"
DSM
DSM
>>> [ord(c) for c in 'cdCD']
[99, 100, 67, 68]
I found another dozen people that agree that this is a thing.
DSM
DSM
17:54
The comparison needs to go the other way, because uppercase characters come first. So m.isupper() is m<'E'.
@Kevin Huh. Yeah, totally though it was just me.
@DSM Ahhh, right. Of course.
DSM
DSM
>>> [(m, m.isupper(), m<'E') for m in 'cdCD']
[('c', False, False), ('d', False, False), ('C', True, True), ('D', True, True)]
@MorganThrapp: do we pass again?
Perfect. I'm down to 115. I would love to get to under 100, but I don't think it's gonna happen.
Yeah.
DSM
DSM
.. but wait, doesn't this mean that our logic before is broken too?
I'm not sure, the test cases are correct.
No, because they're already sorted into upper/lower case.
So we're not comparing outside of the case any more.
DSM
DSM
17:57
(whew)
18:07
So I got a little hooked by this closed question on Friday and had a bit too much fun with it
Yeah, I think 115 might be the floor. I've been staring at this and changing things, but I can't find a single improvement.
this is what happens when they make me come back to work the day after Thanksgiving, but I don't actually have much work to do
DSM
DSM
@AdamSmith: wow.
theres so many little things in this guys code that bother me way more than it probably should
DSM
DSM
@MorganThrapp: I was thinking of trying the precomputation approach again but using the new logic, but you're so close to the minimum number of characters for a dereference ([x]) that there's not much room to play. :-/
18:13
I wonder if there's some math I could do with the ordinal values of the letters to avoid assigning d and c.
Nah, it ends up longer. :/
cbg
DSM
DSM
I think it turned out pretty well despite that, though. You're pretty much at bare metal.
I tried doing this:
l=[]
u=[]
a=b=0
for m in input():[l,u][m<'E']+=ord(m),
for p,w in zip(u,l):d=p-67;c=w-99;b+=d*2+c;a+=3-d-2*c
print(b,a)
But it's 4 longer. :/
DSM
DSM
Does +=ord(m) even work?
It doesn't, but that's what the , is for.
DSM
DSM
18:20
And this is why I never liked the dangling comma syntax. I just can't see 'em. :-)
Heheh, yeah. It's tricksy.
DSM
DSM
Lunchtime rhubarb for all.
jw, why would a list+=str work but list = list + str not?
Because += for a list is a shortcut to .extend.
so += is not actually equivalent to = self + other?
i always thought that python always just read it like that
18:26
@RNar It is. Usually.
huh. interesting....
Well, actually it still is in this case, it just converts the second argument to a list.
a = [1, 2, 3, 4] + [5]
Is the same as
a = [1, 2, 3, 4]
a += 5
Because the += converts 5 to a list before it adds it.
I guessed as much since i knew list1+list2 is valid, it just seems strange that it would implicitly convert it for += but not for a simple addition.
>>> a = [1, 2, 3, 4]
>>> a += 5
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: 'int' object is not iterable
Oh yeah. Wow. Duh. Brain fart. :P
18:31
I'm guessing you mean a += 5, which does work and demonstrates how += differs from +
so it probably does something like a = [1,2,3,4] + list(5)?
Pretend those are all strings. Or tuples.
>>> a = [1,2,3,4]
>>> a += 5,
>>>
>>> a = [1,2,3,4]
>>> a + (5,)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: can only concatenate list (not "tuple") to list
Yeah, that.
>>> u = []
>>> u+='word'
>>> u
['w', 'o', 'r', 'd']
18:33
from the "...is not iterable" error, I assume it's doing something like a = [1,2,3,4]; for item in (5,): a.append(item)
That sounds right.
Or possibly something with extend
Five days left on my library book and 200 pages to read. I need to shift a gear up from "causal amble".
do you happen to know if theres a special method that is explicitly for += operator rather than the normal + calling __add__?
IIRC, it's __iadd__
the "i" stands for "in place"
ah yeah I just found that too
18:40
I keep this list of dunder methods bookmarked, because the official docs don't have super great search capability
thats way better than the official docs, thanks
dunder took me far longer to figure out than I'd care to admit.
Nov 6 '14 at 20:20, by Kevin
Remember the words of AC/DC: "dirty deeds: dunder [methods are] cheap"
Wow. Amazon gave me back 99 cents because something I bought last week was reduced by 99 cents…
That’s 2% off!
Yay me!
Good that I have this new fortune. Because if Logitech support turns out to be unwilling to help me fix my ~6 year old mouse, I might have to buy a new one… :(
18:55
I need to get a new mouse soon too.
My razor naga is getting a little old. It sometimes double clicks randomly.
Hardware chat. I asked for a drawing tablet for Christmas, because all of you failed to persuade me not to.
I really liked this mouse though… :(
Which mouse?
It’s a V450 Nano Laser Mouse, old but nice and small.
@Kevin I’m pretty sure I was on the side of getting one all the time.
I found a used one for ~$45 on eBay. I just hope it comes with drivers and the usb cable and not covered in honey or bundled with a feral cat.
DSM
DSM
18:59
I didn't know Kevin drew.
get the drivers online
don’t trust drivers on a cd!
The picture on the auction seemed to have all the accessories, but there may have been a "not representative of the actual product" buried in the eight paragraphs of description
@DSM I haven't since high school.
Oct 9 at 12:51, by Kevin
I have an irrational urge to get a drawing tablet even though I don't draw.
As long as it wasn’t a “you’re actually buying two dead rats instead of a drawing tablet”, you will be fine.
You don’t need to draw to justify a drawing tablet for yourself…
I'm predominantly embarrassed of any of my own creative endeavors. I'm hoping that being able to store my work in a secure digital format will be better compared to wedging a notebook under my mattress, in terms of suppressing my urge to bury everything forever where no one will find it.
lol
19:04
I've got a Wacom, really like it.
because we all know that things being digital makes it harder for the internet to get to know it.
Good point, better add a laptop to my wishlist so I can have an airgapped machine.
But what if it talks to my web-enabled laptop using ultrasonic frequencies???
DSM
DSM
Interesting.
Yeah although I'd like a smidgen more proof of these capabilities.
I'd be happy with "I put a third computer in between the two infected ones, and here is a graph of the ultrasonic sound its mic picked up"
here is a more recent article taking the viewpoint "Ruiu and his supporters [saw] the picture they wanted to see"
19:22
We should have an sopython creative room to go with our gaming room. Kevin can show his work and we can critique him.
I can show my photographs but you're banned from critiquing unless it's good critiquing.
And of course DSM can share his fanfic...graphs...
I don't know anything about photography except the rule of thirds.
@Kevin "One third of everything is shit?"
I thought that was the rule of nine-tenths.
My critique will consist entirely of "important compositional elements are positioned at the intersection of horizontal and vertical lines 33% from the edge of the picture: [✓]"
DSM
DSM
19:29
@Ffisegydd: hey, I've heard your criticism of my pie charts when you think I'm not listening.. ;_;
Oh I knew you were listening.
DSM
DSM
";_;"* 3
Jul 7 at 9:01, by Ffisegydd
Some would call what he did an abomination, a sin against the natural order of things, but I'm sure with enough repentance he can be forgiven.
D-:
Actually looking at that quote, say anyone seen Bobert lately?
Last seen 14 days ago.
I haven't seen him but his SO account says "last seen 3 hours ago" which means he's probably alive
He did say he's been busy with the move/new job.
Ooh my library upgraded servers and for some reason they gave me an additional seven days of checkout time for The Long War. I guess I can downshift back to "casual amble".
DSM
DSM
A visitor is one who visits. Is there a form of "visit" meaning "the place visited"?
Huh? Isn't it just visited? Can you give an example sentance?
DSM
DSM
19:39
The employer employed the employee. The visitor visited the visit[??].
3
Q: What is a generic word for a person being visited?

UxonithI am looking for a generic word for a person who is being visited. The opposite of visitor according to thesaurus.com is host. That's not what I'm looking for. A couple examples: an employee being visited by a guest; a student being visited by their parent at school. I can't think of anything...

TL;DR visitee.
I don't know if that's an "official" word but I think I'd figure out its meaning from context.
DSM
DSM
I've half a mind to use "Visigoths" except the notes I'm writing might eventually be seen by a client.
Oh no, I've dropped to second place in the "top flask answerers for the last 30 days". My year long streak is over.
19:42
It sounds like you could also used visited.
DSM
DSM
You had an excellent run. Time to change frameworks, I guess.
The visitor visited the visited.
Though that implies that there are multiple people being visited.
@davidism The king is dead! Long live the king!
Although I rather like "Smite the unbeliever with cunning arguments" better
That's the motto of any regular question answerer whether they know it or not
19:45
If you don't mind dropping into Italian, you could use visiti.
DSM
DSM
va bene!
Or if the visitee is a visitor themselves, they could be a visitant.
Also, I'm getting some serious semantic satiation with the word visit and it's various forms right now.
DSM
DSM
I was toying with "visitand", cf. operator/operand.
websockets package vs websocket-client package? Any opinions on which one is better?
I don't know what either of those are. I choose the first one, because I have a hard time typing hyphens without looking at the keyboard.
19:53
lmao
It adds up. That's like a 1% reduction in WPM.
sure does
20:13
Hey, @DSM. I just saved another 5 bytes. :D
DSM
DSM
Very nice! I wasn't even looking in that direction for savings.
Yeah, I just realized that if I'm indexing into a list, why build the list on the fly.
I wish tuples supported item assignment, because I'd love to remove the opening a closing brackets on x.
wim
wim
I wish there was a way to filter stackoverflow.com/questions based on asker's rep
I don't want to see questions from users with 1 rep, they are 99% of the time crap
cbg all! :)
20:21
I am periodically tempted to write a user script to hide 1 rep questions, but it's not trivial to implement
Especially if you don't want the "1 question with new activity" banner to appear if that question is a 1 rep question
why don' you do it after the new question refresh
and it just hides all 1 rep user questions
Easier said than done I think
hmmm if you are looking to simply set display: None
is that good enough?
Ok, but how do you tell that the question that has not yet been displayed will be a 1 rep question if you click the "1 question with new activity" banner? How do you prevent that banner from being displayed in the first place? If it shows "2 questions with new activity" and one of them is a 1 rep question and one isn't, how do you display the banner but decrement the number?
@Kevin That is a silly banner. Let's not click it.
20:30
j kQuery.
yeah, it wouldn't be perfect. If something runs when the page loads to inject itself, you would probably see something at first, but it would disappear with the logic you implement.
Complaint! Programming teachers should stop having their students write to text files to show how to serialize data.
Overruled.
Judge Meowsalot
Did you get a ping, idjaw?
20:39
yes...yes I did
Haha! Yes!
what is this witchcraft you are performing
It's black magic.
[](http://@idjaw).
user559633
20:42
'Morgan le Faye, Morgen, Morgaine, Morgain, Morgana, Morganna, Morgant, Morgane, Morgne, Morge, Morgue, and other names,'
user559633
wow, that's a really long AKA list
I don't get the 'Morgue' one
Sounds like a goth phase.
How did you find out about that. <.< >.>
"Don't call me Morgan in front of my cabal, it's 'Morgue' now. And don't interrupt our seances with pizza rolls"
4
user559633
20:45
user559633
what's going on here
howdy fellow Pythonistas!
She appears to be lifting the hem of one of her many garments. I'm positively scandalized.
Scandalous! I can see that woman's ankles!
As a sort-of-youth, I feel myself becoming corrupted.
Let's go to old Potter's Field and talk disrespectfully of our elders instead of practicing hymns.
user559633
20:48
Not only that, but Launcelot? He was named lance-a-lot because he was mad hesh with the lance, yo
I wanted to get some of your feedback on if this is a reasonable idea or not. I have a Django project that I now want to retro-fit with a real-time chat feature. I realize there are a bunch of options here: pypi.python.org/pypi/django-socketio however, some have not been updated in a while, whereas others are not documented well. On the other hand, I've read/heard that Node.js is a good option for handling chat.
So my question: is it reasonable to have a Django + Node.js apps running side by side?
Spell checker wasn't invented until 1794, give them a break.
user559633
history is really stupid in its names. almost as bad as star wars. looking forward to Darth Badsman fighting against YOLO
Like Kashyyyk with 3 y's....wtf.
@DirtyPenguin I feel like this has been asked before and I feel like the answer was "yes, you can get different frameworks to play nicely together without a whole lot of work"
Although knowing nothing of frameworks myself, I can't give any more detail.
20:51
@Kevin thanks for your feedback... yeah, i figured it should be okay..
user559633
@DirtyPenguin Just keep in mind that Python objects only exist in the process (and don't try to work around the white lie in this sentence).
:D
Good evening, fine fellows.
Hey up mucka.
Wow, that's quite an "appearance" she's making there.
Got a viva date yet?
20:55
hey up Fizzy
viva is proving painful to organise. I have to have two externals because I've got a job at the Uni now (I am to be "Lecturer of Engineering Science and Mathematics")
So - no is the answer. Probs early Feb. Bit of an arse - I was hoping for before Christmas
c'est la vie
@tristan danke :)
OTOH - I have a job now - so there's that
@JRich grats on the job! And yeah my viva took a while to organise.
Schedule it for valentine's day and bring chocolate for the judges.
Nice @Kevin. "Congratulations, Snape. Now, about this harrassment charge..."
user559633
20:58
@DirtyPenguin No problem at all. If you need to share data between a django app and a flask/nodejs/java/scheme app, it's generally easiest to use an intermediary data store, such as redis/nosql-of-the-week/sql.
You'll have to determine for yourself how much suggestive winking is appropriate.
user559633
Your alternative path is foreign function interfaces, which I use in some of my code, and is definitely viable, just harder.
If they ask if you need to use the eye wash station, tone it down.
just snorted into coffee in public
user559633
20:59
@JRichardSnape hey, congrats. i'd feel privileged to attend one of your lectures
DSM
DSM
.. I think I chose the wrong moment to return.
The foreign function strategy, a.k.a. FFS
@tristan cool, excellent points. I will go and digest.
@DSM how so?
user559633
@DirtyPenguin :) come back and share what you end up with
DSM
DSM
21:01
The first few phrases I read were "Valentine's day", "harassment charge", "suggestive winking", and "eyewash station".
user559633
foreign function interfaces with python and java can quickly turn into drinking function interfaces
I once watched a video about foreign function interfaces by some utter brah-type guy. You could tell we wore a popped collar whenever he got the chance.
will do :)
I just imagined him saying "Do you even interface brah?"
21:03
@Ffisegydd @tristan thanks both. I'm quite chuffed. As for attending a lecture - a pub would be preferable - feel free to look me up next time you swing through the UK. TBH I have been known to lecture people in the pub...
@tristan I love your Keen avatar... John Carmack is one of my idols
user559633
@Ffisegydd Ugh, I think I know the type. Backwards hat, real brogrammer idiot type.
Bah, someone's nitpicking my answer. "Well this unmentioned edge case throws an exception." Yes, as well it should -- that should never be given to my function!
grumbles
@tristan yeah exactly. Kind of guy that just says "Screw this I'm going to be a nomadic programmer." and travels the world with his Mac.
Say "It's exceptional" in the most patronising way you can ;)
21:04
Not sure if my coworker is a brogrammer. He goes to the gym and has a successful social life.
user559633
@JRichardSnape Haha, drinking and arguing about programming. My favorite pasttime.
DSM
DSM
Are those the signs? I go to the gym, and since I don't like people much, and accordingly don't interact with them, I guess you could say my social life is successful.
user559633
@Ffisegydd Blech, gross.
that is a wonderful definition of a successful social life
@JRichardSnape By the same person who chided if isinstance(el, (some, types, here)) as being less pythonic than try: doing_something_with(el) except TypeError: not_those_types()
21:05
If you'd consider "success" as "having people you can insult horrendously but they still talk to you" then I'd consider that I will die alone.
success is inherently subjective
If I placed all the coders I know on a spectrum, he'd be closest to "neurotypical". None of you qualify because normal people don't use chat rooms ;-)
@AdamSmith Sounds like someone's got it in for you!
the older I get, the less I bow to so-called pythonic idioms. Screw you: I'm looking for a float or an int. If you give me a class MyNumber(float, int), then you're wrong.
*someone else
21:07
does anyone know where Django fits in the list of software stacks enumerated here: en.wikipedia.org/wiki/Solution_stack
We all have it in for Adam, it's what binds us together closer than blood.
@Kevin proudly neuro-atypical
user559633
@Kevin Oh.. Wait, chat room disqualifies from "normie?"
@Ffisegydd tempted to star to see how many people agree with it on the star board....
It's circumstantial evidence. Normies are too busy talking IRL to type words to Internet people.
21:08
raise ScrewYouIWantAFloatException
assert type(x) is float, "and I don't care if you think I'm intolerant"
user559633
I actually thought today about going into Sales instead of staying in Engineering. Easier promotion track, no need to constantly be keeping up on the skills.
vomits on his own shoes
@tristan You did what!!!!
vomits on Richard Snapes shoes
If I was in sales, my strategy would be to acquire a small group of repeat customers of lonely old rich people. I listen to stories about the old days and they buy a salad shooter.
user559633
21:11
# be pythonic
for _m in int, float, str:
  try:
    _m('a')
  except:
    continue
4
I am now picturing Kevin hawking his wares in a battered leather suitcase door to door circa 1953
user559633
@JRichardSnape Well, I mean, I'll never be as smart as most of the regulars in here, my liver can't take drinking away the self-hatred of marketing, and I notably can't draw, so Sales it is!
"For some reason these encyclopedia sets aren't selling very well!" looks up marketing strategies on Wikipedia
9
user559633
Addendum: nor as funny as Kevin
user559633
Also, my poke fanfiction is only pulling in dozens of dollars a month.
21:13
I value you, tristan. In an unquantifiable way.
I'd have thought the number of people googling "fanfic poke" was high enough.
> Just remember every time you look up at the moon, I too will be looking at a moon. Not the same moon, obviously, that’s impossible.
@JRichardSnape I think the poke they're looking for is slightly different.
user559633
'did you mean "pokémon fanfiction"?' asks Google. "NO," Tristan says, in a tone too sharp and a volume too loud to be appropriate for the situation.
7
@MorganThrapp It's all about the SEO
21:17
The real question is what S stands for.
user559633
SEO - Snakeoil Extraction Optimization
Oh god. Our network engineer just came into my office with a cable I installed at a remote location not six months ago that looks like it's been through a meat grinder -- nay, a gauntlet of meat grinders
I have no idea what they're doing to it at that site, but they should stop.
user559633
@AdamSmith Well, the cable was in his hands, so the pain is over for it. Started for you. Over for it.
@tristan oh I'm not into the fire on this. It was hung nicely when I installed it. One of our techs might have come in and messed with it, but that's not my issue
Anyone know of a good quick way to make a TCP socket that can be connected to that will just basically output some basic text, delimited by \r?
user559633
21:29
@corvid python has a socket server class
w.r.t this famous blog post, one of the front runners for our new POS software haughtily claims that they threw away all their old code and started from scratch when they converted from DOS to Windows way back when
This has captivated the owners and most of the tech department (of which I am half of our programming talent)
Our current software vendor has made the opposite mistake, and still integrates with their legacy DOS applications
@tristan But, how would you connect it correctly? What is the port and host it should bind to?
@AdamSmith An acquaintance of mine often makes a similar boast. I remain sceptical as to how they would ever get anything out of the door.
user559633
IDK. I've been on a tear-down-and-green-field project and the end result was worth it.
user559633
21:35
"Not re-using code" isn't the same as "not learning lessons"
Fair 'nuff. It's been so long since I coded for a real pro environment, there are probs instances where it's worth it. I guess it depends how big the project is too.
Yeah, I've greenfielded two internal tools here and believe me, it was well worth it.
DSM
DSM
"greenfield"?
I presume this to mean "start from scratch"
21:39
While you're here @DSM - do you use numexpr with pandas? A colleague of mine had very nasty behaviour with it and I wondered if you had experience. Basically the result of *0.0 giving different results apparently randomly.
@tristan Oh that works perfectly, thank you
DSM
DSM
@JRichardSnape: not generally, no. But I'd be willing to believe there was a bug. Did he mcve it?
@DSM Haha - no. I wasted half a day tracking it instead. I got it down to a manageable example. Wondering whether to MCVE and report as a bug, so was just putting out feelers whether there were regular users about. He's happy because I just put him back on regular numpy so no urgency.
He hadn't installed numexpr knowingly anyway.
I'll probably Do The Right Thing and report it if I can get a repeatable small example. Was hoping someone would say "Oh, yeah, it does that - it's well known". Ho hum.
user559633
@corvid heh, not sure why someone starred this, but no worries mate :)
22:30
Testing with async is pretty confusing
user559633
yeah. i typically just stitch back together that it worked by loglines
23:46
cbg guys!
Trying to write a neural network in python and got a little stuck at this python numpy array making syntax: self.theta = [np.array((self.nodeSize[i+1]-1, self.nodeSize[i]) for i in range(len(self.nodeSize)))] - I know it's pretty ugly but I'm not sure what can do the job
For example, if self.nodeSize = [3,3,3], then I want to make a list of numpy arrays called theta with the following structure: self.theta = [[2x3 matrix], [2x3 matrix]]
What turned out instead was this when I printed self.theta: [array(<generator object <genexpr> at 0x103519bd0>, dtype=object)] - if anyone could give me some pointers on how to write this i'd be forever grateful :) thanks!
I'm not familiar with numpy so I don't know what np.array is expecting, but it looks like you should either do [np.array([(self.nodeSize[i+1]-1, self.nodeSize[i]) for i in ...])] or [np.array((self.nodeSize[i+1]-1, self.nodeSize[i])) for i in...]
the former will give you a list of a single np.array which is passed a list of a number of tuples
the latter will give you a list of np.arrays, each passed the tuple (self.nodeSize[i+1]-1, self.nodeSize[i])
@OneRaynyDay I suspect you need the latter.
00:00 - 17:0017:00 - 00:00

« first day (1871 days earlier)      last day (3302 days later) »