« first day (2591 days earlier)      last day (2364 days later) » 

12:01 AM
Well, for a start brokenfoot says use netstat to check if it's listening, and you ignore that and say you don't know what to do
 
Fair enough. I tried entering netset command prompt. Loads of ports kept appearing.
I googled it and found out what it did. Then I released I do not have the foggiest idea what I am supposed to find with it.
 
From his comment: "You can use netstat on windows to check if server is listening on port 5000"
That's what you're supposed to find with it
Do you understand that if you don't answer people or even read what they say to help you that you might not get much of a response?
 
Ok. but I tried. There are a constant income of addresses none at port 5000. Second my server works on port 8000.
 
You tried that and you answered accordingly? Or did you just say that you didn't know what to do?
A hint: "@brokenfoot I'm not quite sure what to do."
 
12:16 AM
So what I should do is get rid of the last comment. Write down exactly what I tried and the output. Then say I don't have a clue if what I am doing in cmd is even correct.
 
12:51 AM
I apologize for the picture, but this is becoming quite stressful why is my numbers not formatting correctly when I display them in a text field in a tkinter canvas?
it clearly formats as intended when printed. This is so strange..
 
Oops sorry.
 
1:35 AM
 
 
3 hours later…
4:42 AM
late night cabbage
 
 
3 hours later…
7:37 AM
@SebastianNielsen Tkinter isn't using a monospace font. That's why you don't use spaces to align things.
 
 
2 hours later…
9:32 AM
cbg
question
When I do this
In [26]: next_val = {'isCat':True,'miceCaught':0,'name':'Zophie','felineIQ':None}
In [27]: js_du = json.dumps(next_val)

In [28]: js_du
Out[28]: '{"isCat": true, "miceCaught": 0, "name": "Zophie", "felineIQ": null}'
I have the aboved result
when I do this
In [16]: json_str = '{"name" : "Zophie","isCat" : true,"miceCaught":0}'


In [18]: js_lo = json.dumps(json_str)

In [19]: js_lo
Out[19]: '"{\\"name\\" : \\"Zophie\\",\\"isCat\\" : true,\\"miceCaught\\":0}"'
I understand the json.dumps principle that turns a list or anything into a string
but how come that when you change this " to this ', it gives such a difference?
Why do I have this \\? What does it mean?
 
@AndyK It's the escaped escape character
 
@AshishNitinPatil ok
 
You are dumping a string as json
Not a dictionary
And since json only has double quotes for string, any other double quotes (within the same string) get escaped
js_lo is a dumped string, whereas js_du is an object
 
@AshishNitinPatil fair enough. that's a very nice explanation
going back to my book. Thanks @AshishNitinPatil
 
json.dumps takes an object as input, so you will have to give it a dictionary / list. You can give it a string, but then the output is just a string, not the object that you might expect.
Worst case - json.dumps(json.loads(js_lo))
Expanding for clarity, the whole purpose of json.dumps is to give you a string that you can write to a file, which would be considered as valid json.
(since you can't write objects to a file :-p)
 
10:08 AM
ok
very good
 
10:48 AM
Morning.
 
jjj
11:37 AM
morning cabbage
suppose I have a function which returns a number. I want a sum of (say) 100 those numbers. Usually I'd do this likr this: count = 0 for i in range(100): count += function() Is there a better way?
 
MGE
@AnttiHaapala yes, I know but I need to use the same IV for cryp/decrypt same message, right?
I need to use different IV for each message, but the same for enc/dec the same message
 
jjj
(sorry, I wanted to make it look nice, but it seems I cant type)
 
11:59 AM
Cabbage
@jjj Yes, there is a slightly better way. You can use the built-in sum function.
count = sum(function() for i in range(100))
 
jjj
:/ damn, I feel so stupid now. Thank you very much
 
There's no need to feel stupid for something like that.
 
jjj
:) yeaah. Thank you
 
@MGE Correct. The IV is normally stored with the enciphered message so that you can easily access it when deciphering. I suspect you're having problems from not having a clear understanding of the difference between bytes and text (Unicode) strings. In Python 2, that distinction wasn't very clear, but in Python 3 it is.
 
MGE
@PM2Ring that was the reason of storing the IV with the cipertext in the ddbb
anyway I will read about it, its very interesting
 
12:14 PM
@MGE Good idea. :) If you've been using Python 2 and only recently migrated to Python 3 the bytes vs text thing can be a little confusing at first. But if you play around with it a bit, and write little programs to test that your understanding is correct it will eventually "click", and you will wonder how you managed to survive in Python 2 without writing code that did the wrong thing.
And then the scary realization will dawn that you probably did write Python 2 code that did the wrong thing and it only worked correctly by accident. :)
 
MGE
haha, yes, I'm playing with python 3. Seems that in py2 its a nightmare.
 
I enjoyed this somewhat relevant post, though it focuses on refuting claims that python 3's behaviour is wrong
cbg
 
Most of the Unicode questions on SO are caused by not having a good understanding of bytes vs strings. Especially from people who started in Python 2 and didn't need to handle "proper" Unicode. So their broken code works ok on pure ASCII text, or text that only uses characters found in the Latin-1 character set, but which falls over on anything outside that range.
@AndrasDeak That looks familiar.
 
well it was linked here a while back, so I don't find that all too surprising ;)
everything I know about python originates here, so... :D
 
jjj
12:34 PM
Btw. how does the sum function know to what it should bind the i variable in such statement as given by PM 2Ring above? (sum(function() for i in range(100))? In most python statements you are supposed to explicitly say by what your variable is being binded (or not?)
 
I got a comment on my code golf answer for not converting the Numpy array to a string. So I asked the OP about it and he said it's fine. Yay! OTOH, if I make the n arg too big, the array gets printed in the abbreviated format, and I do feel slightly guilty about that. But only slightly. :)
@jjj Well, in that code you aren't using i, so it doesn't matter. In fact, it's a common convention to write it like sum(function() for _ in range(100)) to indicate that the loop index is unused.
 
the expression inside the sum is a generator expression where you can spare a pair of parentheses
the object inside the sum is actually (function() for i in range(100))
so if you want to know how that works, read about generator expressions
 
jjj
Ok, I will
 
(the only thing sum() does is add all the items that the generator expression yields; it never meets i)
you could say there's less that meets the i
 
jjj
:)
 
12:38 PM
You could also do sum([function() for _ in range(100)]), but that's less efficient because it makes a list of 100 items, adds them up, and then throws the list away.
 
(and that's a list comprehension rather than a generator expression)
 
jjj
12:58 PM
I get that, I just don't know how (an why) such a statement translates to (more or less): call function() 100 times, and collect results. Somehow it seems much more obscure than, say [i**2 for i in range(100)]
 
why? what you have there says "iterate i over range(100), store i**2 in each iteration"
wheres the other says "iterate i over range(100), store function() in each iteration"
or "iterate _ over range(100), store function() in each iteration" because _ is a valid identifier, it's just a variable
 
@jjj You didn't show us what function does. I just created a generator expression that does the equivalent of your code. A more normal example would be sum(function(i) for i in range(100))
 
jjj
So maybe my problem was that function() can be somehow unrelated to i or _. My original function was something like: 2 + random.choice(range(20)). It just seemed odd for me that, you don't need another parameter for sum(). But Andras explanation (second line to be exact :) ) makes it much more clear, thnks you two!
 
no problem
Huh, np.fromstring can't conveniently read complex arrays. I'll have to investigate to see if I can beat it into submission
 
Numbers are not formatting correctly in tkinter, for instance this:
        t1 = "År {}: {:25d}".format(2015, 41231226098)
        # Will output
        # "2015:                 444432595"

But it'll get formattet incorrectly when written to a tkinter canvas textfield.
My question: stackoverflow.com/questions/47372698/…
 
1:11 PM
How odd. I got 2 upvotes on a year old question today. Maybe it's helped a couple of people who are doing the same homework. stackoverflow.com/a/40401834/4014959
 
OK, np.loadtxt(StringIO(mystring),dtype=np.complex128) works
 
@Bjango Did you see the comment by furas? See what happens when you use a monospaced font.
 
I am trying that right now
 
@Bjango Also note that, as the docs mention "By default, the text is centered on this position."
 
A monospaced font like consolas solved the problem, and yes I am already using: "anchor='w'"
@PM2Ring Do you think that I should delete the question?
There is only two comments.
 
1:21 PM
@Bjango No, leave it. It may be helpful to a future reader. You could even write a proper answer with a MCVE.
 
okay
 
Sorry, I didn't notice that you'd specified anchor='w' since I was too lazy to scroll that code block horizontally.
FWIW, I probably would have answered that question if I had seen it. There weren't many questions worth answering yesterday. But I didn't see it because you didn't use the tag.
 
 
1 hour later…
2:31 PM
Pure Python beats Pandas, yet again. :punches air: stackoverflow.com/questions/47377522/… A nice way to crack 2**15 rep. :)
 
2:48 PM
@Xaser I've implemented the Myrvold-Ruskey permutation ranking & unranking algorithms in Python, first with recursive code, which I then converted to iterative. I have to admit it is very fast. However, I was timing it against my full lexicographic code which correctly ranks & unranks general strings which may contain repeated items, not simple range(n) sequences. For sequence length 8, Myrvold-Ruskey was about 20 times faster in unranking and ranking all 40320 permutations.
Of course, my older code also has the extra overhead of transforming between strings and lists of integers, and it's not particularly optimized. Eg it makes lots of factorial calls which could be cached.
 
3:22 PM
cool! there's an implementation on rosetta code as well :)
if you want to compare your implementation with theirs
btw, do you know numpy well?
I'm currently struggling to get this answer to work for 2d arrays, taking ranks rowwise
45
Q: Rank items in an array using Python/NumPy

joshayersI have an array of numbers and I'd like to create another array that represents the rank of each item in the first array. I'm using Python and NumPy. For example: array = [4,2,7,1] ranks = [2,1,3,0] Here's the best method I've come up with: array = numpy.array([4,2,7,1]) temp = array.argsor...

 
3:35 PM
@Xaser I know a bit of Numpy, but my knowledge is rather patchy.
 
ok nvm, then ;)
 
work for 2d arrays how?
pass an axis to argsort
 
argsort is not the problem, the statement that uses left hand side indexing is
 
ranks[:,temp]
no, wait
 
yeah..^^
 
3:37 PM
I'll take a closer look
 
thanks
 
@Xaser Did you see k.rooijers answer "When dealing with 2D (or higher dimensional) arrays, be sure to pass an axis argument to argsort to order over the correct axis."
 
@Xaser I don't think you can generalize that approach easily, so use argsort twice instead
In [50]: array = [4,2,7,1]

In [51]: np.argsort(array)
Out[51]: array([3, 1, 0, 2])

In [52]: np.argsort(np.argsort(array))
Out[52]: array([2, 1, 3, 0])
1d example of OP, and this one generalizes to 2d ^
it's less efficient in 1d, but much more straightforward in 2d
 
yeah, not really a fan of sorting twice, as I'm looking to keep my machine learning algo as efficient as possible, however it's probably better than using apply_over_axis anyway.
 
you'd somehow have to construct 2d array indices from the output of argsort otherwise, and I'd rather not do that :)
 
3:41 PM
maybe scipy rankdata function is also worth looking at
 
if this is a bottleneck, then yes, doing more work or something like that ^ can help
perhaps you can get away with incrementing each index in order to get linear indices
 
maybe
thanks!
 
In [67]: n = 3
In [68]: A = np.random.rand(n,n)
In [69]: inds = A.argsort(axis=1)
In [70]: ranks = np.empty((n,n),dtype=np.int64)
In [71]: values = np.tile(np.arange(n),n)
In [72]: ranks.ravel()[(inds + n*np.arange(n)[:,None]).ravel()] = values
In [73]: ranks
Out[73]:
array([[1, 2, 0],
       [0, 2, 1],
       [1, 0, 2]])

In [74]: A[0,ranks[0,:]]
Out[74]: array([ 0.77639259,  0.08265062,  0.28126761])

In [75]: A[1,ranks[1,:]]
Out[75]: array([ 0.16534048,  0.23053424,  0.89237583])

In [76]: A[2,ranks[2,:]]
something like that
np.array_equal(ranks,A.argsort(axis=1).argsort(axis=1)) says True so it's probably OK
 
thanks, I'll take it into consideration should the double argsort be problematic. right now it's more readable though
 
yup :)
 
3:55 PM
recbg
 
4:11 PM
cbg
 
too broad stackoverflow.com/questions/47378470/… Originally also tagged with Python.
 
done
 
4:23 PM
Thanks. That OP is a sneaky one. They deleted it after my earlier comments, so I thought it was a closed issue. But they edited it to make it worse & undeleted.
 
Hello, everyone! Can I please ask a quick question about differentiating a convolution?
Maybe it's easy, but I'm totally stuck and too ashamed to post on SO :D
 
cv done...
 
numerically or on paper?
if on paper, don't even think about posting on SO :P
 
tells something... I opened the first page of links and there was actually 3 questions that I didn't cv and dv.
 
there's math.SE and mathoverflow.com for that
 
4:32 PM
I know, but that's also programming related. I've got the convolution function defined like this, using scipy.sigtools.fftconvolve. I'm trying to convolute (n by a by b) image with p (c by d) kernels, which would result in an (np by (a-c+1) by (b-d+1)) output
Dang, the indentation's off(
 
see the second pinned post ->
thanks
 
Just a second...
 
... one of those I didn't cv because I couldn't. So I just dv'd it :D
 
def conv(Im, kernels):
    n, a, b = Im.shape
    p, c, d = kernels.shape

    results = np.zeros((n*p, a-c+1, b-d+1))

    for i, kern in enumerate(kernels):
        results[i*n:(i+1)*n] = fftconvolve(Im, kern[None, ...], 'valid')

    return results
Yep, looks better now
So, I have Z = conv(Im, kernels) and I want to calculate dZ/dkernels
 
do you have a firm grip on what that means on paper?
 
4:36 PM
Of course, I do, this is what I've written myself, and it works fine
 
The problem is with the differentiation, I'll show what I mean
 
I probably won't be able to help, just making sure that you know what to expect
 
I know that for a regular convolution, d(f * g)/dx = (df/dx) * g = f * (dg/dx). Okay, so I do Z = conv(Im, kernels) and I want to differentiate Z with respect to kernels. I end up with dZ/dkernels = Im * 1, but Im.shape == (n, a, b), kernels.shape == (p, c, d) and Z.shape == (n*p, a-c+1, b-d+1), but I want dZ/dkernels be of the same shape as the kernels.
Woah, looks pretty messed up
Basically, I'm not sure what is that one in this case.
 
well, a convolution is an integral, so the derivative of a convolution is also an integral
so something's not what you're saying it is, probably
 
4:43 PM
Yep
 
plus you're taking a derivative with respect to a function
that's a functional derivative, not a regular kind
that's why I asked whether you understood what you're doing
you have the convolution of two arrays, and you're differentiating with another array...?
that sounds like you can end up with a 3d object if you started with 2d arrays (maybe more)
 
No, I start with 3D and end up with 3D as well, but of wrong shape. I didn't think about this functional derivative, though...
Oh my, I was looking at the equation about the differentiation and didn't understand I had to differentiate with respect to x. Now I have to investigate functional derivatives... Thanks for the clarification!
 
In case that's really what you're doing it might get ugly. Here's a conceptually similar question I answered at math.SE, it's about differentiating a norm with respect to pixel (voxel) intensities
in that case you start with a scalar and differentiate by an array, and end up with an array the same shape as the "denominator"
generally, the value of the scalar can depend on every element of your array, hence this increase in dimensions
in your case your array-valued result can depend on any element of the kernel, so that'd be a looot of indices (of course you'd have a lot of zeros because you're both convolving and differentiating by kernels)
 
 
1 hour later…
6:01 PM
Any recommendations for python variable obfuscate programs? - That works for python 3.5.
I have been trying a lot of different versions lately, but none of them was able to fit my needs.
I am talking about a piece of code that are capable of turning my code's variable names into random nonsense.
http://i.stack.imgur.com/bbIOt.png
An example ^^
 
6:25 PM
@SebastianNielsen There's this: liftoff.github.io/pyminifier but I've never used it. I just learned about it a week or so ago in a SO question.
 
rb folks
 
6:54 PM
clever cabbage.
 
@PM2Ring I already tried that, and it kinda worked. It did was it was supposed to do, but say if my scripted looked like this:

variable = ' æ,ø,å <- these should not change '

It would change to:

a = ' 'æ,øå' <- these should not change '
nvm, I could just convert that to ascii.
 
@SebastianNielsen That looks like a mojibake error.
>>> 'æ,ø,å'.encode('utf8').decode('latin1')
'æ,ø,å'
 
Yeah I figured that out :p
 
7:24 PM
I just found a bug in pyminifier.
It is not very good at handling this type of code:
string += 'den forbednen isoleret set forringer rentabiliteten.' \
                          'Samlet evnen (aktivernes omsætningshastighed) procentuelt' \
                          'større af indtjeningsevnen (overskudsgraden), hvorved ' \
                          'rentabiliteten (afkastningsgraden) sar forbedret.'
I am creating an issue, what should I call name the issue? - wrongly interpreted strings?
 
@SebastianNielsen I suppose so. But why do you have those backslash continuations? They are very fragile: they don't work properly if you put a space between the backslash and the newline. Just wrap those lines in a pair of parentheses.
 
I liked the look of representing it this way better. But i'll try and add parantheses around it instead and re-obfuscate the code
 
The backslash is totally redundant there too, Python joins adjacent strings automatically.
But I'm going to cut this conversation off, because just like every other "how do I hide my code" discussion, the answer is "don't, nobody cares about your code, and your time is better spent improving your project." The only way to not let people get your code is to run it on a server as a remote service.
 
US is far from my reach :D
so no pycon for me
 
7:39 PM
There are many national pycons
 
I wish there were pycons in Denmark :(
 
well for us pycon wa sthere last month i guess i was too busy with work so i couldn't attend
 
8:01 PM
I wish I knew some people irl that was interested in programming.
 
I'm sure there are many meetups in Denmark, and there used to a pycon dk
Maybe if you talk to some of the people who organized it you make a new edition. Python's popularity is growing, after all
 
This is what I get when I search for pycon dk: http://pycon.dk/
(you can google translate it)
Strangely enough python is not mentioned once on the entire page.
 
8:23 PM
@Jean-FrançoisFabre cabbage :D
 
@AnttiHaapala you're dragging me here now :)
 
8:35 PM
OTOH, I'm in no hurry to re-open it. ;)
 
a bit short on the attempt side
fizz fizz fizz
 
<.<
>.>
 
Grumpy noon cbg
 
@AndrasDeak Definitely. And the OP didn't even reply to my request to show the code he used to produce the pairs.
 
dictionary is not allowed for this assessment — JohnnyAppleSeed 1 min ago
grumble
 
8:43 PM
pandas it is?
 
Naw, just some python question
 
I mean if dicts are not allowed, one should clearly attempt to overkill it with anything but dicts :P
but your response is probably for the best
 
@Jean-FrançoisFabre I am trying :) never too many people with gold badges :D
 
Haha I see a close vote there
Is that yours?
 
no :)
it seems answerable, it's just not the answer that OP is looking for
well they could be more specific as to what their current code does right now, but I can let that pass
 
8:46 PM
Burn them all. Salt the earth.
 
I've already advocated that stance today, and got a meta downvote as thanks :(
 
You're doing the Good Work, and must take meta downvotes from non-believers as part of it.
 
it meta hurt my meta feelings
 
Meta the fudge up.
 
8:55 PM
Fastest CV ever
 
Sorry, I forgot about the 10 minute rule...
 
I noticed but it seemed pretty hopeless
OP's comment only reinforces that
 
@PM2Ring grr
 
And it's gone.
 
@Jean-FrançoisFabre btw, for Python duplicate search, you can use our canon
 
9:01 PM
Antti, do you know how efficient functools.partial is? I found the C source, but it's a bit out of my league. In particular, we were wondering how partial(operator.mul, i) compares to i.__mul__. See stackoverflow.com/questions/47379834/… which has links to the Python & C sources of functools.
 
must be some application where multiplying by i is the bottleneck ;)
 
Well, it is in an inner loop. :) It's not so much that it's a bottle-neck. It's more that some people object to calling dunder methods directly like that. Sure, you shouldn't do stuff like some_string.__len__(), but I don't see the harm in using i.__mul__ as the function arg to map.
 
I do but I don't count :)
 
@PM2Ring Oh, someone closed it as a dupe. I voted too broad originally.
 
@AndrasDeak I can understand why, your post can be seen as inflammatory towards that user
 
9:08 PM
can it?
it must be a "reading between the lines" thing :D
 
In other words, that specific user is the epitome of how not to behave on this site
Being the most obvious one
 
that's actually the nicest thing in that post towards the user ^
where "nicest" mostly means "objective"
 
@IljaEverilä Ah, rightio. I assumed that you found the target & martineau hammered it. Sorry about that. I've noticed that martineau isn't too fussy with his dupe target selections...
 
Hah, your post can be seen as an accurate description of myself
 
not even close
 
9:11 PM
You mean I'm worse? :p
 
there's currently nobody I know that's worse than that user
 
Still, you were just naming facts.
I don't see a reason for the downvotes
 
And you're not so bad yourself, only too bad to do behave in a certain way:P Think of it as a privilege system in my eyes.
@cᴏʟᴅsᴘᴇᴇᴅ nah, it's fine. I was expecting them when I posted, meta regulars aren't very happy about public shaming. Although I took care not to mention the user's credentials, and the very question ("was I wrong or was it the other user?") can only be fully answered by explaining that the user is problematic
I just wish I saw the post earlier to give my opinion a bit more visibility :)
 
I can't even find this post
 
also thanks, but there was no need to upvote my answer :P
 
@AndrasDeak I saw that meta post earlier. I sympathize with the OP, but I thought his language wasn't exactly diplomatic, but I figured that was mostly a culture / ESL thing.
 
the second comment OP quoted did sound weird to me, but then I noticed who they're talking about
 
I voted on its merit, don't worry
 
@AndrasDeak I figured it deserved an upvote.
 
glad to hear that;)
OK, thanks. I don't insist on it not getting upvotes, I just don't want this discussion to affect the votes
 
9:15 PM
As Hans Pessant once said, (paraphrasing) there's more to being reputable amongst your peers than playing the numbers game
 
I like Hans
just the right amount of jaded scorn
 
A bit like you, but more careworn
 
OK here I see myself voting up Andras' answer just as I assured someone that we don't organize voting rings here :D
 
ham sandwich intermission, be back soon
@AnttiHaapala lol :D
@cᴏʟᴅsᴘᴇᴇᴅ he's probably more objective and diplomatic than me (and certainly wiser :P)
@AnttiHaapala at least we're not as bad as SOCVR *runs away*
 
I can't decide if The Man in the High Castle is good or not
 
9:19 PM
@AnttiHaapala It's meta, so it's not like we're artificially inflating his rep. And upvotes on meta doesn't mean he's right, just that we agree. ;)
@RobertGrant I've never seen the show, but I enjoyed the book when I read it decades ago.
 
Can I check the edit history of posts while they were edited during their grace period?
 
Nope
 
@PM2Ring but we may not just agree just because a link was posted here :D
 
So, say someone posts a wrong answer to a question. I then post a 90% correct answer, and then proceed to realise it's wrong, and correct it. Meanwhile, the other person slimily takes my answer and added the 100% version to theirs.
So, whose answer is it?
 
@cᴏʟᴅsᴘᴇᴇᴅ yours is yours, theirs is theirs. It might be a plagiarized answer...
... in which case certainly you wouldn't want it to be your ar :D
 
9:31 PM
I can't prove anything if they edited it in during the grace.
They can even say I copied them.
 
next time leave a comment quick, that breaks the grace period :P
this is not the first time you're suspecting foul play, so this might be an investment for you
or, you know, FGITW--get your toes stepped on
 
I've had it. I raised a flag
 
good luck
 
I don't think it'll do anything, but I can sure hope
 
my last plag flag took a week to get handled
 
9:41 PM
I'm seriously about to post an upwork project to debug this stupid SSL connection. Ive been looking at the same 8 lines of code for a day now and I can't figure out what's wrong with it.
 
Cool, I'll have my job feed open :D
 
@AndrasDeak The plagiarised answer has been accepted.
 
@cᴏʟᴅsᴘᴇᴇᴅ ¯\_(ツ)_/¯
 
Can't say I didn't expect that
 
@JGrindal 8 lines, did you post a question on so?
 
9:46 PM
@AnttiHaapala Negatory, ghostrider.
(most notably, because I think the problem now is actually with the certificate, not the code)
 
@JGrindal you have an indentation error in your latest self-qa
 
@AnttiHaapala ? in the answer or the question?
 
@JGrindal question
 
fixT
Yam-ing copy/paste.
 
use ctrl-k :D
 
9:58 PM
@vaultah Why did you remove that crash comment?
I thought it was pretty funny
 
I realized that Type -> crash includes regular Python exceptions
 
10:10 PM
is there an online basic IDE for multiple people?
 
10:33 PM
Hi guys.
 
Coldspeed I see your disscussion with jazrael
 
@madik_atma You do?
Any thoughts you'd like to share?
 
@cᴏʟᴅsᴘᴇᴇᴅ doesn't seem to update automatically when the other person types. Do I need to make an account?
 
The Tick - much more fun than The Man in the High Castle
 
10:38 PM
@cᴏʟᴅsᴘᴇᴇᴅ I knew Jazreal. He is a realy nice guy. I think that was not intentional
 
@towc Oh, multiple people? I'm sorry,
repl.it isn't right
Try collabedit. It isn't an IDE, but it is a collaborative edit
 
@towc Atom has a new collaborative coding thing now too.
 
has to be online, and has to have an interpreter :/
thanks anyway
 
@towc I dont think such a thing exists atm. Could be a fun project to make though.
 
@JGrindal sounds like something so basic, I don't see how it's not a thing
get codemirror in multiuser mode, and connect it to a remote shell
well, could be fun for a small hackathon
 
Damn Iv'e just been trying to write a file with html parsed with BeautifulSoup for half an hour now. I used the .decode('utf-8') before remembering its encode('utf-8').
 
You don't have to do either, BS detects the charset.
 
If I don't it returns an error. Unless there is something I have not tried using BS
 
11:02 PM
I actually thought BeautifulSoup would be a more difficult module to learn. So far my only problem has been writing import BeautifulSoup correctly and in capitals.
 
DSM
11:15 PM
I'm not sure you should be typing import BeautifulSoup. Which version are you using?
 
Convention dictates from bs4 import BeautifulSoup
For bs4, of course
 
That's what I always type.
I just put import BeautifulSoup because it's shorter to type.
 
DSM
Fair enough. Had me worried you were using a very out-of-date version of the package.
 
No No. I do warn you I am almost incompetent with it. Iv'e only been on it two or three days so I am expecting to get things wrong. Surprisingly nothing has yet. : )
Except for the above XD
That's why I have been absent today and yesterday. Deep study.
 
11:33 PM
I have been wondering. If I do BS should I also learn Selenium?
 
How so?
Quick Question: Do Java programs tend to run slower compared to Python programs?
 
It depends on what the code is doing, and who wrote it, I suppose
 
I never thought I would ever hear that.
Just asking because a website said: `Why to choose Python over Java in Selenium
Few points that favor Python over Java to use with Selenium is,

"1. Java programs tend to run slower compared to Python programs." I always thought Python was recognized as being slow compared to others such as Java (using normal .py files).
 
@Simon a program with the exact same parts written in java vs written in python is going to be faster than the python program, hands down, no exceptions.
 
11:41 PM
That was what I learnt. Not on this site though.
 
DSM
That site is mistaken.
 
@Simon java startup is slower.
 
but it has guru right in the name
 
probably a subsidiary of intellipaat
 
11:44 PM
@AndrasDeak btw the bhadranti comment is still there :D
 
hehehe
 
@AnttiHaapala I can't see how they can say it is slower just because of that.
 
"You really think someone would do that? Just go on the Internet and tell lies"
 
@Simon there are more pressing problems some random guy being wrong in the internet
 
Anything particular in mind @Antti?
 
11:47 PM
some random guy being wrong here in stack overflow
 
Excellent Point.
 
Ha, your problems will never end then
 
@cᴏʟᴅsᴘᴇᴇᴅ both set(people wrong in the internet) and set(people wrong on stack overflow) are infinite, but they have different cardinalities!
 
Well said :)
 

« first day (2591 days earlier)      last day (2364 days later) »