I'd like to change various log files (particularly auth.log) to retain info for anywhere from the last 30-90 days.  Right now it only has about 4 days worth of info.  How do I modify these settings via the GUI or command prompt?  Thanks!


I want to install Go-Servre on my Ubuntu 14.04and I'm following this doc    According to the doc this is the procedure:  $ echo "deb http://dl.bintray.com/gocd/gocd-deb/ /" > /etc/apt/sources.list.d/gocd.list $ wget --quiet -O - "https://bintray.com/user/downloadSubjectPublicKey?username=gocd" | sudo apt-key add - $ apt-get update $ apt-get install go-server   However, I have problem in first line when I run the command and I get following reply:  $ echo "deb http://dl.bintray.com/gocd/gocd-deb/ /" > /etc/apt/sources.list.d/gocd.list bash: /etc/apt/sources.list.d/gocd.list: Permission denied   I even tried to change the permission but still I'm getting error:  $ sudo chmod +x  /etc/apt/sources.list.d/gocd.list [sudo] password for hesam:  chmod: cannot access ‘/etc/apt/sources.list.d/gocd.list’: No such file or directory   Any idea would be appreciated. Thanks.


Problem: Show that the set of polynomials with rational coefficients is countable.   Idea: We know that the set of rational numbers is denumerable. This implies that the set of rational numbers is countable. We also know that the degree that each polynomial can be is a natural number (I think, and I'm not sure how to word this.) Therefore, I think we can reason through this somehow, by showing that the plane $Q X N$ Is denumerable. I'm just not sure how to do this. Any ideas.  Note: this is for my introduction to proofs class study quide. So, I would prefer not to go to over the top.


Why didn't the Ministry use Veritaserum to question criminals?

The truth potion (Veritaserum) is one of the most powerful potions that forces the drinker to speak truth. Then why didn't Ministry used it in any criminal cases instead of long discussions and proceedings? I know there are antidotes to the potion (Dumbledore tells Harry in the 6th book , "Slughorn might have been carrying antidote to veritaserum ever since I asked him about the memory"), but why don't keep criminals in custody until the effect of the antidote wears out and then make them drink veritaserum. Won't that result in perfect judgement?


Java swing DropbBox SDK NullPointerException

After reading the documentation to implement the Dropbox library in my project, I want the user, when confirming the authorization through the browser, his Access Token is passed directly to the app, without the user making copy/paste of the code. The documentation is unclear on how to use HttpServletRequest and HttpSession and therefore I get this error.  public class DropboxGenerateToken {  public static DbxAuthFinish authFinish; public static DbxAppInfo appInfo; public static DbxAuthInfo authInfo; public static DbxRequestConfig config; public static String ACCESS_TOKEN = "";    public static void main(String args[]) throws DbxException, FileNotFoundException, IOException {      String accessToken = "";     String userLocale = null;      // Select a spot in the session for DbxWebAuth to store the CSRF token.     HttpServletRequest request = null;     HttpSession session = request.getSession(true);      String sessionKey = "dropbox-auth-csrf-token";     DbxSessionStore csrfTokenStore = new DbxStandardSessionStore(session, sessionKey);     String redirectUri = "http://my-server.com/dropbox-auth-finish";       DbxRequestConfig requestConfig = new DbxRequestConfig("text-edit/0.1", userLocale);     DbxAppInfo appInfo = new DbxAppInfo("mycode", "mycode");     DbxWebAuth auth = new DbxWebAuth(requestConfig, appInfo);       // Build an auth request     DbxWebAuth.Request authRequest = DbxWebAuth.newRequestBuilder()             .withRedirectUri(redirectUri, csrfTokenStore)             .build();      String authorizeUrl = auth.authorize(authRequest);      System.out.println("1. Go to " + authorizeUrl);     System.out.println("2. Click \"Allow\" (you might have to log in first).");     System.out.println("3. Copy the authorization code.");      try {         URL authenticationURL = new URL(authorizeUrl);         Desktop.getDesktop().browse(authenticationURL.toURI());      } catch (Exception e) {         // TODO Auto-generated catch block     }     String code = JOptionPane.showInputDialog(DropboxGenerateToken.class, "Inserta el codigo de verificación.");     System.out.println(code);     code = code.trim();      try {         DbxAuthFinish authFinish = auth.finishFromCode(code);          accessToken = authFinish.getAccessToken();      } catch (Exception e) {      } }}   this is the error  Exception in thread "main" java.lang.NullPointerException at login.DropboxGenerateToken.main(DropboxGenerateToken.java:61)   this line:HttpSession session = request.getSession(true);


Why is the short primitive type significantly slower than long or int?

I tried to optimize the RAM usage of a Android game by changing int primitives to shorts. Before I did this I was interested in the performance of the primitive types in Java.  So I created this little test benchmark using the caliper library.  public class BenchmarkTypes extends Benchmark {      @Param("10") private long testLong;     @Param("10") private int testInt;     @Param("10") private short testShort;       @Param("5000") private long resultLong = 5000;     @Param("5000") private int resultInt = 5000;     @Param("5000") private short resultShort = 5000;      @Override     protected void setUp() throws Exception {         Random rand = new Random();          testShort = (short) rand.nextInt(1000);         testInt = (int) testShort;         testLong = (long) testShort;     }      public long timeLong(int reps){         for(int i = 0; i < reps; i++){             resultLong += testLong;             resultLong -= testLong;                  }         return resultLong;     }      public int timeInt(int reps){         for(int i = 0; i < reps; i++){             resultInt += testInt;             resultInt -= testInt;                    }         return resultInt;     }      public short timeShort(int reps){         for(int i = 0; i < reps; i++){             resultShort += testShort;             resultShort -= testShort;         }         return resultShort;     } }   The results of the test surprised me.  Test circumstances  Benchmark run under the Caliper library.  Test results    Int 2.365   ns  Long    2.436   ns  Short   8.156   ns  Test conclusion?  The short primitive type is significantly slower (3-4~ times) than the long and int primitive type?  Question   Why is the short primitive significantly slower than int or long? I would expect the int primitive type to be the fastest on a 32bit VM and the long and short to be equal in time or the short to be even faster. Is this also the case on Android phones? Knowing that Android phones in general run in a 32bit environment and now the days more and more phones start to ship with 64bit processors.


Left aligning and breaking equations in cases environment

I have a equation that needs to be left aligned within the cases environment. Here's my code so far, which does not work:  \documentclass{article}  \usepackage{amsmath}  \newcommand{\diff}{\mathop{}\!d} \begin{document}  \begin{equation}\label{eq:algin}  \begin{aligned} \begin{cases} u_i^{k+1}(x)=\arg \min_{u} \Bigg\{ {}& \lambda\sum_{i=1}^{N}\int_{\Omega} r_i(x)u_i(x)\diff x  + \frac{\gamma}{2} \sum_{i=1}^{N}\int_{\Omega} \left( u_i(x)-m(x) \right)^2\diff x  + \frac{\mu}{2}\int_{\Omega} \left( u_i(x)-m(x) \right)^2\diff x \Bigg\}, \\ f'(x_{0})=0 \text{ : } z=f(x_{0}) \text{ is de horizontale raaklijn.} \\ \lim_{x\to x_{0}} f'(x)=\pm\infty \text{ : } x=x_{0} \text{ is de verticale raaklijn.} \\ g(x_{0}){R}_{0} \text{ : } z-f(x_{0})=f'(x_{0})\cdot(x-x_{0})   \text{ is de raaklijn.} \end{cases} \end{aligned} \end{equation}  \end{document}    My wrong output is:   I'm trying to get output like this:    This is my expected result    Thanks egreg. I found that when equation is so long (we cut it before), the equation number will automatically locate in bottom. Could we can relocate it in middle?  Code  \documentclass{article}  \usepackage{amsmath,mathtools}  \newcommand{\diff}{\mathop{}\!d} \DeclareMathOperator*{\argmin}{arg\,min}  \begin{document}  \begin{equation} \begin{dcases} u_i^{k+1}(x) \!\begin{multlined}[t] =\frac{-\lambda r_i(x)+\gamma \bigl( r_i(x)+b_i(x)\bigr)+\gamma \bigl( \alpha-\beta\bigr)}{\theta}\\  -\frac{\sigma \bigl( -\lambda\int_{i=1}^N r_i(x) \diff x + \sigma\sum_{i=1}^N \bigl( r_i(x)-b_i(x)\bigr) +\gamma N \bigl( 1-r_i(x)\bigr)\bigr)}{\gamma\bigl( \sigma N -1\bigr)}, \end{multlined} \\[1ex] f'(x_{0})=0 : z=f(x_{0}) \text{ is de horizontale raaklijn.} \\[1ex] \lim_{x\to x_{0}} f'(x)=\pm\infty : x=x_{0} \text{ is de verticale raaklijn.} \\[1ex] g(x_{0}){R}_{0} : z-f(x_{0})=f'(x_{0})\cdot(x-x_{0})   \text{ is de raaklijn.} \end{dcases} \end{equation} This is text \end{document}


What is the word for words that oppose all the things they describe?

I am looking for a word but I'm not sure if it's a real word or if I just don't know it. I am discussing George Orwell's novel, 1984, and how the titles oppose all the things they describe. For instance, the "Victory Cigarettes" fall apart and are horrible, not the victor of anything. The "Victory Mansions" are small and crappy apartments. The word "victory" is describing something that is the opposite of victory. It's like a euphemism but instead of using it to lighten the blow, is is completely wrong and opposite of what it really is.


Unique Problem. Re-installing the same iso file of Ubuntu 2020 through installer and booting is not taking place

Actually I installed Ubuntu alongside Windows 10 a day before. Ubuntu was working little bit slow. Then I uninstalled Ubuntu but grub issue was there due to which I was unable to use Windows. Then I made Windows bootable file and then repair my computer....then troubleshoot, and command prompt...and wrote these commands: bootrec.exe /FixMbr and then enter...again bootrec.exe /FixBoot and enter....and then Windows was loading properly.... Now again I am trying to install the same ISO file but this Ubuntu installer is not booting. Here is the image:


Peer-review in ‘fully peer-review journals’

If, after 28 months of waiting and the third request, I within a few hours receive “Reviewer # 1: Sorry that this review took so long. However, this paper does not contain any results of value”, I know that the referee read only the author's name and, possibly, the title of the article.  If I get the message "How about you try to establish a reputation for yourself on several less serious questions before claiming to solve * both * the Goldbach and Twin Prime problems?", Then I begin to think that the solution of these problems is reserved for the author of this message And he was promised to show “the Book". Is it ethical to give such advice?  If they write to me “Yes, I will not accept this work. ... From very general considerations, I believe that you have a mistake in your work. Formally, of course, I have to specify it, but I do not want to do it because of saving my own time”, I understand that they read the work, they did not find any mistakes and  refuse, just in case.   Of course, the referee can save two hours of his time, and as a result, the author loses months, years, and sometimes, and all his life. Obviously, in order to recognize the results of my work, courage is needed. But, if “Reviewers' comments: ... I suggest rejecting it on grounds that it does not meet the standards of mathematical correctedness practiced by our journal”, I do not understand what is more important, form or content. I’ve always believed that the result is more important.  Sometimes they refer to feelings (“the referees felt given the methods you are using, it is hard to imagine that the results you claim are valid”), or belief (“I'm sure that your "elementary evidence" of Goldbach and the twins have mistakes, many years of experience does not allow me to believe in them, but I also can not spend time searching for them”).   But I'm not interested in the feelings of referees who did not even get acquainted with the proposed method and, I did not ask anyone to take my word for it. I offer the proof.  This is only part of the disclaimer, but there is not a single review or indication of an error. Is it ethical for judges to make a conclusion about a job without reading it, but only on the basis of their feelings and assumptions about what is written in the article?   Is every referee a priori smarter than any author to such an extent that in several phrases pulled out of context, can determine where the author's thought can turn?  Should not the referee read the article at least until the first error and point to it? And if the error is not found, recognize the work as correct. Otherwise, he should declare himself incompetent and ask the editor to transfer the article to another referee Really all mathematicians not only do not see, but also do not want to see beyond their nose?   How can the author get an honest, unbiased assessment of his work in this situation?


Remotely uninstall an app via Play Store

Is it still possible to remotely uninstall an android application from a web browser via the Google Play Store?  According to the question that this is a supposed duplicate of, this was possible in 2012, but it seems to no longer be there.


Why isn't Hawking radiation of negative energy?

Hawking radiation is explained by particle-antiparticle creation. A particle with positive energy escapes away from the black hole while the particle with negative energy falls down.  Why isn't that vice versa? A particle with positive mass should fall down due to gravity force, while the negative mass is to be repeled by the gravity force?  Edit: I think was wrong about the gravity repeling the negative mass. Even though the force is directed away from the black hole, a=F/m so the particle still falls down the black hole! Now I see no point why any particles should be escaping more than the other?


I have searched alot for the name of those tags and how to implement it, some sites apply it as their menu, others as categories and tags. So I want to know how to add it to a website


* before iterable inside a print() in Python

I have a list of names and I want to print each element of the list in a different line without a for loop. So, after some research I found this example: print(*names, sep='\n'), witch results in exactly what I want. But what does this * character before the list name means?


Prove there exists two sub-sets of indices $I,J\subseteq [2n]$ such that $\sum_{i\in I}a_i=\sum_{j\in J}b_j$

Let $(a_i)_{i=1}^{2n}, (b_i)_{i=1}^{2n}$ be two sequences of size $2n$ of integers such that for every $1\leq i \leq 2n$: $1\leq a_i \leq n, 1\leq b_i \leq n$. Prove there exists two nonempty sub-sets of indices $I,J\subseteq [2n]$ such that $\sum_{i\in I}a_i=\sum_{j\in J}b_j$.  I tried to work with pigeonhole principle, but got stuck. Any help appreciated.


Unity 3D: How to stop/reset 2D sprite animation after releasing key?

Im following a tutorial to create animations with a 2D sprite character. But i put in my own. Which has 8 animation positions.  For some reason when my guy walks around,then stop, the walkings animation continues to play out then resets to idles.  I need the animation to reset as soon as i release the key.   Im using Animator if you are wondering.  EDITED:  Original video with all the keys for each animations.   Second video with only 2 keys per animation, it was a test.   Code Snipet!  using UnityEngine; using System.Collections;  public class PlayerMovement : MonoBehaviour {  public float speed;  private Animator _animator; private Rigidbody2D _rigidbody2D;  // Use this for initialization void Start () {     _animator = GetComponent <Animator>();     _rigidbody2D = GetComponent <Rigidbody2D>(); }  // Update is called once per frame void Update () {     CheckDirection(); }  void CheckDirection(){     if (Input.GetKey (KeyCode.A))     {         WalkAnimation(-1,0,true);     }     else if (Input.GetKey (KeyCode.D))     {         WalkAnimation(1,0,true);     }     else if (Input.GetKey (KeyCode.W))     {         WalkAnimation(0,1,true);     }     else if (Input.GetKey (KeyCode.S))     {         WalkAnimation(0,-1,true);     }     else      {         _animator.SetBool("Walking", false);     } }  void FixedUpdate (){     Move(); }  void Move(){     float dirX = _animator.GetFloat("VelX");     float dirY = _animator.GetFloat("VelY");     bool walking = _animator.GetBool("Walking");      if (walking)     {         _rigidbody2D.velocity = new Vector2(dirX,dirY) * speed;     }     else     {         _rigidbody2D.velocity = Vector2.zero;     } }   void WalkAnimation (float x, float y, bool walking){     _animator.SetFloat("VelX", x);     _animator.SetFloat("VelY", y);     _animator.SetBool("Walking", walking); }  }


How can I display tool tips on a touchscreen or is there a better way?

On a PC with a mouse one would use the hover state. On touchscreens what's the best way to provide this kind of information?


PHP, PDO, MySQL - Multiple INSERT vulnerable to injection?

In my application (PHP) I am going to request ~3000 rows from an API and insert these in a MySQL table using the PDO driver.  Although the data to be inserted isn't user input, it is out of my hands how the data is handed to me.  Because it is important that the ~3000 inserts go as fast as possible I want to use a multiple insert like so (?,?,?),(?,?,?),....  I was wondering whether doing a multiple insert has effect on the vulnerability for a MySQL injection? Because I 'build' the query using PHP code.  My 'test' code is:  <?php      class DBCon {         private static $instance = null;         private $db;          private function __construct() {             $this->db = new PDO('mysql:host=localhost;dbname=test;charset=utf8mb4', 'root', '');             $this->db->setAttribute(PDO::ATTR_EMULATE_PREPARES, false);             $this->db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);         }          public static function getDB() {             if (self::$instance === null) {                 self::$instance = new self();             }             return self::$instance->db;         }     }      function createItems($array) {         $sql = 'INSERT INTO `table`(`text`, `int`, `bool`) VALUES ';          $insertArray = array();         foreach ($array as $arrayItem) {             $sql .= '(';             foreach ($arrayItem as $arrayItemItem) {                 array_push($insertArray, $arrayItemItem);                 $sql .= '?,';             }             $sql = rtrim($sql, ',');             $sql .= '),';         }         $sql = rtrim($sql, ',');          var_dump($sql);         var_dump($insertArray);          try {             $query = DBCon::getDB()->prepare($sql);             $query->execute($insertArray);         } catch (PDOException $e) {             echo '

query failure';         }     }      $array = array(array('a piece of text',123,0),array('a piece of text',123,0));      createItems($array);   $sql contains:  index.php:36:string 'INSERT INTO `table`(`text`, `int`, `bool`) VALUES (?,?,?),(?,?,?)' (length=65)   $insertArray contains:  index.php:37: array (size=6)   0 => string 'a piece of text' (length=15)   1 => int 123   2 => int 0   3 => string 'a piece of text' (length=15)   4 => int 123   5 => int 0


How do I unmount a USB that contains a TrueCrypt partition?

Since I removed the USBs drive letter for the raw partition per the instructions , Windows 7s "Safely Remove Hardware..." taskbar icon no longer detects my USB. So, how should I safely remove my USB?  There doesn't seem to be anything on this problem in the TrueCrypt .


How to suppress function output in python

Suppose I have a very simple function: def myFunction(arg1, arg2):     return arg1, arg2  Now if I only want to access the second argument, can do I something like: none, arg2 = myFunction(arg1, arg2)  ?


I'm trying to get different build subfolder using cmake that has the same name as the current branch (on windows 10). I've tried this  set branch=git rev-parse --abbrev-ref HEAD cmake --build build\%branch% --config Release   but it doesn't evaluate before usage in cmake, it just dumps it there. This makes the whole approach futile because the following is not a valid cmake command:  cmake --build build\git rev-parse --abbrev-ref HEAD --config Release   Error info:  C:\Users\...\repos\proj_name>cmake --build build\%branch% --config Release Unknown argument rev-parse Unknown argument --abbrev-ref Unknown argument HEAD Usage: cmake --build <dir> [options] [-- [native-options]]   Is there another way to do this? I'm trying to avoid writing a script - which is the proposed solution linked as duplicate - because I need a oneliner. Switch branch and run the build in such a way that the build folder follows this structure build/branch-name/. Maybe cmake can do this internally, detect the git branch name and then specify the build folder?


I am capturing images from a web came in 1 second intervals. I would like to find a way to create a video of these images. Since the camera is still and there can be long periods of time when the picture will not change, I'd like to be able to discard what are essentially duplicate images to be able to shorten my resulting video.


How far gravitational waves like the ones recently detecty are dangerous for life?

I have read that gravitational waves can tear matter appart. I imagine you have to be fairly close to the event to be affected. Do we have a rough estimation of lethal distance ?


How many users are supported on SQL Server 2012 Express?

I would like to say that i have gone through some of the sql blog and MSDN BOL, but still there is some confusion in mind like.   The limitation of SQL Server 2012 Express is 10 GB. It is the limitation of instance based or per database based? No. of connections for SQL Server 2012 Express: the number of connections is limited or unlimited.  If I shall use Server version of OS then what can be the max concurrent user connections. The limitation comes from DB level or OS level. If I shall use Windows Server 2012 R2 with SQL Server 2012 Express SP1 then what will be the max concurrent connections? How many databases can we keep under the hood of single SQL Server instance.   Any help or suggestion would be appreciated


Finding the center of a multipart rectangle

I try to start an arrow from the center of a split rectangle. A tip here suggested that I should compute the center myself. I tried doing so, but it is still no good. Why does it have to be so difficult?        \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{arrows,calc,positioning,shapes.multipart} \begin{document}\begin{tikzpicture}       \node[draw,circle] (a) {a};       \node[draw,circle, right=of a] (b) {b};       \node[draw,         rectangle split,          rectangle split parts=2,          rectangle split horizontal,above=of b] (c) {}; \coordinate (c1) at ($(c.west)!.5!(c.one split)$); \coordinate (c2) at ($(c.one split)!.5!(c.east)$); \draw[*->,>= stealth] (c1)--(a.north); \draw[*->,>= stealth] (c2)--(b.east); \end{tikzpicture}\end{document}


I have read many threads regarding misplaced floats in LaTex, however, I haven't found a satisfactory answer yet. As shown by the code segment, Fig 1 is supposed to be after the "In order to test ..." paragraph and before the "Using the digital ..." paragraph. However, when it is placed in some random location in between the text of the paragraphs. Any help is appreciated.  \documentclass[aps,reprint,nofootinbib]{revtex4-1} \usepackage{graphicx} \usepackage{gensymb} \usepackage[section]{placeins} . . . In order to test...   \begin{figure}[h] \includegraphics[scale=0.65]{1} \caption{Circuit used to test Kirchhoff's laws.} \end{figure}  Using the digital...   EDIT: I just noticed that the location at which the figure is supposed to be is too small. However, shouldn't the placeins package take care of this issue? Essentially what LaTex is doing is filling that otherwise empty space with the text of the next paragraph, the one which is supposed to come after the figure.


Unable to access a directory despite belonging to a group with write permission

I am learning basic file permission in Linux and tried actions below. I have a folder "music" to which group "music" has wxr permission. I have user "finxxi" added into group "music".  When user "finxxi" tries to create files in folder "music", "Permission denied" is reached. Since user "finxxi" belongs to group "music" which should has wxr permission, why permission denied?      finxxi@MyST ~ $ ls -la music     total 8     drwxrwxr-x  2 root   music  4096 Dec  2 06:47 .     drwxr-xr-x 25 finxxi finxxi 4096 Dec  2 06:47 ..     finxxi@MyST ~ $ members music     finxxi     finxxi@MyST ~ $ cd music     finxxi@MyST ~/music $ > test.txt     bash: test.txt: Permission denied


Why isn't Ubuntu moving its repositories to old-releases anymore?

Since 17.10 Ubuntu has its archives still in Ubuntu Archives instead of old-releases. Is there any reason for this?


Change color of marks when plotting from csv

I have a CSV file with data which I want to plot, I can do this by using:  \begin{tikzpicture} \begin{axis} \addplot table [x=n, y=fn, col sep=comma, only marks] {dataratio.csv}; \end{axis} \end{tikzpicture}   This does the job but my dots are colored blue, how do I make them black? Just adding color=black doesn't do anything for me.


How do I access my SHiFT code golden keys in the Pre-Sequel?

I've been dutifully entering Shift codes since the Pre-Sequel launched, and I should have over 20 saved up by now.   When I finally got around to visiting the golden key chest, I saw that I had only 9 keys. I redeemed a new code from today that should have added one key, but upon visiting the chest again I still had only 9. When I opened the chest, my count went down to 8 as expected.  Is there a cap on golden keys? Or is something else going on here?


What is the difference between zero-inflated and hurdle models?

I wonder if there is a clear-cut difference between the so-called zero-inflated distributions (models) and so-called hurdle-at-zero distributions (models)? The terms occur quite often in the literature and I suspect they are not the same, but would you please explain me the difference in simple terms?


threads vs subprocess for handling requests in a server using c

Are threads more efficient or creating a sub process more efficient in c where execution of parts of code is independent of other and which is efficient while writing code for a server to handle requests  i am trying to figure out weather sub process is more useful or threads, when we have to execute  parts of single program in parallel on a server based on the requests from clients. i have read both disadvantages and advantages of threads and sub process.When i have parts of code that have to be executed in parallel and each part is independent of other which one is preferred a sub process or thread and why  i have found some delay in execution while using fork() system call but thread is fine and when one thread caused error will it effect other thread


Why can't I turn the focus ring on my Vivitar 100-300mm far enough to get infinity focus?

I recently bought VIVITAR 100-300mm F5.6-6.7 macro zoom. I use it with Nikon D70S. Here is my problem. When distance between my D70S with VIVITAR and object of photography is 15meters and more, I can not focus on this object of photography. I am in manual mode and in manual focus. Focus is set on infinity - everything less than infinity is more, out of focus. I attach photo of roof, 31meters away from D70S (1/40s, f14, 300mm).  Do you know, what it is going on?  Thank you for answer.


I want to create object like this:    How can I achieve this?


Is it required to use separate pull ups in level shifting using I2C isolatator ADuM1250?

I have a I2C Master as a MCU operating on 3.3VDC.  And a slave MCU operating at 5VDC.  I want to communicate between these two devices using I2C.   For level shifting 3.3V to/from 5V purpose I am using a I2C isolator ic   At master side, 4.7kohm pull ups are used for communicating with other slaves at 3.3V.  Is it required to connect the pull up resistors at isolator second side i.e. 5V side?  If yes then what should be its value?


Why does crontab not work correctly on my wallpaper script?

I have a program that contains two files: a python script and a shell script that downloads www.bing.com wallpaper and put it for my desktop background.  When I run this it works but it dosent work by my cron.  I have made a cronjob for that program but it dosen't work.  My cron entry is:  42 */4 * * * /home/ahmad/myBing/bingwallpaper.sh   my code:  #!/bin/bash  # Get download link and store it on downLink . downLink=$(/home/ahmad/myBing/index.py)  # Making pic name . picName=$(echo $downLink | cut -f7 -d"/")  # Set picture options # Valid options are: none,wallpaper,centered,scaled,stretched,zoom,spanned picOpts="zoom"  if [ $downLink != "net is off" ] then     mkdir -p $HOME/Pictures/BingDesktopImagePython/     # Download the link by wget .     wget -O $HOME/Pictures/BingDesktopImagePython/$picName "$downLink" &> /dev/null     # Set the GNOME3 wallpaper     gsettings set org.gnome.desktop.background picture-uri "file://$HOME/Pictures/BingDesktopImagePython/$picName"     # Set the GNOME 3 wallpaper picture options     gsettings set org.gnome.desktop.background picture-options $picOpts else     echo -e "Net is off :(" fi  # Exit the script exit   and my python script:  #!/usr/bin/python import re import requests import BeautifulSoup import os  def getLink():     if os.uname()[0] == "Linux":         baseUrl = "http://www.bing.com"                   imgUrl = "http://www.bing.com/HPImageArchive.aspx?format=xml&idx=1&n=1&mkt=en-US"         try:             html = requests.get(imgUrl)  # Get xml code .         except:             print ("net is off")    # it runs if net is off .         else:             soup = BeautifulSoup.BeautifulSoup(html.content)                  link = soup.find('url',text = re.compile('(.jpg)$'))    #Get first <url> ... </url> string .             downLink = baseUrl + link   # make download link .             print (downLink)          else:         print ("Your os should be Linux.")         exit() getLink()


In what sense does the Maclaurin series for $\ln(x+1)$ converge on $[-1,1]$?

This is regarding Modes of Convergence. The question is as follows.          Given $f(x) = \ln(x+1)=\sum_{n=1}^{\infty}(-1)^{n-1}\frac{x^n}{n}$. Let $f_N(x)=\sum_{n=1}^{N}(-1)^{n-1}\frac{x^n}{n}$ Determine whether $f_N$ converges pointwise, uniformly, or in the $L^2$ sense to $f$ on $-1\leq x\leq1$.       I am having a hard time determining whether or not $f_N(x)$ does converge pointwise, uniformly, or in the $L^2$ sense to $f(x)$  I know $|f(x)-f_N(x)|\rightarrow 0$ as $N\rightarrow \infty$ for every $x$ in $-1<x<1$; however, I am not sure whether it converges pointwise or uniformly on the closed interval $[-1,1]$. The end point $-1$ is what causes the complications here. I want to say on the close interval, it does not converge uniformly because for all $\epsilon>0$, there does not exist a $N$ such that for all $n \geq N$, $|f(x)-f_N(x)|\leq \epsilon$ for all $x \in [-1,1].$    Any suggestions? Thanks in advance for your time.


I've been using the new shadier in 2.79's test builds but a while ago it just stopped working. When I try to use an image the material just turns to a flat color. Any ideas as to why this is as I can see it loading properly on the side?


connect and insert into Cassandra using perl

I want to know how to connect to Cassandra using Perl, and insert, select, update etc.  I tried this  my $dbh = DBI->connect(     "dbi:Cassandra:host=localhost;keyspace=nomkeyspace",     "root",     '',     { RaiseError => 1 } );  my $rows = $dbh->selectall_arratref( "SELECT id, nom" );  for my $row ( @$rows ) {     print( "ok" ); }  $dbh->do( "insert into resultat (ip, nom) values (?,?)" );  $dbh->disconnect;   but it's give me this error     Can't locate DBD/Cassandra.pm in @INC (you may need to install the DBD::Cassandra module)   thanks


When is it the good time to label formulas and how to organize the labels?

When writing an article in LaTeX, I don't usually have a specific formula in mind that might be refereed to later. So I have to label all of them. I find manually adding \label{} slow.  Is there a quick way to put \label{} quickly in an organizable clear way?   Moreover, if I have already used the label sec1-eq1, sec1-eq2, (and suppose I have already referred to them somewhere else,) but I need to put a new formula between these two, then I will have to use something like sec1-eq1-1 for it. What I want is to change sec1-eq2 to sec1-eq3 then I have the right label for this new formula. Is there a way to change \label{sec1-eq2} to \label{sec1-eq3} so that all the \ref{sec1-eq2} will automatically become \ref{sec1-eq3}?


Are Tina and Queenie Goldstein (Fantastic Beasts and where to find them) related to Anthony Goldstein (Harry Potter)?

In fantastic beasts and where to find them, there are characters called Porpentina and Queenie Goldstein. In Harry Potter, there’s a minor character called Anthony Goldstein. Are they related?


The PHB on p. 195 (or the ) says:     When you take the Attack action and attack with a light melee weapon that you’re holding in one hand, you can use a bonus action to attack with a different light melee weapon that you’re holding in the other hand. You don’t add your ability modifier to the damage of the bonus attack, unless that modifier is negative.   The rules do not make a distinction between "main-hand" and "off-hand" weapons.  My character dual wields a shortsword with her right hand and a dagger with her left hand.  Could my character attack with her left hand dagger first, doing 1d4 + STR/DEX mod damage, then attack with her right hand shortsword, doing 1d6 damage?  Does it matter which weapon I attack with first when two-weapon fighting?


How fast does an alien grow in the Alien movies?

I just watched  and when the alien leaves the host it's tiny. A few minutes later in the movie they encounter the alien and it's now fully grown and is larger than a human. I don't know how much time actually goes by in the movie but it couldn't be more then a few hours, it seems to grow extremely fast. How fast does it actually grow?


How do I toggle in and out of wireframe mode with my keyboard? Is there a hotkey for this?  I'm a beginner (obviously). I thought I could find this in the "view" menu, but it either doesn't exist or I have horrendous eyesight. Thanks!


Where in the registry does Windows store the file types that can be opened by a program?

After installing some programs, they appear in the "Set Your Default Programs" list.  Selecting one of these and clicking on "Choose defaults for this Program" brings up a list of all extension and internet protocols known to the program.  Where exactly in the registry is this information stored? In other word, how does Windows know which programs to put into the initial list, and which file types and protocols to put into the second one?  (Note: This is the inverse of .)


How to export a predefined function in another file to shared (i.e.DLL or .SO) in C++

In C++, is it possible to write code / a Makefile that exports a function from a pre-written C++ file to a shared object - i.e. a DLL / SO file. As an example, let's assume I have the follow file and function definitions. # funcs.cpp int add(int x, int y) {     return x + y; }   To make a Windows DLL, I can modify the above by changing the first line to: extern "C" __declspec(dllexport) int add(int x, int y)  and using a Makefile containing: #Makefile dll: funcs.cpp     g++ -shared funcs.cpp -o output.dll  However, is this possible for the situation where I cannot modify the funcs.cpp file. i.e. How can I package pre-written functions into a shared object please? NOTE: This question got closed as being already answered here:  However, that question is different and it's not clear how to export to DLL without adding _declspec(dllexport) to the original cpp file. If it's easy and I'm in fact missing something, perhaps someone could post the answer or otherwise, can the question be re-opened please?


Strange when add user to group in Ubuntu

This is Ubuntu 20.04.1 LTS. I execute the following command to add user "louyang" to group "vboxsf". $ sudo usermod -G vboxsf -a louyang  The command seems ok without any output. but when I try to list with the following command, $ id uid=1000(louyang) gid=1000(louyang) groups=1000(louyang),4(adm),24(cdrom),27(sudo),30(dip),46(plugdev),116(lxd)  It show that I doesn't in that group, why? BTW, the following command may show that I already in that group, which information I should trust, command id? or grep vboxsf /etc/group? $ grep vboxsf /etc/group vboxsf:x:998:louyang


Grub Do not Load Dual Boot after ShutDown

I have Dual Boot Windows 8.1 and Ubuntu 13.10 . When I shut down/restart the Ubuntu I get the the start screen but GRUB wont load . If I Go to BIOS and then goto save changes and exit , without changing anything , GRUB would load . When I shut down/restart from Windows I am not even able to go BIOS , so I take the battery of the laptop out and then put it back again . Then again GRUB wouldn`t load , Then I go to BIOS and follow the same procedure again . I was able to normally turn on the laptop earlier even after dual boot , but now it is creating problems . Please HELP so that I am able to restart / shut down laptop and turn it on normally . PLEASE HELP .


How to change the color of a selected feature with pyQGIS?

is it possible to change the color of a selected feature in qgis 1.8? To highlight a feature I use:  vlayer.setSelectedFeatures(selectedList) box = vlayer.boundingBoxOfSelected() qgis.utils.iface.mapCanvas().setExtent(box) qgis.utils.iface.mapCanvas().refresh()   But the selected featue is colored yellow. Is it possible to define for example a red color for this feature?


Trying to make the footer in my html css website stick down but nothing works. I've tried changing the position to absolute and fixed and setting bottom: 0 and doing everything but nothing works. Also, is there a better way to make my logo aligned in the middle? Heres my css: .footer{     background-color: #d62929;     clear: both;     width: 100%vw;     display:block;     overflow: hidden;     padding-top:10px;     padding-bottom: 10px;     min-height: 100%vw;     } .contact{     margin-left: 30px;     margin: 0 auto;     display:block;     float: left;     padding-right: 50px;     } .info{     margin-left: 30px;     margin: 0 auto;     padding-left: 30px;     display:block;     float: left;     padding-right: 50px;     } .account{     margin-left: 30px;     margin: 0 auto;     padding-left: 30px;     display:block;     float: left;     padding-right: 50px;      } a{     text-decoration:none;     color: black;     font-family: times new roman;     font-size: 18px;     text-align: center;     } ul{     list-style: none;     text-align: left;     } .logo_footer{     float: left;     padding: 40px 0;     margin-left: 20px;     margin-right: 40px;     } h1{     color: white;     font-size: 24;     } li{ padding: 5px;     }  Heres my html for the footer:

Contact us

Facebook

Instagram

Telegram

Information

About Us

 Contact Us

Return Policy

Delivery

Account

Log in

 Register

 My cart


i want to call a batch apex from trigger when all the data load in that object is completed.But I am doing this I am getting the below error.  System.AsyncException: Database.executeBatch cannot be called fro...  It looks like we need to create a custom object and a checkbox field where we need to update that field on data load and then write a trigger on that object to ensure that the batch gets called once. Is there any other wayout?


Set font for single symbol back to standard in math mode

I am trying to use the Kleene's O ($\mathcal{O}$) in some equations to represent a zero matrix. However, I am using Times as my standard math font and do not like the look of the symbol and would like to set it back to the standard font.  How can I set the math font to standard for just a single symbol. I would like to create a command permitting me to do so as such:  \newcommand{\zeromatrix}{\mathcal{O}}   How can I however set the font for the single symbol inside back to standard?  Thanks in advance for your help!  Edit: Here's a minimal working example of my document with the math font set to Times:  \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{mathptmx} \begin{document}     $\mathcal{O}$ \end{document}


For a Fisher Information matrix $I(\theta)$ of multiple variables, is it true that $I(\theta) = nI_1(\theta)$? That is, if $\theta = (\theta_1, \ldots, \theta_k)$, will it be the case that the fisher information matrix of multiple parameters for an entire dataset will just be $n$ times the fisher information matrix for the first data point, assuming the data is iid?  Update: As a concrete example, consider a sequence of random variables $y_1, \ldots, y_n$ such that $y_i = \beta_0 + \beta_1 x_i + \epsilon_i$ where $\epsilon_i$ is assumed to be i.i.d. $N(0,\sigma^2)$, with $\sigma^2$ known. Additionally, assume that $n$ is even. I am trying to find the Fisher Information Matrix for $\beta = (\beta_1, \beta_2)$. I know that the log-likelihood for one observation is:  $$ l(\beta_0, \beta_1) \propto -\frac{1}{2\sigma^2}(y-\beta_0-\beta_1x)^2 $$  Hence, we have that the observed information matrix (before the expectation), is:  $\frac{\partial^2 l}{\partial \beta_0^2}= \frac{-1}{\sigma^2}$, $\frac{\partial^2 l}{\partial \beta_1^2}= \frac{-x^2}{\sigma^2}$, and $\frac{\partial^2 l}{\partial \beta_0 \partial \beta_1} = \frac{-x}{\sigma^2}$.   Thus the information matrix for a single observation is: $$ -E\left(\frac{\partial^2 l}{\partial \beta^2}\right) =\frac{1}{\sigma^2}\left( \begin{array}{ccc} 1 & x \\ x & x^2  \end{array}\right) $$  and the information matrix for n pairs of observations $(x_i, y_i)$ is given by:  $$ I(\beta_0, \beta_1) =\frac{1}{\sigma^2}\left( \begin{array}{ccc} n & \sum_{i=1}^{n}x_i \\ \sum_{i=1}^{n}x_i  & \sum_{i=1}^{n}x_i^2   \end{array}\right) $$  Above, because the fisher information is additive, all we did to move from the single observation to the multiple observation case was just to add entry by entry. HOWEVER, I know that in general if $Y_1, \ldots, Y_n$ are iid, then $I(\theta) = nI_1(\theta)$. My question is, why is it NOT the case above we could have just multiplied each entry by $n$, and instead had to add?


How to create an animation of a waterflow, from a sequence of .stl files

I am trying to make a video for a waterflow surface around a fixed box. From my CFD (Computational Fluid Dynamics) software I export the water surface as a sequence of .stl files, one per frame, so thousands of .stl files total.  In Blender, I want to render a video of that flow; So, how should I do that ?  All I can see is import a stl file, render the frame, save it, and do the same for the next stl file, and this for every stl files; but I have thousands of stl files...  EDIT: I understand that there is no easy way to do this, but I have read that one way to do it is to use a python script to either toggle the surface visibility after I imported them all, or either process one surface face after another. I have never used any script of this type before and I am new to blender, is there a similar script I could download and tweak to my case ? Or some kind of tutorial for that specific case ? I assume I am not the first one willing to do this type of video.  Thanks!


Variable declared inside nested IF but read outside? Is this a problem?

Not sure if my code is working, but the error I'm seeing is "'result' is declared but its value is never read.ts(6133)"  This is just an introductory exercise, so I'm open to suggestions/guidance on how the same thing can be accomplished. The way I've done it is three IF statements for the event type with nested IF statements for each temperature range.  let eventType = window.prompt("What type of event are you going to?"); let tempFahr = window.prompt("What is will the temperature be?");   if (eventType=='casual') { // casual event      if (tempFahr < 54) { // temp less than 54         let result = 'Since it is ' + tempFahr + ' and you are going to a ' + eventType + ' event, you should wear something comfy and a coat';     } else if (54 < tempFahr < 70) { // temp between 54 and 70         let result = 'Since it is ' + tempFahr + ' and you are going to a ' + eventType + ' event, you should wear something comfy and a jacket';     } else { // temp more than 70         let result = 'Since it is ' + tempFahr + ' and you are going to a ' + eventType + ' event, you should wear something comfy and no jacket';     } } else if (eventType=='semi-formal') { // semi-formal event     if (tempFahr .. (Etc.)...   ``````````````      {         let result = 'Since it is ' + tempFahr + ' and you are going to a ' + eventType + ' event, you should wear a suit and no jacket';     } }      console.log(result);


Is the word "of" optional in this instance? Is either of these considered preferable to the other?        Taste all our delicious treats.   Taste all of our delicious treats.


I am using QGIS 2.2 Valmiera to try to find the average slope of a water course. I've drawn in the water course as a polyline over a large number of contour lines (the water course is long with a very large catchment area).  What I've tried to do so far is create a tin file. I've used the Raster > interpolation function using the heights attribute of the contour line shapefile to make the tin and each time I try it gives me a mini-dump error.  I've tried to simplify the geometry (from 392515 to 66801 vertices) but I still just get the mini-dump error.  Is there another way to get the slope of this polyline without having to make a tin file or am I doing something wrong in trying to make the tin?


How do I import a Python module given its relative path?  For example, if dirFoo contains Foo.py and dirBar, and dirBar contains Bar.py, how do I import Bar.py into Foo.py?  Here's a visual representation:  dirFoo\     Foo.py     dirBar\         Bar.py   Foo wishes to include Bar, but restructuring the folder hierarchy is not an option.


I have a function that is using filesystem methods existsSync and mkdirSync and I want to test it. How to test this code? Should I mock the fs and return simple bool? Should I make jest physically create the directory and check if it exists?  if (!existsSync(currentPath)) {     mkdirSync(currentPath); }


Is it possible to fly from Germany to Spain using Residence Permit without a passport?

I hold an Egyptian passport and it's currently at the USA embassy in order to obtain a business visa.  I have a business trip to Spain in few days and I’ll need to travel before I receive back my passport. Is it enough to travel from Germany to Barcelona with my permanent Residence Permit?


Prove that $$ \limsup_{n \to +\infty} \;n\left(\frac{1+a_{n+1}}{a_n}-1\right) \ge 1 $$ for any positive real sequence $\{a_n\}_{n\in\mathbb{N}}\;$.


I have some columns with comma-separated values. For example  A       as,ad,af,ag   My manager wants the output looks like this:    A  as                            ad            af            ag       All these should come under one row. I guess we need to use something line break.   Hi can we use replace with char(13)+char(10) something. This one also works...    Thanks, Shashra


What does the error "Ambiguous column name 'id'" mean?

I am getting an error with the following query that uses a right join.  My table has a column named 'id'.  SELECT TOP 6 id FROM   dbo.tbldata        RIGHT JOIN tblimg                ON tbldata.id = tblimg.newsid ORDER  BY createdDate DESC    The error is:     Ambiguous column name 'id'


Source code listing with frame around code?

I'd like to make my code listing looking more sexy. I found a good example on , but one problem is remaining:  I would like to not only have a horizontal line at the bottom of the listing but also at the left and right side. Therefore I changed frame=b to frame = blr. This works fine, but the problem is now that there is a small gap between the vertical lines and the caption box. How can I correct this? I want a closed box with a caption around my listing.


bibLatex alphabetic style, maximal authors alphabetic style

I use biblatex with the biber backend and the alphabetic style. When I cite a paper which is written by many authors (eg. Aname Bname Cname Dname) the BibTex entry will look like this:  [Ana+97]   but I'd like to have  [ABCD97]   I tried the 'maxauthors' or 'maxbibnames' option to adjust this behavior but it didn't have any effect. I import the biblatex package with:  \usepackage[   backend=biber,   style=alphabetic,   maxauthors=99,   maxbibnames=99,   sortlocale=de_DE,   natbib=true,   url=false,    doi=true,   eprint=false ]{biblatex}


I was surprised to see "his husband" in the :        He complained that his husband never paid him any compliments anymore.  Isn't that a mistake? Or is Cambridge talking about something homosexual?


Automatically refer to first and last item of enumerate list

I want to refer to item list in text automatically (without using \label command).  Following is the code I am using. It could be any number of item and it should list starting and end list number without using \label command to each item.  \documentclass{article}  \usepackage{enumitem}  \begin{document}  There are question list having question 1 to 5.  \begin{enumerate}  \item volute ped qui derferum nus sequi cus si invelicatur aboreste sin nihiten imusdae ium excepe vidus   \item niam qui te si doloresti dolorit lam aut quatempori rectati atinis dolum rat plam dolori soluptatis assum reribus nienihi catemporitas des doluptatibus sequiaeri dolupta erferia dolupta dolorupta volupta speliquas as ventempos   \item quate nis ma accus, sitatur assum et, sendant ant lit, cuptur sitem con nos sim rerum repuda et essi nos nusaperro tem reseditam, cullantibea doloremporro dolutem re et restion   \item seditem eatia dolupidellit lab ius undit eum sit officiis eiciasp erorro int eium dolut fuga. Parunt, quas ex et asi de odicipitatia verro tenduciunt fuga.   \item Et labo. Editibus que arcimpo reiusae rspero quat. \end{enumerate}  \end{document}


Divide The whole equation by $4^x$ $$1+\left (\frac 32\right)^x=\left(\frac 32\right)^{2x}$$ Solving the quadratic equation gives $$\left (\frac 32\right)^x=\frac{1+\sqrt 5}{2}$$  NOTE: the other value was not considered since exponential is always positive  This gives us the value of $x$ as  $$x=\frac{\ln(1+\sqrt 5)-\ln 2}{\ln 3-\ln 2}$$  But the answer given is $\frac{\ln(\sqrt 5-1)-\ln 2}{\ln 2-\ln 3}$  What is going wrong?


Find all function satisfying $f(f(n))+f(n)=2n+3k$

Find all functions $f:\mathbb{N_{0}} \rightarrow \mathbb{N_{0}}$ satisfying the equation $f(f(n))+f(n)=2n+3k,$ for all & $n\in \mathbb{N_{0}}$, where $k$ is a fixed natural number.  A friend of mine suggested me to use recurrence relation. While it is unfortunate that I have problems understanding recurrence relation. Please refer information to understand difference equation, homogeneous equation & auxillary equation.  Thanks in advance! Kindly don't down vote for not showing my attempt. I am seriously not able to understand the question and the process suggested to use.


Why rough surfaces promote nucleation of CO2 in carbonated drinks?

Glassware with scratched/etched surfaces generate more bubbles (, ). Why these rough surfaces allow easier heterogeneous nucleation?


Proving that the union of two vector sub spaces of the same space are not a sub space.

I hope that I translated it correctly, correct me if I'm wrong :)  Let $V_1$ and $V_2$ be sub spaces of $L$.  Prove that $V_1\cup V_2$ is a vector sub space if and only if $V_1 \subseteq V_2$ or $V_2\subseteq V_1$  I was thinking of assuming it is correct and taking $2$ vectors from each subspace such that: $$ t_1 \notin V_2 , t_2 \notin V_1 \\ t_1,t_2 \in V_1 \cup V_2 $$ Then : $$t_1 + t_2 ∈ V1$$  This is where I am unsure how to explain my moves...  The teacher said it is incorrect, do you guys have any hints then, perhaps on how to refine a better mathematical 'language of reasoning' too?  I am new at this whole math world :)  Many thanks.


I never calculated my MAGI, but I don't have any student loans, educational expenses or anything like that for that matter. I just claim standard deduction every year. My net income this year is going to be in the 175k range. I am single, never married. Am I eligible for either of the IRA accounts? Someone in teamblind once told me that if I reduce my 401k contributions I can fund an IRA account or something. But he told me that it is too late for that. Basically are there any adjustments I can do to start putting money into an IRA account. My 401k account has very few options.


What is the Mac keyboard key with a symbol ⌅ of an up arrow pointing into a horizontal line?

On a Mac, symbols are often used for keys rather than names. In Adobe Indesign for Mac, the keyboard shortcuts for inserting various break characters are described using what looks like an up arrow / caret / chevron pointing into a flat horizontal line:     It's the symbol on the right I'm asking about.  After much searching, I found it on the far bottom right of the full-size Apple keyboard. It's the... enter-like key (?) in the bottom right of the numeric keypad.    So two related questions:   What's it called? Is it possible to trigger this key (for use in keyboard shortcuts) when using a keyboard without a numeric keypad (like a wireless keyboard or laptop keyboard)? If so, how?


File Sizes (including hidden files) don't sum up to total data usage

I recently noticed that my Galaxy S9 was running low on space. While using the 'My Files' app that comes with the phone to do some spring cleaning, I noticed that my Internal Storage shows a usage of about 47GB. However, something doesn't add up. I open that folder, turn on display of hidden files, and select EVERYTHING that is listed. The result is only 13.72GB!?!?!?!?!!! This is WAY WAY off. I have a huge amount of space getting used (over 30GB) and no idea what is actually using it, nor how to clear it out.  I have tried using cache cleaners, like Norton Clean, but those only found about 1GB of residual files, etc. I have also tried restarting the phone, but this doesn't help either... Other than a factor default reset, I can't think of anything else to try. Can anyone help me figure out what is going on?


Is there a word for a comment which makes no sense or adds nothing to the current discussion?

Consider this conversation:      John: I am giving free chess lessons.   Mary: Nice! You’re a true teacher.   John: How so?   Mary: A true teacher imparts knowledge without a price tag.   John: But what if teaching is his only source of income? Would he not be a “true” teacher then?   Mark (in response to the question above): You clearly mentioned “free chess lesson”.   I don’t see how Mark’s comment adds anything to the discussion or makes sense in the current discussion. It is “redundant” — that’s one word for it — but is there a more fitting word?


Let $\mathbb P$ and $\mathbb Q $ different probability measures on $(\Omega, \cal F)$ and $T:\Omega \to \Omega$ a measurable function, which is $\mathbb P$ and $\mathbb Q$ ergodic.     Show $A \in \cal F$ exists, such that $\mathbb P(A)=1$ and $\mathbb Q(A)=0$.   Since $T$  is $\mathbb P$ and $\mathbb Q$ ergodic $\forall A \in \cal F$ with $A=T^{-1}(A)$, $\mathbb P(A) \in \{0,1\}$ and $\mathbb Q(A) \in \{0,1\}$. Furthermore I know since T is ergodic $\lim_{n\to\infty}\frac 1n \sum_{k=0}^{n-1}\mathbb P(A \cap T^{-k}(B))=\mathbb P(A)\mathbb P(B)$.  I was wondering if I can use this lemma here.   It exists some $ B \in \cal F$ such that $P (B) \ne Q (B)$. And I considered $A$ to be T-invariant, but still I can not lead this in the right direction.. Some help is highly appreciated!


How should I solve combination addition like this?

$${2\choose 2} {10\choose 3}+{3 \choose 2}{9 \choose 3}+{4 \choose 2}{8 \choose 3}+{5 \choose 2}{7 \choose 3}+{6 \choose 2}{6 \choose 3}+{7 \choose 2}{5 \choose 3}+{8 \choose 2}{4 \choose 3}+{9 \choose 2}{3 \choose 3}={13 \choose 6}$$   I am supposed to get the answer ${13\choose 6}$. I wonder if there is any formula for combination addition like this or are there some tricks to do this?


limit of $\sqrt{n+k}-\sqrt{n}$ without Taylor series

Let $a_n = \sqrt{n+k}-\sqrt{n}$ be a sequence where $k\in \Bbb R^+$.  Find the limit of $a_n$.  I want to evaluate this limit without doing a series expansion of the terms (it seems like overkill).  Intuitively, it should be $0$ because as $n$ becomes large the $k$ becomes insignificant.  But how can I show it?  I can't just factor out $\sqrt{n}$ because $$\sqrt{n}(\sqrt{1+\frac{k}{n}}-1)$$ goes to $\infty\cdot 0$.


Save a link to create new document in Google Docs

Is it possible to bookmark a link that, when chosen, will automatically open up new document (a word processing document in this case) in Google Documents even if I don't have GD open at the time? Having such a link would be a bit of timesaver for me.


My question is not a duplicate of . The latter talks only about linked questions; my request is about both questions and answers.   I would appreciate to receive a notification when my own post (question or answer) is linked to in another post. That way, I could see how my question or answer is relevant to other questions, possibly leave a comment in case the reference needs clarification/correction, or notice when a post I am the author of is discussed on meta.    It has actually happend to me several times that I accidentally encountered a post referencing something I wrote elsewhere and thought "I should have seen that earlier, then I could have added a comment to clarify what I actually meant" or "I should have seen this earlier, then I might have been able to write an aswer to or read about this interesting related question."  You already get notified whenever a comment is left under your post, so I think it would make sense to also get notified when a comment to your own post is left in another post.      If notifications are too pushy (but I don't think links to your posts happen so often it gets annyoing), a small section somehwere in the "activity" tab on my profile that I could check from time to time would do too.


Will Ice Cubes Form Quicker when Made from Hot Water or Cold Water?

When you put water in the freezer you can make Ice Cubes. But does the time taken for these Ice Cubes to form decrease or increase when the water which is used is hotter or colder?


Mouse pointer freeze on windows, and keyboard stops responding (both logitech hardware) when connecting external WD Hard Disk

So as I say in the title I have this very big, annoying problem. On my new PC (HP Omen 2020, i7-10750h, Nvidia RTX 2070, 16GB RAM) when I connect an external hard drive (precisely an WD My Passport Ultra, 3TB) I get occasionally mouse and keyboard freezes. Practically, the system becomes unusable. The mouse and keyboards works, they even show in device manager, but from time to time (too often) they "freezes": mouse pointer freeze, and it won't respond to my input, and keyboard too, if I type something it will not respond. First I thought this was a behaviour due to bad drivers, or something related to my new PC, the fact that it has USB 3.1 ports. But then I've noticed that this fact happens only when I connect my WD Hard Disk (which is USB 3.0) to my pc. I've tried some stuff online, suggesting to update drivers, change some windows settings, but with no success. My guess is that the hard disk and the mouse-keyboard does interfere with each other in some ways. I guess that it's a software problem, at driver levels maybe, not a physical one. When the mouse doesn't respond, I've tried to use the touchpad on the notebook, and it does work. So it's not a windows freeze, it's just the device (mouse-keyboard-receiver) that doesn't respond. The mouse and keyboard are from Logitech, bot connected with the Unifiying receiver (a wireless receiver they provide for the mouse and the keyboard). Model: MX Anywhere 2S for the mouse, K360 for the keyboard. Please, help me solve this problem, monday I start taking my engineering class lessons from MS Teams, and I need my pc up and running and well responsive (I need to access data from the hard disk while I take classes). PS: I've seen that there are some other questions like this in the forum, but none of them seems to provide a solution to the problem. I would also change the external hard drive in the future, but I need to know that the problem with this one won't show with another hard drive, or other devices. I've already sent this very same post to Microsoft community, I really need help with this thing otherwise it will be a problem following my online classes. Thank you if you will try to help me EDIT: On the notebook in question I have 4 USB 3.1 Ports, with two ports on each side, and a single Type-C Thunderbolt port (I'm not counting that one cause both the hard disk and the logitech receiver are USB 3.0 type A connectors). I've already tried switching USB port, connecting the WD Hard Disk to another port, doing the same on the logitech receiver, and I've even tried putting them one on the left side and the other to the right side, to minimize "interference" as someone suggested. But nothing, I still got this problem, which seems driver-related. Hope this will give more info (I've edited the question cause they tagged the previous one as "incomplete", hope this is enough information)


Let's consider a light ray falling on a cuboid made of glass at the angle $\alpha$. Then there will be a reflected ray $A$. The ray will also refract. Let the refracted ray be $B$. Ray $B$ will be partially reflected at the other end of the cuboid. Let this reflection be $C$  By the reflection of the ray $A$ the phase will be changed. On the other hand, by the reflection of the ray $C$ - it will not.  Why does the phase change occur only when reflecting from a more dense substance (ray $A$)? The cuboid is located in vacuum.


Pixelated render output, what am I doing wrong?

Dear blender community,  So I'm pretty new to blender and general 3d creation and now I rendered my first good project but It has many point where the pixels doesn't belong to or the color of them isn't matching. I can provide a picture for that too. Would be greate if someone could help me. I can provide any additional information if needed. You can see the pixels mostly on the table and at the plant. I could remove some of them when I added another light that directly lights in the room but I don't really want that to be there because the picture is too bright then. Thanks for helping!


why grep does not print the entire line?

When I enter ls command I get the below output.   -$ ls aNode  ANode  bNode  BNode  cNode  CNode  DUMP  file1  hello.txt  TEST.txt -$   As seen, above output is one line which has filenames separeted by spaces.  Next when I use grep to find a match.   I was expecting that if a match is found then the entire line will be printed.   But, on the contrary, grep only prints the match but not the entire line containing the match. Please see below.  -$ ls | grep 'aNode' aNode -$   Why is this happening ? Why is grep  not printing the entire line ?


Downgrading 2020 13" MacBook Pro to run macOS Mojave

Can I downgrade the 2020 13" MacBook Pro to run macOS Mojave? This is the Model Id=MacBookPro16,2 - with Quad-Core Intel Core i7 of 2.3 GHz; sold in Europe in July 2020, that comes with Catalina pre-installed. Unfortunately, many of my legacy software (in 32-bit) cannot be made to run under 64-bit. Some of my hardware relies on 32-bit software. Are there hardware components in the 2020 models, which are NOT supported in previous? If one can downgrade, would that work with a time-machine backup? or would one need a complete re-install after erasing and re-formatting the disks, from a Mojave.ova file?


Reduction formula integral of $\cos^n(x)$

I need to find the reduction formula for the integral of $\cos^n(x)$.  Ive split it into $\cos(x)\cos^{(n-1)}x$ in the hope of integrating by parts, but I'm unsure how to differentiate $\cos^{(n-1)}$, how should I proceed?


If it's not extrapolation, interpolation or estimation, what is it?

As a Vocational Evaluator, I'm tasked with producing grade-levels, based on another clinician's work.  He used the Woodcock-Johnson to produce standard scores, but he didn't include grade-levels.  I solve this problem by using the Wide-Range Achievement Test IV tables to convert SS to raw scores, which I then plug into the corresponding WRAT age-based grade-level tables, to get GL.  What can I call this process.  I don't like extrapolation, interpolation or estimation.  What else is there?


if a body is stopped by means other than friction, where does energy go?

Suppose we have an object in space. say gravity is negligible, and the thing has a rocket on both sides. the thing fires one rocket for, say, 5 seconds. now it's moving. The object has kinetic energy. Now the other rocket fires for 5 seconds. Then it's stationary. where does the energy go? I know that some of the energy from the rockets would just go into space as heat and kinetic energy of the hydrogen particles flying out, but how does there seem to be more energy in the situation if the first rocket just goes for 10 seconds than if one goes for 5 and the other goes for 5?


Why does Ubuntu 13.04 fails to start showing a purple screen and on restart shows a blank(black) screen with blinking cursor?

I've installed Ubuntu 13.04 from my USB and straight away I got problems. I've Windows 7 installed in my PC. Therefore I've chosen ubuntu installation along side Windows 7. The problem I'm facing is that Ubuntu fails to start after installation. I've reinstalled Ubuntu 13.04 many times. But the problem seems to be there. The very first run after installation seems to be working fine. But on a next restart, the issue will pop up. The startup screen is showing that I've got Ubuntu and Windows 7 installed in my PC. Windows is working fine. But upon selecting Ubuntu its showing a purple screen and I was forced to restart the PC using the restart button. Upon restart, again the startup screen shows up.(Please note that the auto login countdown is not shown at this time). Two OS installed in the PC is listed down and this time the scenario is little bit different. Now, selecting Ubuntu will produce a black screen with blinking cursor. Why is this happening? I don't know what is the real issue behind this. I lurked around various sites but couldn't find a solution. I don't know whether my hardware has got any relation with this issue. Please help me. I'm a newbie to Ubuntu and I'm really frustrated with this issue.  The configuration of my PC is ,  Intel i5 processor 2500K, Intel H67 Motherboard, 4GB RAM, nvidia GT520 graphics card, and a 500GB HDD


How to find the vector formula for the bisector of given two vectors?

There are two vectors called $\vec{a}$ and $\vec{b}$. Vector $\vec{c}$ is the bisector and it can be given as  $$\vec{c} = |b|\vec{a} + |a|\vec{b}$$  How to prove that? I have used the dot product method. But there I can't find the angle between them. Then I tried to do this by using unit vectors. Then I got an answer like in the given picture. . Can you help me to get the correct answer


Python wait for all forked processes to finish

My python code creates a huge hash table (60GB+) on which a number of heavy readonly operations are to be performed. To speed things up I fork the process a few dozen times once the hash table has been created so that each operation can be done concurrently (48-core machine).   Once all these forked children are done with their thing I wish to merge their output, so I need a way for the parent process to be able to wait for more than one pid. How do I achieve that?  Forking is a key part here as I rely on the forked processes' memory pages being mapped to the parent's address space to reduce footprint. The hash table is being created by another library so modifying its implementation isn't an option.  children = [] for index in batch:     tracks = batch[index]     pid = os.fork()     if pid == 0:         # forked process         run_batch(tracks, index)     else:         # main process         children.append(pid)         print('spawned child ', pid)


What exactly determines if a backgrounded job is killed when the shell is exited, or killed?

This question has come up    ( ), but I'm finding the answers to be generally incomplete. The general question is "Why does/doesn't my job get killed when I exit/kill ssh?", and here's what I've found.  The first question is:  How general is the following information?  The following seems to be true for modern Debian linux, but I am missing some bits; and what do others need to know?   All child processes, backgrounded or not of a shell opened over an ssh connection are killed with SIGHUP when the ssh connection is closed only if the huponexit option is set: run shopt huponexit to see if this is true. If huponexit is true, then you can use nohup or disown to dissociate the process from the shell so it does not get killed when you exit.  Or, run things with screen. If huponexit is false, which is the default on at least some linuxes these days, then backgrounded jobs will not be killed on normal logout. But even if huponexit is false, then if the ssh connection gets killed, or drops (different than normal logout), then backgrounded processes will still get killed.  This can be avoided by disown or nohup as in (2). There is some distinction between (a) processes whose parent process is the terminal and (b) processes that have stdin, stdout, or stderr .  I don't know what happens to processes that are (a) and not (b), or vice versa.   Final question: How can I avoid behavior (3)?  In other words, by default in Debian backgrounded processes run along merrily by themselves after logout but not after the ssh connection is killed.  I'd like the same thing to happen to processes regardless of whether the connection was closed normally or killed.  Or, is this a bad idea?  Edit: Another, important way to keep jobs of being killed, that works (?) in either case is to run them through .  But, the question is more about understanding when things get killed and when they don't: sometimes people want the jobs to be killed on logout, for instance.  More threads: -  -  -  -  -  -  -  -


I want to write an algorithm in overleaf, but it comes up with errors

\begin{document} \usepackage{savesym} \usepackage{program} \savesymbol{AND} \savesymbol{OR} \savesymbol{NOT} \savesymbol{TO} \savesymbol{COMMENT} \savesymbol{BODY} \savesymbol{IF} \savesymbol{ELSE} \savesymbol{ELSIF} \savesymbol{FOR} \savesymbol{WHILE}   \usepackage{algorithm} \usepackage{algorithmic} \begin{algorithm}     \caption{Initialization} \label{algorithm: cds bw} \textbf{Input:}     V, E, S, S\textsubscript{ai}, P, P\textsubscript{ai}, R\textsubscript{s}, p\textsubscript{a},r\textsubscript{asp},      $a \in V$, ${s\textsubscript{i} \in s\textsubscript{ai}}$ , $r \in  R$\\     \hspace*{\algorithmicindent} \textbf{Output:}      W\textsubscript{r} ($r \in R$), P\textsubscript{va} ($a \in V$)     \begin{algorithmic}[1]         \State $UA \gets V$          \State $T \gets 0$         \State $Makspan \gets 0$         \State $SrtS \gets Sort(S)$         \State $rXs \gets SrtS$         \For{$s \in S$}         \State $Wr \gets Compute$         \EndFor            \For{ $a \in V$}         \State $P\textsubscript{va} \gets Compute$         \EndFor           \end{algorithmic} \end{algorithm}


In swimming, is there a competitive advantage to being in one lane or another?

Upon observing swimming competitions in the Olympics, it is not clear to me whether one of the eight lanes is more advantageous versus another. I've seen vague claims but nothing backed up with science.  In competitive swimming, is there an advantage to being in one lane or another? Furthermore, does the stroke (ie: breast, fly, freestyle, etc.) affect this effect?


Spoilers don't support block formatting (and so don't format well)

While trying to assist with the formatting of a , I discovered there's not a lot of parity between how spoilers and quote blocks (which are superficially quite similar) handle nested Markdown formatting.  (Simple HTML works fine.)  For example, here's a variety of typical Markdown nested inside a quote block:     heading            paragraph  code block          nested         list                 even nested quotes!               with nested nested formatting!           Aside from the code and quote blocks not standing out due to matching background colors, everything works exactly as expected.  Sadly, the same is very much not true for spoilers:      ### heading   ---   paragraph       code block   - nested  1. list   > even nested quotes!  >  > - with nested nested formatting!   Eek!  Any chance of changing spoilers to act more like quotes?  Needing complex formatting in spoilers isn't a terribly common scenario, but when you do, the inconsistency is jarring and a bit frustrating.


In general, to kill processes we generate signals like SIGKILL,SIGTSTP etc.  But how is it known who ordered that particular signal, who has sent it to a particular process, and in general how do signals perform their operations? How do signals internally work?


Regular Expressions (Regex) e-mail validation

A textbox in a WinForm I have created is for e-mail. I'm checking the validation of the e-mail format.  The string seems to be ignoring the "." condition?  According to my test, it runs:   abcdef   - Not valid  (Correct) abcdef@gmail    - valid     (Incorrect) abcdefgmail.com      - Not valid     (Correct) abcdef@gmail.com     - Valid   (Correct)   Code Snippet:  Regex RX = new Regex("^[-!#$%&'*+/0-9=?A-Z^_a-z{|}~](\\.?[-!#$%&'*+/0-9=?A-Z^_a-z{|}~])*@[a-zA-Z](-?[a-zA-Z0-9])*(\\.[a-zA-Z](-?[a-zA-Z0-9])*)+$");


Prove that $\sqrt{10} - \sqrt6 - \sqrt5 + \sqrt3$ is irrational

I tried the methods shown in  but I cannot extend them well into 4 numbers.


How do I segregate multiple files based on file size into a sub directory?

I have a bunch of video files which I would like to segregate based on file size I have decided.  Example:  Folder BB has 15 files of various file size.  I have sub folder set as:   less than 100 MB     -- folder A 100 MB to 500 MB     -- folder B more than 500 MB     -- folder C   So instead of manually doing it can it be done via Bash or a script.  I have a general idea that find command and a proper if else would work, but have no idea how to script it.  Anyway, a general programming frame would be:  float _size=[file_size]; // Reads the file size  if(_size<100)    // File size is less than 100 MB   {  exec mv [file] /A/* ; // Move to folder A } else if(_size>500) // File size is greater than 500 MB   {  exec mv [file] /C/* ; // Move to folder C } else if((_size<=500)||(_size>=100)) //file size is between 100 to 500   {  exec mv [file] /B/* ; // Move to folder C} else   {print("file error");}   So I hope it is easy to do. The above was just a general idea I would have done.


How do I properly recover the Reserved Space of my /home partition? tune2fs Keeps giving me an error

I can reclaim the reserved space on the system partition (/dev/sda1), but the /home partition (/dev/sda2) doesn't let me free it up, and I really need it because it's almost 42GB I'm not using. This is the error I get:  tune2fs 1.42.13 (17-May-2015) tune2fs: Filesystem has unsupported read-only feature(s) while trying to open /dev/sda2 Couldn't find valid filesystem superblock.   I tried looking up other solutions, but I didn't see any relevent solution specifically concerning this issue. Any help is appreciated.


Jamaican citizen with C1/D visa would like to transit in JFK

My friend from Jamaica has C1/D visa as he works on the ship. He'd like to visit me in Asia during his vacation. We are wondering if he can use the C1/D visa to transfer in JFK airport (he will need to collect his luggages and check in again tho.) or he needs to apply a transit visa?  He called the US embassy in Jamaica and they said the C1/D is from joining the ship only.  I wonder has anyone with C1/D visa successfully transit in the US?


Is there any way to produce List of frames with beamer?

There is a way to make TOC using \tableofcontents, but there are only sections and subsections.   How can I get list of all frames without using sectioning?


Can a script be executable but not readable?

Is it possible to execute a script if there is no permission to read it? In root mode, I made a script and I want the other user to execute this script but not read it. I did chmod to forbid read and write but allow execute, however in user mode, I saw the message that says: permission denied.


I tried to enable AT theme and now have a white page with the error:  Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 72 bytes) in /Applications/MAMP/htdocs/test/includes/theme.inc on line 98  I changed my php.ini memory_limit = 128M. No difference.  I am so crazy pressed for time, this is the worst thing to happen now. How can i fix this? Please somebody HELP!!!!!  The site is on a localhost.  PS- now i see a different error:   Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 72 bytes) in /Applications/MAMP/htdocs/test/sites/all/modules/ds/includes/ds.registry.inc on line 554   Drupal 7.2.4


What is the right past tense usage of a verb "Learn"?

I have a doubt for a long days.Today I got a chance to clear it.  What is the right Past tense usage of a verb "Learn"?  Is it Learnt or Learned?


If a caster uses a higher-level slot for the Enhance Ability spell, can they specify different effects for different targets?

If a caster uses a higher level slot for the Enhance Ability spell, can they specify different effects for different targets?  Example: target 1 gets Bear's Endurance, and target 2 gets Bull's Strength.


I run Ubuntu 16 on VMWare machine. After removing X11 configuration files I got this message during startup:  The system is running in low-graphics mode  Your screen, graphics cards, and input device settings could not be detected correctly. You will need to configure these yourself.   Mouse and keyboard don't work after displaying this message. How can I boot in a very basic mode and get a console? ctrl+alt+F1 etc to select text console doesn't work.  This is not duplicate, since I'm asking not about fixing displayed error, but how to get to console mode.


When is it appropriate for a creature to investigate Phantasmal Force?

Phantasmal Force can be used to place a delusion inside a creature's head for the duration. I understand that the spell is worded very openly to encourage creative usage, but I'm not sure about how I should be ruling it case-by-case. I understand the purpose of most other illusion spells, but I just can't seem to get my head around certain aspects of this particular one.      The target can use its action to examine the phantasm with an Intelligence (Investigation) check against your spell save DC. If the check succeeds, the target realizes that the phantasm is an illusion, and the spell ends. While a target is affected by the spell, the target treats the phantasm as if it were real. The target rationalizes any illogical outcomes from interacting with the phantasm. For example, a target attempting to walk across a phantasmal bridge that spans a chasm falls once it steps onto the bridge. (PHB pg.264)   According to the spell's description, the target would rationalize any illogical outcomes. If this is the case, why would he ever choose to investigate it if every illogical outcome seems perfectly reasonable him while? Would someone telling him he isn't being assaulted by a fire elemental prompt an investigation check, or would this count as "Interacting with the phantasm"? Are there any other activities that could prompt an investigation check?  Question: When would a creature use an investigation check on an illusion created by Phantasmal Force?


Is it possible to follow a user automatically?

I've been looking around and I can't seem to find an automatic (i.e. buzz- or Twitter-like) way to follow users inside Stack Exchange. Why haven't the developers added such a feature? It could help beginner users follow other beginners with the same interests. We would be able to learn from each others' questions and pitfalls. Also, it would reduce double posting.


What does the term F[YY]e mean in financial reporting in India? I have seen reports these days to use the term F15e. Does this mean Financial Year end? Googling on this does not yield a relevant result.


How can we get the pathname to a script within itself, when `source` it?

I have a script to verify the positional parameters it receives  $ cat myscript #! /bin/bash echo $0 echo $1 echo $2   When I run it via different ways  $  ./myscript    ./myscript  $ bash ./myscript  ./myscript  $ source myscript /bin/bash   Suppose I have to write another script which needs to get the pathname to the parent directory of the script:  #! /bin/bash  echo $(dirname "$(readlink -f "$0")")   and I have to run it by source it. Then it won't work, because $0 is /bin/bash. I wonder how I can get the pathname to the parent directory of the script within itself, when source it? Thanks.


Can I save and fire lightning event later?

I am trying to fire the same lightning event from one component more than once. Is it possible to save the event in a variable and use it to fire?  I saw  question. It did not help.


Subfiles errors while using style in the main file

I would like to build a modular document in latex. My main directory (in which I put the main file "thesis.tex") is called "tesi". Inside "tesi" i have another directory named "capitoli" where I woluld like to store my chapters named "chapter1.tex","chapter2.tex", and so on. Also I woluld like to compile either from my main file or directly from my subfiles, and so I used the subfile package.  Also I'm using a style file named mystyle.sty placed in the main directory "tesi". There is also a directory called "immagini" (where i store my images) inside the main directory.   If I use the following code  % main file "thesis.tex" in the main directory "tesi" % \documentclass[a4paper,12pt]{memoir} \usepackage{./tesi/mystyle.sty} \begin{document} \subfile{../tesi/capitoli/chapter1.tex} \end{document}  % subfile "chapter1.tex" in the subdirectory "capitoli" % \documentclass[../thesis.tex]{subfiles} \begin{document}   \begin{figure}   \centering   \includegraphics{../immagini/image1.jpg}   \end{figure} \end{document}   I can compile from subfile "chapter1.tex" but can't compile from main file "thesis.tex"  (error messages refers to the path of the image files)  If I use the following code ( just changed the relative/absolute paths of mystyle.sty and image1.jpg)  % main file "thesis.tex" in the main directory "tesi" % \documentclass[a4paper,12pt]{memoir} \usepackage{../tesi/mystyle.sty} \begin{document} \subfile{../tesi/capitoli/chapter1.tex} \end{document}  % subfile "chapter1.tex" in the subdirectory "capitoli" % \documentclass[../thesis.tex]{subfiles} \begin{document}   \begin{figure}   \centering   \includegraphics{./immagini/image1.jpg}   \end{figure} \end{document}   I can't compile from subfile "chapter1.tex" (error message cannot find mystyle.sty) but can compile from main file "thesis.tex".  Someone could fix this issue, thanks.  Edit  I also post mystyle.sty     \usepackage[T1]{fontenc}         \usepackage[utf8]{inputenc}     \usepackage[italian]{babel}     \usepackage{subfiles}    \usepackage{graphicx}


Real sequences $\{x_n\} $ and $\{y_n\} $ satisfy $x_n^3-y_n^3\to 0$. When does $x_n-y_n\to0$?

Consider two real valued sequences $\{x_n\} $ and $\{y_n\} $ satisfying the condition $x_n^3-y_n^3\rightarrow 0$ as $n\rightarrow \infty $. Then as $n\rightarrow \infty$, (A) $x_n - y_n \rightarrow 0$ always (B) $x_n - y_n \rightarrow 0$ only if $\{x_n\}$ converges. (C) $x_n - y_n \rightarrow 0$ only if $\{|x_n|-|y_n|\}$ converges. (D) $x_n - y_n \rightarrow 0$ only if $\{|x_n^2 +x_ny_n+y_n^2|\}$ converges $\bf{Try:}$ Take $x_n=(-1) ^n$ and $y_n=(-1) ^n+\frac 1n$. Then option(B) is discarded. For the other options I don't have clear idea. But I tried to proceed like this- Since $x_n^3-y_n^3\rightarrow 0$ hence for some $n>N$ we have $|x_n^3 - y_n^3|<\epsilon \implies |(x_n-y_n) (x_n^2 +x_ny_n+y_n^2) |<\epsilon$ How to conclude?


Let $x$ be transcendental over $F$. Let $y=f(x)/g(x)$ be a rational function. Prove $[F(x):F(y)]=\max(\deg f,\deg g)$

Let $F$ be a field and $x$ transcendental over $F$. Let $y=f(x)/g(x)$ be a nonconstant rational function with relatively prime polynomials $f,g\in F[x]$. Prove $[F(x):F(y)]=\max(\deg f,\deg g)$.  My attempt: By replacing $y$ with $\frac{1}{y}$ if necessary we assume $\deg g\geq\deg f$. By the Euclid algorithm we assume $\deg g>\deg f$. Then $\deg g=\max(\deg f,\deg g)$, let $n=\deg g$. Let $R(t)$ be this polynomial $$R(t)=yg(t)-f(t)=\frac{f(x)}{g(x)}g(t)-f(t)$$ Then $\deg R=\deg g=n$ because $n=\deg g>\deg f$. The coefficients of $R(t)$ lie in $F(y)$ and hence $R(t)\in F(y)[t]$. Clearly $R(x)=0$.  Now I only have to prove $R(t)$ is actually the minimal polynomial of $x$ over $F(y)$. I believe the next step is to obtain a contradiction that $R(t)$ being reducible can lead to $f,g$ being not coprime, but I can't figure out how to do that.  P.S. A hint is preferred over a full answer.


I am trying to make a shop. This is my code but it's not working  /execute as @a unless entity @s[team=blue,nbt={Inventory:[{id:"minecraft:diamond",Count:2b}]}] unless entity @s[team=blue,nbt={Inventory:[{id:"minecraft:diamond",Count:1b}]}] unless entity @s[team=blue,nbt={Inventory:[{id:"minecraft:diamond",Count:3b}]}] if entity @s[team=blue,nbt={Inventory:[{id:"minecraft:diamond"}]}]   Expanded:  /execute as @a     unless entity @s[team=blue,nbt=     {         Inventory:[{id:"minecraft:diamond",Count:2b}]     }]     unless entity @s[team=blue,nbt=     {         Inventory:[{id:"minecraft:diamond",Count:1b}]     }]     unless entity @s[team=blue,nbt=     {         Inventory:[{id:"minecraft:diamond",Count:3b}]     }]     if entity @s[team=blue,nbt=     {         Inventory:[{id:"minecraft:diamond"}]     }]   What that is supposed to do is give an output when you have at least 4 items. It just doesn't work.


How can I make this matrix in LaTeX ?     My MWE :   $ \begin{bmatrix}   x_{11} & . & .  & x_{1n} \\  . & . & . & . \\  . & . & . & . \\  x_{m1} & . & .  & x_{mn} \end{bmatrix} $   I get this :


Does Ubuntu 16.04 support intel 5300 wireless card?

I used the Intel® Wireless WiFi Link 5300AGN card in my desktop, this wireless card transfer miniPCI to PCIE. Does the ubuntu support this type interface 5300AGN wireless card?  Thanks.


How do I delete the GNUstep folder from home?

Recently I installed GNUstep using this command   sudo apt-get install gnustep-gui-runtime   After I did this I saw this GNUstep folder as in the picture which contains nothing!  So I ran:   sudo apt remove gnustep-gui-runtime   and the folder is still there, and when I just delete the folder and refresh I see the folder is back again!


Can't login when cookies are disabled in Chrome

With these settings in Chrome, everything works fine.        But with these settings, I cannot login.        And with the above settings, clicking these login buttons also do nothing, no effect, no response.        Is this how Stack Exchange login is designed?


Beamer: Modify section navigation warsaw

I'm using warsaw theme in LaTeX, and I want to know how to modify sectionnavigation, in order to use bold police for current section instead of lightning current section. And I don't want to make other sections in navigation bar looks shaded.


What happens if I feel my bounty question is still unanswered and date expires?

What happens if I feel my bounty question is still unanswered but someone has answered it, but that answer is not the correct one and the time expires?


I am trying to create a stacked bar chart above a table, basically identical to the one below.    I have found similar posts such as:   However, my experience is very limited to simple tables and I am struggling to modify this to suit my needs.  Any ideas on how I can achieve such a graph?  Thanks!


Adjectival order: “a style appropriate for” or “an appropriate style for”

I would like to understand the correct grammatical order in the sentence,     In your essay, you must use grammatically correct sentences with accurate spelling and punctuation in a style appropriate for the situation.   I hold the view that “style appropriate” is written bad because the grammatical order indicates that an adjective needs to be before the noun.  Is it grammatically correct?: NOUN + ADJECTIVE X  So,     In your essay, you must use grammatically correct sentences with accurate spelling and punctuation in an appropriate style for the situation .   It is true that it works like this  ADJECTIVE + NOUN   Resource: Cambridge English Objective First Book, Fourth Edition


I am using IEEEtran for LaTeX. That means text is in two columns. I want to post a full figure page. I use:   \usepackage{pdfpages}  \begin{figure} \includepdf{fluxograma.pdf} \caption{SEAL flowchart.} \label{fig_sim} \end{figure}   But the figure shows up on top of the rest of my text  \newpage   does not work either. Any ideas?


Some strange things are going on in my code. Could someone explain please why is this condition false?  When I output object's members with php's function var_dump(), I get this:  string(6) "105.63" float(105.63)   from one object, and this is output from another object:  string(6) "667.69" float(667.69)   Then I do comparison like this:  if(105.63 == "105.63"){     echo "true";     } else {     echo "false"; } if(667.69 == "667.69"){     echo "true"; } else {     echo "false"; }   it outputs 2 times true for sure, if we write code like in my example above. But in my class, it behaves differently. In first if I get false and in second if I get true. Then I looked to the data more deeply with var_export() function and it seems like I actually have following data:  '105.63' 105.6300000000000096633812063373625278472900390625   and  '667.69' 667.69000000000005456968210637569427490234375   So I decide to check wether my conditions work with that data... And they dont. Actually, only first one doesn't. Why do I get output false and true in following code?  if(105.6300000000000096633812063373625278472900390625 == "105.63"){     echo "true";     } else {     echo "false"; } if(667.69000000000005456968210637569427490234375 == "667.69"){     echo "true"; } else {     echo "false"; }   I know how to fix this. But I'm interested why conditions fails in first if.  EDIT  Php does type juggling when we use == comparison operator! Take a look at this:  var_export((float) "105.63"); var_export((string) 105.6300000000000096633812063373625278472900390625); var_export((float) "667.69"); var_export((string) 667.69000000000005456968210637569427490234375);   outputs:  105.63 '105.63' 667.69000000000005 '667.69'   Should not this mean that the first condition be true and the second false? But I get false in first and true in second. Sorry if I was unclear.


Blender Basics Tutorial, sprinkles appear underneith the surface with solidify modifier

So I did the Blender donut tutorial on my work PC last year. I wanted to refresh Blender and get back on track learning. Finally got a new PC that can handle blender well. Installed the new version of Blender 2.92. I have noticed quite a few weird UI changes, but the one thing that is crippling is the offset of the particle generated in Part 2 of the series. In the new version the particles appear under the ICing... see figures. Is the issue with solidify modifier? Is it something that can be reversed/swopped/offset in the Particlsettings? I might add I didn't get this with the previous version of blender, so many I missed something or it was moved?  The top is clear.


How to convert a number into a formatted string?

Note: there is an .  This question asks how to convert a number into a formatted string.  Given a decimal variable, how can I convert that into a formatted string, such as a currency string, i.e. 2000 would become "$2,000.00"?  I would have thought this would be an easy task, given the formatting options available in visualforce, e.g. <apex:outputtext value="{0,number,$#,###.##}">, but there doesn't seem to be analagous functionality for apex.  Is there a simple method for achieve this?  I first looked at the decimal.format() method, but this doesn't take any parameters.  Was hoping for something like this   Decimal input = 2000; String output = input.format('$#,###.##');   I also looked at the String.format(formatString, inputArray) but you can only use string data types for the input array.  Was hoping for something like this  Decimal input = 2000; String output = String.format('$#,###.##',new Object[] { input });


Pagenumbering on every "first chapter" page

Using  \documentclass[a4paper,12pt]{report}   \makeatletter \let\latexps@plain\ps@plain   % Store definition \let\ps@plain\ps@empty        % Use empty pagestyle (ps) \makeatother    \begin{document}  \tableofcontents  \listoffigures  \listoftables   \clearpage \makeatletter \let\ps@plain\latexps@plain   % restore pagestyle 'plain'  \makeatother   \chapter{First}  \end{document}   I would like to restore pagestyle 'headings'. I have tried   \clearpage \makeatletter \let\ps@headings\latexps@headings    \makeatother   that does not work (still 'empty'), then using just  \pagestyle{headings}  works, but it does not work on every "first chapter page" that is still without headings , numbering ("empty"). Other pages are ok. How to get "headings" to these pages?


Need help reducing file size Photoshop, gimp, paint.net

I have been asked to compress an image that will be used for mass email, the image is currently 628 KB and needs to be 50 KB maximum, I have been advised to use PNG files.   I have also been asked to do this using Photoshop, paint.net and GIMP 2.   Any advice on all three of these software's would be much appreciated  Thanks


A fiber bundle over Euclidean space is trivial.

What's the easiest way to see this? The only thing I could think of was to try to patch together trivializations. I couldn't find a way to make that work. Thank you! edit: For the record, here's why I asked about this special case of the more general result about fiber bundles over contractible spaces. In the much beloved book by Bott and Tu, it's claimed that the Leray Hirsch theorem can be proven in the same way the Kunneth theorem is proven:  induct on the size of a finite good cover for the base space, then apply the Mayer Vietoris sequence and the Poincare lemma for the induction step. It's assumed that there exists a finite good cover for the base space, but it's not assumed that this cover is a refinement of the cover of the base space, which gives the local trivializations of the fiber bundle. Therefore, to apply the Poincare lemma in the induction step, it seems that you need to know that the result I asked about is true. Since fiber bundles had just been introduced in the text, I thought there may be a short, elementary proof that the authors had taken for granted.


Unity Raycasting Error: NullReferenceException

EDIT: I added the if statement: if(hitInfo.collider != null)  above the if(hitInfo.collider.CompareTag("Player"))  statement and it seems to work.  I'm trying to give my Enemy AI (Red dude) a line of sight via Raycasting. I want it to initiate the Attack(); function when it sees the Player (blue dude) whose tag is "Player". I first need to get a "true" statement from the RaycastHit2D to write the rest but the game just crashes whenever the Player is out of the ray. When I put the player in range of the enemy model by hand before running the game, it runs okay:  But when I make something, like jumping, to stay out of the ray, the game crashes and I get the error:   NullReferenceException: Object reference not set to an instance of an object.  It shows the line 90 which corresponds to the line: if(hitInfo.collider.CompareTag("Player"))  Here is the whole code for my RaycastPlayerDetection() which is called in the Update() function:  private bool RaycastPlayerDetection() {     RaycastHit2D hitInfo = Physics2D.Raycast(EyeSight.position, transform.right, lineOfSight);          Debug.DrawLine(EyeSight.position, hitInfo.point, Color.red);          if(hitInfo.collider.CompareTag("Player"))         {         Debug.Log("player has been seen");         return true;         }         else return false;      }


I'm trying to make a model for a mod and i'm not 100% sure how to export it with texture. I have searched all over the internet for tutorials but keep on failing. I know it probably me and you are annoyed that you keep on seeing this question.


Dynamically creating elements with onclick only executes the last element

I am dynamically creating an onclick event for html elements that are also created dynamically. I can make the elements just fine, but when I click on a specific one, it always runs the onclick for whatever the last element created was.  var parentNode = document.getElementById('mpacks'); parentNode.innerHTML = ''; for (var i = 0, size = listOfItems.length; i < size; i++){         var listNode = document.createElement('LI');         var tmp = document.createElement('a');         tmp.id = listOfItems[i];         tmp.innerText = listOfItems[i];         listNode.appendChild(tmp);         parentNode.appendChild(listNode);         tmp.onclick = function() {insertParam(listOfItems[i])}; }   For example: If I have the list [link1, link2, link3], I render them fine and they all show up on my page. When I click link 1, I would like that to be passed into the onclick function as shown... insertParam("link1"). Instead, when I click on link1, it passes in insertParam("link3") for some reason.


Is there an integral domain $R$ with ideal $I$ such that $I^2 = I$ and $I$ is nontrivial?

Where $I$ being nontrivial means $I \neq 0$ and $I \neq R$. I have found that such a ring must not be Noetherian (since otherwise, roughly, you could take some nonzero nonunit $x_1 \in I$ and recursively take $x_i \in I$ such that $x_i^2 = x_{i-1}$ to create a strictly increasing chain of ideals), and if we don't require our ring to be an integral domain, the ring $\mathbb{Z}/6\mathbb{Z}$ with ideal $I = (2)$ works.