« first day (3949 days earlier)      last day (1003 days later) » 

12:16 AM
Astronomy is arguably one of the oldest branches of science, and timekeeping has always been an integral part of it. So you'd expect that by now we'd be able to deal with time measurements in a sane and coherent fashion. However, that's not necessarily the case, as astronomer Steve Allen describes in A Brief History of Time Scales.
Part of the problem comes down to politics. There are also the practical issues that arise involved in changing stuff from one time scale to another. So you can easily end up with a xkcd.com/927 situation.
Even something as fundamental as the SI second got slightly yammed up when it was originally (re)defined in terms of the caesium clock frequency. The second they used was based on the Earth's rotation, but its value was derived from calculations dating back to the mid 1800s, when the Earth was rotating slightly faster, so the SI second was slightly too small from the outset. If they'd used the then-current value, we'd have needed fewer leap-seconds by now.
 
12:53 AM
Speaking of time-related data, and changes thereof, meta.stackexchange.com/questions/368285/… has now hit -200...
 
 
1 hour later…
user14803978
2:00 AM
I was wondering if someone could help me with post/put requests.
I know how to send them. There is a lot of documentation out there on sending.
However, 95% of all of the documentation out there, refers to httpbin.org/post as the host.
As far as i can tell, httpbin must have some kind of file that turns around and says, yes, you can send me data.

Because if I try to do it to my server, I get a 200 code, but nothing changes on the file.

All I need to do is change the contents of a file on my server several hundred times a day. Thats all.
 
user14803978
I will also add that i can create apps on my server. I dont even know if I need to.
 
user14803978
What would be really useful would be to see the back end of httpbin.org/post so I know how to handle the requests. Its gotta be a php file or something
 
Because if I try to do it to my server, I get a 200 code, but nothing changes on the file. can you show the code? I am hoping this is python
 
user14803978
yes this is the requests api for python
 
user14803978
def Upload():

url = 'http://httpbin.org/post'
files = {'file': ('station.dat', open('data/station.dat', 'rb'), 'text/plain', {'Expires': '0'})}
r = requests.post(url = url, files = files)
print(r.text)
 
user14803978
2:09 AM
httpbin works perfectly
 
user14803978
as it should
 
user14803978
my company website does not, and obviously there is application running on httpbin.org that handles this, but I cant find documentation on how to make my own
 
I meant the code that you use to try to change a file in your server
so there must be a code that runs and accepts your requests, if the file changes are not reflected, then you probably have to look into the server side code
the fact that you get 200 means, the server (the code that runs) accepted your request
afaik, what you have shown is enough to upload a file
 
user14803978
That is the code
 
user14803978
I have no code on my server. I have no idea what to do there
 
user14803978
2:17 AM
see that is what i figured but... nothing is working
 
user14803978
it gives me back a 200 code, but no change server side, and that is what confuses me.
 
user14803978
which is what leads me to believe that I must need to create an app on my server
 
how do you get the 200 then?
if you have no app on the server
 
user14803978
I assume that cpanel has its own handler right?
 
unless you have a server that just accepts anything and sends 200 for everything I cant think of anything, I dont know much about server, I have written some basic web apps that is it
 
user14803978
2:24 AM
ok
 
3:32 AM
@roganjosh Table formatting can be a bit finnicky, and the preview doesn't always match the final rendered version. See meta.stackoverflow.com/a/403577/4014959 Having a blank line before & after the table (allegedly) fixes things.
 
 
4 hours later…
8:02 AM
@AndyB You would be correct. There is nothing particularly special about GET/POST/PUT etc. That communicates to the server how you would like it to handle your request as part of a RESTful interface. But the server can't actually do something unless you write the code to handle the request server-side
httpbin doesn't actually have to do anything with your request other than to parse the request body and tell you "yeah, I can read this". It doesn't act on it, it just tells you that if you sent a similar request to another RESTful API, it'll probably be able to action it
The part that confuses me, though, is "my company's website". Presumably you have some existing resource that you expect will be able to handle this?
@PM2Ring ah, thanks for finding the meta post to give a conclusive answer. It's a shame the preview and the result are not in sync :/
 
8:40 AM
@Kevin Ha, by weird coincidence I've just stumbled across it while trying to clean up some directories. For some smart reason, I'm sure, it was named cow_query.py. Anyway, it now has a gist :P
Presumably because we discussed the superb wages that you were paying your cows in the Bill of Materials
 
 
1 hour later…
9:51 AM
Hi Everyone. Is there django chat room in stackoverflow?
 
Not that I know of. django questions are totally on-topic here but please make sure you read the room rules before posting
Also, hello, sorry :P
 
10:30 AM
how does an RO remember everyone first visit?
 
alien tech.
blame Kevin.
 
knowing Kevin I wouldn't doubt the existence of alien tech
 
@python_user An RO?
I either go off a search result or ask Andras
Or, sometimes, my memory serves.
 
any RO*
 
Even so, it's just down to being in the room (as an RO) enough and catching up on transcripts to remember who you've seen before
 
10:40 AM
I have been here for roughly a year now, so I can identify the regulars and most semi regulars, sometimes I just miss the mark when some old user comes back
I would not have guessed davidism as a regular :D
 
That's just because you've not been around for long enough. There's no magic to knowing that other than time served in Room 6. He's also an RO
 
soon I will earn my regular status then ;)
 
Also, it doesn't take an RO, or even message history to figure that out to be honest
 
You already are a regular, we just can't backfill your memory :P
 
just look at the message itself. it's almost always a dead giveaway.
 
10:43 AM
laurel, thanks, and yeah ^ this too
talking about being a regular, I am thinking of coming back from my "retirement from main"
 
Good luck with that. Be sure not to lambast users by asking why they're using obsolete python versions
 
laurel, I will just add asspresessions and convey my point subtly ;)
 
That chip refuses to come off my epaulettes
 
that's not a commonly used word, is it
 
10:48 AM
I had to google it, FWIW
 
It is if you have a level 98 beastlord in EverQuest from years gone by
 
I knew what it referred to once I saw the meaning, but I always referred to it as a batch :D
 
ah, that explains it :)
 
Actually, I think I got to like level 107. My Gatash alter-ego is fading from my own memory :'(
 
this game from 1999 got an update as recently as feb 2021, wow
 
10:54 AM
Oh yeah, it's still running. Better than its sequel
It still has a special place in my heart. I've not played for quite a few years, but I did play an awful lot. Now each expansion is cookie-cutter because I think they have like 3 developers
 
I would not expect a 20 year old game to get updates especially if there is a sequel, AAA games nowadays are not that dedicated by this standards then
there was also one game that got updates after years, I guess it was on SO blog I guess
a single dev
 
Yeah, I read that blog. Here
 
yup that one, I didnt read it, I just glimpsed at it, its one of those things that was in my 20+ "to do read browser tabs" and got closed
 
Everquest is slightly more complex than that, though :) It was one of the forefathers of MMORPGs
 
I always thought World of Warcraft as the first of its kind, clearly I am wrong
 
11:05 AM
Oh, WOW, you're waaay off on that (and yeah, the "WOW" was deliberate)
Ultima Online and EQ paved the way. And EQ was hard. 14 yr old me would get on a boat and then go have dinner, because you literally had to ride the boat for 30 mins. If you were unlucky, the boat would glitch and catapult you into the ocean and a shark would kill you. If you didn't get back to your corpse within 7 days, you lost everything
 
that is hard, games nowadays would probably ask you to spend 5 gems to skip the ride
 
Yup. Nobody has time for that these days. I remember doing CRs (corpse runs) taking 3 or 4 hours "naked" just to make sure I didn't lose my armour etc. There's no way you could make a game like that these days
 
@python_user ha, sweet summerchild
 
laurel, at least by some factor I can consider myself young
ohh I know about MUD, I played even one as recent as a year back, let me find the name
and I know of MUD a year back not when it was a thing :D
the game I played was called Alter Aeon, some guy on reddit said it is like the Overlord anime so I just tried it and that is when I learned about MUD
 
> MUD, better known as Essex MUD and MUD1 in later years, ran on the University of Essex network, and became more widely accessible when a guest account was set up that allowed users on JANET (a British academic X.25 computer network) to connect on weekends and between the hours of 2 AM and 8 AM on weekdays.[23] It became the first Internet multiplayer online role-playing game in 1980, when the university connected its internal network to ARPANet.[24]
 
11:14 AM
1980 :O I really should look at history of games now
 
of course one could argue that it's not an MMORPG unless you can watch female characters on the screen wearing skimpy "armor"
 
haha, I mean it works and it boosts up defensive stats after all
its "purely cosmetic", that is how most games justify it nowdays
 
FWIW if you wanna know how these games started, there is Project 1999 for EverQuest.
If you're only accustomed to modern games, I think you'll find it quite distressing tbh. Also, I don'y know how many people are on that server these days and you'll need to "group" to get anywhere. Or you'll need to be a Necromancer for any real hope of soloing, unless they now include Beastlords.
 
11:29 AM
I havent played any of these games so I dont think modern games have spoiled me
 
General life usually spoils you. I go back to N64 games like F-Zero-X and it comes up with a screen that slowly shows "GAME OVER" and it drives me mad. Yeah, I know I failed, <furiously presses buttons> I just want to go again.
 
i mostly find the graphics unplayable, the controls too to an extent
not with N64 specifically, I have never owned those, but I have played in emulation
 
That's sad :( Ocarina of Time, for example, has been voted the best game ever made, but nobody is going to be shouting about the graphics
There was a time where graphics didn't actually make a game. May I ask how old you are?
 
11:45 AM
yeah almost 26
I have used a NES, not an N64 for some reason
 
I've never had any kind of console
 
Does that mean you've not played Ocarina of Time @AndrasDeak? :'(
 
No super mario brothers, no zeldas, no nothing
I know, I know, it explains my rosy disposition :P
 
I'm almost tempted to mail my N64 over because I don't know whether an emulator will capture its awesomeness
 
Lol
I'm sure I could get ahold of one
 
11:52 AM
they cost a lot now dont they? being all retro and stuff
 
I don't think they're quite in that bracket yet
 
cbg
 
I remember playing GTA SA as a kid thinking it was the best graphics I would ever see
 
I would have forgiven you if you at least mentioned GTA VC :P
 
12:03 PM
I did play VC but way less, tried to go back at it on PC later but rage quit over that yamming RC helicopter
 
now I know how roganjosh feels when I said I didnt play Ocarina of Time
 
There's another?! Oh, the world crumbles
 
12:17 PM
Last GTA I played was 2
 
 
2 hours later…
2:05 PM
cbge
 
 
4 hours later…
6:26 PM
I have a weirdly odd question, I want to create a game using c++, and have a multiplayer option using python. Is it possible?
 
Why is it only the multiplayer aspect that you want in Python?
 
I mean creating a server & Client using python. and implement it inside the c++ program ?
yeah, I'm not using any python inside the game itself.
 
To be factually correct, the answer is probably "yes, it's possible" but you'll be doing backflips on a tightrope whilst balancing approximately 3 babies and a puppy on your back
Or your game will be laggy as hell
 
that's suspiciously specific ._.
 
I said approximately
 
6:30 PM
So I guess Ill be using c++ only :/
 
ah, true, my bad then :P
 
<no babies or puppies have been harmed in my coding endeavors>
 
Just never used s&c using something but python.
 
network communication is arguably a pretty low-level mechanism, so I don't see much benefit in using python for that
unless you're using some higher-level abstraction like websockets
 
I am using websockets
 
6:34 PM
IMO it just doesn't make sense, though. If you're proficient enough to write an entire game in C++ then I don't see why you'd be turning to Python for this part
C++ can handle sockets, no?
 
I am basically building a game that scrapes down information from wiki.
and yeah cpp can handle sockets and servers. I am just trying to find the most challenging yet efficient way i guess :D
 
A game that scrapes wiki? With multiplayer mode?
 
Yep yep
sounds bizarre I know
 
That's one way to put it. I don't know whether my curiosity is strong enough to want to know more.
 
ouch :/
Its kind of a no brainer I guess, but its a fun little project I want to do.
I want to use it more as an opportunity to mash up all the things I have learned the last year I guess:)
 
6:39 PM
Have you looked at Cython?
That might help with some of the bridging between your c++ code and python, but I don't have a good mental picture of what your end result should look like, so it might not be necessary
 
nope
im reading on it write now
 
7:23 PM
hey guys
whats the normal way to thank someone on here
lol
just give em an upvote?
 
If the given answer helped you, yes. If they helped you in chat: say "thank you"
 
@owwix indeed. In chat, there is an option to star answers but that doesn't act as a "thank you" here. It puts it on the star board (bottom right) and so should be reserved for things that will be of interest for other visitors. (I have a feeling I cancelled one of your stars in the past, which might be behind this question)
 
On main, if you asked the question, make sure you mark it as answered in addition to upvoting.
 
if the answer answers the question
 
obv
 
7:46 PM
i see, thank you. the question wasn't related to anything, i just want to make sure i'm expressing thanks properly and not wasting comments or etc
 

« first day (3949 days earlier)      last day (1003 days later) »