« first day (2543 days earlier)      last day (2408 days later) » 
06:00 - 18:0018:00 - 00:00

6:13 AM
cbg
 
6:59 AM
cbg
 
NGB
Hey guys...this is my first time here...so how exactly do I use this chat room?I mean what purpose? I can ask questions on forum itself if I have any..!
 
@NGB Welcome to the Room :-) Please go through our chat room guidelines
 
7:43 AM
@NGB It's chat. You can...chat
 
8:02 AM
    print("reps: " + str(reps[1]))
IndexError: list index out of range
reps: (rectangle(204,119,589,504), array([ 0.04270259,  0.08762082,  0.19836941,  0.22987883,  0.02552508])
I am trying to print the array inside this tupple, yet [1] is out of bounds
 
I'm sure that's not the value of reps, because that's a tuple, not a list, and the error message says "list index out of range"
 
@Rawing answer was reps[0][0]
Just found out, thx
* reps[0][1]
 
You are about to close 140 tabs. Are you sure you want to continue? Umm...
 
8:40 AM
cbg y'all
 
 
2 hours later…
10:18 AM
cbg
@AnttiHaapala abort! abort!
 
hmhm
so, anyone know how to search google on how to calculate the number of events per (timeframe) just as an approximation, by counting the exact delta-t between newest 2 consecutive events...
 
hello
 
@AnttiHaapala isn't just the answer sufficient?:P
 
10:35 AM
well, it is too rough
so something like a particle counter?
 
"too rough" is encoded in "exact delta-t between newest 2 consecutive events"
that info is just not enough to get a reliable estimate (too much fluctuation)
 
so :P
 
abandon all hope and move on to something else
 
there is t, t_e1, t_e2 and some sum value...
let's assume a digital Geiger counter that would count events per hour.
 
a digital Geiger counter measures thousands/millions of events for seconds
 
10:40 AM
:D
so, something like a exponential moving average, but it should work for smaller...
or perhaps just that.
just calculate for 1 second windows say.
 
how often are your events incoming?
5 seconds? :P
 
Cabbage!
 
hey @PM2Ring, been a long time!
I hope everything's OK
 
Yeah, I haven't been well. And I guess I needed a bit of a break from SO...
 
:(
the best of the worst still awaits on the front page :P
good to see you
 
10:54 AM
:) I've answered a few questions over the last day or two.
 
I haven't been totally idle. I got nerd-sniped by a question on XKCD: Possible "Spot it!"-like decks, and spent some time learning about finite projective geometry and writing code. I've also done some related SVG & POV-Ray images.
@AnttiHaapala Maybe something here is relevant: en.wikipedia.org/wiki/Exponential_decay#Mean_lifetime
 
11:09 AM
Here's a GIF anim of a ray-tracing I did of the simplest 3D finite projective space, PG(3, 2) and a 3D still image
 
Fano plane!
well, 4 of them
 
Yep. It's the 3D version of the Fano plane. So it contains 15 Fano planes, although some of them are a bit bent. ;)
 
nice
 
Thanks. The black ball is the origin; x, y, z are mapped to red, green, blue, respectively. The black and the light balls are finite points, the dark coloured balls on the opposite face to the black are the points at infinity. I use lowercase for finite points & uppercase for points at infinity. So the light blue ball is z, the dark blue is Z, bright yellow is xy, dark magenta is XZ, white is xyz, grey is XYZ. Etc.
 
Cabbage
 
11:23 AM
cbg
 
Annoying people that delete their question immediately after responding to my helpful comment just because the question was closed… LET ME HELP YOU Q_Q
>_<
 
@poke little less contrast please :P
 
I can’t! The question got deleted, so everything got grayed out
 
We have 4 normal Fano planes on the faces of the tetrahedron, and 6 slightly squashed ones that have their base on one edge of the tetrahedron with their apex on the opposite edge. Then there are 4 conical Fano planes with a vertex of the tetrahedron as the apex, and the circular ring on the opposite face as the base of the cone. The final plane consists of the 4 circular rings and the white ball.
 
@PM2Ring No idea what that is but it’s kind of beautiful
 
11:25 AM
Thanks, Poke!
 
@PM2Ring ah, I can only see that flat ones
@poke this is one Fano plane
I'm only familiar with it because it's one representation of the multiplication rules of octonionic units
and "familiar with" is more like "I saw him in a bar once"
 
uhuh
 
@AndrasDeak which is more than we're to each other :P
 
You know, octonions; they are like quaternions only weirder.
And quaternions, you know, they are like complex numbers only weirder
 
as in "never saw, not even in a bar :P"
 
11:30 AM
Here's an interactive version, but it's an ad for a 3D printed one, so it's monochrome. shapeways.com/product/FYRECMAAJ/projective-space
 
Saw a turtle question... thought I'd pop by because for some reason I thought aha "Kevin will probably like that!" and lo' and behold - he's already answered it... I've been Kevin'd trying to get @Kevin to Kevin something...
 
@PM2Ring If you give me a 3d whatever-file-necessary I could ask a friend to print it ^^
 
Here's a version of the Fano plane I haven't seen before. I assume other people discovered it before me, but who knows... gist.github.com/PM2Ring/16f76a2021b48196be21d4447b7af90b There's really only one ball of each colour, the others are like mirror images in a kaleidoscope.
 
Why is that a Fano plane?
 
@poke Well, it's an alternative visualization of the Fano plane. Imagine there's a mirror on the vertical axis, and a mirror on the horizontal axis. So we have 7 points and 7 lines, with 3 points on each line, and 3 lines passing through each point. The red lines are all parallel to each other, with a slope of X, so they meet at the X point at infinity on the outer circle. Similarly, all the purple lines are parallel and meet at the XY point at infinity.
 
11:45 AM
But I understood the Fano plane’s special characteristics being that on every line, there are 3 nodes. So even if you expanded this to more, you have 5 on most of the lines, 4 on the XY-x-y-XY line, and 8 on the outer circle.
 
No, as I said earlier, those are just "mirror images". Eg, the 2 bright red points labelled "x" are actually the same point, the 4 bright purple points labelled "xy" are really just 1 point.
 
Ohhh, I think I get it now
So it’s actually 4 fano planes stuck to another (or rather merged), and all the lines bended in a different way
Ohh, and the line color tells me what lines are dual to what point.
That’s pretty cool :o
 
Originally I wanted to add translucent planes to the 3D version, with the plane colour indicating the point-plane duality, but when I tried adding translucent planes the image got really confusing.
 
I can imagine
 
12:03 PM
work cbg
 
cbg
 
@PM2Ring wb
 
@PM2Ring Looks very cool, PM
 
12:22 PM
Here's the more usual projection of the Fano plane using that same colour scheme gist.github.com/PM2Ring/607b9c294138d1809b00c0adad00dd33 Open the SVG in its own tab or window so the mouseover stuff works...
Thanks Paul. I've been familiar with projective geometry & homogeneous coordinates for years, since it's a sensible way to do 3D rendering stuff. But I've never really played with finite geometry before.
In the process of doing that ray-traced Fano tetrahedron, I ran into the problem of fitting an ellipse into an isoceles triangle such that the ellipse touches the midpoint of the base of the triangle and also touches the equal sides at a specified location. After a day or so of algebra I stumbled across the simple solution, which is illustrated in this Tkinter program: gist.github.com/PM2Ring/c5cceea0115b593148758174b8472153
 
I have come across this Fano Plane concept without ever really looking into what it is, and my first impression is that it's a real pity that despite probably being a triumph of insight and ingenuity on the part of the discoverers, the end result is a circle inside a triangle, which is rather less visually impressive than pretty much any other Neat Geometry Thing ever made
This has been my vapid opinion, thanks for listening
 
Well, it is the simplest finite projective plane, so it's reasonable that its diagram is reasonably simple. ;) However, you need to bear in mind that that circle is really a line, and no different to the other 6 lines, it only looks different due to the limitations of trying to illustrate the Fano plane on a Euclidean plane.
 
12:40 PM
Yeah I got far enough through the introductory paragraph on the Projective Plane wikipedia article to understand that it has something to do with rendering the intersection of parallel lines at infinity in a sensible manner, which strikes me as similar to how human vision works. So I'm sort of conceptualizing the circle as a straight line viewed through a fisheye lens
 
o/
 
Well, the paying job beckons... rbrb for now
 
resist the call, come to the broke side
 
wallet starts screaming
 
@Kevin That's true for general projective geometry. But the Fano plane is a finite projective space. It only contains 7 points and 7 lines, anything else you see in the diagrams is an artifact of the representation.
 
12:47 PM
My "you will actually have to read the whole article, not just look at the pictures, to understand this concept" sense is tingling
 
lunch cbg
 
resist the urge, come to the handwavy side
you know, I changed my mind: nobody come, I'm leaving
rhubarb
 
:) If you want to know some of the applications of the Fano plane, take a look at "The Many Names of (7,3,1)" by Ezra Brown, and the follow-up article "Many More Names of (7, 3, 1)".
 
ah, nothing like coming back from uni and having 2 responses waiting in your inbox - one of which is "I can't provide an mcve because I can't reproduce the problem"
 
1:03 PM
@Rawing nothing like casting a cv
 
oh, I did. But the nice person in me stuck around and gave the OP tips on how to improve the question, and kept copying 4 tiny fragments of code together to try and reproduce the OP's problem, and kept asking for a proper mcve because the OP kept making (small) improvements to the question
I'm starting to think SO should try harder to inform newbies what SO is all about... people come here with the idea "this website is here to solve my problem" all the time, when in reality it's all about future readers who come here from google
 
I am informing, with my hammer
 
And also all those people who post answers on obvious duplicates - I'm sure a large portion of them think it's all about helping the OP solve their problem
 
I constantly downvote and hammer almost every single questions
 
That's janitorial work. I'm talking about preventing trash from being produced in the first place :p
 
1:16 PM
@Rawing like here:
 
Maybe slap a massive "SO is all about recycling!" sticker somewhere
3
 
0
Q: How to store the return value of time(NULL) in a text file?

Mubashira ZamanI am creating random numbers for my code and I am using the seeding method for the purpose of debugging. What I want to do is to store the return value of time(NULL) function which will be used by the srand() function. The value is to be stored in a log text file so that it can be used to analyze...

this one, I searched for a duplicate and the duplicate had much better answers that I could think of in first 3 minutes...
including what people would come up with in the first 3 minutes.
 
@Rawing that's pretty good idea
and maybe a penalty for pretty clear duplicates
maybe a bot that answer trivial questions using google search :p
question title -> google -> first three links
 
Imagine there was a giant popup for new users that said something like this:
"The goal of SO is to provide high quality answers to specific programming questions, to serve as a resource for programmers who come to SO from a search engine like google. Its aim is not to solve your problem alone, but also that of other programmers who read your question in the future. As such, we expect users to 1) make sure the same question hasn't been asked already and 2) compose a clear, answerable question that is helpful for other people"
 
I mean it already does a version of that as you're typing, suggesting questions down the side that might be related.
 
1:27 PM
I'm fairly confident that would go a long way in improving question quality.
 
@Rawing you should write to meta
 
I guess I should. Time to post a well-received meta question for a change
(I like to be optimistic, okay?)
 
ya:D
like the menotring q
 
cbg \o
 
@Rawing you think people read such long sentences?
 
1:35 PM
@FlorianMargaine We'll force them to. It'll be dialog that pops up when someone tries to post a question, and can't be closed for 30 seconds :p
 
Nobody reads under any circumstances, so you may as well make your sentences as long as you like :-P
Hmm, I must be misreading the definition of finite projective planes because I don't see why a complete graph of four nodes doesn't qualify, since wikipedia says that seven points are necessary
 
Maybe one day I'll master the skill of not-omitting-or-duplicating-random-words-in-sentences...
 
@Rawing so they would sit there (alt tabbed is optional maybe) and then wait for the box to go away.
 
Yeah, okay, some of them will. It's not foolproof. But wouldn't it be an improvement?
 
Oh, oops, a fully connected graph with four nodes violates "The intersection of any two distinct lines contains exactly one point", ex. lines AB and CD don't intersect
 
1:51 PM
@Rawing it might... I feel like a parser for code might be worth, sort of count the number of { } ( ) [ ] in a post and make sure they are balanced
 
If we have a bracket balancing parser, we have to choose between
1. incorrectly rejecting code like `print("(")`
2. Writing individual parsers for every language that has different rules about how string literals work
 
@MooingRawr I see you think very highly of my idea :/
 
In some languages it's fine to have unbalanced brackets even outside of strings. Brainf---, for example
 
I'd want questions that use print "hello world" to be rejected on SO.
 
But the effectiveness of a popup aside, the point is that SO should do a better of communicating "SO is different from normal programming forums" to newbies. How exactly it should do that is debatable
 
1:59 PM
Not all problems have solutions.
♪ We're trapped in the belly of this horrible machine ♪
 
DSM
Monday morning cabbage for all.
 
Hmm, there's a syntactical problem in using Unicode music notes to indicate that a phrase is from a song, when that song is actually more of an atonal spoken word thing.
 
@Rawing sorry not to bring you down or anything. I just feel like people don't read enough already. Forcing them to read is not going to turn out well enough... :\ It would help since some would read it, and I guess that in itself is a victory, but I don't see it as the solution to end all (I don't think there is).
@DSM hows the weather treating you.
 
DSM
Much more comfortably over the last few days.
 
I feel like I remember seeing an article or podcast or something where a SO bigwig discussed why they don't try harder to stop newbies from submitting junk. I think the bottom line was "they're real good at circumventing any obstacle we put up without learning anything in the process"
See also: posts with titles like "problem in Python? words to make the 'enter a better title' box go away"
 
DSM
2:10 PM
Maybe a network of clever programming puzzles, each more intricate than the last?
 
To verify you are a programmer, enter the solution for Advent of Code 2016, day 18, in the box below
... Which also stops people from asking "how do I solve Advent of Code day 18?". Two birds one stone
 
funny
 
2:40 PM
#nichehumour
 
DSM
So I just discovered I didn't have an animated-gif-suppression extension on my work browser. This oversight has now been corrected..
 
Even worse, Toggle Animated GIFs doesn't work on Firefox nightly.
It hasn't been upgraded from the old extension API.
 
@MooingRawr That's easy enough to do. See here. Sorry the code is Python 2, but I wrote it a few years ago.
 
I have a nice "Toggle Animated Gifs" extension, which can pause gifs and rewind them to frame 0. So it's also good for the common use case of wanting to view an extremely long gif, so you go make a cup of tea, and when you come back it's fully loaded but you have no idea where in the loop you are, and want to start from the beginning, without reloading the page and risking the chance of having to redownload the gif from scratch thanks to poor caching choices
 
Yep, that's what I had, that doesn't work now. :-(
 
2:44 PM
It's marked with a scary LEGACY label in my extensions window, so it may crumble to dust and blow away at any time
 
I had that too until I was convinced to update firefox >:|
 
cbg
 
So I guess there are some advantages in having an ancient Firefox (29.0.1) on this machine. ;)
 
DSM
Hey, PM2R!
 
2:47 PM
Hi, DSM!
 
@Withnail lol
 
Ok, I now understand what a Fano Plane is, and am now trying to determine whether the circular line is drawn as a circle because of artistic liberty, or because there's no way to draw seven points and seven straight lines containing three points each and each point containing three lines each
 
As PM said, they're all circles [Bront]
And probably no chance of that with lines
 
I'm surprised that "circle" is a meaningful term in the context of finite geometry
 
I don't think the lines/circles are part of the object
Just 7 points arranged in a graph, no?
 
2:56 PM
If by that you mean you don't think there's a qualitative difference between the line depicted as a circle, and the six other lines, I agree
 
Traditional lines contain inf points so finite geometries can't have traditional lines
 
Yeah they seem to use a definition of line like "a finite set of 2+ points"
Which incidentally means that you can't capture all of the information about the plane using an ordinary graph, because you can't tell from a graph whether three points are all part of one line or not.
 
hmm
yeah, you have ordered(?) triples
ordered modulo cyclic permutations
indeed that's more than a graph
 
Here's a Fano plane drawn with 4 circles & 3 straight lines. This one's in my raytraced stuff I posted earlier, but it's easier to see here without all the additional clutter.
 
Interesting
 
3:05 PM
yeah, I couldn't see that in the 3d one
I Can't Believe It's A Fano Plane
 
I wonder if you can draw a Fano Plane using only straight lines if you use something other than a flat surface. Like a torus or a sphere or something.
 
odds are much better that way
 
Or, hmm, is the concept of "straight line" even well defined for a torus?
For spheres we can say great circles are lines
 
yes, geodeticals
although most of those are infinitely long on a torus, I think
if the slope on the unravelled torus is rational, or something, then it's finite
you know, imagining your torus as a rectangle (or a parallelogram) with a shifted periodic boundary
 
Mm hmm, mm hmm. I know some of these words.
 
3:09 PM
rbrb folks
 
I can only make intuitive conclusions about the behavior of torii by imagining the Pac-Man screen
 
that's pretty close to what I had in mind
left and right, top and bottom are equivalent
the purple arrow is part of a line, which would actually be a corkscrew around the torus in 3d
 
So whether the line eventually meets its starting point depends on the dimensions of the rectangle, then?
 
yup
side ratio vs slope of the line
you have obvious vertical/horizontal circles, and a bunch of rational-ratio finite lines, but a bunch of infinitely long ones
 
@Kevin Traditional geometry doesn't define what points or lines really are, it just uses a hand-wavey appeal to intuition. Around the time that non-Euclidean geometries were being discovered / invented it was realised that a collection of mathematical axioms can apply to multiple different models, and those models may appear to be quite different on the surface.
So (for example) if we get the 4 main axioms of Euclidean geometry (ignoring the one about parallels) we can apply it to the geometry of a sphere by defining "line" to mean a great circle and "point" to mean an antipodean pair of points on the sphere.
 
3:13 PM
I did a little bit of work with spherical geometry a while back when I really really wanted the accept on a question regarding the behavior of the point-in-polygon algorithm used on the surface of a globe
 
And so in finite projective geometry, we're free to do a similar thing. The points and lines of finite projective geometry obey the first 4 axioms of Euclid, but they aren't exactly like the points & lines of plain Euclidean geometry.
@Kevin Yeah, I remember that. Curiously, some spherical trig formulas were discovered before the equivalent plane trig formulas. That's because spherical geometry & trigonometry were of great interest to navigators, and also to astronomers dealing with the celestial sphere. And of course, having good star maps is pretty useful when you want to navigate by the stars.
 
PiP works well enough on a sphere but it's harder to choose an arbitrary reference point for the "outside" of the polygon. In regular geometry you can just pick a point a million units away from the shape. But on a sphere there's nowhere to run.
 
which part of the polygon is even the inside? :P
 
One might define the inside as "whichever part has the smaller area" but ofc that doesn't work for shapes that divide the world exactly in half
 
3:29 PM
@Kevin I doubt it, I think you also need to throw in reflection, like I did with the Fano Disc I posted earlier.
 
I've half-convinced myself that it's possible in principle but I have no practical way of determining what the slope of the line would be
 
DSM
Everyone's having fun talking about geometry and I have to herd cats :-(
 
hey, cats are great!
you know, when you don't have to live with them
 
Herd those cats with plastic rods, I hear that works really well. And if all else fails you can stick some of them to the wall to make things easier.
 
3:47 PM
That last 3D Fano image I posted is a bit crude, so I just raytraced a better one:
 
neat!
 
I guess I ought to do one of the conical ones too...
 
Hmm this is somewhat complicated by the fact that for any two points on a torus, there's more than one way to draw a line that contains them
I've half unconvinced myself that it's possible now, because the first couple of times I found a torus-line that connects 3, 5, and 6, it also contained some of the other points.
 
My meta post got an upvote literally 5 seconds after I posted it O.o Whoever that was can read hella fast!
 
Dunno if all lines behave that way or if I'm being insufficiently creative
 
3:56 PM
Nevermind, it's gone.
 
Or you got a downvote to balance the original upvote
 
When it comes to agreeing with the conclusion PM made twenty minutes ago, it's not the destination that matters, but the journey.
 
4:17 PM
hello all i asked this stackoverflow.com/questions/45035554/… question on SO was wondering if any one can help me with a pseudo code or any pointer how to solve it?
 
Is the output file supposed to be all on one line?
 
it can be rows as well,
did you mean can it be transposed?
 
I mean, the sample output you showed is one single line containing everything from "sample" to "metainfo_file90" and I wanted to know if that's what you wanted or if you made a mistake while writing the post and didn't notice that you didn't have a new line in between each metainfo entry
 
i was trying to show only the header of the final file with columns tab separated
 
So the actual output should be two lines? The header and the actual filenames?
 
4:27 PM
yes
or a transpose of it will work to if that is easier, in which case there will be three columns header first with all the meta-info followed by john and adam
 
hmm
How many rows does a TSV typically have?
 
That's a Fano plane using the conical configuration.
 
@PM2Ring so pretty . Math is so pretty, but so hard to understand
 
Thanks, Mooing.
 
4:34 PM
Now I wonder if you can make those balls rotate on it's 'axis'
 
DSM
Is there a good place (in stdlib, in requests, in flask, wherever) where I can do someplace.METHOD_NOT_ALLOWED and it'll be 405?
 
@MooingRawr Well, sure. I posted an animated version of the full diagram earlier: i2.photobucket.com/albums/y43/PM2Ring/PG32Danim_zpsy3xhdgk8.gif
 
write_header_to_output_file()
for master_row in master_file:
    results = [master_row["sample"]]
    for i in range(1, 91):
        for colname in ("metainfo_1", "metainfo_2"):
            match = None
            filename = "file{}.tsv".format(i)
            with open_tsv(filename) as tsv_file:
                for tsv_row in tsv_file:
                    if master_row["sample"] == tsv_row["sample"] and master_row[colname] == tsv_file[colname]:
                        match = filename
                        break
Something like that.
Obviously this isn't going to work straight out of the box because I skipped all the bits where you take a tsv and turn it into an object that can be iterated over and indexed using column names. Maybe there's already a built-in module that does that? idk
 
I can work with this appreciate it
can you post it out in the main question? ill post my results there
and accet this
accept*
 
Eh, I haven't subjected this to the scrutiny that I usually require of posts that I make on the main site. I've been burned by my own slapdash work before
Already I see a typo: I wrote tsv_file[colname] when I meant tsv_row[colname]
 
4:43 PM
there's probably a good pandas solution but many argue that using pandas when it's not necessary is...unnecessary
the post-reading logic that's needed sounds like it could benefit from pandas
 
If pandas has a way to turn a file into a list-of-dicts-keyed-by-colname, then that would be a great reason to use pandas
 
list of dicts?
 
Hah! I just got an accept on a silly answer I wrote to a "Print an arrow of asterisks" question. But I guess my answer's kinda Pythonic because it doesn't loop using indices. stackoverflow.com/q/46515311/4014959
 
Yeah. For example, When fed the master file from novice's post, rows[0]["metainfo2"] would give 20
 
pandas has something called use_cols idk if it can be used in this context
 
4:45 PM
@Kevin well, a dataframe has indexable rows and columns as keys
so yes
and pandas.read_csv sucks it all in into a dataframe
 
Rad.
 
Ah, I spoke too soon. I guess the OP was trying to accept all the answers. Oh well, it was fun while it lasted. ;)
 
DSM
For this was grep invented:
In [7]: http.HTTPStatus.METHOD_NOT_ALLOWED.value
Out[7]: 405
 
>>> from io import StringIO
>>> master = StringIO('''sample metainfo1 metainfo2
... John   10        20
... Adam   30        40''')
>>> import pandas as pd
>>> df = pd.read_csv(master,sep=r'\s+')
>>> df
  sample  metainfo1  metainfo2
0   John         10         20
1   Adam         30         40
>>> df['metainfo1']
0    10
1    30
Name: metainfo1, dtype: int64
>>> df.metainfo2[1]
40
etc
 
@AndrasDeak I wasn't able to come up with anything on that Quantum tunnelling question, apart from "something about the electrons passing through a barrier eg air/surface(and dirt/oxidation thereon) between electrical connectors that classical physics says they shouldn't to the degree that they do"
 
4:50 PM
@toonarmycaptain well that would be tunnelling itself ;)
the problem is not classical vs quantum I believe, but quantum vs quantum tunnel
classical physics is largely useless for solid state physics
 
@AndrasDeak I guess when that tunneling is only explained due to quantum effects it's called quantum tunneling? I'm surprised I can't find anything at least denying this, as I've heard it claimed before.
 
whoever starred that message: thank you, but it's needless to star messages as a way of saying thanks. It's preferred if only such messages are starred which are interesting to a broader readership
@toonarmycaptain classical tunnelling is nonexistent
 
@AndrasDeak BTW, you can make multi-line triple-quoted strings a little neater by starting them with `'''\` and starting the actual data on the next line. The backslash escapes the following newline, so you don't get an unwanted blank line at the start of the data
 
Tunnelling is when you have finite transition probability across a potential wall that's larger than your kinetic energy. The probability of this in classical mechanics is exactly 0.
 
@AndrasDeak if i do something like this `for _file in allFiles:
df = pd.read_csv(file, sep= '\t')` each file will be stored in the memory right?
 
4:53 PM
@PM2Ring thanks, I was just doing it quick and dirty, and I have an irrational aversion to line continuation backslashes
@novicebioinforesearcher what do you think?
And how experienced are you with python?:)
 
i guess yes
on scale of 1 to 10 may be 2
10 being highest
 
think of what a loop does
first _file is allFiles[0], and it reads the first file into df. Then on the second iteration, _file is allFiles[1], and...?
 
im trying to understand pandas vs pythonic way that kevin suggested in terms of memory as well may i am thinking to much
 
@AndrasDeak Fair enough. I mostly avoid line continuation backslashes too, that situation with the triple quoted strings is my only exception.
 
If between July and today you had committed your mind body and soul to the art of learning Python, you could have been a 6/10 by now :-P
 
4:55 PM
My point is that each file will be discarded when you rebind df to the next loaded file in each iteration. You can do this, but then you need to put all the logic concerning a given file within the loop
 
I wish I could dedicate more time @Kevin trying to juggle benchwork and this
 
so you would not have all the files in memory
 
@AndrasDeak I see thanks
 
but you usually don't have to do that either
it's not a bit more efficient to "load them all then process them all" rather than "load one, process one, do the next one" (in case the latter is logistically feasible of course)
unless you can make use of vectorization in the former case
I didn't closely read your problem, but it looks like you wanting to test equality of dataframes, or at least rows therein
 
@AndrasDeak John Henry might contest this, but point taken.
 
4:57 PM
@PM2Ring I'm half-tempted to post print("\n".join("".join("*" if (x==y if y < n else x+y==2*n-2) else " " for x in range(n)) for y in range(2*n-1))) to see if I can snatch some upvotes from readers who think alphabet soup is Pythonic
 
@toonarmycaptain how so? reading time
 
@Kevin Do it!
 
for a second I thought he was a physicist :P en.wikipedia.org/wiki/Henry_(unit)
 
TLDR: John Henry was a steel driving man who tunneled straight through a mountain using the power of strongness.
 
stupid google
 
4:58 PM
@AndrasDeak yes
 
@AndrasDeak ...what is mining or digging tunnels into rock if not classical tunneling? Apologies if I made an American(?) reference you weren't familiar with. I wasn't before a couple of years ago, through a Disney animation short on Netflix..
 
Ha, I watched that same short just last month.
 
Yeah, never heard of him.
 
He's a lesser folk hero, measuring at about 17 centiBunyans
 
I couldn't resist posting this comment on a question about floor division:
In my country, the floors are down and the ceilings are up; we find this more convenient than other arrangements. ;) — PM 2Ring 2 days ago
 
5:07 PM
But think how clean your floors would be if nobody ever set foot on them ;-)
 
>>> df
  sample  metainfo1  metainfo2
0   John         10         20
1   Adam         30         40
>>> df2
  sample  metainfo1  metainfo2
0   Adam        100        200
1  James       -100       -200
>>> df.merge(df2, how='inner', on='sample', left_index=False, right_index=False, suffixes=('', '_file1'))
  sample  metainfo1  metainfo2  metainfo1_file1  metainfo2_file1
0   Adam         30         40              100              200
@novicebioinforesearcher ^
you can probably do this accumulated merging looping all of your files. It will probably not be efficient (it will have to reallocate memory 100 times), but you can probably live with that
I'm pretty noobish with pandas so I don't know of a better way
 
[trying to synthesize joke about spiders (who can walk on ceilings) being the dominant species of Australia (a country often humorously depicted to be upside down)... Joke failed]
 
@AndrasDeak thanks!
 
oh, two of those keywords (left_index, right_index) are default and you can omit them probably
 
A couple of days ago I saw a (now-deleted) question which I think was about implementing a Bloom filter. I first learned about them a year or so ago, but I never got around to playing with them. Anyway, that question inspired me to write some code: bloom_filter_test.py.
Python isn't a great language for bit-twiddling, and I guess it's a bit pointless doing this in Python, since one of their benefits is speed. But I guess the other benefit is the small amount of RAM they consume.
 
5:19 PM
@Kevin *tori
 
fiight me iirl
 
vacu|um -> vacui, vacua
tor|us -> tori
 
@AndrasDeak ok
 
32 mins ago, by Andras Deak
whoever starred that message: thank you, but it's needless to star messages as a way of saying thanks. It's preferred if only such messages are starred which are interesting to a broader readership
 
5:52 PM
@PM2Ring oh i meant like if the balls can move along the lines (not sure how that would mess up the shape
Maybe just have the balls rotate on that fix outlining ?
 
@MooingRawr Ah, right. I suppose I could make the balls "orbit" along the gold ellipses. It may look cute. But then it wouldn't be a diagram of the Fano plane anymore.
 
06:00 - 18:0018:00 - 00:00

« first day (2543 days earlier)      last day (2408 days later) »