« first day (4233 days earlier)      last day (698 days later) » 
00:00 - 21:0021:00 - 23:00

12:44 AM
Hello, Q
 
 
11 hours later…
11:48 AM
Cabbage
 
12:11 PM
Thinking about riddles where one guard always tells the truth and one guard always lies... I wonder if any fun scenarios could be made by introducing other kinds of guards, like "knows which guards are liars, but not which doors are safe" or "tells the truth, but incorrectly thinks the safe door is the deadly door because he misread the employee orientation handbook on day 1" or "always lies, except when he thinks he's in a simulation"
An honest guard and a lying guard give the same answer to "what would your reply be if I asked you 'is the door on the left the safe one?'?". A liar-except-in-simulations will give the opposite answer.
And one mustn't forget the NPCs of The Hardest Logic Puzzle Ever, who understand English but can't speak it, and so reply to all yes/no questions with "da" or "ja", and you don't know which one means yes and which one means no
 
12:31 PM
  File "./test.py", line 108, in open_class
    self.device = USBDevice.find(vendor, product)
  File "./test.py", line 168, in find
    return usb.core.find(idVendor=vendor,
  File "/home/yalishanda/.local/lib/python3.8/site-packages/usb/core.py", line 1309, in find
    raise NoBackendError('No backend available')
usb.core.NoBackendError: No backend available
Any ideas what this error is supposed to mean? I am on Linux
 
Sounds like there's no backend to whatever you are using
 
haha :) Yhea I got that as well. But don't know what is meant by that
googling "Python backend" doesn t give much usefull
 
Yes, because this is not a python thing, this is a "whatever library you are using" thing.
It uses some other library under the hood, that's the backend, which is missing. You either have to do something else or install a backend.
 
I do however notice that libusb installed .dll files on my machine, if I am not mistaken...
there are quite a lot of posts about this issue occuring on Windows
but none on Linux
 
12:34 PM
Sometimes, putting the dll in the current working directory is sufficient to fix "can't find such and such resource" errors.
 
And libusb installed .dll files?
 
well there's your problem
 
pip install libusb IIRC, and got dlls from there
 
12:35 PM
DLLs are windows shared libraries...
 
but that s weird. Shouldn t pip manage this somehow on its own?
 
The library's installation procedure should, yes.
 
pip is usually pretty good at managing these sorts of things. But only if the thing you're installing has been written well.
 
12:36 PM
hmm...
How do you fix this madness?
 
Sometimes you get libraries that can only be installed by following the arcane ten step process in their github's readme file
 
odds are it's windows-only, to an extent that they didn't even think to specify the OS
 
Apparently other people managed to get it to work on Linux, but not on Windows...
 
@LandonZeKepitelOfGreytBritn you would have to know what library it is
@LandonZeKepitelOfGreytBritn do you know that for a fact?
 
Hmm double checking
seems like it installed both windows libs and Unix libs
if I am not mistaken
$ sudo find / -iname "libusb-1.0*"
/home/yalishanda/.local/lib/python3.8/site-packages/libusb-1.0.24b3.dist-info
/home/yalishanda/.local/lib/python3.8/site-packages/libusb/_platform/_osx/x64/libusb-1.0.dylib
/home/yalishanda/.local/lib/python3.8/site-packages/libusb/_platform/_linux/x64/libusb-1.0.so
/home/yalishanda/.local/lib/python3.8/site-packages/libusb/_platform/_windows/x86/libusb-1.0.dll
...
/home/yalishanda/.local/lib/python3.8/site-packages/libusb/_platform/_windows/x64/libusb-1.0.dl
 
12:39 PM
pypi.org/project/libusb claims that it "provides access to USB devices on Linux, OS X, Windows, Android, OpenBSD, etc". The underlying C library, also named libusb, is also cross-platform.
 
Either way that library is raising the error and complaining about a missing backend
 
pretty weird for it to install all that cruft
 
what I thought as well
 
Under installation prerequisites, it says "3.7 with C libusb 1.0.22 is a primary test environment". I'm not sure what that means. Bullet points under a "prerequisites" heading should be nouns, not sentences.
 
Managed to reproduce the error on a smaller scale:
import usb
usb.core.find(idVendor=0x1234, idProduct=0x1234)
Returns:
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/yalishanda/.local/lib/python3.8/site-packages/usb/core.py", line 1309, in find
    raise NoBackendError('No backend available')
usb.core.NoBackendError: No backend available
 
12:44 PM
I'm guessing that's not pypi.org/project/usb, which has nothing to do with USB ports
 
@Kevin sounds like it's sorta-guaranteed to work on python 3.7 with C libusb 1.0.22, because that's what they do CI with
 
Might be better to focus on libusb for now, since at least we can pip-install it and cross-check your work
 
I did install PyUSB as well, if that matters
(using pip install)
 
12:46 PM
"python bindings" often means that you need to install the actual library yourself
so apt install something libusb, and pip install the python library
 
already installed libusb-1.0-0-dev using apt. And installed PyUSB using pip
and python3-libusb1 as well, using apt
 
installing multiple usb libraries via pip will probably not help
@LandonZeKepitelOfGreytBritn that will probably be shadowed by the local install of libusb
 
Myea ¯\_(ツ)_/¯
 
I don't suppose you could take the entirety of core.py and upload it to pastebin or dpaste etc
 
@Kevin let s see...
 
12:49 PM
assuming apt's python3-libusb1 provides the same libusb python library, you would just have to remove the --user installed libusb and let your python find the system-installed library
 
Thanks
 
@AndrasDeak--СлаваУкраїні ok I ll remove python3-libusb
 
No, I was recommending the opposite
 
12:50 PM
an apt-installed package is a lot more likely to "just work", the main issue there is a stale version
you could probably not remove the --user installed version, but instead create a new venv with --system-site-packages
 
"Copyright 2009-2021 PyUSB contributors". Curious, why would libusb be executing code from PyUSB... I assumed they were competitors
 
ok removed libusb-1.0-0-dev
same result
 
@LandonZeKepitelOfGreytBritn with the same path in .local?
 
I still have:
libusb-1.0-0/focal,now 2:1.0.23-2build1 amd64 [installed,automatic]
  userspace USB programming library

libusb-1.0-0-dev/focal 2:1.0.23-2build1 amd64
  userspace USB programming library development files
 
You're still installing and uninstalling apt packages? Geez.
 
12:54 PM
oh you meant uninstall the ones installed with pip
this is what you meant by "user installed"
ok
 
it doesn't really matter because the error is coming from pyusb
 
"yup"
not even sure why I expected anything else
 
I guess pyusb is causing the error somehow based on the number questions and so on I find online about it
Not sure how everything is interacting together under the hood though
because the minimal I posted above causes the same error. So I guess the usb library calls the pyusb library somehow
 
Yeah, it does
 
It can be legitimately confusing when a package's name is different from the name that you need to import to use it. [side glare at BeautifulSoup]
 
@Kevin you confirmed my initial guess above based on the copyright : )
but I know next to nothing about all these things
 
The copyright made me suspicious, but github.com/pyusb/pyusb/blob/master/docs/tutorial.rst proves for sure that PyUSB expects you to import usb and its submodules
Also noteworthy on that page: it says PyUSB works with any of "libusb 1.0, libusb 0.1 and OpenUSB". If you can't get libusb to play nicely, maybe you can try OpenUSB instead.
 
I initially tried installing pyusb via pip, just doing: pip install pyusb.
Maybe I should try to: python -m pip install pyusb git+https://github.com/pyusb/pyusb#egg=pyusb
that way I might have a later/newer version...
 
perhaps there's a third usb library on pypi you could try adding to the mix
 
1:01 PM
The block at line of 1298 of pastebin.com/ePNi8m2m confirms that it tries all three backends before giving up
 
@AndrasDeak--СлаваУкраїні I infer from this that this was a bad suggestion. What would be a solution in that case?
 
I'm mostly being generally sarcastic because you have a very dodgy history here and you're not making it any easier for us to help you here
 
WHat info would you need in that case?
 
"libusb itself is irrelevant to the error" would have been useful half an hour ago, but that ship's sailed
 
fair enough. I am understanding it as well by discussing it here
but let s focus on the future not the past (30 minutes). There are more ships to come : )
 
1:06 PM
In general, installing multiple python libraries to do the same thing won't improve the experience
 
true
which pip-installed-lib shall I try uninstalling in that case? PyUSB?
Unless you have another suggestion
 
Depends on what you're trying to use. PyUSB seems better maintained based on github activity. But if there's python3-libusb that works for your use case then that would be simplest
 
ok let s try to uninstall pyusb in that case and see what that gives
 
that would involve not using import usb, obviously
 
Poking around PyUSB's library finding logic... Looks like it's using ctypes.util.find_library to find/load the backends, so it shouldn't depend on any .py files in any other project. Just DLLs if you're on windows, and SOs(?) on linux
 
1:09 PM
yup I m on Linux
@Kevin most of the posts online are from people complaining pyusb does not find .dlls
@AndrasDeak--СлаваУкраїні in that case the python script I am trying to run will not work any more as it relies on usb
 
@LandonZeKepitelOfGreytBritn yup, so in that case you should probably forget about the libusb python bindings unless it's a dependency that pyusb installs itself
 
You don't seem to understand that the thing called "pyusb" on pypi is the same thing as the module called "usb" that you import
 
Can you do from ctypes.util import find_library and then print([find_library(name) for name in ['usb-1.0', 'libusb-1.0', 'usb', 'usb-0.1', 'libusb0']])? That will give us information about whether libusb's libraries are somewhere that Python can find them
 
@Aran-Fey ok, that s indeed not what I understood
 
I sort of half-implied that pyusb and usb are the same, but I didn't say it outright.
 
1:17 PM
can confirm Kevin implied that
 
$ cat foo
#!/usr/bin/python3

import usb

from ctypes.util import find_library

print([find_library(name) for name in ['usb-1.0', 'libusb-1.0', 'usb', 'usb-0.1', 'libusb0']])


#usb.core.find(idVendor=0x1234, idProduct=0x1234)

$ ./foo
['libusb-1.0.so.0', None, None, None, None]
 
I probably shouldn't murkily imply things when it comes to a topic that I publicly stated was confusing
@LandonZeKepitelOfGreytBritn Oh, interesting. I kind of expected it to show five Nones.
 
If libusb-1.0.so.0 is accessible to ctypes, then github.com/pyusb/pyusb/blob/master/usb/backend/libusb1.py#L287 should be able to find it... Maybe it loads it succesfully, but then rejects it because it can't find the libusb_init attribute it wants.
 
don t know, really
 
1:24 PM
find_library('usb-1.0') returns 'libusb-1.0.so.0' while find_library('libusb-1.0') returns None?! On what planet does that make sense
 
computers were a mistake
 
import os
os.environ['PYUSB_DEBUG'] = 'debug'
import usb.core
usb.core.find()
The PyUSB faq recommends running this if you get strange errors. Does it give you any output?
 
yup
$ ./foo
2022-05-19 15:32:06,323 ERROR:usb.backend.libusb1:Error loading libusb 1.0 backend
Traceback (most recent call last):
  File "/home/yalishanda/.local/lib/python3.8/site-packages/usb/backend/libusb1.py", line 962, in get_backend
    _setup_prototypes(_lib)
  File "/home/yalishanda/.local/lib/python3.8/site-packages/usb/backend/libusb1.py", line 311, in _setup_prototypes
    lib.libusb_get_parent.argtypes = [c_void_p]
  File "/usr/lib/python3.8/ctypes/__init__.py", line 386, in __getattr__
 
Interesting. undefined symbol: libusb_get_parent looks like it's the important bit.
Googling that error message, I get stackoverflow.com/a/29226007/953482, which says "the version of libusb you get with apt-get is old". Sounds plausible.
 
hmm ok so let's try to update this...
$ sudo apt install --only-upgrade libusb-1.0-0
Reading package lists... Done
Building dependency tree
Reading state information... Done
libusb-1.0-0 is already the newest version (2:1.0.23-2build1).
The following package was automatically installed and is no longer required:
  libusb-1.0-doc
Use 'sudo apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 207 not upgraded.
Unlness another package was supposed to be updated?
$ sudo apt install --only-upgrade python3-usb
Reading package lists... Done
Building dependency tree
Reading state information... Done
python3-usb is already the newest version (1.0.2-1build1).
The following package was automatically installed and is no longer required:
  libusb-1.0-doc
Use 'sudo apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 207 not upgraded.
 
1:39 PM
If apt-get gets the old and incorrect version of libusb, I would expect sudo apt install to also get the old and incorrect version. Disclaimer: I have never used any apt-related command in my life.
 
hmm ok fair enough let s try wget
 
I don't have a lot of concrete advice for this stage of troubleshooting. I'm a windows guy, so I'm not well versed on the particulars of the Linux package ecosystem.
If I were trying to solve this by myself, this is about the point where I'd give up on libusb, and try to set up OpenUSB instead. But perhaps you have better Linux ability than me, so maybe it makes sense to pursue libusb a bit further. Use your best judgment.
New element for the guards & doors puzzle: an invisible barrier that magically rearranges the sound waves of your question to logically negate it. e.g. when you say "is the left door the safe one?", the guards hear "is the left door the unsafe one?"
Unclear what the barrier would do to nested questions such as "would you reply 'yes' if I asked you 'is the left door the safe one?'?"
 
1:57 PM
Hi everyone.
 
Greetings
 
I've been trying to use a Python package called ExoPlaSim (Exoplanet Simulator)
I pip-installed it and also installed gfortran (a requirement for the package)
However, when I copy-paste a simple program from the documentation of the library, I get an error.
Here's the library I'm referring to: exoplasim.readthedocs.io/en/latest
My full error trace is shown here:
0
Q: Exoplanet Simulator non-zero status error

rb3652I am attempting to use a recent simulator, ExoPlaSim, which can model terrestrial exoplanets within the habitable zone. After pip installing the program, I attempted to run the following basic program, directly copy-pasted from the documentation: import numpy as np import exoplasim as exo toi700...

If anyone has any suggestions or ideas to resolve this problem, that would be much appreciated.
Thank you.
 
"non-zero exit status 127" sounds important. If that number has any particular meaning, maybe it's documented somewhere.
 
@Kevin The creator of the library discusses common errors (github.com/alphaparrot/ExoPlaSim/blob/master/docs/index.rst) but I didn't find anything on that page that seems to be of relevance to the particular error I'm receiving
 
127 means command not found.
You are probably missing MPI.
 
2:06 PM
Or possibly you're missing one of the commands that mpiexec is trying to run? "mpiexec returns the maximum of the exit status values of all of the processes created by mpiexec".
 
@MisterMiyagi Hm, OK.
I think that is correct. I am indeed missing MPI, it seems.
@Kevin Not sure, let me check out the MPI first.
 
@Kevin yes, apt and apt-get use the same repos, they just have a different interface and functionalities
 
Makes sense
 
After installing MPI: "subprocess.CalledProcessError: Command '['mpiexec -np 4 most_plasim_t21_l10_p4.x']' returned non-zero exit status 127; RuntimeError: ExoPlaSim has crashed or begun producing garbage. All working files have been moved to /Users/refath/Desktop/TOI-700d_crashed/"
 
that looks a lot like the original error message
 
2:14 PM
Yes.
 
but having that in plain text is a step up from the screenshot
@rb3652 may I ask how you "installed MPI"?
 
And may I ask how you can tell whether you are missing MPI?
 
OK
@Kevin mpiexec --help fails, probably
 
"I figured I didn't have it, because I don't remember ever installing it" is a valid answer, albeit not the best possible one
@AndrasDeak--СлаваУкраїні I approve of this approach
 
2:18 PM
Hang on.
I notice something.
 
I approve of noticing things
 
The last line of the installation said:
 
@rb3652 please post text as text, not images
 
*** Fortran compiler
checking for gfortran... gfortran
checking whether we are using the GNU Fortran compiler... no
checking whether gfortran accepts -g... no
checking whether ln -s works... yes
checking if Fortran compiler works... no
**********************************************************************
* It appears that your Fortran compiler is unable to produce working
* executables. A simple test application failed to properly
* execute. Note that this is likely not a problem with Open MPI,
 
2:21 PM
But I installed gfortran. What's the problem?
 
Try to track down "what error resulted when the command was executed" in the "config.log file"
 
@rb3652 does gfortran --help work?
 
@AndrasDeak--СлаваУкраїні zsh: bad CPU type in executable: gfortran
 
Although it's probably found
@rb3652 neat
 
Is it because I'm in the openMPI directory?
 
2:22 PM
Your CPU needs an oil change, and a tire rotation
 
@Kevin config.log file? Let me see if I can find that.
 
@rb3652 easy enough to decide that
 
Following a stacktrace trough dozens of files and functions to it ending in: _message = api_implementation._c_module feels like your just saw you suspect take a boat to Sierra Leone after a hot car chase
 
Agreed
 
uh fortran talk, interesting
 
2:24 PM
@Kevin I found it, but it just looks like gibberish
 
I was afraid of that. In my experience, when I want to install A, and it fails because B didn't install, and that fails because C didn't install, then C's error log is likely to be in some exotic form I've never seen before
 
Reading this (github.com/Homebrew/legacy-homebrew/issues/21826) it seems I must run some $FC command?
 
It would probably include a fortran build log if it weren't for "bad CPU type in executable: gfortran"
FC stands for fortran compiler
That's a standard makefile name
 
which gfortran gives /usr/local/bin/gfortran
gfortran -v gives zsh: bad CPU type in executable: gfortran
 
For the second time today, my troubleshooting powers fail me, as the problem escapes through the thorny brush that is the Linux package ecosystem
 
2:29 PM
Well, I will pause for now and return in a few decades.
 
Possibly I will know Linux by then. We'll do lunch.
 
@Kevin mac is not linux ;)
 
If /usr is a valid path name, it's Linux enough for my purposes
 
2:46 PM
@rb3652 Since that MPI install was for manual compilation: Did you install gfortran using homebrew or manually?
It's probably a good idea to install both gfortran and open-mpi via brew, since brew takes care of setting all compilation paths for you then.
 
 
2 hours later…
4:34 PM
Super-simple question: I have a matrix A = np.matrix([[2,3,4],[5,6,7],[8,9,1]])
When I set A[1,1] = 1.5
The matrix shows 1, instead of 1.5. Why?
Full code:
import numpy as np

A = np.matrix([[2,3,4],[5,6,7],[8,9,1]])

print(A)
A[1,1] = 1.5
print(A)
 
>>> A.dtype
dtype('int64')
 
@rb3652 don't use np.matrix. Use np.array.
the problem will be the same, but this is important too
 
I'm moderately surprised it lets you assign a float to a wossname that has a dtype of int64.
 
it does what any reasonable C compiler would do
 
I accept this reasoning.
 
4:45 PM
it's pitfally though
 
Well we are having this conversation while rb3652 moans weakly at the bottom of the pit he just fell into. So yes I suppose it must be.
I wonder if there are any IDEs or linters or anything that will identify C-like implicit conversions like this one, and warn you about them before runtime. Even if it only does it specifically for np types, I'd still find it impressive
 
inferring dtypes can be pretty hard in certain situations
 
I was just wondering if dtypes are easier to identify than regular types. Identifying regular types is undecidable, I believe.
 
>>> (np.array(3, dtype=np.uint8) + 2).dtype
dtype('int64')

>>> (np.array([3], dtype=np.uint8) + 2).dtype
dtype('uint8')
 
random.choice([my_int8_array, my_uint8_array]).dtype
 
 
1 hour later…
6:13 PM
I'm down a rabbit hole and I can't tell if its because between last year and this year I got a new laptop so had to reinstall Python etc, maybe I didn't set something up correctly or what. How do I tell what version of python my subprocess is running?
I know how to tell for sys, etc
I stumbled upon this but I still can't do it
9
Q: Python subprocess is running a different version of Python

SageI'm trying to create a Python script to execute other Python scripts, and it works on most scripts, but will fail when it encounters print('anything', end=''). This is because the subprocess is running 2.7, rather than 3.4. I cannot for the life of me figure out how to have the subprocess run 3...

import subprocess as sub
print sub.Popen("C:/Program Files/Maptek/Vulcan 2022.1/bin/exe//bhead.exe" "pete_2008_2009.bmf", stderr=sub.PIPE).communicate()[1]
if I do this it gives me this error
---------------------------------------------------------------------------
WindowsError Traceback (most recent call last)
<ipython-input-43-7ec7629fe7df> in <module>()
1 import subprocess as sub
----> 2 print sub.Popen("C:/Program Files/Maptek/Vulcan 2022.1/bin/exe//bhead.exe" "pete_2008_2009.bmf", stderr=sub.PIPE).communicate()[1]
3

C:\Anaconda2\lib\subprocess.pyc in __init__(self, args, bufsize, executable, stdin, stdout, stderr, preexec_fn, close_fds, shell, cwd, env, universal_newlines, startupinfo, creationflags)
I looked and bhead.exe is in that path folder
pete_2008_2009.bmf --- this is in the folder I'm working in
 
Why two "/" after "/bin/exe"?
 
@Marco If I put "/" it does the same thing
 
But why two?
 
that was just a mess up on my part
sorry
import subprocess as sub
print sub.Popen("C:/Anaconda2/python.exe -V", stderr=sub.PIPE).communicate()[1]
this gives me a result
# Python 2.7.16 :: Anaconda, Inc.
(yes I know I still use 2.7 for some things until we can get everything moved over)
 
Okay, for now I don't know what it could be
Please wait for other answer(s)
 
6:26 PM
no worries, thank you
 
You're welcome
 
@CelesteWilson Never ran into this, but it sounds like the kind of issue that disappears when using virtual environments. do you already?
 
@Arne No and last year it worked without a virtual environment, in December 2021. So I don't know why I would need one. I'm trying to figure out what would have changed in 5 months?
I tried a different project and similar result
checked my subprocess, it hasn't been updated. I think it has something to do with the bhead.exe
 
Then I'll have to fold too, it sounds hard to debug without sitting in the same room. Even more so since I use linux and am not familiar with windows-y issues
 
6:43 PM
@CelesteWilson missing list syntax?
>>> "C:/Program Files/Maptek/Vulcan 2022.1/bin/exe//bhead.exe" "pete_2008_2009.bmf"
'C:/Program Files/Maptek/Vulcan 2022.1/bin/exe//bhead.exepete_2008_2009.bmf'

>>> ["C:/Program Files/Maptek/Vulcan 2022.1/bin/exe//bhead.exe", "pete_2008_2009.bmf"]
['C:/Program Files/Maptek/Vulcan 2022.1/bin/exe//bhead.exe',
 'pete_2008_2009.bmf']
need two square brackets and a comma
 
@AndrasDeak--СлаваУкраїні Ok we might be getting somewhere
now I get an error
NameError: name 'pete_2008_2009' is not defined
nope nvm
so I think it hates the file pete_2008_2009.bmf
WindowsError: [Error 2] The system cannot find the file specified
 
Can you paste the actual line of code you're running right now, making absolutely sure that it's what you're running right now?
I hope "nope nvm" means you realised you forgot to put the second string in quotes
 
import subprocess as sub

print sub.Popen([["C:/Program Files/Maptek/Vulcan 2022.1/bin/exe/bhead.exe","pete_2008_2009.bmf"]], stderr=sub.PIPE).communicate()[1]
 
@AndrasDeak--СлаваУкраїні correct that's why I said nvm ha ha
So Vulcan is a software that is installed. You can run processes outside of it to go faster if you are doing multiple things at the same time. the .bmf is the file i want to run through it. bhead.exe just gives the header of the file
does that help?
 
6:52 PM
No, what would help is if you tried with a flat list as I posted 3 messages above instead of passing a list of lists
it might not fix the problem but it would certainly make it not worse
 
one set of brackets, didn't throw an error
is that what you mean
 
Yes?
You can use an arbitrary variety of wrong combinations as the first argument of Popen, but most of them will not work.
 
OHHHHHH i SEE
ok this is the code used to make the command line
bmfflname = bmffl
cmdstr = '"' + ' '.join(\
         [vulcanbinpath + '/bhead.exe' + '"',
          '{}'.format(bmfflname)])
 
wat
oof
I guess it's 2.7 so it's fine
 
HAHAHHAH
the output of that cmdstr (command string) is this
"C:/Program Files/Maptek/Vulcan 2022.1/bin/exe/bhead.exe" pete_2008_2009.bmf
 
6:56 PM
I have no idea why you would go out of your way to write that instead of doing what I said about 3 times now, but as long as it works for you
 
I'm trying to keep it scripted so I don't have to manually change the files everytime, I run multiple .bmf inside a larger script
so now I'm trying to format the "parameter" file
 
yeah, that explains everything
 
so now I have to hard code in the single bracket and the , and "" on the .bmf
so you helped immensely, thank you very much!
 
please don't acknowledge my help anywhere near that code
 
HAHAHAHHAHHA
I will put Kudos to Andras
in the code
hahahahhhah
 
6:59 PM
you think I'm joking but that is atrocious
 
if I win an award, I will make sure to acknowledge you. By the way, if it helps, everyone hates "Vulcan"
 
this has nothing to do with vulcan
 
I know, it was written in 2015 so maybe that is why its so convoluted
I'm sure there is an easier way to write it but this works for now
at least till I gain more experience and start overhauling it
 
"it works for now" is exactly why it's been like that since 2015, and why you're still stuck with 2.7
 
I work in mining and python in mining is new
I know, I get it, I'll get there. If they would give me 2-3 more employees, then I could
 
7:01 PM
"new" means you can start with modern python
 
yeah you would think we would be using simulation by now too but instead we are still using methodologies developed in Matheron era
but with all your help.. eventually I'll get there, don't hold your breath though. It might take a few years
 
@CelesteWilson if you're not a software dev then I sort of understand, but it's not like anybody is stopping you when you have unmaintainable crap like that costing you... 45 minutes today.
 
I know
I hate it
but manually instead of it taking (when it runs properly) 2 hours, it would take 4 days
so I like it
 
I'm fairly certain that replacing all that crap with cmd = [vulcanbinpath + '/bhead.exe', bmfflname] would work. Not a string, a list. Then Popen(cmd, ...).
@CelesteWilson the options I'm talking about are not "doing manually" vs "using horrorshow python". I'm talking about "spending 45 minutes debugging a line of horrorshow python" vs "spending 45+10 minutes learning how to replace that part of the horrorshow python"
Anyway, you know what you have time and bandwidth for. It's just a shame to see you being bitten like that, and seeing you be set up for the next round of the same thing 6 months from now.
 
Discovery of the day: 4D Miner, a minecraft-inspired 4-dimensional sandbox game. Currently in very early stages of development, but it already has a playable demo. It's weird to see a minecraft-y world where not everything is blocky because you're looking at it at an angle in the 4th dimension
3
 
7:05 PM
@Aran-Fey every single person waiting for miegakure these past 15 years: <.<
 
Yeah, that project seems to have come to a standstill :(
 
It gets a status update every two years or so, so I still have hope it will be released for the fifth-generation neural link console.
 
 
1 hour later…
8:23 PM
I crafted a pair of 4D-glasses, which show you nearby items, but even knowing that there are items there I completely and utterly failed to actually find them and pick them up :(
 
Normal life is unfair enough. Modern games have become too realistic smh
 
# yes, I understand the problem intimately and am just looking for a canonical again
def x(y):
    y = 0

a = 1
x(a)
# "Why doesn't a become 0?"
Considering the above: what is the canonical for that question?
(wow, you even have to "indent" the blank lines)
 
yup, but to be fair the "fixed font" button does that, and so does ctrl+k
 
I don't see a "fixed font" button anywhere.
 
it appears when you enter a linefeed in the edit box
shift+enter will normally do that, at least in firefox
@KarlKnechtel duckduckgo.com/… has some promising hits at the top
 
00:00 - 21:0021:00 - 23:00

« first day (4233 days earlier)      last day (698 days later) »