When debugging in PHP, I frequently find it useful to simply stick a  in my code to show me what a variable is, what its value is, and the same for anything that it contains.  What is a good Python equivalent for this?
So what I'm looking for here is something like PHP's  function.  This is so I can debug my scripts by seeing what's the state of the object in question.
What does it mean if a Python object is "subscriptable" or not? Which types of objects fall into the domain of "subscriptable"? How do I depower overpowered magic items without breaking immersion? How to find out the terminal command of an application? The [ifs] tag is used for 2 separate things I think  might correspond to IBM's  according to this .   But currently out of the 27 question tagged with , most of it have to do with the 's "Internal Field Separator".  What should be done here?   create a new tag for "Internal Field Separator" e.g. , and keep the IBM's under ? create a new tag for "Integrated File System" e.g. , and keep the other one under ? just remove the  tag from the  questions? In what order are the dated ordered by? Certainly not alphanumeric order.  ls -lt sorts by modification time. But I need creation time. Whenever my cheese gets too old and has a bit of blue/white mold on the side, I'm not sure whether I should throw it completely out or not. Is it safe to eat if I cut off the edge? Should I cut a bit off of all the sides just to be safe?  I'm particularly interested in the answer for cheddar cheese, but answers about other cheese are welcome. What is the right first step to take when integrating $1/(2+ \sin x + \cos x)$? I want a hint on this following integral. I don't know the first step, do I do $u$-sub. or do I use trig. sub or something?  $$\int \frac{1}{2+ \sin x + \cos x} ~\mathrm{d}x$$ Show "Insufficient Privileges" directly when clicking 'Edit' (override), not on 'Save' If a user clicks 'Edit' on an opportunity which he isn't allowed to edit, the "Insufficient Privileges" page directly appears. This is good. If a user clicks 'Edit' on a custom object (which has an edit override that points to a visualforce page), he first sees the form without problems, and the "Insufficient Privileges" page only appears when he tries to save it. This behaviour is misleading for the users, because they think they can manipulate the data and put effort into it, and only afterwards they realize that this wasn't possible after all.  An idea was to check at page load if the user has edit permissions and otherwise redirect him to the "Insufficient Privileges" page.  Might there be another way? Thanks! I am looking at this:    I need to create a boot disk to test Ubuntu to make sure it will run on a PC (Compaq Mini CQ10-120LA) I was given. I can create the boot disk off of a Mac (in English) or Windows (but Windows is in Spanish and foreign to me).   Questions:     What format do I choose for the USB stick? (I wish the instructions stated this). What is Dash? (Will I know when I run the installer?) Can I do this from a Mac or Windows computer? Or only from Ubuntu? Help us test the alpha version of our Android app We are in the early stages of development of the official Stack Exchange Android app and we need your help with testing. To set a few expectations: there will be bugs, crashes, and missing features, all of which will be fixed in .    We are initially targeting Android devices running  (Android 4.1 or higher) starting with phones (up to ~5 inch) and eventually moving our way to tablets.    To register for alpha testing .  After you register we will send you an invite to a private Google community where you can find a link to download our app directly from the  store. The invitations will be sent out in waves, so if you don’t get an invite immediately, be patient.  Crash reports will be automatically reported back to us using . Bugs or feature requests should be reported here on meta and tagged . Please do not use the Google community to report bugs.  As always, we welcome your feedback and are committed to building the best mobile app possible for browsing the Stack Exchange sites. My friend is buying a digital point-and-shoot camera, which he wants to use to click family pictures including a lot of pictures of their newborn son.  What camera qualities should he be looking for while buying? I'm trying to crack a cypher that I believe is Vigenère encrypted and I'm currently stuck.  I calculated the key length by finding repeated sequences in the cypher and calculating the the common factors.  Word    distance factors agzd    16       2,4,8,16        zna     92       2,4,23,46,92 zdc     54       2,3,6,9,18,27,54 csio    44       2,4,11,22,44 omy     46       2,23,46 zab     5        5   I assume the key-length is 4 as these are the once that are common factors, but from here on trying to map the correct caesar shiffre for each position I'm stuck.  Can somebody confirm that my key-length calculation has no errors which would explain why I can't solve the cypher.  Here is the cypher:  jD 2GSA 7HNA ZNA w.m. V7KXA 36HBM MKE5 /H SGP9 +R GKKJ 2I A4OTC KDBCUR. 19+R 8Y TKJ JG4 IGO6 6U4T OJ hH/BIK. 196 qFKT+9 BNJK ZD6+Q AGZD. kJ'R EaOP6 4NCR ZK 36 / AGZD6C/HOIE2D. x0ZNAC2S8IO8DI HB xX8D4D 0XK O66M 0Y MN62S 8TZABBD2Za8BI. lBJ HA+DF 6UU/ 2J /FOZDC6S8I OJ kDC8G OO 2BLCYZ O66M 0Y G 925F4 UL J2JHCTGH FHH3K Configure HAProxy to include host headers for different backends I am exploring the use of HAProxy as a balancer in front of a set of web apis that run on IIS.   node1.myapp.mycompany.com node2.myapp.mycomapny.com   We are currently using Host Headers to correctly resolve the right web application on IIS.  For example, we may have otherapp.mycompany.com running on the same server/port, but using Host Headers IIS knows which one to serve up.  My initial attempt at HAProxy left me with 404 errors, because I was not including the host headers in my request, and so IIS was serving back the default site bound to the given IP, and not resolving by host name.    The fix left me with something like this:  frontend localnodes     bind *:80     mode http     default_backend nodes  backend nodes     mode http     balance roundrobin     option forwardfor     reqirep ^Host: Host:\ node1.myapp.mycompany.com     server web01 node1.myapp.mycompany.com:80   This works great for a single backend, but I am left scracthing my head on how to include the correct host headers depending on which backend is serving up the request:  backend nodes     mode http     balance roundrobin     option forwardfor     reqirep ^Host: Host:\ node1.myapp.mycompany.com     server web01 node1.myapp.mycompany.com:80     server web02 node2.myapp.mycompany.com:80   The above does not work whenever node2 is used because it doesn't resolve correctly in IIS (node2 in this case is on a different server, and therefore different IP.  In fact, if they were running on the same server/ip I suspect the request work "work", but they would all be served by node1 per the host header).     Is it possible to set the host based on the url of the backend used to serve up the request? If so, this implies my checks also need to provide the correct host header based on backend, how would that be done?   Edit: Am using HA-Proxy version 1.7.9 2017/08/18  Let me give this just a little more background.  We used to have just myapp.mycompany.com serving up api requests.  We need to expand it.  Our clients will still call myapp.mycompany.com, but that will just point to the HAProxy, which will balance it out to node1.myapp.mycompany.com and node2.myapp.mycompany.com.  Our current server configurations have us binding a single IP address on each server, so we use host headers to resolve. Explaining two-tailed tests I am looking for various ways of explaining to my students (in an elementary statistics course) what is a two tailed test, and how its P value is calculated.  How do you explain to your students the two- vs one- tailed test? Cartoon about a group of teenagers whose souls travel to multiple worlds with monsters I remember very little but enough... I know that there were 3 worlds, a real one, a mid-world kind of with a teleporter, and the world with all the creatures. The first episode was in the desert and there was a good monster that saved the main guys from a bad one. Before he saved them he said every end is a beginning and every beginning is an end.   Please help me; I've tried everything. I saw it on , I think it was not Japanese. I live in Croatia, so I saw it there. It was aimed at kids, but not younger kids. The main characters were human, around 15 years old. The teleporter was in the middle of a big structure. It was a 6 piece tp, so every circle was one, and it was shaped like a star. There were robots working there; they carried food and other things.  I remember that all the creatures thought that the humans are evil, all but the one, the "lord" of all of them. And yes, the main character got to the world by some sort of a device that he found and it belonged to another kid who lost it and they were able to transform in the creatures from the world by it. When they are in the "other world", their body stays in the real world and acts normally but their soul gets transported to the mid-world So far, I know if $p$ is a rational prime, then $(1)$ if $p\equiv 3\mod4$, then $p$ is prime in $\mathbb{Z}[i]$. $(2)$ If $p\equiv1\mod4$  then $p=π_1 π_2$ where $π_1 $ and $π_2$ are conjugate, Then $π_1 $ and $π_2$ are primes in $\mathbb{Z}[i]$. $(3)$ $2=(1+i)(1-i)$, then $(1+i)$and$(1-i)$ are primes in $\mathbb{Z}[i]$.  What's are all the prime elements in Gaussian integers $\mathbb{Z}[i]$? For example, $-3$ are prime in $\mathbb{Z}[i]$, but not in the above $3$ cases. I am trying to solve a variation on the .  In this scenario, someone is selecting coupons at random with replacement from n different possible coupons. However, the person is not selecting coupons one at a time, but instead, in batches.  Here's an example problem formulation: There are 100 distinct coupons. A person makes selections in 10-coupon batches at random (each coupon with replacement). What is the expected number of batches necessary to have selected 80 unique coupons?  I have been able to determine the expected number of selections necessary to have selected k unique coupons when selecting one at a time (much like Henry's ), but I'm a bit stumped as to how to go about solving it with this particular wrinkle.  Any tips/guidance would be greatly appreciated. Change the display scaling on the fly I'm looking for a keyboard shortcut or a CLI instruction to change the display scale on the fly. Seems there's nothing in compiz-config manager to handle this? Smoke Generator does not work When I try to run the smoke simulator in Blender 2.62 I get no smoke at all. When I attempt to render, the only output is a black screen. What am I doing wrong here that is making the smoke simulation not render?  Is it a mistake I made, or a problem with Blender version 2.62? Returning from Dual-boot to just Windows I installed Ubuntu sometime back along side Vista, but later found that I rarely (if ever) use Ubuntu. How easy is it to return my computer to its initial state of having only one OS, and freeing up the hard-drive space used by the Ubuntu install?