I just got this error message:  ... from c:/ruby/lib/ruby/gems/1.8/gems/...  ... 10 levels... from c:/ruby/lib/ruby/gems/1.8/gems/... ...   and the bug (of course) is hidden somewhere in ... 10 levels....  How can I force Ruby to show a full stack trace?
When I get exceptions, it is often from deep within the call stack.  When this happens, more often than not, the actual offending line of code is hidden from me:  tmp.rb:7:in `t': undefined method `bar' for nil:NilClass (NoMethodError)         from tmp.rb:10:in `s'         from tmp.rb:13:in `r'         from tmp.rb:16:in `q'         from tmp.rb:19:in `p'         from tmp.rb:22:in `o'         from tmp.rb:25:in `n'         from tmp.rb:28:in `m'         from tmp.rb:31:in `l'          ... 8 levels...         from tmp.rb:58:in `c'         from tmp.rb:61:in `b'         from tmp.rb:64:in `a'         from tmp.rb:67   That "... 8 levels..." truncation is causing me a great deal of trouble.  I'm not having much success googling for this one:  How do I tell ruby that I want dumps to include the full stack?
Verbatim Environment in Figure Caption Once it is compiled, is there a difference between:  delegate { x = 0; }   and  () =&gt; { x = 0 }   ? Installing ChatJax bookmark on the iPad and iPhone How to replace forward slash with backward slash Why do you need to know who I know on Google? I just created a SE account using my Google account. It said that it needs to "Know who you are on Google" (I guess my connections). As far as I know, SE is not a social network. I can't even follow other people (seeing when they post questions and answers).  What is the reason you need to know my Google connections?  This was on code review. Actually I have an account there, but for some reason it asked me to reconnect. This is the same on MSO; one sees this explained as "This app is requesting permission to associate you with your public Google profile": I'm considering the ring $\mathbb{Z}[\sqrt{-n}]$, where $n\ge 3$ and square free. I want to see why it's not a UFD.   I defined a norm for the ring by $|a+b\sqrt{-n}|=a^2+nb^2$. Using this I was able to show that $2$, $\sqrt{-n}$ and $1+\sqrt{-n}$ are all irreducible. Is there someway to conclude that $\mathbb{Z}[\sqrt{-n}]$ is not a UFD based on this? Thanks. Floating sidebar clash with footer in team page Here is a screenshot from  page, with the floating sidebar: (all good so far)        After I scroll down to footer it just combines both:        Can it please be fixed? Ready-to-Use Database models example Where can I find ready-to-use database models ?  I don't need a database with data in it, but only schemas (UML diagrams). Perhaps something like the , but much more complex and real world. Distribute objects optimaly So I've got a file with loads of simple objects. This will later be used to cut out these shapes out of plastic. So, using the material optimally is of outmost importance. I was wondering if there is any script or plugin that could automaticly arrange the objects within the artboard so they could fit best. Pygame: Is there any easy way to find the letter/number of ANY alphanumeric pressed? What is the standard error of the sample standard deviation? I read from  that the standard error of the sample variance is  $$SE_{s^2} = \sqrt{\frac{2 \sigma^4}{N-1}}$$  What is the standard error of the sample standard deviation?  I'd be tempted to guess and say that $SE_{s} = \sqrt{SE_{s^2}}$ but I am not sure. Should I ask questions I already know the answer to and answer them myself? How to change/rewrite the lost password url? I used iThemes Security (formerly Better WP Security) hide back-end functionality to change the login url to /signin however clicking the lost password link /wp-login.php?action=lostpassword now generate a 404  Manually going to /signin?action=lostpassword works.  I came across the following code below which is suppose to make the change to however after some testing it doesn't seem to work  //******************************************************* //Function to change to lost password url //******************************************************** add_filter('site_url',  'wplogin_filter', 10, 3); function wplogin_filter( $url, $path, $orig_scheme ){     $old  = array( "/(wp-login\.php)/");     $new  = array( "signin/"); //this can be change to login or whatever or may remain there     return preg_replace( $old, $new, $url, 1); }   add to .htaccess  RewriteRule ^signin$ wp-login.php   How can i modify the above code in order to change the url for the lost password? PreparedStatement IN clause alternatives? Searching for a tag across all Stack Exchange meta sites I want to find all questions tagged  on the meta sites of . Is there a better way than searching manually on each individual site? Should I edit my deleted answer or add another answer? How to invoke vim editor and pipe output to bash How to convert image file data in a byte array to a Bitmap? In .NET why is String.Empty read only instead of a constant? I'm just wondering if anyone knows what the reasoning was behind that decision. How to count the number of occurrences of an element in a List I have an ArrayList, a Collection class of Java, as follows:  ArrayList&lt;String&gt; animals = new ArrayList&lt;String&gt;(); animals.add("bat"); animals.add("owl"); animals.add("bat"); animals.add("bat");   As you can see, the animals ArrayList consists of 3 bat elements and one owl element. I was wondering if there is any API in the Collection framework that returns the number of bat occurrences or if there is another way to determine the number of occurrences.  I found that Google's Collection Multiset does have an API that returns the total number of occurrences of an element. But that is compatible only with JDK 1.5. Our product is currently in JDK 1.6, so I cannot use it.