« first day (2238 days earlier)      last day (2935 days later) » 

13:00
done
@poke no else in for loop
how do i return a list of numbers as one number?
Hi antii
@poke if seen: print(distance); exit()
Hey @Kevin.a If you want to change a Chat post you have a couple of minutes to edit it. You can quickly get to your editable posts by hitting the up arrow key.
10 minutes in total... too much :(
13:01
@Pigman168 beg your pardon?
@Pigman168 You need to explain that better. How do you want the numbers in the list to be combined?
[1, 2, 3, 4] -> 1234
needs to be returned from a function :s
Ah. map to str(), join, convert back to int
@Pigman168 and what happens with [1, 2, 34]
@AnttiHaapala the same
13:03
bah
int(''.join(map(str,lst)))
That's better. :)
sorry my connection sucks, thank you that worked @AndrasDeak
:)
need coffee...
cbg
@Pigman168 The fact that you want to do this makes us suspect that you have an XY problem.
13:07
at least it's a well-defined one:D
checking rules
@PM2Ring Yle here is seen as the "television/radio of the parliament", and in fact the parliament as a whole is not all cronies... but now the current cabinet PM is really hard trying to make it into an instrument of the cabinet... PM :/
@PM2Ring I've heard of the XY problem before, remind me again what it was?
and... there are no majority parties in Finland, PM's party has plurality with 24.5 % of the seats in the parliament...
Was it that I'm using X to solve Y when I should be using Z?
Or something like that?
13:11
yup
@Pigman168 Something like that "You are trying to solve problem X, and you think solution Y would work, but instead of asking about X when you run into trouble, you ask about Y"
you're asking and solving Y when Kevin'd by PM
Well I'm trying to recreate RSA encryption for understanding so it's just a minor thing. @PM2Ring
@AnttiHaapala Ah, ok. FWIW, our ABC radio & TV do broadcast Parliament's Question Time
@PM2Ring same here
called "asking hour" here
@PM2Ring but what the above means is that it is supervised by a wide parliamentary committee
and they actually shouldn't interfere in at all
13:16
Interesting point of fact - 'this' contains the same letters as 'shit'. So if you're typing too fast and not paying attention to the order of your fingers...
@Pigman168 You might find the cryptography module interesting
and it equals i*sin(t)
@WayneWerner fun fact: it also contains the same letters as tshi. Which is Chinese for 'Disappointed in the cooking of the duck meat.'
@Pigman168 you understand something very wrong here though,
@AnttiHaapala does it also mean "your mother is a toad" with a different intonation?
13:18
Holy crap. This popped up on my LinkedIn. I got annoyed trying to read through them. I am almost sure there are a few mistakes in what I read so far:
you don't need such an algorithm
@AnttiHaapala Wow. That could never happen here. IF our politicians want undue influence on the media they have to go through commercial channels. :)
@idjaw intellipaat...
SUMMON BHARGAV
13:18
@idjaw that's the same list as before, probably
@WayneWerner Yea I figured there was a module for that but I want to do it all from scratch so I get the full experience.
@idjaw Okay, that first "question" is insane. Like. wat.
Who has ever asked that in an interview?
Like... for a softball question?
@AnttiHaapala ?
we've discussed this extensively, to the point that Bhargav went to knock on their door
@Pigman168 More specifically so you could read their source ;)
13:19
man I really can't English today
@WayneWerner it gets better.
1 min ago, by idjaw
Holy crap. This popped up on my LinkedIn. I got annoyed trying to read through them. I am almost sure there are a few mistakes in what I read so far:
@idjaw search intellipaat :P
@AnttiHaapala I'm reminded of Lion-Eating Poet in the Stone Den, which I'm pretty sure I've linked here previously.
@WayneWerner Ah I see, thanks
@ANTTI OUR COMMENT HAS APPEARED!!!!
13:20
@AnttiHaapala Why don't I need it though?
> 5.Whenever Python exists Why does all the memory is not de-allocated / freed when Python exits?
@BhargavRao OMG!!!!
I changed nothing there.
> Bhandranti
13:21
:D
@BhargavRao they can't possibly be that stupid :D:D
I remember that one
:D:D
@idjaw ^
Damn, This is the next level stupid
wtf...is that site like The Onion for programming?
what is this shit
13:23
> 7. Explain Python’s pass by references Vs pass by value . (or) Explain about Python’s parameter passing mechanism?
:34362474 c'mon, it's not even that bad ;)
holy crap. 48 people liked it as a post on LinkedIn
Tkinter....are you effin' kidding me?
@idjaw notice the comments and name Bhandranti
hahaha oh man....
Aug 29 at 19:45, by Bhargav Rao
user image
Phew, Found it
hahaha
fantastic
13:25
Quite the long con...
and that enumerate explanation is fucking wrong. It does not get the index. It's just a fucking count
oh my god....
@BhargavRao awwww got kevin'd:(
@idjaw These guys make money by offering to (allegedly) teach people Python. Except they don't actually have any classrooms...
Bhandranti - Bhargav, Andras and Antti
Aug 29 at 19:46, by Andras Deak
Bhandrantti
Aug 29 at 19:46, by Andras Deak
maybe Bhargav also derives from Andros
13:26
Yep :D
Damn, That's giving me nice memories
I'm glad you're still alive after having visited them
> Generally Search operation on dictionary object is faster than searching a list object.
Let's make them feel the wrath of SOPYTHON!
unintellipaat
@AndrasDeak I blocked their number. They are toooo annoying.
13:28
> .We can even observe the pass “by value” kind of a behaviour whenever we pass the arguments to functions that are of type say numbers, strings, tuples.
"Name few Python Web Frameworks for developing web applications?" Django isn't included.
GFD, I'm rolling. This is hilarious.
Thanks for sharing. :D
you can like it on linkedin
I couldn't resist @JeremyBanks.
I'm concerned for the people who liked that post in the Python group on LinkedIn.
13:29
> .every object can be either mutable or immutable based on the type of data they hold.
I guess I shouldn't just flood the room by quoting every answer, but so many of them are remarkable.
Damn, I should have been a mod outside SO. I could have mod-hammered their office
I love the number of .Missing space after periods going on in that article
yeah, better not make them canonical by quoting here:D
> Python supports methods (called iterators in Python3), such as filter(), map(), and reduce(),
wat
13:30
trolololololololol
@BhargavRao well, intellipaat sure is a duping institution, could have used a dupe hammer
@JeremyBanks every 3 word combination of that sentence is wrong
3
So, for anyone who is on LinkedIn. Here is the group that has the post - linkedin.com/groups/25827
are you setting up an effort of public humiliation?
13:32
scroll down a bit, you should be able to see it in its "49 likes" glory.
I'm merely providing the source
that is all
innocently providing the source
@idjaw *see, *its
thanks
almost there
thanks, dad.
:D
don't worry, son, one day you'll be almost as good as me
13:33
I hope so. You're superman!
flies away
superdad
my hero
now you are covered in flies
It looks like someone who can only write pidgin English and has no clue about Python programming went and tried to write a WikiHow post for what they imagined would be popular questions about Python
13:34
and it works
it has 49 likes !!1!11!1
commented
I am still trying to join the group
I need to join linkedIn
@BhargavRao No.
13:35
crap can't edit edit comments afterwards
it's a waste of time
Lol, Yeah. That's why I haven't
although I got some offers through it
LinkedIn is like... the worst Facebook for developers
I've had people reach out to me
the hilarious thing is that typically they are .NET positions
13:37
I think someone just removed their like, too.
haha
@WayneWerner I got a request for a 6 month .NET contract
possibility for renewal
excitement++
Such program. Very possibility. Wow.
> Assistant Product Owner
wtf
> Web Scrapping is a way of extracting the large amounts of information which is available on the web sites and saving it onto the local machine or onto the database tables.
Web Scrapping, eh?
13:39
scrappy doo
how do you assist in product owning?
Is that when your dog looks up at you with those big ol' puppy dog eyes when you're working on your web page? Is he looking for web scraps?
By doing all the work while someone else gets the credit.
you shout OWN IT! OWN IT! into the face of the product owner, just like Shia LaBeouf would do
> In order to scrap the web:load the web page which is interesting to you.
I... wat.
13:40
:D
> BeautifulSoap
... okay then
> Both .py and .pyc files holds the byte code.
> it “lives” file with a ‘.py’ extension. zip files and DLL files can also be modules.Inside the module, you can refer to the module name as a string that is stored in the global variable name .
@WayneWerner wth
I've only made it to question 12 and I can't see because I'm laughin so hard tears are streaming from my eyes
This is comedy gold
14 is fantastic.
> In python generally “with” statement is used to open a file, process the data present in the file, and also to close the file without calling a close() method.
13:45
magic
top lel
> 16. Explain how to redirect the output of a python script from standout(ie., monitor) on to a file ?
@WayneWerner at least it's good practice, even if cargo cult
Hey, Does anyone have CVs left? There's more than 50 python questions at CV4.
I have all of them today
13:46
me too, but it'll stay that way for a while
@AndrasDeak Yeah. Better than BeautifuSoap
> JSON – stands for JavaScript Object Notation. It is a popular data format for storing data in NoSQL
databases.
@idjaw that's backwards... :(
is JSON webscale?
13:47
It's ok. It's still magic
I've got a bug
it's a feature
looks like this
it's looking for a spot to hibernate
I told it that it can sleep among some of my stuff on the table, but it keeps flying around, it'll probably get crushed sooner or later:(
yeah it doesn't look like a featre
13:54
where is the problem on this code. you don't know ?? — Rami Khaldi 19 hours ago
Man, today is gonna be a great day
i am out
watch a movie and take a nap
good luck you all
take care
user6568562
@khajvah La vida loca
user6568562
Laters khaj
14:00
don't know that one
although I only know a few of their songs
classical music is nice
user6568562
:D It sure is
Hey guys, did you know that xrange is depreciated in Python 3.5.X?
I read it on intellipat, it must be true!
oh gods you confused me
14:06
> Python supports 7 sequence types. They are str, list, tuple, unicode, bytearray, xrange, and buffer. where xrange is deprecated in python 3.5.X.
I don't know how that could be confusing at all, lol.
> Regular Expressions/REs/ regexes enable us to specify expressions that can match specific “parts” of a given string.
So... not real parts, eh?
LOL. I reported conversation in there...
@WayneWerner "depreciated", might be :P
imaginary parts
14:08
and now I cannot see it at all...
On LinkedIn?
so you just have to report everything python2 and you won't see it anymore
> 1. convert the given file into a list.
2. reverse the list by using reversed()
Eg: for line in reversed(list(open(“file-name”,”r”))):
print(line)
@AndrasDeak yeap
Ew. No.
14:10
@BhargavRao WAT?
I searched for intellipaat on linkedin... 100 results...
> 28. What is TkInter?
current and past employees
Not a Python Library ;)
@AnttiHaapala Lol, All fake
> The 3 magic methods of Python that are used in the construction and initialization of custom Objects are: init__, new , and del__.
Magic!
> try – it will try to execute the code that belongs to it. May be it used anywhere that keyboard input is required.
> They are different types of inheritance supported by Python. They are: single, multi-level, hierarchical and multiple inheritance.
14:14
haha:D
there isn't a "how is python typed" question there, right?
that would be fun
> If you change the value of a class variable in one object, its new value is visible among all other objects of the same class. In the Java world, a variable that is declared as static is a class variable.
Because... your interviewer for a Python position wants to know that you understand Java?
but it started decently
user6568562
@AndrasDeak Haha !
user6568562
At least, we'll give them that
> python is typed because you need keyboard to type it. Other languages like English are not typed as we speak those.
5
14:16
:P
> Another way of raising and exception can be done by making a programming mistake, but that’s not
usually a good way of triggering an exception.
@WayneWerner I'm tempted to write an intellipaat Web Scrapping library and put it on PyPI: every time it fetches any Web page it also fetches a page from the intellipaat site. If enough people use the library that should scrap their site. :)
:D
Denial of Stupid attack?
rhubarb for now
I'll debug my stuff and leave
user6568562
Laters
14:18
Woah. There's actually a reasonable question/answer on here!
> since class C does not contain the definition of the method func(), they Python searches for the func() in parent classes. Since the search is performed in a left-to-right fashion, Python executes the method func() present in class A and not the func() method in B.
And we're back... how do you remove duplicates from a list?
> a. sort the list
b. scan the list from the end.
c. while scanning from right-to-left, delete all the duplicate elements from the list
Or if you're going to do that... list(set(dupes)). Of course it only works for hashable types...
A broken clock is right twice a day, which makes it twice as right as that webpage.
> web2py – it is the simplest of all the web frameworks used for developing web applications
Well, it is safe to remove stuff from a list you're iterating over, if you iterate backwards.
@WayneWerner but it's so cool that multi chaining function calls
Written by someone who has never touched web2py
Oh man... some of their other stuff...
14:23
IntelliPaat took the bait; publishes a fake positive comment from @Bh@andr@anti (while suppressing a negative one).
3
> Read this riveting blog to learn how MongoDB compares with Couchbase!
@WayneWerner if you sorted why start from the end when you can go left to right? xD
What was the negative one?
> How our support Works?
I'd love to see what the actual intellipaat Python lessons look like, if they actually exist.
14:27
i wonder how big of a team is intellipaat and how much they make.
Well, this python course is $120
but how big of a team is it and what's the split rate of it
> Excellent step by step instructions.Great examples. Well laid out videos for the novice. Help me to hunt the Python
@MooingRawr You don't remove items from a list you're iterating over from left to right, for the same reason that you don't cut a tree branch that you're sitting on by sawing into the side of the branch that's closer to the trunk than you are.
The title of that review: "Python hunt.. Mission accomplished!"
14:29
@PM2Ring right.... but i was thinking of makign a shadow copy of it first
> Intellipaat enjoys strong relationship with multiple staffing companies in US, UK and have +60 clients across the globe. If you are looking out for exploring job opportunities, you can pass your resumes once you complete the course and we will help you with job assistance. We don’t charge any extra fees for passing the resume to our partners and clients
is the advent of code , us competing against each other or do we add up our scores, and we get a team score to compete with other people ?
Each of these quotes is draining me of my will to live
each quote is making me giggle more and more ...
@MooingRawr We're competing against each other.
14:30
@Kevin welp i know ima get last place against u guys most likely
If accumulated team scores were a thing, people would just make a thousand sock puppets, solve each question once, and submit it a thousand times
but still would like to see what the hype is about, maybe ill do it over lunch
@Kevin i was thinking that they average out the score or maybe take the best score from each team, or something but yeah i could see that issue
(now watch me be wrong and accumulated team scores are a thing and they have some trivial sock puppet prevention system that would have occurred to me if I thought about it for thirty more seconds)
> *Kristy*
> our certificate is valid globally
> *Kristy*
> and we also offer you job assistance
> *Kristy*
> We have a tie up with 80+ corporate companies. So, once your done with the course we will market your resume with those 80+ companies depending on the requirement they will contact you directly
> *Kristy*
> and also you will get life time access and life time support from us
whos kristy, and kristy sounds very nice..... too nice....
14:33
@MooingRawr kristy is the helpful and nice and beautiful lady from Intellipaat with whom I chatted in August.
oh crap... i forgot my breakfast bun at home.... :( i wish I could just import it easily ...
also:
> and along with the course we also offer Lifetime access Lifetime support free upgrades job assiatnce in depth knoweldge / course inline with respective certification [sic]
morning everyone
cbg
@AnttiHaapala exit() inside IDLE is a very baaad way to stop the iteration :P
@poke idle .......
LOOOL.
14:43
Apparently one of the places I used to work at turned a cubicle in to a ball bit
@KevinMGranger That's surprisingly expensive. But I'd love to work in a ball pit. That's like the best standing desk ever
Today's AoC makes me thankful that Python natively supports complex numbers.
Advent of Code starting off a lot stronger than "count the characters" from last year.
@Kevin wow, nice approach!
I didn't even think of that.
14:48
@davidism I noticed that too
We need a collection of all our solutions. I'm putting mine on BitBucket.
Mine is bad, and I already apologized for it
It's thanks to yesterday's conversation about the Julia set, where I learned you can rotate through the complex plane by multiplying by i
@Kevin It sounds like your solution to problem 1a also wasn’t directly helpful for 1b. How did you do that?
I like mine, but it's brute force, and part 2 made it uglier.
14:53
My solution rotates a vector of size 1 around (0, 0) every time the direction changes. I couldn't come up with anything smarter
Here is my approach. I originally only had one for loop, and did something like pos += heading * distance, but then I could only get doubly-visited points if you happened to stop and change direction at those points
So what I did, and I assume Kevin did the same, I only ever moved forward and rotated the board according to the turn direction
@Kevin lol, I just used a tuple
Dutch salmiakki
@Kevin seen.add(pos) – lol, I never thought about the start position
For my first draft I used separate x and y variables and stored my heading as "N" or "E" etc, but then the logic for turning left and right got ugly
# if dir_change == "R":
    # heading = dict(zip("NESW", "ESWN"))[heading]
# else:
    # heading = dict(zip("NESW", "WNES"))[heading]
This displeases me
14:55
I really like your heading calculation, well done.
My solution. I know it's boring :]
@Kevin seen = {pos}
:D
@vaultah I did basically the same thing.
14:57
I don't know why I didn't do that.
Allo
I am lazy. I just fork the code for the second solution
I probably would have settled on vaultah's solution if I wasn't itching to use my shiny new piece of knowledge from yesterday
@MarcusS hey, we're using your leaderboard again :-)
14:59
ugh, gist inlining o.O

« first day (2238 days earlier)      last day (2935 days later) »