« first day (2600 days earlier)      last day (2356 days later) » 
00:00 - 21:0021:00 - 00:00

12:26 AM
Question: I have a dataset with columns having string values. These string classes belong to a few classes. In a dataset of 10,000 rows I have about 20 different string in one column. I can't use sklearn as is. What should I do? I tried to convert to by one-hot encoding but that also did not work.
 
12:46 AM
how are you storing those data?
for instance, pandas has a type called categorical, which is essentially an enum, sounds perfect for your use case
 
wim
1:39 AM
ack, plural of datum
so awkward and dated
 
2:36 AM
hmm they are string now, or object data type. I converted them to categorical, but scikit learn still complained.
 
 
2 hours later…
4:07 AM
cabbage
quick question, running the script found in the "Reading from a live interface" section here: github.com/KimiNewt/pyshark however I'm running into an issue. For interface, I'm using 'wlan0' since I'm connected wireless to the internet. I'm thinking alias is wrong in Windows environment. Is there a Windows equivalent that replaces wlan0?
if interested in errors: pastebin.com/GTWzTwq7
tshark is up to date
 
 
3 hours later…
6:40 AM
Morning cbg
 
7:19 AM
cbg
 
hi
any who have used DRF ( Django Rest Framework ) around ? I have an issue with docs, not including the request body fields
 
8:25 AM
cbg-ning
 
9:00 AM
Cabbage
 
9:34 AM
cbg friends
 
So I have an assignment to analyze the architectual style of IronPython and the DLR. I want to die.
Because, as best I can tell, IronPython is basically just a giant practical joke that got way out of hand.
 
Cabbage!
@JGrindal heh :D
 
10:02 AM
Cbg
Last day at BobCorpCustomer
Tomorrow is last day at BobCorp
 
@RobertGrant Congrats or condolences?
 
10:26 AM
@RobertGrant I would say congrats
 
@JGrindal if it's any consolation I used it once to re-create chippy?
 
@JonClements Is Chippy Clippy's silicon-based cousin?
 
@RobertGrant Good luck with the transition!
 
Blame auto-correct
That or my phone is sentient and it knows I'm partial to a good bit of battered cod, chips and mushy peas...
 
So I have a package that is based on having enum34 (pypi.python.org/pypi/enum34), but a bunch of the default python packages at the university have enum 0.4.6 (pypi.python.org/pypi/enum). How do I handle that other than having the module take a dump?
 
10:35 AM
No default stdlib enum?
 
I mean, personally, I would say "USE THE STANDARD LIB YOU YAMMING TOMATOES" but some of them are my superiors....
 
Considered that sometimes proving idiocy might move you up the ladder? Or get you fired...
 
@JonClements It was causing an error that I couldn't duplicate on my system, but could easily duplicate on about 25% of the machines in the lab. I drilled down and determined it was because they're using the old enum package.
The way I see it, there are 2 ways to approach it: either have the script install the correct enum package (I don't know how to do this) or do a version check and politely inform the user that they're using the wrong package and need to update (I'm not QUITE sure how to do this either. I guess check __version__ ?
The first method would be ideal, I just don't know that its practical.
@JonClements At a research University, until you have "PhD" after your name, you're worth less than dirt and no amount of proving idiocy gets you anything unless you prove the idiocy in a peer-reviewed journal.
 
Ugh. Always worked in the commercial world or worked with people that can review things objectively.
 
10:56 AM
@JonClements I've worked my whole career in global supply chain management. Software Engineering is a new thing for me. I've done personal projects and lots of Excel programming, but programming on a day-in, day-out basis is still really new to me.
and dealing with academics is............ different?
 
@JGrindal hopefully congratulations :)
 
But something in me was like "Hey, this year really kicked you square in the jimmies. Why not try something entirely new?" So I did.
@RobertGrant Awesome =)
 
Start with the new place on Thursday
I do sort of think I should've spent my last 5 years or so contracting instead of being a perm; would probably have way more cash by now
Oh well :)
 
Such is life
 
At least I know now :)
 
11:04 AM
The one thing I've learned in my years - looking back, you always see ways you could have made more money.
3
 
Yeah. Every WEEK I could've won the frickin lottery
I'll stick with the perm route because it's more likely to let you get a promotion than being a con
 
I was in a bar in Columbus, Ohio and some of my buddies were asking me if I wanted to invest in this crazy new SF startup they had concocted. They were trying to raise $35MM. I told them I loved them, but I didn't necessarily believe that their business was going to pay out, and the risk was simply too high.
And then they sold it to Amazon for almost a billion yammin' dollars.
 
Oops.
@RobertGrant are you in the EU, or just up early (or late) ?
 
EU
UK
Although I was up really early this morning, that was 6 hours ago :)
 
11:19 AM
@JGrindal I feel that way with crypto currencies today.
 
Yeah mining a few BitCoin 5 years ago would be a very good move
Perhaps I could use the promise of all that cash to get VC money to build a time machine
 
One of my close friends is a professional commodity trader. He is currently short BitCoin about $1.5MM USD
He's taking a friggin BATH.
But he maintains that this is a bubble that is going to suddenly and catastrophically burst and a lack of liquidity is going to trap a lot of people.
 
At least he'll come out of it looking pretty clean
 
@RobertGrant Or you could just start an ICO :D
 
12:03 PM
cbg & good evening
He is probably short 2 millions by now!
Sorry, jumping in the conversation.
 
@ReblochonMasque Haha, probably! It's what he does for a living though, so he has a pretty good handle on his risk profile.
 
Let's hope he is hedged somehow @JGrindal.
 
12:57 PM
Hi has anyone here worked with ansible
I am trying to run ansible playbook programmatically via python API it works fine outside of the virtualenv but inside virtualenv it is unable to import any of the ansible module packages
 
cbg
 
@AtharvaPandey This post advocates using the --system-site-packages ansible argument blog.scottlowe.org/2016/04/30/installing-ansible-in-virtualenv
 
Hello!! Anyone knows how to create multiple output files with a Python Mapper?
 
@AshishNitinPatil i guess this was the thing i was missing thanks
 
@wim do you mean I should've said "that data"?
 
1:17 PM
hi all, ima unable to connect to a HTTPS url via python using
#!/usr/bin/python
import requests
from requests.auth import HTTPBasicAuth
requests.get('url', auth=HTTPBasicAuth('XXXX','XXXX'))
can anyone help
error: Caused by ProxyError('Cannot connect to proxy.', error(111, 'Connection refused')))
 
1:57 PM
 
 
@Kevin loooool
 
@RaviChandraDurvasula Just search for answers to probable causes of 'Connection Refused'. This very likely has nothing to do with your url but your network connection. Try different urls, with / without https to remove your doubts.
 
2:32 PM
quick q: i have a list containing multiple lists which i want to sort descending. Files are like this: incident1009, incident1009a, incident1010, incident1011 etc. They are stored in the var cases. I'm sorting them using cases.sort(reverse=True). When sorting desc i want the 1009a to be between 1009 and 1010. How can i achieve this with cases.sort? Because now it's on top of the list, where i dont want it to be
 
>>> seq = ["incident1009", "incident1009a", "incident1010", "incident1011"]
>>> seq.sort(reverse=True)
>>> seq
['incident1011', 'incident1010', 'incident1009a', 'incident1009']
Strange, it goes between the two values just fine on my machine.
 
Weird, running debug now, maybe my list construction is causing issues
 
if you have list of lists and you sort them this way then its not gonna work
 
Yeah thats probably the issue
 
you want to sort inner lists or root list?
 
2:44 PM
cases = [], so it's a list which i append with another list. I'm creating an other list called data = [ id, val2, val3 ], then im doing cases.append(data). I want to sort the 'id' value in the data list
its sorting now, but since the '1009a' has got an 'a' in it it's seen as unicode and therefore probably not sorted because the other values are classified as 'long'
i guess
 
If you're on Python 3.X, then your sort function would crash if some ids were unicode and some were integers
 
using 2.7
 
In that case, it wouldn't crash.
c:\Users\Kevin\Desktop>py -2
Python 2.7.11 (v2.7.11:6d1b6a68f775, Dec  5 2015, 20:32:19) [MSC v.1500 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> seq = [1009, 1010, "1009a"]
>>> seq.sort(reverse=True)
>>> seq
['1009a', 1010, 1009]
 
I figured, haha. Since the script works fine. The 1009a is only posted on the top while it should be between 1009 and 1010. At least thats what im trying to do
 
It's usually a good idea to keep your data homogeneous where possible. In other words, if one of your ids is a unicode object, then you should ensure that they are all unicode objects.
 
2:48 PM
as a first step, you could cast your longs to unicode
 
Or, if they were unicode objects to begin with, remove the bit where you convert them to integers
 
Alright, will do that
 
If your back is against the wall and for some reason you really have to have a heterogeneous list, then you can use sort's key argument to convert each value to a unicode object before ordering any of them:
>>> seq = [1009, 1010, "1009a"]
>>> seq.sort(reverse=True, key=unicode)
>>> seq
[1010, '1009a', 1009]
But this may end up being a bandaid solution that hides a larger design problem.
 
yeah agreed.
 
Or uh I guess you would need to do key=lambda sublist: unicode(sublist[0]) since you're sorting a list of lists of id-val2-val3s, rather than a simple list of ids
 
DSM
3:02 PM
Tuesday morning cabbage.
 
Pre-tutorial brief cbg
 
DSM
What're you teaching?
 
Intro math thingies to physics freshmen
Mostly some calculus and linear algebra
 
DSM
I used to have to do first year physics for life science students, who weren't really excited to be there.
 
But it's the end of the semester so I'll show them the matrix-based solution to a damped oscillator :P
@DSM can't say my students are overwhelmed with enthusiasm, but at least they're my peeps ;)
 
3:07 PM
Argh, pytest just dropped support for 3.3.
 
Now Travis reports builds for every single one of our projects as failing.
 
DSM
Every day between now and the 1.0 release, another part of your process will give up. Who will break first?
 
when :| turns into :[ ......
 
Saw (film) (developer's edition)
 
3:10 PM
Did pytest deprecate 3.3 in time? Perhaps you can pass on the blame :P
"We tried our best. You need to upgrade"
 
DSM
Huh. "pass on the blame" can be interpreted both as "(pass) (on) (the blame)" (that is, to not participate=accept the blame), and "(pass on) (the blame)" (that is, to hand the blame to someone else).
 
I meant the latter :P
pyscapegoat
 
Hmm, I'm having trouble finding the part of docs.python.org/3/reference/index.html that describes how the statement-separating semicolon works. Best I've got so far is docs.python.org/3/reference/lexical_analysis.html#delimiters which merely acknowledges that ";" is part of the language, without describing its purpose.
Ah, there it is in section 7. "Several simple statements may occur on a single line separated by semicolons."
 
3:28 PM
Moot point, the question I was trying to answer got answered.
 
@davidism did you forget to pin your development dependencies, too? ;)
 
Only some of this would be solved by pinning.
For example, Tox has no way to ensure certain build deps are installed first.
 
3:52 PM
I've nerd sniped myself for the past hour with this problem which I can't find a fast solution for:

Let W be the set of all words. Let P be the set of all word pair concatenations; if A is in W and B is in W, then A+B is in P.
A string is "versatile" if it is in P, and if its reverse is in P. Example "boobytrap" is in P and "partyboob" is also in P, so both are versatile.
Find all versatile members of P.
The brute force solution is straightforward to implement, but P would contain 29 billion elements so I can't quite execute it with my puny hardware
Possibly some shortcuts can be taken by doing a linear pass through W and creating some kind of... prefix tree... or something, which you can then use to narrow down the possibility space of versatile word pairs
 
Maintainers have decided to make minor releases dropping CI test support for 2.6 and 3.3 but still testing locally until a subsequent release.
 
Blimey, I'm surprised Pytest did that
 
user8970640
4:12 PM
is there a way to transform a data frame to a dictionary with values a numpy array?
 
user8970640
df.to_dict(orient = 'list')
 
user8970640
df.to_dict(orient = 'list', into = ....)
 
user8970640
is there a way to do it with into?
 
rb folks
 
The brute force approach has chugged for ten minutes and now suggests "knarry tas -> "satyr rank". The brute force approach has an interesting idea about what a "word" is.
knarry (comparative more knarry, superlative most knarry)
    (obsolete) knotty; gnarled

tas (plural tasses)
    Alternative spelling of tass

tass (plural tasses)
    (rare or obsolete) a heap, pile.
"The code I wrote without considering principles of maintainability has become a knarry tas"
 
user8970640
4:26 PM
"And doing so, you reached the satyr rank"
 
Another entry: "ha devil" -> "lived ah". It's cheating if the space is in the same spot, I feel.
"gasp rub" -> "burp sag". I think I'm offended by this one???
 
how do I keep the python terminal open after executing a python script?
something like python main.py -XXX
or idk
I remember there was a way
 
Lazy solution: input("Press Enter to exit.")
 
ooooooh
it was python -i main.py
I was doing python main.py -i
~.~
 
Oops, I misread the question.
Thought you meant "how do I keep the shell open"
 
4:36 PM
nu
 
A problem among users that run their programs by double-clicking their icon
 
xDDDD
I just don't want to re-execute all my code
and I'm too lazy to install jupyter
 
Things legit heard at the GRADUATE-LEVEL COMPUTER SCIENCE lab today: "Wait, what's the difference between unit testing and regular testing?"
 
Amount of time my college education covered testing of any kind: 0 seconds
 
4:40 PM
^
 
Which is why I am programming here in a van down by the river
 
ah, a WFH gig, nice!
 
The problem is, we set up programs that run for minimum of hours, a maximum of days, and if there's a bug in some stupid subroutine, you just wasted a LOT of computing resources.
 
It's only home from 4:00 AM to 12:00 PM, after which it's Foul Ole Ron's home. We take shifts.
 
And here I was thinking you lived inside the machine, part time at SO, part time at PSF. I guess that leave you Foul Ole Ron's for the other third..
 
4:55 PM
OK, I thought I heard the stupidest thing today with the testing comment. Nope. New stupidest comment of the day: "When does the garbage collector get called in CougarVis (our in-house simulator)?"
CougarVis is written in C.
 
wim
@AndrasDeak yeah
being written in C doesn't imply you don't have a gc
 
Example: Python
 
OK, fair enough.
Testing comment back to #1
 
*sigh* Note to self: Care less about meta (again)
 
wim
someone cares about meta?
 
4:58 PM
Everything is broken. Embrace chaos.
 
Is chaos part of the standard lib, or do I have to go find it?
 
pip install chaos
 
You can get pseudochaos with cunning use of the random module, but high quality chaos requires radioactive particle decay.
 
Or lava lamps.
 
If you get an error while installing the module, that means it's working correctly :)
 
5:02 PM
@JGrindal damn, kevin'd.
 
You are aware of pypi.python.org/pypi/chaos, right?
So you probably shouldn’t make these suggestions :P
 
It's ok, it fails to install on python 3
 
lava lamps are sufficient until someone invents a partial differential equation that can predict the state of a fluid dynamics system to arbitrary precision at any point in the future
(I'm not entirely sure what all of those words mean, I hope they mean something in that order)
 
@Kevin doing so would require prior knowledge of the manufacturing defects of low-qualty heating elements used in the lava lamps in question
 
Perhaps you can derive the state of the heating elements by analyzing enough information about the lava blobs
 
5:10 PM
my brain is broken :/ i never remember order of arguments of isinstance
 
isinstance(x,y) -> "is X an instance of Y?"
When I write a function that takes multiple arguments and returns a boolean, I try to order the arguments so that if you were asking the question in English, then you could fill in the arguments madlibs-style and get something coherent
I feel that most functions of this kind also adhere to this principle
 
it makes sense
 
Good, because I wasn't sure that it did when I wrote those messages
 
@Kevin Side Channel attack of the year. Interviewer: "You broke CloudFlare! How did you do it?!" Response: "I watch a lot of lava lamps"
 
I consumed the contents of a lava lamp and now I am their king
 
5:18 PM
Interviewer: "How do you respond to allegations that time-symmetry precludes entropic time?" Response: "Lava lamps are really pretty."
 
hi... I have a pandas dataframe and I do dataset = pd.get_dummies(dataset, columns=columns, sparse=True). But I then do print(dataset.head(10)) I get the error TypeError: values must be SparseArray
why is this?
 
Shameless self plug. SSL experts, if you can help me troubleshoot this, there's a bounty in it for you - stackoverflow.com/questions/47492461/…
I swear, I'm about to put a dollar bounty on it......
 
5:33 PM
I wonder if this is a bug?
 
a bug in OpenSSL? Surely not, everyone knows OpenSSL is bug-free since '03!
 
no that was about my question
above
 
Oh, sorry I'm a dunce.
 
The timestamp thing seems to reoccur every couple of weeks or so
 
could someone reproduce my problem please with this code. import pandas as pd
df = pd.DataFrame([['a','b'],['c','d']])
S = pd.get_dummies(df, columns=[1], sparse=True)
print(S.head(1))
I think it is a bug and will report it if someone can reproduce it
 
5:48 PM
Installing pandas...
Whoops, pip can't find it. Hmm.
 
thanks
 
I'll try again. My internet is spotty today.
There we go. 2%...
 
2 bounties means I'm pretty close to a (soft) rep cap today. My luck means I'll make it to 190.
If the one bounty had actually awarded it I would be there, but they let it sit and I only got half.
 
@eleanora

In [4]: print(S.head(1))
   0  1_b  1_d
0  a    1    0
 
Once or twice I've come just short of hitting the rep cap, so I know that feeling
 
DSM
5:59 PM
@eleanora: I can confirm, I see that bug in 0.21.0.
 
My pip install timed out twice so I guess I will not be confirming or denying anything today.
 
DSM
Are you off? Or is HugeCo's network on the fritz?
 
The latter.
 
DSM
I'd boast about NumberFirm's network uptime except we had a rough patch a while back.
 
I suspect one of my coworkers is downloading Windows updates, as is often the cause of network problems
If only I was still using Python 3.5, since I already had pandas installed on that :'-(
 
DSM
6:07 PM
3.5 doesn't even have f-strings. Might as well just do str(a) + str(b)..
 
@DSM thanks!
@marxin that's odd. which version of pandas?
 
DSM
FWIW it worked for me in 0.20.3.
 
Manually formatting strings, like an animal
 
@DSM ah I see
@DSM I'll add that to the bug report
 
Won't "{}{}".format(a, b) do fewer allocations?
 
6:09 PM
I think the joke here is that if you're not using f strings, you may as well regress to the most bang-rocks-together approach available. .format is more medieval than it is caveman.
 
DSM
Yeah, I was imagining an entirely format-free world. I had half a mind to mention backticks but I don't know if anyone even remembers those anymore..
 
I never used them for any serious purpose, but I was aware of their existence
 
DSM
I have to admit I used them a lot back in ~1.5 days because I first thought of Python as a replacement for bash, not as a replacement for Fortran.
 
stackoverflow.com/questions/47538233/… could use a dupe target containing the answer "files can only be iterated once", if we've got one
 
Hey all, I was wondering where I could discuss some scripting plans with people to get a game plan in my head. Im working with AutoHotKey and would like to store multiple hotstrings in a global database and then have a client script that allows the client to pull in hotstrings they would like to use into their client. Not sure on my best approach for the use of hotstrings from a database.
 
6:12 PM
I didn't even know those existed until now, jeebus
I looked up some of my old fortran homework yesterday. I... remembered that language being less, uh, "interesting-looking"
 
Maybe backticks fell out of favor because it's hard to do code formatting on them with this markup system ;-)
`` <- six characters
 
@Kevin we do have one, it's in the canon
 
Ah, capital. Let's see...
 
I chose the most to-the-point one, but perhaps "because it will place the read pointer, file pointer or whatever it's called at the end of the file." is not the most beautiful answer.
Let's add in a couple more for completeness.
@ZackTarr The best approach is whatever is the simplest thing that works :-)
Which in this case, I suppose would be "pick whichever database has the nicest looking tutorial, and make a table containing a column for the primary key and a column for the hostring"
 
6:31 PM
recbg
 
@Kevin Fair enough, I will look into a few options on that. Really I need an autohotkey room to chat in but thanks for the input!
 
@wim I see. I usually treat "data" as uncountable, but in situations such as the above (when there are multiple datasets involved, so I get a feeling of several batches of data) I sometimes refer to it in the plural. I acknowledge that this might be annoying to a native, but we don't have a notion of countability in my native language :)
 
If fish can sometimes be fishes, then all bets are off
 
afternoon cabbage
 
DSM
Cabbage for the apprentice.
 
6:42 PM
cbg
 
versatile_gen.py has produced "martyry tram" as a versatile word pair that also happens to be a palindrome, and kind of sort of a real thing
 
7:14 PM
Weird... pip install is failing if I try to install a package from a local tar.gz in a different directory, but it works if I'm in the same directory as the file.
 
using -e?
 
Not -e.
 
then my experience is irrelevant :P
 
Looks like it has something to do with the specific directory I was in (the project root directory); installing it from my home directory also works.
oh dear - I tried making and installing an empty example project as an MCVE, and now pip doesn't know how to uninstall it because it doesn't have any files.
 
you borked it
 
7:28 PM
hmm... maybe when I installed the package from the project root, pip thought it was already installed because it found the package in the local directory.
 
7:49 PM
that could make sense
 
I think the same thing is happening with the empty example project - I think it actually didn't install anything at all, but it's finding metadata for an empty project in the current directory, and all 0 of the files listed in that metadata seem to be installed, so it figures this project must be installed.
 
it should be more informative if this is the case
 
Running pip list with a different Python version I didn't "install" the project on also says it's installed, and moving out of the directory makes the example project's entry stop appearing in the pip list output (for either Python version).
 
8:04 PM
hello im kinda new to stackoverflow, can someone help me with a training code from a beginners book?
it is giving me inconsistencies in answers although it does not give me any errors
 
We are prepared to receive your question, fire when ready
 
can i post whole codes in here?
 
If it's short. Say, <15 lines. Anything longer, and you should use Pastebin or a similar service, and provide a link in here
 
ah thanks ill try to neat it up before posting it
 
see also the second pinned post for code formatting in chat ->
you can practice in the sandbox room
 
8:10 PM
will do
 
(assuming the <15 lines case)
 
its exactly 15 xD
 
hello everyone
 
hello
 
DSM
If you were using a modern version of Python, you'd see the error..
 
8:13 PM
Looks like you're comparing an integer to a string, which always has the same outcome. Try greedy = 50.
>>> 1 < "50"
True
>>> 60 < "50"
True
>>> 100000 < "50"
True
 
try again
Also, I have a terrible feeling that you're using LPTHW. Stop doing that and switch to Python 3 as well.
 
ohhh i think i see the issue, and im using python 2.7.x because the books specifically tells me not to use the latest version :S
 
bingo
 
I endorse the suggestions to switch to Python 3. That's a whole 50% more Python for the same low low cost.
 
8:15 PM
Just to be clear, switching to 3 won't fix your program. It will just make it more obvious why it's not working.
 
@EricAhn you should immediately distrust any tutorial that tells you to ignore new versions
 
(also, remember to put () around your print functions)
 
yes no1 answered tho :S
coding is not easy at all is it
 
That's because you tagged it "input" for some reason. Also it's a really obvious dupe.
 
it started fun but now its i need help every other line lol
 
im really new at this :S
 
Both of them, you asked basically the same thing twice.
 
@EricAhn that might be partly due to your choice of tutorial
 
If by "no1 answered" you mean "nobody suggested a solution for my current problem, considering that upgrading won't fix it", then you may have missed my message recommending changing greedy = "50" to greedy = 50
 
@Kevin they meant the dupe davidism cv-pls'ed; it's their older post
 
8:17 PM
any suggest any detailed begginers book? im using two at the same time, cuz both at one point or the other assume that i know something they didnt teach me...
 
@AndrasDeak Oops, OK
 
kevin...i meant by the link davidism posted
 
@EricAhn The official Python tutorial is great
 
I mentally skip over cv-plses embedded in a conversation, until I get downtime to look at them
 
8:18 PM
It's fine for beginners to programming, though maybe not the best.
 
@Kevin changing "50" to 50 did not solve it, it now ONLY gives me the "you greedy bastard" msg now
thanks wayne ill check it out
im currently using:
1. Learn Python the Hard Way, 3rd Edition (1)
2. Learning Python, 5th Edition
 
@EricAhn I'm really curious how you've managed to ask the same question about inputting ints three times now, two of which you got answers to.
 
The general room consensus is that Learn Python The Hard Way is not a good resource for learning Python, hard or not
 
I've now closed them all as duplicates.
 
mb i really dont have much time for studying and when i get stuck i spend over 20 minutes each trying to understand it when finding answers online is a lot quicker (or so i thought xD)
 
8:21 PM
Don't do that, it's rude to people offering their free time to help.
 
wont happen again wouldnt wanna flood the forums
tru
 
@EricAhn Strange, when I ran it with that change and entered 25, it said I won.
 
garlic
 
dat is weird :S
 
@EricAhn can you try not using txt spk?
 
8:23 PM
im stillg etting the i lost msg...if i change it to "50" i get the i won msg
txt spk?
 
Programmers are particular about making communication as clear as possible, which usually includes correct spelling :-)
 
as i said im new to this forums / coding so i apologize for the annoyance im causing :S
 
Lack of spelling and grammar, shortening words for no reason, etc.
 
ah ok~
 
Anyone spending more than half an hour looking at Linux man pages knows that shortening every word you can to three letters is unsustainable in the long run
 
8:25 PM
:P
 
One might also add that the process of spending said 20+ minutes trying to understand/find the answer is time better spent in the long run. Particularly as practice shortens that time.
 
DSM
@Kevin: reminds me of a classic.. ;-)
 
It pains me to say it, but knowing how to google things is probably the #1 most important skill for a professional developer
11
@DSM Nice one.
Yesterday I was watching television and a character said "it's a promise, brother" and I was inexplicably disappointed that they didn't say "It's a bro-pro"
 
@Kevin This is true in so many fields.
 
The cup-half-full perspective is that it should not pain me to say it, because googling is just as valid a form of research as any other, and should not be considered an admission of one's shortcomings or lack of imagination or whatever.
 
8:36 PM
@Kevin When will Google get better at Googling than developers?
 
The day before the revolution
 
@Kevin I'd rather a doctor be able to find a detail rather than be able to remember 95% of needed knowledge when they took their Boards.
 
Anything special needed for request.get() to work for https sites? I only get "Max retries exceeded with url" and examples im finding online dont point out anything special that is needed
something simple like requests.get('https://github.com')
 
Try querying a different https site. Does example dot com support https? I suspect it does.
My primary suspicion is that the site is giving you the cold shoulder because it can tell your script isn't a human
I suspect example dot com doesn't give a dang about that, so if it returns successfully, that's a data point in favor
 
example does the same
maybe its our gateways ;(
 
8:44 PM
>>> import requests
>>> x = requests.get("https://www.example.com")
>>> x
<Response [200]>
Might be on your end, then.
 
looks like.
thanks for testing from your side Kevin
 
well time to sleep, i will see you people soon
thanks for the help by the way
 
8:59 PM
Linux-Get-Python-Problems-Today Cabbage
 
00:00 - 21:0021:00 - 00:00

« first day (2600 days earlier)      last day (2356 days later) »