« first day (3265 days earlier)      last day (1689 days later) » 
02:00 - 21:0021:00 - 00:00

2:04 AM
cbg
 
3:09 AM
cbg
I had a question about Exceptions hierarchy. The official docs weren't very clear about the value being passed. I'm thinking of doing it like
class SpotifyNotRunning(Exception):
    """Exception raised if Spotify is not running i.e. is closed or paused.

        Attributes:
            expression -- input expression in which the error occurred
            message -- explanation of the error
        """

    def __init__(self, message):
        super().__init__(message)


class SpotifyPaused(SpotifyNotRunning):

    def __init__(self, message="Spotify appears to be paused at the moment."):
        super().__init__(message)


class SpotifyClosed(SpotifyNotRunning):
I was confused on how do you get the input expression like the official docs say?
It mentions it as a variable in the init (that I removed here) but is there some way that automatically gets passed?
Also, is that init in the Base Exception redundant if the idea isn't to call it directly? I'm thinking of leaving it in in case someone else doesn't want to differentiate between the paused and closed state then they can just work with that exception
 
 
2 hours later…
cbg @αԋɱҽԃαмєяιcαη
 
looks like we need to make some changes ?
@U10-Forward for unknown reason the code which we been working on is a bit slow.
 
Talk on our room
@αԋɱҽԃαмєяιcαη
 
@U10-Forward Alright
 
 
1 hour later…
6:40 AM
cbg o/
 
7:23 AM
cbg
@wim I'll test it as soon as they support python packages. Honestly a bit baffled that they support ruby before python, but they'll have their reasons.
@Rohit While I wanted something different (making a project testable), I ran into the exact same issue as you, src folder and all, and asked this question here stackoverflow.com/questions/50155464/…
The answer and comments in that post convinced me to make all my projects installable unless they are literally a single script that starts and application, and I haven't looked back.
@TomDalton And the right way to configure the search path correctly is by ... (drum roll) ... installing the package! — wim May 3 '18 at 17:36
 
8:05 AM
@alkasm from namespace.pkg1.pkg2 import module_a, module_b
 
@MisterMiyagi did you read my whole question? I know how to do that, that wasn't the question. I want to be able to qualify the namespace still, but not with the 5 levels I may have.
this is what im after, but with hopefully less weird syntax (I'm not quite sure why this works in this particular way):
import namespace.pkg1.pkg2.module_a
import namespace.pkg1.pkg2 as pkg2
pkg2.module_a.func('asdf', 1234)
I'm wondering if I can get that functionality in one import line, essentially. Or at least some way that isn't as weird / doesn't repeat the same things so many times
 
well, you need to import module_a for it to exist in pk2
submodules aren't automatically loaded when . accessing them
 
Right, because there's no __init__.py because it's a namespace package
Hence the question: "is there a nice way to do this otherwise?"
 
I fail to see how that is related to __init__.py. just because __init__.py exists does not mean submodules are imported, and it is generally not good if __init__.py does it forcefully.
let's see... you basically want to know "how to import all submodules of a namespace package?", correct?
 
No.
@MisterMiyagi Yes, I'm aware of how __init__.py works. Can we assume we're all adults, here? :P
 
8:14 AM
then I don't see how your code could be any shorter. If you don't auto-import submodules, you must do so manually (line 1). If you want to use the namespace package, then you need to import it manually (line 2)
@alkasm no offence meant. it's not an assumption that generally holds. ;)
do you know the names of the modules? you mentioned that they are auto-generated
 
@MisterMiyagi lol, true.
Hm, well, yes---I need to know the names in order to import them, and I can of course traverse the directories and what-not
 
it should be enough to import the submodules once, somewhere in your application - e.g. wherever you trigger their creation
then all other modules can work with pkg2.module_a by just importing pkg2
 
Ah, that's the right take!
How does that work? If I import blah.asdf.pkg as pkg I still cannot import pkg.moduleright?
Here's a standard lib example:
import xml.etree as etree
...something something something...
etree.ElementTree()
that's what I'd like to do.
 
# some module creating your submodules
magic_module_creator("module_a")
__import__("blah.asdf.pkg.module_a")

# some module using your magic packages
import blah.asdf.pkg as pkg
pkg.module_a.do_some_stuff() # magically works because of above module
 
Oh but I suppose if I import xml.etree.ElementTree then I can....so just do that in the root. Okay, got it
 
8:26 AM
sidenote: whoever invented [Space][Space] to mean [Dot][Space] is my personal hate sink for today
 
here's your friendly reminder to just go ahead and turn that setting off once and for all
:D
But yes, that is so frustrating!
 
8:59 AM
hello guys
can some one help me
 
9:15 AM
@MuhammedBilal If this is about stackoverflow.com/questions/58075050/… or stackoverflow.com/questions/58060870/… then not here, not yet
 
no
I want to know about reactify django .
 
Then just ask your question. This is all per our rules
 
10:21 AM
Is it just me or do tracebacks sometimes not print completely? I just got this output from traceback.print_exc()
Traceback (most recent call last):
  File "/mnt/data/Users/Aran-Fey/Desktop/folder/coding/python/applib/applib/ui/argument_parsers/default_parser/argument_parsers.py", line 153, in parse
    choice = self.choices[key]
KeyError: 'foo'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/mnt/data/Users/Aran-Fey/Desktop/folder/coding/python/applib/applib/ui/argument_parsers/default_parser/argument_parsers.py", line 376, in parse
    raise ZeroDivisionError
It's like the code magically started executing in the parse function on line 153
 
10:33 AM
any chance that it's because of the double raise?
 
Looks like it. I never realized, but it seems like it only prints the last entry of the call stack before the "during handling..." part
 
huh, how is Error not a built-in thing??
$ cat foo.py
def foo():
    raise Exception('in foo')

def bar():
    foo()

def baz():
    try:
        bar()
    except:
        raise Exception('in baz')

baz()
$ python3.7 foo.py
Traceback (most recent call last):
  File "foo.py", line 9, in baz
    bar()
  File "foo.py", line 5, in bar
    foo()
  File "foo.py", line 2, in foo
    raise Exception('in foo')
Exception: in foo

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "foo.py", line 13, in <module>
 
@Aran-Fey that's actually really curious
 
Starting to look like a bug in traceback.print_exc
 
yeah, I can't repro
 
10:36 AM
Well, now nothing makes sense
 
a bug? in python???? nothing makes sense anymore
 
are you in an IDE or similar, or vanilla?
@connectyourcharger what do you think bugs.python.org is for? :P
 
nothing but a trusty ol' terminal
 
that was mildly sarcastic
 
you never know
if I put the top-level call to baz() in try: and in the except I traceback.print_exc() I see the same message
 
10:39 AM
just curious, did you try traceback.format_exc()?
probably wouldnt change much but worth a shot
 
the traceback module is definitely partly at fault here: dpaste.com/0CT2Z8C
 
and if you move the import outside?
there's probably magic
 
Hello hi!
 
No difference
 
hello
 
10:42 AM
the magic is always there, it's not traceback's magic
 
that's worth a bug report or a PR
 
traceback just accesses sys.last_exc and companions
 
as far as I know
 
if something's going wrong in sys then we really have a problem
 
10:43 AM
@Aran-Fey that I can repro
 
@connectyourcharger no difference
 
figured as such
 
so traceback.extract_stack and .print_stack see the whole stack
 
Ah, I think the part of the stack trace that's the same for both tracebacks is intentionally omitted from the first one
Traceback (most recent call last):
  File "temp.py", line 14, in baz
    bar()
  File "temp.py", line 10, in bar
    foo()
  File "temp.py", line 7, in foo
    raise Exception('in foo')
Exception: in foo

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "temp.py", line 18, in <module>
    baz()
  File "temp.py", line 16, in baz
    raise Exception('in baz')
Exception: in baz
That "baz" at the end of the 2nd traceback is the same as the "baz" at the start of the first traceback
 
hmm
But your original tracebacks have no history between them, at least one of them should contain the full stack trace, shouldn't it?
 
10:51 AM
Right, but it doesn't because of a bug(?) in traceback.print_exc()
 
did you print them immediately or store them? exceptions have various parts removed after their except block IIRC. might depend on the Py version though
 
I feel like somebody who's more familiar with exceptions should make a dozen riddles based on this stuff
I'm not really sure how the exceptions were handled in my real code. They get passed around a bunch, not sure if it all happens inside the except block
 
hm, according to the docs only the name binding of the as clause is removed, everything else should persist
 
well, turns out I was super wrong about the "magic" in sys. sys only stores uncaught exceptions
exc_info is where the magic is
 
11:25 AM
cabbage, everybody.
 
cbg
 
(close enough)
 
🥬
still no dedicated cabbage emoji in 2019, how have there not been riots yet?
 
:-)
"Ah yes, the great cabbage riots of 2019, one of the determining conflicts of the emoji war."
 
"civilization needed to end at some point, and this reason was better than most." roasts cabbage over campfire
 
11:42 AM
"[Narrator is attacked by a screaming horde of cabbage-lovers with spears.]"
 
user10984358
Heya guys, I just created my very first rudimentary flask app. How can I make others use that?
 
user10984358
I thought if everyone is on the same network then I just give them the IP. But they can’t access my app
 
did you host it at localhost?
 
user10984358
I’m using this to run python -m flask run —host=myIP
 
user10984358
I see a running on myIP:5000 in my command prompt
 
11:49 AM
obligatory rubber duck warning not to use the dev server in production
 
what is the first group of your IP? say for 127.0.0.1 it would be 127
 
user10984358
10
 
ha
 
user10984358
What’s wrong ?
 
I only know 10.something addresses from containers that are run inside my system. unless you have a fancy tunneling setup, noone but you can talk to that
but I'll have to check, networking knowledge turns my brain into a single-holed sieve
 
11:52 AM
that's a funnel ;)
 
user10984358
My org has some fancy pansy setup here?
 
user10984358
I tried some inbound rules in windows firewall and opened port 5000. No use.
 
10.0.0.0/8 are private addresses, so the other folks must be on the exact same internal network. Can you guys ping or telnet each other? Does your computer have another IP?
 
user10984358
I’m not sure we can ping but all of us can ssh to this one specific server somewhere in US, only if we’re on this network. So same right?
 
And you're hosting it on that specific server, or your workstation?
 
user10984358
11:57 AM
My workstation.
 
well, host it on the server. then if you can reach it, everybody of your org can
 
@TheNamesAlc not specifically, but there is basically "public" and "<randomly guessing and hoping for the best>"
 
user10984358
I don’t think I can host there. I’m just leveraging the infrastructure the org has for my test project.
 
user10984358
But if I host on my laptop shouldn’t it just work ? That’s the whole point of being in the same network. what to do if I can’t ping them either?
 
@TheNamesAlc depending on your org, communication in the internal network is restricted as well (it's pretty standard to do the). can you ping them?
 
user10984358
12:01 PM
I just pinged the next number mine is say 32 I pinged 33 and i got 0% loss
 
you're on windows, right?
 
user10984358
Yes
 
well, then I can't help much. all the meager stumbling I could offer to assist is linux only
 
user10984358
I’ll just try the Same program with my MAC when I get home. Home routers don’t have these restrictions, do they?
 
@TheNamesAlc alright, that's good. What happens when your peers try to access your app? Do they get a message like "Server is not reachable" or something else?
also, can you access it from your own machine?
 
user10984358
12:04 PM
The site can’t be reached
 
user10984358
Chrome. The same ip I used for pinging.
 
user10984358
You mean can I see the flask app?
 
user10984358
It’s supposed to just display the user name. And I get mine when I go there.
 
Side note: where would it take the username from?
 
user10984358
getpass().getuser()
 
user10984358
12:11 PM
I’ve come across some security issues with this but hey it’s better the hello world :)
 
wouldn't that always print your username?
 
user10984358
The script doesn’t run on their system? Wow. Didn’t even bother to check that.
 
ie. the user under which your server runs
 
user10984358
Well so my app is just going to print my name then. Great
 
It would be pretty wild if flask-powered websites would fail to run if the client didn't have Python installed
 
user10984358
12:14 PM
I assured someone all they need is a browser to work with. How did I not think about that when I did what I did :/
 
you just have to pick up a few concepts about servers vs clients
 
user10984358
I guess I have to jump into the dreaded networks then. I thought I could just code something and it would work guess there’s more to this than I thought.
 
networks are no joke
 
I don't think you have to know a lot about networks to write a flask app. Most of the time, you have to worry about exactly two computers: the server and a client.
 
user10984358
Thanks for reassuring me. I kinda slacked my way thru that course at uni.
 
user10984358
12:18 PM
One of my base functionality of the app is broken. So I need to get that fixed first before I host that.
 
user10984358
Can you get usernames from the system it is opened or some JS linking with flask and getting the username is an option?
 
As in, the user name that the user used to log in to their computer? I don't think that's accessible. Websites usually set up their own login system.
 
user10984358
I guess I have to rework on my approach then. I wanted to do a “Class Attendance System” that automatically gets usernames for students who logged in. Guess I need a input now.
 
Just as well, there's no reason to expect that the user's system username actually uniquely identifies them. John Smith might log in to his computer as STORMAGEDDON_DARK_LORD_OF_ALL and that probably wouldn't match anything in your attendance records.
My system user name is "Kevin" and this would have been entirely unhelpful for attendance purposes since my graduating class had five Kevins in it.
 
user10984358
Lol. One can impose students to log in with their student accounts.
 
12:24 PM
Hi everyone, is anyone familiar with both Pycharm and Git? Actually, I'm just trying to set the connection between pycharm and a github repository
 
user10984358
We have unique emails we use to login. The .edu ones.
 
are you trying to re-implement something akin to ILIAS?
 
user10984358
Idk what that is but I’ll look into that. Probs “get inspired” by the ideas.
 
The website we maintain here at work automatically gets the user's username. The website is actually a sub-site of a larger portal. The portal injects the user name into the page header before my site first loads.
If you're adding your project to some kind of existing university bundle, maybe poke around and see if they have something similar.
 
user10984358
We have a campus management system.
 
12:27 PM
authentication as well? do you guys have eduroam?
 
user10984358
I don’t know what they use. But you enter the edu email and you are logged in.
 
user10984358
No two factors or anything.
 
user10984358
Email and password that is.
 
I recommend you find out what they use
 
@Mez13 pycharm will automatically pick up .git files in the project root. what exactly do you want to connect?
 
user10984358
12:29 PM
I’ll talk to them anytime over the week then.
 
user10984358
I was half expecting javascript to have some system module or something that could read usernames. Dang those security issues.
 
@Arne I have a project on github, I want to import it locally basically
So I can push my modifications, and so on and so far
 
Javascript has the unique privilege of being the #1 easiest way to execute code on a stranger's machine, so it has to be very very careful about what it's allowed to access
 
user10984358
I appreciate the help guys. See ya later. I’ll run the app on my router at home. Hopefully less hindrance in that way.
 
I bet there's uni authentication, something something sessions
 
12:36 PM
@Mez13 ^
 
@Mez13 or if you're not getting that view, jetbrains.com/help/pycharm/…
 
@Arne Thanks a lot, I'll let you know if anything is wrong
 
cabbages, everyone!
 
cbg all
 
1:03 PM
Time for the terrifying ordeal that is "working with xml in a language other than Python"
Let me just fire up the ol' xmlParserFactoryBeanReflectorEnterpriseManagerEngine...
 
1:15 PM
@TheNamesAlc Welcome to software development.
@TheNamesAlc If a host can ssh to your "server" by IP address, that means there's a route for all TCP/IP traffic. It's possible there's a firewall intervening (particularly if you're working in a VPN) but it would be very unusual to allow ssh and deny http(s).
The other possibility is your server isn't "listening" on the right network. The netstat command can tell you something about that - look for a socket in LISTENING state on 10.X.X.X:80 (for http).
Sorry: 10.X.X.X:5000
 
It is to cabbage
 
netstat -n -p TCP
Seems to work quite well in Windows.
 
recbg o/
Anyone have worked with MongoDB(Using PyMongo) ?
Is there anyway to achieve this using PyMongo: stackoverflow.com/a/49887954/1944896 ?
 
1:33 PM
Isn't that just an outer join between A and B where B.id is not null?
I worked with PyMongo about 3 years ago, but haven't touched it since
 
@PaulMcG more or less
Thank you; understood what I need to do.
 
2:30 PM
Cabbage?
 
cbg
 
@Johnston sopython.com/salad
 
2:55 PM
káposzta
 
I am having the strangest error.
I wrote a python cli to do aes encryption using pycryptodome. It works just fine when I run it from the command line manually
python3 /src/cli.py encrypt --key "24b5923c385b642e002c8daf823798b7" --secret "facebook"
{"cipher_text": "9e63c23331221972", "tag": "2a80bb3f0d95263487561cfaf031c412", "nonce": "0d27dbdb1285b2c6efce5e5955bc4fb4"}
But when I run it via node using execa which I've used a gagillion times I get this error:
return binascii.unhexlify(hexStr)\n' +
'binascii.Error: Non-hexadecimal digit found'
The command it is sending is exactly the same: From execa:
 
looks like you passed incorrect arguments to the python process
 
  command: 'python3 /Users/jacobschatz/projects/subs/packages/subs_encryption/src/cli.py encrypt --key "24b5923c385b642e002c8daf823798b7" --secret "facebook"',
  exitCode: 1,
  exitCodeName: 'EPERM',
  stdout: '',
 
that's really a JS problem, but I suspect the process doesn't get started in a shell, so you should omit the quotes around the command line arguments
 
It's a JS problem that creates a python error
I mean I can remove that quoting but how would I handle users typing in spaces?
I have to escape spaces I guess
 
3:04 PM
You should ask that someone who knows JS and specifically execa.
 
I think it's more of a command line unix question. Because if I want to pass a word with spaces to the command line I'd have to do something.
But eitherway. It's not a python problem.
 
hey guys, how I can overwrite a text file ? I have something like : with open('data.txt', 'a+') as f:
f.write(data)
 
@AnotherUser31 I think the "a+" flag is append maybe try "r+"
 
user10984358
why not w though just curious ?
 
I have no reason for the "r+" suggestion other than it is more robust and given that there is not much context here it might work better
 
user10984358
3:12 PM
@holdenweb thanks! will look into this once I am back on the network
 
user10984358
is there any way one can say a string is xml or not?
 
@AnotherUser31 Opening a file with mode 'w' immediately truncates it to zero length. Then you can just start writing!
@TheNamesAlc Ask an XML parser - that's what they're for!
 
user10984358
I read from stdout of a certain CLI and then I need to work on that, the output is XML if the flag for xml is set to True and normal string (table based) if its false
 
user10984358
so I just check for an exception when I try to parsify (not getting the right word my bad ) that ?
 
So if the XML parser raises an exception, it's not XML.
Yup
 
3:15 PM
@holdenweb - awesome ! thank you man ! @Dodge r+ didn't worked, but I was reading about that too :( thank you guys, solved ! you are fantastic !
 
Thanks. We know ;-)
 
user10984358
alrighty, thanks for clarifying my doubt
 
No problem. Remember having doubts myself. Always good to clear them up.
 
@AnotherUser31 Hmm, I'm surprised that "r+" did not allow you to write to a file. I wish I had more context to I could understand why my suggestion failed. Glad you got it working nonetheless
 
user10984358
r+ works as append I guess
 
user10984358
3:20 PM
I don't really have my head wrapped around the + versions but I remember using w+ for "get the job done with one pointer" when I was in high school
 
I thought the stream would be positioned at the beginning of the file, good to know
 
user10984358
I can be wrong, pretty sure someone will correct me
 
user10984358
r+ Open for reading and writing. The stream is positioned at the beginning of the file.
 
user10984358
48
A: What's the difference between 'r+' and 'a+' when open file in python?

VisioNPython opens files almost in the same way as in C: r+ Open for reading and writing. The stream is positioned at the beginning of the file. a+ Open for reading and appending (writing at end of file). The file is created if it does not exist. The initial file position for reading is at the begi...

 
if you want to create a new file from scratch use w, no need to overthink it
w for...write
 
3:27 PM
The only modes you "really" need are "w" and "r"
 
Why? Because it is possible to simulate append with write?
 
Create/read/insert/append/truncate/delete are all possible with just the two of them. It might take O(N^2) time, but it's possible.
 
I'd use append if I ever wanted to append, which I don't
 
Definitely use "a" if you're adding one line to the end of a ten gigabyte file.
For any file smaller than 10,000 bytes I don't bother getting fancy. I just read the whole dang thing into a string, make the changes I need, and write the result back out.
 
luddite
 
3:32 PM
Yeah.
 
3:44 PM
cbg
 
3:58 PM
@Kevin Necessary is not always sufficient ...
 
Anything involving file pointer arithmetic triggers flashbacks to my C++ days
 
cabbage
pfew, the great fire wall is strong today - my VPN is struggling!
 
I think new programmers in particular benefit from knowing that they can cobble together the functionality they want out of primitive parts, even if it's not very efficient or idiomatic.
And we benefit when new users ask questions with ugly inefficient code instead of no code
 
@ReblochonMasque I heard they restrict even vpn use before national events and whatnot
 
Yes, they usually beef it up for Oct 1st, CNY, and May 1st... With the events in HK, it might be more strict this year.
Nothing goes since the middle of the afternoon.
 
4:15 PM
I guess you could call HK a national event. You-know-which Square reenactment.
 
So far, the police has shown extraordinary restraint!
Let's hope that continues.
 
Time to iterate through this 40,000 line json file whose structure I have to guess
 
But this is probably not a good place to have this conversation.
 
Sure
 
On the bright side, I've finally found a practical use case for ordered dicts -- it's preferable to order your json so that the largest most deeply-nested values appear last
{"kind": "Widget", "name": "Steven The Widget", "spokeCollection": [ten million bytes' worth of spoke data]} is easier to parse visually than {"spokeCollection": [ten million bytes' worth of spoke data], "kind": "Widget", "name": "Steven The Widget"}
 
4:20 PM
Any kind of display based system usually benefits from jsons being ordered. And then you just pair up python in the mix, and you have a justified use case for ordered dicts
So, say most jsons that would make for displays on UI where the fields are being dictated by the json itself
 
I for one welcome our new overlord
 
5:37 PM
I got the Link's Awakening remake and I agree with the rest of the Internet's assessment that the only bad thing about it is the crane minigame with maliciously realistic physics
I spent fifty rupees getting the Yoshi doll and I will not set foot in that place again, not even when I have 49/50 magic seashells
Some would argue that getting angry at crane games is the only true authentic crane game experience
 
rupees? When were you in India... or Pakistan?
 
The location of Koholint island is not established although most likely it's not in any terrestrial ocean
You can make a case for most 3D Zelda games taking place on Earth since recognizable constellations are typically visible on the nighttime skyboxes, but for 2D Zeldas the jury is out
Doubly so Link's Awakening, since view spoiler for a thirty year old game
 
Hmm, I wonder how strong parallax is on the night sky. I bet within the solar system there's no recognizable change. How about the next solar system? I have no idea.
 
Good point. Theory: Zelda takes place on Venus, before its surface was obliterated by a runaway greenhouse effect.
 
Are we talking about the crane game that involves retrieving a stuffed animal with a claw that has a grip strength suitable for grasping objects that weigh exactly half that of any stuffed animal actually in the bin?
 
5:49 PM
sounds like, yes
 
Exactly right
 
I've learned a new term reading about the CEO hire: "knowledge workers"
 
@AndrasDeak askanastronomer.org/stars/2015/10/02/constellations-from-earth says that the parallax shift in constellations is "tiny but measurable" from different vantage points in our solar system. He goes on to say that the Big Dipper would not be very recognizable if you were orbiting one of the stars that make up the Big Dipper, but that's pretty self-evident I think
We still don't know what things would look like if we moved to a nearby star, for example Alpha Centauri
 
measurable yes, but I doubt to the naked eye
Especially with no real objective reference on the sky. You might get a tingling feeling that Orion used to have a longer leg, but you'd never be sure.
 
Yeah. I'd wager that the difference is smaller than the constant distortions caused by the atmosphere anyway.
 
6:06 PM
@Dodge I'm so old I remember being fascinated by the term in 1985 when I joined Sun (under which, apparently, there is nothing new). It seems to have found a place in the language.
@Kevin The stars that make up the big dipper might, of course, be tens or hundreds of light years apart. All we see is their projection on out visual field, which is pretty two-dimensional.
 
@holdenweb I do live deep under a rock
 
^^ Quite so
 
Dyslexia is a curse.
 
Let's see... Alpha Centauri is 4.37 ly away, and the stars in the Big Dipper are between 81-124 ly away. If Alioth and Megrez, the closest of the bunch, were directly overhead as viewed from earth, and the observer were teleported to Alpha Centauri, then their new declination would be no lower than atan(81/4.37) ~= 86.91 degrees
a three degree difference is probably noticeable if you were watching during the transition, but maybe not if you checked your phone real quick while you were going through the wormhole
 
6:22 PM
If I was better at spherical coordinate math, I'd be able to use the RA and Dec values at en.wikipedia.org/wiki/List_of_stars_in_Centaurus to tell you what Centaurus looks like when you're at Alpha Centauri (which is, itself, inside Centaurus)
 
6:33 PM
@Kevin That game was the sole reason I bought a gameboy with my very limited funds, and when it permanently glitched after running the batteries dead, I refused to buy another one. I wonder if my parents still have it.
 
Using the shorthand of "moving a few light years distorts constellations, but not by a whole lot", and observing that Orion as depicted by Wind Waker is recognizable yet squashed, we could feasibly assert that it takes place in our general stellar neighborhood
@AaronHall The odds of one's parents keeping a game is inversely proportional to the game's sentimental and secondary market value
A less-than-mint-condition L.A. cartridge would probably go for less than twenty dollars, so your odds are good
Maybe I'll fire up my own original copy. I find myself missing the essential glitches that the remake omitted: pausing during scene transitions teleports you into out-of-bounds areas, and throwing the boomerang while lifting the flying rooster causes the weapon to oscillate around you indefinitely as a makeshift lawnmower of death
 
I doubt an unusable cartridge is worth anything, so I'm guessing they have it.
 
6:50 PM
I'm curious how playing the game until the system's battery died could have permanently borked the cartridge. You'd think the game would notice the corrupted writable memory and just blank it out the next time you booted.
All of the maps and NPCs and enemies and such should be safe in the ROM
 
Can't find a canonical reference for the issue, but there's a commenter on this youtube video that claims it happened 3 times to him: youtube.com/watch?v=VZKpFoHcD9s
 
On a scale of basically-impossible to "I'll have what you're smoking", what do you think the probability is of being able to spoof an SQL Server database, catch the query and translate to a Postgres query? My research isn't getting very far, but setting up the fake server and trying to catch the query submitted over the network is quite an investment if I'm only going to see a garbled mess coming through (which I assume I am, but maybe someone knows otherwise)
The units in our factory are able to sync their product counts via SQL... but only to SQL Server. Everything else in the system I want to sync to has Postgres on the backend. I don't wanna have to do a full migration, or run two databases for something so simple. I don't think it's a corner I can cut, though :/
 
Currently trying to cross-reference this image of the L.A. circuitboard with this breakdown of Game Boy memory controllers to figure out how much battery-backed memory was available to the game
It's MBC1 I think, so somewhere between two and thirty two KB
 
Or, I see nothing come through because my spoofed database has to send back some kind of handshake re: the DB technology before the unit will even send the query, which would be enough for me to just drop this hare brained idea from the start
 
I think remote sql server connections are just TCP/IP, so it's not insanely hard to listen in on the right port.
You may be correct that the protocol built on top of that would be obfuscated or multi-step or both. Perhaps you could set up an actual remote sql server instance on your network and monitor what passes between the client and server computers using Wireshark or similar
That will at least give you an idea of how complex this would be to reverse-engineer. You might get lucky and it's just the entire query in plaintext.
 
wim
7:09 PM
I wonder if Joel Spolsky just wants to get away from the train wreck and move onto other projects
 
^^^ is a much more concise way of saying what I suspect. I think I'll have a tinker tomorrow.
 
wim
am I missing something obvious here? OP unaccepted answer and then posted this comment
huh, "Too broad" close reason is back... didn't that go away or am I remembering wrong?
 
? What did I miss?
 
@wim you misremember
 
misremembering ithink. too broad is a close reason for as long as i have been around in any case, and i don't think it poofed
 
7:13 PM
I don't think it ever went away. If it did, it was ridiculously brief
 
@wim I think they got confused with their own example
 
Perhaps you're thinking of the "too narrow" close reason, which I continue to yearn for
 
@Kevin yeah, that was "too localized", but way before my time here
 
7:30 PM
@wim No, as far as I can tell, you missed nothing. Either the OP is mistaken or they've slept on it and imagined they wanted it in ascending order </shrug>
 
wim
7:44 PM
thanks. how long have your shoulders been up like that?
 
months
HTML is the bane of my life. I just take stabs on whether I'm opening or closing a block of shrug
I never quite know whether I get back to the class="existential" shrug or whether I just keep going
 
for self-closing tags I recommend <shrug /> or <shrug>, since that's what the BR tag uses
 
8:03 PM
To be fair, I've got a pretty decent cookie-cutter template now at work for templates with bootstrap, I just need to work on the JS so stop writing new functions that do basically exactly the same thing. I was exaggerating on the HTML/CSS side. I need to face up to my DRY responsibilities and sort that out but... it's so boring :/
 
is this question seriously just "how do I call a function?" stackoverflow.com/questions/58087404/…
 
Yep
 
indeed
 
8:33 PM
What's more amazing is that it has 2 answers and not an immediate dupe flag
 
Well, do you have a suitable dupe target? When you go low enough there's no precedent undeleted
 
@EdekiOkoh this is just an indentation issue with return? Aren't there tonnes of dupes for why you shouldn't return in a loop?
Appropriate dupes take time to track down and there are a lot of questions to cover
 
02:00 - 21:0021:00 - 00:00

« first day (3265 days earlier)      last day (1689 days later) »