|
oliveoil posted:The Python documentation says "Long integers are now stored internally either in base 2**15 or in base 2**30": https://docs.python.org/2.7/whatsnew/2.7.html#optimizations http://stackoverflow.com/questions/9860588/maximum-value-for-long-integer
|
# ¿ Apr 7, 2017 14:51 |
|
|
# ¿ May 2, 2024 14:14 |
|
When I see how far it's come in a relatively short amount of time, I keep wanting to give VisualCode a spin on macOS. But then I remember how addicted I am to the integrated console and debugging stuff in PyCharm.
|
# ¿ Apr 12, 2017 21:38 |
|
You are triggering me so hard with that unpaired open paren. E: Well, he was. I feel much better now. Proteus Jones fucked around with this message at 00:14 on Apr 18, 2017 |
# ¿ Apr 17, 2017 02:33 |
|
huhu posted:In Pycharm, is there a way to run code and then and then leave some sort of a command line to continue playing around with it? It's got a full featured debugger if that's what you're asking. Also has an integrated terminal and python console.
|
# ¿ Apr 27, 2017 21:29 |
|
Yes Grab the community edition and give it a spin.
|
# ¿ Apr 27, 2017 21:45 |
|
huhu posted:I've been using PyCharm for awhile now I'm just not sure how to phrase my question in Google so I'm asking here. Huh. I just tested it using the copy and paste method and it works fine. But if that method works for you. code:
|
# ¿ Apr 27, 2017 22:28 |
|
underage at the vape shop posted:Tkinter can suck my nuts, it's like they designed it to be a pain. You speak truth.
|
# ¿ May 15, 2017 14:22 |
|
Thermopyle posted:Here's a pretty elite variation on Python. These file descriptions are fantastic
|
# ¿ Sep 23, 2017 00:57 |
|
Thermopyle posted:I came across this neat theme for PyCharm, and because I'm always fiddling with stuff, I decided to try it out. I like the look of that Material Theme. I'll have to give it a go later. I've been rocking Code Glance for a while, and that minimap is worth it's weight in gold. From the screen shot I see you're on a Mac. Did you upgrade yet? Any gotchas or caveats you found with Python (specifically Anaconda if you use it) or PyCharm?
|
# ¿ Sep 26, 2017 16:51 |
|
QuarkJets posted:Learned today that PyCharm's debugger can display huge arrays in a separate window as a table of cells. I always thought this was something that pycharm lacked but I was just totally wrong Yeah, it was an embarrassingly long time before I stumbled across that.
|
# ¿ Dec 7, 2017 13:07 |
|
baka kaba posted:Assuming PyCharm has the same basic debugging capabilities as IntelliJ, you can add breakpoints wherever, then right-click them and uncheck pause execution (or whatever), and add your own print statement in the "execute this" bit - you can include variables and all that. It's like adding print statements without sticking them in the code It has all that. My absolute favorite thing is the just being able to display variable contents at various break points. It’s been invaluable in helping me zero in on logical errors I’ve made.
|
# ¿ Mar 19, 2018 06:35 |
|
Quick question for the thread. MacOS is my primary and I use PyCharm. I mostly do network automation scripts to make my life a little easier for certain tasks. I’ve recently purchased a gaming laptop and it seems like it would make a decent platform (7700HQ, 32GB, 1TB SSD) since the thing is a beast. However, my only real Windows exposure, beyond using RDP jump servers as an end user, is for gaming. Everything else (work, home, etc...) is pretty much macOS. I usually run my programs from Linux VMs, but I don’t use anything that limits them to a UNIX platform (like pexpect) anymore. So my question is: which Python does everyone use? Windows Python distrib Using Python in my Ubuntu install on WSL (Anaconda may be an option, but I imagine that may not work since I do use the scripts in a business context. But then again, not to generate revenue. I stopped using it to err on the side of caution about a year ago) Proteus Jones fucked around with this message at 00:36 on Apr 28, 2018 |
# ¿ Apr 28, 2018 00:33 |
|
vikingstrike posted:Pretty sure Anaconda is Ok for use even in commercial work Huh. For some reason I always thought it was a free for educational/personal, but required licensing for commercial. I’ll have to look at it again. Thermopyle posted:If you run into some weird case, it's easy to switch which python interpreter you're using. Cripes. I must be tired, of course I can do this.
|
# ¿ Apr 28, 2018 04:00 |
|
QuarkJets posted:NumbaPro used to require a license for commercial use, but in the last year or two they completely open sourced it; Numba is now BSD-2 and conda is BSD-3. Each package that you install beyond that you need to check on a per-case basis, as any of them could have a commercial-restricting license I already pay for PyCharm, so that's sorted. I'll have to check, but I'm 99% certain all the packages I use are open source. That's good to know since I cut my teeth with anaconda. I think from a familiarity perspective (especially since I'm not as familiar with Windows) I may try that first. Thanks for the info all
|
# ¿ Apr 28, 2018 10:20 |
|
Boris Galerkin posted:Speaking of environments I can’t stop giggling over “ANOTHER PIP??”
|
# ¿ May 1, 2018 19:08 |
|
bamhand posted:I think it's a dataframe? I'm modifying some old code where I'm just changing the source of the data but trying to keep the plots the same. This is what was working before (also I'm pretty new to python in general): Use the code tags. It makes it infinitely easier to read your code. code:
|
# ¿ May 24, 2018 16:52 |
|
I’m not sure a 0 or 1 will work with the program selection, since it’s implied that it’s more or less a gradient on Most Preferred to Least Preferred. And the goal is to get everyone as close to Most Preferred as you can. It will work on the pair/don’t pair, though. E: Hmmm... or maybe settle the program assignations prior to the matrix creation? Proteus Jones fucked around with this message at 03:11 on Jun 2, 2018 |
# ¿ Jun 2, 2018 03:08 |
|
SurgicalOntologist posted:The 0 or 1 are the variables that the program is solving for; the objective function is the dot product of those variables and a vector of preference strength. Yep. I completely misread.
|
# ¿ Jun 2, 2018 04:07 |
|
Boris Galerkin posted:I'm using the new PyCharm 2017.2 now with (better?) pipenv support so I'm playing around with pipenv as well. Whenever I install a package a dialog screen shows up in the corner telling me that my pipfile is out of date and that I should run either "pipenv lock" or "pipenv update." Both options are clickable links and I've tried clicking both of them now and they both seem to update my Pipfile the same way. PyCharm 2018.2 is the latest. It just dropped 6 days ago. It also calls out pipenv support as a new feature. quote:Support for pipenv https://www.jetbrains.com/pycharm/whatsnew/
|
# ¿ Jul 31, 2018 13:15 |
|
I was impressed with Tree House classes when I went to brush up a couple years ago. However, it's anywhere from $25 to $200/mo depending on which plan you want. So it might not be economically feasible if you can't get work to pay for it. https://teamtreehouse.com/account/enrollment
|
# ¿ Aug 28, 2018 16:02 |
|
Mister Fister posted:Thanks for the suggestion! Looks like it focuses on python for web development rather than data science/analytics though. My bad. I didn't look at the current courses. For some reason I thought they had some data courses. Maybe that was Coursera, I remember looking at that around the same time.
|
# ¿ Aug 28, 2018 16:32 |
|
QuarkJets posted:I've heard that Automate the Boring Stuff is a good book for beginners and may be right up your alley Is that book still stuck on 2.7 or has it moved to the modern era?
|
# ¿ Dec 14, 2018 12:43 |
|
QuarkJets posted:No idea! IMO it doesn't matter to a newbie anyway, because the fundamentals are the same True enough
|
# ¿ Dec 14, 2018 12:47 |
|
Boris Galerkin posted:Also it looks like it's only affecting macOS Thank you for your sacrifice. I was going to install this later today. I guess I'll stick with 2018 until they roll out a fix.
|
# ¿ Mar 28, 2019 14:45 |
|
Boris Galerkin posted:I was gonna look into setting up a server to do this for what I had in mind remotely, but if google gives me 1000 free things a month then witchcraft it is. Same. I have a ton of personal documents I was going to scan in and use a commercial OCR on the PDFs to index them, but with 1000 free a month I may try to whip up a script to process the scan folder and compare.
|
# ¿ May 2, 2019 10:01 |
|
shrike82 posted:If you login to your accounts page, you should be shown a bundle page with a bunch of links to download the ebooks in various formats. Enjoy! Yeah, I can still access books I bought years ago through my account. Check that first.
|
# ¿ May 3, 2019 02:07 |
|
Bundy posted:I'm self taught and embrace a variety of sources. I may or may not be representative. Reference books were the last thing I kept using dead-tree versions for, but now that I have a 34” ultra wide monitor, I’ve fully converted to having various eBooks and webpages on the standby in the right side of the screen. Still *tons* of real-estate for PyCharm.
|
# ¿ May 3, 2019 02:36 |
|
PierreTheMime posted:Hopefully quick Python installation question: I've installed 3.7.3 onto a Windows server, confirmed the path is set, and restarted it. I can now execute commands from command line, PowerShell, etc. locally just fine, but the same commands produce a "Can't find a default Python" error if I attempt to execute them as a remote batch job. The only thing I can think of off the top of my head the $PATH for python is not being passed to the remote user an environment setting. What happens when you execute with the full pathname to python in the script?
|
# ¿ May 29, 2019 05:28 |
|
Empress Brosephine posted:It’s actually for employee ids, I think credit card just made it make more sense? Does that sound right? Lol. Basically you need a mag-stripe reader? Or are they RFID? Either way, have you checked with the reader manufacturer? They may have an API you can use to read data events from the reader.
|
# ¿ Jun 7, 2019 02:35 |
|
QuarkJets posted:Yeah I think 2.6 is CentOS 6 era. Yikes, but I can't honestly say that my orgs don't have any older servers kicking around for stupid/bad reasons One note re: Anaconda. If it’s in a corporate environment I’m pretty sure you need to pay for a license, so if budget is an issue it may not be an option.
|
# ¿ Mar 3, 2020 12:57 |
|
pmchem posted:I don't think that's the case? They sell Anaconda Enterprise but it's for the plus-up in features related to deployment/management of installations. You’re right, I was mistaking it with a different free-for-individual-paid-for-commercial product. Sorry for the confusion.
|
# ¿ Mar 3, 2020 17:30 |
|
unpacked robinhood posted:Given a document's hash, could you store it into it's own metadata, I think it's impossible but there may be clever workarounds ?
|
# ¿ Apr 28, 2020 12:37 |
|
Bruegels Fuckbooks posted:I like TUI. Granted it's a retronym (e.g. people didn't call text based user interfaces TUI back in the day.) https://en.wikipedia.org/wiki/Text-based_user_interface I remember them being called CURSES interfaces in the mid/late 90s early '00s, since a large amount of them were built (at least in BSD/Linux) using the curses terminal control library.
|
# ¿ Jun 14, 2020 23:35 |
|
This poo poo is why I ended giving up and just importing pexpect for interactive PTY sessions (note spawnu() doesn't work in Windows version of pexpect since no PTY support) (it may work if launched from bash w/WSL)
|
# ¿ Jun 15, 2020 18:46 |
|
in regards tocode:
I'll see if I can dig up my old hacky scripts and see how I dealt with it. I'm pretty sure I had to make some kind of accommodation due to some lovely links to some of the devices I was touching with the script.
|
# ¿ Jun 15, 2020 19:36 |
|
Bad Munki posted:Yeah, wrapping the % in a space on either side makes that example work as expected. Why. I'm not sure if you need the leftmost space, but the right-most is needed since the cursor appears one space past the symbol in most shells and CLIs. I remember it being an issue with the password prompt for the old Cisco Catalysts I was touching. I usually had to define that expect statement as code:
Proteus Jones fucked around with this message at 05:43 on Jun 16, 2020 |
# ¿ Jun 16, 2020 05:39 |
|
CarForumPoster posted:Is this like a production, customer facing app or just something you want for you? Maybe ImageMagick? It supports digital negatives and I would imagine there's at least one library out there that integrates it. At the worst invoke the command directly in Python. GIMP seems like a big install to just rip EXIF out of files. Another thought is that from my (very cursory) reading, DNF is really just a TIFF variation. So maybe there's python stuff to manipulate/import TIFF metadata. Since you're not actually interacting with the pixels themselves and just want EXIF it shouldn't matter that it's TIFF-but-really-a-negative. Proteus Jones fucked around with this message at 03:05 on Jun 17, 2020 |
# ¿ Jun 17, 2020 03:02 |
|
QuarkJets posted:Yeah the entirety of the software development world is pretty lovely Also lazy as gently caress.
|
# ¿ Jun 20, 2020 14:27 |
|
|
# ¿ May 2, 2024 14:14 |
|
I pay for it myself. I'm not usually a fan of sub models that are more than $20/yr or so, but PyCharm is one of the exceptions for me. Worth every single penny.
|
# ¿ Jul 2, 2020 01:26 |