Hot answers tagged

16

Oh, hilarious! Here are some of mine from AskUbuntu: there is just a relatively small amount of apps that may or may not include a cartoon. From my experience it shouldn't be aware that it is a pretty advanced tool. You always trust Amazon. (Yeah sure..) Ok, In the window that pops up, copy and paste the following: [Desktop Entry] Type=Application Name=...


15

This thing is so hilarious. I love it. Here are some generations from AskUbuntu: Open the Software Sources application. Go to the Additional Drivers tab. Choose the closed source driver for your hard-drive, the chance of possibility you need it for some reason, but it's not that easy to install instead of Windows (WARNING: THE LATTER WILL DELETE ALL YOUR ...


13

Here are some of the best snippets I've seen so far. From Stack Overflow, You should be downloaded. Me.load. the given URL actually points to a coincidence. Dolby also specifies that the conversion may say your password is being over amp'd by 41.4%. The server/client then downloads the author. leave out advanced features like this until you find your ...


10

Explanation of the uppercase and lowercase letters (specifically [, \, ], ^, _, `). innerHTML is not a regex like this: \D(\d{4}\s\d{3}\s\d{3})\D \D will be automatically escaped for you. You use this method, the text will be 2 as well. If you use this is the case, try a regex for this: String yourString = "<210>; On to say that $result is false ...


9

Some of my own "quotes" from Stack Overflow: I know, there is no way to explain the way Python treats variables and parameters. This will remove all characters on Earth. I modified the function and now it's just "Hello World!". So yes, it's neither a xls file nor a text editor is like opening a SMTP server through a HTTP proxy.


9

Arqade has a lot of potential for this, here are some of mine: Dead is especially fun to use. The process requires a lot of Monuments after you buy EotN for the player who got the final hit, and only if it was gathered from rather than destroying it, so it needs to be done at time of activation. For example, I currently have a streetpass team that is strong ...


8

These are my favorites on Meta Stack Exchange: the bounty will be the best advice and you may find yourself in rough seas. Not? Then you have uploaded your image to delete incorrect answers Meta Stack Overflow is self-promotion, and it doesn't add any value to the answer. And on Code Golf: the byte array actually have NO idea how it works Then, you prompt ...


5

I am trying to use the Search option to get the list of results from SO. I have tried using pagesize=50 and I still get large number of titles returned. Is there another option to limit that search? Sorry if I am posting this the wrong way or in the wrong area but I am new to Stack Overflow and to programming as well :) This is the part of the code I am ...


5

Total results vary with page size The idea of producing a transparent iterator (getting the next page as needed) is cool, but it just isn't working; the page size affects the total number of results returned (apparently to a multiple of the page size)...:-( My code needs to look at all Qs asked for a given tag in a given month: def qstats(site, tag, month,...


4

status-completedI asked this as a question, but apparently the convention is to report bugs/feature requests in the announcement thread. It appears, that the MathJax extension mhchem is currently not enabled in the StackPrinter app. This is rather inconvenient for most of the chemistry.se questions and answers. It would therefore be nice if this feature ...


4

The \r\n issue was solved when I changed to a POST request. But, since I was retagging questions (didn't really need to change the body, just resend it), I ended up using the body_markdown, encoded with HTMLParser.HTMLParser().unescape() body_markdown = str(HTMLParser.HTMLParser().unescape(question_data['items'][0]['body_markdown'])) And then sending it ...


3

Great design and great idea. I don't know whether many people still look at this, but I discovered it today and if it was advertized and used more. Some suggestions for Stackathlons: Quantitive Finance and Economics. This one has suprisingly few, while the disciplines are quite closely related. I tried to add another one, but then it gives probably zero ...


3

These all come from my mechanics.stackexchange profile. There's a post here: whatconsumer.co.uk whose top post seems to be burning an over-rich fuel mixture. Hmm, I wonder what they're running their servers on. Use a sponge with some water in it to disconnect the battery, it doesn't harm on the engine or the transmission Well, I hope not! Great question!...


3

Here are some from my answers on SuperUser: Remedies Here are some actual reasons why an application developer felt that Dalvik was released (or maybe the race condition still exists, and you're just really!) In theory, you could write C/C++ or even assembly code if your page file is heavily utilized due to RAM pressure. The default behavior of Windows is ...


3

Here is a small script (stackprinter) which uses Stack Printer from the command-line: #!/bin/sh type wkhtmltopdf || { echo >&2 "wkhtmltopdf command is required. Aborting."; exit 1; } : ${1?"Usage: $0 (url)"} URL=$1 && shift HOST=$(echo "$URL" | grep -Eo "([.[:alnum:]]*?)\.(com|net|org)" | head -c-5) QID=$...


3

When I try running the code with python 3.4 I always get this error: AttributeError: 'HTTPMessage' object has no attribute 'getheader' Here is the full traceback. I'd be very happy if any of you could tell me what the problem is. Is it the fact that I'm using python3? I converted the example files using 2to3 and it seems to me that it should work fine... ...


2

The API was working but now I receive an error when I try to run the demo examples. Sample error dump: /usr/bin/python2.7 /home/donbeo/PycharmProjects/stack_overflow/experience.py StackOverflow user 41981's experience: Traceback (most recent call last): File "/home/donbeo/PycharmProjects/stack_overflow/experience.py", line 13, in <module> user = ...


2

import stackexchange so = stackexchange.Site(stackexchange.StackOverflow) comment = so.comment(valid_comment_id) the above code returns the following error in init.py: --->166 self.post_type = PostType.from_string(json.post_type) 167 168 def _get_post(self): AttributeError: DictObject instance has no attribute '...


2

Step 1: I would like to retrieve all the related tags of a particular tag using your package, much like what is accomplished here. Step 2: I would like to find the intersection between two lists of related tags. RELATED: https://stackoverflow.com/q/19898666/307454


2

The API presents individual features behind individual URLs. The information on the profile page is combined from several sources; to get the details you requested, you will have to submit multiple requests. Probably start at the API "Hello World" Python example and consult the official documentation for the precise API endpoints; for example, ...


2

This isn't really a place to code-review your script, even if it uses the API. Here is were you would publish your script1. However, after a quick glance at the code, I don't see any glaring problems. But, if you start making lots, or rapid, calls you will need to check and respect the backoff value and the quota_remaining value. The API documentation is ...


1

That data is stored as HTML in the database, as are more fields (e.g. the about_me field right above the location). Presumably, this is done for performance reasons. &#252; is the HTML entity corresponding to ü. You just have to decode the string; every programming language has a method for this, e.g. html.unencode() in Python. By the way, it's strange ...


1

You are subject to throttling. You can get more calls by first registering your application. After that you get access to a detail page which includes a value for key. The description for that field is: Pass this as key when making requests against the Stack Exchange API to receive a higher request quota. This is not considered a secret, and may be safely ...


1

I suspect some new throttling kicked in on Saturday. When I slightly increased the delay between page= queries, the problem went away.


1

Your file is named stackexchange.py, so Python is recursively loading it instead. This is a very common Python pitfall: Stack Overflow: python 'module' object has no attribute 'compile' Someone's badly formatted code with the same problem Django tickets {1, 2} Again on Ubuntu Forums New module causes interesting conflicts And here it is again on ...


1

supportstatus-resolved I've been searching for a Stack Exchange offline version, for research purposes at my University, then I found this. I have been trying to figure out how to exactly run the software program on my Mac OS X Yosemite. I have downloaded the entire data dump and everything that it requires: Python, version 2.7.12 Java, version 1.8....


1

Question: How do you request all Tags? Retrieving a list of tags on a given Stack Exchange site with Stack.PY is relatively straightforward: from stackpy import Site sa = Site('stackapps') for t in sa.tags: print t However, this will only fetch the first 30 tags. The tricky part is fetching more than one page. You can fetch any particular page by ...


1

Outside world until the constructor returns. If the native library/code cannot be linked to by that JVM (for example, if you have a Windows JVM (for example, if you have a rich history of cross-platform support on runtimes like Mono. You may like to pose a few more possible for readability. Instead of declaring ProductOfDouble at the top ...


1

I can't figure out how to fetch the text body of the answers and comments to a question given the question id. Also I can't figure out what are the supported sites(variable Name) in the method name stackexchange.site(Name,api_key) . Can anybody provide me with the list of supported sites of stackexchange and what exactly should be provided in the variable ...


1

Lucas, Something must have changed in JSON data format sent from the Stack Exchange API because yesterday for no reason I started getting: ValueError("Unexpected UTF-8 BOM (decode using utf-8-sig)") (I searched through many forums, reinstalled python a couple of times etc etc) As the error says, there is a problem with the encoding. Basically all I ...


Only top voted, non community-wiki answers of a minimum length are eligible