« first day (3337 days earlier)      last day (1835 days later) » 

00:02
btw guys, when I have a series that is like this (with 25 valued vectors in each line)
0        [0.938564, 6.953194, -2.4445891, -3.201054, -0...
1        [-0.4229986, 0.97428, -1.3171899, -2.035128, 2...
2        [-1.167658, 0.396525, -0.50616, -1.063068, 0.8...
Then use a dataframe instead? :P
and I do df.title_vec.values
the shape of the output comes out to (13855,) with 13855 being the length of my series
not (13855,25)
Check its .dtype, probably object
Too much info missing
heres what i get with df.title_vec.values
on the first 3 rows i showed:
array([array([  0.938564  ,   6.953194  ,  -2.4445891 ,  -3.201054  ,
        -0.3703668 ,   0.3431    ,  15.181425  ,  -4.8712163 ,
        -2.00248   ,   0.86286   ,  -0.51772404,   4.03301   ,
       -70.7946    ,  -2.546012  ,  -1.3763512 ,  -2.093443  ,
         7.7383595 ,  -7.9228616 ,  -0.81821084,  -4.684702  ,
        -3.3038049 ,   1.809644  ,  -0.7190901 ,   1.5664401 ,
        -6.07086   ], dtype=float32),
       array([ -0.4229986 ,   0.97428   ,  -1.3171899 ,  -2.035128  ,
         2.7613    ,   2.5781972 ,   5.083758  ,  -1.7296821 ,
00:04
you can probably call np.array on it to get a 2d array
So it's not a Series
@roganjosh .values is not
im converting it to feed it into the scipy cdist to make a distance matrix
It's a series with list/array-valued items...
3 mins ago, by Skyler
btw guys, when I have a series that is like this (with 25 valued vectors in each line)
00:05
@Skyler I'll stop talking until you start reading
On the time scale of days
@AndrasDeak it said the dtype in the output, and someone said not enough info, so i was trying to provide both
U-huh
what you posted answered my question but only by chance
2 hours ago, by Andras Deak
okay, good luck
but you have a point, the very last dtype for all the rows is object
so all the arrays together are an array object?
object of arrays
idk...
@AndrasDeak there were alot of things to respond to so I couldnt quite do them all at a time, the part about cdist was me trying to answer why im not needing to make a dataframe out of it
@Skyler you've got yourself muddled I think. Step back from the dtype for a second and think about what you're trying to do. You can't have a Series with multiple "lines" so I'm assuming there is an outer structure
@roganjosh no :P
So everything is everywhere? Or am I misinterpreting? :/
this is a series from a dataframe, an array which corresponds to a 25 dim word2vec representation of those strings I was working on earlier. I'm trying to take this series from the df and create a distance matrix from it, using values was a hope for me to format it into a (13855,25) array, and when I feed it into the function:
@roganjosh n rows in df, n items in a column, each item in the column is a list or 1d array. column.values is a 1d object array.
dist_matrix=cdist(df.title_vec.values,df.title_vec.values)
it should make a 13855 x 13855 dimension distance matrix
Aha, sorry, I've interjected without sufficient background
00:15
and im not making (13855,25) array apparently, just a (13855,) array
Before that, though, @Skyler are you storing arrays in pandas "cells"?
if by a cell you mean it is a particular entry in a row of a pandas df in a particular column then yes
Because on a scale of harmless to a Roomba encountering dog poop, it's up there
@AndrasDeak you are right about it saying dtype object, but how should i fix that, force dtype=array or something along those lines?
00:20
No, you need to fix your approach
which step of the approach do i start to go awry
Storing anything other than a single value in a cell
Once you put a data structure in a cell, you might as well just get rid of pandas and use for loops
@roganjosh there isnt any kind of meaning to each individual column on its own though, and its an intermediate step in a few useful calculations that are only done vector-wise
My program works! But, it prints multiple answers. I just want one answer. How can I do that?
its a word2vec vector so its mapping some kind of complex semantic relationship for ~1 million words in 25 dim vector space
edited llittle mess up 2 lines above
@Skyler That's a lot of fancy terminology, but did you check to see that pandas is useful in the most basic case in your approach?
Pretty simple, but when you run it, you'll see that it prints multiple solutions, not just one
If anyone could help that would be great
@roganjosh uh... pandas is more so being used since this vector corresponds to rows of data in a pd.dataframe. doing values was an attempt to go back into array of arrays
@BigCoder101 don't ping random people. Wait patiently.
@BigCoder101 please don't ping people with your question. There will be a lot of people reading it
Whoops; sorry
@BigCoder101 are all the answers correct? I.e. do they satisfy ax + by == c?
@Skyler I'm lost, honestly. It seems like you're helicoptering-in some help from pandas when you just need to underdstand numpy better
@AndrasDeak Yup, they all work
@BigCoder101 so you did right.
00:38
Problem is, I just want one line of Solutions of 6x + 8y = 42 are (x,y) = (3+8t,3-6t), not multiple
For instance, when I run my code, it will output multiple lines of solutions.
Ah. Then put it in a function and return instead of break.
Or use a single loop with itertools.product
'return' what? OK, let me try itertools.product
If you just want to print, then just return. It would be an implicit return None.
product is nicer in that it doesn't affect your control flow
it has an infinite number of solutions, no?
When I run the program with 'return', the compiler states that "return None
    ^
SyntaxError: 'return' outside function"
00:42
@roganjosh parametrised with t, yeah
@BigCoder101 hence "put it in a function and"...
(And then you'd also have to call it)
Go with itertools for now
@AndrasDeak I tried doing what you suggested with 'return' (b/c I have to learn itertools), but now, there's no solutions being printed at all
And rhubarb
@BigCoder101 sorry, can't see what's wrong right now. Others might help. And remind me to tell you about PEP 8 later
Thanks for the help, anyway
IT WORKS!
WOW!
wim
wim
00:56
@AndrasDeak ugh, 340 answers in a month. Didn't realise they were so new.
I feel like the editor here ripped the details off from my answer to turn the accepted answer into a summary of mine: stackoverflow.com/posts/9811035/revisions - while the answerer has a gold Python badge, to get these details and make the summary I had to read the C source, and I doubt they did so or that this is common knowledge. Room, what do you think?
01:13
I think I've identified np.random.gamma (single call, large alpha array parameter) as a bottleneck in my program. Is there anything that could be faster?
wim
wim
Just my opinion, but I'm all for edits on accepted answers to fix up incorrect information, rather than comments saying what's wrong with the answer.
And it's not bad to have a short and correct "summary" answer, accepted, as well as another answer with extra detail for the people who can be bothered to read those in depth answers.
Perhaps you should consider to make the edits yourself next time?
As an aside, I am familiar with that user and their knowledge of the C source is remarkable. So, I wouldn't be so quick to assume that they've ripped off from other answer...
01:37
@wim when I have a competing answer, I have very little incentive to edit and correct other people's posts, and I'm a little surprised that you'd suggest I do so.
wim
wim
Well that's just showing that you have a different vision for the site than I do. It's not a competition.
The goal is to have the most accurate, up-to-date and correct content on site - and ideally in the accepted answer (as long as SO keeps pinning the accepted answer to the top, at least). It's not about having the best answer next to your username or making sure you got the better answer than some other guy.
btw, the 3rd answer here is the correct/best one, ironically --> stackoverflow.com/a/26476048/674039
02:40
I feel sad when people don't respond to an answer. It takes time and effort to write a well-crafted answer.
03:27
@MartijnPieters Deliberately a bit vague for today: My hours-too-late "aha!" moment was monotonic increase + grouping -> straight count...
@wim My vision is SO is basically a chatroom.
@Dodge Ugh, I really had today much earlier, but I thought part two was allowing pairs to be part of a group of four, just no odd groups, rather than saying that there had to be A separate pair not part of a larger group.
@toonarmycaptain Yes that was a bit unclear I thought and a few folks on reddit felt the same
@Dodge That last phrase seems clear enough to me 111122 meets the criteria (even though 1 is repeated more than twice, it still contains a double 22).
I'll chalk it up to lack of sleep then :)
03:46
I'll take that too, that and constant interruptions.
You've already surpassed last year's star count, which is good. That's my only goal this time around, and every year after that
I'm a little confused about leaderboard scores. Mine is currently 242, so average 60.5th person to complete per day. But only 24 people on our board have even completed a star?
it is the total number of users on the local leaderboard minus the place you finished
"For N users, the first user to get each star gets N points, the second gets N-1,"
If someone joins the leader board who finished a star after you did (or they didn't finish at all), then the board automatically gives you more points.
04:04
@toonarmycaptain There are about 45 users on that board so the max score if the total number of users was constant would be 360, you have 245. the difference is 118 which comes out an average of 14.75th place per star
wim
wim
yeah, the ordering is super weird.
I can kick off users that are not playing, if that would help anything
If you take a look at the source, it just accepts raw star times for each user, and calculates the board on the fly as if the current set of users was the only set ever.
(At least, that was the case last year)
So no, I don't think pruning old users would change much, except on years they did meaningfully participate.
04:25
Evening cabbage
o/
Evening!
(for many folks, anyway)
Hello. On this answer: stackoverflow.com/a/1162248/1779091 - at the bottom it says "Without private name mangling, my accidental reuse of your name would break your library.". Can someone explain to me why it would break in that example?
wim
wim
Meh, that's a pretty stupid answer.
Suppose parent has an init method taht calls fnX, then if child overrides the fnX, then an instance of the child class that calls the fnX will call the child method. Where as the self in the parent will also call the child method! Which may not be what you want. So I understand name mangling can be used to solve this problem. I am wondering if it has any other use at all? Then I came across the above link which suggests about name mangling on variables but it is not making sense to me.
wim
wim
04:46
The good answer is that 2018 one. Ignore the top answer.
@wim OK so this is only helpful for methods - any use of name mangling variables? I am just trying to learn here
wim
wim
not only true for methods - the same true for attributes that aren't methods.
@Dodge I meant per day, rather than per star - it seems to say 100 for first, 99 for second, and so on...but you may have a point about that coming out different for <100 users.
[Sorry, btw, was reading the meeting transcript, finally.]
 
1 hour later…
06:05
Advent of code, how often does a challenge rely on code from previous days?
I haven't been saving any of my codes so far, and i was not prepared for today at all.
It did specifically say in the day 2 desc that you should keep a hold of your intcode interpreter
I see, hmm
wim
wim
I was really prepared for it, had the IntComputer from day 2 already ready to accept new opcodes just by defining the new methods. They foreshadowed that you'd need it again later pretty obviously.
groan
I really dislike the end result of my code today, and would love to bury it and never see it again :P
wim
wim
> I haven't been saving any of my codes so far
^ let that be a lesson to you :)
put the code on github
06:16
I need to learn how to do that kind of fancy stuff, github is not my forte at all
wim
wim
for really bad code, "bury and never see again" means "git rebase -i" and "git push --force" :D
Oct 7 at 12:57, by Kevin
user image
But yeah, looks like i need to hold on to code files eh. lesson learnt
wim
wim
btw, I hope to be not sounding like too much of a jerk, but using version control is not "fancy stuff" by any stretch. It's perhaps the most basic skill you really must have or get if you want to call yourself a developer at all.
No, not at all, you're absolutely right
It's been on my "get comfortable with" agenda for a long time, but I've primarily been used to not using version control for "throwaway" codes, and only using version control systems in 1 user mode using GUI applications once or twice. I've never had to learn to use and collaborate on github, and it's tough for me personally to learn something unless I can immediately put it to use.
ofcourse, turns out aoc codes are not as throwaway as i first presumed :P
wim
wim
aoc actually try to teach you the importance of having a test suite too
I like that!
06:28
oh yea, that's true too! i wouldn't have been able to solve today's problem without those sample instructions that were provided. great for finding issues
06:49
Night rhubarb... I'm going to optimize my intcode computer after work tomorrow in case its needed again.
07:05
cbg
cbg
07:16
I have a local file rsa.py, how I can import it in my program?
if it's location is on the PYTHONPATH, simply import rsa. If it isn't you can add it to be findeable in real time by appending it's parent folder to sys.path and running the import thereafter
cbg guys o/
Ok thanks
07:32
@Arne I actually have installed Python's package rsa. But after adding the file location of my own local rsa.py file, import rsa importing the local file. So how the import is done? I supposed I need to uninstall the Python's rsa package.
no, you need to rename your file
calling a file the same as some installed package will mess up imports, so you should never do it
@Arne Ok, but I have implemented some new functions in m local file, and calling rsa.my_func() works after the import
(I think calling your first web-server file flask.py is the classic where all the children burn their hands for the first time)
@Quark I'd need to know your project structure to tell you why some things would work and others don't. But the short version is that if you run import rsa in a file that is local to your rsa.py (which will always be the case for rsa.py itself), then it will import that file instead of the installed rsa package, which is something that you never want. There are a couple of workarounds and fixes, but the easiest and most secure one is to just rename your file.
Python will need to figure out what to import based on the name. If there's a name conflict, it will import one thing. Depending on what you want, that can be desirable or undesirable
The bottom line really is, don't give files the same name as packages. And if you really want to overwrite behaviour of some package, there are ways to do that without running into messy name conflicts
And more often than not, you won't need to overwrite package behaviour.
@Arne Ok
@ParitoshSingh Ok
 
1 hour later…
08:57
cbg
09:20
@AaronHall can confirm that the editor knows their stuff without having to look at your answer
@JoelHarmon if it helps you can use our spoiler obfuscator (also available via userscript) and then you don't have to be vague to talk about current AoC
@ParitoshSingh in case you haven't seen it yet, learngitbranching.js.org is a really awesome game that teaches you most of the basics of git
(the primary thing it doesn't include is handling merge conflicts because it works on a higher level)
Hey AD!
That looks like an awesome resource, thanks a ton!
No problem, that's where I learned it from too. And of course I picked it up here.
There's also the git parable for the philosophy.
09:46
I learnt GIT from here: git-scm.com/book/en/v2
@AndrasDeak Andras, does that link cover practical example of merge vs rebase and when not to use one
Thats a gem then!
@variable I seriously suggest that you play that game from start to finish before asking your git problems here. Not just because I want to spare the room, but also because I really think it would greatly benefit your understanding of git.
It's got some fantastic visualizations so far, I'm loving it
@AndrasDeak No questions on GIT!
09:49
It might not explain "when not to use one", but if you understand how both works you can make educated decisions.
@variable really?
@ParitoshSingh - also understand about GIT workflows at some point it will help organize
And side note: git is not an acronym, so you don't have to write it with all caps. The official name is Git I think.
Git means many more things
;)
09:59
thanks, the 3cv change is such an improvement
I think that was a hammer by AD :)
nope, hammering only works on dupes
nope ^
Oh i see.
That means..wow that's awesome. Guess they decided the experiment was a success eh?
found the meta post Hurray!
It clearly was by all measures, still it wasn't obvious at all that they'd go forward with it.
10:03
Aye. I find it amusing that the "new post notices" are being stated as the reason they're comfortable with the lowered threshold
 
1 hour later…
Hi, anyone there ?
yesterday, by Andras Deak
@variable I kicked you because you were doing that again. Just a reminder.
I will have to pin that message if you keep asking random things here.
@variable in case my many explicit and official warnings haven't been clear: stop asking for help here. Ask elsewhere. Use google, reddit, quora, whatever. This room has lost its capacity for you.
11:52
Nostalgia flashback: Ski or Die. I never knew the name of this game, and I'd forgotten about it.
I also didn't know what EA was back then :D
Wow - that's a blast from the past...
@AndrasDeak your day4 AOC code was really nice to look at. Made me appreciate how to best translate problem defintions into code.
Hey, thanks :)
I just did something really stupid but actually stumbled upon something I don't understand
today's is mostly sweat and elbow grease :D
12:06
for x in range(len(segments) - 1):
                print((segments[x][0], segments[x+1][0]))
                segment_x_path = list(range(segments[x][0],
                                            segments[x+1][0])) or segments[x][0]
                print(segment_x_path)
are you...using tabs?
The printout from that is:
(5320, 4453)
5320
The default value is the integer, despite the range existing
But something like bool(list(range(5))) or 2 returns True
list(range(5)) or 2 should evaluate to list(range(5))
something's fishy
Ugh, sorry about the editing on the first post
@roganjosh what do you think range(5320, 4453) is? :)
12:09
LOL
Ok, I'll just shuffle back under my rock :P Thanks for that reality check
no worries
Feeling poopy today so decided to spend some time trying to catch up on AoC but my attempt to make it handle a huge number of wires on day 3 is just hitting me hard. After this problem, I think I'm just gonna focus on getting the right answer and not on extensibility
Yeah, most of my solution for part 1 works for n wires, but there's a single point where I have to assume 2 for simplicity
hmm, though now I realized I could get rid of that :D
Anything to do with my blunder? :P
12:19
Oh well, it was worth scraping the barrel to try feel better about it :)
oh you mean like that
@αԋɱҽԃαмєяιcαη how is it against SO's terms of service?
last time you guys told me to write the reason. so i wrote it !
closed it as too broad / needs focus
Yes, but I thought you meant verbal abuse. That would've needed flags, not close votes. But this one is probably okay.
@AndrasDeak yesterday you said it's not allowed to scrape website without prior knowledge. so it's against SO and FB policy .
12:33
@wim I knew I'd need it again, but I figured I had at least until the weekend to do some refactoring. Ah well.
anyway i hope i reached the correct meaning :P
@AndrasDeak Thanks, I'll try to remember that.
@αԋɱҽԃαмєяιcαη FB ToS probably. SO's ToS doesn't care about that. There's some discussions on meta about illegal content, and I think it's okay to close these, but not against SO's ToS.
anything against SO's ToS would probably need a moderator flag :)
12:35
@αԋɱҽԃαмєяιcαη you should remove your comment on that question, it's kinda incorrect.
ok
@shad0w_wa1k3r thanks for clarifying
Done :)
12:53
I'll cave; this question upvote reputation change is starting to get to me. The 3-vote-close was certainly timely
13:40
@αԋɱҽԃαмєяιcαη There's nothing wrong with scraping a website without asking for permission. It's what Google does, after all. Nor are terms of service forbidding such actions something we should necessarily respect; it'll depend somewhat on jurisdiction, but in the US LinkedIn recently lost a case in which not only did the judge deem their TOS banning scraping to be invalid, but forbade them from using technical means to block scrapers!
Therefore, IMO, we should not take any action against questions just because they are about web scraping, even if they're scraping a site whose TOS forbids it. It's sometimes legally grey, but is certainly not blatantly illegal nor immoral.
If the website actively hinders scraping by throttling requests then trying to get around that is ethically questionable in my opinion
@AndrasDeak Questionable, but not clearly wrong. There will often be a defensible legal and/or moral case that the site doesn't have the right to try and prevent scraping in the first place, and that therefore bypassing the protections is justified
If a local business decides to fence off a public road to use it for a private event, then in a sense I'm bypassing a security measure if I climb over the fence. But I have every damn right to do it.
not sure about the morality of a company deciding how it lets its users access its resources for free :)
we're not talking about public roads
Well, we may or may not be! Many private businesses have websites that host what is legally public domain content or content owned by users, and then try to prevent scraping it
@MarkAmery Something I always consider in this case: My best friend worked for a suicide-prevention helpline. Something something, they needed a list of all GP contact numbers in the country. I set up a scraper for such a site that gave them to me and did it in batches of 50 requests. In any case, it was still a lot of requests over a 24hr period. I got the data, but then the site was gone. I guess they were paying for traffic
13:47
@AndrasDeak thanks.
So in trying to do a nice thing, I probably just cost another voluntary service money and shut their service down. That's not a nice thing
@roganjosh As an ethical point, scrapers should certainly try to avoid DOSing the site they're scraping. But do you really think you wiped out a site with a single pass over its pages with a scraper? That seems unlikely.
The legality of scraping is irrelevant to me, and courts do not get to tell me what is moral. If I think a question is up to no good, then I'll downvote them.
another explanation is that they noticed someone scraping all their data and decided they didn't want to keep this option open
@MarkAmery I did in batches to deliberately not DoS them. Whether it's coincidence or not that the site disappeared the next day, I think it's a nice moral compass to assume it did cause them to take it down
13:50
perhaps hosting the site was a nuisance for some reason, and this pushed them over the edge
The average scraping question is not gathering contact info so they can improve the efficacy of a suicide hotline. The average scraping question scans airline ticket sites so the OP can profit via ticket scalping.
legal or not, many scraping questions show zero effort. "Plz codez" is not a sign of holding the moral high ground.
well yeah, there are usually several problems that might apply
14:10
I can feel the holiday spirits as well as the dread of finals all at the same time. What a beautiful time of year.
14:38
cbg all
@Kevin certainly. I personally use that case, which made me feel quite bad to set my benchmark. It gives me a point of reference on the justification vs. scrapee-resources scale :)
A bit meta: I just ate my first ever Rogan Josh. Quite tasty, actually; I'd always assumed they were spicy.
Morning cabbage
I'm OK with arbitrage in the abstract, but when the arbitrator is trying to hide what they're doing from the seller and the people giving them free labor, it puts a bad taste in my mouth
@roganjosh you monster
14:51
Huh, now I need the fancy word for eating oneself; I feel sure this is gonna come up in a crossword
morning cabbages, all
In universes that follow the laws of econ 101 textbooks, arbitrators are a logical consequence of an irrational market where the cost of a product doesn't match supply and demand levels. You may as well curse the tides for coming in.
autocannibalism?
I was thinking that, time to check it out
Sellers could bankrupt every scalper overnight if they priced their goods at their actual value
14:52
@inspectorG4dget yep. Thanks :)
so exactly what is this thing that you ate that shares its name with you?
It looks good
Rogan Josh, that is
Rogan josh (British English /ˌrəʊɡən ˈdʒəʊʃ/, American English /ˌroʊɡən ˈdʒoʊʃ/) (Hindi: रोगन जोश) (Urdu: روغن جوش‎), also written roghan josh or roghan ghosht, is an aromatic curried meat dish of Persian or Kashmiri origin. It is made with red meat, traditionally lamb or goat. It is colored and flavored primarily by alkanet flower or root and Kashmiri chilies. It is one of the signature recipes of Kashmiri cuisine. == Etymology == A number of origins of the name have been suggested. Roughan means "clarified butter" or "oil" in Persian and Urdu, while juš (alternatively romanised josh) means to...
14:54
@roganjosh one of my favs with tandoori roti ;)
@roganjosh They can be spicy if you want them to be :)
No no no. I go bright red with even a little bit of spice. I'm hopeless there :)
15:16
is that the dish or the human, speaking?
user11867329
Do you know if it's possible via script to:

1. Create file.xml
2. Add 2 lines of text
3. Timer for 31 minutes
4. Add one last line (bottom/last line)
5. Wait until file gets opened/fetched/interacted with
6. Clear file
7. Loop back to 1

(Before I learn how to script it, any leads?)
user11867329
pyscript
I could describe myself as spicy but it would feel like I'm writing a pathetic dating profile
user11867329
@roganjosh Are you Indian? Would make a great pun.
@OakDev I'm not, no
user11867329
15:19
Ok
could you still share the pun?
@inspectorG4dget lol.. :D
@OakDev all of that is possible
user11867329
@roganjosh Any leads?
@roganjosh How would you detect 5? Does mtime change?
15:20
@OakDev Leads on what, exactly?
@inspectorG4dget You can poll the file for edit times?
@roganjosh edit, sure. Fetch/read?
user11867329
@roganjosh Specifically for 5.
user11867329
API call from system to go fetch file (to import)
@Emm please see the room rules. Questions that are less than 48hrs old should not be posted because it can lead to duplicate conversations
how to sort the duplicate based on Name here
print(df[df.duplicated(['Name'],keep=False)])
15:24
@OakDev I don't follow this part
Are you saying that you're in control of all readings of the file?
@inspectorG4dget roomba will do that automatically
@αԋɱҽԃαмєяιcαη what does sort mean here?
Emm
Emm
@roganjosh cool, sorry about that
@Emm no problem :)
@anky_91 for example if the name if Ahmed, so i want the duplicates of same name to appear together. such as for Buffalo here.
2    Buffalo Wild Wings  Chicago  ...             4.4             2
8             Taco Bell  Chicago  ...             4.1             1
10    JJ Fish & Chicken  Chicago  ...             4.3             3
15   Buffalo Wild Wings  Chicago  ...             4.2             1
@OakDev Android or python? This fishing for help in multiple places is getting a bit old.
@αԋɱҽԃαмєяιcαη that's not what duplicated does. You either want to groupby the name or drop duplicate names. Your code seems to go against your attentions
you would probably want to df.sort_values() by the_first_column_name @αԋɱҽԃαмєяιcαη
I'm having difficulty parsing the instructions for AoC Day 5
15:29
@αԋɱҽԃαмєяιcαη I'm confused now. So it's just a problem of sorting
@toonarmycaptain yeah, it's a bit confusing
i think so based on "i want the duplicates of same name to appear together. such as for Buffalo here" @roganjosh
let me know if you need actual help
@anky_91 now i got it. i were trying with print(df.sort('Name')[df.duplicated(['Name'],keep=False)])
sort_values('Name') did the task.
@anky_91 thanks
ahh, i see. you'd better off using sort_values()
no probs
15:36
@AndrasDeak ugh. I already had suspicions that they'd tagged on to inspectorG4's legitimate question in the previous comment :/
hah, interesting abbreviation of his name :)
"any pointers" --> suddenly it's all about point 5 because someone else raised a valid point. Separately: @inspectorG4dget good point :)
@AndrasDeak it's what the chat system shows me :P
I know the full name but figured I could just leave it at that before typing more characters :)
@roganjosh pro-tip: I respond to iG4 if I see it (though I don't get a notification), and I imagine it's fewer keystrokes
15:42
@inspectorG4dget even better; noted, thanks
@inspectorG4dget Apple's lawsuit is already on its way
bwahahaha!
Proposed abbreviation: i13t, a la i18n
iG4 comes with a Reality Distortion Field as standard. Pretty nifty.
@Kevin so that's what it stands for!
I prefer "kubern8s" and the like
15:46
I would assume the mantle of K3n if it didn't look like a script kiddie username from 1997
<marquee><blink> You have been haxxored by: K3nn3+h the darkflame avenger </blink></marquee>
@AndrasDeak Will do. Right now, I'm thinking that opcode 3 intstructions only has 3 integers? eg opcode=3, value, position/index_to_save_value_to` - have I got that right?
yeah, but it would be so awesome if you met someone named b4rb1e
@toonarmycaptain sorry, not sure what you're asking there
Opcode #3, aka "input", is composed of two values: the opcode itself, and one argument, which indicates where the inputted value will be stored.
So more like input is 16: 1603, target_index_to_save_value_to ?
15:51
The input value isn't part of the instruction. The "extra stuff on the opcode" is for indicating immediate mode, which is separate from input.
I was hoping to subclass my implementation for day 2, but I think I'll just have to copy and modify, since I put a validator in each opcode executor to ensure that it's starting index was a multiple of 4
1603 means "opcode #3 (aka input), with parameter modes [1, 6]". But 6 is not a valid parameter mode.
So where is input coming from? :s
You need to provide it. Think about where input comes from in Python's subprocess.
Much like Python's own input(), the inputted value is not anywhere in the source code. You could mimick python's behavior exactly and take the value from stdin...
Or perhaps you could set up some kind of pipe ahead of time that you pull values from, without requiring the user to actually type anything
15:57
Ah ok. I'll probably just have a function that yields the series of values given as inputs (assuming part 2 has more than the one input).
Sounds good to me :-)

« first day (3337 days earlier)      last day (1835 days later) »