Android Java NullPointerException while albumlist.add() initiates. and list is also Initialised
What is a NullPointerException, and how do I fix it?
How do I identify which CPU a MacBook uses? Uncaught ReferenceError: $ is not defined? Setting the pivot point of an object I have a sword that currently rotates around a pivot point thats off of the actual object. Im new to blender and im not sure how i would go about changing it so that the sword rotates around the handle. Any help would be appreciated! Java and manually executing finalize Determine all $f: \mathbb{R} \rightarrow \mathbb{R}$ such that, for all $x, y \in \mathbb{R}$, $$f((x + 1) f(y)) = y (f(x) + 1).$$    Source: Vuong Lam Huy, on a Facebook group. I know that this sounds like Strange Days, which I haven't seen, but from the Wikipedia description I don't think that's it.  I saw this back in the early-to-mid-90's on TV, pretty sure it was a premium channel. It follows a research group who develops a way to record experiences. Not thoughts, but at least the sights, sounds, smells, touch, etc. They record it onto this reel-to-reel tape, it looked striated and golden in color. The protagonist is the head of the research team.  I don't remember a great deal of the plot, but there were conspiracies surrounding the invention. The lab clown decides to give it a whirl by putting the bike-helmet-sized apparatus on his head and going out to have a little fun, in the classic wine, women, and song fashion. Once he returns, an older member of the team finds the tape and finds a section where the clown is having sex. Later on, the protagonist, who is the lead researcher, finds the older member shut up in his house seemingly for days and nearly comatose. The older researcher had the playback device over his head and is non-responsive. Worried, the protagonist removes the helmet and puts it on himself, only to find that the older researcher had snipped a few seconds of tape and had them running on a non-stop loop; the moment of orgasm for the clownish researcher. The older researcher eventually comes to and awkwardly apologizes.  I think there were also experiments in recording the sensorum of a lab monkey, and that played into the plot. I remember the plot seemed fairly thin and dull for what seemed to be a pretty neat idea. I don't desperately feel the need to watch the movie, but I'm mildly curious if my impressions would differ 20 years later now. I want to reinstall Ubuntu, but I also want all information and settings to disappear. So everything looks like the first time I installed it. Is it possible to do so via Terminal? Or what are the steps I should follow? sudo find / -name "*" | xargs grep -sn --color=auto "-j"   Above command returns below:  grep: invalid option -- 'j' Usage: grep [OPTION]... PATTERN [FILE]... Try `grep --help' for more information. ...   How do I search for string -j? Title of a book telling about people teleported to a hostile planet while in deep meditation I read it sometime in the 90's but it seemed at least 15 years old at that time. The title might be containing something with 'wolves' or 'wilderness'.  Alert - Spoilers below      The book tells of some (I think) earth cult that dictates the practice of meditation. This cult is somewhat of a scam as When reaching the top level of meditation the meditator is either teleported or his consciousness abducted (I can't remember..) to be used as a calculation machine by the abductors.   Any references would be greatly appreciated. When do the differences between APS-C and full frame sensors matter, and why? How to stop Mathematica 12.1 from chopping off the axes arrows? Why do you cast downvotes on answers? This is a question which started off with a , then turned into an , and now it's a question in its own right (as suggested by Jeff). I'm not sure where it could go from here :)  It's obvious that different people cast downvotes for different reasons. (Upvotes are less controversial, generally.) Here are some possible reasons:   Answer is wrong Answer is misleading (may be technically accurate, but will lead to readers making mistakes) Answer doesn't match the question (e.g. a C# answer to a question about Java) Answer doesn't really address the question, e.g. suggesting a completely different solution, even if the question specifies that there are good reasons why the current approach has to be followed Answer is okay, but not as good as another one which currently has fewer votes Answer appears to be plagiarised from existing answers. Answer is by someone I don't like. Answer is abusive (profanity, spam etc). No reason, I just felt like it. I'm a , and prefer down to up. Have you considered down? Ideological grounds: answer suggests a technology I don't like, or expresses a negative opinion of a technology I do like   Personally I go with 1, 2 and 8 - although I'll add comments suggesting changes in various other situations.  Have I missed anything? What do you do, and why? What are the net benefits (to you, the world in general, and the answerer) from your approach? How do I mount a partition with UFS filesystem (FreeNAS) in Ubuntu 11.10?  I'm a total Ubuntu newbie and just switched from FreeNAS.  There should be ll the info I need I guess, but if anyone would help me get going i'll by glad =) How can I split a beamer bibliography across two slides? This is the PATH variable without sudo:  $ echo 'echo $PATH' | sh  /opt/local/ruby/bin:/usr/bin:/bin   This is the PATH variable with sudo:  $ echo 'echo $PATH' | sudo sh /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin   As far as I can tell, sudo is supposed to leave PATH untouched. What's going on? How do I change this? (This is on Ubuntu 8.04).  UPDATE: as far as I can see, none of the scripts started as root change PATH in any way.  From man sudo:      To prevent command spoofing, sudo   checks ``.'' and ``'' (both denoting   current directory) last when searching   for a command in the user's PATH (if   one or both are in the PATH). Note,   however, that the actual PATH   environment variable is not modified   and is passed unchanged to the program   that sudo executes. Does $E = mc^2$ apply to photons? Why does Jack let Walt go? In Breaking Bad S5 E14, Jack not only lets Walt go, but also leaves a barrel of money to him after killing Hank. I don't understand why he would do this. Jack says that, with 7 barrels of money, he doesn't need to cook meth any more, so there is no reason to keep Walt (the witness of the killing) alive, let alone to give him so much money. What's the rationale behind this? Or it's just mercy or respect? A different approach in distributing $8$ distinct balls into $6$ distinct boxes Find the number of ways in distributing $8$ distinct balls into $6$ distinct boxes such that there is at least $1$ ball in each box.  We are well acquainted with the traditional Inclusion-Exclusion principle in solving this and it will come up as $191520$ ways.  I tried in this way:  When we distribute $8$ balls into $6$ boxes we have two possible cases  Case $1.$ There are exactly $2$ boxes with $2$ balls each  Case $2.$ There is exactly $1$ Box with $3$ balls in it.  For Case $1$, the distribution is done by choosing $2$ boxes from $6$ boxes and $2$ balls from $8$ balls and those two balls can be arranged in $2!$ ways. But I require another two balls from remaining $6$ balls to be placed in each of these two boxes which can be done in $\binom{6}{2} \times 2!$ ways. Finally remaining $4$ balls can be distributed in remaining $4$ boxes in $4!$ ways. So total number of ways for Case $1.$ is  $$\binom{6}{2} \times \binom{8}{2} \times 2! \times \binom{6}{2} \times 2! \times 4!=604800$$  For Case $2$, the number of ways is  $$\binom{6}{1} \times \binom{8}{3} \times 5!=40320$$  I am pretty sure the value obtained for Case $2.$ is correct. but I could not find where I went wrong in Case $1.$ What may happen after a stack of spells resolves? Within the same phase, once a stack of spells has resolved in its entirety, is priority once again given to a player so that more spells may be cast?  For example:  I attack with a creature. Opponent opts not to block. Now, I want to buff (e.g. +3/+3) my creature multiple times, but I'm afraid of my opponent responding with a burn (e.g. Deal 3 damage) spell at the top of the stack. Can I buff once, ask if opponent wants to respond, then allow the stack to resolve. Then, in the same phase, cast more buff? When adjusting the volume in Windows 8.1, a box appears at the top left corner of the screen. This box sticks around for ~13 seconds before it fades away. If you attempt to dismiss it by click on it, it switches to the music app.  How do you disable or dismiss this annoying box? At the very least, can the time visible be adjusted? More times than not, it's in the way.