Users should be warned before self-deleting questions, and bans should consider reasons for deletion

I was recently question banned and now have been unbanned. I'm guessing that the reason for the ban is that I deleted two of my questions myself. At the time, I was a newbie — I still am one now — and did not know the proper way to ask questions. As Nicol Bolas , users get banned because        The person is rather immature. They don't really know any better and aren't interested in being corrected by others. This typically afflicts the young, though admittedly there are some surprisingly immature netcitizens out there.   The person is ignorant. They don't know enough about what they're talking about to be able to ask actual questions from the community. Them getting question-banned generally requires repeated attempts to engage the community in their ignorance, so some degree of immaturity or pig-headedness is often a factor.   The person is simply a buffoon.   The person isn't a native English speaker.      In my case, I am just a student of computer science, and I am also from a non-English-speaking country. I should at least be notified that deletion of my own questions can lead to a question ban.  I deleted my questions because I thought they would not come in handy to others. Jeff Atwood  that this should lead to bans because there are users who     ask, then delete and ask again so their question would go to the top of the pile and get answered more rapidly [and] remove 'evidence' of asking many low quality questions.   As you can see, neither of these was a reason I deleted my questions.  Another thing that I would like to mention, that he also mentioned in the same answer, is that     Self-deletes already don't matter, provided they are self-deleted after at least 30 days.   There's some irony here. If I do not delete my questions immediately, they get enough negative votes for the system to ban my account!  So the only option left is to edit the question. But I've found that people love to cast down-votes, and sometimes it looks irresponsible. Other than a few good users, they don't even explain why they down-voted!  And like Brad Larson ,     downvoters are not currently notified as to changes in the questions they have voted on.   Here's what happened to . After I posted the question, it immediately got seven or eight down-votes. Nobody responded when I asked why it was getting down-voted. I think that the system should ask down-voters to explain their votes and provide a warning to users attempting to delete their own questions.  Also, people who down-vote a question should be notified if the question is edited, because if they take on the responsibility of marking a question unhelpful, they should carry the responsibility to up-vote it again if it becomes eligible.  EDIT: Another irony is that moderators suggested giving valuable answers, saying that when they get up-voted, question bans can be lifted. I think the people who ask questions here mostly do not know answers; that is why they ask. How can I, being a student, answer like a professional? I'm afraid, because answers can also get down-votes!


I'm not good at flask and a naturally django developer I was forced to because it is already developed..  May question is how to use delete_many using flask-cache  cache.delete_many(["sample_4", "sample_5"])   This returns an error:  TypeError: cannot concatenate 'str' and 'list' objects   I'm aware that this is the right way, but what I want is a list of keys as a parameter to be deleted  cache.delete_many("sample_3", "sample_2")   I


Why does my hard drive LED light blink every second?

The light blinks faintly about once a second.   It is slowly driving me insane.  How do I find out which program is causing this, so I can disable it?  Acer 5274 laptop/core i3 Windows 7 Home Premium Hitachi HTS545050B9A300 hard drive


Transit visa requirement for Indian citizen with US permanent residence travelling from Delhi-Frankfurt-London-Chicago

My wife is Indian citizen with us permanent residence. She would be travelling from Delhi-Frankfurt_London-Chicago with small layovers at London and Frankfurt. As Germany is Schengen and London is non-Schengen, would she still need transit/visitor visa? I know for Indian citizens with US residency, transit visa is not required if there is a single layover in Europe. Also visa is required if there is more tahn one Schengen lay over. What about this one Schengen and one non-Schengen layover?   If I need a transit/visitor visa, do I need for Germany or UK or both?


Supersymmetry: spin of the superpartners

I'm currently working on my master thesis, and I need to know a bit of supersymmetry. I have been looking the theory and I have a basic knowledge about it.  I have a problem with understanding the spin of the superpartners. When the multiplets are build, we have the operators which rise and lower the spin of the state by 1/2. Therefore the superpartners will have a spin which differs by 1/2 respect to the usual particle. But, why the squarks have spin 0 instead of 1? Quarks have spin 1/2, thus I understand that the superpartner should have either spin 0 or 1. But why 0 and not 1? This question applies of course to other particles, such as the photino(why not 3/2?), slepton(why not 1?), etc.  Finally, we know that the gauge fields (graviton, photon, etc) are the connections for forces. Do the superpartners of the gauge fields play a role in the forces as well? I know that the gravitino can't, since there are not interacting theories of massless particles with spin greater than 2. What about the other gauge fields?


Expected number of turns or rolls to end "death roll" game

In the game World of Warcraft, I came across this game called "death rolling". (See similar post here ). The game has $2$ players. The first player types /roll $N_0$ which generates a random integer $N_1$  in the interval $[1,N_0]$. The second player similarly generates a random integer $N_2$ in the interval $[1,N_1]$. This process continues iteratively alternating between Player 1 and Player 2 until one of the players rolls $1$, and this player is deemed the loser of the game. What is the expected number of rolls $m$ in this game in terms of $N_0$? EDIT: I think this question is actually a duplicate with  . The answer provided there makes pretty good sense, but I don't quite follow the final step. Can anyone help me understand their justification for the final step?


How do I install `bcmwl-kernel-source` with dpkg

Apparently, Canonical rolled out a HWE kernel and forget to upgrade bcmwl-kernel-source in the repos. This has caused my wifi adapter to go missing from my computer.  recommends the following:  Install bcmwl-kernel-source from eoan repos. You can find it e.g. here.  It will compile with the 5.8 kernel.  My implementation of these instructions looks like this: sudo apt-get purge bcmwl-kernel-source sudo apt autoremove sudo dpkg -i bcmwl-kernel-source_6.30.223.271+bdcom-0ubuntu4_amd64.deb  But it doesn't work and I get an error: ERROR: Cannot create report: [Errno 17] File exists:  '/var/crash/bcmwl-kernel-source.0.crash' Error! Bad return status for module build on kernel:  5.8.0-34-generic (x86_64) ... Consult /var/lib/dkms/bcmwl/6.30.223.271+bdcom/build/make.log for more information.  I imagine I'm not installing bcmwl-kernel-source_6.30.223.271+bdcom-0ubuntu4_amd64.deb in the correct manner. How do I do it right?


How does wordpress distinguish a plugin's main php file from other php files?

If my plugin has multiple php files in its plugin folder, how does WordPress know which is the main php file ?


I've seen this question before and I am sure it will be fine but I want assurance before I do it.  I am looking at running an IRC server with 128MB of ram and 500GB of BW.  The server will usually handle at least 15 people throughout the whole day but there will be times where there can be at least 50 people in it maybe even more. I might also have a few extra channels on there so probably like at least 5 channels and the same people on the one channel will be in the other channels.  Also I am trying to decide on the software to use. I am looking at using NGIRCD but I am not sure does anyone else have any recommendations?     I want to say thank you in advanced for anyone that is helping me. :)


Existence of a real $2 \times 2$ matrix M such that $M^2 = \begin{pmatrix} -1 & 0 \\ 0 & -1-\epsilon \end{pmatrix}$

A real $2 \times 2$ matrix $M$ such that   $$  M^2  = \begin{pmatrix}  -1 & 0 & \\   0 & -1-\epsilon  \end{pmatrix} $$   exists         for every $\epsilon > 0$,   for at least one $\epsilon > 0$,   for no $\epsilon > 0$,   none of the above.      I have no idea on how to do this question. Hints?  Thanks


How to hide computer name and user name in terminal command prompt

How can I hide username and computer in terminal command prompt?   In Terminal it says  Last login: Mon Jan 13 00:00:14 on ttys000 Whatever:~ UserName$    Is it possible to show just the current folder and $ sign?


This is very strange issue, i have CentOS7 running on HP server and everything was working till date until i did "yum install kernel" after reboot it drop me in grub> shell that means it won't able to read or find grub.conf file.   in grub> i found grub.conf has still old files there is no new entries of new kernel   I did this, and found there is no new kernel entries but if i boot with old kernel then i can see latest grub.conf (with new kernel)  grub>cat /grub2/grub.conf   Question: where grub2 getting that old file from? why it's not able to find new kernel ?


Distribution of the ratio of two i.i.d standard normals

I am reading an article in which the author states that given two i.i.d random variables $X,Y\sim\mathcal{N}(0,1)$, we have $\mathbb{P}(\frac{X}{Y}\le t)=\mathbb{P}(\frac{X}{|Y|}\le t)$ since the random varaibles $\frac{X}{Y}$ and $\frac{X}{|Y|}$ are identically distributed by the symmetry of the standard normal distribution.  But I don't really understand why the random variables $\frac{X}{Y}$ and $\frac{X}{|Y|}$ are identically distributed. Can you provide a reason for why these two random variables are identically distributed?


Prove the set of which sin(nx) converges has Lebesgue measure zero (from Baby Rudin Chapter 11)

I am trying to work through Rudin. This is a question from chapter 11:     Suppose that $\{n_k\}$ is an increasing sequence of positive integers and $E$ is the set of all $x$ in $(-\pi,\pi)$ at which $\sin(n_kx)$ converges. Prove that $E$ has Lebesgue measure zero. Hint: For every subset $A$ of $E$, $\int_A \sin (n_kx) dx$ tends to zero, and $2\int_{A} \sin^2 (n_k x)dx$ tends to the measure of $A$.   So, if I can use the hint, I'm pretty sure I can get the question. The thing is, I have no idea how to prove the hint.   Using the hint, here's how I think you do the question:  Define $f$ on $E$ as  \begin{align*}f(x)= \lim_{k\rightarrow \infty} \sin(n_kx) \end{align*} Notice that $\sin(n_kx)\leq 1$, and $1\in L$ on $A\subset E$ for every measurable $A$ (since $E$ has finite measure), so Theorem $11.32$ in Rudin (the Lebesgue dominated convergence theorem) says \begin{align*} \int_A f(x) dx = \int_A \lim_{k\rightarrow \infty} \sin(n_kx) =  \lim_{k\rightarrow \infty} \int_A \sin(n_kx) = 0 \end{align*} (by the first hint). But this was true for all $A\subseteq E$, so by one of the questions on the last assignment, $f(x)=0$ almost everywhere on $E$ and so $f^2(x)=0$ almost everywhere on $E$. Using Theorem $11.32$ again, we get \begin{align*} \mu(A) = \lim_{k \rightarrow \infty} \int_A 2\sin^2(n_kx) = 2\int_A \lim_{k\rightarrow \infty}  \sin^2(n_kx)= 2 \int_A f^2(x)=0 \end{align*} Therefore $\mu(E)=0$.   Does anybody know how to prove the hint? Thanks!


How do I purge Pantheon desktop?/Why does this window appear?

This browser window showing    appears after I installed then uninstalled the Pantheon environment:  Originally this occurred after (and possibly before) ppa-purging the PPA only when not connected to the internet - a window without a title that the window manager would ignore would appear, then dissapear. The grep process in the background was me searching the root of the system for clues to the problem -  I found that some settings in gconf had been left which were causing a additional issue with the elementary theme set as default, which I then apt-get auotremoved)   After apt-get autoremoving the elementary packages it opens properly in a web browser  It seems to appear randomly (in a random web browser - I have Firefox, Chromium and Chrome installed - this started happening before installing Chrome), and after unlocking the screen, connecting to the internet etc. I think the URL it is pointing to is  which then redirects to    I installed it as shown , and then removed the PPAs using ppa-purge, and then used apt-get autoremove on any remaining bits.  I know this a third-party PPA, but I don't think these issues should occur after removing it. It also causes issues with the Unity desktop as shown . This feels uncomfortably like the things you get with adware/freeware/malware on windows..  Using Ubuntu 14.04 64bit    EDIT: By looking at htop I have found that the process is started as root the run as the active user (gamer) using su:           I have not a clue what point this has apart to encourage the rapid removal of everything relevant to elementaryOS...


SQL - How to select a user based on wether or not that user exists in a different table?

I've been having some trouble with an SQL statement I'm trying to create and I figured that someone here would probably be able to help me out.  I've got two tables: Matches and Users. The Matches table consists of User_id and Partner_id that represents a user and their respective match (partner). Each time a user clicks a button, a new match will be found and a row will be created in the Matches table.  Now, when a user clicks the button to find a match, I need to - randomly - find a user in the Users table that is not the user himself (obviously) and does not already have a relation to the current user in the Matches table. - This is where I get stuck.  How can I pick a user based on the criteria that they do not already have a relation to the currently logged in user, through the Matches table?  All answers are much appreciated. Thank you.  Edit: Having read both  and  (as well as others)  only had me more confused afterwards. - I simply didn't quite understand the answers that were given well enough to convert them to what would have been useful in my case.


How can I find out the size of a file I opened with an application written in C ?  I would like to know the size, because I want to put the content of the loaded file into a string, which I allocate using malloc(). Just writing malloc(10000*sizeof(char)); is IMHO a bad idea.


JavaScript RegExp match with flag both 's' and 'g'

I'm trying to match a regex in a text which contains line breaks and whitespaces on JavaScript. Here is my code:    $(document).ready(function(){   var text = $('.main').text();   var output = $('.output');     var regex = /\*\*\*.*?\*\*\*.*?\*\-\*\*.*?\*\*\*/g;   var matches = regex.exec(text);   var i = 0;      while (result = regex.exec(text)) {     console.log(result);   }    });

***{{1}}:Meaning***
   ***{{2}}:Yep***
   ***{{2}}:True***

   Lorem ipsum dolor sit amet

   *-**{{2}}:True***
   *-**{{2}}:Yep***
   *-**{{1}}:Meaning***

     aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
     But with the 'g' flag it doesn't return the matches. I can get the matches with 's' because of line breaks.   I'm trying to get the expression between ***{{1}}:Meaning*** and *-**{{1}}:Meaning***. Firstly I used match() function, but it return only first match which is between ***{{1}}:Meaning*** and *-**{{2}}:True***. Then searched for it and find the exec() function which iterates.  I don't know how can I get the appropriate match. Here is the .  EDIT  I'm editing, because it's hard and takes time to understrand the codes above.  My regex is:  /qqq.*?qqq.*?qwq.*?qqq/s   And text is:  qqqLOREMqqq     Lorem ipsum dolor sit amet epictetus     qqqANOTHERLOREMqqq         Something something something     qwqANOTHERLOREMqqq     consectetur epilis qwqLOREMqqq Etiam ut felis molestie, tempor leo sit amet, pellentesque lorem. Sed consequat ut dui et mollis. Nulla sagittis vel felis id viverra.    I want to get the text between qqqLOREMqqq and qwqLOREMqqq, but it takes qqqLOREMqqq and qwqANOTHERLOREMqqq.


It has been several months since I upgraded my Ubuntu version. How can I find the date that I upgraded?  It has been suggested to look in the directory /var/log/dist-upgrade but this directory is empty on my system.


I'm searching for book out of which this question have taken.Help me to find out.

This question has been asked in UPSC exam and I have seen many books but I have not got this question anywhere. Please help me to find out.


Structure containing element which array contains same structures

typedef struct Sym_item{                         char       *name;                                                symbolType       type;                                       char            *data;                                               bool             fce;                                                    TList           *args;                                           bool             init;                         tHTable         *ptr_loctable;  // .. this is conflicting                         char            *class_name;                                         bool             isstatic;                                           struct Sym_item *nextptr; }iSymbol;   typedef struct Hash_table{                         iSymbol         *ptr; }Hash_item;   typedef Hash_item tHTable[Hash_table_size]; // .............. this is conflicting   I am using this structure iSymbol which contains a tHTable which is defined lately, but I need it that contains also the array of the symbols as this structure.   This says compiler:    error: unknown type name ‘tHTable’<br>   tHTable *ptr_loctable;


Suppose $f$ is a function defined on $\mathbb{R}^{2}$ as follows:  $$ f(x,y) = \frac{x^{3}-y^{3}}{x^{2}+y^{2}} \text{ if } (x,y) \neq (0,0)$$  and $0$ if $(x,y) = (0,0)$.  I am asked to prove that the function is not differentiable at $(0,0)$.  I calculated the partial derivatives and they are $1$ and $-1$ respectively, in the $x$ and $y$ directions. I am unable to proceed from here.  Could any shed some light?  EDIT:  Based on the comments below, this is what I did:  We must show that  $$ \frac{\frac{x^{3} - y^{3}}{x^{2} + y^{2}} -x + y}{\sqrt{x^{2}+y^{2}}}$$  does not tend to zero as $(x,y) \to (0,0)$. Now, if we take $y = \alpha x$, we get that this expression is equal to some non-zero constant involving $\alpha$ and hence does not tend to zero.


Why am I still getting spam email and what more can I do to stop it?

I've set up SpamAssassin on my server  I've configured my dmarc, DKIM and spf records in my domain's DNS which wasn't easy to figure out how to do correctly but for a while after I'd done this the spam stopped but now its back again.  Here's my dmarc, DKIM and SPF records all as TXT records on the DNS (I changed actual values so these don't reflect actual data on my domain).  dmarc:     v=DMARC1; p=quarantine; rua=mailto:email; ruf=mailto:email; aspf=r; adkim=r   DKIM:     v=DKIM1; k=skh; p=MIIBIkug876GKgut785ukutioogiyry47gmhMHFyrJKkmsOyyK+J   spf:     v=spf1 +a +mx +ip4:mail server ip -all   What more can I do to stop the spam?


How to execute like search in SQL Server which involves Square Brackets

select * from Answers where AnswerName like '%No [DETAILS REQUIRED]%'   The above-given query does not return any results while there is an entry in the column "AnswerName " with the exact text as "No [DETAILS REQUIRED]"


What is the word to describe an explanatory person?

What is the word to describe an explanatory person who likes to explain everything even though they were asked a question that could be answered simply with "Yes" or "No"?


I was asked to evaluate the following expression:  $\lim_{n \to \infty} \left({\frac{(n+1)(n+2)(n+3)...(3n)}{n{^{2n}}}}\right)^{1/n}$  My first step was to assume that the limit existed, and set that value to $y$.   $ y = \lim_{n \to \infty} \left({\frac{(n+1)(n+2)(n+3)...(3n)}{n{^{2n}}}}\right)^{1/n}$  And then, I took the natural logarithm of both sides of the equation. I obtained the expression:  $ \ln y = \lim_{n \to \infty} \frac{1}{n} \cdot \left(\ln(1+\frac{1}{n}) + \ln(1+\frac{2}{n}) + ... + \ln(1+\frac{2n}{n})\right) $  This simplified to:   $ \ln y = \lim_{n \to \infty} \frac{1}{n} \cdot \sum_{k = 1}^{\color{Red}{2n}} \ln(1+\frac{k}{n}) $  I realize that this is similar to the form of a Riemann sum, which can then be manipulated to give the expression in the form of a definite integral. However, the part bolded in red, which is $ 2n$, throws me off. I have only seen Riemann sums be evaluated when the upper limit is $ n - k $, where $k$ is a constant.  Therefore, how would I go about evaluating this expression?  Thank you for all help in advance.


How can multiple fermions combine to form a boson?

I understand that composite particles with integer spin form a boson. For example a helium nucleus is a boson because it has 2 protons and 2 neutrons.  If all of the components on their own are fermions, which mean they can not occupy the same space, how can combining them allow them to now occupy the same space?  I guess my question is: Is there an "intuitive" explanation for this behavior, or is the answer just the integer spin always equals boson?


How to prove that there exists a bijection between R and C

So how can I prove that there exists a bijection between R (real numbers) and C (complex numbers) I think that I should prove that there exists a bijection between RxR and C which is not too hard and then find a bijection between R  and RxR, but isn't there a simple solution to find a direct bijection between C and R? P.s: I'm in terminal highschool so I'm fairly ignorant about set theory.


Different render time in preview and final render

I'm rendering long animations and it's important to me to save time. In the preview, a frame is rendered in 30 seconds, but if I render the animation, the render time of one frame increases to 2 minutes. Why does this happen and how can I get the final render with time of the preview render?


Find the equation of the line perpenducular to the plane $x-y+z = 4$

In geometry i am having difficulties in understanding how to find the equations.. e.g given  $$x-y+z =4 $$which passes through the point $(2,1,5)$ when asked to find the equation of the line perpendicular to the plane.  Any help is appreciated.


A big man is assumed to be fat, until he takes shirt off. This happens on a remote planet

In a book, written in 90's or earlier, a group of people is sent to a remote planet. This was possibly a punishment for a crime. They were sleeping in the space ship, and they wake up after landing. I don't remember what happened to the ship after that. I think the planet was quite primitive, possibly they were the first people there. They had laser guns.  One of the characters is called fat by others, because he is a big man and wears a loose shirt. Then he fights with someone and takes his shirt off, and the others see he is very athletic.


How to include a hash of a source file in the final PDF file?

Suppose I've got a poem.tex source file.   Is there a way to include a hash of the source file as text in the final PDF? I usually use pdflatex to generate PDF files.  I am looking for something like the result of shasum poem.tex, looking like this:      c0c0fa9a776ea1891264c884e0e69dbde6142c4a,   being added somewhere to the body of the output file of the pdflatex poem.tex command.  Is there an easy way to do it?


Elections inbox item is empty in network profile global inbox

I got an inbox message about the elections on Super User yesterday, all good.  However, when checking now my global inbox on stackexchange.com network profile, it's empty:        The inbox item on the top bar is fine:        The empty item also got no link to the elections. Can this please be fixed?


Can I uninstall Caribou without messing up Gnome?

I just installed the Gnome Tweak Tool in order to change my icon theme to Faenza, but it seems to have installed some other program named Caribou, which I think is an onscreen keyboard program, with it. This is absolutely useless for me, and frankly, I hate the fact that it was installed silently and without my permission. When I go to uninstall it, it says that it's part of gnome-shell and requires the un-installation of that as well. What do I do?


Why mysqli_escape_string() adds backslash in database ? (PHP 7.4)

I'm trying to put strings containing single and double quotes in my database but when I use mysqli_escape_string() on it before, it adds backslashes. If I am not mistaken, normally once in the database there should no longer be backslashes ?  $conn = new mysqli(DB_HOST, DB_USER, DB_PASS, DB_NAME); if($conn->connect_error) die('Database error : '.$conn->connect_error);  $strValue = mysqli_escape_string($conn,"a'b");  $sql = "INSERT INTO test (strValue) VALUES (?)"; $stmt = $conn->prepare($sql); $stmt->bind_param('s', $strValue); $stmt->execute();  // a'b becomes a\'b in database


select rows based on specific column values

How can I select all rows in a text file based on different values of a particular column? The desired values are not in a specific interval. A short example of what I expect is given below. My data stored in a text file input.txt 1.0     21 2.5     23 4.0     21 6.5     45 9.0     30 16.5    46 2.0     78 1.0     20 1.6     19 2.5     25 4.0     40 5.2     16 6.5     25 9.0     47 10.0    14 16.5    60 18.5    65 20.0    57 . .etc  I want to select rows based on 1st column having values 2.5,6.5,16.5,..., etc So the output will look like this. I don't want to sort output numerically by 1st column. 2.5     23 6.5     45 16.5    46 2.5     25 6.5     25 16.5    60  I am looking for solutions in awk or sed or paste Thanks in advance.


Hello everyone. I have been seeing tiny critters like this one in bed and I started to worryif they are bed bugs. Although they seem different in appearance as well as the fact that they don't seem to bite, I wanted to be sure. Sorry if the pic is a bit hazy, they are only about 1mm long. I also did have a bit of a humidity issue since the roof was leaky.  Does anyone know how to get rid of them. I tried different insecticides around the bed and on wooden part of the bed but nothing works. Could they have settled in my new mattress? :(


How do I add applications to the Unity launcher?


Why is Gauss's law used to compute electric field only for infinitely large objects in my physics textbook?

Why is Gauss's law used to calculate electric field only for "infinite" cases such as an infinite sheet, infinite wire, etc.? Why does the equation of calculating electric field near an "infinitely" non conductor charged sheet which is equal to $\sigma/2 \epsilon$ not work for finite sheet (with uniformly charge distribution)?Likewise why we do not use Gauss's law to compute electric field near an "finitely" long wire instead of an  infinite wire?(Above description only for the view of my 12th class textbook,l don't know about any higher study book which may compute the electric field near a finite object using Gauss's law and advanced Calculus).[1]:


Java - 32 Byte Array to 64 Length String to 32 Byte Array again

Using SHA-256 I created a 32 length byte array that I have no problem converting to a String using           StringBuilder sb = new StringBuilder();         for(int i = 0; i < byteArray.length; i++){             sb.append(String.format("%02X", byteArray[i]));         }         String str = sb.toString().toLowerCase();   However, I am having trouble converting the resulting 64 character String back into a 32 byte array. How should I proceed?


send message from server to specific clients

for (Iterator<Integer> iter = clients.keySet().iterator(); iter.hasNext(); ) {     int key = iter.next();     String addresses="ZeeshanNisar";      java.net.Socket client = clients.get(key);     System.out.print("ok3");     InetAddress zee = client.getInetAddress();     String s = zee.getHostName();    // String s=client.getInetAddress().toString();     System.out.print(s);     if (zee.getHostName()=="ZeeshanNisar")     {         System.out.print("ok4");         dos =new DataOutputStream(client.getOutputStream());         dos.writeUTF("Some message");      }   This piece of code is to send the message for a specific client connected to the Server let suppose the client name is zeeshannisar  but in this my code isn't go to the if statement as there is no mistake as far as i think kindly help me.Sorry for my bad English.


Should ArcGIS Desktop users upgrade to Windows 10?

The question  was never answered, and Windows 10 is being released .  Somewhat worryingly, the most recent ArcGIS Desktop  page doesn't list Windows 10.  Will ArcGIS Desktop 10.x continue to work on Windows 10? Should Windows users upgrade their operating systems from versions 7/8 to version 10?


Unix find command, what are the {} and \; for?

With this set of commands, what are the {} and \; characters for? find . -name '*.clj' -exec grep -r resources {} \;


creating objects from different classes with same reference

What is the difference between  A a1 = new A(); A a2 = new B();   where B extends A  and also what happens if i do the following  a1 = new B();   Thanks.


How to show that the limit $\lim_{(x,y)\to(0,0)}\frac{x^3+y^3}{x-y}$ does not exist?

First I tried evaluating the limit along different paths like $y=kx,\:kx^2,\:\sin(x),\:\tan(x)$, etc. and a lot more functions that pass through the origin. However, every single try gives me a value $0$ for the limit.  Then I tried to do it by converting to polar co-ordinates by substituting $x=r\cos(\theta)$ and $y=r\sin(\theta)$. But this too gives me a value $0$ for the limit.  The question is to show it doesn't exist, but I keep getting the same value from every path and method. Am I missing something, or does the limit actually exist?  Thanks for the help!


viewWillAppear, viewDidAppear not called with pushViewController

NewViewController_iPhone *newViewController = [[NewViewController_iPhone alloc] initWithNibName:@"NewViewController_iPhone" bundle:nil];   [self.navigationController pushViewController:newViewController animated:YES];   viewWillAppear: and viewDidAppear: are not called in NewViewController_iPhone. Why not?


Skip headmark on section definition page

Is it possible to skip the headmark only on the section definition page?  %KLASSE DOCUMENT \documentclass[a4paper, 12pt, bibliography=totocnumbered, twoside]{scrartcl}  %TWOSIDE HANDLING \raggedbottom %TWOSIDE VSPACES ISSUE \usepackage[automark, headsepline]{scrlayer-scrpage} %HEADER & FOOTER STYLE \pagestyle{scrheadings} \clearscrheadfoot %CLEAR HEADER & FOOTER \chead{\headmark} %CENTER CHAPTER IN HEADER \automark[section]{section} %LINKE SEITE / RECHTE SEITE \cfoot{\pagemark} %CENTER PAGE IN FOOTER \usepackage{blindtext} \usepackage{lipsum}  \begin{document}  %--------------------------------------------------------------- INHALTSVERZEICHNIS \tableofcontents \newpage \section{First Section} \lipsum[1] \subsection{First Subsection} \lipsum[2] \newpage \section{Second Section} \lipsum[3] \lipsum[3] \lipsum[3] \subsection{Second Subsection} \lipsum[4] \section{Third Section} \lipsum[1] \subsection{Third Subsection} \lipsum[2] \lipsum[2] \lipsum[2] \newpage \section{Fourth Section} \lipsum[3] \subsection{Fourth Subsection} \lipsum[4] \lipsum[1] \lipsum[2] \lipsum[3] \lipsum[4] \end{document}


Intel Wifi is not working and is unclaimed on hp au114tx

I have recently installed ubuntu. And I am facing an issue of Wifi that is not working since installation. On running:  sudo lshw -c network   I get the following message on wireless network:  *-network UNCLAIMED    description: Network controller    product: Intel Corporation    vendor: Intel Corporation    physical id: 0    bus info: pci@0000:05:00.0    version: 10    width: 64 bits    clock: 33MHz    capabilities: pm msi pciexpress cap_list    configuration: latency=0    resources: memory:b4000000-b4001fff   and on running   iwconfig   I get:  lo        no wireless extensions.  enp0s20f0u2  no wireless extensions.  eno1      no wireless extensions.   and lspci -nnk | grep A2 Network gives:  05:00.0 Network controller [0280]: Intel Corporation Device [8086:24fb] (rev 10) DeviceName: Intel Dual BandWireless-AC 3168 802.11 ac 1x1 WiFi + BT 4.0  Combo Adapter     Subsystem: Intel Corporation Device [8086:2110]   I am new to Ubuntu please help me.


Why was this moderator's tag synonym vote not binding?

This is a strange sight to see (click image to enlarge):    Why was this moderator's vote not binding? The tag synonym page shows it as a normal vote:        Is this a bug? It was suggested just now, so it couldn't have been before the user was a mod.


Quantum physics tells us that even a perfect vacuum be populated by "virtual" pairs of subatomic particles.  I have read that these particles are allowed to violate the Conservation of Matter and Energy because they do so for such a short amount of time before annihilation that they don't count. I don't buy it. As we.have established that "Virtual Particles" are "real"  (by virtue of the fact that well known processes don't occur with out them) .  The question still begs. As no conversion is 100 percent efficient ( a photon is still left in our reality even after annihilation) To preserve the laws of physics, the energy to create them must come from somewhere.  *  .Given this, I have two questions:   Have " virtual" pairs ever been observed and/or isolated?  Where do "virtual" particles come from? (As they would have to come from somewhere to satisfy conservation; regardless of how short a time they spend in our universe.)   post is edited and reflects (to clarify what I am asking) information discussed below where Question 1 is answered. Question 2 remains.


how to construct Dispose method in child class?

I  have a child class like this :  SyncTelemetryChannel : ITelemetryChannel  ITelemetryChannel : IDisposeable   What should i put in the SyncTelemetryChannel Dispose method ? Currently i have this:  public void Dispose() {}   Thanks,Peter


Best location for theme translation files

I usually store language files in /languages folder that is located in theme folder and it's also recommended location by WordPress as well. However, it still doesn't look like the best solution because files will be overwritten after theme updates.  load_theme_textdomain function allows to specify a different location and I've been thinking to put languages folder inside of /uploads folder in order to prevent overwriting after theme updates. That folder will be created right after theme activation and language files will be copied there.  My question is, do you think this is a good solution or there is a better way that I'm missing?  I appreciate your insight about this matter.


If gravity arises from the curvature of spacetime, why is there a need for gravitons?

If gravity arises from the curvature of space time, why is there a need for gravitons? If someone could explain this to me I would be very thankful. I dont understand why.


history | grep : how to visualize more lines around the founded commands?

I use the command history | grep <key_word> to look for all the commands in the history with that specific key_word. That's great but sometimes not enough: I would love to see the N commands before and the M commands after each result.  For example with history | grep build, I want to see the N=10 commands before and the M=5 commands after each result. Targeting the following ideal output:     1209  git status  1210  git add .  1211  git commit -m 'bla bla bla'  1212  git push http://xxx.xxx.xx.x:xxxxx/  1213  git tag   1214  source tools/settings.sh   1215  cd demos/xxxxxxx/  1216  xxxxxxx   1217  cd demos/wait_zcu102/  1218  ls  1219  cd build.sw/      <------------------------------------- <key_word> is here  1220  ls  1221  atom .  1222  source tools/settings.sh   1223  cd demos/xxxxxxxxx/  1224  xxxxx    Is there a way to do this?


How soon can I re-enter the USA after staying there for 60/90 days ? when does the program re-set?

I am travelling to the USA from england next month, after about 60 days travelling i am going to cuba for about a week, and then I'm hoping to go to cancun and from there to Hawaii, would i be able to spend another full 90 days in hawaii before having to leave, as I've previously left the US, or would it just be 30 days, to make up 90 from the time i already spent in the states? any advice would be very much appreciated!


As many of you probably know, a normal light emitting diode, while very handy as a cheap and ubiquitous indicator, can double as a power generator. The mechanism is the same that is exploited in photovoltaic cells, aka solar panels.  When an LED is exposed to light it produces a current flowing from anode to cathode. This current can be used to directly power a device, or to charge a capacitor so that a periodic load can use the stored charge all at once, when needed.  To give you a better idea of the values involved, the short circuit current ranges from tens of nanoamps up to a few microamps, while the open circuit voltage is somewhat less than the standard forward voltage of the LED.  I am currently in the process of choosing a range of LEDs to test them and see if they are suitable for my application, but I am kinda stuck, mainly because using a led to power something is convenient only money wise, while a photovoltaic cell or even a photodiode is a better choice under many other aspects. No manufacturer that I have seen list the photogeneration current in the datasheet, and this seems fair enough to me, but since I want to avoid testing thousand of LEDs I would like to buy a selected range of them, so I need to better understand the underlying mechanism that leads to photogeneration.  Let's just write down the diode equation: $$ I_D = I_s(e^{\frac{V_D}{V_t} - 1})-I_G $$         – Schematic created using   Where \$I_s=J_s\cdot A\$ is technology dependent, and die area dependent. \$I_G\$ is the generation current, and is the parameter I am interested in maximizing.  Here are some things I have thought of:  LED color since the LED can absorb a lightbeam only if the energy it carries is greater than the gap, choosing LED with low energy (i.e. low frequency) gap is a must, to be able to absorb a wider portion of the spectrum. This lead me to choose red or infrared LEDs.  max current max forward current is proportional to die area, and power dissipation capabilities. Since photogenerated current is proportional to area, choosing an high current LED seem wise to me.  forward voltage this is somewhat related to the open circuit voltage and is not currently an issue for me, and I believe it has no relationship with photogenerated current.  reverse current I am not sure this has much to do with photogenerated current, but the bigger the reverse current, the bigger the area, which is a good thing.  breakdown voltage I do not think this has a relationship with photogeneration.  My question finally is: Do you agree with my analysis, and do you think I am missing something? or better What are the parameters to look at when searching for a photovoltaic panel in the LED section of a supplier?


Is it possible to log a program's network activity in Windows 7?

Does anyone know of a program or way to log all network activity to a specific program on one's computer (program and/or service)?  I know I can see this "live" in Resource Monitor, but I'm wondering if anyone knows of a program or way to track and log all network activity to/from a specific process and/or service.  I'm finding a lot of "live"-type monitors, like Windows Resource Monitor, but nothing that can log.


Difference between $ and # in Linux environment

What is the difference between $ and # signs in Linux environment? As I started working on Linux and I found that both are different. I mean they do have different set of privileges...?   [root@localhost ~]# and [tom@localhost ~]$.


jQuery on keyup/change with dynamically-generated content

I'm using datatables to generate content on my page, and I'd like to use one of the IDs generated in the table to be tied to a jQuery on statement, but it's not working, and I'm not sure why.  me_table = $('#me_table').DataTable({           ...code...                                'columnDefs'      : [                           {                             targets   : [11,12,13,14,15,16,17,18,19],                                                      "render": function ( data, type, row, meta ) {                                                                 if (data == null ) {                                     this_column = meta.col;                                                                          return '<input id="col_'+ this_column +'" class="add_me_entry"></input>';                                     }                                 } else {                                   return data;                                 }                                                            },                           },                                                        }                 });   I stripped non-meaningful code out of this snippet, so it won't run, but the point is that when the page loads, a plugin called DataTables creates a table that has a cell in it whose html is <input id="col_11">.  Further down in my code, I try to use this in my $(document).ready function, but neither of these lines of code ever triggers.  $(document).ready(function(){      $('#col_11').on('keyup paste',test_function); //test_function doesn't get called      $('#col_11,#col_12').on("change keyup paste",function() {        console.log("hi"); //no console.log     });    });   My thought process was that by the time $(document).ready fires, Datatables has already created the element <input id="col_11">, but maybe this isn't the case?  I've tried using on and bind - nothing on either one. I've also tried putting the whole thing into $(document).ready, and just putting these two statements AFTER the creation of the table, but still nothing.  What am I doing wrong here?  The DataTables part works fine - I get the input box, I check the console and it has the correct id - I just can't get anything to trigger off it...  My only other thought would be to use some inline code like <input id="col_11" onclick="do_something()"> but I'm not sure there is an "on" event for keyup/paste/change like there is with jQuery.


How to Strikethrough Subtitle in Beamer?

I wish to write a subtitle in a beamer presentation crossed over with a line (strike-through).  I tried the followings:  \documentclass[11pt]{beamer} \usetheme{Rochester} \usepackage[utf8]{inputenc} \usepackage[english]{babel} \usepackage[normalem]{ulem} \usepackage{soul} \title{Blabla} \subtitle{\sout{blablabla}} \begin{document} \begin{frame} \titlepage \end{frame} \end{document}   Also I tried  \subtitle{\st{blablabla}}   instead of \sout and the packages ulem and soul separately.  All of them give lots of errors, the first one of which is Argument of \UL@word has an extra }. \begin{document}


Combinations with different repetitions allowed

Having a set of n letters {A, B, C, ...} how it's possible to calculate the number of different combinations of k elements , if the number of repetitions allowed for each letter is limited to a number, different for each letter?  E.g.   Letters => {A, B, C, D} k = 10 A can be repeated up to 2 times, B can be repeated up to 4 times, C can be repeated up to 5 times, D can be repeated 3 times?   Thanks in advance


Finding $\lim\limits_{x \to \infty} (\sqrt{9x^2+x} - 3x)$

I am trying to find the limit and I know that I have to do something to get a denominator but I can't make it work. There is a specific thing I have to do to this problem to make it work but I am not sure what that is. I know what I am doing is not wrong mathematically, it just doesn't help me get the answer.  $$\lim_{x \to \infty} (\sqrt{9x^2+x} - 3x)$$  Not sure where to go with this, multiply it all by the conjugate? I tried that but I know that won't help because I have to rationalize the denominator. I know I can't multiply by anything really until I get rid of the sqrt and I don't know how.


Need advice. Is it safe to recover 4TB of data from a 4.5TB drive using the same drive to put the recovered files in? (Recuva)

I've accidentally formatted my 5TB storage drive (I got so angry with myself that punched the wall and broke my right hand over it) but luckily all the important files are still in "excellent" recoverable condition. Problem is I don't have any other place big enough to salvage the files over to. My immediate option at this point is to use the formatted drive I'm recovering from.    Does recovering from the same drive essentially overwrite the other data I'm trying to recover? Should I just wait and buy another 5TB drive to put the recovered files in?


Why was the  refused by Modern Physics? If you please explain me, I just wanted to understand it more.


No longer able to install apps or updates

After trying to install WINE from the WINE HQ .deb, I can no longer get updates or install apps without getting the message:  E: Malformed entry 55 in list file /etc/apt/sources.list (Component) E: The list of sources could not be read.  This is Kubuntu 18.04 64 bit.  I don't know what the 55 refers to, as there are fewer than 55 sources in the list. I've noticed the file sources.list.save is slightly longer than the file sources.list, but don't know whether switching these files will damage anything. I don't see where I can attach the working file (assumption on my part) in case it's needed for review. Please let me know what other information I can provide to help solve this problem.  Thanks, I didn't see where I could edit the question. Here goes...  # deb cdrom:[Kubuntu 18.04.1 LTS _Bionic Beaver_ - Release amd64 (20180725)]/ bionic main multiverse restricted universe  # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to # newer versions of the distribution. deb http://us.archive.ubuntu.com/ubuntu/ bionic main restricted # deb-src http://us.archive.ubuntu.com/ubuntu/ bionic main restricted  ## Major bug fix updates produced after the final release of the ## distribution. deb http://us.archive.ubuntu.com/ubuntu/ bionic-updates main restricted # deb-src http://us.archive.ubuntu.com/ubuntu/ bionic-updates main restricted  ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu ## team. Also, please note that software in universe WILL NOT receive any ## review or updates from the Ubuntu security team. deb http://us.archive.ubuntu.com/ubuntu/ bionic universe # deb-src http://us.archive.ubuntu.com/ubuntu/ bionic universe deb http://us.archive.ubuntu.com/ubuntu/ bionic-updates universe # deb-src http://us.archive.ubuntu.com/ubuntu/ bionic-updates universe  ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu  ## team, and may not be under a free licence. Please satisfy yourself as to  ## your rights to use the software. Also, please note that software in  ## multiverse WILL NOT receive any review or updates from the Ubuntu ## security team. deb http://us.archive.ubuntu.com/ubuntu/ bionic multiverse # deb-src http://us.archive.ubuntu.com/ubuntu/ bionic multiverse deb http://us.archive.ubuntu.com/ubuntu/ bionic-updates multiverse # deb-src http://us.archive.ubuntu.com/ubuntu/ bionic-updates multiverse  ## N.B. software from this repository may not have been tested as ## extensively as that contained in the main release, although it includes ## newer versions of some applications which may provide useful features. ## Also, please note that software in backports WILL NOT receive any review ## or updates from the Ubuntu security team. deb http://us.archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse # deb-src http://us.archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse  ## Uncomment the following two lines to add software from Canonical's ## 'partner' repository. ## This software is not part of Ubuntu, but is offered by Canonical and the ## respective vendors as a service to Ubuntu users. # deb http://archive.canonical.com/ubuntu bionic partner deb-src http://archive.canonical.com/ubuntu bionic partner  deb http://security.ubuntu.com/ubuntu bionic-security main restricted # deb-src http://security.ubuntu.com/ubuntu bionic-security main restricted deb http://security.ubuntu.com/ubuntu bionic-security universe # deb-src http://security.ubuntu.com/ubuntu bionic-security universe deb http://security.ubuntu.com/ubuntu bionic-security multiverse # deb-src http://security.ubuntu.com/ubuntu bionic-security multiverse deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main deb http://archive.canonical.com/ubuntu bionic multiverse deb-src http://archive.canonical.com/ubuntu bionic multiverse deb https://dl/winehq.org/winehq.org/wine-builds/ubuntu/bionic main # deb-src https://dl/winehq.org/winehq.org/wine-builds/ubuntu/bionic main # deb-src https://dl.winehq.org/wine-builds/ubuntu/ bionic main


I need help to correctly install Ubuntu in an Old Laptop

I am not sure if I did this correctly but downloaded Ubuntu, but not sure if it is the right one. I'm using a Dell Inspiron duo 1090 an old lap top that I believe is nine years old! It has been converted to Windows 10 BUT is super slow!!! I have used Ubuntu before at Amazon in Cape Town and it was great and quick and very user friendly!! Can somebody please, kindly tell me how can I install Ubuntu in this old computer? I bought from e-bay about a month ago. I though am not a PC whiz and haven't a clue what to do?


I hope you are all doing fine! I'm a 14 year old student from the UK, and have been really interested in theoretical physics, but before I reach that I need to build on more basic knowledge. So I set out to learn calculus and some linear algebra, mostly from Khan Academy and 3B1B's videos on the topic. However, I can't find much content for Classical Mechanics online. Are there any websites or maybe textbooks that you can recommend me, so that I can further my knowledge on this subject! P.S. The last time I asked my teacher if he could point me in the right direction, he just told me to keep my head down, but I know I am capable of learning complicated concepts, it is not beyond me :)


How can I prevent Windows from disabling Aero?

Every time I attend a Webex meeting, after only a few minutes in, Windows determines that my performance is too low and disables Aero. This is not an issue with Webex. It's an issue with Windows determining that I do not have enough resources.  I have plenty of resources: 8GB of RAM and my CPU usage never rises above 30%. I'm less concerned about how Windows determines whether I have enough resources and more concerned about how to stop Windows from doing that. If I determine that my machine doesn't have enough resources, I will disable Aero.  Is there a way to prevent Windows from disabling Aero based on available resources? I know that Aero gets disabled when an Aero-incompatible program runs, but that's not the issue in this case. I've checked Power Options, but none of those settings apply. Thanks.  Update  Joe Internet makes a good point about GPU resources. I have 512MB of dedicated video memory, which is well beyond the .


Why can't I enter a PEM Pass Phrase in the prompt?

I am trying to install an SSL certificate on my WAMP server.  W:\wamp\bin\apache\apache2.2.22\bin>echo %OPENSSL_CONF% w:\wamp\bin\apache\apache2.2.22\conf\openssl.cnf  W:\wamp\bin\apache\apache2.2.22\bin>openssl req -x509 -new -out my.root.ca.crt - keyout my.root.ca.key -days 3650 Loading 'screen' into random state - done Generating a 1024 bit RSA private key ....++++++ ........++++++ writing new private key to 'my.root.ca.key' Enter PEM pass phrase:   Enter PEM pass phrase is where I am stuck.  It won't let me type anything.  And also, am I supposed to come up with my own pass phrase and tell this program to use that, or am I supposed to have a pre-determined pass phrase set by... well... apache, openssl, wamp, etc.


I ran a logistic regression moderation analyses and I noticed that with the addition of the interaction term, one of the predictors flipped signs. The variable (X) was previously -.015 and became .006 when the interaction term was added. I suspected this might be an issue with multicollinearity but the VIF for each of the variables is below 1.5. I understand that suppressor effects can occur upon adding predictors.  However, can someone tell me whether they think the sign switching upon adding an interaction term is a problem? Would it make sense to correlate the variables in the interaction term?


Nine distinct positive integers are arranged in a circle such that the product of any two non-adjacent numbers in the circle is a multiple of n and the product of any two adjacent numbers in the circle is not a multiple of n, where n is a fixed positive integer. What is the smallest possible value for n.


Prove that: $\frac{ab}{a+b}+\frac{bc}{b+c}+\frac{ac}{a+c}\leq \frac{a+b+c}{2}$

Prove that: $$\frac{ab}{a+b}+\frac{bc}{b+c}+\frac{ac}{a+c}\leq \frac{a+b+c}{2} : (a, b, c) \in \mathbb{R}^+$$


How to save files and settings when using Try Ubuntu mode

I run Ubuntu from the USB drive, and select trial mode, because I do not want to install on the computer, just use it as a portable system on different computers that I have.  The problem I have, when I turn off the computer, all the settings I have selected and the applications I have installed are deleted, because they are saved in RAM rather than USB  I ask how can I do that they will be saved on the USB and will not be deleted  Would appreciate help,  Excuse me for using translation


Why is passing $(this) as a parameter not working

How come the following line:   pop = setInterval(function () { doSlide($(this)) }, settings.timeoutSet);    not sending the proper reference as the parameter.  I would like to set up the same functionality as the commented out section in the AutoSlide(theObj2) function but using the class that was sent as the selector of the function but it's not working. I keep getting [object][Object] as the console log.  How can I resolve the issue so the auto sliding function works correctly.


Build table in new command results in too long vertical lines

I am trying to build a table inside a LaTeX 3 command. A MWE:  \documentclass{article} \usepackage{xparse}  \ExplSyntaxOn \NewDocumentCommand{\createTable}{ m m }{     \begin{tabular}{|c*{#2}{|c}|}         \hline         \int_step_inline:nnnn {1} {1} {#1} {             ##1             \int_step_inline:nnnn {1} {1} {#2} {                 & x             }             \\\hline         }     \end{tabular} } \ExplSyntaxOff  \begin{document}      \createTable{5}{4}  \end{document}   This gives me following ouput in which the column lines of the first column are too long:    In order to solve this problem I read questions         Though I still did not understand the actual nature of the problem (or its given solutions), I was able to reproduce the solution from .  \documentclass{article} \usepackage{xparse}  \ExplSyntaxOn \DeclareDocumentCommand{\fillRow}{ m m }{     #1     \int_step_inline:nnnn {1} {1} {#2} {     & x     }     \\\hline }  \DeclareDocumentCommand{\BuildTable}{ m }{     \begin{tabular}{|c*{#1}{|c}|}     \hline }  \def\endBuildTable{     \end{tabular} } \ExplSyntaxOff  \begin{document}      \begin{BuildTable}{4}         \fillRow{1}{4}         \fillRow{2}{4}         \fillRow{3}{4}         \fillRow{4}{4}         \fillRow{5}{4}     \end{BuildTable}  \end{document}   This code outputs the desired result. But I don't like it because it needs 3 commands instead of 1 (minor issue). But most of all because of the verbose, redundant and inflexible syntax to generate the table. Therefore I decided to make an abstraction by putting the table-generating-commands in another command:  \documentclass{article} \usepackage{xparse}  \ExplSyntaxOn \DeclareDocumentCommand{\fillRow}{ m m }{     #1     \int_step_inline:nnnn {1} {1} {#2} {     & x     }     \\\hline }  \DeclareDocumentCommand{\BuildTable}{ m }{     \begin{tabular}{|c*{#1}{|c}|}     \hline }  \def\endBuildTable{     \end{tabular} }  \DeclareDocumentCommand{\putTogether}{ m m }{     \begin{BuildTable}{#2}         \int_step_inline:nnnn {1} {1} {#1} {             \fillRow{##1}{#2}         }     \end{BuildTable} } \ExplSyntaxOff  \begin{document}      \putTogether{5}{4}  \end{document}   But this brought me back to my original problem because the column lines of the first column are too long again.  Could anyone   explain to me what exactly is wrong with my original code; what the difference is between the second and the third code fragments; how to edit my (original) code in order to solve my problem?


From , page 209:     Dividends   Dividends are income paid by investments. Both bond funds   and stocks can  pay dividends. Bond fund dividends (the interest paid   by the individual  bonds in a fund) tend to be higher (as a percentage   of the amount you have  invested in a fund). When a dividend   distribution is made, you can receive  it as cash (which is good if   you need money to live on) or reinvest it into  more shares in the   fund. In either case, the share price of the fund drops to  offset the   payout. So if you’re hoping to strike it rich by buying into a bunch    of funds just before their dividends are paid, don’t bother. You’ll   just end up  paying more in income taxes.    It is talking about mutual funds.   I've never played with stocks.  However, I would like to know more about it.  Does the bold text imply the stock price will drop because of a company giving out a dividend?


Core java nested if statement condition not executed

I am new in core java and wrote a nested if statement code. I'm facing the problem when nested condition is satisfied and print statement "you will get 40% discount of fair" is not getting executed. import java.util.Scanner;  public class Ifstatement {     static int age ;     static String Gender;      public static void main(String[] args) {         Scanner obj = new Scanner (System.in);         System.out.print("Enter the age: ");         age = obj.nextInt();         System.out.print("Enter the Gender: ");         Gender= obj.next();         System.out.println("Gender is "+ Gender);         System.out.println("Age is "+ age);                  if (age<=14)          {             System.out.println(" you will get 30% discount of fair ");                          if(Gender== "F")              {                 System.out.println("you will get 40% discount of fair");             }                      }                  if (age>=14)          {             System.out.print("you will get 20% discount of fair");         }              } }


Do questions keep their stats on migration?

I'm wondering whether questions on SE keep up-vote and view stats when they migrate. Moreover, do these stats no longer count for the current site and attribute to the migration site?


Book about Shakespeare and Churchill as a robot

I am looking for the name of a book; the details are as follows:   It is set in London William Shakespeare and Winston Churchill are characters who turn out to be androids They are responsible for raising children to go out and repopulate the earth.   What is the name of this book?


Testing nonlinearity in logistic regression (or other forms of regression)

One of the assumption of logistic regression is the linearity in the logit. So once I got my model up and running I test for nonlinearity using Box-Tidwell test. One of my continuous predictors (X) has tested positive for nonlinearity. What am I suppose to do next?   As this is a violation of the assumptions shall I get rid of the predictor (X) or include the nonlinear transformation (X*X). Or transform the variable into a categorical? If you have a reference could you please point me to that too?


Article title without the definite article before the word best

I have learned that before phrases like the best, the latest, the smallest, etc, I have to use the definite article because the best is only one thing. Is this title of an article correct?      Shopping Guide for Best Women's Running Shoes   If I would write that, I would write for the Best Women's Running Shoes


Multiple scp commands in bash script, but entering password only once

I currently use a bash script in the following format to update local data with remote one:  usr=$1 scp -P 4444 -r $usr@some.other.machine.at:/some/folder/*Tools /home/localUser/someFolder/ scp -P 4444 -r $usr@some.other.machine.at:/some/folder/*.project /home/localUser/someFolder/   i.e., I want to copy each folder (its content and subfolders) that ends with Tools and to copy each file that ends with .project from /some/folder/ (okay, I would not need -r here) at the remote machine into my local folder /home/localUser/someFolder/.  (Not sure if this is important, I run this script with bash myScript.sh)  Currently, I have to enter the remote user's password two times, once per scp command. Is there a way so that the password has to be entered only one time?


Is it true that for every even natural number $k$ there exists some $n \in \mathbb{N}$ such that $g_n = p_{n+1} - p_n = k$?  I don't know how to approach the problem at all, and in fact I don't even know enough about prime gaps to even form a conjecture as to the answer. I feel like the answer is "yes", but only because that would be "nicer" than having some even integers never appear in sequence of prime gaps.  I hope it's not an unsolved problem!  Edit: My question is distinct from Polignac's Conjecture, since I ask if there is at least one prime gap, instead of infinitely many prime gaps, for every size.


What does it mean and what does 'ain't' mean here in particular? Also this kind of double negative surprised me, is it correct?


There is not any go to top link on any of the site of stack, specially on the questions page, as when user scroll down to the end of the page there must be a link that bring user to the top,


how to configure a default (or common) virtualhost for non-ssl domains when ssl domains exist?

I have several domains running on the same (physical) server under Apache 2.4 web server.  Some of these domains support secure connections (over the standard HTTPS protocol). For them I configured the relevant <VirtualHost *:443> directives that turn on the ssl engine, point to the certificate, and so forth. And everything works as expected for them.  But I found (and that's explained in the docs) that when no matching <VirtualHost *:443> can be found for a request, then a fallback logic kicks in that could (and in fact does) select another domain configuration.  What I'm getting is that if I try to connect through HTTPS to a domain that has no SSL configured, I get the certificate of another domain.  Having more than one hundred configured domains on that web server, is there a "catch all" configuration that lets me redirect all HTTPS connections to HTTP on the same domain for those domains that have no explicit <VirtualHost *:443> configuration?


In a neon tester, how does the body complete the circuit even when it's insulated from the ground by footwear and the bulb glows? I mean is current flowing to the neon bulb?


How can admin create a node on behalf of another user?

Is there any module that allow the administrator user to create content on behalf of another user? Is there any other way to do this?


How do I move Minecraft Java Edition's default directory to a second hard drive?

I have reinstalled the Java Launcher onto my SSD, I and moved the .minecraft file as well. However, the launcher rebuilds the .minecraft file on my HDD because that is the location of the default directory. How do I move the default directory to my SSD instead of my HDD. I have searched for this answer on google and other forms, but all I could find are ether out of date forms, moving bedrock edition or moving just the Java launcher. EDIT: The form "  " also does not move the directory, it simply uses a second .minecraft directory instead.


Let $f : \Bbb R \to \Bbb R$ be a function . What can be said about the set of points where $f$ is not differentiable?

Hope this isn't a duplicate.  Let $f : \Bbb R \to \Bbb R$ be a function. Let $D(f) = \{x \in \Bbb R : f$ is discontinuous at $x\} $ and $N(f) = \{x \in \Bbb R : f $ is not differentiable at $x \}$ .   It is easy to prove that $D(f)$ is an $F_{\sigma}$ set i.e. can be expressed as a (at most) Countable union of closed sets (possibly empty). Now considering $N(f)$ , since by definition, $D(f) \subseteq N(f) $ , it follows that $N(f)$ contains an at most Countable union of closed sets(possibly empty). In case we further assume that    But my question is what can be said about the structure of $N(f)$ when $f$ is considered in full generality i.e. all we are assuming is that  $f : \Bbb R \to \Bbb R$ is a function and no other added restriction is posed on $f$ .


Is there a synonym for “day” that can go with “at night”, “at dusk”, “at dawn”?

I need a word (ideally) or phrase that means "daytime" that can be used in a sentence "the event happened at dawn/dusk/night/day"  "The event happened at day", and "The event happened at daytime" don't seem to really sound right.  The key thing here is fitting into a sentence that has the word 'at' in it, because it is going into construction of a sentence on a web site that has to cover these possibilities.  A typical example might be "The battle occurred at night in the rain", or "The battle occurred at day in the mist".   The latter doesn't sound right.


If in the series $1-\frac{1}{2}+\frac{1}{3}-\frac{1}{4}\cdots$ the order of the terms be altered, so that the ratio of the number of positive terms to the number of negative terms in the first $n$ terms is ultimately $a^2$, show that the sum of the series will become $\log 2a$.  It is easy to show that when $a^2=1$, the sum is just the expansion of $\log(1+x)$ when $x=1$. However I don't know how to prove it in the general case.


Why do I get a null exception when I access row and column using the Apache POI

I am working on a class to read data from Excel files using the Apache POI. Specifically, I want to loop over entries in the first column until cells are emtpy. I just figured that the following code gives me a null exception:  while(sheet.getRow(i).getCell(0) != null) {       // Do something       i++; }   However, after changing the code just by removing the getCell(0) it works perfectly fine without the null exception:  while(sheet.getRow(i) != null) {       // Do something       i++; }   In either case I should get back null and then terminate the while loop. Why is the second example working without a null exception? I just don't see the reason.


I know this is a silly question, but I'm only asking this because I honestly can't seem to find a good definition of time that doesn't include another word that relies on the definition (or logical understanding rather) of time.  For example, in many dictionaries the definition of time is as follows:     Time is a measure in which events can be ordered from the past through the present into the future, and also the measure of durations of events and the intervals between them.   But the concept of 'past', 'present', and 'future' (mostly the first and last) rely heavily on time.   My best shot at a definition of time is this:     Time is the dimension on which the evolution of state of a system is allowed to occur.   Is this question senseless? Is the notion of time best left axiomatic? Do you know of a good/better definition of time? (The more concise the better)


How to show that $\lfloor n/1\rfloor+\lfloor n/2 \rfloor+....+\lfloor n/n\rfloor+\lfloor{\sqrt{n}}\rfloor$ is even?

Let $n$ is a natural number. Prove that $$\left\lfloor\frac{n}{1}\right\rfloor+\left\lfloor\frac{n}{2}\right\rfloor+....+\left\lfloor\frac{n}{n}\right\rfloor+\left\lfloor{\sqrt{n}}\right\rfloor$$   is even.   I used induction and the inequality $$x-1<\lfloor{x}\rfloor\le{x}$$ to prove it.  Is there any other, nicer way to do it?


A subset that is closed under multiplication but not addition?

I can't get my head around subspaces despite having studied on them quite a lot. Here goes:  The problem statement, all given variables and data  Give an example of a non-empty subset U of R^2 such that U is closed under scalar multiplication but is not a subspace of R^2.  Attempt at a solution  So a set such as [x1, x2] | x1 >= 0 is NOT closed under scalar multiplication but is closed under addition. I get this but I cannot find an answer in reverse.  A wild guess is x1 + x2 + 2 = 0. I could multiply it and 2x1 + 2x2 + 4 = 0 would still hold true. However, if I wish to perform an addition on it, I don't exactly understand what I add to what equation exactly.. it's all so bogged up. Help would be appreciated. :-)


Errors when trying to delete a key in the registry

I'm trying to delete a registry from the Local_Machine\Software in the registry. I made a key titled "DeleteMe" as a test to try it out, but I can't get it to work.  I've tried multiple options, and they all say that the "subkey" "subkeytree" and "value" do not exist, but they do exist! And I hope I'm using the right terminology here. To its HKEY_LOCAL_MACHINE\SOFTWARE\DeleteMe, I want it and all the sub keys/values deleted... (I hope the key is the right terminology. They look just like folders, but when right clicked on, they have the option "copy key name").  So far the best looking thing I've tried was this and I am running as an administrator on Windows 7 (but I want this to work regardless of the OS).  string keyName = @"Software\DeleteMe"; using (RegistryKey key = Registry.LocalMachine.OpenSubKey(keyName, true)) {     if (key == null)     {         MessageBox.Show("Not Found");     }     else     {         key.DeleteSubKeyTree("DeleteMe");     } }


help to prove the logical expression ¬¬A→A in HPC proof system

I'm trying to prove the expression ¬¬A→A. I can use 3 axioms:   A1: a→(b→a) A2: (a→(b→c))→((a→b)→(a→c)) A3: (¬b→¬a)→(a→b),   MP rule and deduction theorem.  What am I doing wrong?  ⊢ ¬¬A → A  ¬¬A ⊢A deduction th.  1.¬¬A  2.¬¬A→(¬A→¬¬A) [A1]  3.¬A→¬¬A [MP(1,2)]  4.(¬A→¬¬A)→(¬A→A) [A3]  5.¬A→A [MP(3,4)]


Do Windows 10 backward compatible with Windows 7 (API and drivers)?

MS announce free upgrade from Windows 7/8 to Windows 10 for non-corporate licences, from :  Get a free upgrade to Windows 10 starting July 29, 2015.   Is it safe to take this offer so any installed software and drivers would still work?  Is it possible to install and run without issues software that built for Windows XP/7/8 on Windows 10?  Is Windows 7 drivers compatible with Windows 10? I have out of life support hardware with drivers built for Windows 7...


Find the last two digits of the number $9^{9^9}$ .    [Hint: $9^9 \equiv 9 \pmod {10} $; hence, $9^{9^9}$ = $9^9+10k$ ;now use the fact that $9^9 \equiv 89 \pmod {100}$]


I want to remove certain element of breadcrumb on certain condition. I tried theme_preprocess_breadcrumb($variables). The condition and logic works fine here but doesn't reflect on viewing page. I tried this module_system_breadcrumb_alter(\Drupal\Core\Breadcrumb\Breadcrumb &$breadcrumb) – same issue. Code here doesn't reflect on viewing page, though printing variables in both methods gives me expected result but not on viewing page. I need help.  function theme_preprocess_breadcrumb($variables) { // Removing last element of breadcrumb if ( $variables['breadcrumb'] ) {   $currentUrl = $_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];  $key = 'find this';   $countElements = count($variables['breadcrumb']); if (strpos($currentUrl, $key) == true) {   unset($variables['links'][$countElements-1]);   unset($variables['breadcrumb'][$countElements-1]);   kint($variables['breadcrumb']);kint($variables);die;  } } return $variables; }


I've been riding with my very short seat post extended well past its maximum extension line for quite a while now. Looking at the seat post itself I don't see any signs of deformation or damage other than some very minor surface rust.   Could my bike frame have been damaged? Could the lever force have damaged the frame? I can post some pictures of the frame if needed. My bike is all aluminum.


How can I achieve 5V DC from 230V AC wirelessly?

I want to step down 230VAC so that I can have a large amount of current that I can transmit wirelessly through the transmitter coil to the receiver coil.    I want to transmit it across 5millimetres between a transmitter and receiver.    Radii of the transmitter and receiver can be at-least 4cm and 2cm respectively.    After transmitting it to the receiver coil, I'm going to rectify it so that I can have a certain amount of DC voltage.    After rectifying the amount received, I'm going to filter it. Then regulate it to 5V DC and feed it to the battery.  PROBLEM  I want 5V DC at the end of the circuit, but how can I accomplish that ?  What calculations and equipment specifications do I have to use so that I can figure this out?


What is a less offensive synonym for "hypocrite"?

Is there a word that describe a person who doesn't "practice what they preach"? Basically, is there a synonym for "hypocrite" that carries less pejorative connotations?   For example, let's say a friend of mine says he is a Christian. Yet he engages in behaviors considered sins by the Bible, making him a hypocrite. And I would like to tell him I think he is a hypocrite.   What would be a good word to use here, so my criticism seems constructive rather than offensive?     I tried using a , but the synonyms that came up were even worse (ie: they are more offensive than "hypocrite"). Related (but different) question: , which asks what to call someone who knows they are in the group of people they criticize.


Trace and Determinant of a linear map $T$ which is not necessarily diagonalizable

How can I prove that if a linear map $T \ \in \ \text{End}(V)$ with $\dim V < \infty $ has eigenvalues ${\lambda}_{1},{\lambda}_{2}, ..., {\lambda}_{n} $, then $\text{trace}(T)$ $=$  ${\lambda}_{1}+{\lambda}_{2} + ...+{\lambda}_{n} $ and $\det(T)={\lambda}_{1}{\lambda}_{2} ...{\lambda}_{n} $?   The problem that I have is that it says that $T$ is not necessarily diagonalizable. If it is diagonalizable, then it is easy to see that there is a matrix representation with the eigenvalues in the diagonal, so this would be easy to prove. But how can I prove this with a $T$ that is not diagonalizable?  Thank you.


How to print the name of missing files in a folder?


For sets $A,B$, $A \cap (B \setminus A) \subseteq \varnothing$

I need help with this proof:     Let $A$ and $B$ be sets. Prove that $A\cap (B\setminus A)\subseteq \varnothing$.   My problem: Since $B\setminus A$ = $B\cap A^{c}$, we can say that if $x \in B$ then $x\in B\cap A^{c}$and $x \in A^{c}$ as well. So $x\notin A$.  Where do I go from here?


what will happen ,If I pay my credit card on due date and use it on the same day?

I paid my credit card on due date. Then later I purchased something on the same day. I'm curious what will happen? Do I need to pay  that i purchased on the same day?


I often hear people say that general relativity predicted its own demise because of the singularities it predicts. If I'm not mistaken, this is also a problem in QFT. I wonder why singularities garner so much hate. To me, it seems like negative or complex numbers: we used to hate these things but now they are more generally accepted. Why can't it be that nature just has singularities? We might not get it, we might not like it, but it may be so.


How to determine if string contains specific substring within the first X characters

I want to check whether Value1 below contains "abc" within the first X characters. How would you check this with an if statement?  var Value1 = "ddabcgghh";  if (Value1.Contains("abc")) {     found = true; }   It could be within the first 3, 4 or 5 characters.


Show that a convex polygon is contained within the largest circle determined by three consecutive vertices

Given a convex $n$-gon. The circumcircle is constructed for every triple of consecutive vertices of the polygon. We get the $n$ circles. Select the circle with the largest radius. Prove that the circle contains the polygon.  My work so far: $n=3 -$ triangle - obviously. $n=4 -$ If $\angle B = \max \left\{A,B,C,D \right\}$ then $ABCD \in \omega_{ABC}$  $n\ge 5$. I need help here.


How does the Commando / Axton's Phalanx Shield work?

is a tier 3 skill in Axton / the Commando's Survival skill tree. It is described as:     Your Sabre Turret projects a Protective Shield. The Shield attempts to block enemy ranged attacks, but lets friendly ranged attacks pass through. Enemy movement and melee attacks are not affected.   I am curious if it works like the player character's shield.   Do shock element attacks deal more damage to it?  Do  for the other elements affect it too?  Does it also recharge?


using the classicthesis package , can't add the bibliography (reference)

i got \include{FrontBackMatter/Bibliography} in my main.tex file  and in the Bibliography.tex it got   \label{app:bibliography} % Reference the bibliography elsewhere with \autoref{app:bibliography}  \manualmark % Work-around to have small caps also here in the headline \markboth{\spacedlowsmallcaps{\bibname}}{\spacedlowsmallcaps{\bibname}} % Work-around to have small caps also %\phantomsection \refstepcounter{dummy}  \addtocontents{toc}{\protect\vspace{\beforebibskip}} % Place the bibliography slightly below the rest of the document content in the table of contents \addcontentsline{toc}{chapter}{\tocEntry{\bibname}}  \printbibliography   this but i can't add the reference to my main.pdf or it's being printed


How to install Mupen64plus on ubuntu 13.10?

Can't seem to find a way to run Mupen64plus on ubuntu 13.10. Kind of new to ubuntu, but i've had previous experience. i can find it in the store but it's not in my installed applications. Please help. appreciated!


Suppose that n > 1. Prove that n divides $ φ (2^n - 1) $ .

Suppose that n > 1. Prove that n divides $ φ(2^n - 1) $ .  Hint: Show that 2 has order n mod $ 2^n - 1 $


Confusion in Ramanujan's $1+2+3+...=\frac{-1}{12}$

It is famous by Ramanujan that $1+2+3+...=\frac{-1}{12}$. But what is the value of $1+1+1=....$?  I was thinking that $2=1+1$ and $3=1+1+1$ and so on...So does this mean that $1+1+1+...=\frac{-1}{12}$.  It means that when you have infinity you can do anything and everything. Please explain this


A special bijection between $\mathbb{R}\times \mathbb{R}$ and $\mathbb{R}$

Is there any bijection $\eta:\mathbb{R}\times \mathbb{R}\rightarrow \mathbb{R}$  with the property $\min\{x,y\}\leq \eta(x,y)\leq \max\{x,y\}$?


I use the classic thesis style from  to make my internship memoir. So I've the classic document section: part, chapter, section, subsection, ... I use the part chapter of it to make an introduction and so I use the same title for the Chapter. In the table of contents I've two entry that just follow themselves with the same name:  Title part 1 Title part  What I wanna do is delete the chapter entry but still continue to have a numerotation of it to be use in the document. Is it possible? EDIT: MWE: \documentclass{scrreprt}  \input{classicthesis-config} %it's on the latextemplates folder  \begin{document}  \tableofcontents \part{first part} \chapter{first part} % should be not present in toc but numbered \section{a section} \section{another one}  \part{second part} \chapter{second part} % should be not present in toc but numbered \section{foo} \seciont{foo foo}   \end{document}


Removing Object from a list during for loop

I am trying to remove an  object with a certain attribute from a list of Objects, I have red other questions about this problem but I guess I am missing something.   this method doesn't work, because I guess you can not remove elements from a list while iterating through it, so I created a Dog removeDog = null; variable, which is set to the right dog during the loop, and after it finished to iterate I can just do animals.remove(removeDog);  (I don't know if this is the best solution)  for (Dog dog : animals.getDogList()){   if (dog.getDogName().equals(dogName)){     animals.getDogList().remove(dog);   } }     This method instead works perfectly, in my eyes it should have the same problem of the previous one, but in this case Java let me remove one or more elements during iteration, but I don't understand the difference.  for (Dog dog : animals.getDogList()){   if (dog.getWeigh() > weight){     animals.getDogList().remove(dog);   } }


Here is a Wikipedia article about the circumference of an ellipse:   I don't know how Ramanujan developed the following approximation for the circumference of an ellipse:  $ \pi\left(3(a+b)-\sqrt{(3a+b)(a+3b)}\right) $  I don't know how to derive this approximation either: $\left(\text{where }h=\frac{(a-b)^2}{(a+b)^2}\right)$  $C\approx\pi\left(a+b\right)\left(1+\frac{3h}{10+\sqrt{4-3h}}\right)$  Can somebody explain how to derive the approximations for an ellipse's circumference? Also, can somebody prove that there is no closed/simple formula for the circumference of an ellipse?


Would cat *.txt concatenate files in alphabetical order?

Let's say that I have 3 files in a directory:  apple.txt:  apple   beehive.txt:  beehive   zebra.txt:  zebra   If I concatenate this files with:   cat *.txt > all_files.txt  I do get:  apple beehive zebra   (I tested it on 5 files too, and I get the same behavior),  But my is this behavior guaranteed?


I have found out that using the verb be in passive constructions such as:      I had my house be burned down    is incorrect, therefore it should be      I had my house burned down.    But is it possible instead of be to use get? E.g.      The wire is passed through the pliers in a specific way to avoid having it get bent.   The rope had its surface wear.   The rope had its surface get worn.   The rope had its surface worn.   The first two sound very odd to me, but just for clarification could you please point out the errors and which ones are correct? Or is using get, be it in -ing or the to infinitive, in any situation along with have incorrect?


how to put the array of pointers into a vector

Edit: I do not want to only copy the data of Array into a vector. Actually i need the vector to store the total Array as the element. The Problem is that when i put the name of array in the vector, it was wrong.  My question is different with the   struct SPoint {   float32_t    ftX;   float32_t    ftY; }; std::vector<SPoint*> vecSPoint; SPoint* pointArray[3]; // assume that there are already three pointers in this Array   I want to put this Array in the vector. But it does not work:  vecSPoint.pushback(pointArray);   What is the Problem and how can I solve it?


Why was Billy Crudup not credited in "The Watch"?

In , Billy Crudup plays a creepy neighbor. He has a lot of dialog, and several important/pivotal scenes in which he directly interacts with the main characters. Why was he not credited in the movie? ( in a special "uncredited" cast list.)


Short story collection with one story about a fictional drug

I am trying to located a sci-fi short story book that I read when I was a child. One of the stories was about an undercover agent (in the future I guess) who poses as a customer (for a most dangerous drug) to infiltrate the criminal network which distributes or produces this drug. After he is injected with the drug by the nurse or one of the drug people, police raid the building and capture the criminals. The agent has a happy life after that until his 80th birthday when he wakes up and find himself that he is still in bed where he got the drug (that is, whatever he saw until 80th birthday was a dream), the police raid and this time the criminals get away. Again so many years later he wakes up to find himself in the same place (the room where he got the drug). This keeps going on (his life is a continuous waking up from dreams) as the result of taking the drug ... there were other stories too like a chimp who has become as intelligent as a human thanks to a drug or treatment and since the effect of the drug was wearing off he is going back to being a stupid chimp again ... I read it in the 1980s so my guess is that the original book must be from 1960s or 1970s.   The first story has some similarity with A Scanner Darkly by Philip K. Dick but is different.  Any idea which book these stories might be from?


I have a large number of elements (triangles) that together make up a bigger object. Each triangle has a slightly different fill color and no edge color. A part of the surface is shown below:   The problem is that although zooming in to 6400% still doesn't show any disconnection or overlap (see below), the thin edge lines are still visible.   Does anybody know what is causing these lines and, for me more importantly, how I can get a smooth transition between the different triangular elements?  Since the images above are with transparency I tested without transparency as well. Without transparency the lines are still there, but now they are white.


Is use of schools' rooftops a common thing in Japanese culture or just a cliché?

In many manga and anime involving modern schools, there is a scene on or at least showing the rooftop of the building. It is a place students can freely go to, often depicted with having a bust-height railing along the edge and the typical 'small building' from which you leave the school building, often also having a ladder to get up (nonetheless being a popular 'hiding' or 'being alone' spot even without one).  I wanted to ask: is this one of many clichés about Japanese culture that appear throughout the whole media type, or are they a common thing in Japanese schools?


I want to print array in ruby and rails like php   In cakephp we apply query like that  $result = $this->Model->find('all');   after that we are able to print_r apply to print the array like   echo '<pre>'; print_r($result); // the another way.. pr($result); // whatever you use   Now i have apply query in rails like,     @users = User.all   after that i want to print result How can i do this without loop ? is there any way ?


use of definition of limit to prove lim (x->2) x^2-2x+1

I thought  I knew how to solve this kind of problems, but I really don't know how to start...


For $a>0,b>0$, $a+b=1$ prove:$$\bigg(a+\dfrac{1}{a}\bigg)^2+\bigg(b+\dfrac{1}{b}\bigg)^2\ge\dfrac{25}{2}$$   My try don't do much, tough  $a+b=1\implies\dfrac{1}{a}+\dfrac{1}{b}=\dfrac{1}{ab}$  Expanding: $\bigg(a+\dfrac{1}{a}\bigg)^2+\bigg(b+\dfrac{1}{b}\bigg)^2\\=a^2+b^2+\dfrac{1}{a^2}+\dfrac{1}{b^2}+4\\=(a+b)^2-2ab+\bigg(\dfrac{1}{a}+\dfrac{1}{b}\bigg)^2-\dfrac{2}{ab}+4\\=4-2ab-\dfrac{2}{ab}+1+\dfrac{1}{a^2b^2}\\=4-2\bigg(\dfrac{a^2b^2+1}{ab}\bigg)+\dfrac{a^2b^2+1}{a^2b^2}\\=4-\bigg(\dfrac{a^2b^2+1}{ab}\bigg)\bigg(2-\dfrac{1}{ab}\bigg)\\=4-\bigg(ab+\dfrac{1}{ab}\bigg)\bigg(2-\dfrac{1}{ab}\bigg)$   Seems to using Cauchy-Schwartz. Please help.


Prove that if $f$ is analytic in a region symmetric with respect to the real axis ,then $f (z) = \overline{ f (\bar z)}.$

Prove that if $f$ is analytic in a region symmetric with respect to the real axis and if $f$ is real for real $z$, then $f (z) = \overline{ f (\bar z)}.$ My attempt : If i take constant function $f(z)=1$ , then obviously it will satisfied $f (z) = \overline{ f (\bar z)} $ since $\bar1=1$ If $z=x \in \mathbb{R}$ then $f(x) =\sum_{n=0}^{\infty} a_nx_n $ Then $\overline{f(x)} =\overline {\sum_{n=0}^{\infty} a_nx_n}=\sum_{n=0}^{\infty}\bar a_n x^n$


LWJGL—How to Animate and Render Characters Using a Sprite Sheet

I'm making an RPG similar to Super Nintendo RPGs in the early '90s. I'm handling movement much like Squaresoft's Final Fantasy IV.   Notice that the player never actually changes his x and y positions on screen. What I'm asking, to be precise, is how could I, in LWJGL through user input (say, the arrow keys), take the sprite sheet I have of my character's movement animations and render them in a [partially] fluid animation like above?  I've been perusing the internet for hours, and I've not found a surefire way to do this. I don't have any code as of yet; I'm more or less looking for a guideline or some pointers in the right direction concerning how I might tackle this.  And, to note, this'll be a rather large game, so I want to focus partially on speed and efficiency—that meaning that I don't want to dive into Slick2D and libGDX unless absolutely necessary.


How scale a mathrel to match current context's font size?

Revised question:  I'm using TikZ to re-design \rightarrow for the Lucida Bright fonts, to better match tikzcd arrows. How do I scale that mathrel for script- and scriptscript-styles (as well as have the scaling sensitive to enclosing \large, \tiny, etc., commands).  With the lucidascale or lucidasmallscale option of lucidabr.sty (or lucimatx.sty), scaling is non-linear.   Originally I thought I should base the scaling factor upon the document class's font size option (or its default). And  Phelype Oleinik;s answer showed how to obtain the document class's font size.   However, as David Carlisle pointed out, that approach is neither necessary or sufficient for achieving my actual aim.  Original question: For a document class being used, is there a way to determine through TeX or LaTeX code what the declared font size option is, or in the absence of a user-declared option, what the default font size is?  I want this font size just as an integer (12, 11, 10, e.g.) and not as an actual dimension such as 12.0 pt.  In particular, is it possible to do this with the article and memoir document classes?


difference between not to verb , to not + verb

"Name three things that, if you were told were part of the job, would cause you to not take the position. "   I've just come across this sentence while reading the news.   Question is: Why to not is used instead of not to? This usage in this way imposes different meaning?


Line of Sight/Clear Path Check Theta* For Rectangle Character

I am implementing Theta* pathfinding in a tile-based 2D game. A tile is either blocked or unblocked. The character has a rectangle collider with a width and height in tiles. Is there an algorithm for finding all the tiles the rectangle will overlap when moving in a straight line from A to B on the tile grid?


Is it possible to upgrade my 16.04LTS system to 17.10 without setting up a new system?  I'm search for a solution like apt-get upgrade.


if i have a group G, and a normal cyclic subgroup H, any subgroup of H is normal to G? It is to H, but i don't know to G. Can you give me some help with this?


If $|f(x)-f(y)|\geq \frac12|x-y|$, must $f$ be bijective?

Let $f:\mathbb R\rightarrow \mathbb R$ be a continuous function such that $$|f(x)-f(y)|\geq \frac12|x-y|$$ for all$x,y\in \mathbb R$. Then is $f$ one-one and onto?  Let $f(x)=f(y)$ i.e. $0=|f(x)-f(y)|\geq (1/2)|x-y|$ i.e $x=y$   Hence $f$ is injective.  But I am unable to conclude whether $f$ is onto.Any help


i am trying to get decimal part of reel number and assign it to int variable.  float x= 1.4, y, z; y=x-(int)x; z=y*10; int a; a=z; printf("\n y : %.10f \n a : %d\n", y, a);   output :  y : 0.3999999762           a : 3  why it is not y: 4.0000000000 and a : 4 ?


how to print a black/grayscale pdf in some chosen color

I have some PDFs that I want to print in a color instead of the grayscale/black&white color.  I see some questions/answers about removing color. But I want to change to some color. And I don't see any options to do so. The PDFs are created from an epson scanner device.  I want to do that on linux.


Backup a sample of a PostgreSQL database

Is it possible to back up a PostgreSQL database with only a fraction of the data (1000 Rows from each table)?  I am able to back up that database using pg_dump. In some case I need db with minimum data.  pg_dump --host=localhost --port=5432 --username=postgres --password          --column-inserts --schema=test  testdb > test_backup.sql   How can I modify the above command to take the back up with 1000 number of  data??


When I run torbrowser-launcher installed from the repository I get the following error:  $ torbrowser-launcher  Traceback (most recent call last):   File "/usr/bin/torbrowser-launcher", line 29, in <module>     import torbrowser_launcher   File "/usr/lib/python2.7/dist-packages/torbrowser_launcher/__init__.py", line 33, in <module>     from .common import Common, SHARE   File "/usr/lib/python2.7/dist-packages/torbrowser_launcher/common.py", line 55, in <module>     from twisted.internet import gtk2reactor   File "/usr/lib/python2.7/dist-packages/twisted/internet/gtk2reactor.py", line 23, in <module>     from twisted.internet import _glibbase   File "/usr/lib/python2.7/dist-packages/twisted/internet/_glibbase.py", line 20, in <module>     from twisted.internet import base, posixbase, selectreactor   File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 26, in <module>     from twisted.internet import fdesc, main, error, abstract, defer, threads   File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1366, in <module>     @attr.s AttributeError: 'module' object has no attribute 's'   even though I installed attrs via sudo pip install attrs.


Let $a^n, a^m \in (a^k)$ for some positive integer $k$. Then $k \mid n, m.$ Hence $k \mid \operatorname{gcd(n, m)}?$

Let $a^n, a^m \in (a^k)$ for some positive integer $k$. Then $k \mid n, m.$ Hence $k \mid \operatorname{gcd(n, m)}$.  How is it possible? Let $k = 6, n = 12, m =24.$ Context:  Let $H$ be the smallest subgroup of $(a)$ s.t. $a^n, a^m \in H$. Prove that $H = (a^{\operatorname{gcd(n, m)}}).$ Proof: Since $G$ is cyclic, $H$ is cyclic. Hence $H = (a^k)$ for some $k \in \mathbb N.$ Since $a^n, a^m \in H,$ then $k \mid n,m.$ Hence $k \mid \operatorname{gcd(n, m)}.$ Thus $a^{\operatorname{gcd(n, m)}} \in H.$ Hence $(a^{\operatorname{gcd(n, m)}}) \subset H.$ Also, since $a^{\operatorname{gcd(n, m)}} \mid n, m$ then $a^n, a^m \in (a^{\operatorname{gcd(n, m)}})$. Since $H$ is the smallest subgroup of $(a)$ containing $a^n, a^m$  and $a^n, a^m \in (a^{\operatorname{gcd(n, m)}})$, we conclude that $H = (a^{\operatorname{gcd(n, m)}}).$


Book that explains more than just applying the formulas for stats beginner

I have some solid unterstanding of math basics and want to learn more about statistics. I'm following a stats course on Khan Academy that has roughly this content:   Summarizing quantitative data Modeling data distributions Exploring bivariate numerical data Study design Probability Random variables Sampling distributions One-sample confidence intervals   Now, I'm a few hours in the course and feel the need for an additional reference besides the course.   For example, in the course, in some video, the interquartile range/spread is introduced very briefly. It is shown with an example how to calculate the IQR, and in the end we arrive at some number but it's not really well explained why this makes sense to calculate the IQR we do or what it actually represents.   So I'm looking for a book that teaches the basics in a clear way and also explains why a number (for example IQR or variance) makes sense and what we can infer from it. If the book also has some basic mathematical reasoning behind the formulas presented, I would also like that.  I heard on this site about the book "Statistics" by Freedman/Pisani/Purves. I wasn't able to look at the contents of that book and was wondering if it would be the right book in my case.


Resolving heteroscedasticity in Poisson GLMM

I have long-term collection data, and I'd like to test, whether the number of animals collected is influenced by weather effects. My model looks like below:  glmer(SumOfCatch ~ I(pc.act.1^2) +I(pc.act.2^2) + I(pc.may.1^2) + I(pc.may.2^2) +                     SampSize + as.factor(samp.prog) + (1|year/month),        control=glmerControl(optimizer="bobyqa", optCtrl=list(maxfun=1e9,npt=5)),        family="poisson", data=a2)   Explanation of the used variables:   SumOfCatch: number of animals collected pc.act.1, pc.act.2: axes of a principal component representing weather conditions during sampling pc.may.1, pc.may.2: axes of a PC representing weather conditions in May SampSize: number of pitfall traps, or collecting transects of standard lengths samp.prog: method of sampling year: year of sampling (from 1993 to 2002) month: month of sampling (from Aug to Nov)   The fitted model's residuals show considerable inhomogeneity (heteroscedasticity?) when plotted against fitted values (see Fig.1):    My main question is: is this a problem making the reliability of my model questionable? If so, what can I do to resolve it?  So far I have tried the followings:   control for overdispersion by defining observation-level random effects, i.e. using a unique ID for each observation, and applying this ID variable as random effect; although my data do show considerable overdispersion, this did not help as the residuals became even more ugly (see Fig. 2)      I fitted models without random effects, with quasi-Poisson glm and glm.nb; also yielded similar residual vs. fitted plots to the original model   As far as I know, there might be ways for the estimation of heteroscedasticity-consistent standard errors, but I have failed to find any such method for Poisson (or any other kind of) GLMMs in R.     In response to @FlorianHartig: the number of observations in my dataset is N=554, I think this is a fair obs. number for such a model, but of course, the more the merrier. I post two figures, first of which is the DHARMa scaled residual plot (suggested by Florian) of the main model.    The second figure is from a second model, in which the only difference is that it contains the observation-level random effect (the first does not).    UPDATE  Figure of the relationship between a weather-variable (as predictor, i.e. x-axis) and sampling success (response):    UPDATE II.  Figures showing predictor values vs. residuals: