« first day (2576 days earlier)      last day (2597 days later) » 

01:25
sigh. Now I need to go post a bunch of answers to earn that Python dupehammer.
@JeremyBanks cbg
how so?
I no longer have a diamond; I only have it in chat due to caching. I've got the points for the dupehammer, but not the answer count, so I'll need to pump out a few. :P
Oooooh....yam, didn't notice that detail in your profile. I'm sorry :(
just find a handful of questions that you can tag with ? ;)
@PM2Ring Are they intentionally on the surface of a sphere or is that an illusion of the projection mapping?
02:10
@Code-Apprentice They aren't exactly on a sphere, but it's a projection that maps the infinite plane to a disc via a sphere. It's a form of Stereographic projection.
02:37
@PM2Ring I was thinking either a sphere or some Escher-esque hyperbolic space.
@JoaoVitorino Rude? Perhaps. But claiming that SO is only about code seems completely off base to me.
According to What topics can I ask about here? questions about "software tools commonly used by programmers" are on topic.
@Code-Apprentice like pycharm, pip, maven and etc. I understand that. The problem is I always was too direct and too sincere. But the line between sincerity and roughness is tenuous
I understand that. In this particular case, I argue that the incorrect claims are a bigger issue.
I tend to be very direct myself.
I agree that the question is not very well-suited for SO, but I disagree that it is offtopic because it is about programming.
Perhaps more details code salvage the question, but it does not seem likely to me.
02:53
@Code-Apprentice Thanks for your comment there.
03:18
@Code-Apprentice I was certainly inspired by Escher's Circle Limit drawings, but the geometry is just distorted Euclidean geometry, not hyperbolic.
 
4 hours later…
@AnttiHaapala hehe sadly only 10k so limited powerz :(
07:39
ɓqɔ
08:19
cbg
im getting (psycopg2.OperationalError) SSL SYSCALL error: EOF detected
when using models inside fork
im on flask and jobs run inside fork
is there a way i can keep separate db connection for these jobs ?
I hope this OP understands my code. The logic is very close to his logic, but I guess recursive generators can be a bit mind-blowing if you aren't familiar with them stackoverflow.com/questions/47107663/…
08:41
@PM2Ring Nice answer. I don't think your usage of itertools.product is correct there though. Imagine if the input is "RW", then the OP's code would output ['a'], ['bd'], ['aceaeg']. Using itertools.product on that will result in incorrect paths like "abg"
product combines everything with everything, but you'd have to split 'aceaeg' into 'ace' for 'b' and 'aeg' for 'd'
@Rawing Ah, right. I might just delete that section.
Yeah, writing a proper algorithm is a lot easier than salvaging the OP's output
I only added that product stuff as an afterthought, and I didn't actually bother running the OP's code.
I guess salvaging the OP's output could be an interesting puzzle in its own right... but I've had my fill of that question. ;)
09:00
@GeorgHeiler Please read the room rules: "Do not link your recent (< 1-2 days) questions in the room." Give it some time, it's only been an hour.
 
1 hour later…
10:19
It has been over nearly 24 hours, since i asked the question which remains yet to be answered. Can I link the question here and now?
10:49
11:15
duplicate (good ol' variable variables) stackoverflow.com/questions/47107766/…
12:04
too broad stackoverflow.com/questions/47110450/… for want of a better close reason...
lol @ that latter one...
12:34
Huh. I've always found SO's diff view a bit confusing, but this is a new low
13:12
@Rawing you can always select the side-by-side view
@PM2Ring and there are answers WTY
@Rawing got approved too :|
my bad, was too confused by the diff to cast a reject vote :p
@Code-Apprentice I actually thought that was the side-by-side view. Oops.
@Rawing well shame on you :P
13:44
IntelliJ seems to crash randomly when I am afk for an extended period.
...like most of the day
14:32
weekend cabbage
anyone around
15:07
Tipsy cbg
15:33
@IljaEverilä cheers
15:57
@IljaEverilä kalsarikännit? ;)
16:08
@AndrasDeak Not this time. A get together.
16:51
cbg
17:27
boy, its been a long time since I've been here. cbg folks.
@vaultah hey, its been a while, hows life?
is the kevin still around?
@GamesBrainiac SSDD :P Busy or bored, or both. You?
just same shit different day man
@GamesBrainiac yes points to the starboard
17:32
Man, I miss talking to that guy. I wonder how kevinscript is doing.
@Kevin Missed you loads man. Lets catch up sometime :)
 
1 hour later…
18:47
I think he's more likely to appear on workdays
19:35
@davidism Sir, reason for duplicating my question when it is different from the one against which it is duplicated
20:05
@min2bro Please edit your question to explain how it is different than the dupe.
It is your responsibility to do the research and explain what research you have done and how you have still been unable to solve the problem.
@Code-Apprentice, changes done, explained clearly what I'm trying to achieve and shared my code also
Can i expect Q to be re-opened now?
Did you read the question that davidism gave as a duplicate?
yes tried all the possible ways as given in the link but doesn't helped..
did you also read the answers?
(just trying to cover all possibilities)
yes i did, here I'm trying to get the row id from the jquery datatable on selection
20:17
I still don't understand what the problem is. What part doesn't work?
somehow the console shows all the data but it is not passed in the post request
if Code-Apprentice has to ask that question then your question is not eligible for reopening
@min2bro You should edit your question to show what you see on the JS side and what you see on the Python side.
the console log is printed successfully in the below code and now I'm unable to pass the same data to the post request
$('.dataframe tbody').on( 'click', 'tr', function () {
console.log( table.row( this ).data() );
var id = table.row( this ).data()[3]
$.post(
url="signUpUser",
data=id,
success=function(data) {
alert('page content: ' + data);
}
);
As I said, edit your question to show exactly what you see in the console
20:20
sure 2 mins
I also suggest you read the jQuery.post() docs as well as the Flask request docs. (I leave googling for the later as an exercise for the reader.)
20:37
thanks @Code-Apprentice that helps
i owe a coffee to you, hahhha
Guys, has anyone of u ever worked on the dedupe python library
21:00
Lets say i have an inverted index of structure {word:{docid:count}}
what is the most efficient way to get a word counts of each document
e.g
{docid{word:count}}
thats what i currently have but i feel it could be improved
You could use a combination of collections.defaultdict and collections.Counter
Heyo
I messed a mini function up a little (missed a fun edge case).. .now I'm not sure on the best practice for getting over this case.
def max_even_seq(n, k):
    max = 0
    counter = 0
    for digit in str(n):
        if int(digit)%k==0:
            counter = counter + 1
        else:
            max = counter if counter > max else max
            counter = 0
    return max

max_even_seq(4613**999,1)
maximum digits in a row that divide in k
mess up.... if they all divide, max does not get updated to the value of counter
I currently have two sol options in my head -- not in love with either
1) update max again when finished (same code written twice)
2) update max on every counter increment -- wasted computations
would love to hear better solutions
21:48
Cbg
@ofer.sheffer could you use enumerate() to figure out when you're on the last iteration and modify your if else formulation to add in that test as well?
22:03
google hangouts is documented to be borked with firefox dev edition :(
22:13
@RobertGrant From your suggestion, I have the idea of changing the initial 'if' clause to 'if digit%k !=0 or inter == len(str(num)): update max, else counter++
its better than repeated updates on the max because it only reads 'i' and doesn't write to it repeatedly... so, an improvement and I also get rid of the duplicate code.
I found myself needing of duplicating the counter++ code though, to make sure that if its the last iteration, the counter is updated before max is assigned.... so I did not get the job any easier.
 
1 hour later…
DSM
DSM
23:23
@ofer.sheffer: you could look into itertools.groupby, which helps when working with problems involving contiguity (things in a row). Something like max(len(list(g)) for _, g in groupby(str(n), key=lambda digit: int(digit) % k == 0)) would probably work.
23:39
Anyone know if there's anything stopping us from adding __weakref__ to tuple subclasses the same way we add __dict__?
Specifically, sticking __weakref__ before the rest of the object instead of after it?
I feel like this has to have come up before.
Not sure what this "before" or "after" you're talking about means, but the docs do explicitly mention that you can add __weakref__ by adding it to the __slots__ (so in the same manner as you'd add __dict__)
@Rawing something happened to you face
@Rawing: You can't with tuple.
@AndrasDeak I got a facelift because I decided that the old one looked too intimidating :P
23:51
Alright, then I'm clearly underqualified to answer this question and will now shut up

« first day (2576 days earlier)      last day (2597 days later) »