Linux why do i have to run commands instead of running the bash file

In order to run an executable file, I need to run all the commands in the below bash file first, so I just put those commands in the bash file and run the bash file first, but running the bash file doesn't work, I have to run the 4 commands one by one in the terminal and then run my executable file in the same terminal, why do I have to do this, why running the bash file doesn't acheive the same as running the commands one by one:  #!/bin/bash export LD_LIBRARY_PATH=/repo/$USER/ncmain/out/rcpi/ITC_CXA11466/x86/lib export ITC_RUNDIR_PATH=/local/scratch/$USER/itc/ export ITC_INSTANCE_NAME=itc_$USER /local/scratch/ehhozzo/RCS_ROOT/software/itcworld


Right Aligned labels lists of non-math text

I'm trying to produce a labelled list of axioms like so:  \documentclass{article}  \usepackage{amsmath, amsthm, amssymb} \begin{document} \begin{itemize}     \item[(Reflexivity)] For all $a \in P$ we have that $a \leq a$,      \item[(Transitivity)] For all $a,b,c \in P$ s.t.                        $a \leq b, b\leq c$ we have that $a\leq c$. \end{itemize} \end{document}   But this causes the label to run into the left margin of my document.  How would one add a right-aligned label to this list? Perhaps in a similar fashion to a && in an align environment?  I'd appreciate any help with this one, thanks.  EDIT - It's been suggested that an item regarding altering left margin spacing would fix this problem. While that is an adequate solution to the problem  of the text running into the margin, I remain interested in a solution to the problem as posed - i.e. a right aligned label.  FURTHER CLARIFICATION - I realise I haven't quite managed to express myself clearly. I would like a bullet pointed list (in itemise, description, whatever) where I have labels (Reflexivity, Transitivity, Anti-Symmetry) to the right hand side of the list - that is, right aligned to the right hand margin of the page. I was unable to do this in my MWE so they appear as the bullet pointed list. Would anyone be able to show how to create labels on the RHS:  \documentclass{article}  \usepackage{amsmath, amsthm, amssymb} \begin{document} \begin{itemize}     \item For all $a \in P$ we have that $a \leq a$,    (Reflexivity)     \item For all $a,b,c \in P$ s.t.            $a \leq b, b\leq c$ we have that $a\leq c$.   (Transitivity) %%Here achieved  with spaces \end{itemize} \end{document}


Find a diffeomorphism $F:\mathbb{R}^n \rightarrow \mathbb{R}^n$ such that $F(x)=y$

Suppose $x,y \in \mathbb{R}^n $. Find a diffeomorphism $F:\mathbb{R}^n \rightarrow \mathbb{R}^n$ and $r>0$ such that $F(x)=y$ and $F(z)=z$ for any $z\in \mathbb{R}^n-B(x,r)$ .


Tag Wiki containing copy/pasted text from CC project?

There was a spurious edit to the  tag that I declined, but also noticed that the original  wiki was copy/pasted verbatim from the .  This is a  project, but the website itself doesnt' appear to be (based on the  page).  In this case, is this considered an appropriate use of information (since it is after all a open-source project, and the text from the main page of the website undoubtedly is not only an excellent description but is useful for the curl group as well)?  Or is this something that isn't technically appropriate and should be rewritten (not by me, as I have no clue what it should say).


Remotely turning on or rebooting a frozen computer

I use a remote desktop program (usually ) to connect to a Windows machine everyday. The remote computer has a fixed IP address, and if the computer is on and responsive, I can access it and even reboot the computer remotely if necessary.  Unfortunately, if the remote computer freezes (for example, if it gets a blue screen), as far as I know, I can't use a remote desktop solution to restart it. Similarly, if my computer is off, I can't use remote desktop to boot it.   I know that one solution is to ask somebody who is physically near the computer to press the reboot or power on button, but I am opening this thread because I am interested in solutions that do not require the physical presence of people to turn on or reboot a remote frozen computer.  Is this possible? If so, what are my options?


Today we have built a console application for running the scheduled tasks for our ASP.NET website. But I think this approach is a bit error prone and difficult to maintain. How do you execute your scheduled task (in an windows/IIS/ASP.NET environment)  Update:   Examples of tasks:   Sending email from an email-queue in the database Removing outdated objects from the database Retrieving stats from Google AdWords and fill a table in the database.


How to replace accidentally deleted etc/kernel directory Ubuntu 19

I just got a little bit over zealous with auto complete in the CLI and accidentally did rm -rf /etc/kernel. Don't exactly know what it does but it sounds important. What can I do to replace it? I tried pulling an Ubuntu 19.10 docker image and checked what was in it: postinst.d/ - apt-auto-removal  But I am not 100% if thats exactly what I deleted. Is anybody able to help me work out what should be in there and how I can replace it without reinstalling the entire os?


I found a lot of videos online showing how to calculate the Fourier transform of  $f(x) = \exp(-ax^2)$, but they all seem to have a mistake or so I think. (I'm not interested in the alternative solution. I'm trying to understand this.)  In these proofs we get by quadratic completion something of the form  $$\int_{-\infty}^\infty \exp\left(-a\left(x + i\frac{y}{2a}\right)^2 \right) \, dx$$  The next argument is to just substitute $z = x + i\frac{y}{2a}$ and get the known integral  $$\int_{-\infty}^\infty \exp(-az^2) \, dz,$$  but can I just blindly say that the boundaries stay the same even though I now integrate from a shifted place in $\mathbb{C}$?  Why should this be the same as   $$\lim_{b\rightarrow \infty}\int_{-b + i\frac{y}{2a}}^{b + i\frac{y}{2a}} \exp(-ax^2) \, dx,$$ which would be my solution?  Are those the same integrals?


"One cannot expect that the inverse of a one-to-one order preserving function will always be order preserving" - Why is it so?

A function on a set $X$ to a set $Y$ is order preserving (monotone, isotone) Consequently, one cannot expect that the inverse of a one-to-one order preserving function will always be order preserving. However, if $X$ and $Y$ are chains and $f$ is one-to-one and isotone, then necessarily $f^-$ is isotone.   In this excerpt, taken from General Topology by John Kelley, the author asserts the inverse of an one-to-one isotone function need not be isotone.  How did the author conclude that?   I would appreciate an illustration that might help me visualise what author meant to say.


I'm about to finish up a BA in linguistics and am looking at some interdisciplinary options for grad school (specifically in cognitive science).   I have a competitive GPA in my last two academic years, though my first year was a bit of a wash to say the least.   I was thinking that it would be a good idea to go back for a second degree for the following reasons:   to boost my cumulative gpa (my academic performance in first year was a pretty big blow to my cgpa) to gain a better understanding of my research interests. (There are certain science courses that I haven't taken that make me feel downright incompetent without, such as first year physics and math.)   However, I'm acutely aware that I know nothing when it comes to grad school admissions, especially when it comes to interdisciplinary programs such as cognitive science. Is a second degree worth it?


Usabilities issues when deleting comments

on cleaning up comments, it happens that I want to delete several comments (f.i. after an excessive discussion about details of a post). Doing so quickly brings up the usual popup:    two issues:   I don't want any time limit on deleting my own comments even if the powers-to ... ehh: community ... decides that there are reasons, the text is incorrect: I'm not voting to do something, I do


If traveling at the speed of lights stops time, why does it take light 8 minutes to reach Earth?

I just learned that, according to Einstein's relativity theory, time reaches zero for an observer (light) when traveling at the speed of light, so everything is supposed to be at the same place in the universe for light. But why does it take 8 minutes for light to travel from the Sun to Earth? Is it because we are observing it from earth? At 300.000 km/s distances in the universe are hardly zero? I can't seem to grasp this.


I want to stop the math size from automatically shrinking in math mode. Usually when, for example, having a lot of nested fractions, the size automatically shrinks to make it all fit.  But I want to prevent this. I want it to display in full size even when I have these nested fractions.  How is this possible?


What if Light wrote the name of Matsuda in the Death note and in the instructions he wrote that he would kill everyone in the room including L while Light was out of the room. Could he not have done something like this?


On a , there is a link to the /review of its Meta site:        Visit the review queues on Music Fans Meta Stack Exchange.   On a , such a link to the main site’s /review is missing.  Proposal: Add a link from Meta /review to its main /review.


Unable name an item with /give command Bedrock Edition

I know this has been asked but I an unable to name an item with /give on Bedrock Edition. The command below is what I have been trying: /give @s minecraft:stone 1 0 {display:{Name:"Test"}}  And this is what it keeps saying:  I have also tried: /give @s stone 1 0 {display:{Name:"Test"}}  But it says this instead:


This problem keeps occuring. Any function within the ArcToolbox gives this error message with different code. The message below comes from using the 'Hillshade' tool.  I've updated my ArcGIS for Desktop 10.2.2 to SP5 and i've tried changing the security settings in Internet Explorer (V. 11.0.9600.17633) but no positive result.   The ''regsvr32 C:\windows\system32\msxml3.dll'' solution doesnt work. Reinstalling ArcGIS doesn't work either.  also tried these solutions:   , ,    no avail


Can questions only appear in the HNQ list once?

Two questions:   Is there anything in the HNQ algorithm that explicitly prevents a question that was on the list from appearing again at a much later date? E.g. a hard age cutoff or anything? If not, is there an actual risk of this happening / has it ever happened in on a significant scale?   The reason I ask is I am writing a little HNQ tracking app, and the logic that I use to track "time on the list" for questions near the end of the top 100 that may pop off and on it depends on this. So if my questions above aren't the right questions in this context, my real, underlying question is:   If my software defines "time in list" as "last seen in list" - "first seen in list", will this always be sufficient? Or will I have to do more complex logic to avoid weird things like "6 months in the list" if a question reappears?      According to , the hotness formula (not including traffic weighting), is:  (MIN(AnswerCount, 10) * QScore) / 5 + AnswerScore -------------------------------------------------          MAX(QAgeInHours + 1, 6) ^ 1.4   Assuming there are no explicit age limits or other logic, this means that a question may reappear on the HNQ list if its score or answers ever get that weight back to the original x / Age^1.4 line. This seems unlikely.


Using 'however' mid sentence with a comma only on one side

According to the various sources here and elsewhere I can find, the following is inappropriate:  "When carrying knives however, it is best not to run."  and should instead be:  "When carrying knives, however, it is best not to run."  Yet, I find myself in normal speech often using the first form, and I wonder a) if it really is incorrect in this context, and b) why it is deemed incorrect.  The same intended meaning could also be achieved with: "However, when carrying knives, it is best not to run."  edit: yes this is a similar question to  , which has helpful answers. If someone wants to close this question, fine, to me this is a more specific question though.


Why doesn't this perpetual motion machine using magnets work?

See image:    If I'm not totally dumb the car would move when the right magnet would not be attached to the car, at same distance of the booth magnets.  So why would it not move?


I am trying to prove a formula (for ways of distributing $n$ identical balls among $r$ persons when each person may get any number of balls) ${n+r-1}\choose{r-1}$. But I am not able to prove it. I may be doing something wrong but I am not able to figure out what exactly?  This is what I am doing.  I put $n$ identical balls in a line. Now there are $(n+1)$ spaces/gaps between these $n$ identical things including (left to the leftmost ball and the next to the rightmost ball). So now basically I just need to select any $(r-1)$ gaps from these $(n+1)$ gaps and I will be able to create $r$ groups.   So, my answer is ${n+1}\choose{r-1}$.  But the actual answer to this is ${n+r-1}\choose{r-1}$ as per   I want to know what am I doing wrong? Thanks!


Proving $A_5$ Has No Subgroup of Order 30

$H$ is a subgroup of $A_5$ that has order 30. From this I know that $|A_5 : H|$ = 2. From this I'm supposed to prove that $H$ contains all 3 and 5 cycles and then use that to prove that there cannot be a subgroup of order 30 in $A_5$. I understand how to do the 3-cycle, but I'm very confused on the 5 cycle. Is there anyway to prove that without using simplicity of $A_5$ or conjugacy classes?


Incorrect hostname keeps appearing in sharing preferences

Problem: I've got two macs in the same network. One of them is often not discoverable via the Finder or Apple Music (shared library). I noticed that this mac has incorrect hostnames in the sharing preferences. When I change the hostname in the text field to bestHostname, the blacked out parts won't change. Instead they show something like phils-imac.domain. The other mac is always discoverable and sharing preferences show up the correct hostname. What I tried: When I type sudo hostnameinto the terminal, the correct hostname appears (the purpled out one). I even tried sudo scutil --set HostName bestHostname to set the hostname via terminal, but system preferences still does not change it. I even restarted the mac. Nothing helped.  Any ideas on how to fix this?


What part of speech is the word "to" in "I left to get more snacks."?

I don't think it's a preposition because a verb comes after it. Is it a particle?


I have played and tried to GM games since I was in elementary school, beginning with games like Shadowrun, Earthdawn, and Champions. Recently, I've gotten dack into gaming with a variety of other games (newer Shadowrun and Earthdawn, plus TOON! and Outbreak:Undead).  I've found examples of actual play and advice on how to actually GM a game in games to be lacking. I can only help but feel I am not alone as someone who isn't already a LITERAL dungeon MASTER.  I fully realize that there are an unlimited number of GM styles, personalities, etc. I do not think I am a very good GM though. No one else wants to be the GM, and few care enough to learn the complex rules that I often have to assist with and explain AS WE PLAY. Being left with the responsibility is quite overwhelming unless I create dynamic encounters or make it all up on the spot. I'm often left having no idea what to do.  Examples of Why I Think I Need Help  This question isn't about these examples so please don't dig into them in the answers - they're here to explain the basic things that leave me feeling like I don't know how to proceed as a GM.  I've read preparation is important, but last time I tried to make a story, the players immediately killed the primary character (a friendly person.) within about 2 minutes of starting the game. While I realize now that I let the dice take control over the story, it was rather difficult to continue a story that relied on this friendly character, with the players making enemies with the character's faction. It is still discouraging when my only other attempt at a prepared story ended with the players wanting to go in a complete opposite direction of where I planned. Both times, the hours of work I put into it were completely wasted, leaving me as ignorant as I always was before.  My group often wants to play Shadowrun, Earthdawn, or L5R- but I feel as though I am a horrible GM. The last time we played Shadowrun, I was bored out of my mind as we rolled hundreds of dice to do an obvious straight-forward "kick down the door" mission.   If I make security as I believe it should or as the forum threads describe their security or a few example missions I can scrounge up (examples of stories, not actual gameplay), my players literally feel completely hopeless as to how to achieve their mission without total failure.   One time when I was a teenager, I had players blow up at me saying "We have no idea what would work. You're telling us that our character's experience or the ally operative says that would get us killed, but what else can we do?" Since there are no examples of what players can do - I am left with the same feeling as the players. As an adult, I've had a similar occurrence where a player said to me, "I don't know what to do. I don't think we can even begin this mission." I had to make something up and just go with it, creating an NPC group (that fit in with the story) that goes in before the players to do something stupid so they don't have to. Mainly because I ALSO didn't know how to accomplish the mission, so I acted as the players would using my NPC group. Extremely boring and IMO a failed dungeon run.  I've had successful stories, but I've had more boring encounters than successful ones. Seeing as how roleplaying takes endless hours to complete a story, I do not see benefit in an activity that wastes more time than is enjoyable.  How Do You Learn To GM?  Where are the resources? Books, blogs, gameplay examples? Am I missing them? How did YOU learn to be a good GM? Or do you feel as bad at this as I do, even when it's a successful, fun encounter?


How to structure logos with different color combinations in Illustrator?

I'm sure this is a common problem, but I haven't found an efficient solution yet.  I've created a 4 color logo and I want to create a few versions of it with different colors for use on different backgrounds. I'd love to be able to use the same symbol as much as possible.  My natural inclination is to duplicate the symbol over a number of artboards in the same file, and have a different color scheme in each artboard, but it seems like I need to break the symbol to accomplish this.  My assumption is that there's no quick solution to this, but is there a common workflow that keeps things more-or-less linked and organized?


How to deepfreeze Ubuntu like Windows deepfreeze?

Is there any application in Ubuntu that can do exactly what Windows DeepFreeze does?  (for example: you are working fine but when you restart the PC it always goes back to the time when you applied deepfreeze)  Example:  When you want to un-deepfreeze you apply password, so that it can be used by anyone but only Admin can un-deepfreeze to upgrade.   Once you logged in you can then tell is it frozen mode or upgrade mode:    How can i do this in Ubuntu please?  EDIT:  DeepFreeze for Windows works as below:  1 - you have installed windows 8.1 pro with drivers, softwares, config, policy etc etc. you are happy with your configuration and you think its final and reliable and its stable. But now you want to allow this KIOSK to be used by Public locations  2 - Because it has to run in Public locations there are many issues. To get prevent from all the issues there is this tool call DeepFreeze. You can install it once and make everything frozen. Which allow the users to work day and night without cause any problem in the PC.  3 - When the PC is rebooted, DeepFreeze automagically restore to the position when DeepFreeze was applied.  This prevent the system to run 24/7 in a public location or in a location where you want to deploy reliable, stable release for not to expect any new surprises.  DeepFreeze provide that solution and its very easy to configure takes about 4 to 5 minutes.


What software works well for viewing massive TIFF images on Windows 7?

Today I saw an article about a half-gig, 24000 square-pixel high-res composite .    (This is a much smaller version of the image)  I find astronomy interesting, so I thought I'd download it and take a look. With 4GB of RAM and an i5 processor, I figured my computer could handle it. Unfortunately, the built-in Windows Picture Viewer didn't do such a great job. While it opened the file without a problem, zooming in was ineffective. The zoomed out image loaded, but zooming in just showed a scaled-up version of the zoomed-out version, not any detail:    Closing the picture viewer also took a very long time, and the whole process used up much more RAM than the 500MB of the picture (usage went from 1.3GB to 3.8GB).  What other software would work better for this? I would prefer something that is free and fairly simple. I don't really want to use an editor (like photoshop or GIMP), just a nice lightweight viewer. Any suggestions?


Creating parallel line in ArcGIS Pro using ArcPy?

I want to create offset/parallel lines for my centre lines (over 12000 polylines) in different distance for each class number(i have numbers in column) and with the same line direction as centre line.   My idea was to create mid point for each line and then move the line at the same angle but i don't know how to do it in Python.  Also i know the way creating line buffer, splitting buffer etc. but then lines are not in the same direction and ArcGIS Pro basic not support polygon to lines tools etc.   The problem is that I am using basic licence in ArcGIS Pro which not support advanced tools.   Is there any way to do it using Python script?     import arcpy  #setup inputs inFC = arcpy.GetParameterAsText(0)  outFC = arcpy.GetParameterAsText(2)   #setup output path fcPath = outFC.rpartition("\\")[0] fcName = outFC.rpartition("\\")[2]  if arcpy.Exists(outFC):     arcpy.Delete_management(outFC) arcpy.CreateFeatureclass_management(fcPath,fcName,"POLYLINE","#","DISABLED","DISABLED",inFC) arcpy.AddField_management(outFC,"inFID","LONG","#","#","#","#","NULLABLE","NON_REQUIRED","#")   def shift_features(inFC):     """     Shifts features by an x and/or y value. The shift values are in     the units of the inFC coordinate system.      Parameters:     inFC: string         An existing feature class or feature layer.  If using a         feature layer with a selection, only the selected features         will be modified.      x_shift: float         The distance the x coordinates will be shifted.      y_shift: float         The distance the y coordinates will be shifted.     """      with arcpy.da.UpdateCursor(inFC, ['SHAPE@XY', 'Shift_X_right', 'Shift_Y_right']) as cursor:         for row in cursor:             cursor.updateRow([[row[0][0] + (row[1] or 0),                                row[0][1] + (row[2] or 0)]])      return  outFC = shift_features(inFC)   I try to shift my lines using attribute stored inside my table. When i put normal x_shift value like 2 meters shift function work correctly. But when i try to call my table it creates error. I don't know if shift function support shifting by attribute table values. Can you help me?  UPDATE If that will help i got script that do the same us feature vertix to points.  # Feature Class to Points #  # Paul Smith (2012) paul@neoncs.com.au  # Imports  import arcpy import numpy  #Inputs from user parameters  InFc  = arcpy.GetParameterAsText(0)  OutFc = arcpy.GetParameterAsText(1)   # Spatial reference of input feature class  SR = arcpy.Describe(InFc).spatialReference  # Create NumPy array from input feature class  array = arcpy.da.FeatureClassToNumPyArray(InFc,["SHAPE@XY"], spatial_reference=SR, explode_to_points=True)  # Check array and Exit if no features found if array.size == 0: arcpy.AddError(InFc + " has no features.")  # Create a new points feature class else: arcpy.da.NumPyArrayToFeatureClass(array, OutFc, ['SHAPE@XY'], SR)


Show that Aut(G) is a subgroup of Sym(G).

I was reading a text and this was the proof that they provided:     Clearly Aut(G) is a subset of Sym(G); we need to check that it is a   subgroup. Certainly the composition of two automorphisms is an   automorphism, and it is easy to check that the inverse of an   automorphism is an automorphism.   I don't understand it so any proof better than this would be appreciated.


I created a mesh with some Edgeloops, which happen to be at different distances from each other (see pic). But i want them to have the same distance between each other. how could one achieve that without remodel the mesh(or positioning them manually)? I do not mean to distribute the vertices on a single edgeloop. I would like to have something like: select X edgeloops, press "wonderous button to do the dreamed task" -> create same distance between the loops. something like this.


Why my boolean variable should be volatile while stopping thread loop?

Let's say I have a thread including while loop and I want to stop it "from outside".  public class MyThread extends Thread {      private boolean running = true;      @Override     public void run() {         while (running) {             // do something         }     }      public void setRunning(boolean running) {         this.running = running;    } }   And here is the Main class:  public class Main {     public static void main(String[] args) {         MyThread mt = new MyThread();         mt.start();         // do something         mt.setRunning(false);     } }   It seems to be stopping properly, but I have read that the boolean should be also volatile. Why? Will it quicken the stopping?


I am studying the use of GRASS GIS within QGIS and I need a little help with the understanding of the v.kernel module. I didn't find any human help within the manual (very cryptic)  I have a point data vector and I need to study the density of the points distribution in my mapset using a bandwidth of 1000 meters.  How do I set the parameter <stddeviation>, or in other words ... what is this parameter related to? What is the correct use of this parameter in relation with the settings of the bandwidth? Can I simply set the parameter with a value of 1000?


hello i have a error "object reference not set to an instance of an object"  when my ball collide with the spikes.its supose to remove one heart but it doesnt.  health code:  using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI;  public class Health : MonoBehaviour {   public int health;   public int numOfHearts;    public Image[] hearts;   public Sprite fullHeart;       // Use this for initialization   void Start () {    }    // Update is called once per frame   void Update () {     if (health > numOfHearts)     {       health = numOfHearts;     }       for (int i = 0; i < hearts.Length; i++)     {       if (i < health)       {         hearts[i].sprite = fullHeart;       }       if (i < numOfHearts)       {         hearts[i].enabled = true;       }       else       {         hearts[i].enabled = false;       }     }    }   public void Damage(int dmg)   {     numOfHearts -= dmg;   } }   spikes code:  using System.Collections; using System.Collections.Generic; using UnityEngine;  public class Spikes : MonoBehaviour {    private Health Player;     // Use this for initialization   void Start () {     Player = GameObject.FindGameObjectWithTag("Player").GetComponent<Health>();     }    // Update is called once per frame   void Update () {    }    void OnTriggerEnter2D(Collider2D col)   {     if (col.CompareTag("Player"))     {       Player.Damage(1); // here i have the error.     }   } }


How can I add a line including single quotes to a file with sed

I want to append the following line to a text file with sed:  gem 'forum2discourse'   I've tried sed -i '$a gem \'forum2discourse\'' Gemfile but this drops me to a > prompt so I think I must be incorrectly escaping the ' characters


How to specify shapefile variables length in R?

I am using R to edit some shapefiles with readOGR and writeOGR functions. I can edit the name and type of my shapefile variables, but not the length.  Example: i want that my variable of type string takes a length of 20. For now it takes the default length of 80 (i visualize the shapefile under QGIS).  Any hint ?


Delete Files Older Than One year on Linux

By the time, many files are still on my system and I don't need them anymore, so how to delete all files that are one year old at least?


Can a self-adjoint operator in a C*-algebra be such that $\|a^3\|\neq \|a\|^3$?

Given an element $a\in\mathcal A$ which is self-adjoint, it is easy to prove that $\|a^2\|=\|a\|^2$, from $\|a^2\|=\|aa^*\|=\|a\|^2$. This can be generalised to say that $\|a^{2^k}\|=\|a\|^{2^k}$.  What about the other powers? Can you have for example $\|a^3\|\neq \|a\|^3$ for a self-adjoint $a$? If so, what is an example of an operator that does this?  This doesn't seem to be possible in a finite-dimensional Hilbert space, as if $A$ is a self-adjoint operator then $A^n=\sum_k \lambda_k^n u_k u_k^*$ with $\lambda_k\in\mathbb R$ its eigenvalues, and thus $$\|A^n\|=\max\{\lambda_k^n\}=(\max\lambda_k)^n=\|A\|^n.$$


What would a closed timelike curve look like?

What exactly are . In a metric in which they would exist, what would they look like. What would it be like travelling through them? It obviously wouldn't look like a door. Would it be a region of space that if you wonder into, it can happen that see your past self?


I'm reading a .pdf file about Probability.  the link  The author introduces the lemma 4.1, suggesting to consult the proof in a specific book. I tried to search the lemma in the book but i didn't find it. Please help me to find a name for this lemma so as i can consult its proof...     Lemma 4.1. Let $Z_1, Z_2, \dots$ be a sequence of random variables having distribution functions $F_{Z_n}$ and moment generating functions $M_{Z_n}$ s.t. $n \geq 1$. Furthermore, let $Z$ be a random variable having distribution $F_Z$ and moment generating function $M_Z$. If $M_{Z_n}(t) \to M_Z$ for all $t$, then $F_{Z_n}(t) \to F_{Z}(t)$ for all $t$ at which $F_Z(t)$ is continuous.


Transit visa for Munich airport for Canadian PR

I am a Canadian permanent resident planning to transit via Munich airport. I read the transit visa exceptions at  It says      Still, there are some categories of people, who may be nationals of the above-mentioned countries, but if they belong to one of the following they do not need to obtain a visa of this kind:   - holders of a valid visa for a Schengen Member State, Bulgaria, Canada, Croatia, Cyprus, Ireland, Japan, Romania or UK   I am a citizen of one of the countries listed above that statement that that would usually need a visa but are exempt under that condition. However, do they differentiate between a PR card (permanent residency proof) vs. just a visa? I.e. is PR card a stronger document than a visa (I would assume so but wanna be sure).   For e.g. one of my other stops on the way back is Zurich. I also read their requirements:   I am again, a citizen of the countries who would usually need a visa but am exempt under the condition:     Holders of a valid residence permit, issued by one of the following states:    - Canada   here they make a clear distinction between a visa and a residence permit. Is there anything to be worried about? I have transited many times through Europe but at that time I had a valid US visa. Anyone with experience in these matters please give your opinion.  EDIT: Did additional research and found the link of German embassy/mission in Canada:   which states:     If one of the following conditions applies to you, you WILL NOT require an airport transit visa when transiting through one German or Austrian airport:         you hold a valid Canadian Permanent Resident Card   you hold a valid Canadian visa   you leave Canada after having used a Canadian visa


Apache Jersey exception:java.lang.NoSuchMethodError: org.glassfish.hk2.utilities.AbstractActiveDescriptor

I am learning Java rest webservices using Jersey Framework.  Created one sample project in eclipse but not able to deploy it in tomcat. Below libraries added in eclipse project. Can anyone please help me out here  cglib-2.2.jar hk2-api-2.3.0-b06.jar hk2-locator-2.1.63.jar hk2-utils-2.5.0-b04.jar javassist.jar javax-inject.jar javax.annotation-api-1.2.jar javax.ws.rs-api-2.0.jar javax.ws.rs.jar jersey-bean-validation-2.17.jar jersey-client.jar jersey-common.jar jersey-container-servlet-core.jar jersey-container-servlet.jar jersey-guava-2.7.jar jersey-media-jaxb.jar jersey-server.jar validation-api-1.0.0.GA.jar  Getting below error while running project in Apache server inside eclipse.         SEVERE: StandardWrapper.Throwable     java.lang.NoSuchMethodError: org.glassfish.hk2.utilities.AbstractActiveDescriptor.<init>(Ljava/util/Set;Ljava/lang/Class;Ljava/lang/String;L     java/util/Set;Lorg/glassfish/hk2/api/DescriptorType;Lorg/glassfish/hk2/api/DescriptorVisibility;ILjava/lang/Boolean;Ljava/lang/String;Ljava/     util/Map;)V         at org.jvnet.hk2.internal.ConstantActiveDescriptor.<init>(ConstantActiveDescriptor.java:113)         at org.jvnet.hk2.internal.Utilities.getLocatorDescriptor(Utilities.java:951)         at org.jvnet.hk2.external.generator.ServiceLocatorGeneratorImpl.initialize(ServiceLocatorGeneratorImpl.java:71)         at org.jvnet.hk2.external.generator.ServiceLocatorGeneratorImpl.create(ServiceLocatorGeneratorImpl.java:96)         at org.glassfish.hk2.internal.ServiceLocatorFactoryImpl.internalCreate(ServiceLocatorFactoryImpl.java:270)         at org.glassfish.hk2.internal.ServiceLocatorFactoryImpl.create(ServiceLocatorFactoryImpl.java:230)         at org.glassfish.jersey.internal.inject.Injections._createLocator(Injections.java:138)         at org.glassfish.jersey.internal.inject.Injections.createLocator(Injections.java:123)         at org.glassfish.jersey.server.ApplicationHandler.<init>(ApplicationHandler.java:330)         at org.glassfish.jersey.servlet.WebComponent.<init>(WebComponent.java:392)         at org.glassfish.jersey.servlet.ServletContainer.init(ServletContainer.java:177)         at org.glassfish.jersey.servlet.ServletContainer.init(ServletContainer.java:369)         at javax.servlet.GenericServlet.init(GenericServlet.java:158)         at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1284)         at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1197)         at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1087)         at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5253)         at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5543)         at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)         at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1574)         at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1564)         at java.util.concurrent.FutureTask.run(Unknown Source)         at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)         at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)         at java.lang.Thread.run(Unknown Source) enter code here


Python: given a set of elements return a collection of all its permutations

trying to make a function permutations(s) that takes a set of elemnts and returns a collection of all its permutations, where the permutations are of type tuple.  Here is my code:  def permutations(s): str1 = list(s) if len(str1) <= 1:     print(s) else:     for i in range(0, len(s)):         str1[0], str1[i] = str1[i], str1[0]         permutations(str1[1:])         str1[0], str1[i] = str1[i], str1[0]   given this input  print(sorted(permutations({1,2,3})))   it should return   [(1, 2, 3), (1, 3, 2), (2, 1, 3), (2, 3, 1), (3, 1, 2), (3, 2, 1)]   but after alot of headache i can only seem to get   [3][2][3][1][1][2]


How to charm-like effects that do not affect charm immune creatures interact with Fey Ancestry?

In Mordenkainen's Tome of Foes (pg. 189), the Duergar Mind Master has the following Mind Mastery action:     Mind Mastery. The duergar targets one creature it can see within 60 feet. The target must succeed on a DC 12 Intelligence saving throw, or the duergar causes it to use its reaction either to make one weapon attack against another creature the duergar can see or to move up to 10 feet in a direction of the duergar's choice. Creatures that can't be charmed are immune to this effect.   An elf has the Fey Ancestry racial feature, listed in the PHB (pg. 23):     Fey Ancestry. You have advantage on saving throws against being charmed, and magic can't put you to sleep.   Mind Mastery does not specifically say that it charms its target, which is to say, imposes the "charmed" condition. However, it does call out that creatures who are immune to charm effects are immune to this effect as well.   So what of elves, or other creatures who have advantage against saving throws to charm effects? Would this apply here due to the fact that creatures immune to charm effects aren't affected, or does it not apply because it's not specifically "being charmed"?


I consulted some dictionaries, for example in  the entry for graphic reads     very clear and powerful:   a graphic description/account   He insisted on describing his operation in graphic detail while we were eating lunch    but I am still confused by the meaning of "graphic language" in such a sentence:     WARNING: This story contains graphic language.   Why is language called ‘graphic’, what is its origin?


Suppose the proper length of a train is longer than that of a bridge, and the bridge can't bear the total weight of the train but can bear it partially. As the train goes very fast, it becomes shorter than the bridge and it can be entirely on the bridge. As a result, the bridge will collapse. However, in the train's frame, the train is even longer than the bridge, and it is only partially on the bridge; so the bridge will not collapse. What is the solution to this paradox?


for (String fruit : list)     {         if("banane".equals(fruit))             list.remove(fruit);         System.out.println(fruit);     }   Here a loop with remove instruction. At execution time, I get some ConcurrentModificationException, below the console output:  Exception in thread "main" java.util.ConcurrentModificationException at java.util.AbstractList$Itr.checkForComodification(AbstractList.java:449) at java.util.AbstractList$Itr.next(AbstractList.java:420) at Boucle.main(Boucle.java:14) abricot banane   Question: How to remove some element with a loop?


so I'm working on a little bathroom scene and wanted to make a clay render. I started looking for the material override which I kinda knew where it was and on the way I switched my render engine accidently to workbench instead of cycles. Switched to cycles all my seetings on the render tab are missing except color management and free style. Hows that? I restarted blender multiple times and tried some other stuff but nothing changed a thing, and I'd rather avoid a new installation


Which is correct: The rest of the staff is or are? The rest of my family is or are?

I hope you can enlighten me. I get varying answers in Google and I need to find out which is the correct grammatical structure for these sentences.     The rest of the staff is/are on leave at the moment.      The rest of my family is/are arriving late.


I just made my first brew and I started the fermentation process in a plastic container. Should I transfer the brew into a glass fermenter? It's only been sitting in the plastic one for 2 days.


How can I fix these errors I get when running APT?    Running ppa-purge gives error below  Updating packages lists W: The repository 'http://ppa.launchpad.net/chris-lea/libsodium/ubuntu xenial Release' does not have a Release file. W: The repository 'http://ppa.launchpad.net/fossfreedom/packagefixes/ubuntu xenial Release' does not have a Release file. W: The repository 'http://ppa.launchpad.net/mc3man/trusty-media/ubuntu xenial Release' does not have a Release file. E: Failed to fetch http://ppa.launchpad.net/chris-lea/libsodium/ubuntu/dists/xenial/main/binary-amd64/Packages  404  Not Found E: Failed to fetch http://ppa.launchpad.net/fossfreedom/packagefixes/ubuntu/dists/xenial/main/binary-amd64/Packages  404  Not Found E: Failed to fetch http://ppa.launchpad.net/mc3man/trusty-media/ubuntu/dists/xenial/main/binary-amd64/Packages  404  Not Found E: Some index files failed to download. They have been ignored, or old ones used instead. Warning:  apt-get update failed for some reason


I am curious what justifies the use of shorthands or abbreviations for certain formulas in first order logic. In particular, I'm interested in building up some basic mathematical principles from the zfc axioms and there's many times when a new symbol is introduced which expresses some logical statement more succinctly. My question is how this is logically or syntactically justified. For example, in the Wikipedia article for  under the Axiom of Extensionality it is stated that $x=y$ can be taken to be shorthand for  $$ \forall z[ z \in x \Leftrightarrow z \in y] \land \forall w [ x \in w \Leftrightarrow y \in w] \hspace 1in (1) $$  The way I interpret that is anywhere we see the above expression we can delete it and "plug in" $x=y$.  My questions are as follows.  First, is there a way to notationally indicate that the expression $x=y$ and the expression in $(1)$ are related in such a way (logically equivalent?) that one can (without any intervening steps?) simply replace one by the other in any expression?  Second, which rules of logic allows us to create definitions like $x=y$ and which rules allow us to make the replacements indicated above?  As a slightly simpler example or a hint at what I feel might be the answer, suppose we have the two axioms  $$ B \Leftrightarrow C $$ $$ A \land B $$  Now in a few lines we could derive $A \land C$. However, it seems to me that if we have ANY formula involving $C$ we could in some number of lines derive the same expression but with $B$ replaced by $C$. This would especially be useful in very complicated expressions where $B$ might be embedded pretty deeply in the expression and it would be hard to get at $B$ to replace it with $C$ using the usual rules of deduction. Is there something that allows us to replace all instances of $B$ with $C$ if we have an expression like $B \Leftrightarrow C$.  I would appreciate someone pointing me towards the correct concepts I should be looking up and some proper notation for the concepts I am trying to express!  Also note: I don't really know the meaning of things like $\vdash$, $\vDash$, or the difference between $\leftrightarrow$, $\Leftrightarrow$, $=$, $\equiv$, which are sometimes brought up as having different meanings. Maybe these different meanings are key to my question.


Python nested for-loops returning wrong result (?)

I have a question concerning this piece of code:  def new_field():     global field     field= [[]]*9     for x in range(9):         for y in range(1,10):             field[x].append([y," "])     return field   The way I understand for-loops, it should return a list like this: [[[1, " "], [2, " "], [3, " "], ...[9, " "]], [1, " "], [2, " "], ...  which would mean that field should have a length of 9 for every index from 0 to 8 ->   len(field[0]) should be 9. Instead the length is 81 for every index, what should be the entire list can be found in every sublist.  It looks like this:  [[[1, ' '], [1, ' '], [1, ' '], [1, ' '], [1, ' '], [1, ' '], [1, ' '], [1, ' '], [1, ' '], [2, ' '], [2, ' '], [2, ' '], [2, ' '], [2, ' '], [2, ' '], [2, ' '], [2, ' '], [2, ' '], [3, ' '], [3, ' '], [3, ' '], [3, ' '], [3, ' '], [3, ' '], .......   Now I have a feeling that I simply dont understand how exactly for-loops work, but I just dont get what I am missing or where the problem in my thoughtprocess is.  Hope someone can help!


Output file #0 does not contain any stream

ffmpeg $(youtube-dl -g 'https://www.youtube.com/watch?v=zSyNOO_gvUY' | sed "s/.*/-ss 02:04 -i &/") -t 02:18 -c copy out.mkv from  i use windows, ubuntu app, shell bash EVERYTHING WORKING Made updates to ffmpeg, youtube-dl from bash, deleted env path's to old ones in win, pc restart


I wish to integrate my .NET web Application to ArcGIS via JS Web API but the application is for commercial use and at an organizational level.   Can someone please give me an insight on:   available SDKs Free SDKS, available if any Licensing policies/costs.


In epsilon delta method, is this possible?

When we use the epsilon delta method, we use the Strictly inequality as follows:  function $f$ is continous at $x=a$ if and only if For arbitrary $\epsilon$, there exist a $\delta$ such that  If $ | x-a | < \delta$ then $ | f(x) - f(a) | < \epsilon$  Is it possible to change the strictly inequality($<$ to inequality($\leq$) in the above expression? If possible is this equivalent?


Probability density of conditional multivariate distribution

We have a multivariate normal vector ${\boldsymbol Y} \sim \mathcal{N}(\boldsymbol\mu, \Sigma)$. Consider partitioning  ${\boldsymbol Y}$ into   $${\boldsymbol Y}=\begin{bmatrix}{\boldsymbol y}_1 \\  {\boldsymbol y}_2 \end{bmatrix}$$  Say that $f_Y$ is a probability density function for $Y$. What can we say about the probability density function $f_{y_1|y_2 = a}$ of conditional multivariate distribution $(y_1|y_2 = a)$?   Does this hold? :  $$f_{y_1|y_2 = a}(y_1) \stackrel{?}{=} {f_Y([y_1,y_2 = a]) \over \int_{y_1} f_Y([y_1,y_2 = a])}$$  Intuitively, I would assume that we could use $f_Y$ in the appropriate $y_2 = a$, and then normalize it to integrate to 1... Or is there some "gotcha" that the density scales differently in the space of $y_1$? I know that it the conditional distribution could be computed with the  but this could save computational time in cases when you don't actually need a density normalized to 1, which is my case.  PS: and then, probably, $\int_{y_1} f_Y([y_1,y_2 = a]) \stackrel{?}{=} f_{y_2}(y_2 = a)$, so perhaps the normalization would also be simple?


How to run privileged bash script as non-root?

I created a simple bash script which contains the command ifconfig. In general I want to execute such a privileged script to run as non-root user. I have tried hown root:users ./path/to/script.sh followed by chmod 4550 ./Desktop/dhcp_client.sh I tried even 4755. I want to use bash scripts to include some privileged commands then I must run the script that contains them as non-root. Then I must invoke these scripts from an application which is run as non-root.


Consider the two sentences  He reported that the car was on fire. He reported the car was on fire.  Which usage is considered correct? Are there any hard and fast rule when to use or not use "that"? Is there terminology that describes this usage/situation?


Control the iterations of triple nested loop in list comprehension, Python

I have 2 lists which I need to iterate through:  hits_idx2 = [ 0, 1, 2] common_b = [ [835,1234,2345] , [223,544] , [423,1234]  ]   in order to produce the following output:     0, 835   0, 1234   0, 2345   1, 223   1, 544   2, 423   2, 1234   I created a nested loop using list comprehensions and a check to see if the element returned at the each iteration if the last element in each sublist, if it not the loop should continue, if it is it should go to the next element of hits_idx2 and iterate through the second sublist in common_b:  for x,y in [(x,y) for x in hits_idx2 for ind in hits_idx2 for y in common_b[ind] if y!=common_b[ind][-1]]:     print (x,y)   but unfortunately I am getting the following:     0 835   0 1234   0 223   0 423   1 835   1 1234   1 223   1 423   2 835   2 1234   2 223   2 423   I am kinda stuck, any help more than welcome. thanks!  I solved it as follows:  for h,y in [ (h,common) for h, common in [(h, common) for h, commons in zip(hits_idx2, common_b) for common in commons] ]:     print(h,y)


Finding the last two digits of a large exponent

I am trying to find the last two digits of 3745  I know I need to solve 3745 = x(mod 100), but I'm not sure how to go about doing that. I know it has something to do with Euler's  Any help is greatly appreciated


I have the following code which doesn't align a) and b) with the top of the image. How can I align them?  ... \begin{enumerate} \item Find the unknown values and in each case, give a reason.     \begin{enumerate} \item \includegraphics[scale=0.6]{images/image1.png}\\ \item \includegraphics[scale=0.6]{images/image2.png}\\   \end{enumerate} \end{enumerate} ...


I'm aware that  is similar but for my taste, I   don't find intuitive. Why $\beta$ distribution is U shaped when $\alpha$, $\beta$ < 1?


1a.  This football team won the league championship 3 times over the last 5 years.   1b.  This football team won the league championship 3 times during the last 5 years.   1c.  This football team won the league championship 3 times in the last 5 years.      2a.  This football team has won the league championship 3 times over the last 5 years.   2b.  This football team has won the league championship 3 times during the last 5 years.   2c.  This football team has won the league championship 3 times in the last 5 years.      3a. He achieved great success over the last 5 years.   3b. He achieved great success during the last 5 years.   3c. He achieved great success in the last 5 years.      4a. He has achieved great success over the last 5 years.   4b. He has achieved great success during the last 5 years.   4c. He has achieved great success in the last 5 years.   For these sentences, we have three choices for the preposition.  How do we choose?  Does the tense of the sentences (past vs. present perfect) influence the choice?


What is the difference between micro-kernel and monolithic-kernel?

I heard that Unix/Linux is a monolithic-kernel whereas Hurd is micro-kernel. So, I want to know what is the difference between these kernel type?


Who keeps track of my contributions to my Roth IRA?

Since withdrawals up to the amount you contributed in a Roth IRA are tax and penalty free, who keeps track of that amount?  I've transferred my Roth IRA from one broker to another so the new broker doesn't know the total amount I've put in.  I don't recall reporting Roth IRA contributions on my tax forms for prior years.


I have two MySQL insert statements on my site.  If I insert a £ sign into $data through this statement it goes in as a £ - which is fine.  $query = "INSERT INTO `applicants` (`id`, `data`, .....)  VALUES ('0', '".addslashes($data )."',... ";    In the second statement the £ in $data goes in as Â£ The insert statement is   $stmt = $conn->prepare('INSERT INTO applicants SET    `data` = :data, ........   $stmt->bindParam(':data', $data);      Might the Â£ problem be caused by the way $stmt / bindParam insert statement?


Error trying to install WINE on ubuntu 20.04

I get this error after adding the repository to install wine any suggestions?  E: Failed to fetch   403  Forbidden   E: The repository 'http://ppa.launchpad.net/jonathonf/python-3.6/ubuntu focal InRelease' is not signed.   N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details.


What is the concept/theory behind the fact that when two shapes approximate each other, their lengths are not necessarily equal?

I was re-reading about the method of exhaustion, and how it can be used to approximate the area of a circle via successive 2n-gons, by basically adding new triangles to each side of the previous polygon.   But then I remembered a weird problem in which a unit circle is approximated by a circumscribed square, from which we remove the corners, and then we remove the corners of the new "step-looking figure", ad infinitum, leading to a perimeter of 4 for the circle, as shown in this figure    This is, of course, ridiculous. But I can't quite put my finger on why. At first I thought it might be some obscure thing between areas and perimeters, but then I ran into a different problem that deals strictly with lengths, and ends by "showing" that '\sqrt{2} = 2', as shown in     so now I'm thinking perhaps something to do with fractals, but I'm not even sure how to start my research on the topic  ***I'm not sure the site is loading properly, because of my internet connection, as I don't see the formatting options bar, and the tags won't show the usual suggestions as I type, so I apologize for any weird formatting within my question


EDIT: The linked 'duplicate' does not resolve my problem; I am not transforming divs, I am transforming images aligned on the same row with input fields within a div.  EDIT 2: Solution found: use 'left: 0; right: 0' in div of interest.   (see in 'right results' setting)  I seek to slide images in and out of screen, all centered in own
. The above code achieves the sliding, but fails to center the incoming images for all zoom levels; absolute positioning w/ pixels only works for one zoom.   Note: in the full code, the 'images' are wrapped by <input> calling onclick, onmouseover, and onmouseout JScript functions. I set slide-in transforms to end at 0 to retain input field functionality.  How do I slide the images (and inputs) to the
 center for all zoom levels? Help is appreciated.  HTML

     Stuff

   CSS  * {box-sizing: border-box;}    .row {display: flex; flex-wrap: wrap;}  .left {flex: 20%;        background-color: #f1f1f1;        padding: 20px;} .main {flex: 80%;        background-color: white;        padding: 20px;        overflow: hidden;        position: relative;} .lleft {position:absolute; left: -300px;}   /* Animation CSS (added to elements via JavaScript) */


How would you go about reverting a single file to previous commit state using git?

I wonder why isn't it implemented in the GUI? I know git has a content approach vs. single file approach but sometimes single file reverting is crucial.  For instance an .png graphics file from a few commits before is needed.  Probably I need to do a checkout but I'm still not sure as the concepts sometimes escape me.


Homeomorphism from $[0,1]\times[0,1]$ to $\overline{D}(0,1)$?

I'm trying to construct a homeomorphism from $[0,1]\times[0,1]$ to $\overline{D}(0,1)$. I'm pretty sure there is one.  I've been trying to work geometrically : mapping $[0,1]\times[0,1]$ to $[-1/2,1/2]\times[-1/2,1/2]$ (which is realatively easy) and then mapping the boundary of the latter to the boundary of $\overline{D}(0,1)$ and generalizing to the inside of both... I think it could work but I can't construct the map, can you help me?  Thanks a lot!


How to render an object with both a base mesh wireframe and subdivision surface wireframe?

How can an object be to rendered using the cycles render engine so that it renders with normal maps, specular maps, etc, and shows wireframes of the mesh and the subdivision surface modifier? For example, -   This is done with a texture, but is there another way?


I have a document where one part is pretty long 2-column table (like 200 lines or so). I used longtable to ensure that the table would spread across multiple pages, but it took 5 of them to render.  I tried to use multicol package to render 3 parts of the table per page, but it didn't work. It used only first column of the multicol  Do you know any working alternative?  Thanks!


In WSL Ubuntu 16.04 ran nano /etc/cron.d/cronjobs and there I've written * * * * * touch /var/www/html/myFile (that's the only data in that file). I saved the file, waited a minute but no file is created in /var/www/html/.  I made sure the cron service is working (service cron start), got "OK" and waited another minute.  Yet still the touch doesn't effect --- no file by the name of myFile is created under /var/www/html.  What have I missed?


Partial sums of $\sum_{n = 1}^{\infty}\frac{1}{n(n + 1)(n + 2)}$

I have to calculate $\sum_{n = 1}^{\infty}\frac{1}{n(n + 1)(n + 2)}$. I decompose into partial sums and I get $$S_{m}=\sum_{n=1}^{m}\frac{-1}{x+1}+\sum_{n=1}^{m}\frac{1}{2(x+2)}+\sum_{n=1}^{m}\frac{1}{2x}$$ But I don't know how to proceed.


apt-get update updates all the packages?

I am new  to ubuntu and would like to know if apt-get update updates the list of installed as well as uninstalled but available packages from  various repos?


Java Rookie Attempting to code a Calculator

I am new to Java and I am trying to code a calculator. The numbers are not calculating and I am not sure why that is happening.  Here is my code:  import java.util.Scanner;  public class Calculator {     public static void main(String[] args){          System.out.println("Type in any 2 numbers: ");         Scanner math = new Scanner(System.in);         int number = math.nextInt();         int num2 = math.nextInt();          System.out.println("Which operation would you like to use? (+,-,*,/)");         String oper = math.next();          if (oper == "+"){             int total = number + num2;             System.out.println(total);         }         else if (oper == "-"){             int total = number - num2;             System.out.println(total);         }         else if (oper == "*"){             int total = number * num2;             System.out.println(total);         }         else if (oper == "/"){             int total = number / num2;             System.out.println(total);         }     }  }


How can I run a simple text to speech command?

In Windows I can do these steps:  1. Open Notepad 2. Copy and Paste   CreateObject("SAPI.SpVoice").Speak"Hello."  3. Save it as xyz.vbs 4. Run it/Open it   It will then speak "Hello". Is there something like this in Ubuntu?


Could somebody give me a good explanation for how $i^i$ works?  I'm a junior and just now getting to this.  I'm also too hard pressed for time to dive into exploring it myself.


I have this portion of the code. I want to know how can I read the url as the current page instead a fix url  Here is the portion of the coding:  var str='';       if(model_id != 0 ) str = model_id+"+";       if(year_id != 0 ) str +=year_id+"+";        url='http://store.ijdmtoy.com/SearchResults.asp?Search='+str; top.location.href=url;   You see currently it has a fix reading the url    For example, I am currently on   How can I change the code so it will automatically read as


how to untar specific files recursively in linux?

I have lots of tar(.tar.bz2) files containing multiple file types in a recursive directory. I want to extract just one type of file(let's say .txt files) from all the directories. How do i do that? I have this command to extract all the files in each directory:  for file in *.tar.bz2; do tar -jxf "${file}"; done   I want to extract only the ".txt" files instead of all.


I really hope someone out there could help me understand my doubt regarding posting/answering with a code block on Stack Overflow.  OK, so I posted the below R function a while back, and as you can see it's long; it takes 10 lines. I know the post directions say to indent four times to format code. This took me a while when I did it because when I copied and pasted the function from the R script to the post I had to indent each line four times, which was a lot and obviously didn't like it.  I now know I can also use back ticks in the beginning and in the end of a code block and it would produce the same result as if I were to manually indent each line of the function four times. But there has to be a difference. No? Can I just always use back ticks when trying to format a long code block like the following function?   CV_concentration <- function(x,cv.tol.raw,A,B,C,D){  y_at_x <- (A-D)/(1+(x/C)^B)+D  y_low <- y_at_x * (1-cv.tol.raw/sqrt(2))  y_high <- y_at_x * (1+cv.tol.raw/sqrt(2))  x_at_ylow <- C*((A-D)/(y_low-D)-1)^(1/B)  x_at_yhigh <- C*((A-D)/(y_high-D)-1)^(1/B)  x_range <- c(x_at_ylow, x_at_yhigh)  cv_con <- sd(x_range)/mean(x_range)  return(cv_con)  }


How can I recover/undelete files from an ext4 partition?

Has anyone had success recovering deleted files from an ext4 partition? I've tried various utilities, but none have worked yet. I'd be grateful if someone can share a success story!


I have a JTextField in my form which i use for book name input. Based on this book's name, I'm trying to pass author's and publisher's values to new JFrame (NewPage) JTextFields (authortxtfield and publishertxtfield). Each time when i execute this code, i get java.lang.NullPointerException. authortxtfield and publishertxtfield are both public. Am i doing something wrong?  public void getBook(){     try {         ps = conn.prepareStatement("SELECT author, publisher FROM books WHERE txtfld_bookname=?");         ps.setString(1, txtfld_bookname.getText());            rs = ps.executeQuery();         while(rs.next())         {                                            NewPage.authortxtfield.setText(rs.getString("author"));             NewPage.publishertxtfield.setText(rs.getString("publisher"));         }       } catch(Exception e){         JOptionPane.showMessageDialog(null,e);     } }    I would also like to know if there's a way to concatenate author and publisher into one JTextField so i wouldn't have to use 2.


How to get the current upload and download speeds in terminal?

I want the terminal to output the current upload and download speeds of my network connection. I do not want to monitor the speeds in real time. I just want a "static" value to be able to write it in a file.  How do I achieve it?


How to hide text formatting popup (Mini Toolbar) in Microsoft Word 2007

In Microsoft Word 2007 when you select a piece of text, a pop-up toolbar will display containing the common font formatting tools like font-name, font-size, bold, italic, etc. (The Mini Toolbar.)  Is there a way to prevent this pop-up from showing when you select text?


Writting Recursive algorithm (LCS) using algorithm2e package similar to the one shown in attached image

I want to write this algorithm (recursive) in latex but I don't know how to do it. I have attached image of the algorithm. Please help me with the code. I am using algorithm2e package. Thanks!!


Partitioning the Boot section of the hdd

So ...I built my 12 year old a computer;  I loaded Ubuntu 12 on it.  This has been in use for the last few months.  However my Son now wants Windows and wants Ubuntu completely gone. With that in  mind, I pulled out my Windows 7 disc and inserted it.  The installation screen comes up and I click "install".  Temporary files screen comes up then it stopped with an error code saying there is no room in my boot partition to place the files and that 837 mb is needed.  So I go into the Ubuntu menu and open the partition manager.  The root partition shows that it is locked and cannot be changed or resized.  So that is my question:  How do I resize the root partition in Ubuntu?


In SQL Server, how can I find everywhere a column is referenced?

Within my rather large database, I would like to find out everywhere a column is referenced within the entire schema (SPs, functions, tables, triggers...).  I don't want to just do a text search since this will pick up comments and also will find similarly named columns from other tables.    Does anyone know if/how I can do this?  I use SQL Server 2008.


I am a beginner programmer, while doing some work in Python 2.7, I ran into an issue I can't seem to pass. I am trying to find all permutations of all pairs of digits; out of an array that has 4 digits. Example: array = ["a", "b", "c", "d"] and I would like to see the permutations like this: ab, ac, ad, ba, cd, da... ect... Here is my code so far, I can't figure out the next step:   from itertools import permutations array = ["a", "b", "c", "d"] for p in permutations(array):     print(p)   I would appreciate any help I can get, thank you.


Why is using "for...in" for array iteration a bad idea?

I've been told not to use for...in with arrays in JavaScript. Why not?


How to determine AWS security group dependencies?

Amazon EC2 won't let me delete a security group, complaining that the group still has dependencies. How Can I find what those dependencies are?  aws ec2 describe-security-groups doesn't say.


LetsEncrypt certificate for nested wildcard subdomain

I've generated Lets Encrypt  for my domain *.domain.com. I thought this certificate is valid for any nested subdomain *.*.domain.com, like it.*.domain.com or fr.*.domain.com. But browsers giving me error, that wildcard certificate was issued for domain.com, and not for *.domain.com. I've tried to issue new certificate for *.*.domain.com with CertBot and it's giving me error (multiple wildcards not allowed). Is it possible to achieve this, or do I have to manually issue wildcard certificates for each 1st level subdomain?


In a football game, the sides in the soccer field are determined on the basis of a single coin flip by the referee and the team which correctly guesses the flip result gets its desired side. What is the probability that a team will have to wait until its 8th game to get its desired side?  I am stuck with this question, any help would be much appreciated! I thought, $\frac{1}{2}^8$ but it is wrong.


Is it possible to access and use all the files in the hard disk in both windows as well as Ubuntu?  Also;   What is a swap area? Where can I find someone who can help me with installation?


What does it mean that for small $x$, one has $\ln(1+x)=x$? How can you explain this thing ? Thanks in advance for your reply.


Using a String in Place of a Class to Access a Method, Function, or Attribute Inside of It?

OK, so heres what I'm trying to do:      class MyClass(object):      #Class I want to access     """MyClass, base class for my class"""     def __init__(self, numberOfApples):         numberOfApples = 12     #Attribute I plan to use  myClassString = "MyClass"  #What I'm trying to do:  if myClassString.numberOfApples >= 12:   """myClassString is in place of the real class name, MyClass"""     print "Wow, you got alot of apples!"   And what I'm trying to do is seeing if it is possible to reference an attribute of a class by using a string in place of the actual class name. Is this possible? If not, what's the closest thing I can get? Thanks.


Why is this markdown for a link not showing properly?

The Stack Exchange (Personal Productivity) markdown  is showing literally rather than as a named link. Don't know why.


I have an Ubuntu 14.04 installation running without internet. I have a windows PC having access to Internet. How can I download VLC Player in a the windows PC and install in ubuntu?


What does the * mean next to a filename in the ouput of the command ll?

I have a doubt related the output of ll command.  When, in my shell, I execute the ll command I obtain this output:  -rwxrwxr-x 1 andrea andrea 104215 ott 15 15:56 atmosfs*   Why I have the * next to the file name atmosfs? What does it means?


Finding the maximum value of $\int_{0}^{1}f(x)dx$ under given conditions.

Suppose $f:\mathbb R\to \mathbb R$ is a differentiable map satisfying $f(0)=0$ and $f(1)=1$. For all real $x$, we have $|f'(x)|\leq2$. What is the maximum possible value of $\int_{0}^{1}f(x)dx$, over all such possible functions  Now here is what I tried. We have $|f'(x)|\leq2\Rightarrow-2\leq f'(x)\leq 2$ $$\Rightarrow -2t\leq \int_{0}^{t}f'(x)dx\leq 2t\space \text{or}\space -2t\leq f(t)\leq 2t$$ $$\Rightarrow -1\leq \int_{0}^{1}f(t)dt=\int_{0}^{1}f(x)dx\leq1$$ Thus $\int_{0}^{1}f(x)dx$ cannot exceed $1$. Now in first sight, it looks like $f(x)=2x$ gives us the maximum value of the integral. But $f(1)=2$ here which does not satisfy the given condition that $f(1)=1$ Now assuming $f(x)=x^{1/n}$. This gives us $f(0)=0$ and $f(1)=1$. It is also differentiable. $$\int_{0}^{1}f(x)dx=\int_{0}^{1}x^{1/n}dx=\dfrac{n-1}{n}$$ Observe that as $n\to \infty$, $\int_{0}^{1}f(x)dx=\dfrac{n-1}{n}\to 1$. Thus if we assume any $k<1$ to be the maximum value of $\int_{0}^{1}f(x)dx$, then we can find a sufficiently large $n\in N$ such that setting $f(x)=x^{1/n}$ gives $\int_{0}^{1}f(x)dx=\dfrac{n-1}{n}>k$, thus contradicting the maximality of $k$. $\therefore$ Maximum possible value of $\int_{0}^{1}f(x)dx$ is $1$ But on further examination, I found out that if $f(x)=x^{1/n}$, then $f'(x)=\dfrac{1}{nx^{n-1/n}}$. We should have $f'(x)\leq2$,  so $\dfrac{1}{nx^{n-1/n}}\leq2\Rightarrow x^{n-1/n}\geq\dfrac{1}{2n}$ which need not be true for all $x\in R$. Thus this definition of function violates the condition that $|f'(x)|\leq2\space\forall\ x\in \mathbb R$ Here I tried two definitions both of which failed and now I'm stuck. Please help me out. THANKS


If $\sum a_n$ converges then $\sum a_n^{1-1/n}$ converges.

Let $a_n$ be a sequence of positive reals such that $\sum_1^\infty a_n$ is finite then show that $\sum_1^\infty a_n^{1-\frac{1}{n}}$ is also finite.  N.B Is this statement true? I tried to use the limit comparison test but it's inconclusive. The converse is obviously true which makes it an "iff" statement. No well-known test seems to be working. Any help is appreciated.


How much primes p exist so that $p^3-4p+9$ is a perfect square? Of course we have p = 2, which is basically 9. I have no idea what to do now. I am trying to write it as a product a long time, but i am concluding that it is impossible if we just want integers in the product. Anyway, i don't know another method to seek the others primes.


How to report bug office execution arbitrary code to microsoft?

I just discovered a bug concerned excel letting the execution of arbitrary code using a document of word. The question is how to report the bug and theres possible they patch it?


I have n mosfet gate connected to  logic and Id is about 100mA. Both 4043 and mosfet has +5v. I have plan to use  mosfet  Questions are: How large gate resistor i need between 4043 and mosfet? Logic output is sometimes put on rapidly. How fast? Motherboard hdd led controls that. Do i need to place pull down resistor from logic to -0v, between 4043 and mosfet?


Find the volume of the region inside both the sphere $x^2+y^2+z^2=4$ and the cylinder $x^2+y^2=1$   $$2\int_0^{2\pi}\int_0^{\frac{\pi} 6}\int_0^{2}1.r^2\sin \varphi dr d\varphi d\theta + \int_0^{2\pi}\int_{\frac{\pi} 6}^{\frac{5\pi} 6}\int_0^{\frac 1 {\sin \varphi}}1.r^2\sin \varphi dr d\varphi d\theta $$    This question is in the lecture notes but I didn't understand how the answer is obtained. Could someone help?


I'm looking for a way to have two separate objects be connected, so that when I move the first object the second one will move also. The term parent is used, but how do I parent a object?


No continuous function switches $\mathbb{Q}$ and the irrationals

Is there a way to prove the following result using connectedness?  Result:  Let $J=\mathbb{R} \setminus \mathbb{Q}$ denote the set of irrational numbers. There is no continuous map $f: \mathbb{R} \rightarrow \mathbb{R}$ such that $f(\mathbb{Q}) \subseteq J$ and $f(J) \subseteq \mathbb{Q}$.


Can you use the Polyjuice Potion to look like a younger version of yourself?

Say you pulled out your Hogwarts robe for your 20 year reunion and found a hair on it. If you used a hair from 10-20 years ago in the Polyjuice Potion would you be a younger version of yourself? Would the potion work at all? Could this be a temporary youth potion?


Proving $e^{i\pi} = -1$ without proving $e^{ix} = \cos x + i\sin x$

Just as the title asks: I'm looking for a proof of Euler's identity without first proving the general case of $e^{ix} = \cos x + i\sin x$.


How to compute degree of morphism given by a canonical divisor?

Let $X$ be a smooth projective curve of genus $2$. Let $K$ be a canonical divisor. It is known $K$ has degree $2$ and it is not hard to show that $|K|$ is base point free so induces a morphism into $\mathbb P^{1}$ (up to linear isomorphism of $\mathbb P^1$). How do I show the degree of this morphism is $2$?  I've thought about the formula $$deg(f^*D) = deg(f) \cdot deg(D)$$ and taking $D$ to be a point, but I don't know enough about the preimage to say anything.


How to type foreign currency symbols on iOS?

Is there a way to type special unicode characters, or more specifically foreign currency sumbols, on an iPhone or iPad?  I mean symbols like ¥ (Yen), ฿ (Bitcoin or Thai Baht), ₩ (Korean Won) etc.  I'm just using a normal english iOS 9. How can I type those e.g. when writing an email or Telegram message or when submitting info on a website?


I'm new to beamer and am trying to make a presentation. When inserting an image, the output is satisfactory, except when I try to insert a .pdf! The white layer in the image disappears. Initially, the image was a .ps, so I used ps2pdf14 to convert it to .pdf and then pdfcrop to add the amount of white border I desire. I can convert the .pdf to .png and it works fine, but the quality isn't good enough for big pictures. Is there a way to restore the white layer when inserting the .pdf image? I apologize if this is a trivial question, or if I've simply over looked something.  Here's an example code to illustrate the problem  \documentclass[xcolor=svgnames,mathserif,serif]{beamer} \usetheme{default} \setbeamertemplate{navigation symbols}{} \setbeamertemplate{frametitle}[default][center] \definecolor{myblue}{RGB}{47,94,142} \setbeamercolor{background canvas}{bg=myblue} \usefonttheme{structuresmallcapsserif} \setbeamercolor{title}{fg=white} \setbeamercolor{titlelike}{fg=white} \setbeamercolor{normal text}{fg=white} \title{Sample Title} \author{\large{Me}} \institute{\small{University}} \date{\small{Today's Date}} \begin{document}  \begin{frame} \titlepage \end{frame}  \begin{frame}{Sample Title} \begin{center} \includegraphics[width=3in]{1.pdf} %why isn't white space appearing? \end{center} \end{frame}  \end{document}


Why does the One Ring make the wearer's clothes invisible?

The One Ring turns invisible the person wearing it.  Is there an explanation for how it does this? It seems that direct contact with the skin activates the Ring's invisibility effects;  why would it also affect the person's clothing, weapons, etc, as well? The Invisible Man's clothing is visible, so why aren't Frodo's clothes visible?  The Hobbit makes it clear that Bilbo's clothing is invisible, since Smaug doesn't see it.  Is there any possiblity that this varies from character to character?


How to target player with the lowest health?

How to target the nearest player to me with the lowest health by using command? I believe it is going to do something with health scoreboard.


So I started an acount just for me and then after I started I found out how to start with pikachu so now I want to restart, but I have searched all over the game but could not find a way


Is every point on an elliptic curve of a prime order group a generator?

If the order of elliptic group is prime then every point is a generator of that group. I tested the above statement on some elliptic curves and found it true. Does that really work on all curves?  Is there any lemma or theorem which states that?


Continuum between addition, multiplication and exponentiation?

I noticed this  which attempts to find the shades of grey between a linear and log scale where results are between zero and one.  However, I was looking for the more general case where we find the continuum between the operators themselves - add, multiply, and exponentiation or even higher.  The function could be a hyperoperation$(n,x,y)$, where $x$ and $y$ are the numbers to operate on, and $n$ is allowed to be a non-integer number for the type of operator. So $n=1$ would be 'addition', $n=2$ would be multiplication, and $n=3$ would be exponentiation. But one would also have $n=2.5$ to be the shade of grey BETWEEN multiplication and exponentiation, or $n=3.5$ or $4$ for beyond exponentiation and tetration).  I want the formula to work with real numbers, not just integers. Any thoughts?  These related posts may also be of interest:


How does one access data from an Esri file geodatabase in Quantum GIS?  I've seen snippets of conversation that indicate it's possible with qgis 1.7+ and gdal 1.9+ but no clear recipe.   I recognize that in a few months or a year this will likely be a non question ("just click [add data] button"), but today, I'm stumped. ;-)


Am I allowed to take a graphics card in my carry-on luggage?

As I will be travelling to the US in July, I was thinking of buying two graphics cards (R9 390X) over there and bring them back to Switzerland, as computer components are mostly a bit cheaper over there.  I know that the US has some really high security standards regarding international flights. If I take these two GPU's in my carry-on luggage (so they don't break), how would a security officer at LAX react when they see those Graphics cards? I do realise that most people don't actually know what a GPU is or how it looks like. So I am concerned that a security officer might take them from me at an airport when trying to board an international flight.  Believe it or not, I read some really strange stories in forums from people that claim the security officer did not know what a GPU is and thought it might be some sort of a bomb.  Note: By "GPU" I am referring to the whole graphics card (with circuit board, coolers, etc.) and not just the processing unit.


MySQL/Java Calculation output has an issue

I have the following JAVA code where I calculate a customer due amount  Double invsubtot = 0.0;             Double paidtot = 0.0;             Double duetot = 0.0;             try {                 ResultSet invoicesubtotal = InfoIMS.DbConnection.searchResult("select invoice_subtotal from invoice where customer_id = '69' and payment_type = 'Credit' and invoice_status = '1' group by invoice_number");                 while (invoicesubtotal.next()) {                      invsubtot = invsubtot + invoicesubtotal.getDouble(1);                  }                 // customerduejLabel5.setText(String.valueOf(invsubtot));                  ResultSet paidtotal = InfoIMS.DbConnection.searchResult("select sum(payment) from payments where cusid = '69' and ingrtype='1' and payment_status = '0'");                 while (paidtotal.next()) {                      paidtot = paidtotal.getDouble(1);                  }                 // customerduejLabel5.setText(String.valueOf(paidtot));                 duetot = invsubtot - paidtot;                 customerduejLabel5.setText("Customer Due : " + String.valueOf(duetot));   But the Output result is Customer Due : 6999.999999999999  But the real values of the first & second MySql queries are as follows  1. invoice_subtotal = 13891.30 2. sum(payment) = 6891.30   So it should be giving me the output as Customer Due : 7000 But Why is it giving me 6999.999...? Any way to solve this?  And I am not satisfied with the indirect answers given in   Where it shows why it happens but not how to avoid it clearly


Why does the sum of inverse squares equal $\pi^2/6$?

I've heard that $1+1/4+1/9+1/16+1/25+...$ converges to $\pi^2/6$. This was very surprising to me and I was wondering if there was a reason that it converges to this number?   I am also confused why $\pi$ would be involved. If someone could provide a proof of this or a intuitive reason/ derivation I would appreciate it. I am only able to understand high school maths however (year 12).


I don't really understand how to solve the equation $$47x \equiv 4  \mod 17.$$ If someone could help, that would be much appreciated. Thanks!


Use scp to transfer a file from local directory X to remote directory Y

I took a look around at other questions here and at various "scp usage" tutorials on Internet, but I can't sort out what's wrong.  I'm using Linux Mint and I'm trying to figure out how scp works.  I've a file file.ext (on my computer) in directory /home/name/dir/  I connect to a remote machine using ssh, like:  ssh -p 2222 username@domain   it asks me the password and the shell displays:  username@domain ~ $   now, If I issue the command (before I ran ssh I was in the local directory  /home/name/dir ):  scp -r -P 2222 file.ext username@domain    output is:  cp: cannot stat ‘file.ext’: No such file or directory   Same result if instead of file.ext I write the complete path  scp -r -P 2222 /home/name/dir/file.ext username@domain    Also, the server admin told me that I shall upload the file to my remote home directory (instead of root), like:  scp -r -P 2222 file.ext username@domain:~/   but when I do it and press "Enter" nothing happens, as If the shell was waiting for further input.  Summary of my problems:    cp: no such file or directory shell "stuck" on ~/   Any suggestions?


Prove that any smooth, orientable, and connected surface is a Riemann surface

Prove that any smooth, orientable, and connected surface can be equipped with a Riemann surface structure (in the sense of a complex 1-dimensional manifold). My idea is to modify the chart so that the transition map satisfies the Cauchy-Riemann equation and is thus holomorphic. Since the manifold is orientable, the jacobian of the transition maps everywhere is invertible. And say let $f = \phi_\alpha \circ \phi_\beta^{-1}$ for some transition maps  on $U \subset R^2$. I want to compose each $\phi_\alpha$ with some $\psi_\alpha$ where $$J_{\psi_\alpha \circ \phi_\alpha \circ \phi_\beta^{-1}\circ \psi_\beta^{-1}}(\psi_\beta^{-1}(p))= J_{\psi_\alpha}(f(p))J_f(p)J_{\psi_\beta^{-1}}(\psi_\beta^{-1}(p))$$ such that $$J_{\psi_\alpha}(f(p)) = \begin{bmatrix}      a &b \\  b & -a \end{bmatrix}^{\frac{1}{2}}\begin{bmatrix}      \partial_xf_1(p) &\partial_yf_1(p) \\  \partial_xf_2(p) & \partial_yf_2(p) \end{bmatrix}^{-\frac{1}{2}}$$ and $$J_{\psi_\beta^{-1}}(\psi_\beta^{-1}(p)) = \begin{bmatrix}      \partial_xf_1(p) &\partial_yf_1(p) \\  \partial_xf_2(p) & \partial_yf_2(p) \end{bmatrix}^{-\frac{1}{2}}\begin{bmatrix}      a &b \\  b & -a \end{bmatrix}^{\frac{1}{2}}$$   for some $a,b$ properly chosen. If such construction exists, then the jacobian for the new transition map is $\begin{bmatrix}      a &b \\  b & -a \end{bmatrix}$, satisfying the Cuacy-Riemann equation and thus the transition holomorphic. Does such construction work and does there exist such $\psi_\alpha$? I think properly not because I didn't use the connectedness property. So is there any modification I can do to make this construction valid?


Why does the CSS min-width attribute not force a div to have the specified minimum width?

<html>     <head>         <style type="text/css">             div {                 border:1px solid #000;                 min-width: 50%;             }         </style>     </head>     <body>         <div>This is some text. </div>     </body> </html>   I believe the div should be 50 percent of the page, unless, for some reason, the text inside the div makes it larger. However, the border around the div stretches across the entire page width. This occurs in both IE and Firefox.  Suggestions?


Are there any examples for an ArXiv publication nurturing or preventing plagiarism?

First of all, this is about plagiarism in the sense of stealing ideas. Copy-and-paste plagiarism is included but not likely to happen in the cases relevant for this question.  Considering the publication of a paper prior to peer-reviewed publication on the ArXiv (or another preprint server), there are usually two main positions considering a possible theft of the idea (or somebody coming up with the same idea):   If somebody manages to publish your idea in a peer-reviewed journal before you do, you can prove that you came up with the idea first or at least independently if you have published your paper on the ArXiv. Therefore it is a good idea to publish papers on the ArXiv before they have been published in a peer-reviewed journal. If you publish your paper on ArXiv before it is published in a peer-reviewed journal, others may steal your work and publish it peer-reviewed before you do and thus take the scientific credit. It’s difficult to attack those people since the ArXiv is not peer-reviewed. Somebody could make a living of plagiarising ArXiv papers. Therefore it is a bad idea to publish papers on the ArXiv before they have been published in a peer-reviewed journal.   Are there any example cases (or even studies) supporting either of these statements? Such examples would include, but are not limited to:   Has a peer-reviewed journal ever withdrawn a paper because it plagiarised an ArXiv paper? Are there well-known cases of “unpunished” plagiarism of ArXiv papers?  Has anybody ever successfully resolved a priority dispute with a publication on ArXiv? Has anybody ever accused somebody of plagiarising an ArXiv article (with the fact that the plagiarised article was published on ArXiv affecting the outcome).   Note that it is really examples and not a theoretical analysis of the statements, I am looking for. (Neither of the two positions fully reflect my opinion and some of the soft premises¹ are debatable. However, debating about these viewpoints on a theoretical basis or attacking some of the premises is usually futile.)     ¹ e.g., that scientific credit is only decided by peer-reviewed publication


If $f: [0,\infty) \rightarrow [0,\infty)$ and   $f(f(x))=6x-f(x)$ $f(x)>0$ $  \forall x \in (0,\infty) $   Find f(x)


Cox proportional hazard for multiple groups - meaning?

I am studying the effect of expression of a specific gene signature on patient survival, dividing patients into Low, Mid, and High expression of Signature X. The survival curves for these patients all look very different from each other, and I'm trying to get a statistical value to support this statement (patients with Low, Mid and High expression have different survival trends).  I used the coxph function in the survival package in R and obtained this:      > coxph(Surv ~ Sig.X.Group, data = data)                     coef      exp(coef)   se(coef)    z      p     Sig.X.Group     1.0310    2.8039      0.0795      13     <2e-16   If I had divided patients into Low and High expression of Sig.X I understand that: "High" expression of Sig.X is associated with a 2.8 increase in risk of death compared to "Low" expression (or something along those lines).  But what is the English explanation to an HR of 2.8 when I run the coxph function on 3 groups rather than 2?  EDIT: Fixed. The problem was my Sig.X.Group was coded as a number. Fixed the issue when changed Sig.X.Group to a factor, which gave me two individual HRs:                    coef       exp(coef)   se(coef)    z        Pr(>|z|)     Sig.X.Group2  0.5821074  1.789806    0.1696     3.4318    0.0005993     Sig.X.Group3  1.9186438  6.811714    0.1550     12.3753   0.0000000


Figure numbered (Figure 1,Figure 2 and so on) without sections

\documentclass{beamer} \usepackage[utf8]{inputenc}  \usetheme{Madrid} \usecolortheme{beaver} \usepackage[utf8]{inputenc} \usepackage{graphicx}  \begin{document}  \begin{frame} \frametitle{EXAMPLE.} \begin{figure}     \centering     \includegraphics[height=5.6cm]{EXAMPLE.PNG}     \caption{EXAMPLE.}     \label{EXAMPLE.} \end{figure} \end{document}  Hi. I'd like to make a simple beamer that has no sections. With sections, the figures are numbered, but I'd like to make them numbered (Figure 1,Figure 2 and so on) without sections. Because they are just "Figure:", I'd like to get numbers. How could I do? Thank you so much.


How to check the quality of clustering results if there is no labels?

How can we check the quality of clustering of no-labeled data?  I learnt from class that there are some ways to achieve this . One is to  "measure intra-cluster cohesion (how near the data points within a cluster) and and inter-cluster separation (how far apart different clusters are from one another)".    Is there any ways to determine how cohesion this dataset are needed?  Or do we have other quantitative methods to check the clustering quality?


I have a trough which is a circular container. How do I determine how many gallons of water it takes to fill up the trough? I was thinking that we measure the height and the width but I think it's a bit different with a cylinder. What's the formula?


If Harry is NOT Voldemort's horcrux, will Voldemort resurrect from that part of soul if all his other horcruxes are destroyed

Harry was never a Horcrux of Voldemort     I have heard this line on SE a lot & also vaguely read about that discussion.     My question is if Harry was not Voldemort's Horcrux & if all the other 6 (5 inanimate objects & Nagini) were destroyed beyond repair & Harry tries to Avada Kedavra Voldemort, would he die? What would happen to Voldemort's soul inside Harry.  I've asked this question keeping in mind Harry isn't a technical Horcrux but only a part of Voldemort's soul is in him. So can Voldemort resurrect from this soul?    If its a duplicate, please mention the relevant discussion link in the comments


I am trying to connect with Xero using Named Credentials. I am using oAuth2.0 authentication protocol.   I have created a Auth. Provider and Named credentials as shown in the image below     The Named Credentials Authentication Status is showing as pending. How to make it authenticated?  I have checked "Start Authentication Flow on Save" but once i hit on save i am getting this url "" and error code 500.  I think i am missing some steps. Please help.  Quick Update : Call back url i have in auth provider in Salesforce and in Xero connected app are different. Can it be the reason?  Thanks, Soumen


Twenty Fifteen: Adjacent posts by menu_order

I'm using the Twenty Fifteen (child) Theme and want to display the previous / next post links with the background image for my hierarchical custom post type.   It is being displayed, unfortunately the order seems completely wrong. I assume this is because the post are being selected by date and not by menu order?  I want the next / previous post to be like I have ordered them in the backend & menu, and it should be shown regardless of if its a parent, child or sibling to the current post.  The code for this is in the single.php:  the_post_navigation( array(     'next_text' => '' . __( 'Next', 'twentyfifteen' ) . ' ' .         '' . __( 'Next post:', 'twentyfifteen' ) . ' ' .         '%title',     'prev_text' => '' . __( 'Previous', 'twentyfifteen' ) . ' ' .         '' . __( 'Previous post:', 'twentyfifteen' ) . ' ' .         '%title', ) );   How can I get the posts in the correct order?


We have two sequences $(a_n)$ and $(b_n)$, of positive integers, such that, $1\leq a_1,...,a_m\leq n$, $1\leq b_1,...,b_n\leq m$ prove that there exist $p\leq q$, $r\leq s$ such that, $$\sum_{i=p}^{q} a_i =\sum_{i=r}^{s}b_i$$  I think Pigeon Hole Principle can be applied, but I'm not sure how. Any help will be appreciated.


Is it proper grammar to write:      Please join my wife and I for coffee...   Or is it     me and my wife   Or      my wife and me


Wifi Adapter not found in my HP 15g 0006tx in Ubuntu version 18.04

I recently installed Ubuntu 18.04 in my HP 15g-0006tx. In Wifi settings it shows Wifi Adapter not found. The wireless Network Adapter in my machine is [10ec:c821]. I have tried almost all the methods given on ask  ubuntu related to this problem. Please help me in this regard.


Operating multiple low power devices from 1 adapter

I have 3 WRT54G routers (12V), 1 voip gw (9V), 1 cable modem (9v) and a gbit ethernet switch (12v) which are all operating from their own adapters.  I planning to build a low power (probably 12V UPS) later on not just to power these but to power some computers through X3-ATX-300 300 Watt High Power 24pin DC-DC ATX.  As I understand transformators are all lossy especially these cheap power adaptors which these devices come with from China.  What I really care about is that the Watt consumption at the end. I realize it's not possible to calculate this in advance how much would I won with the switchover since that wattage shown in the devices datasheet is the possible maximum or not even an accurate data. The only way to see how much will I save with this is to use a powermeter plug all the adaptors into one electric switch which is connected to the meter then do the same thing with my all-in-one adapter.  How should I go with calculating how many amps max will my all-in-one transformator needs to provide?   Looking at these big brick power adapters for the WRTGs:    One can do 1Amp, I think it could easily power all 3 routers for example but I want to go for sure. How to calculate what powersupply will I need and which one should I buy which is the most efficient?   Thanks!


Table position problem between two paragraphs in latex

I am new Latex. If you see the following snippet, here I have created a table between two paragraph. However, when I compile it with XeLatex, the table goes up keeping both paragraphs down. I expected the table should be between two paragraph(Red Arrow). How to do this. Thank You.    Soundex is a phonetic algorithm designed in 1900’s. Soundex algorithm phonetically encodesgroup similar sounding consonant characters. The process usually excludes vowels except the vowels at the beginning of the word. You can find Kaykobad’s Bangla soundex encoding table in [3,19] and Mumit’s Bangla soundex table in [4]. According to the Mumit’s soundex encoding algorithm returns the following output.  \begin{table} \centering   \caption{Sample result of N. UzZaman and Mumit’s Bangla soundex table}   \begin{minipage}{\textwidth}     \begin{tabular}{lccl}     \hline\hline      Corpus Name & Corpus size & Creation time & Technique of data collection\\     \hline  BDNC01 [6] & 12 Million Words & 6 Years & Manual- Copy and Paste\\ SUMono [7] & 27 Million Words & 4 Years & Manual- Copy and Paste\\ NHMono01 (Our Corpus) & Over 100 Million Words & 2 Months & Automatic – Crawling and scraping with powerful Python’s Scrapy framework.\\     \hline\hline     \end{tabular}     \vspace{-2\baselineskip}   \end{minipage}   \label{table2} \end{table} Soundex is an ancient version of phonetic algorithm and has lots of imperfections. Therefore, we have not used soundex in our spell checker.


How to assign a keyboard shortcut to create an empty text file in Finder?

I like that Cmd+Shift+N creates a new folder in the current directory in Finder. I would like to have a similar command like Cmd+Control+N or Cmd+Control+Shift+N that creates an empty text file in the current directory.  There's quite a bit of discussion on  and on this site,  and .  However, some of the solutions seem out of date, others are mouse driven, or involve somewhat elaborate multi-click processes.  How can I assign a shortcut key like Cmd+Control+N to create a new empty text file in Finder on OSX?


Dynamically added list item not working with `on` events

When adding a list item to my ul, the jQuery on events don't seem to fire or work on these.  From my understanding, using on instead of say .click() should work for all items, whether created in HTML or added later via javascript/etc.

TO-DO LIST

<input type='text' id="addToDoText" placeholder="Add New ToDo"></input>

Buy Robes

Fight Malfoy

Buy New Wand

Kill Voldemort

Feed Hedwig

Send Owl to Sirius

Do Dishes

Wash Robes

Buy Hagrid's Birthday Gift

   and my jQuery:  $('ul.toDoList li').on("click", function(){     $(this).toggleClass('completedItem'); });  $("input").on("keypress", function(e){     if(e.which == 13){         new_text = $(this).val();         $(this).val("");         add_toDo(new_text);     } });  $('li .fa-trash').on("click", function(){     $(this).closest('li').remove(); });  function add_toDo(item){     console.log("adding: "+item);     $('ul.toDoList').append('
'+item+'
'); };   When I add an item, and click tne item, it doesn't toggle the completedItem class, nor can I remove it by clicking the fa-trash icon.


Html String replacement with key and value in Javascript

I have a string with template to be replaced with value without hard-coding key and value.. var string =  '

{{TITLE}}

Text text {{Name}} text

{{City}}{{State}}{{Code}}

';  string.replace(/{{City}}/g, cityvalue);  This is Working.. I wanna to frame like this but its not working... var result = "City";  string.replace('/{{'+result +'}}/g', cityvalue);  Any help would be appreciated.


I am creating a secure web based API that uses HTTPS; however, if I allow the users to configure it (include sending password) using a query string will this also be secure or should I force it to be done via a POST?


Can a mathematically sound prediction interval have a negative lower bound?

I have used R to form a 95% prediction interval for the number of endemic species on an island. My lower bound is negative – is that mathematically sound?  In the linear model used in the prediction interval, the data used are:  Area Surface area of island, hectares DiscSC Distance from Santa Cruz, kilometres Elevation Elevation of higher point in metres and it is coded as such:   selected.model <- lm(ES ~ Area + Elevation + DistSC + I(Elevation^2)                      + (Elevation:DistSC) + (Area:Elevation))    and stepwise regression was performed to find this "best" model   I'm not exactly sure how a prediction interval works. I just want to make sure it is OK. Obviously a negative number of species is incorrect, but I know it takes into account the uncertainty of the mean as well as data scatter.


Is this a gas valve behind stove? I can't move it to turn it off

I want to get a new stove and when I pulled out the old stove I found the gas line within a hole in the wall and the gas line had a metal bar on its side. I am thinking this bar is a gas valve but I am not sure I haven't seen a pic of a gas valve that looks like this on the internet. Also when I tried to move it it seems to jiggle a little but I couldn't get it to move. Has anyone seen this before and can let me know if it is the gas valve and how I can get it unstuck to move it to turn off the gas?


an elegant way to transfer current date time into ISO 8601 format

i need a to transfer the current date time into ios8601 format, something like :  date and time in format: 01 Jan 2014 BST 12:00 PM  eventually on my jsp , i wish to put the formated date in   <time datetime="{date and time in ISO8601}">{date and time in format: 01 Jan 2014 BST 12:00 PM}</time>   my current try out:      TimeZone tz = TimeZone.getTimeZone("BST");     DateFormat df = new SimpleDateFormat("dd-MM-yyyy'T'HH:mm'Z'");     df.setTimeZone(tz);     String nowAsISO = df.format(new Date());   but the result doesnt look like what i expect to get......