Null pointer Exception when using split
What is a NullPointerException, and how do I fix it?
Walking up/down a level road/street Is walking up/down the road/street applicable if the street is not sloped?  I think I heard something about "with/against the numbering of houses" but I'm not sure if it's correct.  Also, if that were correct, why is walking down the street  than walking up the street? From all the hard drives I have bought, they never seem to be as large as the advertised size; from 320 GB down to 290 GB, from 500 GB down to 450 GB, etc. Is there a technical reason for this? Why is the mean function in Gaussian Process uninteresting? Do I need to explicitly call the base virtual destructor? Can I create script tag by jQuery? Passing multiple commands to gnome-terminal from a script My bash-script is not run in a terminal, but opens a terminal at runtime to ask for user input (sudo password). I would like to tell the user in this terminal what the script is trying to do. First, here is my script:  #!/bin/bash #This should install: Qt Linguist, lrelease  #for Qt Linguist dpkg-query -l qt4-dev-tools if echo $? == 0; then  check1=1 fi  #for lrelease dpkg-query -l qt4-default if echo $? == 0; then  check2=1 fi  echo $check1 echo $check2  if [ $check1 = 1 ] &amp;&amp; [ $check2 = 1 ];then  gnome-terminal -x sudo apt-get install qt4-dev-tools qt4-default fi $SHELL   This opens a terminal with this:  [sudo] password for "username":    But I would like to have:  qt4-dev-tools and qt4-default are missing. Now trying to install. [sudo] password for "username":    How do I get this when starting the terminal with gnome-terminal -x? What is the best practice re: API Version of your Apex Classes? I'm in the process of pushing some updates to some code I originally wrote 12-18 months ago, and the API Version is between 27.0 and 29.0  I know this is to protect the integrity of the test classes you've built (in case they have changed some things) but is there a best practice around either leaving these alone or trying to keep them up-to-date (maybe just once a year instead of at each release)? ROC vs Precision-recall curves on imbalanced dataset I just finished reading  discussion. They argue that PR AUC is better than ROC AUC on imbalanced dataset.   For example, we have 10 samples in test dataset. 9 samples are positive and 1 is negative. We have a terrible model which predicts everything positive. Thus, we will have a metric that TP = 9, FP = 1, TN = 0, FN = 0.  Then, Precision = 0.9, Recall = 1.0. The precision and recall are both very high, but we have a poor classifier.  On the other hand, TPR = TP/(TP+FN) = 1.0, FPR = FP/(FP+TN) = 1.0. Because the FPR is very high, we can identify that this is not a good classifier.  Clearly, ROC is better than PR on imbalanced datasets. Can somebody explain why PR is better? I am struggling with this question from Halmos's text, please ignore the imperative language.  "Suppose that $L, M$  and $N$ are subspaces of a vector space. Show that the equation    $$L \cap (M + N) = (L \cap M) + (L \cap N)$$   is not necessarily true.  Since each of these subspaces has origin in them, clearly there intersections could not be empty. I wasn't able to formulate an example where this result did n't hold. Any help would be highly appreciated. Why did Voldemort hide two Horcruxes in Hogwarts? I know that the emergency services can be called FREE in the UK by dialing 999 and in the US by dialing 911.   What I don't know is the number to call in other countries and if there is a cost involved. This is something I think most people should find out before travelling but many don't (including me). Hopefully this will help me and other people. Format string dynamically Why does C# disallow readonly local variables? Use Yaml for MongoMapper Config I'm really interested in quantum theory and would like to learn all that I can about it. I've followed a few tutorials and read a few books but none satisfied me completely. I'm looking for introductions for beginners which do not depend heavily on linear algebra or calculus, or which provide a soft introduction for the requisite mathematics as they go along.  What are good introductory guides to QM along these lines? Is it possible to include the tag-wiki associations in the Data Explorer? To do this would require two additional columns in the postTags table that associate a tag wiki excerpt and a tag wiki to their tag.  The tag wiki data is already available in the posts table. But there is no way to associate this data with its tags. The SEDE schema lacks the required columns to link the tag excerpt and the tag wiki to the tags table.  Additionally, the postTypes table only lists three posts types. It makes no mention of tag-wiki and tag excerpt posts. Perhaps the postypes table can be updated to reflect the additional post types? Multiple I2C devices with the same address I have multiple devices with the same address, and only one I2C bus. If I don't want to/can't use an address multiplexer, will the following arrangement work? (sorry for the messy schematic)          &ndash; Schematic created using   SW1 and SW2 are microcontroller I/O, and are pulled low when we don't want to talk to the corresponding IC, and set to high impedance when we do want to talk to that IC. Can anyone see any problems with this, apart from with clock stretching? Assuming you choose diodes with a small voltage drop, like a schottky.  Edit:   Also assuming that the VIH and VIL all worked out with the diode drop and the VOH VOL.   The diodes could also go on the data lines instead, not sure if there would be any benefit/difference (maybe some I2C devices do something special when the clock goes low even if it's not their address? It's probably safer to not clock at all i.e. have the diodes on the clock lines. Version error when uploading Change Set I’m trying to deploy custom objects, custom fields, page layouts, compact layouts, Lightning pages and Global value set (global picklist) , when uploading changeset it is giving me API version error as out production platform version 46.0 and SB version is 47.0 , I’m not sure how to bring the version down to 46.0 (There are no Apex triggers/classes in the changeset). Any help would be really appreciated. Is it safe to change the lens on my new DSLR? I recently bought myself a shiny new DSLR camera. Before I can use it, I had to do something kind of terrifying: mount the lens.  Now of course, half the advantage of SLR cameras is that the lenses are interchangeable. But sitting there holding an extremely expensive brand new camera and staring into its bare innards, I'm just terrified that if I make one wrong move, a hair or a piece of dust could fall in there, and then the camera will be irreparably damaged and I'll never be able to use it again.  This might sound like a stupid question, but&hellip; is it actually &ldquo;safe&rdquo; to change the lens on the camera? Is this likely to destroy it?  (Obviously it goes without saying that you should limit the time spent with no lens attached to the minimum number of seconds possible. But even if you have lightning fingers, the camera will still be lenseless for some number of seconds. And it's not like I'm standing in a class 100 cleanroom here! Besides, you don't want to be too rough with the delicate lens mounting either&hellip;) Separate Models vs Flags in the same model I have customer data from 2 brands. The data structure are the same, but I expected the customer behaviour to be different in different brand.  So I could train 2 models, 1 for each brand, or I could train one model on both brands, but flag which brand the customers belongs to within the data.  So my question is, would training on both brands with flags be too much more work for the Machine Learning (I'm using neural network), and therefore be harder to achieve good accuracy than to have dedicated models for each brand?