« first day (2482 days earlier)      last day (2483 days later) » 

wim
5:08 PM
git stash annoys me tbh
there is no easy way (that I know of) to stash changes on one file. You'd expect just git stash the_file.py to work, but it doesn't.
and when I want to diff what's in the stash I can never remember the syntax. It will be nice if something like git diff --stash or git stash diff worked. Instead I have to google it every damn time.
I used to use it a lot, but now I've found just using branching is more powerful and easier than the stash. Use branches!
 
Finally
only partially deceiving now.
 
DSM
So now we have Kevin, KMG, and Kcvin?
 
yis
 
but @wim this looks so straight forward -> stackoverflow.com/questions/3040833/…
look at how few steps there are to do that
 
@Kcvin missed the chance of calling yourself Kеvin
 
5:19 PM
@GitGud - sorry, stopped out for early lunch, am back now
Using regex101.com, I observed the 6-digit match working successfully
My first read of your regex (misread, actually) interpreted all those negative lookaheads as additional reads, so more like an 11-digit match. Then I sorted out which groups were actual match groups and which ones weren't
 
Hi again guys!
https://hastebin.com/acipimiyug.py
After line 15 if I use toogle_doors() function it does work as intended but when I run all of it the end result I want is
Only the doors which are perfect squares should be open
 
As a general comment, I don't recommend using "door0000" as a key for a dictionary when just using the integer 0 is an available option
 
This kind of stuff is discouraged:
from random import randrange as r
Unless you are code golfing
 
If you use a string as a key, then you have to jump through a million hoops extracting digits like (int((str(k))[-3] + (str(k))[-2] + (str(k))[-1])) % x == 0 when if you had used an integer you could have done k%x==0
 
DSM
Indeed (mutter Kevinned mutter)
 
5:29 PM
that's still half a dynamical-variable-name problem
at least the festering lump of eval has been removed
 
As for the algorithm itself, since you're randomly generating a starting state, I don't think it makes sense to expect the same end state every time. So to say "I always want to end up with perfect square-numbered doors open after a hundred iterations" seems curious to me
 
Just as I think I leant something new you guys are just throwing me an a lot simpler way, I love you all.
 
Rewrite this where doors is a list, and all those int values are just used for indexing into the list, and see if your code simplifies some
 
@Kevin It is a mathematical principle. I don't if it this is the right word I mean if you do this for a 1000 time it should give you perfect squares from 1 to 1000
 
Also I think you have a problem when you compare v to 1 or 2 since after the first iteration, none of your values are 1 or 2 any more, they are all "open" or "closed". So every iteration after the first does nothing.
 
DSM
5:32 PM
It's a little strange to start with a dictionary whose values are all 1 or 2 and then replace them by "open" or "closed". Usua
AAARGH KEVIN
 
DSM just sit this one out
 
DSM
Maybe some chai tea will calm me.
 
@IşıkKaplan I think it might, but only if you start with the same state every time, instead of randomly generating it. Like, say, if you start with all doors closed to begin with.
 
@Kevin Oh that might be the problem
 
Hastebin makes wastebin
 
5:33 PM
:|
 
As a rule of thumb, it's not a great idea to write an if followed by an elif if you always expect at least one of them to be true.
 
Paul's on fire today ;)
 
hi guys , first time with stackoverflow chatroom , just gained 24 exp
 
Or, hmm, that's a bad way of putting it
 
welcome
 
5:35 PM
Since sometimes you don't expect either conditional to pass
 
I'll be back after approximately an hour, optimizing and fixing the code. Thanks again.
 
DSM
And we're out of chai, so I had to settle for this "Zen" tea. Good luck to it, is all I have to say. X-(
 
pastebin.com/9nQfKvQ2 are the minimal changes I would make to get a functional algorithm. On my machine, doors 1, 4, 9, 16, 25, 36... Are open, and nonsquares are closed
Oops you left for an hour. Oh well.
 
unrelated: I find it weird how chai, just meaning "tea" in many languages, refers to a specific kind of tea
"Daddy, come quick, I found a ladybug, an ant and an insect!"
 
I've definitely seen this door-toggling problem before... Was it a PE question? I can't recall.
 
5:41 PM
there was a door-toggling advent of code problem
sneaking into the vault
 
It specifically involved toggling all doors that were a multiple of X for all Xes between 1 and 100
 
then nope
DoorBuzz?
 
DSM
Sudden realization: we're closer to the next AoC than we are distant from the last one.
 
Although I don't think "soviet" cleanly translates into the exact same concept as "union" unless Google translate really steered me wrong
 
@Kevin AFAIK it means council/committee/advisory board/etc
 
5:50 PM
Tumblr plays rather fast and loose with little things like "facts" if it makes the joke work
Wikipedia says "The name 'Sahara' is derived from ṣaḥārā (‏صحارى‎, pronounced /ˈsˤaħaːraː/), the plural of the Arabic word for "desert"", so at least that one's real
 
Hello everyone I am facing a library issue I think
 
@Kevin I found a list for beginner programmers to practice, this one is from there. And apparently making all the doors closed at the beginning as you said solved my problem. You were completely right from the beginning
 
Good, good
 
I am running ubuntu 16.04 installen opencv3. When going in th python2 virtual environment I can import cv2 (from opencv 2). But when I am not in that environment and trying to run a pythong script which uses that library I get:
init done
opengl support available
Traceback (most recent call last):
  File "./sphere.py", line 279, in <module>
    (0, 0, 0), 1, cv2.cv.CV_AA)
AttributeError: 'module' object has no attribute 'cv'
Does anybody know what is actually going wrong there?
 
No, but out of curiosity what does print(dir(cv2)) display if you put it just before that line?
Possibly if the results don't seem... Computer visiony... Then that would indicate that some other module is overshadowing the usual cv2 module
 
wim
6:01 PM
The decision making process on Python-dev is an anti-pattern, governed by anecdotal data and ambiguity over what problem is solved.
shots fired
 
What's the alternative? I don't think there's an objective algorithm for maximizing the happiness of a diverse set of users who all want different things.
 
Does anybody have an idea about my issue?
 
@trilolil I guess that means the messages I directed at you were not useful?
 
See Kevin's post ^^
 
wim
The alternative is benevolent dictatorship
 
6:03 PM
@Kevin sorry I didn't know those were intended to me
 
wim
Actually works very well for software design, historically
 
I considered pinging you directly but I thought mentioning cv2 would be enough, considering your problem was the only conversation occurring that involved cv2
 
DSM
cv2.cv.CV_AA doesn't seem very opencv3ish. Thirty seconds on google suggests it's now cv2.LINE_AA, but take that for what it's worth.
 
@DSM the library I am using needs opencv 2, next to this when going in the python2 virtual environment I can successfully import cv2
 
DSM
6:07 PM
I thought you said "opencv3" earlier? Anyway, it seems clear that it's not accessible under that location in whatever you're using now.
 
Since the exception occurs 279 lines into the script, I expect this means that there's no problem importing cv2, the problem is when you try to access members of cv2.
So the fact that you can import cv2 from the REPL doesn't necessarily mean that the REPL is behaving any differently than sphere.py
 
@Kevin This is what it outputted: paste.ubuntu.com/25227926
 
Now, if you can do import cv2; cv2.cv.CV_AA without an exception in the interactive prompt, then I'd consider that significant
 
-ThinkPad-X200:~/openface/demos$ python2
Python 2.7.12 (default, Nov 19 2016, 06:48:10)
[GCC 5.4.0 20160609] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import cv2; cv2.cv.CV_AA
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'cv'
>>>
@Kevin ^
 
@trilolil Ok, cool. that list of attributes and such does seem fairly computer visiony, so we can probably discount explanations like "you wrote a file cv2.py in the local directory and forgot about it"
 
6:10 PM
mhm
 
@trilolil At least it's being consistent :-)
 
yup
:)
I wouldn t dare giving my files such names...
 
DSM
I remain unconvinced that you're not using cv3.
 
@DSM what do you suggest to double-check it?
 
DSM
print(cv2.__version__)
 
6:13 PM
~/openface/demos$ ./sphere.py --networkModel ../models/openface/nn4.small2.3d.v1.t7
3.2.0
init done
opengl support available
Traceback (most recent call last):
  File "./sphere.py", line 282, in <module>
    (0, 0, 0), 1, cv2.cv.CV_AA)
AttributeError: 'module' object has no attribute 'cv'
@DSM looks like you may be right...
 
I was going to say "it would be odd if cv3 still had a module named cv2", but no, that's apparently how it is
 
DSM
cv2:
n [6]: cv2.__version__
Out[6]: '2.4.10'

In [7]: cv2.cv.CV_AA
Out[7]: 16
cv3:
In [2]: cv2.__version__
Out[2]: '3.1.0'

In [3]: cv2.cv.CV_AA
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-3-384c07a027a7> in <module>()
----> 1 cv2.cv.CV_AA

AttributeError: module 'cv2' has no attribute 'cv'

In [4]: cv2.LINE_AA
Out[4]: 16
 
@DSM what can I do to solve my option, doctor? ;)
 
DSM
Either downgrade to a version of opencv compatible with the signatures in the code you're using, or upgrade the code to match the version.
 
@DSM I think the latter might be the easiest and safest, to not have conflicting library issues, right?
what is strange is that when being in the python2 environment I cannot import cv3 only cv2
Do you think this may be an issue?
 
6:17 PM
For me my guidelines are:
- if you wrote the code yourself, upgrade the code and keep the most recent library version
- if you're running someone else's code, keep the code as-is and downgrade to whatever library the original maintainer used
 
@Kevin I would totally agree with you if I werent running linux...
 
If you didn't write sphere.py, then modifying it to use current cv3 bindings would be a small-to-intermediate pain in the butt
 
library errors and all that jazz are a real pain in the *ss to me on linux
 
Whereas going and downloading cv version 2 may be a matter of a single well formed pip install command
 
next to this I always write cpp code using opencv3,
 
DSM
6:19 PM
I try to avoid Python 2. I'm in general agreement with Kevin, though -- upgrading someone else's codebase might be a tall task if there are lots of changes, and you found yourself troubled by this one.
 
OK, well I can try what you suggest
You sure that won;t conflict with my current opencv3 installation?
 
I'm not personally confident that two versions can live peacefully together.
Unless virtual environments are involved? I understand that virtualenvs are one honking great idea and I should do more of them.
 
@Kevin peace in our world, sounds like an utopy to me
@Kevin idk, I am just trying to run that script
ok unzipped the zip file, shall I start mkdir build && cd build &&cmake.. && make && sudo make install ?
 
Speaking as an ignorant Windows user, you're on your own ;-)
 
@Kevin I now understand where this comes from ...
 
6:40 PM
@trilolil typically you ./configure && make && sudo make install
 
@WayneWerner why not cmake .. ?
rather than ./configure
 
I'm not sure about opencv, bu can't you pip-install it?
 
@WayneWerner too late already started making
 
shrugs I couldn't tell you the difference :)
 
let me retro-reflect on the fact that the 2 in cv2 has nothing to do with python version
AFAIK
it's opencv the python module name of which is cv2
 
6:46 PM
It's just one of those little design decisions that make it four times harder to get your environment the way you want it
 
there's no cv2 in pip (again AFAIK)
I usually install it via apt
it's just all a pain in the butt, almost as painful as vtk
 
DSM
Mar 29 at 14:35, by DSM
conda install opencv took about ten seconds, and it upgraded some other stuff too. :-P
Life is short.
 
Well, apt-get install python-opencv works out of the box too. But I consider this a pain in the butt since I like pip
 
What should I deduce from this: I ran some python script from someone else on my laptop and it returnes "Illegal instruction (core dumped)'
is my laprop too old?
 
it's illegal
 
DSM
6:52 PM
Sounds like you're just using a binary which isn't compatible with your architecture.
@AndrasDeak: which is why working within a conda env is better than messing with the system. :-P
 
Actually I am running a virtual machine with everything on it that may be needed to run those scripts
@DSM
 
Man, I wanted to suggest that it was an architecture problem :-(
 
off topic: I remember reading an article about a man who moved beads from a box into a vase. Each bead was color coded based on age/events (I don't remember exactly if he did age range or if it was major things he did that day like red = school, black = job) And looking at the remaining box of beads, it gave him a daily reminder of his mortality...
Sorry, DSM's Life is short. comment triggered me to remember this
 
DSM
@trilolil: not sure what you mean by "actually" there. Are you suggesting that because you think your VM has everything your code should need, that "illegal instruction" doesn't mean what it usually means? Maybe, but it seems unlikely.
 
6:56 PM
Crossing my fingers for life expectancy to increase more than one year per year sometime during my lifetime
 
I would have expected it to work out of the box, also on my machine
 
Hello
 
DSM
@trilolil: I'm not going to read an entire article to debug your problem, but I'd recommend approaching it like "hmm, so the architecture doesn't seem to match. Is there some setting which is interfering? Am I not passing through SSE instructions like I should?" or something, rather than the position "no, it's not an architecture problem." YMMV, of course.
 
@RobertGrant \o cbg
 
https://t.co/nc1EGg6PQy
 
7:10 PM
@MooingRawr o/
 
Bobby!!!!!!!!
I missed you
 
Bobby? o.o
 
Thanks idjaw, I missed all you guys. Just been so busy and tired that I haven't had time for anything!
 
I've been there. Hope you're keeping healthy though.
 
@Kevin seems you were wrong, need to find a way to compile my cpp code with opencv3 and my python code with opencv2
 
7:15 PM
'Kay.
 
I can interprete the python code but not compile my cpp code
 
Not particularly healthy, but hoping to get better work-life balance. I've been saying this for a while, though :-)
 
@RobertGrant thought I was the only one working more than 12h a day... Glad it isn't the case
 
Not 12h :-)
 
this is my first job as an engineer, started +/- 2 weeks ago
 
7:17 PM
(Not any more, anyway)
Just a big grind over 20 months, with a newborn and a house move.
 
It's okie, you are with us now, back in the wrap of the snek-overlords
 
I wonder if anyone in the history of history has ever said they need better work-life balance when they meant that they needed to spend more time working and less time at home
 
@Kevin that's what I mean - I'm not working enough. Bring on the 12h days!
 
People who don't get enough hours at a retail job might...
 
@trilolil that sounds worrying
 
DSM
7:19 PM
7 h/day with about 4-5 hours of productive work is about my speed.
 
It's funny to me that everyone uses the euphemism when it always means "I want to work less". I blame the Puritans for wrecking American attitudes towards work for the last three hundred years.
 
@RobertGrant Got a job as an R&D engineer. WHat other solution is there if you one day want to be at the top of your game/field and one day start your business?
I guess that s the best way to know all the ins and outs
 
And if you're not in America, then, well, I blame Puritans anyway. They're all dead and can't defend themselves, so who's going to stop me?
 
@trilolil actually if I could have my 20s again I'd do that, so I didn't have to do it in my 30s, so I should be quiet :-)
 
@RobertGrant why would you want to do that at all? (now or in your 20)
 
7:21 PM
@Kevin that was a real problem for the Puritans, and the last one on his deathbed promised he'd "work on it"
 
@RobertGrant Yeah. That sounds familiar. Hope there is an end soon...having been in that same situation, things can get very exhausting and hard to deal with.
hope you give yourself the opportunity to give yourself some breathing room at times...even when you feel like you shouldn't
 
If you ever feel guilty about wanting to work less, tell yourself "at least I'm not like Kevin, who wants to work 0 hours". I'm gonna carry that weight.
 
But what if we want to work 0 hours like Kevin...
 
@DSM ah, I didn't know that it's an env of its own, neat!
 
@Kevin why did you choose to enter that field in that case?
 
7:30 PM
@trilolil as you say, to get ahead. Whether or not that's a pipe dream is another matter :-)
 
0 hours means you really don t like what u r doing...
 
@idjaw thanks :-)
Dinner time!
o/
 
Let me just say that the advice "do what you love and you'll never work a day in your life" doesn't factor in the possibility of burnout
 
hopefully u won't get bored of what you love doing :D
 
Programming is still a joy. Fixing dll version incompatibilities is a cruel mockery of what I think my job duties should be.
 
7:37 PM
I enjoy coding, I hate bug fixing. I guess I never grew up, never liked cleaning up my messes :D
 
cleaning up your own messes is fine
cleaning up the mess of the intern who worked there three years ago, not so much
(speaking as someone who never worked at a company)
 
The guy that left before me (who was a Senior dev), had this in his code while I was debugging his work catch (Exception ಠ_ಠ) . No comment or anything in his code, but he clearly capture my expression when I read his stuff :D
I wish I was joking but he literally has emoticon as part of his code :\ This guy is in year 3017 and I'm stuck in 2017...
 
I'd hate to maintain code from 3017
 
I wonder what code would be like in 3017 actually. would we have emoticon base languages ? Maybe some quantum computer would change the way we code ?
maybe instead of writing execution lines, we ask questions to shape the answer or desired solution....
 
DSM
I suspect most user-level programming will be halfway between constraint programming and BDD -- you'll basically describe what you want to happen, and be prompted to resolve ambiguities.
 
7:48 PM
"I want to display the reason of life!"
>> Ambiguities detected, please specify
" I want to know the meaning of my life"
>>
I wonder how they would deal with Philosophical questions
 
in 2627 they'll prove that philosophy was a mistake, so it's fine
 
@AndrasDeak What are you doing if I may ask?
 
I'm a theoretical physicist working as a theoretical physicist
 
@AndrasDeak makes sense
 
@MooingRawr If we're lucky, by that point the AI will realize that we have all the resources we need to feed everyone, so when they take over the world they can stop enslaving us like we do to each other.
If we're unlucky, we develop the Matrix
 
7:51 PM
I think they will have to enslave us so we can be "free"
I'm fine with either or.... :D
 
wim
why do we have os.getenv (and os.putenv)? isn't that the same as os.environ.get ? serious question
 
poor misunderstood death machine only wants to free our brains from the prison of our skulls
 
wim
sadly, that answer doesn't enlighten me
In fact, the more I read it, the more the answer just seems to be a long-winded way of saying "I don't know". I'm going to downvote it.
ugh, this upvoted, accepted answer is also highly-downvotable stackoverflow.com/a/41626355/674039
 
The official docs outline it fairly well, no? docs.python.org/3/library/os.html#os.environ
Oh, not why they have separate ones. Hmm.
 
wim
8:02 PM
No, the docs don't explain it
 
DSM
I suspect it's nothing more complicated than that os inherited getenv and putenv from C.
 
wim
ohh, I think it might be something to do with filesystem encoding
oh, nope, can't be that because os.environ keys are also decoded with sys.getfilesystemencoding() and 'surrogateescape' error handler
 
manually changing os.environ gets reflected in os.getenv
that is consistent with the two being the same thing
 
Following svn annotate shows this commit, which seems to indicate getenv is just there for familiarity: "Also add getenv() as a familiar alias for environ.get()"
It's probably also in the git commit logs on the new repo.
 
wim
so, the answer is "no difference" / "historical reasons" ?
just to violate zen of python 13 and confuse ppl ?
thank goodness python doesn't pander to those familiar with C any longer
remember print >> sys.stderr ? :)
 
8:11 PM
Let's not bring up the dark 2imes
 
wim
in fact now we actively try to confuse the C developers, with print(f'not really a printf()')
 
What's really confusing is that os.getenv doesn't reflect os.putenv. I'm not sure Python provides a way to see environment variables set with os.putenv.
 
wim
apparently os.putenv doesn't update the os.environ
bananas
 
Reading that documentation, you'd think, "oh, os.environ doesn't reflect os.putenv. Better use os.getenv if I use os.putenv", but no, neither of the ways to read environment variables reflect the actual environment variables set with os.putenv.
 
wim
TL;DR: just use os.environ and pretend it's a dict. getenv, putenv, and unsetenv are legacy crap and can be safely ignored.
 
8:18 PM
until further notice
 
And hope that you don't have to interface with non-Python code that will change your environment variables without knowing about os.environ, because you'll have a hell of a time figuring out what's going on.
 
does os.putenv actually change the envvars of the running process?
>>> os.putenv('NEW','Inf')
>>> os.getenv('NEW')
>>> subprocess.call(['python3','-c','import os;print(os.getenv("NEW"))'])
Inf
0
 
It does, but there's no way to access them
 
I'm only wondering if there's a functional difference between mutating the os.environ "dict" and os.putenv
@KevinMGranger that sounds...suboptimal
 
wim
yes, but os.environ['NEW'] = 'other' will do so too
 
8:24 PM
I see
so yeah, os.environ really is the way to go
 
wim
>>> import os
>>> os.environ['WAT'] = 'old'
>>> os.putenv('WAT', 'new')
>>> os.environ['WAT']
'old'
>>> os.getenv('WAT')
'old'
 
yeah I've already done every combination of putenv/getenv/mutate
 
I don't think you're supposed to use getenv or putenv directly.
> When putenv() is supported, assignments to items in os.environ are automatically translated into corresponding calls to putenv(); however, calls to putenv() don’t update os.environ, so it is actually preferable to assign to items of os.environ.
 
DSM
After all this I'm now actually convinced of my suspicion that they're there only for alias purposes for C programmers.
 
wim
You mean to intentionally bite C programmers? :D (since it doesn't update os.environ)
the poor sods are already confused enough trying to figure out if python is pass by reference or pass by value
 
8:46 PM
Anyone know where the concept of site.py comes from? It's always seemed really weird to me, and now I've found that R has a site file too.
 
wim
9:21 PM
why does that seem weird?
 
9:55 PM
Hi
I am trying to understand this python code: https://github.com/cmusatyalab/openface/blob/master/openface/align_dlib.py
More precisely the funciton def getAllFaceBoundingBoxes(self, rgbImg):
as you can see on line 104 you can see: return self.detector(rgbImg, 1)
yet I couldn t find the detector function being defined in the current class. I checked the other files as well but couldn t find the definition
Why is that? Did I look past it? I m pretty new to Python
 
self.detector = dlib.get_frontal_face_detector()
 
@Rawing well I m a bit confused there it looks -to me- like detector is a variable
yet on line 104 it looks -to me again- like a functiuon, because you are passing parameters
 
functions are first-class citizens. Variables can hold functions. And functions aren't the only objects that are callable either.
>>> def f():
...  print(5)
...
>>> g = f
>>> g()
5
 
@Rawing interesting! Didn't know that. Why can that be useful? Does that python principle/technique have a name?
 
I'm not sure if it has a name, but being able to treat functions the same way as "normal" values is always useful
you rarely assign functions to variables, but it's very common to pass functions into other functions. map(some_function, my_list), filter(some_predicate, my_iterable), etc
 
10:06 PM
It also looks pretty strange to me that they pass 2 parameters on lne 104
while originally the function doesn't seem to expect any parameters
even when going through the documentation. It states:
dlib.get_frontal_face_detector() → fhog_object_detector :

Returns the default face detector
So it doesn't need any parameters
@Rawing
 
get_frontal_face_detector() doesn't take arguments, but fhog_object_detector does.
which is where the arguments are being passed to.
It's like this, basically
>>> def detector(arg1, arg2):
...  print(arg1, arg2)
...
>>> def get_detector():
...  return detector
...
>>> d = get_detector()
>>> d(1, 2)
1 2
 
Hmm, I see
@Rawing How did you find out that this function does take argument?
 
can i participate on some personal projetcts you guys on ?
 
@marsouf I m building self driving cars using python scripts. If you can write such scripts you are more than welcome.
 
I didn't. The docs actually don't show that the fhog_object_detector is callable. It would have to have a __call__ method.
I just assumed that it takes parameters because I assumed that the code works.
 
10:16 PM
self driving cars ?
 
@marsouf yes
 
is it some embeded scripts or what ?
 
@marsouf yes embedded scripts and stuff
 
10:53 PM
rbrb
 
11:09 PM
@AndrasDeak thanks for trying. I've given up and posted a question stackoverflow.com/questions/45472366/…
 
11:19 PM
8 hours ago, by Andras Deak
@CoryMadden if all solutions are wrong for your problem in the exact same way, then your problem is probably not what you think it is. Time to put together an MCVE and see where your issue lies
And it turned out that your data is not what you think/say it is. Shocking.
 
it is indeed what I think it is. They're Decimal
 
my point was that if the various solutions to your superficial problem don't solve it, you need to find what about your data is what breaks them
 
the aggregation works as it should when I do it in other manners. I just want to do it in one step like this. Because that result is exactly what I need.
 
cbg
 
11:22 PM
cbg
working late tonight
 
cbg lately laborious idjaw
We had an A/C unit installed a few years ago in our bedroom, and sometimes the compressor is working at just the right frequency to resonate the bedroom. Tonight I couldn't resist and grabbed a measuring tape: 46 Hz....
 
you measured the resonance with a measuring tape?
 
scientific success has never been more futile
@Code-Apprentice yup
 
Did you add the vibration of the tape itself?
 
fun thing is that the resonance causes a standing wave across the room, so walking around I could deduce that there's exactly half a wavelength inside the room
 
11:26 PM
Physicist level 100
 
I could also deduce that the wave vector is perpendicular to the window, so hopefully my upper neighbours don't experience the same lovely buzz
 
ok, I support that my question should be closed, but "off topic"?
 
@CoryMadden "not reproducible"
piRsquared reproduced your dataframe and showed that the usual solution which you'd already found and were told works fine
another user added another answer, you commented "yeah but this doesn't work for me"
that's the epitome of "cannot be reproduced"
that's why I told you to come up with a proper MCVE to begin with
if you'd have put your .head(5) output into a dataframe manually, you'd have seen that these solutions work fine
at which point you would've had to add more things, as per C in MCVE
 
cbg all
 
either leading you to an indeed complete MCVE, or a solved problem
cbg, JG
 
11:29 PM
cbg
 
<- still trying to figure out how you would make an oscilloscope out of measuring tape
 
hehe :)
perhaps via triboluminescence...but you'd need a lot of tape ;)
no wait, I got confused
measureing tape is not scotch tape, not even close
I'm out of ideas :P
 
duct tape would work but only because you can make anything out of duct tape
but you'd need WD-40
 
WD-40 and duct tape are the two things that can solve anything and everything
it's made out of the blood of MacGyver (the real one from the 80s)
 
seriously I had this image of someone holding a measuring tape on the AC and drawing the high and low points of the wave as they counted out the seconds
@idjaw you had to remind me there was a new one, didn't ya?
 
11:35 PM
I know.....ugh
is it actually still airing?
did they cancel it yet? Because they should cancel it.
I haven't seen a single episode. I just don't think it should exist.
 
oh! hey, you might know this show (and speaking of duct tape): did you ever watch The Red Green Show?
 
I just saw Jack O'Neill in SG-1 today; they don't make MacGuyvers like they used to
 
"we got belt buckles, shoelaces, and a piece of gum. Now build a nuclear reactor, for cryin' out loud!"
 
I should start working on the Monte Carlo code I want to write
 
random sampling woes
 
11:44 PM
np.random.rand will be fine
 
@AndrasDeak kudos on your demeanor.
 
what did I do? ;)
 
very patient with folks... it's admirable
 
I'm not always an ass, if that's what you mean :D
I try to Be Nice
thanks
 
No, but now that you've phrased it that way...
yw
 

« first day (2482 days earlier)      last day (2483 days later) »