Renaming Screen - Ubuntu
screen -S 8890.foo -X sessionname bar
screen -S 8890.foo -X sessionname bar
There’s a really interesting tip in the “Initializing Dictionary Elements” section of this page: https://wiki.python.org/moin/PythonSpeed/PerformanceTips
“it is cheaper to use a try statement” when checking to see if a key exists in a dictionary (inside of a loop).
I was getting the “maximum recursion depth exceeded” when I tried to run large datasets through PyIntervalTree.
I never fixed the issue or found anyone else with the issue. I ended up switching to bx-python instead: https://www.biostars.org/p/99/#100
https://github.com/pydata/pandas/issues/7739#issuecomment-48823964
If Pandas’s Group By is applying the function in Apply twice to the first item, it’s actually expected behavior according to the warning in the documentation: http://pandas.pydata.org/pandas-docs/stable/groupby.html#flexible-apply
This video does a good job of describing the basics of Virtualenvwrapper: https://www.youtube.com/watch?v=thHNYVrY0lU
You’ll need to have used virtualenv to appreciate this.
Basically, you create virtual environments with mkvirtualenv and they’re stored in a central location. When you want to switch to your virtual environment, you use the workon command.
You can also create a postactivate script that loads environmental variables when you switch to your virtual environment.
Note: There is also a module called Pew that seems to have a simpler installation process: https://github.com/berdario/pew
I was getting this error while using the POST /venues method of the meetup API.
The error seems to happen when you duplicate the address of another venue. I was able to add the venue, but when I tried to add it a second time - I would get this error.
I ended up getting the list of venues and trying to find a match first.
The error message looks like this:
{u'status': {u'http_code': 200}, u'contents': {u'error': {u'error_type': u'Application Key Error', u'error_message': u'Please provide your Application Key in the URL as "?app_key=<APP_KEY>".'}}}
After a few hours of trying to get past the Eventbrite API’s “Application Key Error”. I finally figured out that I needed to switch my request URL from:
"https://developer.eventbrite.com/json/event_new"
to:
"https://www.eventbrite.com/json/event_new"