« first day (3354 days earlier)      last day (1817 days later) » 

 
6 hours later…
07:03
two weeks ago my Windows 10 self-destructed while trying to install an update in the middle of the night while I was trying to sleep, yesterday I reinstalled it, and it's already trying to self-destruct in the middle of the night again. I hate this OS so much >.<
@Aran-Fey I literally only play DotA 2 on it, and it can't even handle something like that nicely. Always have to disable a few update & other non-sense services so that it can let my HDD idle to 20-25% usage from a constant 100.
oh yeah, if you don't start Windows regularly it's often unusable for hours after booting
I'm running an unactivated copy of Win10 on my desktop PC, and it's honestly much less annoying than an activated version. No updates in the background and stuff like that
Downsides: A permanent "activate windows plz" reminder in the bottom right of your screen (after a couple of weeks I barely ever notice this thing anymore), and being unable to customize things like your Desktop background through the GUI
@Aran-Fey hah, talk about pay to lose*
07:50
trying to parse a website and getting text outside html tag. bpaste.net/show/BM2OC
08:14
that's not a website (i.e. HTML), that's a text file. Possibly valid XML
it's looks like SGML
 
2 hours later…
10:21
Just saw a talk on "what does it take to be an expert in python", thought it deserved a share. The orator focuses not on the features themselves (metaclasses, decorators, generators and context managers) but more so on what type of problems those are trying to address. It's really long, but worth a watch if you're interested.
will give it a look
 
2 hours later…
12:51
@MisterMiyagi :48169104 thanks for responding. I just barely saw this. The problem is you say that "async coroutines work just like regular coroutines", but I have absolutely no idea how regular coroutines work. That's part of what I'm learning right now.
 
2 hours later…
15:13
@Code-Apprentice David Beazley has some interesting and engaging talks on YouTube about working with coroutines
V k
V k
15:25
Guys i want to develop a chatbot in Python which can be easily deployed. Online search has created more confusion. Can anyone help how to approach
15:52
@Code-Apprentice in this case, I recommend starting with regular generators/coroutines. async works exactly the same, await just listens for __await__ instead of yield from listening for __iter__.
dabeaz coroutine tutorial is a brilliant hands-on/theory explanation.
If you want the really short intro, my "how does asyncio work" answer gives a very quick tour to build your own event loop.
16:08
what I'm missing here to call JSON API
import requests

r = requests.get(
    "https://cf.biwenger.com/api/v2/competitions/la-liga/data?lang=en&score=1&callback=jsonp_1912703205").json()

print(r)
also I've tried with json module to loads the data
@αԋɱҽԃαмєяιcαη you're missing a clear problem description so that we don't have to guess what goes wrong.
Kevin'ed
@MisterMiyagi i were keep getting "aise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char0)"
but just now noticed it's JSONP, now it's solved after i removed "&callback=jsonp_1912703205"
@MisterMiyagi I'm comfortable with generators that yield a result. I'm still trying to figure out coroutines that accept input. My first attempt didn't work trying to answer an AOC problem.
and thanks for the links. I'll check those out. I've already been watching a video by Mike Kennedy which has helped some. Bu he goes straight into async and await. I guess I need to learn normal coroutines first.
16:34
I can wholeheartedly recommend to learn by doing. Building a simple event loop (just sleep) turned out to be much simpler than all the fancy talks by clever people made me believe.
async is the Monad of imperative programming.
 
1 hour later…
18:04
@MisterMiyagi yah, I should probably write out the code that I've seen in videos so far. It's just not clicking enough for me to use it to solve problems on my own with async.
 
4 hours later…
21:43
I can't add another index value in this series (have tried append, union, insert...) Index(['09/01/2019 22:51:00.000', '09/02/2019 00:46:00.000'],
dtype='object', name='DateTime')
any help would be appresciated
21:55
define "can't add"
even better: show an MCVE with an example series, and what doesn't work
22:10
can't add another value with test.append(pd.Index([20])
to a Index series
22:21
Hi Guys, I am trying to scrape booking.com data for my personal project. I can able to retrieve the hotel name, ratings and location. I need the hotel description as it is the main field for my text mining. Each hotel description on different pages. I need to click each hotel name and it opens in the new window and I have to scrape the description. I am using Selenium web driver. I can able to take one hotel description, but I need to extract all the hotels automatically.
Anyone can help how to do this? I've seen all the StackOverflow but not successful.
22:41
@Jason please see our code formatting guide for chat and practice in the sandbox if necessary
I'm going to move that block of code because it badly needs some indentation. Please repost it with correct indentation.
@AndrasDeak Noted. Sorry. I will follow in future
it's alright, chat formatting is finnicky
@AndrasDeak Can you give some solution for the above problem?
no, because 1. I found your unformatted code block hard to read, and 2. I've never used selenium and almost never webscraping in general
ok
23:54
@αԋɱҽԃαмєяιcαη yes I have seen that post but it didn't solve my problem.
all hotel description in different pages and need to extract the same

« first day (3354 days earlier)      last day (1817 days later) »