Testing rotation/orientation changes and cannot find what is causing this error
What is a NullPointerException, and how do I fix it?
I was looking for some shell commands, and I took a look in "users" command.  I was hoping to get only 1 name, but I got 2:  nori@nori-hidamari:~$ users nori nori   And when I run the command "who"  nori@nori-hidamari:~$ who nori     :0           2015-04-09 09:31 (:0) nori     pts/0        2015-04-09 09:48 (:0)   Is this behaviour normal? Or it's bad?  Thank you guys for helping me. Forecast total for a year given monthly time series I have a monthly time series (for 2009-2012 non-stationary, with seasonality). I can use ARIMA (or ETS) to obtain point and interval forecasts for each month of 2013, but I am interested in forecasting the total for the whole year, including prediction intervals. Is there an easy way in R to obtain interval forecasts for the total for 2013? How to calculate relatedness in haplodiploid organisms (mainly full sisters and full brothers)? I have tried to calculate the relatedness for haplodiploid organisms, but cannot understand the calculations behind full sister and full brother.  (taken from  I have managed to solve the other cases. Since female will have ZZ:  female will share 1/2 of her genes with daughter female will share 1/2 of her genes with son female will share 1/2 of her genes with mother female will share 1/2 of her genes with father  Since male will have only Z:  male will share 1 (100%) of his genes with his daughter male won't share anything with his son (unfertilized eggs leads to male in haplodiploidy system) male will share 1(100%) of his genes with his mother male won't share anything with his father (unfertilized eggs leads to male in haplodiploidy system)  Even though I figured out how others work, I wasn't able to calculate r for fullsister fullbrother? How can it be 3/4,1/4,1/2,1/2? write some AMPscript to skip a record if its empty I have a data extension with a CustomerId(PK) that has multiple Productid's as Productid1, ProductId2, ProductId3...ProductId10.   Some of the Productid's are empty for some Customers and I'm trying to write some AMPscript if the productIdx is empty to show the next one.  I'm trying to display 6 products in an email and at the moment when I preview the email, if from the first six Products one doesn't have a value(is empty) I get the error "The subscriber preview failed to generate. Review the details, correct all issues, and try again. Product1 not found"  I want to skip the product that is NULL and go to the next one available.  %%[ SET @customerId = [customerId]  SET @customer_rows = LookupRows("PRL","customerId",@customerId) IF Rowcount(@customer_rows) &gt; 0 THEN SET @customer_row = ROW(@customer_rows, 1)  SET @product_count = 0  SET @productId1 = FIELD(@customer_row, "productId1")  IF NOT EMPTY(@productId1) THEN SET @product_rows = LookupOrderedRows("PI_UK", 1,"Normal_SalePrice Desc", "ProductCode", @productId1)  IF RowCount(@product_rows) &gt; 0 THEN  SET @product_count = ADD(@product_count,1) ELSE  SET @product_count = ADD(@product_count,0) ENDIF ELSE SET @product_count = ADD(@product_count,0) ENDIF    SET @productId2 = FIELD(@customer_row, "productId2") IF NOT EMPTY(@productId2) THEN SET @product_rows = LookupOrderedRows("PI_UK", 1,"Normal_SalePrice Desc", "ProductCode", @productId2) IF RowCount(@product_rows) &gt; 0 THEN SET @product_count = ADD(@product_count,1) ELSE SET @product_count = ADD(@product_count,0) ENDIF ELSE SET @product_count = ADD(@product_count,0) ENDIF  SET @productId3 = FIELD(@customer_row, "productId3") IF NOT EMPTY(@productId3) THEN SET @product_rows = LookupOrderedRows("PI_UK", 1,"Normal_SalePrice Desc", "ProductCode", @productId3) IF RowCount(@product_rows) &gt; 0 THEN SET @product_count = ADD(@product_count,1) ELSE SET @product_count = ADD(@product_count,0) ENDIF ELSE SET @product_count = ADD(@product_count,0) ENDIF  and so on till ProducId10...   I have uploaded a photo with the PRL Data extension How to make a circular array using offset object as center? Difference between wouldn't and didn't What is the difference between would not and did not?  For example:     I called my girlfriend but she wouldn't stop.   I called my girlfriend but she didn't stop. How to diagnose slow booting or logon in Windows? When I start my PC, it boots into Windows (Windows 7 32-bit) quite happily, I login and the main Windows screen appears. At that point, however, the system is extremely unresponsive for up to 5 minutes - if I click on Firefox to start it, nothing appears to happen for a long time, etc, etc. The mouse and Windows UI is responsive, but programs take forever to start, webpages seem to hang (or at least load extremely slowly) and so on.  I imagine that the issue is with one or more programs that run on startup, but I don't know quite how to identify which one it might be. The event log shows nothing of any obvious interest. I can't see any high CPU activity in task manager or Process Explorer, and I can't hear any high disk activity.  I'd rather understand what's happening and then work out how to address it, than have to go for a blind "switch things off and see what helps" approach, but maybe that's being optimistic :-)  I suspect disk bottlenecks or network, but I don't know how I could set something up to diagnose this (and in particular, given that I can't get programs to start in a timely manner, I'd prefer something that automatically starts and logs data for later analysis than something like Process Explorer, which always leaves me worrying that by the time it started the problem had gone away :-)  I guess my ideal would be 2 things:   Something that gave me an overall "what are the current key bottlenecks in this system" summary (ideally, which could be set to run in the background and collect data for later analysis). Some means of starting a program (say, Firefox) and have it record what was going on in terms of waits and delays in the system.   Unfortunately, I've never really found anything like either of these.  I'm not a professional systems admin - my background is database admin - so if there are "obvious" tools to look at or try, then I'd be grateful to know of them (particularly if the information they give is easy for an amateur to analyze) :-) I'm writing a sports management simulation game. Like most sport management games, it makes heavy use of statistics. I would like to use real players, teams and league names.  i) Am I running the risk of getting into legal battles if I should use the real names? ii) Also what about team colours and emblems etc?    Update Much thanks for all the input! Why does everyone's wand still work for them? I need to use an alias in the WHERE clause, but It keeps telling me that its an unknown column. Is there any way to get around this issue? I need to select records that have a rating higher than x. Rating is calculated as the following alias:  sum(reviews.rev_rating)/count(reviews.rev_id) as avg_rating Dual boot windows 8 and Ubuntu with Windows 8 Boot manager I have two partitions on my hard-didk , I have installed ubuntu on my 1st partition and windows 8 later on another partition.Now i can only boot into windows 8 because it doesn't recognize Ubuntu.  How would i dual boot my PC without using grub . I would like using Windows 8 boot manager as its pretty neat.  This is what i have tried :  I tried using easyBCD but it doesn't work.It causes the boot manager to switch to windows 7 Boot Manager .  EasyBCD creates a C:/NST/AutoNeoGrub0.mbr file .  As EasyBCD was causing the boot manager to switch i created a manual entry to the BCD store uisng windows bcdedit command and point it to the C:/NST/AutoNeoGrub0.mbr file created by EasyBCD. This gave me the Windows 8 Boot-Manager with Ubuntu Entry,but grub is unable to find the root partition.  Is there any other work around or solution for this ?  Any help would be appreciated.  Note: The windows 8 boot Manager is sky blue color interactive menu with mouse and other options and windows 7 boot manager is the normal black and white one where you can only use your keyboard  I don't want to install grub because it would prevent my windows 8 from updating as its a genuine MSDN version and various other reasons is_active_sidebar() Always Returns False How to achieve this 3D "Card" effect Odds made simple Is there any noun in English which changes the first letter in the plural? Plenty of nouns change the second letter to become plural (man->men, goose->geese) but does anything change its first letter.  I've hunted high and low over the internet, and spent ages browsing the questions at  but I can't find anything. Statistics interview questions In other words, are $\emptyset$ and $\mathbb{R}$ the only open and closed sets in $\mathbb{R}$? Why/Why not?  I tried by assuming a set is equal to its interior points and contains its limit points.  A bounded set will not do since stuff like $[1,4]$ and $\{5\}$ will not work, though that is not really proof. Help please?  Anyway, it must then be unbounded.  If $a$ is a real number then $(a,\infty)$, $(-\infty,a)$, $[a,\infty)$ and $(-\infty,a]$ don't seem to cut it so it must be $\mathbb{R}$. What is the definition of a symmetric distribution? What's the definition of a symmetric distribution? Someone told me that a random variable $X$ came from a symmetric distribution if and only if $X$ and $-X$ has the same distribution. But I think this definition is partly true. Because I can present a counterexample $X\sim N(\mu,\sigma^{2})$ and $\mu\neq0$.  Obviously, it has a symmetric distribution, but $X$ and $-X$ have different distribution! Am I right? Do you guys ever think about this question? What's the exact definition of symmetric distribution? I am trying to write a condition into a SQL WHERE clause that forces the column comparison to a variable to be compared in lowercase. However the addExpression function isn't accomplishing this (since that is putting the expression in the field selection, not the where clause.  Here is what I have tried:  $category = 'mobile wifi'; $query = db_select('taxonomy_term_data', 'ttd')     -&gt;fields('ttd', array('tid')); $query-&gt;innerJoin('taxonomy_vocabulary', 'tv', 'ttd.vid = tv.vid'); $query-&gt;addExpression("LOWER(ttd.name) = $category"); $result = $query-&gt;condition('machine_name', 'images_cat', '=')     -&gt;execute()     -&gt;fetchAssoc();   And this:  $category = 'mobile wifi'; $query = db_select('taxonomy_term_data', 'ttd')     -&gt;fields('ttd', array('tid')); $query-&gt;innerJoin('taxonomy_vocabulary', 'tv', 'ttd.vid = tv.vid'); $result = $query-&gt;condition('machine_name', 'images_cat', '=')     -&gt;condition('LOWER(ttd.name)', $category, '=')     -&gt;execute()     -&gt;fetchAssoc();   The second one becomes invalid and the first one causes the problem I mentioned above. Any thoughts or suggestions?  Thanks, Patrick I have created a simple model here   When rendering it the end of it is cut off   How can I get the camera to render a longer distance?