Drag and drop exception. Desktop objects I am using Drag &amp; Drop ListView on files (directories or any kind of files).  When i drag&amp;drop My Computer or Bin from Desktop NullReferenceException happens.  All i want is to skip this element (display some text in log textbox or smthing). I have no idea how to achieve that. I don't know what kind of object is MyComputer element from Desktop.  Here's my code after cutting useless to this subject logic:  private void Directories_ListView_DragDrop(object sender, DragEventArgs e)     {          string[] DroppedDirectories = (string[]) e.Data.GetData(DataFormats.FileDrop,false); //array of dd files paths         try         {             foreach (var directory in DroppedDirectories) // here Exception  occurs this loop process all dragged and drop files              {                 ListViewItem Dir = new ListViewItem(Path.GetFileNameWithoutExtension(directory));                 //Place for some checking Logic                 if (GetDir.IsDirectory(directory))                 {                    (.....);// Doing some things                 }                 else                     LogList.Items.Add(DateTime.Now + ": Entry " + Dir.Text + " is not a directory");              }         }         catch(Exception) // it only stops app from crashing,          {             LogList.Items.Add(DateTime.Now + "One of elements was Mycomputer or Bin, process stopped ");         }     }
What is a NullPointerException, and how do I fix it? What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?
Does anyone know what song plays at about ? Rewrite Sharepoint URL (Sharepoint 2013) I'd like to rewrite all my site urls in the way the the user can't figure out the exact name of the the page his viewing. let's say that my site is "www.justarandomsite.com"  and may page is "page.aspx" I' like to have instead of "www.justarandomsite.com/pages/page.aspx" sothing like this: "www.justarandomsite.com/skdhfjksdgfjksdgfjdsgvdjhsgfjdsdsjfgkdsjgfkdsgfjdsgfjkdsg" Let's say I launch a bunch of processes from a ssh session. Is it possible to terminate the ssh session while keeping those processes running on the remote machine? James Paterson in his novel writes, “she was shrink by trade, a forensic profiler, and Jack Morgan’s number two at Private “.   What does whole sentence mean? Unable to mount /dev/loop0 during install My port of entry and exit is Frankfurt, Germany. However i will only be spending a day or two there. I am visiting Spain and Portugal for a week each. So should I be applying to Spain embassy or German embassy? I am an Indian citizen. how to place JS-code to NewForm.aspx of a list in SharePoint 2013 APP.  In sharepoint 2010 we can use this list definition to add JS:  &lt;List ...&gt;   &lt;MetaData&gt;     ...     &lt;Form Type="NewForm" Url="NewForm.aspx" SetupPath="pages\form.aspx" WebPartZoneID="Main" UseDefaultListFormWebPart="False"&gt;         &lt;WebParts&gt;           &lt;AllUsersWebPart WebPartZoneID="Main" WebPartOrder="1"&gt;             &lt;![CDATA[              &lt;WebPart xmlns="http://schemas.microsoft.com/WebPart/v2"                 xmlns:sfwp="http://schemas.microsoft.com/WebPart/v2/SimpleForm"&gt;               &lt;Assembly&gt;Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c&lt;/Assembly&gt;                                        &lt;TypeName&gt;Microsoft.SharePoint.WebPartPages.SimpleFormWebPart&lt;/TypeName&gt;               &lt;FrameType&gt;None&lt;/FrameType&gt;               &lt;Title&gt;JS1&lt;/Title&gt;               &lt;sfwp:Content&gt;ANY HTML YOU NEED HERE               &lt;/sfwp:Content&gt;             &lt;/WebPart&gt;             ]]&gt;           &lt;/AllUsersWebPart&gt;           &lt;AllUsersWebPart WebPartZoneID="Main" WebPartOrder="2"&gt;             &lt;![CDATA[             &lt;WebPart xmlns="http://schemas.microsoft.com/WebPart/v2"&gt;               &lt;Assembly&gt;Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c&lt;/Assembly&gt;                                        &lt;TypeName&gt;Microsoft.SharePoint.WebPartPages.ListFormWebPart&lt;/TypeName&gt;               &lt;PageType&gt;PAGE_NEWFORM&lt;/PageType&gt;             &lt;/WebPart&gt;             ]]&gt;           &lt;/AllUsersWebPart&gt;         &lt;/WebParts&gt;       &lt;/Form&gt;     &lt;/Forms&gt;   &lt;/MetaData&gt; &lt;/List&gt;   How to do the same for Sharepoint 2013? Thought Experiment - Poking a stick across a Black Hole's Event Horizon Increasing spacing between section number and title in the table of contents I'm using the simple ordinary \tableofcontents command to produce a table of contents, and I find that the resulting spacing between the section number and the section title is too small:    Can someone tell me how to fix this, please. My documentclass is memoir, if that matters. Difference between generalized linear models & generalized linear mixed models I am wondering what the differences are between mixed and unmixed GLMs. For instance, in SPSS the drop down menu allows users to fit either:   analyze-&gt; generalized linear models-&gt; generalized linear models &amp; analyze-&gt; mixed models-&gt; generalized linear     Do they deal with missing values differently?    My dependent variable is binary and I have several categorical and continuous independent variables. Coding for an ordered covariate I am performing ordinal regression, I have 5 response categories and several predictors both continuous and categorical. I would like to add a predictor which is categorical but ordered (1, 2, 3, 4). I don't think it would be appropriate to apply the usual dummy coding for unordered categorical predictors, but when I searched for how to code this I did not find much information.  In  "linear coding" or "assuming linearity of the predictor effect" is mentioned, but without further details.  Does it mean I just use my ordered values as they are, i.e. use them as a continuous variable? Preventing itemize environment to insert initial vertical space How to put a '+' sign inside a square like xor How to handle users who don't select answers for their questions? How to merge two files in corresponding row? Now,I have two files:  aaaa.txt:  a=0; b=1; c=2;   bbbb.txt:  d=3 e=4 f=5   I want to merge aaaa.txt and bbbb.txt to cccc.txt.   cccc.txt as follow:  a=0;d=3 b=1;e=4 c=2;f=5   So, what can I do for this? Mobile web refresher, part 2 After a sizeable amount of work we are releasing a new version of the mobile web site, this time focusing on the question and answer page. We have also fixed or implemented a minimal large part of the issues and requests mentioned in the . Changes Question and answer page  SVG icons for upvote, downvote, favorite, comment upvote white background color for legibility general styling issues with notices (they actually exist now) bounty link is now in question menu (next to flag)   Ask question page  general styling and sizing of element use of placeholders where appropriate instead of page text styling of error messages   Pop-ups  Popups are now inlined in the page instead of being sometimes floating and draggable Many overdue styling issues Close button is SVG Flag indicators are readable Buttons   Misc pages  404 page did not exist. Now it does. Login, logout are formatted Pre-ask and pre-answer warnings are now formatted  Bugfixes  made search magnifying glass bigger fixed language in user timeline so it's consistent with the desktop site added login link on top bar made topbar icons ever so slightly smaller  Restating the obvious: send your &lt;3 to  and   for the most excellent design! Feedback , bugs and suggestions while we move to the next iteration? Please mark bugs with How can I improve Light Armor as an Archer? I play as an archer, which means sneaking and killing foes off at long range. Problem is, once a creature gets too close to me, I am in a world of troubles. (A random dragon encounter is fair game if I can snipe it off, but a random bear encounter is the thing I fear mostly. Three strikes of such a vicious beast and I drop dead.)  At short range, I use a one-hand sword with shield, but I do not want to put much perks into those skills, as I want to be a sneaky archer first.  Which leaves Light Armor. But to get certain perks I need some skill points, e.g., 30 points are required for the "Custom Fit"- and 40 for "Agile Defender 2/5"-perk. Yet I have no clue how to accumulate those points.  Many enemies won't even see me, so I seldom will be hit. Getting hits means getting skills point. Letting some enemies come close to me and let me hit me on purpose sometimes helps, but since I cannot stand much damage I mostly die erasing any hard earned process.  So is there a teacher for Light Armor like there is for other skills? And if not, how should I go on to improve the Light Armor skill? What is the precise definition of a rigid shape? Drupal is fast at develop, but the performance is so poor.  It is hard to reach 50 request per second.  And there are so many SQL queries in a simple web page.  If you test the request time of a form submit in Drupal.org it will always take seconds to finish.  How do you improve the speed of your web site? When is it okay to post two answers to one question?