« first day (3142 days earlier)      last day (1815 days later) » 
01:00 - 19:0019:00 - 23:00

1:49 AM
recbg
 
how long can you go without clicking on the reputation icon?
 
@cs95 i did to 700 once i remember, and once i accidentally clicked it... i meant to hit inbox icon lol, gave up on that idea after
P.S. you can fake it:
 
 
1 hour later…
3:01 AM
that's a little excessive for a fake
but I suppose the philosophy is to fake it till you make it
 
 
1 hour later…
4:20 AM
hi is numpy available on competitive programming platforms ?
For instance on codility "import numpy" leads to an error
 
I'd wager that's a good indication that it isn't
if you're asking whether there exist online judges with numpy, then I don't think so. Try Leetcode, that's my best guess
 
5:06 AM
Good morning cbg
 
5:25 AM
cbg
 
5:58 AM
moin moin
 
@Hakaishin Moi moi
 
6:28 AM
cbg
@cs95 Haha, one day it will happen lol
@Hakaishin Had to search up to get meaning...
 
^^
Any idea what could cause my windows service to properly close in 10 but not in 7?
It uses a standard signal handler
 
7:01 AM
try this:
>>> a=257
>>> b=257
>>> a is b
False
>>> a = 257; b=257
>>> a is b
True
>>>
hi, I want to know does writing two lines of code in a single line separated with ; is different from writing it in two lines. If I am using python shell
 
@Kush I knew there was something like this...
 
@U9-Forward I tried searching but didn't got.
 
@Kush Because of the peephole optimizer. If you write two statements on the same line, python can see that you use 257 two times and make both of them refer to the same 257 integer. If you do it on separate lines, that optimizer can't do that.
>>> dis.dis('a = 257; b = 257')
  1           0 LOAD_CONST               0 (257)
              2 STORE_NAME               0 (a)
              4 LOAD_CONST               0 (257)
              6 STORE_NAME               1 (b)
              8 LOAD_CONST               1 (None)
             10 RETURN_VALUE
 
Oh @Aran-Fey Thankyou Got it!
 
^^ both statements load the same constant
 
Sam
7:13 AM
Any idea how I'd begin to debug a Flask application running in Docker using Gunicorn as a WSGI? The issue is that I am not getting a response from my endpoints when running the docker container even though it looks like it is booting up properly (note also that it runs using Flasks built in server, just not when I deploy with Docker)
When running the docker image, it looks as though it is booting up properly
[2019-05-24 07:11:08 +0000] [1] [INFO] Starting gunicorn 19.9.0
[2019-05-24 07:11:08 +0000] [1] [INFO] Listening at: 0.0.0.0:5899 (1)
[2019-05-24 07:11:08 +0000] [1] [INFO] Using worker: sync
[2019-05-24 07:11:08 +0000] [9] [INFO] Booting worker with pid: 9
 
add more debug logging to the code?
 
@Sam Looks complex :-)
 
Sam
@tripleee Given that it works using Flasks server, isn't it likely to be a Docker or Gunicorn issue rather than code?
Additionally, if I run the app using gunicorn -b 0.0.0.0:8000 app in the terminal it works fine. It's only when I try and deploy it in Docker I get stuck
 
quite possible, but then at least you have a chance of seeing where exactly it gets stuck
you are exposing the correct port when running it, I hope?
 
Sam
7:32 AM
Ahh I think I forgot to manually specify the ports in docker run
 
I never quite understood why EXPOSE in the Dockerfile doesn't actually do anything when you docker run the image
 
@tripleee I think I kinda do
since I wondered about the same thing, I tried to get behind docker port philosphy
 
part of the problem I think is that Docker has philosophies of their own for many things
 
Any idea how to debug "ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host"?
I get that on the client side, but on the server side I get nothing in the logs
But I dont see how this is even possible, since the whole code block is surrounded by a try except clause. And no exception get's silently ignored, still on the receiver side I see no errors, but my client claims that the remote host closed the connection
 
Why do you mean subprocess?

I want to develop an application that uses the subprocess module
 
7:42 AM
Yes, but C:\Users\Mustafa\AppData\Local\Programs\Python\Python37-32\lib\site-packages\run\__init__.py isn't subprocess.
 
Sam
Yeah I use EXPOSE in my Dockerfile
 
Well, then I'm going to go back.
 
I know very little about networks, so there was a lot of new stuff. But the corner points were:
- docker isolates storage, network, and computing
- if you were able to open a port through the image definition, you'd blow a big hole through network isolation
- that would be unacceptable, so you have to open the ports separately as an argument to running the container instead. same goes for storage sharing with the host (--volume or --mount). I never tried sharing computing, if that even makes sense or is possible
The ESPOSE is only useful within the network maintained by docker, which doesn't need to be isolated from the host in the same way. so if you run multiple containers in the same docker deamon, they can talk to each other using their EXPOSEd ports
@tripleee that, too. but I think they need to be opinionated in order to offer a useful service. If it tried to let you configure everything in such a complex domain, nothing would ever really work unless you know the service by heart
 
ack, thanks for the explanation, I guess it makes sense
 
8:05 AM
recbg
 
8:23 AM
Has somebody had the experience of using remote desktop? When I try to connect for the first time to some other pc it always times out the first time. Second time it connects within a second or 2
Now I found the trick to just to try to connect once, close it immediately and the second time is fast. Anybody an idea why this is this way?
 
@Hakaishin Lol, found a solution, be happy :-)
 
...
Ah I found an answer, although it does not seem clear to me what it does and why it should work
7
Q: Windows Server 2008 R2 STD doesn't accept first attempt to RDP

Volodymyr M.I have a terminal server running Windows Server 2008 R2 Standard and there is strange issue that I cannot connect to the server via RDP when I try to do this for the first time, but after first attempt fails, and I try one more time - session can be established and runs smoothly. There were erro...

 
8:50 AM
Hi everyone, I'm trying to read an .msg file (mail from outlook) thanks to the library email, but I'm facing some issues. Have you ever done this kind of things?
 
9:16 AM
Actually, the library extract_msg is better for parsing emails. Thanks anyway
 
@ParitoshSingh lol we both unpacked a generator expression and even used the same inner values of the comprehension
 
oh haha. well, it all made sense :P
 
I was about to post the same, but saw the same answer already :)
 
does anybody know why yy-12-31 is considered "week 1" when you use %V for a datetime?
 
9:33 AM
@Violatic "Week 01 is the week containing Jan 4."
So it can be considered week 01, or 53.
 
or 52 even
 
Yeah.
> The year number of the ISO week very often differs from the Gregorian year number for dates close to 1 January. For example, 29 December 2014 is ISO 2015-W01-1, i.e., it is in year 2015 instead of 2014. A programming bug confusing these two year numbers is probably the cause of some Android users of Twitter being unable to log in around midnight of 29 December 2014 UTC.[2]
Fun :D
 
yeah
so the correct interaction to use, if you're using year_week
is not %Y_%V, but is instead %G_%V
since %G is ISO 8601 year with century representing the year that contains the greater part of the ISO week (%V).
 
i just ignore datetime and hope nothing bad happens. it is very similar to inserting cotton into your ears and yelling "na na na you don't exist". It works quite well...until it doesn't.
 
Time is like, relative, man.
 
9:48 AM
calenders suck, time keeping sucks
 
getting rid of summer/wintertime is the first step. next up, a global clock. who cares if the sun goes up at 6 or 16? Just say "morning" if you refer to the shiny sky circle and say "lets meet at 17:30" if you actually care about being on time, no matter where your adressee lives.
 
frankly, the first step alone can fix so many headaches
 
(also about 85% less pain with databases and logs, but that's surely a minor concern)
(cries in fullstack)
 
laurel
 
can we also get rid of the european period vs comma swap. I don't want my data to sometimes be 100.000 and other times be 100,000
 
10:00 AM
as someone from a decimal comma country, count me in
 
@Arne THIS YES
 
10:59 AM
hey all, anyone here have much experience with pysftp?
 
Never used it, but a quick glance at PyPI shows that it looks pretty simple.
Hasn't been touched in a few years. Tested on Python 2.7, 3.2, 3.3, 3.4
 
ye its pretty simple, just having some wierd behaviour
@PaulMcG mm so its going stale :S
 
Or it has reached complete fulfillment
 
true
 
But Python marches on - unmaintained packages have problems running on new pythons, such as when new keywords are added. We use a package that had 'async' vars sprinkled throughout, so it broke when we upgraded to whatever Py3.x it was
But surely you know that "having some wierd behaviour" is less than helpful in understanding your issue
Weird in what way? What did you ask it to do? What did you expect it to do? What did it do instead?
Well, I would have liked to help, but must rbrb for now
 
11:12 AM
yes I wasnt going to ask the question
because you said you werent too familiar, so i didnt want to waste your time
ie spam the chat with my issues :S
@PaulMcG essentially the SFTP server I am communicating with doesn't provide a host key. So in the code I have set hostkeys to None. I have been working with a test file and this has been fine, however all i have changed is the file being uploaded and I am now getting user warning about the hostkey, as if the pysftp is ignoring me setting it to None
Its wierd that this user warning suddenly appeared, when the only change i made was to a production upload file rather than my dummy file
 
user7437554
Guys, I'm quite astonished with a problem, you may have some guidance
 
there is a SO thread about pysftp ignoring the user setting the hostkeys to None, but its odd behaviour that is suddenly starting occuring when i change just the upload file
 
user7437554
I need to find the 'peak values' & the full width of the peak (at mid height) for several rows in a dataframe, any idea if this can be done?
 
so you want the max of the frame
and any value v >= max/2?
 
11:28 AM
Shouldn't calling on a client socket s.shutdown(), s.close() trigger the server socket to throw an exception?
when trying to client.recv(chunksize)
 
the socket library generally just gives you no data instead of throwing errors
AFAIK shutdown exists to tell the OS when it can clean up the connection
 
so the client.recv call will just hang?
 
it will give you empty byte
b""
 
I had the feeling/experience that it throws an error all the time
ah I see
but does it only give an empty byte when the other side is closed or could that also happen during normal traffic?
 
12:00 PM
I think I'm misunderstanding something with sockets. I have a small mvc which I expected to timeout after 3s, but it does not, why not?
import socket
import select

s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
s.settimeout(3.0)

s.bind(('', 22222))  # Bind to the port
s.listen()

while True:
    readables, writables, exceptionals = select.select([s], [], [], 10)
    for readable in readables:
        client, addr = readable.accept()

        while True:
            a = client.recv(10)
            print(a.decode())
            a = client.recv(10)
            print(a.decode())
and client
import socket
import time

s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect(("localhost", 22222))

s.send("Hi".encode())
while True:
    time.sleep(3)
s.shutdown(socket.SHUT_RDWR)
s.close()
especially the doc says: "Set a timeout on blocking socket operations"
I get Hi, but then the server just hangs forever instead of timeouting
ok, nvm setting socket.setdefaulttimeout worked, don't know why settimeout didn't work
 
@Andy You are correct, this is really outside my experience - but people come and go in this room, so you might find a helpful soul who comes in later. Or you could just post a question and give it a pysftp tag - that will cast a much wider net than you will get in this chat.
 
12:21 PM
cbg \o
 
@santimirandarp depends on your notion of a peak.
you might need peak finding
For the actual maximum with smooth data you can take the row-wise max, then get the values that are above max/2, and find the island of Trues that contain the max
your question is ill-defined as-is
 
12:42 PM
Are there any IDEs that interpret "\r" as "erase the current line and return the cursor to the leftmost column"? I'm trying to reverse engineer the curious behavior of Output in stdout differs in cmd and Python console when it runs in a "Python console"
 
user7437554
@AndrasDeak ok, I'll try a better description. I've a set of values, it is not smooth (the kind of plots from mass spectrometry ncbi.nlm.nih.gov/pmc/articles/PMC2631518). And I'm looking in scipy, it works, but it finds all the peaks, I don't know how to select only one (the highest)
 
@santimirandarp neither does scipy. You have to choose yourself. From peak values, for instance.
 
user7437554
and also need the width of that peak :(
 
Once you have all the peaks it's easy to find the tallest
 
user7437554
wait
 
12:45 PM
use convolutions
 
@santimirandarp can't you fit a gaussian to the highest peak? I haven't done mass spectroscopy
 
user7437554
let me show you one plot
 
user7437554
 
user7437554
No idea how to get width from the highest peak. The value might be obtained by max(list)
 
You can't tell the width from that. Too low resolution/too sharp peak
 
12:50 PM
im confused, what does width mean here? i presume whatever it is, you can always calculate it based off of the monotonic directions on the graph*
 
How can it be that my threads hangs?
 
user7437554
I might be misunderstanding the excercise
 
This is the last line: log.info("Closing thread")
and I see it in the log, at the same time when I call threading.enumerate() I see:
<Thread(unittest/stats_to_send, started 396)>
 
any ideas how to add a legend to a chart which is made from a pivot table?, since normally you use label='', but if you're from a pivot table it just produces all the lines anyway?
 
but before I got in the log:
24.05.2019 14:49:09 [INFO ] [unittest/stats_to_send   ]   Closing thread
How can this be? Can threads hang around even after they finished their last line of code?
 
user7437554
12:52 PM
@ParitoshSingh you're right, it's not clear because there should be a horizontal line.
 
@Hakaishin Interesting question. If you've got an MCVE, I'm interested in investigating.
 
I'm pretty sure when I make one it will go away, but give me a sec
 
ok, that makes sense. aye, these are just pointed peaks, they do not have a "width" in that sense.
 
I know that strange behaviors involving threads are prone to magically vanishing when you look at them funny, but it's worth a shot anyway
 
user7437554
I won't solve this exercise :(
 
12:55 PM
context of this exercise? is it for a class, or some online course? can you get clarification?
 
user7437554
its for a job, so I have little idea what is the real (experimental) context. I'm supposed to analyse data from an ion mass spectrometry @ParitoshSingh. I've solved the first one but this, I can't even understand the task
 
Full width at half maximum (FWHM) is an expression of the extent of function given by the difference between the two extreme values of the independent variable at which the dependent variable is equal to half of its maximum value. In other words, it is the width of a spectrum curve measured between those points on the y-axis which are half the maximum amplitude. Half width at half maximum (HWHM) is half of the FWHM. FWHM is applied to such phenomena as the duration of pulse waveforms and the spectral width of sources used for optical communications and the resolution of spectrometers. The term...
 
well in that case, you might as well take an interpretation of the task, and get it cleared in your head. if you are making assumptions, reflect that in your code as comments.
and then do the task anyways.
sometimes part of the puzzle is understanding the question.
 
user7437554
@wwii thanks, but if I have to implement that too, I'm lost. Supossed to be a library for that
 
(i shall refrain from commenting on whether that's a good thing or a bad thing)
 
user7437554
12:59 PM
@ParitoshSingh which one? thanks for the kindness :)
 
i half suspect they will be "disappointed" if they see you do this as a 1 liner and you cannot explain what you did. if this is for a job, this is your time to show you're worth the hire.
 
The link was for a bit of context. I agree the resolution is too low - you can either try interpolating from the points on either side or try and fit a gaussian to it as suggested.
 
Hi guys
 
@Kevin as expected it goes away. But I didn't include the sockets, only the threading logic. I kinda assume that a socket doesn't get closed properly and prevents the thread from closing, even though the last line in the thread was reached
 
the last order of business is then to add them in and test the hypothesis.
 
1:12 PM
@Hakaishin Hmm, could be.
 
@santimirandarp Finding the full width half maximum of a peak - there are a few more.
 
I know, but that makes my mvce not very m any more. althought i guess i'm confusing small and minimal. I just have the intuition that minimal should be small, but I guess it does not have to be
 
eh, its more like detective work really
 
My gold standard for minimal is "fits in one file"
 
oh gosh groan haha
 
1:13 PM
haha, like there is such a mvc^^
 
the best mcve have the minimal amount of code that "replicates the problem behaviour". its important to have the issue in the code still. having said that, sometimes in complex issues, even creating code samples that can eliminate possibilities are extremely useful
 
true, but given that it is friday and that i tested it manually before running the unit test(I know shame, shame shame) and the manual tests worked, I'm really not in the mood to figure this one out :(
 
It is written, "perfect is the enemy of good". If a querent says "I give up, I can't express this problem in ten lines, so please just try to solve it with the vague description I've given so far" instead of giving me a 100 line CVE, then I am unhappy.
 
querent, interesting word
 
heh, that i can understand. Tackle it monday if that's an option :P
 
1:19 PM
Dunno, another person will test it on some test systems on monday. I kinda feel confident, because the real tests I did are closer to the actual production env, but then again why don't the unit tests pass :( i mean the software does what it should, it just doesn't close properly at the end
 
zombies, zombies everywhere!
 
I have this:
    while self.run:
        try:
            readables, writables, exceptionals = select.select([s], [], [], select_timeout)
            if self.run:
                for readable in readables:
                    client, addr = readable.accept()  # Establish connection with client.
                    t = threading.Thread(group=None, target=on_new_client, args=(self))
                    threads.append(t)
                    t.start()
                if not readables:  # pragma: no cover
                    log.debug("Timed out select")
and I even get
24.05.2019 15:10:10 [DEBUG] [sending_thread           ]   Joining unittest/stats_to_send
So i really don't see how this thread stays alive...
 
If your log file contains 24.05.2019 15:10:10 [DEBUG] [sending_thread ] Joining unittest/stats_to_send and nothing else, that's not a very good indication that the thread has finished.
 
oh nvm, the logging is in the wrong order
No it also contains:
24.05.2019 15:10:08 [INFO ] [unittest/files_to_send ] Closing thread
which is the last line in the thread
 
In any case, you might try setting the thread's daemon attribute to True. Then the main thread will try harder to unceremoniously kill the thread at the end of the program instead of just hanging.
 
1:23 PM
Ok now this is getting weird. I changed the order to
for t in threads:
    t.join()
    log.debug('Joined %s', t.getName())
 
Not that it will do much good if the main thread is hanging too, perhaps waiting for a join call to finish
 
but still the thread is active. This seems to directly contradict the docs: docs.python.org/3.6/library/…
Yeah but the join call finished, otherwise I wouldn't see Joined thread_name in the log. Right?
Starts to question everything
 
Yeah, that's pretty much impossible
 
Sooooo... threading.enumerate() is wrong?
 
My crystal ball fogged up for a minute -- before you said "but the thread is active" I thought you were going to say "that's funny, now that I move the debug call after t.join, it doesn't get logged."
 
1:27 PM
Haha, yeah I hoped so too :P
But it still does
english is hard^^
 
user7437554
 
user7437554
:)
 
1:49 PM
Nice peak is that Cs137?
 
Hmm I wrote a comment that contains 50% useful information and 50% speculation that makes me look like an idiot and I'm not sure whether I should delete it
 
why not just delete the 50% speculation?
 
The edit window closed five minutes ago.
 
Hmmm somehow it looks like my problem is unittest related
Because when I run the full program the threads close normaly
Just when I call them in the unittests they don't close properly
scary...
And also isn't it strange that the library unittests can be used to do system tests. I find that so weird
 
user7437554
@wwii haha, I don't know what it is...; but am happy the peaks finally appeared, now i'm trying to implement scipy find_peaks and widths
 
2:05 PM
@Kevin You can always delete and re-comment with the at-this-time useful information?
And you can even note that you did this and why, if so-inclined.
 
2:31 PM
I've decided that the public deserves the authentic unfiltered Kevin experience
 
3:16 PM
I checked again.
PYthon installed in this directory

The problem is not here.
because it doesn't fail by running other commands.
It only gives errors when there are Turkish directory names
:46298613
@tripleee @tripleee
exactly what code do I need to write?
Can you share?
 
"what exactly that means depends on your precise platform" is a good indication that he can't write your code for you, because only you know what your platform is
 
I use the Turkish operating system in windows.
 
3:32 PM
I suspect "platform" involves more than just your OS and code page, but I can't be sure what tripleee meant, and I personally have little experience with this topic
 
I am sharing all the code of the python file.

As an example, create the files as follows and run the python file in that folder. It will also give you an error.

AyÅŸenur.txt
ÇaÄŸrı.php
Åžeyma.png
TuÄŸçe.txt
Ömer.txt
AÅŸkçeÅŸmesi.txt


Python codes;
import subprocess
result=subprocess.check_output("dir",shell=True)
print(result)
Would you please try?
 
Ok, I will.
 
@HibritUsta you don't need the directory code, you just need print('AÅŸkçeÅŸmesi.txt') to work correctly
not really here, but did you try what I said before? If you are running Python from a command prompt, try chcp 1254 (if I remember the stupid number correctly)
 
my goal is to run cmd commands with subprocess.

This is just an example,
if I can solve this problem, I will include the code in another project.
I wanted to show this as a small example.
 
I ran the code. I get pastebin.com/sjK8WGkc. It's a little ugly, but I'm not getting a codec error or anything.
 
3:41 PM
and if not, tell us how exactly you are running this code; that's the environment you need to fix
 
Nov 23 '16 at 15:30, by poke
Dear future Kevin: In order to print Unicode within the Windows console, you need to do chcp 65001 to change the code page. (SEO: powershell cmd windows console codepage code page chcp unicode charmap codec)
^this is the stupid number that I usually need to use on my platform
 
yeah, that's what I recommend too, but this guy has some legacy 8-bit Turkish-only code page active, it seems
it was apparent in the traceback but I'm not where I can conveniently go baok and check
 
you do not work correctly.
x80agri.php instead of ÇaÄŸrı.php.
Omer.txt instead of \ x99mer.txt instead.
AÅŸkÇesmesi.txt instead of Ask \ x87esmesi.txt.
 
notepad.pw/share/3yq0q8jzv is the only traceback I've laid eyes on for this problem
 
Yeah, that one, traceback comes from cp1254.py
my number memory isn't so bad
 
3:47 PM
@HibritUsta Yeah, probably because it's printing a bytes, which doesn't try to render characters outside of the ASCII range.
 
@Kevin Yes, you're right, but I couldn't reach the full solution.
 
Incidentally, if I run the code in Python 2.7 instead of 3.7, it prints pastebin.com/0DfLnHa5, which is less ugly but still replaces the special characters in a surprising way.
 
I speculate that cp1254 is what the file names are using, but their console is set up for something else (traceback really looks like plain 7-bit ASCII and nothing else, so no accents) but I guess there could be factors we should know about, like if the traceback happens from within an IDE or something
 
If I do print(result.decode()) in 3.7, then I get UnicodeDecodeError: 'utf-8' codec can't decode byte 0x87 in position 290: invalid start byte. Are we getting somewhere?
 
The python version I used: 3.7.2
 
3:50 PM
print(result.decode("cp857")) prints the same result as 2.7's, pastebin.com/0DfLnHa5
 
nice diagnostics for your platform (I'm guessing you have some oddball code page for your file system) but not necessarily at all like what the OP is using
tell us your Python I/O encoding and then we can talk
 
I suspect that last message was directed at Hibrit but for the record my default code page is 437
 
did not use any encoding type.
I just used the 3-line python code above.
 
@HibritUsta Can you run the command chcp on the command prompt and tell us the output?
 
@Kevin the result in me this way
@Kevin output:Active code page: 857
 
3:56 PM
Ok, thanks
 
so then, you are attempting to print 1254 to a device which is configured for 857
 
When I change my command prompt's code page to 857 and run print(result.decode("cp1254")), I get UnicodeDecodeError: 'charmap' codec can't decode byte 0x8d in position 444: character maps to <undefined>. How interesting. That's very nearly the same error as yours.
As tripleee indicates, probably it doesn't make much sense to decode with 1254 when my code page is 857.
 
you can change it with chcp like I have told you multiple times now
 
then what should I do?
is the way to do this dynamically?

Do I need to write the code for each device?
 
but the propere long-term solution is UTF-8 everywher
chcp 65001 and never look back
 
3:59 PM
print(result.decode("cp857")) while my code page is 857 works. print(result.decode("cp1254")) while my code page is 1254 also works.
 
Conclusion: use the chcp command to change your code page to match what your code is using
 
what might be a better approach out of the two which OP stated?
 
I award tripleee the "told us the solution thirty minutes ago" prize
@DeveshKumarSingh Given the choice, I prefer not to directly access double-underscore variable names.
 
@Kevin I am sorry .but still does not work.
 
4:03 PM
makes sense @Kevin thanks :)
 
@HibritUsta Maybe the code page command didn't work. What does chcp output now?
 
wim
github has new dependency tracking UI - very nice! github.com/wimglenn/oyaml/network/dependents
 
chcp 1254

I used the command at cmd command line.
Then I ran the python code.
The results are not correct.

https://pasteboard.co/IgcD1cr.png
 
Possibly your command prompt's font doesn't have the proper glyphs to display those characters.
 
wim
it shows who uses your library, and what your library uses
 
4:13 PM
You can change the font of the command prompt by right-clicking its title bar and choosing "properties" and selecting the "font" tab. I use "Consolas", which is usually pretty good at rendering commonly accented letters
If I switch to "raster fonts", I get output that is garbled in a way similar to yours
 
morning cabbage
ewww....CMD
 
Yes I solved the problem.
the problem was so simple
We have been dealing with this problem for 3 days
https://pasteboard.co/IgcGU95.png
 
Nice :-)
 
I'm learning to develop cyber security tools with python.
what I want to do here is to control my remote computer with cmd commands.
So I am working on windows operating system
I just finished the application here could not solve the problem :)
 
4:32 PM
@DeveshKumarSingh that's a link to your answer, not a question
 
4:50 PM
@cs95 My bad: here is the question stackoverflow.com/questions/56295843
 
wim
why do you think that question is interesting
is boring question and primarily opinion-based
 
you are actually right, after reading the other answers, I have marked it as so :)
 
5:05 PM
aah, so I can use that tag and ask for close votes from the group for a suspected question which falls under one of the closing categories, good to know that :)
 
The info for using that link is posted in the community moderation page of the chat room rules
 
let me read up on the policy, thanks @roganjosh
 
What was the name of the chat group used to ask questions about the windows operating system and its commands?
 
5:25 PM
SuperUser?
 
5:40 PM
@Kevin no, a chat room like this
 

 Root Access

For all you Super Users out there. You have backups, right?
 
*laughs nervously* y-yeah, I totally have backups. I definitely didn't break my self-made backup program ages ago and still haven't fixed it. Definitely not.
 
yeah I once wrote a script to remove all those .DS_Store files from my subdirectories and ended up deleting all my homework files
once you rm -rf there's no coming back
 
I accidentally did yum uninstall * once, good times
Luckily it was a fresh install, so all I lost was an hour of my life
 
I don't have backups because I want to feel something, anything, and terror is pretty easy to come by
 
5:50 PM
hahaha I did that to all my cs lab computers once. really did not like that professor.
 
is python xml library on github?
 
wim
@cs95 there is actually
rm just removed the name from the filesystem, not the data
 
sudo rm -rf /
can you come back from that?
 
wim
it's analogous like del x in Python - just removed a name.
and if the ref count [hard link count] goes to 0 it marks that memory [disk space] as available to be reallocate [rewrite]
 
You can probably save your important data if you really want to, but surely restoring the entire file system is impractical?
 
wim
5:56 PM
btw if you every wonder what the 2nd column in ls -l output is, that's the link count!
 
at the very least it destroys the gui code or whatever so you have to use grub if you want to recover
 
wim
@cs95 so you screwed the other students in yr class / other students that use the lab because you did not like that professor? :-\
 
yes. also we are not assigned computers so there was no data loss
you just do the assignment for that day on the computer, turn it in and leave
 
wim
what, you mean they rebuild the computers every day? I don't understand
@piRSquared which one?
 
there's a lab assistant who has a bootable usb with ubuntu on it
 
wim
6:01 PM
if you're asking about stdlib xml, then all CPython is on github...
 
ok, thinking back on it I feel bad for him now
@wim if you're asking why students aren't affected, it's because the next week's assignment does not depend on the previous, and we just find the first free computer and use it
 
The Great Yum Uninstall of '15 prompted the university to implement a one-button "mass restore from backup" feature. Don't cry for that lab assistant, now he has even more time to play Quake in between support tickets.
 
wim
I like Jamie Zawinski's advice for backups. I especially like his advice for Windows users.
 
Uhhh, a crontab entry that runs at 5AM? Who has their PC turned on at 5AM?
 
"Shut up. I know things. You will listen to me." Ah, the Primordial Words of Power that common programmers think but dare not speak.
Legend speaks of Usenet servers where all developers speak The Words. It is a scorched and inhospitable land, but home to wonders.
 
6:12 PM
Went through all that and just realised I can use Time Machine, which I already do. Awesome
 
Holy crap just nearly spit out my coffee reading Wim's link.
> If you're using Linux, it's something a lot like that. If you're using Windows, go f*ck yourself.
 
I mostly adhere to Option 1. When my last laptop began to die, I only had like four things I wanted to copy off of it. And only my Nethack high scores list was truly irreplaceable.
 
Totally was not expecting that. I've read that laughter is the product of the brain trying to process an unexpected outcome and that was hilarious
 
(Not that my ascensions are particularly noteworthy on a global scale. Valkyrie, Wizard, Rogue -- these are among the easiest classes to win with)
 
@Aran-Fey do you turn your PC of after you're done using it or did I miss the sarcasm?
 
6:18 PM
If my laptop melted today, I wouldn't miss my data but I would miss my configuration settings. I've got everything just how I like it and it only took me ~3 years to get it that way.
 
@Dodge I turn it off. Are there people who don't?
Like, it's in my yammin' bedroom. I can't sleep if it's turned on
 
It would have taken 4 if I hadn't copied my firefox user profile from the laptop's predecessor
 
I don't turn mine off ever... work or home
 
I can leave my laptop on at night but only if I cover up the extremely bright pulsating LED ring on the charging cable
 
PSA: Turning your computers off when not in use makes it last longer
 
6:22 PM
Less of a practical problem these days ever since I wrapped it in three layers of duct tape
 
Not even sleep, just off
 
But I can't make progress in Cookie Clicker if it's off
 
Well now I have to rethink my take on turning things off. I'd convinced myself that the on/off process performed daily was worse than a consistent on state.
 
@Kevin I spent a couple hours figuring out how to set all the important settings from the command line (regedit on Windows, gsettings on linux) and put all of it into a script. Totally worth the time spent
Though I have to admit I reinstall my operating systems way more than the average person
 
same, mostly becuase I'm still learning how to use Linux
 
6:25 PM
That would cover all my OS-level settings, leaving only things like "the Python libraries I like to have pip-installed" and "my Steam library" etc
 
steam -applaunch <game id>, done
 
I probably could write scripts for these and the 98 other program-specific settings I've got, but to be completely exhaustive I probably should have started doing that the day I got this laptop.
 
@Kevin Do you have a ton of custom keyboard shortcuts? My custom keyboard shortcuts grow by at least one a week. As long as I implement and use the shortcut almost instantly the memorization happens without effort.
 
I'm usually content to stick with pre-existing shortcuts.
Windows doesn't make it easy to bind shortcuts on a system-wide level so utility is limited to a per-application basis
 
hmm... Ubuntu has probably four dozen predefined ones but I modify to something that makes sense to me in terms of the letters and what action occurs as well as what suits my natural manual dexterity
 
6:42 PM
hi , quick question
which one is correct
 <script src="{{ url_for ('static', filename='js/demo/chart-area-demo.js') }}"></script>

<script src="{{ url_for ('static/js/demo/', filename='chart-area-demo.js') }}"></script>
 
Which framework? Flask?
 
yea
flask
 
I'm 75% sure that the first one is correct.
 
hmm ok
 
Or, if the first one is not correct, that the second one is even more incorrecter
 
6:47 PM
ok i will give the first one to try
 
Yeah that is kind of confirmed in this answer
 
thanks dude ^^
 
01:00 - 19:0019:00 - 23:00

« first day (3142 days earlier)      last day (1815 days later) »