Using both bottom navigation and tabs for an android app

I was told it's a bad practice to have both bottom navigation and tabs in the same screen, but I'm not finding any information about why, and what can I use instead of tab bars in Material Design. The Google Play app has both for some reason. I'm developing an app for Android and my home screen looks like this. Thanks!


How to middle vertical line that division?

I have this page:    I want my div .container-home to be align vertically to the center.  CODE HTML:

   How do I do this?  I found these examples but we did not implement them.    Thanks in advance!  EDIT:  I add:  body{display table;} .container-home{display:table-cell;vertical-align;middle;}   but not working.


C# How to check if an object is nullable

I saw a question and answer in stack overflow    I could not put a comment in the above because I do not have more than 50 comments and that is why I am asking a question in here.  if(Nullable.GetUnderlyingType(myType) !=null) {    // It's Nullable }   If myType is system.string  Nullable.GetUnderlyingType(myType)    returns null  I thought System.string is null-able !


I want to make an animation similar to the gif, i want a drop (of water) to fall and to be absorbed by the cloth.  I have the cloth texture and a fluid simulation with dynamic paint that creates the wet cloth, but i don't know how to make the fluid geometry to be absorbed smoothly by the cloth.  Thank you!


No Package name given for dpkg: package is in a very bad inconsistent state;

I ran:  sudo apt-get autoremove && sudo apt-get autoclean  Reading package lists... Done Building dependency tree        Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 7 not upgraded. 1 not fully installed or removed. Need to get 0 B/37.6 kB of archives. After this operation, 0 B of additional disk space will be used.  **dpkg: error processing package at (--configure):  package is in a very bad inconsistent state**; you should  reinstall it before attempting configuration Errors were encountered while processing:  at E: Sub-process /usr/bin/dpkg returned an error code (1)   But it didn't tell me which package.  Any help would be appreciated.  Paul


which linux configuration is used my my system?

is there any command in linux ,which gives every specification of currently running linux distro,,  including shell, desktop enviroment(like GNOME or KDE) ,display manager (gdm or ligthdm or kdm )and every other minute details that system is having,  similar to when we go to buy a laptop we are a given with a complete specification list,,anything like that?


What is it called when you tell the truth in a misleading 'nice' way?

Basically when you try to put makeup on the truth, for example when instead of calling someone autistic they call them special?


Sci-fi Short Story: Soul-Stealing Space Snakes

This was a short story in an anthology, it involved a group of people trapped in a perpetual videogame/virtual reality. There were levels, and you had to beat each one. The first was like a water-world, and the fifth was the simulation of a posh spaceship party.   The shocker near the end is where the characters realize they were astronauts on the moon who had their souls/consciousnesses stolen by passing aliens to use as jewels. The game was just to keep them all entertained.  I read it many years ago and every time I go back to the library I look for it but I can't seem to find it.


How do I determine height and scrolling position of window in jQuery?

I need to grab the height of the window and the scrolling offset in jQuery, but I haven't had any luck finding this in the jQuery docs or Google.  I'm 90% certain there's a way to access height and scrollTop for an element (presumably including the window), but I just can't find the specific reference.


We have $n$ charged and $n$ uncharged batteries and a radio which needs two charged batteries to work. Suppose we don't know which batteries are charged and which ones are uncharged. Find the least number of attempts sufficient to make sure the radio will work. An attempt consists in putting two batteries in the radio and check if the radio works or not.   I can prove that it is $\leq n+3$ (or $\leq n+4$, look at the comment): Say we have batteries $B_1,B_2,....B_{2n}$, $n$ of them charged and other not. If in one of $n$ attempts $$\{B_1,B_2\}, \{B_3,B_4\}, ...\{B_{2n-1},B_{2n}\}$$ radio work we are done. If non of them work, then in each pair we must have charged and uncharged batteries. Thus in one of next 4 pairs: $$\{B_1,B_3\}, \{B_1,B_4\}, \{B_2,B_3\}, \{B_2,B_4\}$$ must be a pair of charged batteries and we are done (so if 3 times doesn't work we know the last pair is charged). But, can we reduce the number of attempts?


Is this a valid proof that "$1+2+4+8+...=-1$" is a false statement?

I just finished a discrete mathematics course and I was wondering if I could prove that the paradox  is wrong using simple logic without using advanced mathematics such as limits and sequences e.g. consider the equation $x+2=x+4$ , it obviously has no solution in $\mathbb{R}$ . The proof is as follows assume it does have a solution $x \in \mathbb{R} \implies 2=4$ (contradiction) $\implies x \notin \mathbb{R}$ as required. So I did the same for $\sum_{i=0}^{\infty} 2^i$, that is assume that $\sum_{i=0}^{\infty} 2^i=x \in \mathbb{R} \implies$ (the rest of the proof goes as ) $\implies x=-1$(contradiction)$\implies x \notin \mathbb{R}$ as required. Does this proof count as valid argument and if not were did I go wrong ? Edit: It seems there have been a misunderstanding and it is my fault for not being clear . My goal was determine where does my argument fail not that the proof  is not convincing . The main points where my argument fails as pointed out are :  I need the notion of limits and sequences to define $\sum_{i=1}^{\infty} 2^i$ . $x=-1$ is indeed not a contradiction as I assumed.


Connecting push button to a controller pin

This problem is decades old but I do not see a direct answer to it on this site. I want the following:    This circuit just allows to check the state of the button from inside the micro-controller. Nothing fancy. My questions:   Is there anything better than this simple design? Is the value of 100 kilo ohms resistor adequate for our days CMOS devices, like dsPIC30FXXXX and not a high power application?


How to add textures to a collada file imported from Fuse

I purchased Fuse Character Creator and made a rigged model that I imported into Blender from Fuse. The model is a Collada File and it comes in fine, the model comes rigged and is fully poseable except that the textures aren't applied. I switch to texture view but still nothing. Here's how fuse works, you upload your model to their site, have it autorigged, and then choose the format that you want the model file in. I chose Collada. It then gives you the zip folder with the model and the textures in their own folder named "textures". I don't know what to do from here. The textures are all PNG's. When I exported to as an obj file the model came with the textures applied, but the obj doesn't come rigged. I included a picture of the textures if it helps.


Does Lucio's Sonic Amplifier Knock Back Distance Vary By Proximity?

When playing against Lúcio, sometimes it seems I only get knocked back a little bit, other times it seem like I go flying. I haven't noticed much difference when playing, but I don't really notice a difference in how far I knock them away from me, however I try not to get too close to people in order to stay safe. Does the distance away from the target effect the distance I knock the target back when using alternate fire with sonic amplifier?


How do I create a startup command permanent on every cycle restart ? As previously having brightness reset when set at power saving mode to turn off the monitor.  18.04 64bits 5.4.0-42-generic Desktop Nvidia 440 driver  I found out xset dpms 600 900 1800 works on turning off the monitor display but I wanted it to run at startup which i do no need to type manually on the terminal. I tried adding xset dpms 600 900 1800 to the bottom of home/.profile but it didn't work. Further testing and by adding an extra line to run terminal by adding xset dpms 600 900 1800 gnome-terminal  at the terminal startup checking the xset -q xset dpms was not set Standby: 0 Suspend: 0 Off: 0  while it should be Standby: 600 Suspend: 900 Off: 1800 The weird scenario is when manually launch a terminal without typing anything , the command of xset dpms 600 900 1800 active. What would it be the reason ? .profile with command 'xset dpms 600 900 1800' Not trigger on startup but when I launch terminal manually it trigger the command. If anyone could explain the reason ? or a better way to run the command on startup rather running on .profile ?


I was given this calculus problem and am very stuck on it and cant get an answer  The slope of the tangent line to the graph of $f(x)$ at each $x\neq 0$ is given by $e^{6x}+\frac{6}{x}$ and knowing that the graph contains the point $(1,e/3)$, find $f(x)$.  I know you need to integrate but I am stuck and cant get the right answer can anyone walk me through it?


How to make the background-color cover the whole div?

I am trying to add a background-color to a div that contains two more divs within it. But the background color doesn't stay all the way under the two divs. The two divs are inside the div that i added the background to, so I thought the background should end under or beside the two divs.    .characters {     margin: 0;     border: 5px solid black;     float: left;     width: 50%;     box-sizing: border-box;     }      .characters img {     width: 100%;     height: auto;     display: block;     border-bottom: 5px solid black;     }      .infos {     background-color: gray;     padding: 35px;     text-align: center;     }      .infos h2, .infos h3 {     margin: 0;     }      .page {     margin-top: 35px;     padding: 10px;     background-color: lightgray;     }

text

text

text

text


Insert 4 figures in a square like structure

I want to insert 4 figures in structure of a square i.e. in two rows and two columns, the structure I talk about is given in the image below;    Please help me with piece of code. Thanks.


Prove: $ \lim_{n\rightarrow\infty} x ^ {\left(\frac 1 n\right)} = 1 $

x is a real number between 0 and 1  $ \lim_{n\rightarrow\infty} x ^ {\left(\frac 1 n\right)} = 1 $  SO far i know you need to do this to prove it:  let b>1, prove that $\root n \of b \rightarrow 1$ as $n \rightarrow\infty$  I was given this hint: let $a_n = \root n \of b - 1$ , prove that  $a_n \rightarrow 0$  Thanks!


I'm trying to find away to load a different favicon on page refresh/load. I've had a quick google but noting seems to be showing up in terms of tutorials.


How can you show there are only 2 nonabelian groups of order 8?

It's often said that there are only two nonabelian groups of order 8 up to isomorphism, one is the quaternion group, the other given by the relations $a^4=1$, $b^2=1$ and $bab^{-1}=a^3$.   I've never understood why these are the only two. Is there a reference or proof walkthrough on how to show any nonabelian group of order 8 is isomorphic to one of these?


Why are the graphs are different for $\frac{(x-9)}{{\sqrt x}-3}$ and ${\sqrt x}+3$?

I am very curious why $\frac{(x-9)}{{\sqrt x}-3}$ and ${\sqrt x}+3$ yields different values (or one is undefined while other gives $6$) at $x=9$ even they are equal. $$ \frac{x-9}{{\sqrt x}-3} = \frac{{({\sqrt x} + 3)({\sqrt x} - 3)}}{{\sqrt x}-3} = {\sqrt x}+3 $$ And some graph plotting websites give the same graph for both functions while google search gives different graphs for the two functions.


I have made a fancy title page using titleformat and tikz, but I now face the following problem. The \chaptertitlename command returns \chaptername or \appendixname. I would like to spread the letters of the text returned by \chaptertitlename to a given length.  For example I would like to be able to call: \mycommand{\chaptertitlename}{3cm} in order to space the letters of \chaptertitlename on a total length of 3cm. How to do that ?  EDIT: This example illustrates a nearly working thing:  \documentclass[11pt]{article} \usepackage{fontspec} \newcommand{\spreadletters}[2]{\makebox[#2][s]{#1}}  \begin{document} \spreadletters{m y w o r d}{3cm} \end{document}   How to convert myword to m y w o r d ?  EDIT 2: Can someone explain me why the first work and not the second one (and how to make it work) ?  \documentclass[11pt]{book} \usepackage{fontspec} \usepackage{seqsplit} \usepackage[explicit]{titlesec}  \newcommand{\spreadletters}[2]{\makebox[#2][s]{\seqsplit{#1}}}  \begin{document} \chapter{First} \spreadletters{myword}{10cm} \linebreak % This is working \spreadletters{\chaptertitlename}{10cm} % This is not working \end{document}


$L^p$ convergence of a bounded sequence which converges almost everywhere

I'm having a little trouble with this homework problem:     Suppose $\mu(X)<\infty$, $f_n\in L^1$, $f_n\to f$ a.e., and there exists $p>1$ and a constant $C>0$ such that $$\|f_n\|_p\leq C$$ for all $n.$ Prove that $f_n\to f$ in $L^p$.   Here's what I've done so far.  Without loss of generality, suppose that $\mu(X)=1$. Since $\|f_n\|_p\leq C$, we have that $f_n\in L^p$ for all $n$. Furthermore, since $|f_n|^p\to |f|^p$, we have that $$\int |f|^p\leq \liminf \int|f_n|^p\leq C^p$$ by Fatou's lemma, so $f\in L^p$ as well.    Since $|f_n- f|\to 0$, we have that $|f_n-f|^p\to 0$.   I am thinking of applying the Dominated convergence theorem to $|f_n-f|^p$, but I cannot think of a bound.


How can we prove that? $$\sum_{n=1}^\infty\frac{x^{3n}}{(3n-1)!}=\frac{1}{3}e^{\frac{-x}{2}}x\left(e^{\frac{3x}{2}}-2\sin\left(\frac{\pi+3\sqrt{3}x}{6}\right)\right).$$  I think if we write the taylor expansion of $\sin(u)$ and $e^u$, we can arrive from RHS to LHS, but I am looking for a way to prove it from LHS.


Why is the mean of a Cauchy distribution undefined? Surely, it should be $0$ by symmetry? $$\int_{-\infty}^{\infty} {\frac{x}{\pi (1+x^2)}} dx =0?$$


When I download some files from blendswap they look like this.   I want the silver/gray solid view.


How to disable javascript modal popup ads

For many years I have blocked popup ads with AdBlock Plus.  But it seems more and more these past couple months there is a "new" kind of popup overtaking the web.  They are javascript based "modal" popups which ABP is powerless over.  See attached for an example.  Is there a way to kill these ads without breaking the functionality of anything I need?


How to make each fuction work with dynamically added elements?

I have this script and I would like to make it work with dinamically added elements from database:   $( ".select-song li" ).each( function( intIndex ){     $( this ).bind (         "click",         function(){           if($(this).hasClass('checked')){            $(this).removeClass('checked');           }           else{             $(this).addClass('checked');           }         }         ); } );   Elements are added in like this:  $('.select-song').append('
sth here
');   I know that I should to use on function but I have no idea how to implement it here.


Reducing output file values to 2 decimal places

I have my below that takes entire values and outputs them into another file.  with open('candidatevalues2.txt', 'w') as outfile:     outfile.write('plate mjd fiberid FWHM erFWHM loglum loglumerr logBHmass logBhmasserr  ksvalue pvalue\n') for i in range(9):     with open('candidatevalues2.txt', 'a') as outfile:         dmpval= stats.ks_2samp(y_real[i], yfit[i])         outfile.write('{0} {1} {2} {3} {4} {5} {6} {7} {8} {9} {10}\n'.format(plate[i], mjd[i], fiberid[i], fwhm[i], fwhmer[i], loglum[i], loglumerr[i], logbhmass[i], logbhmasserr[i], dmpval[0], dmpval[1]))   The first few lines of the file show as:  plate mjd fiberid FWHM erFWHM loglum loglumerr logBHmass logBhmasserr ksvalue pvalue  590 52057 465 1710.58526651 115.154250367 42.0681732777 0.070137615974 6.81880343617 0.15451686304 0.0909090909091 0.970239478143  1793 53883 490 1736.15809558 144.074772803 40.160433977 0.0736271164581 5.7828225787 0.13016470738 0.0909090909091 0.970239478143  648 52559 335 1530.9128304 153.965617385 40.8584948115 0.110687643929 6.05420009544 0.155678567881 0.0909090909091 0.970239478143   I am wondering how do I reduce all the values to just 2 decimal places?


How to verify all the references used in the article or not from the auxiliary file?   Or is there any other file to check it?   If any one reference not included in the article, whether that reference highlighted by red colour?


How do I dismiss many multiples of the "Disk Not Ejected Properly" notification in macOS?

Today I'm dealing with the following problem:    Is there some way I can get rid of these without spending my entire day clicking, short of Homer's Drinking Bird?     Note: This is not a duplicate of , because the notifications in my question aren't shown at all in the Notification Center, and thus the solution in that question doesn't work for this question.


Does Game Maker use use intrinsic or extrinsic rotations?

I have a pretty difficult problem on my hands. My 3D character moves through space and rotates. I do not know the angle of rotation at any given time, but I do have three X, Y, Z unit vectors serving as basis vectors for the character's coordinate system.  I see that in the  there are three formula for extrinsic rotation. My problem is that they do not seem to work in any manner whatsoever. Either my reading of that page misled me, or game maker does not use extrinsic rotation.  Do Game Maker's rotation transformations always rotate globally in 3D space, or does it use the current set of transformations and rotate around the current X, Y, or Z axis?


Epson Printers cannot use after Window Update

After yesterday Windows Update,Epson printers cannot be used start from this morning. All the PC in Windows 7 and Windows 10 cannot detect these Epson printers. Any solution for this?


Can I use SRV to receive mail on port 2525 ? How must I configure it in my DNS?

Is it possible to use a SRV rule on my DNS to receive mail on port 2525 instead of port 25 ? If it is possible how can I setup this rule correctly ?


Descartes famously says "I think therefore I am." Does it follow that  anything I can think of exists?


How can we determine the winner in Love Letter if the last two players tie and have the same value of cards discarded?

At the end of the game, both remaining players have a Baron.   The sum of all cards discarded by both players is equal.  Who wins?


Looking for Anime with a prince faking being mentally handicapped hiding a giant mech suit wreaking havoc

This is all I can remember.  There are four worlds whose people and technology were all swapped so humans ended up with high tech mech suits that they used to kill each other. There was a supposedly handicapped prince who faked being mentally handicapped and had a giant mech suit hidden underground that he eventually used to wreak havoc on earth.  The protagonist also had a suit and he saved the day. He was in love with a girl who was from another world and when he saved the day, all the people and technology from the different worlds were sent back to their original one causing the girl to leave him. She had colored hair and the final scene was her waking up somewhere with some children commenting on her hair.  There may or may not have been a reference to the protagonists scars in the shape of the constellation of orion on his body.  Any ideas? I've searched the internet for two years trying to find it.


Check target file for duplicate entry before copy data from source file

I am trying to copy lines from source.txt to target.txt. I would like this bash script to check each line on target.txt if there is duplicate entry before copy.      source.txt contains:  a$$a$$a b**b** c%%cc%% d##d##d## e^^e^^e^^         target.txt contains:  a$$a$$a ee$$ee$$ ff__ff__ gg@@gg@@ zzxxzzxx bb..bb..bb e^^e^^e^^ hh;;hh;;hh    on this scenario, I assuming that there only 3 entries will be copied to target.txt  which are:  b**b** c%%cc%% d##d##d##   My test code is:  #!/bin/bash echo "started" programpath=/home/mysite/www/copyfiles  var str input ; cat "$programpath/source.txt" > $input  var str target ; cat "$programpath/target.txt" > $target   cat $input >> $target  uniq -u "$target"  echo "finished"     exit 1 fi


Why P value of a 2 tailed test is multiplied by 2 [=2 X P(Z>tcal)? I am looking for a answer which may explain the underlying reason except the answer 'because it is a two tailed test'. Why we also consider the opposite signed value of test statistic in two tailed test to calculate P value?


Why is my image not showing up after UV unwrapping?

I'm following a YouTube tutorial on UV unwrapping the image of a mouth onto a character (  ), and although I've followed all the steps, several times, to a T, I cannot get the mouth image to show up on the character. I've included the blend file for your convenience. Could you please help me understand why this is not working?  Steps that I took:   Mark the seam. Unwrap the faces. Open the png mouth image. Create a new material that is a copy of the material used for the body. Add an image texture to that material. Assign the new material. When I use the file that he provides to go along with, the results are as expected. But when I do the same thing to my file, I do not get the same results.   Please, if you could take some time to help me I would very much appreciate it. Thank you.   Here is a copy of my file:   A copy of his file:    The png file used for unwrapping:


How prove this equation $\alpha=\aleph_{0}\alpha$

Question:     let $\alpha$ be a infinite cardinal , show that:   $$\alpha=\aleph_{0}\alpha$$   where $\aleph_{0}$ is the cardinality of the natural numbers is denoted aleph-null   this equation is from a book,and I can't prove it,and the author say this is important equation,and can't prove it.Thank you for you help


All of a sudden my Finder windows keeps disappearing and reappearing every 30 seconds or so. I restarted the computer, and emptied the trash can as some Google search suggested, but none of them worked. Any ideas? I was just browsing the web, wasn't installing/uninstalling anything.  BTW, it's a 2010 iMac with Mavericks.


I've hard reset to a particular commit. After do that my changes are gone. Can I get back my changes in git?  I'd following steps.  git reset --hard [commit id] git push origin [branch name] --force


Python: 2 equal arrays not equal after same operation

I have the following simple python code:  arr1 = [[0]*4]*4  arr = [[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0]]  print arr print arr1 print arr1 == arr  for x in range(0,3):     arr[1][1] = 1   for x in range(0,3):     arr1[1][1] = 1   print arr print arr1 print arr == arr1   This code produces the following output:  [[0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0]] [[0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0]] True [[0, 0, 0, 0], [0, 1, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0]] [[0, 1, 0, 0], [0, 1, 0, 0], [0, 1, 0, 0], [0, 1, 0, 0]] False   Could someone tell me why the output is different and why the arrays aren't equal anymore? I am doing the same operation on the arrays and they are equal in the beginning as shown by the output. Please let me know if I am doing something stupid here.


How do I get the taxonomy term ID from its name?

The only function on the  that looks like it does what I want appears to be a private function ().   What function am I supposed to use if all I know is the taxonomy term name and I need to find out its ID?


I am trying to grok the comma operator.  The  says:  In a comma expression E1, E2, the expression E1 is evaluated, its result is discarded (...), and its side effects are completed before evaluation of the expression E2 begins (...).  I am unable to grok the clause - "... the expression E1 is evaluated, its result is discarded (...), and its side effects are completed before...".  Specifically, what is retained and what is discarded? For e.g., in the example from : int x = 0; int y = some_number; for(; x < y; ++x, --y) {     // Do something which uses a converging x and y }  When we do a ++x, what is the 'result' (that is discarded) and what is the 'side-effect' (that is 'completed' and perhaps 'retained')?  Shouldn't the result of ++x be discarded and the value of x remain unchanged? Working example showing incrementation of x is . In other words, given a certain expression, how do I deduce if it will be evaluated and its results would be discarded, or if it is a side-effect and its results would perhaps be computed and retained?


Is there a closed form expression for this limit? $$\prod_{n=1}^\infty \frac{2^n-1}{2^n}$$ Wolfram Alpha says $0.2887880950866024212788997219292307800889\dots$ and the Inverse Symbol Calculator found nothing but the above expression.


In a sentence like this:     I wouldn't even dare to think about the results.   vs     I wouldn't even dare thinking about the results.   Are both of them correct? They seem fine on the surface, but when I say it out loud there seems to be something wrong but I don't know (if it's wrong) which part it is wrong.


Determine the less value of $n\in\mathbb{N}$ for $S_{n}$ having an element of order $200$

I'm having trouble in solving this problem; here is my attempt: If $\sigma\in S_{n}$ ($S_{n}$ is the symmetric group) has order $200$, then, there exists $\sigma_{1},...,\sigma_{r}$ disjoint cycles with respective lengths of $l_{1},...,l_{r}\in\mathbb{N}$ such that $\sigma=\sigma_{1}...\sigma_{r}$ and $lcm(l_{1}...l_{r})=200$. As $200=2^{3}\cdot 5^{2}$, there must exist $i,j\in\{1,...,r\}$ (equal or different) such that $l_{i}$ is a multiple of $2^{3}$ and $l_{j}$ is a multiple of $5^{2}$. So, my aim will be to find the less $n$ where I can find that this last condition stands...and... after this disconnected ideas, I am quite lost. I would appreciate so much some guidance on this question... Thank you so much in advance!


I'm not entirely sure if I'm going about proving $n^2+n$ is even for all the natural numbers correctly.  $P(n): = n^2+n$     $P(1) = 1^2+1 = 2 = 0$ (mod $2$), true for $P(1)$   Inductive step for $P(n+1)$:     $\begin{align}P(n+1) &=& (n+1)^2+(n+1)\\ &=&n^2+2n+1+n+1\\ &=&n^2+n+2(n+1)\end{align}$   Does this prove $n^2+n$ is even as it's divisible by $2$? Thanks!


Is it possible in a template function to call a member function only if it exists?

In C++, suppose I write a template function  template<typename T> void func(T obj){     obj.print(); }   But for some class, there might be not print() member function defined, which causes compilation errors. However, obj.print() may be not so important. Instead of add print() to the class, I prefer to make print() not called.  This may be a weird question. But just wondering if anyone ever saw such question.


FFMPEG convert flv to mp4 without losing quality

Currently I'm converting .flv flash files to .webm and .mp4 files to be used with an HTML5 video player.  _  I use this ffmpeg command for WEBM: ffmpeg -i filename.flv -vcodec libvpx -acodec libvorbis filename.webm which works great and the file size stays relatively the same (imporatant).  _   For MP4 I'm using the following: ffmpeg -i filename.flv -sameq -ar 22050 filename.mp4  It converts to .mp4 fine and prevents any quality loss but the file size almost triples in size.  What ffmpeg formula could be used to convert to MP4 without losing too much quality and preventing a much higher file size?


What does "country" shows for WiFi router?

When I scan WiFi with Wireless Diagnostics tool on Mac OS X (Window -> Utilities -> Scan WiFi), it shows a lot of information about WiFi routers around me.   I realize that some routers have "JP" in their country fields even though I am in US and the most routers shows "US" in that field.   Is there anybody can tell why some routers have "JP" and what is the meaning of "country" field?


I'm experimenting with random forests with scikit-learn and I'm getting great results of my training set, but relatively poor results on my test set...  Here is the problem (inspired from poker) which I'm trying to solve: Given player A's hole cards, player B's hole cards and a flop (3 cards), which player has the best hand? Mathematically, this is 14 inputs (7 cards -- one rank and one suit for each) and one output (0 or 1).   Here are some of my results so far:  Training set size: 600k, test set size: 120k, number of trees: 25 Success rate in training set: 99.975% Success rate in testing set: 90.05%  Training set size: 400k, test set size: 80k, number of trees: 100 Success rate in training set: 100% Success rate in testing set: 89.7%  Training set size: 600k, test set size: 120k, number of trees: 5 Success rate in training set: 98.685% Success rate in testing set: 85.69%   Here is the relevant code used:  from sklearn.ensemble import RandomForestClassifier Forest = RandomForestClassifier(n_estimators = 25) #n_estimator varies Forest = Forest.fit(inputs[:trainingSetSize],outputs[:trainingSetSize]) trainingOutputs = Forest.predict(inputs[:trainingSetSize]) testOutputs = Forest.predict(inputs[trainingSetSize:])   It appears that regardless of the number of trees used, performance on training set is  much  better than on test set, despite a relatively large training set and a reasonably small number of features...


Can I download the stackexchange app anywhere other than google play?

I try to download the app at the bottom on my XiaoMi 3, which is unfortunately not support Google play (although I can install it, but it seems that it is hard to start, needs to provided a bank card?) so may I ask for providing an outside link to download it?


Selected item of a list doesnt work in JAVA

If I click on the button, an error appears. How is this possible?  My result has to be that if I click on the button, the label "text1" should get the text of the ComboBox.  import javax.swing.*; import java.awt.*;  public class Naveed extends JFrame {      public static void main(String[] args) {         JFrame frame = new Naveed();         frame.setSize(400, 400);         frame.setDefaultCloseOperation(frame.EXIT_ON_CLOSE);         frame.setTitle("Rechthoek");         Paneel paneel = new Paneel();         frame.setContentPane(paneel);         frame.setVisible(true);     } }   //  import java.awt.*; import java.awt.event.*; import javax.swing.*;  public class Paneel extends JPanel {     private JComboBox abc;     private JLabel text1;      public Paneel() {         String[] items = {"Item1", "Item2", "Item3"};         JComboBox abc = new JComboBox(items);         JButton button1 = new JButton("Click");         button1.addActionListener(new knopHandler());         JLabel text1 = new JLabel("Result");          add(abc);         add(button1);         add(text1);     }      class knopHandler implements ActionListener {         public void actionPerformed (ActionEvent e) {             String s = abc.getSelectedItem().toString();             text1.setText(s);         }     } }


'Featured meta post' is confusing in app feed

In the mobile app feed, the Android one specifically, I'll see 'Featured meta post' show up once in a while. When I see that wording with the megaphone icon, I think that it's a post with  and it's showing up under the 'Featured on Meta' headline on the desktop sidebar. I do notice that the tags are shown below the feature meta post title and I just assume  isn't displayed since the featured nature of the post has already been established. When I visit the post, I'm surprised to find out it's not . It's more like the 'Hot Meta Posts' area of the desktop sidebar.   Can the headline be changed from 'Featured meta post' to something more like the site, say 'Hot Meta post' or 'Trending Meta post'?    App version 1.0.59


I have a simple winforms app that has a couple of buttons and a listbox. It does not have menus.  I would like to handle the select-all action, control-A. Is there a way to do that at the form level even if the listbox isn't focused, and even without menus?  I've solved this by putting an invisible button called "&All" on the form, but I'm wondering if there is a more-canonical solution?


Change accessibility setting on Mac using terminal

I would like to grant accessibility permission to some apps on Mac using Terminal as per this intruction   which is the accessibility tab in System Preferences  Or this    I would like to do that using Terminal so I can setup to install apps (i.e: BetterSnapTool) for many Mac at the same time, given I have admin privilege and this should be applied only on Mavericks and Yosemite  Does anyone know how to do this?  Thanks


If $\int^x_0  f (t) dt =x+  \int^1_x  t f (t) dt$, find value of $f(1)$  solution:- $\int^x_0  f (t) dt =x+  \int^1_x  t f (t) dt$ $\int^x_0  f (t) dt =x+  \int^0_x  t f (t) dt$ +  $\int^1_0  t f (t) dt$ $\int^x_0  f (t) dt =x-  \int^x_0  t f (t) dt$ +  $\int^1_0  t f (t) dt$ $\int^x_0  f (t) dt + \int^x_0  t f (t) dt$ =$x  +  $$\int^1_0  t f (t) dt$  I think, I am not in the right track Help me to find the value of $f(1)$


Old bug returning which shows "add / show X more comments" when it shouldn't

I know , but it seems this bug has risen from the dead to haunt us once again.


I have got an HP laptop which, at idle gets at 45 degrees. But when I start a game (like for example total war warhammer on low settings) the temperature goes to around 90-95 degrees. Is this too high or could this even damage my pc? because I sometimes can smell that something is burning. I measured the temperatures with Speccy and HWMonitor.  System:    i5-4210M 2.60Ghz 12Gb RAM AMD Radeon HD 8500M/8700M Crimsom Relive 17.6.2


How does grep 'know' where it is redirected when using --color=?

I learned that sudo echo hello > root-owned-file.txt does not work because the redirection does not inherit root privilege, so you need something more like echo hello | sudo tee root-owned-file.txt or echo hello | sudo cp /dev/stdin root-owned-file.txt. However, grep can use --color=tty to add color when redirected to a tty, but not to other destinations. Is redirection totally separate from the subject process, and if so, how does grep 'know' when to omit colors?  My intuition is that there is more to redirection than just channels 1/2/3; my current theory is that grep sends both colored and plain output to several variants of channel 1, and the parent shell selects the correct variant to redirect to the destination based on whether or not the destination is associated with a tty. Alternatively, the parent shell might prepare the destination process/file and send a signal or file descriptor of some kind to the source process; however, this would have implications on the sequential nature of the pipeline, which I had assumed was more strict. For example, the next command in the pipeline might set a flag before yielding a file descriptor, and the source command might depend on that flag's original value, causing a race condition if the pipeline sequence is not strict.


Can I restore a backup on a different computer than it was made?

I am using the default backup software for Ubuntu 14.04(deja dup). It backs up weekly to a network location.  I'm about to put a new hard drive in my laptop, and I would rather just install ubuntu and put my files in rather than copy over the whole OS and everything. If I reinstall ubuntu and connect to the network backup location, can I restore my backup?


Browse Directories with text UI in Terminal

I remember there was a command that you can call in Ubuntu's terminal to get a very simple text based User Interface to go through directories. I believe you can call the command and then use your arrow keys to navigate directories. If anyone knows what that command is, or has heard of something similar, that would be appreciated!


least number of edges of a graph which contains a square and n vertices

I am searching for a tight lower bound (or a condition) for the number of edges of a graph with $n$ vertices such that if $E>lower bound$ (or another condition) holds then the graph always contains a square ($C_4$). I would also appreciate a proof or a reference for the proof. Thanks a lot in advance!


I am trying to give some depth to my svg files. I have imported an svg file and then joined the curves together by grouping them. The extruding it self does not give any problems, however when i try to give it a bevel or adjust the offset these weird spikes stick out my object. Also, even though I joined the objects together i still can't extrude them all together. Am I doing the grouping wrong?


I have been reading about rainbows and I know that there is a different rainbow for each observer. Also the rainbow is centred on a line joining the head of a person to his shadow. What does it mean? I suppose that this means that a rainbow has some "thickness"(am I right?). So my question is that although a rainbow cannot be given a distance from a given observer( as it is visible to a given person over a range of distances), what are the factors which determine that range over which a rainbow is most prominent from point of view of given observer.   Thanks


What does this mean/what is the ^ operator?

Finished an online C++ course and was looking at some code, what does this mean?  DWORD remark(array<String^>^ args);   Specifically this part, I get the rest: array<String^>^ args  I don't have access to the rest of the code, it's compiled, but this is one of the functions I'm able to use.  It's like... converting an array pointer of a string of arrays XOR to an argument or something...


I would like to know if is possible calculate the area between 2 rings with opposite centers and the same radius, that is:  $$r_1^2<(x-a)^2+(y-b)^2<r_2^2$$ $$r_1^2<(x+a)^2+(y+b)^2<r_2^2$$  I think that depend on the relation between center and radius, but I'm not sure.  I'm working on...  Edit:  This is an example   $$4<(x-1){}^2+(y-2){}^2<8$$  $$4<(x+1){}^2+(y+2){}^2<8$$


\documentclass[letterpaper,12pt]{article}  \begin{document}  \begin{table} \caption{Test test test test test} \begin{tabular}{c c c c} \hline\noalign{\smallskip} $V_{a}$ & $B$ & $r$ & $e/m$\\ (V) & (T) & (m) & (C/kg)\\ \hline\noalign{\smallskip} 1 $\pm$ 1 & 2.04 $\pm$ 0.04 & 2.36 $\pm$ 0.1 & 1 $\pm$ 1\\ \hline\noalign{\smallskip} \end{tabular} \end{table}  \end{document}   I'd like to keep the formating of the table above how it is. It is the caption that I'd like to change. I don't like how it seems to be hanging off the right side of the table. I think the caption should be aligned with the left side of the table. How would I do this?


How to make the lock screen look like the login screen?

Is there any way to make the login screen from a locked session (either by using Ctrl+Alt+L or from a screen timeout) look like the login screen when you're starting a new session? I hate that everything on the lock screen aside from the password input is black.


Why is my kernel not upgraded to the latest version?

My server runs Ubuntu 12.04.5 LTS. I try to keep it up to date as possible by doing  sudo apt-get update && sudo apt-get upgrade regularly. So far I was assuming that this would update the kernel as well. Today I noticed however that I am running a totally outdated kernel (uname-r gives 3.2.0-77-generic).   Doing sudo apt-get dist-upgrade didn't fix this. Then I tried sudo apt-get install linux-generic linux-headers-generic linux-image-generic - also with no success...  Why am I not receiving the latest kernels and how can I fix this?


$f(0)=0$ and $\lim_{x \to \infty}f(x)=0$. Show there's $x_0$ such that $f'(x_0)=0$

$f(0)=0$ and $\lim_{x \to \infty}f(x)=0$ and $f$ is differentiable in $\mathbb{R}$  How can I show there's $x_0$ such that $f'(x_0)=0$.  I know it's true since the values of f(x) for large enough x are close to 0 as much as I want. So, that means that the same value would have to appear at least twice, and then it can be concluded. However, I don't know how to show it formally.


Can monadic second-order logic characterize finiteness?

Is there a monadic second-order (MSO) theory, or even formula, T over some signature $\Sigma$, such that for every structure M for $\Sigma$, M satisfies T if and only if M is finite?  (Note that this question is different from a previous question that asked whether there is an MSO theory/formula that is only satisfied by an infinite model. The difference is that the latter formula may be satisfied by some infinite structures but not by other infinite structures of the same signature. Hence, such a formula does not characterize infiniteness. I am asking whether there is a theory/formula that is satisfied by all finite structures of some signature and by no infinite structure of that signature.)


How to turn a system of first order into a second order

So I have two equations   $X' = aX + bY$  $Y' = cX + dY$  I want to convert it back to a second order equation with the form   $X'' + \alpha X' + \beta X$ with $\alpha,\beta$ in terms of a,b,c,d.   I have been racking my brain for hours trying to go backwards from a reduction of order, but just can't seem to figure it out. Any help would be much appreciated!


Did all stories in "The Fountain" happen?

Did all three stories in The Fountain (2006) happen?  The "present" story, with the doctor and his dying wife presumably happened, that's not in question.  But what about the "past" timeline, with the conquistador and the search for the Fountain of Youth?  Is that just a visualization of Izzie's story that she was writing?  And what about the "future" timeline, with the astronaut who is presumably the doctor? Is this really happening?  There are links between the three.  When the conquistador finds the Ziggurat with the Tree of a Life, we see the astronaut from the future, who helps him pass to the garden.  At the end of the present timeline, a tree is planted that seems to be the tree in the space bubble, and the doctor's discovery of a cure for all disease seems to be what is keeping the astronaut alive.    Are they all happening?


I have shown the first part by using integration by parts, but at am at a lost as to how I will be able to employ that result to be able to prove the second part. Any help on how to proceed is seriously appreciated!  Edit: So I have looked at the induction process but am still confused. This is where I am at right now:  $$\left(\int_{a}^b g(x)f(x)=\frac{(-1)^{k}}{c^{k}}\int_{a}^b g(x)f^{(k)}(x)\right)\times\frac{-1}{c}$$ $$\frac{-1}{c}\int_{a}^b g(x)f(x)=\frac{(-1)^{k+1}}{c^{k+1}}\int_{a}^b g(x)f^{(k)}(x)$$ $$-\int_{a}^b g(x)f(x)=\frac{c(-1)^{k+1}}{c^{k+1}}\int_{a}^b g(x)f^{(k)}(x)$$ $$-\int_{a}^b g(x)f(x)=\frac{(-1)^{k+1}}{c^{k+1}}\int_{a}^b cg(x)f^{(k)}(x)$$ $$-\int_{a}^b g(x)f(x)=\frac{(-1)^{k+1}}{c^{k+1}}\int_{a}^b g'(x)f^{(k)}(x)$$  From here I have no idea how to produce $f^{(k+1)}(x)$ inside the integral, or whether this was the right way to approach solving this problem. Any pointers with how to proceed would be awesome!


We recently migrated from ArcMap 9.3 to 10.6.1. Since migrating we are experiencing issues with polygons changing after we hit finish sketch. This usually happens when there are curves or indents present.   I found  and was wondering if any of the answers solved the user's problem.  I am new to ArcMap.     We had our consultant's take a look and here is what they said they did, which seems to have mostly fixed the issue (for now): "I grouped all of the feature classes together and copied them from the original data frame to a new one in the same mxd. This kept them in the same drawing order. The new data frame was set to use a reference scale of 1:1500 and the maps table was added to the mxd (as user cmaccarthy). The maps table was rejoined to the data driven page feature class. The original data frame was removed which also removed the north arrow and the scale bar from the layout. A new north arrow and scale bar was added to the new data frame."  Does this make sense to any of you seasoned ArcMap users?  I'm still trying to understand what was wrong and how to fix it.


Can you flash any android device with "fastbood flash" command (of the adb)?

If an android device is rooted, and you have an image for it. Can you flash it with the "fastboot flash" command of the adb? If not, why? If yes, then what are all the "odin" tools for?  Thank you.


How do I create a shortcut to Gnome 3 Activities menu?

I created ~/.local/share/applications/bt.desktop file containing entry   [Desktop Entry] Name=btsync Exec==~/Progs/btsync Icon=un-reboot.png Type=Application Terminal=true;   Command ~/Progs/btsync works and btsync runs. How do I add this to Activities menu to be just clicked?


Ubuntu 16.04  I have some pretty large file so modifying it by hand is not possible. I'd like to change all occurences of  <tag1>true</tag1>   to   <tag1>false</tag1>


Do parenthetical statements change subject-verb agreement?

When I need to focus on a specific instance of a subject, but want to include a clarifying remark making it plural, I may set off that secondary statement like this:      The state of Florida (and 27 other states in the US) has/have Right-To-Work laws.   I'm not asking about parenthetical pluralization where you add an optional (s) to the subject when the quantity is not known (e.g. vendor(s) as in ), but a clarifying statement that is part of the subject (or maybe it isn't; that's what I'm asking).  So is the subject of this sentence above singular or plural? Which is the correct usage in my example?


What is the suggested edit review policy for tag-only edits now?

Now that the , I've been seeing tag-only suggested edits from 1500-rep users.  For example, one had the summary of 'burninating [tagThatWasRemoved]'.  It's very tempting to reject these as Too Minor, but I know that these users used to have a Retag privilege (and are obviously trying to participate in a burnination.)  What should we do for tag-only edits from high(er) rep users?


Hi i want to know exactly what is the vnc server launcher icon in my ubuntu 16 dock is doing when i press it, is that possible ?


How do I trust a self signed certificate?

I've generated a self signed certificate using openssl - it's entirely self signed and not signed by a self signed CA. I've imported it successfully into the nss database for use by browsers. I now want to trust it globally, so that tools like wget, curl etc... don't nag.  As per instructions elsewhere, I copied my certificate to /etc/pki/ca-trust/source/anchors/ and then ran "update-ca-trust extract". Unfortunately this seems to only work on CA certificates and not on single certificates. How can I achieve what I'm after? I know I can generate a self signed CA and sign my certificate with that, but I have reasons for not doing this.  I generated my certificate like this:  openssl genrsa -out server.key 4096 openssl req -new -key server.key -out server.crt openssl x509 -sha256 -req -extensions v3_req -days 3650 -in server.csr -signkey server.key -out server.crt -extfile /etc/pki/tls/openssl.cnf   Any help would be greatly appreciated!


"sudo apt-get update" Malformed entry error

I am getting this error while running sudo apt-get update:  E: Malformed entry 61 in list file /etc/apt/sources.list (Component) E: The list of sources could not be read.   Please provide any suggestions for getting rid of this error. Here is line 61 from sources.list:  deb http://archive.canonical.com/ partner


Proving the quotient of a principal ideal domain by a prime ideal is again a principal ideal domain

Please help me prove that      the quotient of a principal ideal domain by a prime ideal is again a principal ideal domain.   This was from Abstract Algebra


Group presentation for discrete Heisenberg group

I have to show that the discrete Heisenberg group H (with $a,b,c \in \mathbb{Z}$) has the presentation $H=\langle x,y\mid [[x,y],x]=[[x,y],y]=1 \rangle$.  I figured we write $H$ as a group of triples $H=\{(a,b,c) \mid a, b, c \in \mathbb{Z}\}$ with group operation defined as $(a,b,c)(a',b',c')=(a+a',b+b',ab'+c+c')$, but that is as far as I can get.


How can I go about creating a Kelvin’s Tetrakaidecahedron Cell / tetrakaidecahedron. I'm willing to try it using Geometry nodes, Python, etc.. For more background on what it is. Tetrakaidecahedron (Kelvin Cell)    I'm using Blender 2.93.0


Assigning a new material to a face makes it transparent

I'm experiencing the same problem as some other people have noticed in Blender 2.82 (win64) - when trying to assign material to a face, the surface suddenly becomes transparent. Here, in the left mesh, I have the grey material as the default. When I assign either of the material.salmon or material.tuna (both made from default materials with only the base color changed), the faces become transparent. In the block on the right, the primary material is material.tuna and the missing faces have been assigned material.salmon. I've created a small block to the side using only material.salmon to show that it's not the material itself.  In Vygintas' question , Martynas Žiemys recommends checking  blend mode (in my screenshot above, my blend mode is opaque) eevee vs cycles (my renderer is set to eevee) face orientation (all my faces are blue, facing outward)   In Mins' question  DarkSoul asks if alpha has been enabled. In my case it has not. I have tried a brand new project, with a default cube, and as soon as I assign a new material to a face it becomes transparent as well.  Any suggestions would be appreciated.


How to calculate Time Complexity in nested for loop?

What is the time complexity of the following snippet? and could you explain it?  for(int i=0;i<n;i++){   for(int j=0;j<=i;j++){     //print something   } }


What is the method to make a slideshow background on desktop?

It would be great if someone can let me know how do  make a slideshow background on  desktop?


Grounded conductor inside a uniform electric field

I am working on a textbook problem of a grounded conductor inside a uniform electric field. The textbook states that "grounded" means potential = 0. In my opinion, "grounded" should mean  "same potential as infinity". But in this case we can't set potential at infinity equal zero. So my question is, what is actually the meaning of "grounded". Am I right that it means "equal potential with infinity"? What does it mean by "grounded" in this question when the potential at infinity can't be set to zero?


Java - jar in command line with own parameters and own arguments

I cannot find easy solution to resolve my problem in Java. I have to run JAR file using command line with parametres.  I know how to do it like below, and it's working fine:  java -jar filename.jar argument1 argument2 etc.  For example: java -jar file.jar 50 10  But, what should I do, it I heve to use some parameters?  For example: java -jar file -width 50 -height 10  Is it possible?  [Edit] I cannot use external libraries.  Any similar answers are not so easy for beginner, some of them doesn't work for me. I'm not so stupid to open ticket first, I was looking for answer two days. But if you still think that this is duplicate just delete all posts in this topic :/.


I wanted to ask people who travelled to the USA and are not citizens. I’m British and this year went to the US for the first time.  I was with a group of 5 people and they are all British as well. So I was watching what kind of questions they were asked and it was all pretty normal and what you would expect: How long are you planning to stay? What’s your occupation? What are you planning to do in the US? and so on.  When it was my turn, I got really confused when the woman asked me: Tell me about the area where you live. I thought she meant my home address but she wanted me to describe how my neighbourhood was and what fun activities around it there were. After that she asked what my hobbies are. And that’s all!  I was like: What? Really?   Is it normal practice or do they decide what questions to ask based on the information they have about you?


Number of finite groups of a given prime order

How many possible group of order 3 are there?  I can only think of one such group.


How can I get a copy of a Canadian visa refusal letter?

I have applied for a Canadian Temporary Resident Visa (TRV); a previous paper application was refused in 2016. I have lost the copy of my refusal letter and want to submit it when I apply for my new visa. How how can I get the a copy of the 2016 refusal letter from Embassy?


Javascript - replace pattern but keep alphabets

I was wondering, what is the best way to implement the following case:  vm.elasticQuery = userQuery.replace(/~='[a-zA-Z]+'/g,':*[a-zA-Z]+*')   In other words, I would like to replace every pattern that looks like this ~='SomeLetters' to a pattern that looks like this :*SomeLetters*. Take into account that I do not want to remove/change the alphabets but only the outside.  Your help is appriciated.


SQL LIKE query failing - fatal error in prepared statement

I have the following code:  $countQuery = "SELECT ARTICLE_NO FROM ? WHERE upper(ARTICLE_NAME) LIKE '% ? %'"; if ($numRecords = $con->prepare($countQuery)) {     $numRecords->bind_param("ss", $table, $brand);     $numRecords->execute();     $data = $con->query($countQuery) or die(print_r($con->error));     $rowcount = mysql_num_rows($data);     $rows = getRowsByArticleSearch($query, $table, $max);     $last = ceil($rowcount/$page_rows); }   Which should work fine. However I receive the error that :  You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '? WHERE upper(ARTICLE_NAME) LIKE '%?%'' at line 1  If I put  SELECT ARTICLE_NO FROM AUCTIONS WHERE upper(ARTICLE_NAME) LIKE '% o %';   The query works fine. $table is defined above, and query is received from GET, and both are correct valid values. Why is this failing?  edit: changing to:  $countQuery = "SELECT ARTICLE_NO FROM AUCTIONS1 WHERE upper(ARTICLE_NAME) LIKE '% ? %'";  if ($numRecords = $con->prepare($countQuery)) {      $numRecords->bind_param("s", $query);   results in the error:   Warning: mysqli_stmt::bind_param() [mysqli-stmt.bind-param]: Number of variables doesn't match number of parameters in prepared statement in C:\Program Files\EasyPHP 3.0\www\prog\get_records.php on line 38  Commands out of sync; you can't run this command now  where as   $countQuery = "SELECT ARTICLE_NO FROM AUCTIONS1 WHERE upper(ARTICLE_NAME) LIKE ?";  if ($numRecords = $con->prepare($countQuery)) {      $numRecords->bind_param("s", "%".$query."%");   results in  Fatal error: Cannot pass parameter 2 by reference in C:\Program Files\EasyPHP 3.0\www\prog\get_records.php on line 38  and lastly  $countQuery = "SELECT ARTICLE_NO FROM AUCTIONS1 WHERE upper(ARTICLE_NAME) LIKE ? ";  if ($numRecords = $con->prepare($countQuery)) {      $numRecords->bind_param("s", $query);   will give only:  Commands out of sync; you can't run this command now  Is it impossible to use a paramter for a LIKE statament?


Null pointer Exception Android json parsing using Volley

I am using Json parsing using Volley concept,I got null pointer Exception  this line "AppController.getInstance().addToRequestQueue(jsonObjReq);" please give a solution. thank you  JsonObjectRequest jsonObjReq = new JsonObjectRequest(Request.Method.GET,Allbooksurl, null, new Response.Listener<JSONObject>() {     @Override     public void onResponse(JSONObject object) {         try {             String result = object.getString("status");                             Log.d(result, "result");                             String message = object.getString("info");                             Log.d(message, "message");                             JSONArray responserecentbooks= object.getJSONArray("recentbooks");                             for (int i = 0; i < responserecentbooks.length(); i++)                             {                                 JSONObject person = (JSONObject) responserecentbooks.get(i);                                 String id = person.getString("id");                                 String name = person.getString("name");                                     db.insertValue(id, name);   }          } catch (JSONException e) {             e.printStackTrace();         }     } }, new Response.ErrorListener() {     @Override     public void onErrorResponse(VolleyError error) {         //VolleyLog.d(TAG, "Error: " + error.getMessage());         Toast.makeText(getApplicationContext(),         error.getMessage(), Toast.LENGTH_SHORT).show();     } });  try {     AppController.getInstance().addToRequestQueue(jsonObjReq);     } catch (Exception e) {     e.printStackTrace(); }


How do I make a non-breakable paragraph?

According to  I can use ~ to make a non-breaking space. But how do I make a non-breaking paragraph?  Example:  Have a look at this table:  \begin{table}[h]    ... contents ... \end{table}  Next step is to ...   Here, LaTeX made a page break where the table was supposed to be, meaning the output went like this:   Have a look at this table:   Next step is to ...   (table contents)


I have an enum in which I store some UI element values that look like this:  const uiElementAttributes = {    1: {       id: 1,       color: 'red',       icon: 'icon-something.png'    },    2: {       id: 2,       color: 'yellow',       icon: 'icon-something-else.png'    },    3: {       id: 3,       color: 'blue',       icon: 'icon-this-item.png'    },    99: {       id: 99,       color: 'black',       icon: 'icon-black.png'    } };   I have a function that will return the correct object from the enum based on id passed to my function. My question is how do I check if a value is defined in an enum?  Here's the function:  const getAttributes (id) => {     // How do I check to see if the id is in the enum?    if(checkIfIdIsInEnum) {       return uiElementAttributes[id];    } else {       return uiElementAttributes[99];    }  };   UPDATE: I'm trying the suggested answer. It does look pretty straight forward but looks like when webpack transpiles my code to vanilla JS, it adds default at the end of my enum which is undefined. Any idea what may be causing this -- see below? As you can see, the id value I'm passing is 1 so it should be able to find the value 1 in my enum object.    And here's the actual enum object:   Here's the actual function code:    UPDATE 2: I resolved the issue by importing the enum within curly braces -- see below:  import {calendarEvents} from '../../enums/calendarEvents';


scponly has been  from Debian packages. I'm using scp to pull backups from a Debian 8 server and for previous Debian servers I've set the login shell to scponly in order to restrict the backup user. What is a good replacement shell for scponly, or what configuration can be made to sshd to provide security equivalent to scponly?


How to get the center line between two linestrings

Where is the track of a ship when it is shipping always in the center of the   between the coasts of Great Britain and France?   I started with 2 linestrings and I created a lot of points on the linestring with a . After that I created a distance matrix with Raster/Analysis/Proximity in QGIS. Finally I created an aspect raster from the output raster.     Is the red line really the "center line" between these two linestrings?  Is there a more efficient way to do this?


Alpha and Omega limit sets (dynamical systems)

What are all the possible $α$- and $ω$-limit sets of points for the linear system of equations $x'=Ax$ given by the following matrices $A$:  I guess I don't really know how to get started, Could I have some guidance? So I was told to calculate the eigenvalues (fine) and eigenvectors (I kind of forgot how to do that...)  I know that the $ω$-limit sets of points are the set of points that the system of equation approach as time goes to infinity, and the $α$-limit sets of points are the points approached as t goes to negative infinity.   $    A=   \left[ {\begin{array}{cc}    -4 & -2 \\    3 & 11 \\   \end{array} } \right] $   $λ_1=-10$ $λ_2=-5$  Since both eigenvalue are negative, this is a stable node, and the $ω$-limit set=0.  for $λ_1=-10$:  eigenvector $    =   \left[ {\begin{array}{cc}   1 \\    3 \\   \end{array} } \right] $  for $λ_2=-5$:  eigenvector $    =   \left[ {\begin{array}{cc}   2 \\    1 \\   \end{array} } \right] $   $    A=   \left[ {\begin{array}{cc}    1 & 1 \\    3 & 1 \\   \end{array} } \right] $   $λ_1=4$ $λ_2=-2$  Since one eigenvalue is positive and one is negative, it is not stable, so I can't use the same reasoning that I used above to find the $ω$-limit set... so I am not sure how to continue  for $λ_1=4$:  eigenvector $    =   \left[ {\begin{array}{cc}   1 \\    1 \\   \end{array} } \right] $  for $λ_2=-2$:  eigenvector $    =   \left[ {\begin{array}{cc}   -1 \\    1 \\   \end{array} } \right] $   $    A=   \left[ {\begin{array}{cc}    4 & 5 \\    -5 & -2 \\   \end{array} } \right] $   $λ_1=1+4i$ $λ_2=1-4i$  for $λ_1=1+4i$:  eigenvector $    =   \left[ {\begin{array}{cc}   -3/5-(4i)/5 \\    1 \\   \end{array} } \right] $  for $λ_1=1-4i$:  eigenvector $    =   \left[ {\begin{array}{cc}   -3/5+(4i)/5 \\    1 \\   \end{array} } \right]$


Aliases created in terminal not showing up in tmux. Why?

I create  a few aliases in terminal like below:  alias k=kubectl source <(kubectl completion bash)   And then I open a tmux session with command: tmux.  Now inside of tmux pane, when I try using the alias and expect the behaviour of source command run in terminal, it fails! :(  Why does this happen and how do I get it right?   The context is that I end up using multiple panes in tmux and I don't want to re-peat the same set of aliases creation again and again as I open every tmux pane. Possible?


Road tripping the US from UK with 90 day visa waiver more than once a year?

I'm currently on a road trip in the USA from the UK using the 90 day visa waiver program - I'm here for 87 days. Then I fly home, do some travelling around Europe etc. and want to fly back for approximately another 90 days about two months after I return home. From the US I'll possibly then be going on to New Zealand or Australia, if not home.  Does anyone know if this is okay?


How to change keyboard layout via keyboard shortcut?

I like to use both US and German keyboard layout but I find the process of switching between them via mouse tiresome. I want a keyboard-only solution.  Is there a predefined shortcut to change between multiple keyboard layouts, or if not, how could I define such a shortcut?


Quantiles of linear combination of independent $\chi^2_1$ random variables

I want to work out the quantiles of a linear combiation of chi square random variables.  Suppose $\lambda_i \in \mathbb{R}$ for all $i \in \{1,2,\cdots,n\}$ and $Z = \sum_{i = 1}^n \lambda_iX_i$ and $X_1,X_2,\cdots,X_n \stackrel{\text{iid}}{\sim} \chi^2_1$.  How can I work out the quantiles?


My neighbor keeps complaining about my music. How to soundproof my apartment?

I live in an old apartment building and the walls are thin. This is a problem because I love to listen to music -- sometimes at odd hours of the night. Yes, I can be an asshole in this way. But my neighbor bangs against the wall even when I'm being perfectly reasonable (his bedroom seems to share a wall with my living room). And it's not just the low frequencies that get to him. He knocks against the wall even when I turn the subwoofer off on my speakers, which are located on the opposite wall.   This is kinda unacceptable. This is my home! What can I do so that I can live in it the way I want?


How to get the interval after change of variables?

Let $D$ be the region bounded by $x+y = 1$, $x= 0$, $y = 0$. Use the result of  to show that $$\iint_D\cos\bigg(\frac{x-y}{x+y}\bigg)~dx~dy = \frac{\sin 1}{2} $$   and graph $D$ on an $xy$ plane and a $uv$ plane, with $u = x-y$ and $v = x+y$.   I got the Jacobian determinant is $\dfrac{1}{2}$, but how do I get the limits of integration for $u$ and $v$?


Proxy internet configured in /etc/apt/apt.conf but still not working

I am having an issue with proxy configuration in Ubuntu 16.04. I have done these steps but it is still not working.   Added the following lines to /etc/apt/apt.conf:  Acquire::http::proxy "http://10.16.0.2:8080/"; Acquire::ftp::proxy "ftp://10.16.0.2:8080/"; Acquire::https::proxy "https://10.16.0.2:8080/";  Executed these commands in a terminal:  export http_proxy=http://10.16.0.2:8080/ export https_proxy=http://10.16.0.2:8080/    When I run the command env | grep proxy, it shows the proxy settings.  Can you please help me resolve this issue?


Why was Snape known as the Half-Blood Prince?

After re-watching the movie, I realised that although Snape is revealed to be the 'Half-Blood Prince' - it is never explained as to how he got his name.   I assume 'Half-Blood' would be Half Muggle?   Anyone know the answer?


How to trigger when action in separate thread is complete?

EDIT2: This is not simply a cross-thread issue. I can update controls based on the above link, but it's just not working for Cursor or toolStrip. Not working means not working. I receive the usual error message, that the control is created in another thread so it can't be modified. Invoke is not an option for toolStrip.  On a button click I initiate some actions in a separate thread. It's necessary as it may take a while and my form usually gets frozen. My issue is that I have to modify a couple of controls, and set them back at the end, which I can't do from the worker thread. How to solve this?  private void button1_Click(object sender, EventArgs e) {     Cursor.Current = Cursors.WaitCursor;     toolStripStatusLabel1.Text = "Working...";     Thread thread = new Thread(query);     thread.Start(); } private void query() {     //actions     //here I need to set the cursor back to default     Cursor.Current = Cursors.Default; //but this is obviously not working     //and I have to set the label text to be "done"     //which is not working as well as invoke is not an option for toolStrips }   So I need some solution to do the above. Maybe some backgroundworker to "keep an eye" on the query() thread and action once it's done?  EDIT3: I can modify any attribute of any control with the below piece of code, except for toolStrip:  delegate void SetControlValueCallback(Control oControl, string propName, object propValue);     private void SetControlPropertyValue(Control oControl, string propName, object propValue)     {         if (oControl.InvokeRequired)         {             SetControlValueCallback d = new SetControlValueCallback(SetControlPropertyValue);             oControl.Invoke(d, new object[] { oControl, propName, propValue });         }         else         {             Type t = oControl.GetType();             PropertyInfo[] props = t.GetProperties();             foreach (PropertyInfo p in props)             {                 if (p.Name.ToUpper() == propName.ToUpper())                 {                     p.SetValue(oControl, propValue, null);                 }             }         }     }   SOLUTION: thank you Marc Gravell for the idea  private void query() {     //actions     Invoke((Action)(() =>     {         Cursor.Current = Cursors.Default;         toolStripStatusLabel1.Text = "done";     })); }


Is there a stated rule on use of infinitives in a sequence? Or is it a question of style?  For example,     It is vital for a viewer of this movie to listen for its main character's underlying position, to contrast it with those of the other characters, and ultimately to determine which view is true.


What is the proper hyphenation of "# and a half year old" in the context of age?

I'm trying to write "3 and a half year old," as in, "He is a 3 and a half year old dog".    I know a hyphen or two is supposed to go in there somewhere.  Per  , I suspect it should be "3-and-a-half-year-old", but that reads like death-by-hyphen, even if it is correct.  What's the proper way to hyphenate "# and a half year old" in this context?


Can't find C: and D: disks in ubuntu 16.04

I removed windows 10 and installed ubuntu 16.04.01. While installing I chose 2nd option (can't remember exact name but description was like erases all programs of all operating systems). Now I can't see contents of my C: and D. Can you help me.  Thanks in advance.


Determinant and alternating multilinear function

Let $V$ be a vector space of dimension $n$ with basis $\{v_1,\cdots,v_n\}$.  Let $\phi$ be an n-alternating multilinear map and $A:V\rightarrow V$ is any map (matrix form)  then we have to prove  that   $\phi(Av_1,\cdots,Av_n)=\det(A) \phi(v_1,v_2,\cdots,v_n)$  I could do this for $n=2$ but could not generalize it..  $$\phi(Av_1,Av_2)=\phi(a_{11}v_1+a_{12}v_2,a_{21}v_1+a_{22}v_2)$$  $$=a_{11}a_{21}\phi(v_1,v_1)+a_{11}a_{22}\phi(v_1,v_2)+a_{12}a_{21}\phi(v_2,v_1)+a_{12}a_{22}\phi(v_2,v_2)$$  As $\phi$ is alternating $\phi(v_1,v_1)=\phi(v_2,v_2)=0$ and $\phi(v_2,v_1)=-\phi(v_1,v_2)$.  So, we have   $\phi(Av_1,Av_2)=a_{11}a_{22}\phi(v_1,v_2)-a_{12}a_{21}\phi(v_1,v_2)=(a_{11}a_{22}-a_{12}a_{21})\phi(v_1,v_2)=\det(A)\phi(v_1,v_2)$  Now, i am having difficulty in generalizing this..  $$\det(A)\phi(v_1,v_2,\cdots,v_n)=\sum_{\sigma}sgn(\sigma)\Pi_{i} a_{i\sigma(i)}\phi(v_1,v_2,\cdots,v_n)$$  As $\phi$ is alternating we have $sgn(\sigma)\phi(v_1,v_2,\cdots,v_n)=\phi(v_{\sigma(1)},v_{\sigma(2)},\cdots,v_{\sigma(n)})$  So, we have  $$\det(A)\phi(v_1,v_2,\cdots,v_n)=\sum_{\sigma}\Pi_{i} a_{i\sigma(i)}\phi(v_{\sigma(1)},v_{\sigma(2)},\cdots,v_{\sigma(n)})$$  I am not able to relate this to $\phi(Av_1,\cdots,Av_n)$.  See that $A=(a_{ij})$..  Please provide some hints


How to read a textfile and saving it into an Array?

i would like to build a text data-cleaner in Java, which cleans the text from Smileys and other special charakter. I wrote a text reader,  but he stops after 3/4 of Line 97 and i just don't know why he does it? Normally he should read the complete text file (ca. 110.000 Lines) and then stop. It would be really nice if could show me where my mistake is.  public class FileReader {  public static void main(String[] args) {     String[] data = null;     int i = 0;     try {          Scanner input = new Scanner("C://Users//Alex//workspace//Cleaner//src//Basis.txt");          File file = new File(input.nextLine());          input = new Scanner(file);           while (input.hasNextLine()) {             String line = input.nextLine();             System.out.println(line);             data[i] = line;             i++;         }         input.close();     }     catch (Exception ex) {         ex.printStackTrace();     }      System.out.println(data[97]); }   }


Let $p$ be a prime. I want to show that $p | a^p - a$. I want to use induction.   I showed that this is true for the case $a = 1$. I'm having trouble with the bridge.


One word that describes customer, business and vendor

Is there one word that can describe the following words?     customer, business, and vendor.   I am working on a system, and I need to somehow fit all the above categories under one page. Currently, I have thought about putting them under "Entities", but this just doesn't sound right to me...


Which is correct comma usage in the following sentence?     It is time to shake, rattle , and roll.   It is time to shake, rattle and roll.


Why the primitive of a Riemann functions must be continuous?

Intuitively why must the primitive $F$ of a function $f$ that is Riemann integrable in $[a,b]$, be continuous in $[a,b]$?  Thanks


Postgres psql requires " FROM database.table" in sql statement

As a beginning learner of of Postgres I have created two different installations of a database where one requires a select statement to use ...FROM database.table... and the other only requires ...FROM table.... This was discovered in a Symfony project that could point to either installation. The project fails when pointing to the installation requiring ...FROM database.table... How can the requirement to include the database name with a table name be removed, and where might that requirement have come from? Background: The project began with a MySQL database. Since I wanted to learn Postgres I followed some great material found online to convert a MySQL database to Postgres. The MySQL data was in Windows, Postgres was installed on an Ubuntu 18 VM. (The conversion created the Postgres version on the VM.) The VM's database was dumped with pg_dump, the resulting sql file copied to Windows and restored there. All of this in MySQL 8 & Postgres 12. When the Symfony project points to the VM's database, all is fine and dandy. Pointing to the Windows copy fails because it cannot find any given table. On the VM I can use psql to query using ...FROM table.... In Windows with psql, even though SELECT current_database(); returns the name of the database, I must use ...FROM database.table... in a query.


Sort multiple csv files within a directory based on two columns

I have multiple .csv files in a directory called mydirectory. I want to sort all these files using some bash/awk/sed command first based on LeftChr column and then RightChr column and get the result.    >Id  LeftChr  LeftPosition  LeftStrand  LeftLength  RightChr  RightPosition  RightStrand 1979     chr1        825881           -         252      chr2        5726723            - 5480     chr2        826313           +         444      chr2        5727501            + 5492     chr5        869527           +         698      chr2         870339            + 1980     chr2       1584550           -         263      chr1        1651034            - 5491    chr14       1685863           +         148      chr1        1686679            + 5490     chr1       1691382           +         190      chr1        1693020            +   result    >Id  LeftChr  LeftPosition  LeftStrand  LeftLength  RightChr  RightPosition  RightStrand 5490     chr1       1691382           +         190      chr1        1693020            + 1979     chr1        825881           -         252      chr2        5726723            - 1980     chr2       1584550           -         263      chr1        1651034            - 5480     chr2        826313           +         444      chr2        5727501            + 5492     chr5        869527           +         698      chr2         870339            + 5491    chr14       1685863           +         148      chr1        1686679            +


Since installing Ubuntu I have been unable to install new packages, it has even failed to update. Below is a dump of connection error I see when I tried to install Wine:  E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/u/unixodbc/odbcinst1debian2_2.3.1-4.1_amd64.deb  Connection failed [IP: 91.189.88.152 80]  E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/universe/f/fonts-wqy-microhei/ttf-wqy-microhei_0.2.0-beta-2_all.deb  Connection failed [IP: 91.189.88.162 80]  E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?


How to spawn an entity behind another entity based on where it is facing

I am wondering how to spawn an entity behind another one but it does it based on where the entity is facing


Docker service not able to start anymore because of modprobe error

I just ran in some issues with my server running docker that I cannot fix myself. Im using Docker version 18.09.0, build 4d60db4 with Ubuntu 16.04.5 LTS. During the day I noticed, that my docker applications are not available, so I checked the service. When trying to start the docker service with service docker start, I get A dependency job for docker.service failed. See 'journalctl -xe' for details. When checking the journalctl, I get the following output:   systemd[1]: Starting Docker Application Container Engine...     -- Subject: Unit docker.service has begun start-up     -- Defined-By: systemd     -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel     --     -- Unit docker.service has begun starting up. systemd[1]: Starting containerd container runtime...     -- Subject: Unit containerd.service has begun start-up     -- Defined-By: systemd     -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel     --     -- Unit containerd.service has begun starting up. modprobe[811]: modprobe: ERROR: ../libkmod/libkmod.c:514 lookup_builtin_file() could not open builtin file '/lib/modules/4.4.0/modules.builtin.bin' modprobe[811]: modprobe: FATAL: Module overlay not found in directory /lib/modules/4.4.0 systemd[1]: containerd.service: Control process exited, code=exited status=1 systemd[1]: Failed to start containerd container runtime.     -- Subject: Unit containerd.service has failed     -- Defined-By: systemd     -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel     --     -- Unit containerd.service has failed.     --     -- The result is failed. systemd[1]: Dependency failed for Docker Application Container Engine.     -- Subject: Unit docker.service has failed     -- Defined-By: systemd     -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel     --     -- Unit docker.service has failed.     --     -- The result is dependency. systemd[1]: docker.service: Job docker.service/start failed with result 'dependency'. systemd[1]: containerd.service: Unit entered failed state. systemd[1]: containerd.service: Failed with result 'exit-code'. systemd[1]: Stopped Docker Application Container Engine.     -- Subject: Unit docker.service has finished shutting down     -- Defined-By: systemd     -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel     --     -- Unit docker.service has finished shutting down.   I tried restarting the server multiple times. Everything else on the system is running perfectly (Mail, Backups, Websites).  I have no experience with modprobe or the error in any case, so any detailed help would be appreciated.  Thanks in advance


please smallcaps bold tex coding provided?


What is the difference between ill-conditioned and ill-posed?

I have a question regarding these two terms. I undertand that for a problem to be well-posed, it needs to satisfy three conditions:   Existence of solution Unique solution Solution depends with continuity on the data (i.e. small perturbations of the data lead to small perturbations in the solution). I will refer to this as stability.   Then, once we have our well-posed problem, we can define whether it is well- or ill-conditioned, which as stability, also measures how much the solution changes with perturbations in the data.   Then, I am confused. Why are not all ill-conditioned problems ill-posed?  As an example, say we have to solve for x in a nonlinear continuous function, so our problem is $f(x)=0$. Then, if I found the condition number to tend to infinity, how could my problem ever be well-posed? My professor used this example in class and I was just mind struck.  Note: I have already gone through the post , which asks a slightly different question and has helped me a lot, but I still have a lot of confusion in me.


Which function (s) is(are) the k-th derivative of itself?

As I attempted to solve for a function that is the $k$-th derivative of itself where $k$ is some natural number, and generalise the result, I realised it gets very hard to prove anything. For $k= 1$, apart from trivial corner cases, it's the exponential function with any constant multiplied.  For $k=2$, along with the exponential function and it's reciprocal, it works for their sum along with any mixture by constants multiplied...  For any $k$, I guessed it should be of the form $e^{x w}$ where w is the $k$-th root of unity. And we can add all these $k$ terms for each root with constants multiplied.  While it is easy to verify it's satisfying the condition, it is beyond my scope to prove this is the only family of functions that satisfy it.  I am hoping for some interesting math at work here, and want to know if this is an already established fact. Also, how do I prove anything here?


Resume input from user after file is read

I have a program that reads user input—moves, it's a boardgame—from the user. Like so:  $ game enter your move:  # etcetera   The first N moves I need to repeat each time, so I put them in a text file, one line each. That works:  $ game < moves.txt   This works, but after these N moves, how do I return to input from the command line?  I realize this is probably a duplicate question, but I couldn't find it.


What are nether fortesses and how can I find them?

I have a few questions about the nether and nether fortresses:   How do you find Fortress in the Nether world? I spend many hours searching, all of them ended with death. I still couldn't find any Nether Fortresses. I am starting to doubt whether they even exist or not. Is Nether world almost limitless in size, like overworld, or is it limited in size? Is there only 1 Fortress in Nether world or are there many?


Gibbs Paradox - why should the change in entropy be zero?

The Gibbs paradox deals with the fact that for an ideal gas with $N$ molecules in a volume $V$ seperated by a diaphragm into two subvolumes $V_1,V_2$ with $N_1,N_2$ particles in each subvolume, removing the diaphragm gives a nonzero change in entropy, but the change should be zero.  I don't understand why (conceptually) the change of entropy in this situation is supposed to be zero. Why isn't it positive - after all, removing the diaphragm gives the particles more freedom and thus increases the 'disorder' of the system and with entropy being a measure of this 'disorder' it should too increase. Conversely, if I put more and more diaphragms into the container, I could potentially isolate each particle in its own subvolume and leading the system to be very ordered, so the entropy should be very small.  What is wrong with this way of thinking?


I have forgotten my iCloud username and password and need to turn Find My iPhone off. What can I do?

I have forgotten my Apple iCloud username and password. I can't remember the email address I used to sign up for the account. I need to turn off Find My iPhone before sending my iPhone in for servicing. My screen won't turn on at all so I don't know what else to do. I am being told that if I don't turn Find My iPhone off I can't get my phone fixed.  Is there any way I can recover my account information and turn off Find My iPhone in this situation?


where to find the best resource and support for tikz or latex developer?

I want to learn the latex coding for which i have searched multiple resource over the internet but did not got much of the idea and found very few resources over the internet about tikz or latex. so I want to know that is there any way to learn 3D drawings and circuit diagrams in tikz from level zero to pro level. Please name a resource for me that will help me learn these.


What is it called, when a situation is described in a complicated way instead of a simple one?

How do you say in English, when one describes the matter in a more complicated manner than it is? For instance, one has two options, A and B; and either of them has to be accepted. One wants to say the same matter in either of the following two ways:   Incorrectly failing to reject A.  Incorrectly accepting A.    Both 1) and 2) are equivalent statements, but in 1) the person is speaking in a complicated way. In other words, what a situation/way is called when it is being described in a complicated manner, instead of simple one. I hope, you understand what I want to ask.


How to change a span to look like a pre with CSS?

Is it possible to to change a <span> tag (or <div>) to preformat its contents like a <pre> tag would using only CSS?


Appending alphanumeric character to chapter numbers

I would like to append a character to the chapter number in some cases but not everywhere. The change should also be reflected in the table of contents. The chapter numbering should look like this:  1 2a 2b 3  How can I accomplish this?


Is it possible to to test for significance functions of regression coefficients in multiple regression

I have multiple regression with, say 3 independent variables: $Y=B_0+B_1x_1+B_2x_2+B_3x_3$ I would like to test if $B_2+3B_3$ is significantly different from zero, i.e.  $$H_0: B_2+3B_3=0$$ $$H_1: B_2+3B_3\neq 0$$ Can you please help to find appropriate way to test for significance of linear functions of two coefficients as in above example.  Many thanks in advance.


Good sources of examples for inspiration?

A bit of an OT-question from a newbie I'm afraid...  I just hope to find some entusiasts here who may know a source.  Here goes...  Are there any good sources of sample-documents that is suitable as inspiration?  Preferbly online, but books (especially free ebooks) will also do.  Old, handwritten, typeset/printed etc. samples, is also welcome.   Letters/envelopes, resumes/cv's, business/calling-cards, invitation, letters of introduction, business-letters, applications -- all of interest.  I'm not as interested in ready-made templates, but more of examples -- of the text (language, grammar, form), the layout, the fonts/penmanship -- of various writings over time (but mostly modern), as a source of inspiration.  I guess images (jpeg) would be the most obvouous way to present such stuff online.  So, any recomendations for sites or books for inspiration?  (That said, recomendations for websites for really good sources of templates for TeX/LaTeX and LyX -- and perhaps for Scribus, Open/Libre-Office and MS-Word -- would be welcommed too.)


I have a calculated column CRM ID with simple formula =CONCATENATE("CRM")&ID. The formula concatenates ID field with string CRM.  The issue is: Sometimes when user update list records, the CRM ID field doesn't show ID.It shows only CRM string. This issue is intermittent.   Please advice.


What Linux system would be best for my laptop?

Can I use Xubuntu 4.12 on a Intel  Celeron B800 processer on a laptop computer, the 14.4 Trusty Tahr or what Linux Os will work on a Aspire Laptop with a Intel Dual core B800 Processor with 1.5Ghz 2GB DDR3 memory 500 GB HDD


Apt "could not find a distribution template" error

When I attempt to install anything using apt-get I get the following error:  Traceback (most recent call last):   File "/usr/bin/add-apt-repository", line 60, in <module>     sp = SoftwareProperties()      File "/usr/lib/python2.6/dist-packages/softwareproperties/SoftwareProperties.py", line 90, in __init__     self.reload_sourceslist()   File "/usr/lib/python2.6/dist-packages/softwareproperties/SoftwareProperties.py", line 538, in reload_sourceslist     self.distro.get_sources(self.sourceslist)       File "/usr/lib/python2.6/dist-packages/aptsources/distro.py", line 90, in get_sources     raise NoDistroTemplateException("Error: could not find a " aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template   Any idea what this means and how to resolve it?


I'm using a map service which shows points for oil and gas wells.  It's useful to view them in ArcMap, but what I'd really like to do is be able to export them for use in another program, such as AutoCAD.    I don't have the option to right-click and export any of the layers.  I can't select the layers or view an attribute table.    Is this typical behavior with a map service, or is there some way I can export these points (with attributes) to a separate layer?  I'm using ArcMap 10.2 (Basic).  The map service is located .


Will old owner's title insurance be valid on refinance?

I was wondering: if I refinance my home, will I need a new owner's title insurance, or will the previous title insurance still be valid?  I suppose the new lender will require new lender's title insurance, but my owner's title insurance should still be valid. I have standard (non-enhanced) title insurance.


Can anyone identify this 90s teen-fantasy series, gems in backbone, big magic, evil king?

I've been trying to find this darn series of books for ages, I read them back in early 2001-02 and can't really remember much of them. I think there were 10-ish books, it was an easy read but a long series. On early publications, the covers, were mainly yellow, with small pictures of whatever happens in that book.  The book began with two siblings, a brother and a sister, running in a forest. She conjures up what can only be remembered as a golem type creature. He then uses a high magic 'blast' and wipes out the golem, knackering himself. His sister laughs at him for being 'powerful' but expending himself too much on one big magic blast. The beginning I remember vividly, the rest, not so much.  The story continues as a conflict happens, I believe two worlds are involved? The brother and sister are split up, but this is where my memory becomes vague.  The mechanics of the world seems that there are gems, or stones, set in the backbone, which in turn give access to magic. When the person uses them, they can draw too much, which ends up exhausting them. The 'big bad evil king' kills their father, and destroys their farm early on in the story.


Using cprotect and environments with multiple arguments

Is there a way to use the cprotect package's \cprotEnv command to use verbatim inside environments that have optional or multiple arguments?  My motivation for this question: I am working with exsheets, and want to use \cprotEnv so I can use pythontex's pyblock and pycode inside the exsheet's question environment.   Here's an example that shows the problem. Note that the question's subtitle and point value get messed up.  \documentclass{article} \usepackage{pythontex} \usepackage{exsheets} \usepackage{cprotect} \SetupExSheets{headings=block-subtitle}  \begin{document}  \begin{question}[subtitle = Codeless Question]{10} A question without code, worth 10 points. Subtitle and point values are in correct place. \end{question}  \cprotEnv \begin{question}[subtitle = Codeful Question]{15}  Now with PythonTeX: \begin{pyblock} print("hello, world!") sum = 0 for j in range(0,100)     sum += j print(sum) \end{pyblock}  \end{question}  \end{document}     Edit: I disagree that this question is a duplicate of  . The linked question is about using PythonTeX with exsheets. Although using PythonTeX with exsheets is the motivation for my question, I am asking specifically about the cprotect package. The linked question (and answers therein) do not mention the cprotect package at all.


How many clusters I should choose using spectral clustering?

I tried to cluster my data using spectral clustering algorithm. Before applying clustering algorithm, I used PCA on the data, which gave me 4 PC accounting for 95% of variation. After that I plotted eigenvalues for the clusters for two datasets (as I need to analyse them separately). From the plots it's not so obvious that 4 clusters is the right choice (index is a number of clusters). What would be your recommendation for choosing the number of clusters? Also, what is the best approach in choosing number of neighbors considered?Thank you.


Since dark matter is gravitationally "charged", by which I mean it has mass and attracts things, could it bunch together to form a planet?


For some reason, the election page does not seem to be detecting existing moderators correctly. Most notably the form to nominate yourself is not disabled like, I believe, it used to be. I was able to enter a nomination for myself in the  in spite of already :    If, on the other hand, I could earn double-diamond status please let me know in the next few hours so I can write up a real nomination before the voting starts!


Short story set in the near future where all wars are settled on the moon using automated machines?

Plot Details/Summary  Another one where I have only sketchy memories of the tale, I fear.   The setting for this one is the near future (from the writer's perspective, which I think was the 1970s).  Man's reached a point where bloodshed and loss of life are no longer necessary to settle conflicts.  Instead, all disputes are settled through an annual combat held on the surface of the moon, using the best combat machines each nation can come up with.  The protagonist, as I recall, is an engineer for the Americans.  He recollects past conflicts, and the circumstances for this years fracas.  Much of the combat is told from his observers' perspective.  The actual conflict is a rather clever affair, with a description of each team's designs and all the tricks and gee-whiz things they built into them.  The protagonist's team manages to prevail, when they managed to use an attack as a feint, with the real attack being a swarm of microscopic machines (they did not use the term nanites) that destroyed the opposing machine from the inside.  Timeframe/Other Details  I think this one dates from the 1970s.  I don't think it more recent, given my recollections of when I read it, and also the technology descriptions they used in it.  There is an outside chance that the combat is not between rival nations, but rival corporations.  That would change the premise of "man evolving beyond bloodshed", of course.  I think it's nations fighting, though.  I am almost 100% certain this was in a sci-fi magazine, not an anthology.


I am trying to light up 12V LED from 32V comes from another board. I have used voltage regulator (LM7812), but the problem is the regulator heats up very quickly even when I use 12V as input rather than 32!  Is there any special type of regulators that fit my application?   Thanks


Unable to pass double to a function with a template

I'm having trouble understanding why this code doesn't work when using a double/float. Most results from searching this error give me some sort of linkage error, but the code does sometimes work, so I'm not sure how to change how it's linked.  In a file header.h, I have:  template<typename any> void validInput(any &myInput, int=std::numeric_limits<int>::max());   This is a function that checks user input to make sure it's valid, and if it is, less than the given int (ex. validInput(variable,5) has the user input a value for variable, and checks if it's between 0 and 5)  I then define my function in a file like functions1.cpp:  #include <iostream> #include <limits> #include "header.h"  template<typename any> void validInput(any &myInput, int maxnum){     while((!(std::cin>>myInput))||myInput<=0||myInput>maxnum){     std::cout<<"\nInvalid input.\nEnter new number: ";     std::cin.clear();     std::cin.ignore(std::numeric_limits<streamsize>::max(),'\n');     } }   Then, in another function, say functions2.cpp , I want to use my validInput function, so I write something like this:  #include <iostream> #include "header.h"  void className::function(){     double checkThisValue;     std::cout << "Enter value to be checked: ";     validInput(checkThisValue); }   (I'm purposely not including the second 'int input' because I want it to default to std::numeric_limits<int>::max())  This code gives me the error: undefined reference to 'void validInput<double>(double&,int)'  But if I instead define checkThisValue as an int, then the code compiles and works correctly.  Why can't I pass doubles or floats to my function? How should I properly link the files?  Edit: I can't answer the question because it was closed, but I needed to "explicitly instantiate" the template. The duplicate question deals with classes, so the syntax was a little different. The solution was adding the following line in the functions1.cpp file:  template void validInput<double>(double &myInput, int maxnum);


This is my first post on this forum :)  I've been trying for a while to solve this problem about symmetric difference of two sets:     Given two sets $A$ and $B$, we call symmetric difference of $A$ and $B$ the following:      $$A\mathrel{\triangle}B = (A\cup B)-(A\cap B)$$      Show that if $A\mathrel{\triangle} B = \emptyset$, then $(A\subset B) \vee (B\subset A)$.   I don’t know where to start; thank you very much for the help :)


Singletons closed in infinite T1 Product Topology?

[Similar to , but I think the question I'm asking isn't covered]  This is part of a problem in section 9.2 of S. Morris's "Topology Without Tears".  I'm confused about  the following construction:  Let $(X_{i}, \tau_{i})$ be $T1$ $\forall i \in \mathbb{N}$.  Then, the product space $\prod_{i \in \mathbb{N}}(X_i, \tau_i)$ should also be $T1$.  In a $T1$ space, all singletons [i.e., points of the form $(a_1,...,a_n,...)$] are closed.  Hence, the complement of a singleton is open.  (**)Thus, the complement of a singleton in this space is of the form $\prod_{i \in \mathbb{N}}O_i$ where $O_i\in \tau_i$ and $O_i\not= X_i$.  Question:  Shouldn't this open set be impossible in the Product Topology?  [Edit:  Answer below, thanks to William Elliot.  The problem is with the statement (**).]  Morris defines the Product Topology in such a way that you can't form open sets of the type described in (**).  Specifically, in a basis set there can only be a finite number of factors subsets that are not equal to the entire factor set (i.e., only a finite number of $O_i\not= X_i$).  I understand that we might not be using the product topology in this problem, since it's not the only common topology for infinite products (cf. ).    But if that's so, how am I supposed to know when I should be using the Product Topology or some other topology?  Am I supposed to assume the former as a default unless I run into trouble and then switch?


Recalculating full extent of File Geodatabase feature class?

I have a featureclass in an Esri file geodatabase. When I edit the features using the editor in ArcMap, and I delete most of my features and keeping only the ones in the middle, the zoom to layer command doesn't work as expected. Instead of zooming to the extent of the features remaining in the feature class, the extent will be the former one (containing all deleted features). When reviewing the extent values in the properties dialog for the feature class, I can clearly see the old values. So the edit session doesn't seem to alter the full extent values.  Is there a way to recalculate these values?  I am pretty sure that this problem should occur to everyone editing features in ArcMap...


Is there a good way to determine if a person has a popup blocker enabled? I need to maintain a web application that unfortunately has tons of popups throughout it and I need to check if the user has popup blockers enabled.  The only way I've found to do this is to open a window from javascript, check to see if it's open to determine if a blocker is enabled and then close it right away.  This is slightly annoying since users who do not have it enabled see a small flash on the screen as the window opens and closes right away.  Are there any other non-obtrusive methods for accomplishing this?


Making holes in an object using an image as a reference

I have an object already created in blender, a tree, or a human, or a pipe.. and I need this to be drilled with multiple holes.   The holes are painted in an image, that is, it is an image that has a repeating an images pattern (they can be circles, squares, or any form).  Here are some examples for drilling-pattern: