|
Still waiting on my Jetbrains keys
|
# ? Dec 22, 2012 12:38 |
|
|
# ? Jun 10, 2024 23:57 |
|
The Gripper posted:Still waiting on my Jetbrains keys I actually got an open source key from them a while back and it took a few days between when they said they approved the license and out my info in the queue and when I finally received the license email. I actually emailed them to check up on it and they said that their license notifications tend to be really slow. Not sure why but hopefully that explains it.
|
# ? Dec 22, 2012 13:43 |
|
JetBrains' sale blew up their whole process. And of course it's kind of a cascading mess with some people not having a record of the purchase from the processor, others having ordered multiple times when it wasn't clear whether the order was going through. So now in addition to whatever keygen queue backlog they had from the sale, they've also got a backlog of inquiries to sales@jetbrains.com to work through. The conflicting communication is kind of the issue. One source says 48 hours, one says within 5-6 hours. I don't mind a couple days waiting for a key, as long as I know to expect that. I don't like needing to play Internet Detective to find Twitter and blog posts to figure out what I'm supposed to do: just chill for a couple days? contact sales? http://blog.jetbrains.com/blog/2012/12/21/to-all-who-placed-an-order-during-the-end-of-the-world-sale/ https://twitter.com/jetbrains In the end, after reading comments on the blog from people claiming they got their keys "no problem," I joined the herd and sent my info their sales address too. I really like PyCharm and was going to buy it anyway in January, so I'm thrilled to pick it up for $25. edit: The email response from sales is: "If your license doesn't reach you by Monday, please let us know and we'll make sure to help you out." onionradish fucked around with this message at 15:40 on Dec 22, 2012 |
# ? Dec 22, 2012 14:45 |
|
Yeah I'm not too fussed, for the price it's worth waiting and I understand that they got totally smashed by the quantity of orders in that short period. It's a good example of how a non-critical failure (failure to deliver mail) can become critical because of user behavior. There's not a lot of ways to protect against that without ensuring no email fails, which is hard to do and still inform the customer of the failure.
|
# ? Dec 22, 2012 15:06 |
|
Wonder if the massive response to their sale will lead them to reconsider their pricing structure. I realize that some part of the bump in sales is due to the oh-gee-its-on-sale factor, but in their position id really be thinking about whether my pricing was too high.
|
# ? Dec 22, 2012 17:14 |
|
Thermopyle posted:Wonder if the massive response to their sale will lead them to reconsider their pricing structure. I realize that some part of the bump in sales is due to the oh-gee-its-on-sale factor, but in their position id really be thinking about whether my pricing was too high. I think the sale captured that on-the-fence demographic but would probably separate the commercial and personal prices too much, so honestly I think they'll congratulate whoever thought the sale up for bringing in new users and keep things as they are (until the next sale). But who cares, you all bought it at 75% off right?
|
# ? Dec 22, 2012 17:36 |
|
The Gripper posted:Right now their pricing for things like PyCharm and ReSharper is too high if you're a user that might not be using it immediately on profitable projects, whereas 75% off puts it perfectly in the price range for those users (the "ehhh it's useful, but I might do enough to make it worth it" clientèle). Plausible. In other news, if you're running PyCharm on Ubuntu and all the UI fonts are bold, you have to run sudo apt-get remove fonts-unfonts-core.
|
# ? Dec 22, 2012 20:05 |
|
I have a little data mining stack that I use to collect bits and bobs. Since it's only simple I use supervisord to monitor and keep my python processes doing their thing. I have some new scripts that need to run periodically, once an hour, once a day etc. Supervisor seems to be really backwards at starting process at intervals so I've been looking into alternatives. Obviously, cron would be ideal for this but does require a crontab, something I've tried to avoid because it makes the app less encapsulated. Does anyone have any neat ways of running python scripts at set intervals?
|
# ? Dec 22, 2012 23:48 |
|
Hanpan posted:Does anyone have any neat ways of running python scripts at set intervals? I do it with Jenkins CI, but that might be a bit overkill for your needs.
|
# ? Dec 23, 2012 03:55 |
|
use cron, or re-implement cron
|
# ? Dec 23, 2012 03:55 |
|
Hanpan posted:I have some new scripts that need to run periodically, once an hour, once a day etc. Supervisor seems to be really backwards at starting process at intervals so I've been looking into alternatives. Obviously, cron would be ideal for this but does require a crontab, something I've tried to avoid because it makes the app less encapsulated.
|
# ? Dec 23, 2012 04:18 |
|
Really dumb string question - how do I create an if condition for split() that would detect if the substring I want to split doesn't exist? For context and clarification: I'm using split() to read text between a starting string and an ending string and then putting that text elsewhere, something like this. ** THING 1 STARTS HERE ** stuff stuff stuff ** THING 1 ENDS HERE ** ** THING 2 STARTS HERE ** The problem I'm running into is that if the thing 2 start doesn't exist and I have an automatic split for it, it will just give me the whole thing and put it where it doesn't belong. edit: also accepting any more elegant ways to do this that aren't regex. I need to learn regex. edit2: looks like I can check with find() if the start string exists and then do that operation if it does, still accepting ideas though. Daynab fucked around with this message at 07:16 on Dec 23, 2012 |
# ? Dec 23, 2012 07:06 |
|
Daynab posted:Really dumb string question - how do I create an if condition for split() that would detect if the substring I want to split doesn't exist? With regex I'd just say "startstring(.{1,}?)endstring" and use group 1 (group 0 is all, group 1 is between the brackets) to get the text (also use the flag DOTALL if it's multiple lines).
|
# ? Dec 23, 2012 07:11 |
|
Daynab posted:Really dumb string question - how do I create an if condition for split() that would detect if the substring I want to split doesn't exist? code:
quote:For context and clarification: I'm using split() to read text between a starting string and an ending string and then putting that text elsewhere, something like this. You might be better dealing with your input line at a time: code:
quote:edit2: looks like I can check with find() if the start string exists and then do that operation if it does, still accepting ideas though. this works too.
|
# ? Dec 23, 2012 08:04 |
|
Thanks both. And yeah I always forget the super simple "if in" for some reason.
|
# ? Dec 23, 2012 08:20 |
|
While the line-by-line solution is probably best, for the actual task of "split once if possible" string.partition is perfect:code:
|
# ? Dec 23, 2012 08:41 |
|
Daynab posted:Really dumb string question - how do I create an if condition for split() that would detect if the substring I want to split doesn't exist? I'm not completely sure I understand the question, but couldn't you just check if len(string.split(sep))>1? If it is, then thing 2 exists, and if not then thing 2 doesn't exist. edit: Wow, that was the slowest reply I ever typed. There are probably better answers above. Also, I guess this is kind of wasteful since you have to split twice. FoiledAgain fucked around with this message at 09:43 on Dec 23, 2012 |
# ? Dec 23, 2012 09:40 |
|
Hanpan posted:I have a little data mining stack that I use to collect bits and bobs. Since it's only simple I use supervisord to monitor and keep my python processes doing their thing. If its django theres a couple of great cron modules for that , that put it all into a nicely tweakable admin interface.
|
# ? Dec 23, 2012 15:45 |
|
For what it's worth I finally received my Jetbrains license this morning, so as long as you got some type of email from them before I wouldn't worry.
|
# ? Dec 23, 2012 22:17 |
|
Yea, I got mine early this morning
|
# ? Dec 23, 2012 22:29 |
|
I tried to make an empty project in PyCharm but got these errors. Googling gave me the idea that it's not important to get this resolved, but I'm still curious.PyCharm's Skeleton Generation Problems popup posted:Failed modules
|
# ? Dec 23, 2012 22:29 |
|
So uh, what is the common way to distribute applications and create executables for windows with them? I feel like I'm missing something because I'm only finding stuff like py2exe which hasn't been updated in like 4 years, or pyinstaller which doesn't support 2.6/2.7 without workarounds on windows. Is there seriously no easy way to distribute your programs for a language this popular? As I said, I'm probably missing something big.
|
# ? Dec 24, 2012 08:44 |
|
cx_freeze does what you want and is also cross platform an was last updated about a month ago.
|
# ? Dec 24, 2012 18:18 |
|
py2exe may not have been updated, but it still works fine. I distributed something at work with it just a few weeks ago. I'll check out cx_freeze though.
|
# ? Dec 24, 2012 18:56 |
|
I have a list of strings in Python. When iterating over list, is there a way to print the next 'word' in the list? The code would look something like this:Python code:
|
# ? Dec 26, 2012 05:22 |
|
Python code:
|
# ? Dec 26, 2012 05:27 |
|
MeramJert posted:
Excellent. I completely forgot about 'enumerate'. Thanks for the help!
|
# ? Dec 26, 2012 05:39 |
|
Jose Cuervo posted:So if my list is ['apple', 'banana', 'candle', 'dog'], I would like to be able to print out 'candle' when the iterator word was 'banana'. Why do you need the next word? Perhaps you want pairs? Python code:
|
# ? Dec 26, 2012 05:48 |
|
MeramJert posted:
A better way to have to not deal with exceptions when doing stuff with "the next item" is subtract rather than add, and start from 1. Rather than Python code:
Python code:
|
# ? Dec 26, 2012 05:48 |
|
I'm liking that they added the dark theme from IntelliJ to PyCharm (in the latest EAP builds), I wasn's a huge fan of the original themes available. It's a bit sucky that it runs like a sack of dicks on my netbook, but really who develops on a netbook anyway? (I keep SublimeText2 on there because it's super snappy once it's open and I don't do any major project work on it.) edit; just realised in an old project I managed to do this because I switch between perl and python a lot: Python code:
The Gripper fucked around with this message at 09:39 on Dec 26, 2012 |
# ? Dec 26, 2012 08:43 |
|
Suspicious Dish posted:Why do you need the next word? Perhaps you want pairs? I have a file where each line corresponds to data from a single simulation run. The data (separated by spaces) is composed of words and numbers. The following is an example of what a line would have (very condensed and shortened version). Although each line will definitely have OptimalFound, LowerB, and Lmax, there may be other keywords that do not appear on each line. code:
|
# ? Dec 26, 2012 16:28 |
|
Python code:
|
# ? Dec 26, 2012 16:37 |
|
The Gripper posted:I'm liking that they added the dark theme from IntelliJ to PyCharm (in the latest EAP builds), I wasn's a huge fan of the original themes available. Oh, nice I'll have to check that out. I tried to copy the Monokai theme from Sublime Text 2 as closesly as possible into PyCharm... ...but it bothers me there's so much white everywhere else in the UI.
|
# ? Dec 26, 2012 20:51 |
|
Try the Color Ide plugin. It copies your color scheme to the other windows. Although it's not perfect, I find it suitable, as I get bugged by the same thing.
|
# ? Dec 26, 2012 20:53 |
|
Thermopyle posted:Oh, nice I'll have to check that out. Might want to be careful with that Currency class. code:
|
# ? Dec 26, 2012 23:55 |
|
Lysidas posted:Might want to be careful with that Currency class. Ahh, yes. Nice catch. That's actually from the moneyed dependency of django-money and I was just checking it out to see how it works. Didn't even notice the mutable default argument.
|
# ? Dec 27, 2012 05:38 |
|
So I'm in the process of learning python and just trying to put my unit tests in a different folder than my program source, however even after reading the documentation I still can't quite get it to work. I get the following error code:
It is hard to see but the __init__.py at the very bottom is in the rl directory.
|
# ? Jan 5, 2013 06:17 |
|
opt posted:So I'm in the process of learning python and just trying to put my unit tests in a different folder than my program source, however even after reading the documentation I still can't quite get it to work. Then shouldn't it be import source.Tile, if it's already in rl?
|
# ? Jan 5, 2013 06:28 |
|
No, because you should always use absolute imports. You need to ensure that your PYTHONPATH is set correctly.
|
# ? Jan 5, 2013 07:03 |
|
|
# ? Jun 10, 2024 23:57 |
|
I suggest using something like nose for running your unit tests. It should set the PYTHONPATH itself, and find your tests itself without any issues when run from the base folder "rl".
|
# ? Jan 5, 2013 08:19 |