« first day (3381 days earlier)      last day (1550 days later) » 

12:11 AM
Each letter has a meaning
You have to study them to understand them, it's mysticism
 
rhubarb
 
 
7 hours later…
7:34 AM
For parsing this XML page I am using this code - pastebin.com/rif8f9rM
But, it's not working. Can anyone help me to debug it please
I just need to sum all text values inside <count> tags
 
 
1 hour later…
9:01 AM
Anyone exprienced with python multiprocessing?
2
Q: subclass of multiprocessing.Process never joins

AmirHmZI've made a class that inherits multiprocessing.Process: class Task(Process): def run(self) : print("RUN") # doing some works self.close() print("closed") And I start it in this way: proc = Task() proc.start() proc.join() print("Joined") But it won't j...

 
@AmirHmZ We usually wait 2 days before putting up new questions here for discussion, unless they are in need of a meta review (how it can be improved, etc.).
 
9:28 AM
Is it worth editing out or commenting on the throwaway side-effectful listcomp in stackoverflow.com/a/8489859/5067311?
 
9:39 AM
When I was first starting out, I remember using that list comp for .join(). I wouldn't have been looking at subclassing but I think that side effect has probably permiated quite a bit through multiprocessing answers
Should questions like this just be duped with something about bitwise/logical operators? The entirety of the question is unrelated to the issue. Its content is so far removed from the problem, I wonder whether the dupe actually adds noise to the site
I'm erring on the side of just VTCing.. but I really don't find the new options intuitive for this kind of case
 
or any kind of case. :P
 
9:55 AM
Pretty much :P
 
Closed
I'll check the canon later
 
Thanks
 
 
2 hours later…
11:36 AM
@roganjosh added sopython.com/canon/137/… for future reference
if someone can find a question for | vs or please let me know
 
Awesome. It crops up with reasonable frequency so that will be a handy reference, thanks. I wasn't aware of the power of that number; time to dig into Wikipedia:)
 
@AndrasDeak hows this ? Though it's marked to a dupe on this but i like the answer on the first one.
 
12:02 PM
@ParitoshSingh thanks! I think I'll skip the former because the question contains that terrible mistake and noobs might get confused. The latter question is much more promising but it badly needs a good answer :(
 
aye
oh dear, looks like AD_AI.exe encountered a bug
 
Even the best-made software will struggle with SO Chat interface
 
@ParitoshSingh bah, didn't notice that in time
 
 
4 hours later…
3:52 PM
Any hint on this problem?
 
think of lists. think of pairwise iteration. (why pairwise? look at the conditions).
That's my hint for ya. Should be able to figure out the rest.
 
I guess your approach is valid for this problem.
The problem statement in both of them is basically the same, as you might have figured out.
I have done the easier one(7 kyu(or the one whose link I attached in my last message) by pairwise iteration and building the whole triangle.
Are you there, by the way?
 
brief cbg all
 
sort of, multitasking atm
but weird, i don't understand at a glance what's different about the two problems
 
4:08 PM
Yet another version
 
ah. that version makes the issue clearer.
So, you've already got the pairwise iteration down then im assuming. Sounds like it's just too slow apparently for sequences that are too big.
 
Yes, the limit in the last one is 1 followed by 9 zeros.
 
offhand, im thinking that you could perhaps cache results of combinations that are more than 2. Essentially "jump" rows by figuring out 2 level outputs for 3 colours, 3 level down outputs for 4 colours and so on. But when it comes to performance based puzzles, it takes actually trying a solution to know for sure whether it would work or not
I'd say a safe bet would be to cache jumps of about 10 levels for the intermediate solution, and 100 for the toughest one. I am probably wrong but yeah
 
Can you give an example of what are you saying? If I am getting it right, then I think the problem becomes involved if one tries to jump more than 5 levels.
 
welll, uh, i don't know how i can explain it too well, but say that you were given an input with 5 items.
with your pairwise approach, you can take any pair, and you will know the colour below it. each inverted "1 level jump down" is self contained
so, 5 items can be thought of as 4 groups of "1 jump down".
So far so good?
Now, instead of iterating pairwise, iterate in triplets. a group of 3 items, 1 jump down becomes 2 items. another step down and it becomes 1 output.
 
4:23 PM
Yes, then I think I've already got your point. the problem becomes involved if one tries to jump more than 5 levels.
 
If you remember that result, a "triplet" 2 levels down is a solved color.
@AjayMishra involved how
 
There are 3**5 possible combinations.
like for one level jump, if my parsing container has width of two, there are 3**2 possible combinations. RR, GG, BB, RG, RB, GB
 
yeah, sure, you'll need to stop at a certain point, can't keep filling the cache indefinitely
 
Not exactly 3**2, but you got my point.
@ParitoshSingh I didn't get you there.
 
@AjayMishra decide a cutoff point for your cache. So, 3^5 combinations is for a cache that allows 5 items or 4 level down jumps. 3^5 is 243. That's pretty simple for a computer to work with
3^10 is 59049. That might be pushing it
But it's also true that you won't necessarily encounter all those combinations in a solve.
 
4:30 PM
243 is indeed a simple number. I guess, it is better to backtrack a little and let me tell what I think you said regarding "jumping the level", becuase the doing if else for 243 cases is certainly not a reasonable thing to do.
 
So, all im saying is, yes you have a point, but the problem wont really manifest itself at 5 levels. computers are good at working out stuffs.
if else? o.o
basically, you will know the output for RRRRR - R
that's what im calling a 4 level jump.
 
@ParitoshSingh Certainly not for RBRGG
 
you'll know it once you calculate and cache it
you'll know it for each of the 243 possibilities*
 
Do I need to calculate for all of them?
Yes.
 
up to you
calculate them all upfront, but that doesn't make sense to me. better to calculate as you encounter it
also, note that this is just "offhand" what i'd try first
It may very well not be enough
 
4:35 PM
I can't see the point in doing that way. It is beneficial only in the case when I would get a same ordered chunk more than once.
 
 
1 hour later…
5:35 PM
anyone understand what apache airflow is?
i cannot understand what the point is?
 
hadnt heard of it before, but workflow management systems essentially allow you to monitor things when you scale things up
so you have to be doing something at large scales to see their point.
 
what is workflow management lol
?
 
call it basically a fancy monitoring system for computer processes that are supposed to work together in harmony to get something done
 
ok
thanks
whats apache spark?
 
no worries
 
5:39 PM
it is just an api for hadoop?
 
oh spark? that's big data stuff
i don't think so? one sec.
 
No, it isn't an API for Hadoop
 
oh it ssems to be an improvement on haddop
 
oh. apparently it is built on hadoop mapreduce
 
It's actually a newer way to approach big data processing
 
5:40 PM
but aye, it's not just an api for hadoop.
 
Also unless the questions tie back to python @Permian , these questions might be too broad for the room
 
ok ill stop
 
speaking of big data, i just came across koalas and i am so happy :)
 
is there a stl for python?
ie with the common algorithms in it?
 
5:42 PM
haha aye, life's simpler when people give you api's that you're familiar with eh?
 
premade
 
@ParitoshSingh absolutely :D
 
@anky_91 That looks pretty cool if it's as complete as I'm hoping it is :)
 
@Permian Like what algorithms?
 
@DeveshKumarSingh binary searcy, quicksort,....
ie is there an equivalent to the C++ stl in python?
 
5:44 PM
what's stl
 
stl I assume refers to implementations of standard data structures in c++
 
yeah
 
@roganjosh trust me I am hoping too. :) as i am spending quite some some to deal with pyspark techniques
 
the data structure i have worked out
 
yes so they are available, perhaps start here: docs.python.org/3/library/index.html
 
5:45 PM
@roganjosh check this the part 3 starts at roughly 10 min
 
bisect is for binary search
 
@anky_91 already watching it :)
 
nice :)
 
btw almost every day of this new year, there has been backlash against SE policies, moderators leaving, CM's leaving etc
so much negativity
 
@DeveshKumarSingh That's a bonus of viewing on a phone. It's only when I've just fired up my laptop now that I've seen another pinned post for a resignation.
You can hide in your safe space and look at who's got a pinned Meta resignation when you're ready :)
 
5:48 PM
yes, 3 CM's in a week
 
Well, 2 were, we think, sacked. The latest was a resignation
 
and I do see some spin offs. New Q&A being started and supported by people who are leaving
not sure why is stack overflow trying to burn itself to the ground, and that too publicly
btw @anky_91 @ParitoshSingh any one of you cricket fans? there's a very interesting match tomorrow
 
@DeveshKumarSingh of course, I am waiting for it :)
 
are you going to the stadium to watch it?
 
Aye, should be fun
 
5:54 PM
Hope the no.4 spot gets a resolution
I was late, it was sold out :(
i wasn't following the schedule
 
@anky_91 Do you have a cluster to play with? I'm thinking I need to put some time aside to learn more, but it's not so easy without the infrastructure
 
me too :( but odi is too long, I prefer t20's
 
@roganjosh ahh, i donot unfortunately
 
So are you using spark locally?
 
@anky_91 that's never going to get resolved due to our top 3 being so strong and others not getting game time
unless all 3 rest in a series
 
5:56 PM
I just came accross it today evening , yes I am using it in anaconda
with some tutorial datasets
 
Cool, ok, then I will be joining on that journey :)
 
from linkedin specifically(since it is free with my org account) :P
 
I think you guys can make your local clusters using docker containers
e.g. I was able to play around with mongodb replication, sharding etc just with containers on my laptop
 
That's not a bad idea
 
@roganjosh sounds good, let me know if you encounter anything strange, they say it's exactly same(I doubt)
@DeveshKumarSingh right, everyone is a strategic in this country (on cricket of course)and I am hoping they think alike :P
 
5:59 PM
just found this on my google search, this does use a docker
@anky_91 you mean strategist?
 
yeah sorry
lazy saturday
:D
bdw End v/s SA was supposed to be more competitive :/
 
well that's part and parcel of an international sport, especially cricket with proliferation of media coverage
@anky_91 it was, but then ben stokes happened
that guys defies convention
 
i am worried for WC later in the year :D
 
I would suggest only to watch until the QF
 
lol
@DeveshKumarSingh i don't know docker :(
 
6:07 PM
they are a great way to create isolated environments to try out things
 
I've heard
unfortunately never got a chance
but i should explore
 
think of them as a ready to eat meal, rather than you cooking from scratch
 
sounds less effort ;)
@ParitoshSingh next time RCB plays i can take you (remind me) we get free tickets since its our team :)
 
you work for rcb?
 
@DeveshKumarSingh not technically , but we own them
 
6:15 PM
ohh RCB was owned by UB group before?
 
yes correct
 
got it, now UB is a subsidiary of your company
 
not anymore
Right :)
 
sometimes :P
 
6:22 PM
@anky_91 nice, that sounds slick haha
 
have you guys actually gone before together?
 
i have been there before at Chinnaswamy , but just with my officemates
Usually there are some dropouts though :)
 
nice, if you get more tickets, count me in too, excited to see isuru udana lol
 
6:47 PM
@DeveshKumarSingh ha ha sure :D
 
7:07 PM
rbrb
 
stackoverflow.com/q/59803812/4799172 too broad/needs more focus
Closed, thanks
 
7:23 PM
Huh, a rare self-accept dupe appears :)
 

« first day (3381 days earlier)      last day (1550 days later) »