cycles VS evee : seems that some shadows are ignored?

I'm testing Eevee and it seems quite nice ! This is a scene with just a sun. Here's how it looks in Eevee:    And now, with Cycles:    The mugs and the computers on the table almost don't have shadows with Eevee... I know it is NOT Cycles and that shadows won't render as good as it. But anyway, this look almost unrealistic.  What should I do to get better shadows ?   Thanks a lot !


Infinite Set is Disjoint Union of Two Infinite Sets

A finite set is a set such that there exists a bijection from it to some finite ordinal. An infinite set is a set that is not finite.   In ZF, can you prove that every infinite set is the union of two disjoint infinite set? If not, is this property equivalent to anything well known over ZF?   I can't seem to prove this without assuming some form of choice. Thanks for any help you can provide.


Posets- distributivity and adding new sequences.

Let $\mathbb{P}$ be a poset and $M$ a ctm. It is well known that when $\mathbb{P}$ is $\kappa$-distributive (meaning that the intersection of $<\kappa$ many dense open sets is dense) for some regular $\kappa$ implies that $M^{<\kappa} \cap M[G] \subseteq M$ for any $M$-generic $G$. i.e, no new $<\kappa$ sequences are added. Apparently the converse to this is also true, if $\mathbb{P}$ is separative, meaning that $q \not \leq p \implies \exists r\le q , (r \perp p)$. How does one see this? That is, I would like to prove: If $\mathbb{P}$ is separative and $M^{<\kappa}\cap M[G] \subseteq M$, then $\mathbb{P}$ is $\kappa$-distributive.


Creating collection of polygons from collection of points?

I have a set of points, which are spread over a wide geographical area.  I need to be able to create a set of polygons which best represent the clustered points.  In parts, some points may simply lie on their own, but in the main they are grouped, but not linked.  I have effectively created a grid of, lets say, the north western hemisphere and in each grid, have created a point with an arbitrary value.  For all values of zero, I have deleted the points, leaving the points with non zero values in them.  I now need to turn these points into polygons and am struggling a little...  Using ArcGIS and python, I thought about clustering the points, then 'convex hulling' them, but am struggling through not really knowing ArcGIS that well; how do I cluster?  thanks in advance for any help.


Does ubuntu treat downloaded files specially?

There is a script which just adds extra lines to my /etc/hosts file to enable local development. Since it's pretty useful, I decided to keep it in a gist. When one of my friends downloaded the shell-script, changed the necessary permissions and tried to run it, it failed. The error shown is:  $ ./dev-mode : No such file or directory  Even though the script runs perfectly file on my computer. The /etc/hosts file exists in both our computers, the permissions and the owners are the same. Every thing is absolutely similar. Then he made a new file, copied the contents of the script to the new file, and changed the necessary permissions, and it RAN! To my eyes, there is no conceivable difference between the two files, but a diff does that they are difference, but doesn't highlight any line or any character... Nothing. The permissions are same, etc. Does ubuntu treat downloaded files somehow differently, and stop it from running? Absolutely same files, one runs and the other doesn't


Is it a good idea to apply to the same professor again after having been rejected the year before?

Is there some kind of academic norm that says "when I reject an applicant, I don't want anything to do with him?"  edit: If a professor is reading this, personal experience from himself and colleagues will be really helpful!


The pictures on my Instagram (not my account) are all blurry, and the videos won't work. Not all pictures and videos do it though, just some.


Forgot to submit consumption tax (GST) declaration form upon exiting Tokyo

I travelled to Japan last year and bought some stuff from shops in Tokyo which were subject to return of consumption tax (GST). However, I forgot to submit those consumption tax receipts (which the shop cashiers attached to my passport) to the customs counter in the airport when I exited back to my country. What shall I do now? Will I be blacklisted and refused entry into Japan when I visit Tokyo again sometime in the next few months? Do I need to pay a penalty, and if so, how much?


Prove spectral radius of a primitive matrix is 1

Let $P \in M (n \times n, \mathbb{R})$ be a primitive matrix. $1$ is a eigenvalue of $P$ and $(1,\dots,1)$ is the associated right eigenvector.   How can show that the spectral radius $\rho(P):=$max$\{|\lambda| : \lambda$ is a eigenvalue of $P\}$ of $P$ is 1?  Hint: Use Gelfand's formula.


Why do question/answer edits bump a question?

I was scrolling through the main page and noticed a post with significantly more views than all the others around it (this was the question: ). It took me a minute to realize that the question was from 3 years ago, and was bumped because a user (helpfully) edited one of the answers to fix a broken link. Why would an edit like this on a post from over 3 years ago be bumped back up to the main feed? Is seeing when a question or answer is edited useful for anyone? I've nearly accidentally commented on 2+ year old questions because I thought they were recent - in most forums this is bad practice. I'm new to SE so I'm also curious to know the opinion of it here.


how to implement incremental backup for mysql server?

how to make incremental backup using mysql ? somebody help me i'm struggle  mysqlbackup --apply-log --incremental [--use-memory=MB] [--uncompress]                 [--ibbackup=IBBACKUP-BINARY]                 INCREMENTAL-BACKUP-MY.CNF FULL-BACKUP-MY.CNF


How to be efficient as a graduate student juggling classes, TA and research?

I am a first year PhD student, and it's the fourth week of school. I am taking two classes, doing one grad class TA and doing a lab rotation. I am in Electrical Engineering (Controls and DSP).   I start my day thinking- "I'll go to class from 10 am to 12 pm, solve 5 homework problems from 1 pm- 3 pm, do some TA work from 4 pm to 6 pm, and read a bunch of papers from 7 pm to 9 pm, then cook and sleep. How optimistic.   In reality, when I start the homework problems at 1 pm, I end up having to read a bunch of textbooks to understand stuff in it (I'm doing Convex Analysis), and by the time 3 pm rolls around, I have finished only one problem. Feeling discouraged, I keep at this homework, vowing to stop only when I'm done with my quota of 5. My efficiency starts to drop severely after a few hours, but since I'm in school with my laptop and stuff, I can't go anywhere to 'relax', so I just keep sitting and start redditing or something. And then my concentration further drops when I try to resume real work. This goes on, I miss dinner, I sleep late, and the efficiency just plummets through the week.   My past couple of weeks have been so inefficient, I want to do something about it before it's too late.   In short, my question is, when your work is way too difficult to achieve your goal of the day in your allotted time, do you switch work, or do you keep going? I have always believed that output is more important than input, that is, putting in two hours for each task without achieving much in anything is not as good as putting in, say, eight hours for just one and finishing something in it nicely. However, this strategy of mine is failing me for the first time in my life, because even if I put in eight hours, I am not able to finish anything. The work is so difficult. I'm not complaining, just really need guidance.


How to back out of mass update in SQL Replication

We have a database which is set up in Merge Replication.  We accidentally updated hundreds of thousands of records in a large published table on the publisher database.  We did is something like this:-  update LargeTable set Field=Field   So basically, every record got updated to be the same - no data was actually changed. However, every record in the table is now being delivered to every subscriber and the whole system has come to a halt. We are very worried this will take days and days to complete.  How can we safely remove data from the msmerge_contents and msmerge_genhistory table? Are there other system replication tables to remove records from? I can see the exact records in these tables that refer to the mass update. I just don't want to remove them without knowing it is safe to do so.


Has there ever been a Vulcan/Klingon hybrid?

It's been confirmed in official Star Trek canon that various races across the Federation can copulate together. These include, to name a few, Earth and non-terrestrial humans, Khardasians, Trill hosts, Jem Hadare, the Ocampan, Romuluns, Vulcans, and Klingons. Other races, like the Ferengi, can mate with other humanoids, but it's unconfirmed if they  produce offspring there with. Matings that result in progeny often produce hybrids that combine traits of both species. Most such pairings are with a human and another species. Some famous examples of these characters are:  B'Elanna Torres (Voyager, half-human, half-Klingon) Commander Tuvok (half-human, half-Vulcan) Deanna Troi (TNG, half-human, half-Betazoid) Sela (Romulan-human hybrid), Alexander Roshenko (Klingon, 1/4 human on his mother's side) and of course, Mr. Spock (TOS, part human and part Vulcan).  It's noticeably rare, however, that we see a depiction of a dual alien mixture. One I was most intrigued by, was the concept of a half-Vulcan, half-Klingon child. Due to how drastically different the races are, it's statistically unlikely that we'll see one on screen, but the possibility still exists. Besides that, Star Trek has a very long-standing, detailed and massively expansive universe in books and comics. So... Has there ever been an official, canon or at least extended universe Vulcan-Klingon hybrid character in the Star Trek franchise? If so, who is the character, how were they raised and what do they look like?


This is part of the exercise, I'm stuck with it.  $A$ is a commutative ring with unit.  1) Suppose we have an homomorphism $\phi : A^{m} \to A^{n}$ surjective. Is true that $m \geq n $ ?  2) Suppose we have an homomorphism $\phi : A^{m} \to A^{n}$ injective. Is true that $m \leq n $ ?


In  question it is recommended repeatedly that to figure out where an executable is located, one should run command -v file.  I've tried running command -v ls on a few different systems now and I keep getting alias ls='ls --color=auto' (always in Bash).  I have three questions:   What am I missing? How is it that command -v ls helps? Given that which doesn't work properly (according to the comments and answers to the linked question) and assuming that I'm not missing anything in question 1 and command -v ls does help, how can I know which ls is actually ran? What is a POSIX compliant way of figuring this out? My examples are in Bash, but I'm hoping for a portable solution. I know about type -P.


Joining attributes between layers based on proximity of features

In QGIS 3.12 I have a Layer Y that has a specific attribute and my objective is to fill this attribute with information from Layer X regarding the proximity between the features of Layer X and Layer Y. I'll exemplify below:  Point A and B are from Layer Y and Point 1,2,3 and 4 are from Layer X. I would like to know if it is possible to fill the attribute 'Address' from Layer Y with the attribute 'Address' from Layer X regarding the proximity of the features. In this particular case I want to associate the 'Address' from Point 4 to the 'Address' from Point A, and the 'Address' from Point 3 to the 'Address' from Point B using the Field Calculator.


What would be the correct implementation while deciding over interfaces vs abstract classes?

I recently came across a problem related to class creation/modeling.  Model animal kingdom as classes. Use your classes to create various objects represented as a virtual zoo. Add 20 animals to this virtual zoo (in your main method of your program and make let each animal make a sound. This should not be 20 different species).  I thought about the problem and decided to go with an abstract class Animal rather than an interface. Then i added two classes Bird, Mammal as inherited them by Animal.   My implementation    public abstract class Animal{        abstract Sound MakeSound();     }      public class Bird : Animal     {        private Sound _sound;        public Bird(Sound sound){        _sound = sound;     }     public Sound MakeSound(){           return _sound;        }     } //same as above with Mammals  public class Program {   Animal crow = new Bird("Crow sound");   Console.WriteLine(crow.MakeSound());   Animal dog = new Mammal("Dog sound");   Console.WriteLine(dog.MakeSound());  // and so on with other animals }   My questions are -    What is wrong with my implementation?  What would be the correct way to design the animal kingdom as per oops concepts? In what scenario do we use an interface over abstract class and vice versa. (with real world example)   Kindly suggest some bang on online material where i can improve on such problems. Thanks.


Why is $\sqrt{ab}$ = $\sqrt{a}\sqrt{b}$ not true when a and b are both negative?

Apparently $\sqrt{ab}$ = $\sqrt{a}\sqrt{b}$ is only true if a and b are both positive or if a is negative and b is positive or if a is positive and b is negative. In other words, a and b can't both be negative.  Is it possible to algebraically prove this? Or is it just a result of the way the square root function is defined?   I know of 1 way to prove this radical property, but I'm still not sure why it won't work for negative numbers.  Let x = $\sqrt{ab}$.  Let y = $\sqrt{a}\sqrt{b}$  Square both sides for both equations.  $x^2 = (\sqrt{ab})^2 = ab$  $y^2 = (\sqrt{a}\sqrt{b})^2 = (\sqrt{a}\sqrt{b})(\sqrt{a}\sqrt{b}) = (\sqrt{a})^2(\sqrt{b})^2 = ab$  $\therefore x^2 = y^2$  $x^2-y^2=0$  $(x+y)(x-y)=0$  $\therefore x = y$ or $x = -y$  Or  $\therefore y = x$ or $y = -x$    A lot of people will go through this line of reasoning (shown below) in order to justify why a and b can't both be negative.   Considering that mathematicians define $i^2=-1$ or $i = \sqrt{-1}$  $1 = \sqrt{(-1)(-1)} = \sqrt{-1}\sqrt{-1} = (i)(i) = i^2 = -1  $  But this is only a specific instance where this property fails us. This isn't a  rigorous or at least satisfying proof of why $\sqrt{ab}$ = $\sqrt{a}\sqrt{b}$ can only be true if a and b are not both negative.  Note: I just started learning about complex and imaginary numbers and I am no means an expert in  mathematical proofs, so if you do know the answer to this question please try (if possible) your best to answer the question without using too much complex or high-order math that I won't be able to understand.


Why does the visible light spectrum appear to be circular

I'm not sure if this is an acceptable place to ask this question, as it may have more to do with the biological workings of human eyes than with the physical properties of light, but I'd rather hear a physical explanation than a biological one (if one exists).   Essentially, we often describe the visible spectrum with a color wheel. In this wheel, Red appears next to Purple (violet), but Red and Violet are at opposite ends of the visible light spectrum. What accounts for this? That is, why do we perceive the Visible Light Spectrum as circular, instead of linear?


What determines the current browser location on desktop PC and how can it be changed?

When Google Chrome asks me to share my location with a website that uses the geolocation feature such as , and I allow it, the website locates me a few kilometers away in the next big town and shows a low accuracy value.  My stationary desktop PC doesn't have GPS or WiFI or GSM, so I guess the information comes from my IP address.  That begs the questions:   Why does the browser even ask for approval to share that information, because my IP is shared with the website anyway? How does it matter whether I click Allow or Deny? How can I tell my browser or the OS a more exact location? Some location services are actually useful, such as when I'm ordering a pizza or search through classified ads.   Things I tried:   Google Chrome -> Developer tools -> Sensors -> Specify exact location (is not kept across browser sessions) Windows -> Settings -> Change default location (doesn't seem to have an effect on Google Chrome's geolocation feature)


When restarting Ubuntu quit supervisor sooner than other services

I have supervisor that is handling a queue process that is dependent on Redis being available.  When I restart the server (Ubuntu 18.04) the Redis server is quitting before Supervisor and the queue process spams me with hundreds of errors in Slack because of the missing Redis server.  I need to set Supervisor quit before the other services that are used in the subprocesses of Supervisor so I do not get all these errors. I know it should be in the systemd but haven't done it so far and couldn't find a good way to find it in Google.


Can the accumulation of gravitational wave energy explain Dark Energy?

Gravitational waves do not dissipate.  How significant is this accumulation of gravitational waves throughout the entire history of the universe? How much energy is that accumulation and how does that compare to the density of "dark energy"?  Could they be  one and the same?


view.setTag(Object obj) throws nullpointerexception

I'm trying to create an app with listview and arrayadapter. I have a custom class(Word) and a custom adapter(WordAdapter). By running this code, the app is crashing  this is the error :      java.lang.NullPointerException: Attempt to invoke virtual method 'void   android.view.View.setTag(java.lang.Object)' on a null object reference   Code given below :   import android.content.Context; import android.support.annotation.NonNull; import android.support.annotation.Nullable; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ArrayAdapter; import android.widget.TextView;  import java.util.ArrayList;  public class WordAdapter extends ArrayAdapter<Word> {      //datastructure to hold two textviews, so that it can be reused rather than instantiating     static class ViewHolder {         TextView textView1;         TextView textView2;     }      //sets up the arrayadapter     //@param context : specify the context (e.g current activity)     //@param words : list of words to populate the view (contains objects of custom word class)     public WordAdapter(@NonNull Context context, @NonNull ArrayList<Word> words) {         super(context, 0, words);     }      /*     Needs to override when using custom arrayadapater.     Called by the adapter class when populating data from data source into the view     @param position : position of the data in the data source     @param convertView : data from source is set as the data for this view     @param parent : parent view to which convertview gets attached      */     @NonNull     @Override     public View getView(int position, @Nullable View convertView, @NonNull ViewGroup parent) {         ViewHolder viewHolder;          View list_item_view = convertView;          //checks if any reusable view is available         //list_item_view = null if no reusable view is available         if (list_item_view == null) {             viewHolder = new ViewHolder();              //convert the custom layout file into view object and inflate the parent with the view             //returns the root of the custom layout file (if attachToRoot = false)             //returns parent view to which the layout is to be attached (if attachToRoot = true)             list_item_view = LayoutInflater.from(getContext())                     .inflate(R.layout.list_item, parent, false);              viewHolder.textView1 = (TextView) list_item_view.findViewById(R.id.miwok_text_view);             viewHolder.textView2 = (TextView) list_item_view.findViewById(R.id.default_text_view);              convertView.setTag(viewHolder);         } else {             viewHolder = (ViewHolder) convertView.getTag();         }          //get the data from the position         Word word = getItem(position);          //set the miwok word         viewHolder.textView1.setText(word.getMiwokWord());          //set the default word         viewHolder.textView2.setText(word.getDefaultWord());          //retrun the view to which data is to be placed         return list_item_view;     }  }   Anyone please help.


Could any one help me with the passage I wrote in parenthesis?

The Last Leaf  In a little district west of Washington Square the streets have run crazy and broken themselves into small strips called "places." These "places" make strange angles and curves. One Street crosses itself a time or two. An artist once discovered a valuable possibility in this street. (suppose a collector with a bill for paints, paper and canvas should, in traversing this route, suddenly meet himself coming back, without a cent having been paid on account!)    I don't get its meaning clearly and also about the term "should" at the end of the sentence!   Is collector someone who collect money for somethings done that people should pay for them?   Could you write it in the other words to make it clearer?  Sorry my english is not so good. If I made some mistakes please correct me. Thanks in advance.


Losing focus in an exam, how does it affect my goal - grad school

So I'll explain my self briefly, I've just finished my first semester in my undergrad program and my goal is to move on to masters in the US in Stanford or near that area.  So obviously grades are very important and here's the problem, I'm putting the hours in throughout all the semester (easily 10 hours a day, sometimes longer) and I don't have  issues with understanding nor with executing what was learned but come the day of the exam and I do TERRIBLY and I can't explain why, I don't know whether it's because of stress  or something else and I feel lost as everyone I score a B instead of an A I feel like my grad school goal is only getting further away from me.  I'd appreciate any tips or ideas with how to deal with this. I'm currently retaking all the tests to improve my grades but it's exhausting because the material is not the problem...  In case it matters, I'm talking about computer science.  if the title is inappropriate please let me know how to change it   Thank you  Edit: my topic is different from the one  mwhombat linked to because where I live you don't get to pick your courses I can't focus on project based courses some have then but most don't so I HAVE to get better at test taking


How to show that when the linear transformation $\Phi =\psi \circ \phi : E \rightarrow G$ is injective, then $\phi$ is also injective?

How to show that when the linear transformation $\Phi =\psi \circ \phi : E \rightarrow G$  (where $\phi : E \rightarrow F$ and $\psi : F \rightarrow G$) is (1) injective, then $\phi$ is injective and when (2) $\Phi$ is surjective, then $\psi$ is also surjective ?  I've tried to prove it by the definition of injection and surjection, but I'm not convinced myself by it.  For example, in the first case :  If $\Phi$ is injective, $\forall g \in G$, we have $0$ or $1$ $e \in E$ such as $\Phi(e)=g$.  $\Rightarrow \Phi(e) = \psi(\phi(e)) = \psi(f) =g$.   So $\forall f \in F$, we also have $0$ or $1$ $e \in E$ such as $\phi(e)=f \in F$.   $\Rightarrow \phi$ is injective.  Is this right or did I prove nothing at all ? I think it is easier to convince myself/ to understand with surjectivity but still..


Can a Dualshock 4 replace a Xbox 360 controller on the PC?

The PS4 is now released in the EU, but due to shipment shortages is not available for sale unless pre-ordered a long time ago. Luckily, it seems as though Dualshock 4 controllers are availble for sale in a number of shops already.  I've long decided to buy the PS4 as well as a second Dualshock 4 controller, so I've been considering buying the "second" controller now in order to replace my old Xbox 360 controller, whose D-Pad is useless and whose RB button no longer responds correctly. But before I buy the Dualshock 4 early, I wanted to know how well my PC will support it.  I already know that , but what exactly does work, and what doesn't?  Can I expect the same key-mapping on the PC as on a PS4?  Basically, can I replace my Xbox 360 controller with a Dualshock 4 and still play games like Batman Arkham Asylum/City/Origins as if I were using the old Xbox 360 controller?


Getting answer for unanswered (already asked by someone else) question on Stack Exchange site?

What should I do, if I have some issues and when searching on a Stack Exchange site, I found that the same question is already asked by someone else, but yet not answered (or answered but that's not accepted)?   If I ask the question it would be an exact duplicate at that Stack Exchange site. (I do not have enough reputation to comment, or to put bounties on the asked question.)


Why don't hovercrafts move West relative to the Earth

Suppose that there is a hovercraft floating a few centimetres above the Earth's surface. As it is disconnected from the Earth, which is spinning from West to East, shouldn't it appear to move East to West to observers on the ground? Does this happen? If not, why not?


I would like to know if there is a way for me to rotate a windowed program running on Windows?  Here's an example of what I'm looking for:


Wrong display configuration used by LightDM in Ubuntu 13.10 when laptop lid is closed in docking station

Since upgrading to Ubuntu 13.10 on my laptop (actually to Xubuntu as I switched to XFCE) I'm running into problems with LightDM:  I use two external displays (one 24" and one 22" display) connected to my laptop docking station. After installing the NVIDIA driver 319 I used nvidia-settings to configure both displays to use TwinView and the correct native resolutions. I also stored this configuration in /etc/X11/xorg.conf. Right now when I login my display setup is "loaded" correctly.  However, LightDM seems to ignore my setup: Each time the login screen is presented in clone mode instead of TwinView with a wrong-sized (too small) background image for the 24" display.  How can I fix this?    Update:  I just noticed that LightDM uses the wrong display setup (i.e. clone mode) only when the laptop lid is closed in the docking station. When I keep the laptop lid open (even with laptop display disabled) LightDM behaves correctly and uses the exact display setup as I configured for my X session.    Solutions for   which involve using xrandr in a script and running it with the option "display-setup-script" or similar in the /etc/lightdm/lightdm.conf don't work: My script (see below) is executed but the resolution won't change. When executed manually in an X session, the script works perfectly.  Probably something is being overridden/enforced by the NVIDIA driver here? I already tried NVIDIA drivers 304, 319 and 331 without success. With 13.04 the problem did not occur, I didn't even need a script for LightDM.    My current script (/usr/share/lightdmxrandr.sh):  #!/bin/bash extscreens=$(xrandr -q | grep -c "DP-[02] connected") if [[ $extscreens == 2 ]]; then     xrandr --output DP-2 --primary --mode 1920x1200 \            --output DP-0 --mode 1680x1050 --right-of DP-2 --output LVDS-0 --off else     xrandr --output LVDS-0 --mode 1280x800 --output DP-2 --off --output DP-2 --off fi exit 0   /etc/lightdm/lightdm.conf:  [SeatDefaults] greeter-session=unity-greeter user-session=ubuntu display-setup-script=/usr/share/lightdmxrandr.sh session-setup-script=/usr/share/lightdmxrandr.sh greeter-setup-script=/usr/share/lightdmxrandr.sh     Solution:  After switching from Unity to XFCE, the solution was the following:   Install the default LightDM greeter for XFCE:  apt-get install lightdm-gtk-greeter xubuntu-default-settings Change the corresponding line in /etc/lightdm/lightdm.conf:  Before:  [SeatDefaults] greeter-session=unity-greeter ...   After:  [SeatDefaults] greeter-session=lightdm-gtk-greeter ...    Now all displays are configured correctly at the LightDM login screen.


I had a problem with booting windows 10 because I've changed the bootmgr path using : bcdedit /set {bootmgr} newpath  after rebooting it said that the boot sector is corrupted. Using Linux I can enter to the windows EFI partition and see the bootmgr file, but unfortunately the file is in binary (I've used a hex editor to open it).  Is it possible to replace it with another bootmgr file ?  if so from where to download it else is it possible to change the path using a hex editor ?     P.S : I've already used the windows rescue CD to run command and fix   it from there but it doesn't work


Change background image in css .clas:after

I want to change the background image URL from a JS controller using jQuery. How can I change background in the :after pseudo class?  document.querySelector('.className').style.background = `url('${profilePicture}')`;   SASS file:  .className {     width: 0%;       &:after {          background: url("../../../images/user.svg") center no-repeat;               }        }


How can I set multiple languages in listings?

Can anyone tell me how to properly set multiple languages in listings package? In my document I have some source code of C-sharp, VBA and JavaScript and need to color the keywords. But in my case I've tried to write this:  \usepackage{listings}  \lstdefinelanguage{JavaScript} {     morekeywords={         break,const,continue,delete,do,while,export,for,in,function,         if,else,import,in,instanceOf,label,let,new,return,switch,this,         throw,try,catch,typeof,var,void,with,yield     },     sensitive=false,     morecomment=[l]{//},     morecomment=[s]{/*}{*/},     morestring=[b]",     morestring=[d]' }  \lstset{     language=JavaScript     frame=tb,     framesep=5pt,     basicstyle=\footnotesize\ttfamily,     showstringspaces=false,     keywordstyle=\ttfamily\bfseries\color{CadetBlue},     identifierstyle=\ttfamily,     stringstyle=\ttfamily\color{Red},     commentstyle=\color{OliveGreen},     rulecolor=\color{Gray},     xleftmargin=5pt,     xrightmargin=5pt,     aboveskip=\bigskipamount,     belowskip=\bigskipamount }   \lstset{     language=csh,     basicstyle=\footnotesize\ttfamily,      numbers=left,      numberstyle=\tiny,      numbersep=5pt,      tabsize=2,      extendedchars=true,      breaklines=true,      frame=b,     stringstyle=\color{blue}\ttfamily,      showspaces=false,      showtabs=true,      xleftmargin=17pt,     framexleftmargin=17pt,     framexrightmargin=5pt,     framexbottommargin=4pt,     commentstyle=\color{green},     morecomment=[l]{//}, %use comment-line-style!     morecomment=[s]{/*}{*/}, %for multiline comments     showstringspaces=false,      morekeywords={  abstract, event, new, struct,         as, explicit, null, switch,         base, extern, object, this,         bool, false, operator, throw,         break, finally, out, true,         byte, fixed, override, try,         case, float, params, typeof,         catch, for, private, uint,         char, foreach, protected, ulong,         checked, goto, public, unchecked,         class, if, readonly, unsafe,         const, implicit, ref, ushort,         continue, in, return, using,         decimal, int, sbyte, virtual,         default, interface, sealed, volatile,         delegate, internal, short, void,         do, is, sizeof, while,         double, lock, stackalloc,         else, long, static,         enum, namespace, string},     keywordstyle=\color{cyan},     identifierstyle=\color{red}, }   But I get the error: Package Listings Error: language javascriptframe undefined. }  Can anyone help me?


Customise default snooze time in Gmail 2018?

Currently always defaults to 08:00 AM, is it possible to adjust this time to always say something like 06:00, for instance?


When I upgrade my version from 12.04 to 20.4: Can I use the applications like Evolution and Libre Office Base, flashplayer, kaffein and other in the modern version. I have seen, that this applications are not provided in the software center. Thanks for answers. Kay


To boot Windows in my Hard Disk from grub rescue mode

I have an internal hard disk of 80 GB in it, I've installed Windows 7. In another External Hard Disk of 1 TB, I've installed Ubuntu 18.04 in a 125 GB Partition. Well this ext hard disk get faulty at times to my PC won't recognize it. When it's so, it is showing entering grub rescue mode and it waits for my command. So literally I can't go to Windows without my ext hard disk.  What I wish to do is to boot the Windows in my internal hard disk even when the external hard disk is unplugged.  PS I'm willing to reinstall my Ubuntu but I don't want to lose any data in my internal Hard disk.


Shocking? - MacBook stubby earthed charger UK

I have no idea why. But apple have not earthed the stubbly plug for the macbook pro transformer. So on the short lead the only way the charger is earthed is when I touch it or the macs unibody which gives you a sort of vibrating feeling on your palms.  When I went to the genius bar to complain about it they said that it was completely 'normal'. Where their definition of normal is that every MacBook does it. I have had 4 MacBooks and all have done it.    The genius did say that he though he has seen a few earthed 3pin plugs. So my question is where can I pick one up? or how could we force apple to earth the stubby plugs and recall them?


Creating a Wireless Network (College Hehe..)

I'm a college student trying to help everyone out.  We don't have WiFi or any reception here; so trying to access google.com (example) is impossible. But what we do have is 20GB of videos that we made that we want to be able to stream between the rooms.  I want to create a 'network folder' on my windows 10 computer that people can access via a wireless network that other people can see on their phones that looks like a WiFi network but it's only a wireless connection to my computer.So it's completely local.  How can I do this? Would I have to purchase any extra hardware, I'd prefer not to.  Many Thanks


siunitx: bold single numeric cells + mathspec

I need to bold and align numeric values in a table while using both  and  packages. I've looked at  for bold and alignment in a tabular environment with the siunitx package, however this breaks when specifying \setallmainfonts(Digits){Helvetica} with the mathspec package.  The MWE below shows proper numeric fonts in the displayed math (from the "Digits" specification), the 3.060 is properly aligned, the decimal is properly bold, but the digits are not bold. If the \setallmainfonts(Digits){Helvetica} is commented, then the table data is correctly bold and aligned, but then the display math digits revert to CM. Does anyone know how to reconcile these two?  \documentclass{article} \usepackage{etoolbox} \usepackage{siunitx} \usepackage{booktabs}  \usepackage{mathspec} \setallmainfonts(Latin,Greek)[Ligatures=TeX]{Helvetica} \setallmainfonts(Digits){Helvetica}  \robustify\bfseries  \begin{document}  \begin{table} \begin{tabular}{S[table-format=3.3,detect-weight]}    \toprule    {Header 35} \\    \midrule      \bfseries 3.060\\    100.59\\    0.64\\    0.52\\    \bottomrule \end{tabular} \end{table}  This is the number 2. \[\int_{-\infty}^{\infty} 2 x^{2}_{i} dx \]  \end{document}


In 8-ball, do I win if I shoot in the 8 ball and my last ball in the same shot?

If I am able to shoot in the 8-ball and my last object ball in a single shot and I call the 8 ball in a pocket, do I win? Does the order in which the 2 balls leave the table matter?


Document margins with a4paper: documentclass vs. geometry

Using pdflatex, I would like to set an A4 article. I believed (from  answer) that it did not matter whether I use  \documentclass[a4paper]{article}    or   \documentclass{article} \usepackage[a4paper]{geometry}   But when I compile the two, I get different page margins. So I am now confused which is the "correct" way to use A4 paper. Is it maybe that one option only changes the paper format from letter to A4 but maintains the page margins, while the other adapts the margins to the new format? (Just a guess...)  MWE:  \documentclass{article} \usepackage[a4paper]{geometry} %\documentclass[a4paper]{article} as the alternative \begin{document} Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Aliquet risus feugiat in ante metus dictum. Auctor urna nunc id cursus metus aliquam. Malesuada proin libero nunc consequat interdum varius sit amet mattis. Quis ipsum suspendisse ultrices gravida dictum fusce ut placerat orci. Pellentesque habitant morbi tristique senectus et netus et. Quam viverra orci sagittis eu volutpat odio. Tellus id interdum velit laoreet id donec ultrices. Ut lectus arcu bibendum at. In aliquam sem fringilla ut. Tristique senectus et netus et malesuada. Semper eget duis at tellus at. Tincidunt lobortis feugiat vivamus at. Volutpat commodo sed egestas egestas fringilla. Lorem mollis aliquam ut porttitor. Vitae auctor eu augue ut lectus. \end{document}


Volume of a certain set in $\mathbb{R}^n$

For any dimension $n \ge 1$ and any real number $a \ge 0$  $$S(a)=\{x\in \mathbb{R}^n \mid 0 \le x_i \text{ for all } i \text{ and}\, x_1+...+x_n\le a\}$$  Find the volume of the set S(a).  I tried writing it as a multiple integral but it got pretty complicated.


If/Else with Selenium IDE - when confirmation message comes up

I have a scenario, in case of the user registration successful, it will display a success message on the next page otherwise an error message shows on the same page. How to automate the test case to return as passed if it is success and failure in case of error message comes up.  Please help me out here.


Logistic regression simulation in order to show that intercept is biased when Y=1 is rare

I'm trying to simulate a logistic regression. My goal is showing that if Y=1 is rare, than the intercept is biased. In my R script I define the logistic regression model through the latent variable's approach (see for example pp. 140 ):  x   <- rnorm(10000)  b0h <- numeric(1000) b1h <- numeric(1000)  for(i in 1:1000){   eps <- rlogis(10000)   eta <- 1+2*x+eps   y   <-numeric(10000)   y   <- ifelse (eta>0,1,0)    m      <- glm(y~x,family=binomial)   b0h[i] <- coef(m)[1]   b1h[i] <- coef(m)[2] }  mean(b0h) mean(b1h) hist(b0h) hist(b1h)   The problem here is that I don't know how to force the observations y to be balanced before (50:50), then unbalanced (90:10). As we can see with the function table(), in my script the proportion of ones is random.  table(y)   How to solve this problem?


The following trick is supposed to enable selecting from a Quick Look preview:  defaults write com.apple.finder QLEnableTextSelection -bool TRUE   … and then relaunch Finder.  In the past it worked for me, but not longer.  Is this broken in Sierra?


Asterisk in parenthesis in Objective-C... What does it mean?

Just a quick question from an Objective-C beginner: what does the asterisk in the parenthesis mean in the following sample code? Is it a pointer? Thanks in advance.  #import <Foundation/Foundation.h>  @interface Tire : NSObject @end @implementation Tire  - (NSString *) description {    return (@"I am a tire."); }  @end


Is it possible to run a job for 2 hours at a specific time? So lets say I want to run wget command that calls/hits an endpoint in my web app for 2 consecutive hours in a day. Meaning that every single minute I want to hit this end point for the allocated 2 hour time slot. How do I do this?


Defining static member of template class in a implementation file

I simplify the problem. I wanna know why this can't compile:  Error message: undefined reference to 'Foo<int>::j'  a.h  #pragma once template<typename T>   class Foo{     public:         int bar(){             return j;         }     private:         static int j; };   a.cpp  #include "a.h" template<typename T> int Foo<T>::j = 3;   main.cpp  #include "a.h" #include <iostream> using namespace std;      int main() {       Foo<int> f;       cout << f.bar();       return 0;     }


Finding Zero Divisors and Units of Rings $\mathbb{Z}_n \times \mathbb{Z}_m$

How do I exactly find the zero divisors and units of a ring in the form of $\mathbb{Z}_n \times \mathbb{Z}_m$? For instance, how does one calculate zero divisors and units of $\mathbb{Z}_6 \times \mathbb{Z}_2$? I understand that a zero divisor is a non-zero element of $R$ such that $rs = 0$ for some other non-zero element $s$ in $R$. But I don't really quite understand how to apply that to a ring of the form $\mathbb{Z}_n \times \mathbb{Z}_m$. Also, the units of $\mathbb{Z}_6 \times \mathbb{Z}_2$ would be elements that send some element $s$ in $\mathbb{Z}_n \times \mathbb{Z}_m$ to the multiplicative identity, right? (which would be 1)? How do I apply these concepts to "product" rings? Thank you.


How can I enable all installed Gnome Shell Extensions?

I need this, because sometimes the Gnome Shell "forgot" all my extensions configurations after a normal reboot/shutdown. And I'don't want reinstall entire system because this.   So I want a script or a command to enable then all during the my session startup (putting in gnome-session-properties) or even a fix for this problem.  I'm using Ubuntu Gnome 13.04 on Gnome Shell 3.8.3 (downgrade, now on v3.6.3.1)  Output of find ~/ \! -user $USER -print:  /home/mediacenter/.cache/dconf find: `/home/mediacenter/.cache/dconf': Permission denied /home/mediacenter/.gvfs find: `/home/mediacenter/.gvfs': Permission denied


Testing whether two Eigen decompositions are equal

I have an eigen decomposition of a 30 variable covariance matrix calculated using 5y of daily data and would like to compare it to a different 5y period to see if the eigenvalues are the same. Obviously they will not be exactly the same due to noise in the signal but can I test statistically that they are the the same?  "An asymptotic chi-square test for the equality of two correlation matrices" by R. Jennrich  The closest match I have found is a paper to test the equivalence on two correlation matrices, but as I am working in the Eigenvector space I would prefer a test that is performed on the eigenvectors (plus the paper is quite old).  Also on a similar topic what is the minimum length of time I can run a PCA analysis over for 30 variables on daily data. Clearly if i can generate more eigenvector decompositions to compare I can be more confident in my results.


Java - How to find out whether a File name is valid?

In my Java application I am renaming files to a file name provided in a String parameter. There is a method  boolean OKtoRename(String oldName, String newName)   which basically checks whether the newName isn't already taken by some other file, as I wouldn't want to bury existing ones.  It now occurred to me that perhaps the newName String will not denote a valid file name. So I thought to add this check to the method:  if (new File(newName).isFile()) {      return false;  }   Which obviously isn't the right way to do it, since in most cases the newFile does not yet exist and therefore although it is OKtoRename, the function returns false.  I was wondering, is there a method (I know there isn't for the java.io.File objects) like canExist()? Or would I have to resort to regex to make sure the newFile String does not contain invalid characters (e.g. ?, *, ", :)? I wonder if there is perhaps a function hidden somewhere in the JDK that would tell me if a string could possibly denote a valid file name.


What's the meaning of the exponent here?

I'm reading .     The graph of $f: A \rightarrow B$ is the subset of $A × B$ consisting   of all ordered pairs $(a, b)$ with $f (a) = b$. If $A$ happens to be   $B^n$ for some $n ∈ N$, then we say that $f$ is a function on $B$ and   $n$ is the arity of $f$.   I don't understand the notation for the exponent of a set, I'm aware of what  is, it's the number of arguments or operands the function takes. I'm just not so sure if I can assume that a set with an exponent such as in $B^n$ means that a function has two operands.  I know the question may be too naive and perhapes the answer is the one I suggested and it's right in front of my face, I'm just searching for a confirmation or the negation of it. Thanks.


Find the length of the curve of $r^2 = a^2cos(2x)$

I am trying to find the arc length for the lemniscate $r^2 = a^2cos(2x)$ using the equation $$\int \sqrt{r^2 + (\frac{dr}{d\theta})^2} \, d\theta$$  However, I end up with the integration of $\sqrt{sec(x)}$ which is too difficult to integrate. Is there any different path that I can following using the same formula to find the length of the curve? Is there a way to make this easier?   Any suggestion would be appreciated.


How to show that $(1)\Longleftrightarrow (2)$ in metric spaces ?   pre-image of open sets are open   $\delta$-$\epsilon$ definition of continuity


What is the equation relating maximum data transfer rates for a given EM bandwidth?

I was looking for an equation that could show the relationship between the range of frequencies of an EM wave, and its Maximum data transfer rate. I know that ranges of shorter wavelengths can have a larger bitrate/symbol rate, but could not find an equation relating the two variables.   Thanks in advance for the help.  EDIT: I refined my wording above. Also, no one answered my question over at amateur radio SE. As for the nyquist rate wiki page, I still could not find the answer I was looking for.


In my experience, sharing ideas (which are opinion-based and not really questions by nature) is fine in meta sites. The posts can be:   Announcement posts. For example, in  it is specifically said that "if you've got something to add, please do write an answer!"  Observation posts. For example:  or  in Academia Meta Proposal posts. For example:  in Buddhism Meta   So I think it is perfectly fine to sharing ideas on meta without asking any question. I want to make sure if my understanding is correct, because I have such an idea about  and am quite surprised when it is downvoted and closed.


How to add horizontal cylinder at end of cube

I have this cube which has the basic shape of an escalator but I want to add a horizontal cylinder at the end of the cube like an escalator how can I do that


Why does no minimal surface in $\mathbb{R}^3$ exist that is diffeomorphic to the $2$-sphere?

I stumpled upon the following question in one of my exercise-sheets:     Justify that there are no minimal surfaces in $\mathbb{R}^3$ that are   diffeomorphic to the 2-sphere $S^2$   I have no idea though. Can someone elaborate?   What's the approach i am supposed to take on this?  I highly appreciate any hints! Thank you very much.


Monsters would turn into stone/crystals when captured

I don't remember much, but I know that this cartoon used to air on Cartoon Network and it had monsters which would turn into stones/crystals when defeated. These crystals were then used to summon the monster and fight for the person who had the crystal. (Kind of like Pokémon). Also, the story was going in some world/dimension and the mc's grandpa had something to do with the story too.


How to create dynamic (depend on scale) coordinates grid in ArcGIS for Desktop?

I am working in ArcGIS Desktop. I want to dynamicly change my coordinate grid in layout view depending on map's scale. How to do that?  Currently I have to change this manually every time I zoom in or zoom out.


Builtin speakers work only if i plugin ear phone

By default under "Settings/Sound" I see only: "Headphones - Built-in Audio".  Because of which I am not able to use my laptop speakers.  It is only after I plug in a headphone does the speakers work i.e., under "Settings/Sound" then I see "Speakers Built-in Audio".   But then I am not able to use headphones. So basically, I am never able to use headphones.  == EDIT == I have had this issue on Ubuntu 18.04 also. I thought upgrading might fix the issue. But it didn't.  System: Dell Latitue E6430  OS: Ubuntu 19.04  OS type: 64 Bit  Please suggest how could I fix it.


Error propagation with asymmetric uncertainties

I red the Wikipedia  on error propagation. I get into some trouble when I want to calculate the error propagation in a specific case. I have real numbers $A$ and $B$ with related upper ($\Delta A_u$, $\Delta B_u$) and lower ($\Delta A_l$, $\Delta B_l$) uncertainties. I have two functions calculated as follows: $$F = \sqrt{A^2+B^2}$$ and  $$G = \tan^{-1}\frac{B}{A}$$ What are the related upper and lower errors of $F$ and $G$?  I found general formulae for Gaussian error distributions ($\Delta A_u = \Delta A_l$ and $\Delta B_u = \Delta B_l$), for instance the first formula of the first answer on . Is there a way to generalize that formula for arbitrary distributions with asymmetric errors as in my example?


I uploaded Ubuntu as an ISO file on a flash drive. I managed to install it on my personal computer flawlessly, but it seems to have an issue and isn't even able to return to her previous Windows 10 OS. I installed the OS from a desktop ISO which I checksum verified and made the live USB following the tutorials.ubuntu.com instructions. Here's what appears on the screen as soon as the computer is powered on.


Comparing two Digital Elevation Models (DEMs) from LAS files?

I have two LiDAR files (.las), one is original let's say with X points. And the other is copy of the first .las file but with Y points, where Y is less than X.   Now, I want to compare the Digital Elevation Models (DEMs) of these two .las files and visualize how different they are.  I want to get information like RMSE, standard deviation, among other types of comparison.   I would appreciate, if anyone could tell me what softwares, and ways to get the comparison info.


blur event doesn't fire for new table cell added by jquery

I have created a jsfiddle to demonstrate the problem   Basically the blur event runs on clicking the table cell, but if I clear the table and repopulate using jquery the blur event doesnt run any more (code below - also see jsffiddle). Any ideas how I can get the event to fire even after the JS has rewritten the table?  HTML >>>

     Blurred does Run

  <button id="refreshButton">   Refresh </button>   JAVASCRIPT >>>  $(document).ready(function () {      $('.taskQuantityCol').blur(function() {         console.log("blurred");     });    $('#refreshButton').click(function() {     $("#tasksTable > tbody").empty();     $('#tasksTable').append('
Blurred doesnt Run	');   }); });


Why do I need root-privileges to update my package manager's package list?

Why do I need root-privileges to update my package managers package list?  Hi,  I always wondered why I need root-privileges to update my package managers package list?  I'm aware that the privileges are required to access the databases located in the designated directories.  But why can't I even check for updates with out root?  It doesn't affect other users. (I guess) To be aware of pending updates can be a security flaw, but the installed and the newest version can be detected easily on other ways.  What is the reason here?  This behavior is afaik quite common. Fedora, Ubuntu, Debian and Arch have this behavior, likely many other distros have it to.


Prove by Induction : $\sum n^3=(\sum n)^2$

I am trying to prove that for any integer where $n \ge 1$, this is true:  $$ (1 + 2 + 3 + \cdots + (n-1) + n)^2 = 1^3 + 2^3 + 3^3 + \cdots + (n-1)^3 + n^3$$  I've done the base case and I am having problems in the step where I assume that the above is true and try to prove for $k = n + 1$.   I managed to get,  $$(1 + 2 + 3 + \cdots + (k-1) + k + (k+1))^2 = (1 + 2 + 3 + \cdots + (k-1) + k)^2 + (k + 1)^3$$  but I'm not quite sure what to do next as I haven't dealt with cases where both sides could sum up to an unknown integer.


Does Dim Light created by an effect override Bright Light in an area?

Two examples.     A silvery beam of pale light shines down in a 5-foot-radius, 40-foot-high cylinder centered on a point within range. Until the spell ends, dim light fills the cylinder.      —Moonbeam, Player's Handbook, pg. 261        You create up to four torch-sized lights within range, [...] each light sheds dim light in a 10-foot radius.      —Dancing Lights, Player's Handbook, pg. 230   Now consider that each of these spells are cast on a bright day, obviously covered by Bright Light, as the game understands it.   Do these spells change the Bright Light within the area affected by them into Dim Light? Is the behavior different between Moonbeam ("Dim Light fills the cylinder") and Dancing Lights ("each light sheds dim light"), or do both of them behave the same?


How to clean stains from 35mm color negative film?

I developed colour negative film for the first time yesterday and I have two problems. Firstly many of the pictures have these stains like circles on them and I cannot understand what caused them and how to clean them. And also the pictures came out looking way too magenta/ purplish which is bizarre because the film I used is supposed to come out more to the greenish side rather than the magenta side. Any ideas about how I could clean the stains or what could have gone wrong? :))


How to remove bumps in the motion of camera animation in graph editor?

Hi I'm very new to this blender. I wanted to recreate the title animation whose link is .  I tried to keyframe all the possible channels for camera motion, to match up the sequence between 18th to 24th second in the video, but I get weird jumps between 380 to 420 frame as well as between 480 to 520 frames, in the blend file that I have attached below.   Can anyone help me in the smooth transistion of camera animation as in the youtube link video.


Relationship between the focal length and sensor size

What is a relationship between the focal length of the lens and the sensor size to achieve the same image area ?


fatal error C1083: Cannot open include file, but it's in the same directory

I am trying to compile some C code (generated from python using cpython), and I'm getting the C1083 error saying the file doesn't exist.  structmember.h is actually in the same folder as the C file, and is also in its include folder in case it was looking there instead, so I've no idea how to fix it. I'm attempting to generate the file by using cl test.c.  Here's the entire output:  C:\test>cl test.c Microsoft (R) C/C++ Optimizing Compiler Version 19.10.25019 for x64 Copyright (C) Microsoft Corporation.  All rights reserved.  test.c test.c(1018): fatal error C1083: Cannot open include file: 'structmember.h': No such file or directory   Here's a shot from the folder:   Here is the code around each mention of structmember (took screenshots as coping a full page of text probably isn't useful):      If anyone would like to have a glance at the file, it's on onedrive , a little too large for pastebin.


Can I run a steam game without updating it first?

Is is possible to install a steam game and then play it without having to download a huge update file?  I'm temporally on super slow broadband at my parents and want to play a game I got now, not in 10hours :-/  Thanks


Novel where a genius child secretly makes clones of himself

I'm trying to find the name of a novel that was (what I'll call) light horror sci-fi. It was probably published in the early 90s.  As best as I can remember, the plot goes something like:   a child is genetically engineered (prenatally) to be smart when he's very young, his intelligence tests off the charts as he grows up, his intelligence goes back down to normal a bunch of clones are found and (plot twist) it turns out he was faking not being a genius and he's been incubating clones for years   I think there was something malicious about the boy... like maybe he was plotting a new world order.


Get a string after a special character Python RegEx

How can i get a string after a special character?  For example I want to get the string after / in   my_string = "Python/RegEx"  Output to be : RegEx  I tried :  h = [] a = [ 'Python1/RegEx1' , 'Python2/RegEx2', 'Python3/RegEx3']  for i in a:      h.append(re.findall(r'/(\w+)', i)) print(h)   But the output is : [['RegEx1'], ['RegEx2'], ['RegEx3']]  I need : ['RegEx1', 'RegEx2', 'RegEx3']  Thanks in advance  RegEx beginner


int limit = 100; IEnumerable<int> primes = Enumerable.Range(2, limit - 2 + 1);  for (int i = 2; i*i <= limit; i++) {     primes = (from item in primes where (item % i != 0) || (item == i) select item); }  foreach (int prime in primes) Console.WriteLine(prime);  Console.ReadKey();   This is my code to get prime numbers from 2 to 100. Why doesn't it work? Help, please.


uname -a doesn't show linux distribution version

I try to know the linux distribution version of a remote linux machine. After trying several commands, I still can't identify the linux distribution version  $ uname -a Linux server1 2.6.18 #1 Thu Jan 11 21:34:48 CET 2007 i686 athlon-4 i386 GNU/Linux  $ cat /proc/version Linux version 2.6.18 (root@server1) (gcc version 3.4.6) #1 Thu Jan 11 21:34:48 CET 2007   $ cat /etc/issue Welcome to \s \r (\l)  $ lsb_release -a -sh: lsb_release: command not found  $ cat /etc/*-release cat: /etc/*-release: No such file or directory   what can I do to know its linux distribution(i.e, redhat or debian or anything else?)


Selection by attribute string with wildcard as part of name in ArcGIS Desktop?

I have an attribute field in my file geodatabase (GDB) where I'm trying to select all records that contain an underbar in the string field.  The issue is that the underbar is considered a SQL wildcard on its own.  To illustrate: I need all data similar to "ID" = '42W_42_42E' or "ID" = '31A_31'  Using "ID" LIKE '%_%' returns all records, which isn't helpful.  The perfect solution would simply return a count on the number of records with the underbar in their ID attribute.


My material node is missing in the viewer. No  matter how much I mouse around, I can't find it or add shaders to it. If I delete it, and add another material, it's still missing.


Why is the principal value of the argument of z always in the interval of -pi and pi?


In sage, I got a lot of bright blue colors that aren't readable. I want to change them, but I don't know colors' source or from where they are coming.  How can I change colors to my liking?  Below you can find 2 screenshot of my terminal opened on sage.   I did use setterm to change foreground text, but the problem is that it is still bright blue in color?


What are the advantages of using log GDP per capita versus simple GDP per capita when analyzing economic growth?

I have quite a lot to learn regarding analysis and economics, one thing I have noticed is that when analyzing growth, log is used quite often, why is this so?


Question list on profile page not vertically aligned

There's something wrong with the vertical alignment on the :   (click to enlarge)  On the , which uses a similar list but without the Favorite column, the vertical alignment is correct.  (Tested in the latest Firefox, Safari and Chrome on macOS Catalina.)


Test if ValidationError was raised . Odoo 14

I want to test if an exception was raised how can I do that? In my file.py I have this function: //file.py  def unlink(self):         for rec in self:             if rec.state in ('progress', 'done'):                 raise ValidationError(_('Error!!))          return super(MyClass, self).unlink()  //test_file.py  my_obj.button_validate()  my_obj.unlink()  When adding : my_obj.unlink() in the function , I got the output in log like  this:   raise ValidationError(_('Error!!')) odoo.exceptions.ValidationError: Error!!  How can I add test if the validation error is shown or not ?


Has anyone had any luck playing portal 2 offline co-op on Mac? My controls are messed up for controller 2 (xbox controllers) and it seems like it's not only my problem. Any tips on how to get it working?


Trouble inserting "~" (not equivalent to \sim}

I need to include a url in my document, which includes this symbol: ~ Simply entering the url generates a space rather than the symbol, and replacing the symbol with $\sim$ is not equivalent, the url no longer works if copied and pasted into a browser. Is there a way to generate the exact symbol? The full url I want to use is http://www.its.caltech.edu/∼ph76a/pdh.pdf. Working example:  \documentclass[11pt]{amsart} \usepackage[top=1in, bottom=1in, left=1.5in, right=1in]{geometry}              % See geometry.pdf to learn the layout options. There are lots. \geometry{a4paper}  \usepackage{graphicx} \usepackage{amssymb} \usepackage{epstopdf} \usepackage{subfigure} \usepackage{setspace} \usepackage{cite} \usepackage{amsmath} \usepackage{xfrac} \usepackage{cleveref} \usepackage{url} \usepackage{breqn} \usepackage[bitstream-charter]{mathdesign} \usepackage[T1]{fontenc} \begin{document} http://www.its.caltech.edu/~ph76a/pdh.pdf \end{document}


discerning between "his saying that" and "him saying that"

Excerpted from Oxford dictionary:  A. I can just imagine him saying that!  Which one is more formal, or which one have you seen more in formal texts? In addition, do you use them interchangeably?  B. I can just imagine his saying that!  Any feed-back would greatly be appreciated


I setup a basic email sending only server on my laptop using the following  sudo tasksel install mail-server   But for some reason I didn't get asked what kind of installation I want to do, i.e. a localhost only, internet etc etc  I used the following command to send an email from the terminal  echo 'body' | sendmail oshirowanen@gmail.com   I did not receive the email.  I checked both my inbox and spam box.  Plus I don't have a firewall, so no rules would have blocked the email going out.  Unless of-course, ubuntu by default has a necessary port closed which is needed for sending emails out?  The mail.log is showing the following and the log is getting bigger and bigger:  Jan 16 09:21:04 ubuntu postfix/master[5923]: daemon started -- version 2.9.3, configuration /etc/postfix Jan 16 09:21:04 ubuntu postfix/qmgr[5925]: ES8B132738: from=<oshirowanen@ubuntu>, size=233, nrcpt=1 (queue active) Jan 16 09:21:09 ubuntu postfix/smtp[5927]: connect to gmail-smtp-in.l.google.com[2a00:1450:400c:c05::1a]:25: Network is unreachable Jan 16 09:21:27 ubuntu dovecot: master: Dovecot v2.0.19 starting up (core dumps disabled) Jan 16 09:21:39 ubuntu postfix/smtp[5927]: connect to gmail-smtp-in.l.google.com[173.194.67.27]:25: Connection timed out Jan 16 09:22:09 ubuntu postfix/smtp[5927]: connect to alt1.gmail-smtp-in.l.google.com[173.194.70.26]:25: Connection timed out Jan 16 09:22:09 ubuntu postfix/smtp[5927]: connect to alt1.gmail-smtp-in.l.google.com[2a00:1450:4001:c02::1b]:25: Network is unreachable Jan 16 09:22:39 ubuntu postfix/smtp[5927]: connect to alt2.gmail-smtp-in.l.google.com[173.194.69.26]:25: Connection timed out Jan 16 09:22:39 ubuntu postfix/smtp[5927]: ES8B132738: to=<oshirowanen@gmail.com>, relay=none, delay=1547, delays=1452/0.05/95/0, dsn=4.4.1, status=deferred (connect to alt2.gmail-smtp-in.l.google.com[173.194.69.26]:25: Connection timed out)   How do I stop my laptop trying to send the email, and how do I setup the mail-server properly.  I just want to be able to send emails out so I can use PHP to send emails out.  I do not need to receive emails in.


Create VF page with data from multiple objects

I would like to create a popup window as an action button in my Opportunity layout that will show details from my Opportunity and its related Contacts and Clients. I imagine this must be done via Visualforce. Could someone help me do this or point me in the redirection on how I can achieve this?  I'd imagine this would invole a Visualforce page and an apex class.


What is the origin of 'many a [singular noun]'?

What is the origin of the weird phrase 'many a [singular noun]'? It's extremely odd: for one thing, 'many' here is a predeterminer (very unusual), for another, it goes with a singular noun. What is the explanation for this bizarre structure?  additional question you may not answer: Is it stylistically neutral? How would it sound to a native speaker's ear? Isn't it something literary?


alter table enquiry alter  column RejectReson int default 0   I want alter the column data type with default value zero,but it is not happening.


Math Induction Proof: $(1+\frac1n)^n < n$

So I have to prove:      For each natural number greater than or equal to 3,   $$(1+\frac1n)^n<n$$   My work: Basis step: $n=3$ $$\left(1+\frac13\right)^3<3$$ $$\left(\frac43\right)^3<3$$ $$\left(\frac{64}{27}\right)<3$$ which is true.  Now the inductive step, assume $P(k)=\left(1+\frac1k\right)^k<k$ to be true and prove $P(k+1)=\left(1+\frac1{k+1}\right)^{k+1}<k+1$.   This is where I am stuck because usually you add or multiply by $k+1$ or some similar term.


In Stinespring dilation, can we always use a mixed state as the ancilla?

The Stinespring dilation theorem states that any CPTP map $\Lambda$ on a system with Hilbert space $\mathcal{H}$ can be represented as $$\Lambda[\rho]=tr_\mathcal{A}(U^\dagger (\rho\otimes |\phi\rangle\langle \phi|)U)$$ where $\mathcal{A}$ is an , $|\phi\rangle\in\mathcal{A}$ is an arbitrary pure state, and $U$ is a unitary on the joint system $\mathcal{H}\otimes\mathcal{A}$. Importantly, this works for any choice of the state $|\phi\rangle\in\mathcal{A}$ -- that is,  neither does $|\phi\rangle\in\mathcal{A}$ have to depend on $\Lambda$, nor is a specific choice of $|\phi\rangle\in\mathcal{A}$ required. Would this representation still be valid if, instead of attaching an ancilla in the pure state $|\phi\rangle\langle\phi|$, we instead attached an ancilla in some arbitrary mixed state $\sigma$? That is, given  a state $\sigma$ of $\mathcal{A}$, I would like to know whether for every CPTP channel $\Lambda$, there exists a unitary $U$ on $\mathcal{H}\otimes\mathcal{A}$ such that $$\Lambda[\rho]=tr_\mathcal{A}(U^\dagger (\rho\otimes \sigma)U).$$


Problem involving Derivative and Antiderivative operators in Hoffman and Kunze's Linear Algebra

I have a homework problem from Hoffman and Kunze's Linear Algebra.  Let F be a subfield of $\mathbb{C}$ and let $T$, $D$ be the transformations of $F[x]$ defined by $$\begin{align} T\left(\sum_{i=0}^n{c_ix^i}\right) &=\sum_{i=0}^n\frac{c_i}{i+1}x^{i+1} \\ D\left(\sum_{i=0}^n{c_ix^i}\right) &=\sum_{i=1}^nic_ix^{i-1} \end{align}$$ These look like the anti-derivative and derivative operators.  I am to show that $DT=I$ but $TD\neq I$.  So, $$DT\left(\sum_{i=0}^n{c_ix^i}\right)=D\left(\sum_{i=0}^n\frac{c_i}{i+1}x^{i+1}\right)=\sum_{i=1}^n{(i+1)}\frac{c_i}{i+1}x^{i+1-1}=\sum_{i=1}^n{c_ix^i}.$$ It is close, but my index is off by 1, and so they can't be equal since I am missing my constant term.  What am I missing? Do I need to rewrite the argument in the derivative operator before I operate?


I'm a quarter Draconian, a quarter Dragonborn and half Half-Dragon?

What are the differences between "Dragonborn", "Half-Dragon", and "Draconian" races in D&D?  In the Hoard of the Dragon Queen adventure, for example there is  a Half-Dragon npc. I had assumed that when writing the adventure they were only allowed to use known material from Basic, and so renamed the Dragonborn into "Half-Dragon" for the sake of compatibility etc. However, the dragon breath rules are not at all similar for the half-dragon and the dragonborn, and I've also noticed wiki article that imply that they are different races entirely. (Thus introducing me to the term Draconian)  Are there clear differences between these three races, (in the same way there are differences between Goblins and Hobgoblins, or Dragonborn and Lizardfolk and Kobolds,) or are they really just three different setting names for the same basic race?  Answers can either be D&D 5e specific, or be based on the lore from all editions of Dungeons and Dragons. (I'm assuming here that the answer will be the same regardless)  Here are two images, the first one is a "half-dragon" from the front of the Hoard of the Dragon queen module, and the second one is a "dragonborn" from the 5e player's Handbook.  I've included these images to help explain my confusion.


Nginx throttle download speed based on filesize

I am using nginx/1.11.11 compiled from the source with the mp4 module and I am serving video files from 300MB size up to 8GB.  I am thinking of implementing a throttle system similar to google's drive. If the size of the file is big set a larger the limit_rate and if the file size is small set a smaller limit_rate. The problem is I can't find a way to get the size of the served file.  My default.conf file looks like this:  server {     listen       80;     server_name  _; # change this for your server     root /var/www;     index index.php;     client_max_body_size 5G;     proxy_read_timeout 60000000;      # handle requests to the API     location ~ /api/v2/(.+)$ {         if (!-e $request_filename) { rewrite ^/api/v2/(.*) /api/v2/index.php?_page_url=$1 last; }         fastcgi_pass   127.0.0.1:9000;         fastcgi_index  index.php;         fastcgi_param MOD_X_ACCEL_REDIRECT_ENABLED on;         fastcgi_param  SCRIPT_FILENAME   $document_root$fastcgi_script_name;         include        fastcgi_params;     }      # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000     location ~ \.php$ {         if (!-e $request_filename) { rewrite ^/(.*) /index.php?_page_url=$1 last; }         fastcgi_pass   127.0.0.1:9000;         fastcgi_index  index.php;         fastcgi_read_timeout 180000000;         fastcgi_param MOD_X_ACCEL_REDIRECT_ENABLED on;         fastcgi_param  SCRIPT_FILENAME   $document_root$fastcgi_script_name;         include        fastcgi_params;     }      location / {         if (!-e $request_filename) {                 rewrite ^/(.*) /index.php?_page_url=$1 last;         }     }     location /files/ {         root /var/www;         aio threads;         internal;         mp4;         limit_rate_after 5m;         limit_rate 400k;     }      # these locations would be hidden by .htaccess normally     location /core/logs/ {         deny all;     }


Unable to move files having spaces in their name

I want to move files from one folder to another folder, my code is working fine when file name doesn't contain spaces but if there is a space in a file name then I am getting an error My Code is as follows :  find [folderName] -size +1k -type f -name \*.txt -print0 | while IFS= read -r -d '' file; do       echo $file       mv $file targetfolderName           done   File Names  sample 01.txt test - copy 01.txt


Spotify doesn't work after update to 15.04

Yesterday I updated my Ubuntu from 14.10 to 15.04 but sadly i had to conclude that Spotify doesn't work anymore. Today I installed 15.04 and Spotify again but nothing has changed - Spotify isn't working.  For installing Spotify I have used the instructions on this Page:    How can I fix this?  (Sorry for my bad English, but I hope, this is understandable...)


Statistical data analysis - data comparison

I'm currently facing some issue in determining what statistical test might be best to adopt to determine whether or not my three datasets are significantly different from each other. I have the following datasets of probabilities observed within my Experiment: prob355 = [0.06672, 0.07473, 0.14813, 0.25516]; prob532 = [0.07226, 0.08718, 0.09631, 0.14276]; prob1064 = [0.05979, 0.09020, 0.10891, 0.11307]; Within these datasets, each entry corresponds to a probability obtained under certain experimental conditions such that within the dataset the conditions for prob355(1) ≠ prob355(2) prob355(3) ≠ prob355(4). Between the datasets they have been ordered such that prob355(1) = prob532(1) = prob1064(1). These datasets are accompanied by the following errors/standarddeviation/noise in the observed probabilities: model_error_355 = [0.03255, 0.03986, 0.01321, 0.01928]; model_error_532 = [0.01370, 0.00880, 0.00856, 0.04257]; model_error_1064 = [0.03150, 0.02441, 0.02307, 0.02059]; Within these datasets, each entry corresponds to the same entry as in the prob355, prob532 or prob1064. Basically, what I'm looking for is to compare each of the overall datasets (whilst taking the standard deviation in each value into account) amongst each other and determine if overall these datasets are statistically different from each other. Or if possible I would like to find out which of the values are significantly different from each other. The goal of this comparison for the overall datasets would be prove the hypothesis that these values are not significantly different from one another. Secondly, the goal would be to determine if for each of the individual conditions (eg. prob355(1) = prob532(1) = prob1064(1)) the values are significantly different or not. Currently, I'm using Matlab to run my analysis but I'm not bound to this software to run this analysis as long as the alternative is open acces :) So, If anyone knows a good way of making this comparison I would be very happy to hear it. Thanks!


Classic applications of Baire category theorem

Problem: Suppose that $f:\Re^+\to\Re^+$ is a continuous function with the following property: for all $x\in\Re^+$, the sequence $f(x), f(2x),f(3x)\cdots$ tends to $0$. Prove that $\lim\limits_{t\to\infty}f(t) = 0.$   Please help to solve this problem, teacher, said act to the contrary, but I do not understand how there podstupitsya.Znayu that is somehow connected with the theorem of Baire.This is a homework assignment.  Thanks!


Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/e/eglibc/libc-bin_2.15-0ubuntu10.6_i386.deb 404 Not Found [IP: 91.189.91.14 80]

Hi While executing the command at root -  apt-get install alien    I get below errors (page not found)  Can you please fix / help   Err http://us.archive.ubuntu.com/ubuntu/ precise-updates/main libc-bin i386 2.15-0ubuntu10.6   404  Not Found [IP: 91.189.91.13 80] Err http://security.ubuntu.com/ubuntu/ precise-security/main libc-bin i386 2.15-0ubuntu10.6   404  Not Found [IP: 91.189.91.14 80]


Non-EU spouse of UK citizen Schengen visa requirements

I'm a British citizen and my wife is in the UK on a spouse visa. She holds a BRP card. We're planning to visit Germany and some other Schengen countries, and I've got a question around visa requirements/supporting documents.  I've read in few places (i.e ) that the visa requirements are more relaxed if the applicant is a spouse of a UK citizen, and is travelling with the UK citizen.  How relaxed are the requirements? Does my wife need to submit supporting documents for accommodation, finances, flight booking, etc.? Or is it simply submitting the application form alongside the passports and BRP? (i.e standard documentation for Schengen visa application section from )


Prove that $x_{n+1}=\frac{1}{4-x_n}$ converges

Let $x_1 =3.$ Prove that $$x_{n+1}=\frac{1}{4-x_n}$$ converges.  The sequence seems to be converging to $1/4$ as the first few terms are $$3,1,\frac{1}{3},\frac{3}{11},\frac{11}{41},\frac{41}{153}, \cdots$$  In order to prove convergence I know I must make use of the definition that a sequence $(x_n)$ converges to $x$ if there exists an $N$ for all $n \ge N \Rightarrow |x_n-x|\lt \epsilon$. But how do I choose $N$ as a function of $\epsilon$? What can I assume? Could someone show me what a proof for this looks like? Thanks.


tcolorbox Spanning Two Columns in {paracol} Environment

The paracol environment allows figures to span two columns by using an asterisk in the figure's environment declaration: \begin{figure*} ... \end{figure*}.  I'm not familiar with the guts of why that works, and I was curious to know if there's something analogous for an environment derived from tcolorbox (like \newtcolorbox{NewBox}[1][!htbp]{...float=#1}). That is, in this example, can I get a NewBox that spans both paracol columns the way I wrongly assumed \begin{NewBox*} ... \end{NewBox*} would.  PS The tag below is "parcolumns" because I don't have a high enough reputation to create the tag 'paracol' (in reference to this CTAN package: )


Disk shrink does not work on ESXi guests

EHLO everyone! My first post on the StackOverflow network :)  We're running some ESXi 5.0/vCenter infrastructure to host mainly Debian 6/amd64 guest systems with ext3 partitions and open-vm-tools compiled from source per .  Got an issue that is seen being raised all around the internet, but without a conclusive answer given anywhere.  When trying to shrink a thin-provisioned disk in independent-persistent mode, with no snapshots, parents, clones whatsoever, I consistently get the following error:  root@linux64:~# vmware-toolbox-cmd disk list Shrink disk is disabled for this virtual machine.  Shrinking is disabled for linked clones, parents of linked clones, pre-allocated disks, snapshots, or due to other factors. See the User's manual for more information.   (By the way, what are the "other factors", and which of the ton of white papers and technical manuals is the User's manual?:)  I know that I can stuff the partitions with zeros (in fact, I do use shred -fuzn0 when deleting large files) then shut down the guest in question and use various methods like vmkfstools, cloning or vMotioning disks around in thin-provision mode, etc, but all of them either incur the downtime penalty for the guest being shirnked, or result in an unwarranted moving of data between datastores and/or hosts.    And the answer is: No shrinking under ESX/ESXi (as of version 5).   The  reads:  IMPORTANT Shrinking disks is not allowed under the following circumstances:   The virtual machine is hosted on an ESX/ESXi server. ESX/ESXi Server can shrink the size of a virtual disk only when a virtual machine is exported. The space occupied by the virtual disk on the ESX/ESXi server, however, does not change. The virtual machine has a Mac guest operating system. You preallocated all the disk space to the virtual disk when you created it. The virtual machine contains a snapshot. The virtual machine is a linked clone or the parent of a linked clone. The virtual disk is an independent disk in nonpersistent mode. The file system is a journaling file system, such as an ext4, xfs, or jfs file system.   No wonder there is an option to shrink in VMWare Workstation but not in vSphere client connected to an ESXi or vCenter instance.


How/Where can i get the script file 'Virtualbox.run'?

I've installed .deb file (virtualbox-5.2_5.2.8-121009~Ubuntu~xenial_amd64.deb) on uBuntu 16.04, and i tried getting 'Virtualbox.run' (as in the link ) but there aren't any files with that name.   How/Where can I get the script file 'VirtualBox.run'?  Thanks very much.


I have so many folders with (2) at the end. But the Folders list is huge and it is not feasible to rename them individually. The only pattern is that all ends with (2) as shown below. Is there a way to rename all of them by just removing the last (2).  Any help will be highly appreciable.


Did Merope's love potion predetermine Tom's moral alignment?

I know that Merope's love potion made him unable to love, but I was wondering if Tom Marvolo Riddle's inability to love somehow affected his moral alignment for the worse.


What is the difference between "Distribution Worker" and "Distributing Worker"?

I cannot differentiate when I should use a noun like "distribution" as an adjective to another noun, or when should I use an "-ing" participle as an adjective. Could you please clarify the differences in the meaning?


float substraction in Python 3 is innacturate

I have tried to look it up but I can't seem to phrase it right. why does 5.6 - 2.2 = 3.3999999999999995 in Python 3? Sure I can get around this problem with the round() built in function, but I was struck to see this behaviour 5.6 - 2.2  I am using Python version 3.7.3


A potentially dangerous Request.Form value was detected from the client MVC4

i getting this error when inserting a record with "<".  how to solve this error with inserting a string with "<" in it.  im using entity framework. this column has a datatype of nvarchar.  thanks in advance.


How can I make this window & application time- track script produce sorted output?

There is an application usage time tracker script, that Jacob Vlijm wrote in another question.   Due to small reputation I cannot comment there. So I will ask here, is it possible to sort entries by percentage of use, instead of current relative order?  Here is a script in case you don't want to check the original question.  #!/usr/bin/env python3 import subprocess import time import os  # -- set update/round time (seconds) period = 5 # --  # don change anything below home = os.environ["HOME"] logdir = home+"/.usagelogs"  def currtime(tformat=None):     return time.strftime("%Y_%m_%d_%H_%M_%S") if tformat == "file"\            else time.strftime("%Y-%m-%d %H:%M:%S")  try:     os.mkdir(logdir) except FileExistsError:     pass  # path to your logfile log = logdir+"/"+currtime("file")+".txt"; startt = currtime()  def get(command):     try:         return subprocess.check_output(command).decode("utf-8").strip()     except subprocess.CalledProcessError:         pass  def time_format(s):     # convert time format from seconds to h:m:s     m, s = divmod(s, 60); h, m = divmod(m, 60)     return "%d:%02d:%02d" % (h, m, s)  def summarize():     with open(log, "wt" ) as report:         totaltime = sum([it[2] for it in winlist])         report.write("")         for app in applist:             wins = [r for r in winlist if r[0] == app]             apptime = sum([it[2] for it in winlist if it[0] == app])             appperc = round(100*apptime/totaltime)             report.write(("-"*60)+"\n"+app+"\n"+time_format(apptime)+\                          " ("+str(appperc)+"%)\n"+("-"*60)+"\n")             for w in wins:                 wperc = str(round(100*w[2]/totaltime))                 report.write("   "+time_format(w[2])+" ("+\                              wperc+"%)"+(6-len(wperc))*" "+w[1]+"\n")         report.write("\n"+"="*60+"\nstarted: "+startt+"\t"+\                      "updated: "+currtime()+"\n"+"="*60)  t = 0; applist = []; winlist = [] while True:     time.sleep(period)     frpid = get(["xdotool", "getactivewindow", "getwindowpid"])     frname = get(["xdotool", "getactivewindow", "getwindowname"])     app = get(["ps", "-p", frpid, "-o", "comm="]) if frpid != None else "Unknown"     # fix a few names     if "gnome-terminal" in app:         app = "gnome-terminal"     elif app == "soffice.bin":         app = "libreoffice"     # add app to list     if not app in applist:         applist.append(app)     checklist = [item[1] for item in winlist]     if not frname in checklist:         winlist.append([app, frname, 1*period])     else:         winlist[checklist.index(frname)][             2] = winlist[checklist.index(frname)][2]+1*period     if t == 60/period:         summarize()         t = 0     else:         t += 1


How can I capture image of desktop screen in java?

I want to take a snapshot of desktop screen in java. How can i do this.  This is similar to pressing print screen and paste data in ms-paint, and then save file in .png or .jpg format.


If $f:D\to D$ is holomorphic, and has two distinct fixed points, then $f$ is identity

A problem in Mr.Stein's Complex analysis,page 250, ex12（a）,how to prove :$f:D\rightarrow D$ is holomorphic,and has two distinct fixed points,then  f is identity.


What nvidia driver do i need for Gefroce 920M and how can i install it?

I have installed ubuntu on my windows machine and now i want to install driver for it but i confused which nvidia driver to install. I have Nvidia GeForce 920M 4GB graphics card. Please help.


When you press down the right stick to counter the attack, do you just press it, repeatedly press it, or press and hold? I've been knifed a few times from the front and each time I try to counter I fail. Also, if you believe you are about to be knifed and hold down the right stick until you are knifed, will that counter an attack, or do you have to press it down just at the right time?


There exists $i, j \in \mathbb{N}$ such that $n=3i+5j$ for $n\ge 8$

Prove that there exists $i, j \in \mathbb{N}$ such that $n=3i+5j$ for $n\ge 8$   I'm having a hard time with this exercise, I'm trying to prove it by induction:  Basis step:   $n=8 \implies 8=3\cdot1+5\cdot 1$ $n=9 \implies 9=3\cdot3+5\cdot0$ $n=10 \implies 10=3\cdot0+5\cdot2$   Induction step:  If it's true for $n=h$ then it must be true for $n=h+1$.  So now, I don't know how to begin proving that $k+1=3i+5j$.


What is the distribution of sample means of a Cauchy distribution?

Typically when one takes random sample averages of a distribution (with sample size greater than 30) one obtains a normal distribution centering around the mean value. However, I heard that the Cauchy distribution has no mean value. What distribution does one obtain then when obtaining sample means of the Cauchy distribution?  Basically for a Cauchy distribution $\mu_x$ is undefined so what is $\mu_{\bar{x}}$ and what is the distribution of $\bar{x}$?


Problem regarding the absorption spectrum of the sun

Some of the wavelengths of light that are emitted from the sun will be absorbed by atoms in the outer layer of the sun and also the atmosphere of the sun, and we see this as absorption lines in the spectrum. Now, this absorbed radiation will indeed be re-emitted again, so one might think that these emission lines should "cancel out" the absorption lines. The usual explanation for why this doesn't happen is that the re-emitted light is radiated in all directions, not just towards us, meaning that to us these wavelengths will be much fainter than the other wavelengths. But the problem I have is that this happens all around the sun (since the atmosphere is completely surrounding it), and intuitively it seems then that all of this re-emitted light should combine such that far away it would appear that the sun is radiating these wavelengths just the same as it is radiating all the other wavelengths. And if that is true, then we shouldn't see absorption lines in the spectrum. So what is it that I am missing?


What does it mean - status changed from "with editor" to "decision in process" directly in Elsevier within 10 days of submission?


Meaning of asterisk following a member function

I am fairly new to C++ and I am trying to decode the piece of code shown below. In particular for the BaseSetAssoc::BlkType* line, I am not sure what the asterisk means in this case. I would appreciate some insight.   BaseSetAssoc::BlkType* NMRU::accessBlock(Addr addr, bool is_secure, Cycles &lat, int master_id) {     // Accesses are based on parent class, no need to do anything special     BlkType *blk = BaseSetAssoc::accessBlock(addr, is_secure, lat, master_id);      if (blk != NULL) {         // move this block to head of the MRU list         sets[blk->set].moveToHead(blk);         DPRINTF(CacheRepl, "set %x: moving blk %x (%s) to MRU\n",                 blk->set, regenerateBlkAddr(blk->tag, blk->set),                 is_secure ? "s" : "ns");     }      return blk; }


I have 2 packages with same names but different versions. How to delete any one of them?

I think the question itself is self-explanatory. But I will just elaborate on it. I already had Sublime Text 3 installed on my Ubuntu, and then I installed the beta version of Sublime Text 4. I downloaded the .deb package for Sublime Text 4 and then ran the command sudo dpkg -i sublime-text_build-4101_amd64.deb. After installation, I realized that it might override my current one. I looked up and found there was exactly two software with the same name and icon. Now when I am uninstalling by using the command sudo apt-get remove sublime-text, there is only one of them. Then I ran this command to get the details of the package apt-cache show sublime-text and this is the output: Package: sublime-text Status: install ok installed Priority: optional Section: editors Installed-Size: 47906 Maintainer: Sublime HQ Pty Ltd <support@sublimetext.com> Architecture: amd64 Version: 4101 Depends: libgtk-3-0 Description: Sublime Text is a sophisticated text editor for code, markup and prose Description-md5: ### Build-Depends: libgtk-3-0  Package: sublime-text Priority: optional Section: editors Installed-Size: 34033 Maintainer: Sublime HQ Pty Ltd <support@sublimetext.com> Architecture: amd64 Version: 3211 Depends: libgtk-3-0 Filename: files/sublime-text_build-3211_amd64.deb Size: 9835156 MD5sum: ### SHA1: ### SHA256: ### SHA512: ### Description: Sublime Text is a sophisticated text editor for code, markup and prose Description-md5: ###  So it shows there are two versions. How do I uninstall any one of them? From  I tried apt-cache policy sublime-text and this is the output: sublime-text:   Installed: 4101   Candidate: 4101   Version table:  *** 4101 100         100 /var/lib/dpkg/status      3211 500         500 https://download.sublimetext.com apt/stable/ Packages   Output for snap list | grep -i sublime: sublime-text       3211                        97     latest/stable    snapcrafters  classic  [Solved] One of the Sublime Text was installed using apt and the other with snap. So I uninstalled the snap one with the command sudo snap remove sublime-text


I am currently attending a IT-Security course at the Tel Aviv University and I stuck with the an assignment task.  Please DO NOT post the solution if you know it. But I would be very grateful for any hint that leads me to the correct result.  Task:  "Eve has managed to intercept the following messages, encrypted by Alice using a XOR cipher:  c1 = 0 0 1 0 0 1 1 1 0 1 0  c2 = 0 1 0 0 1 1 1 0 1 1 0   c3 = 1 1 0 1 0 1 1 0 1 0 1   Eve suspects Alice has been using the same key to encrypt all three messages; moreover, she suspects that the third message (m3) also happens to be m1 XOR m2.  Can you find the key k and the deciphered messages m1, m2, m3?"  Thank you very much in advance for any helpful hint!


hyperref: Wrong DVI mode driver option `dvips',(hyperref) because pdfTeX or LuaTeX is running in PDF mode. \ProcessKeyvalOptions{Hyp}   How can i fix this error?   I m trying to compile a template of MMA journal. It is under this link


It's so deceptively simple and none of the usual techniques are working. Any and all insights are welcome.


Whenever I try to compile my .tex file, I get the following error:      ! LaTeX Error: File ngerman.sty not found.   Type X to quit or  to proceed,   or enter new name. (Default extension: sty)   Enter file name:   ! Emergency stop.      l.3 \begin   Here's a MWE:  \documentclass[a4paper,12pt]{article} \usepackage{ngerman} \begin{document} xyz \end{document}   This happens even though the ngerman.sty package can be found in the following directories:   /usr/share/texlive/texmf/tex/latex /usr/share/texmf/tex/latex   I also tried running the texhash command.


Boarding a train in India at another station

I have booked a ticket on a train from Mumbai to Chennai and boarding at Pune. Since my schedules have changed, I will be in Mumbai on that day. Can I board the same train in Mumbai in my own ticket and claim the seat/berth?


Storage on the 3DS' SD card is calculated in the 3DS eShop using strange units called 'blocks'. While these may have been an attempt to simplify things for the average user, it also makes it much harder to do things like estimate the download time for a piece of software or how many demos I could fit onto an SD card. So for these purposes I wish to find out, how big exactly is a 'block', in terms of actual bytes?


Improve the editing flow with predefined options for "Edit Summary"

I realized that, 90% of the time, whenever I edit another person's post, my editing summary looks like this:  Improved formatting, spelling mistakes, grammar mistakes, indentation, removed the bloody xcode tag.  I'm pretty sure that I've written the same thing a million times, I was thinking that maybe we could introduce a check-boxed editing questionnaire at the end, instead of the editing summary. Mockup  (Link to the ) The mockup swaps the Summary text input with a series of checkboxes, each checkbox representing a category of change, and having their own custom tooltip detailing what/which changes fall under the category. The "Save Edits" box would need at least one check box to be marked. The "Other" text box auto-marks the checkbox to its left, so the older editing flow is supported. Advantages  Convenience Being able to track individual changes easier, for instance, a user could be black-listed for spelling, but at least he gets the format right. Easier for new users to get accustomed to how the editing works, and what they are expected to do, like "Can I change the grammar? Oh, there's a box about it, then I can". And users are genuinely asked if they have changed all that they can change with this system. You get accounted for what you've changed.  Suggested Categories  Grammar: The text has been moved around, punctuation was changed, or other changes that don't modify words but the way they are delivered. Spelling: Individual words were modified. Text format: Stylistic changes were made to improve readability. Things like bold, italics, links or code blocks were added or removed. Or removed a link and pasted the contents it held. Code format: Indentation, spacing or comments were modified to ensure that the code is readable. Tags: Gets automatically marked if there are differences between the tags, the user cannot manually check or uncheck this box, this is as a feedback that the tags were changed, in case he forgot. Other: None of the above cut it? Have a text box that can be clicked (checkbox gets marked when doing so) and write away.  Possible Side-Features  Auto-check boxes depending of the nature of the change, if it's mostly whitespace, then add the code format tag, if there's minor changes in a lot of words, then might be spelling. New users could be asked to fill two or more checkboxes of changes, as part of their learning. "Translation". Mark a checkbox with a drop-down, and marking that the text has been translated from another language, so that users proficient in that language can verify the correctness of the translation in the review queue (or even a custom queue, like "translators queue"). This would be a big feature for SO. Badges for each category, .


Control Windows with remote keyboard+mouse and local display?

I have a dedicated display plugged into my Windows machine, but would like to control it with a remote keyboard [edit: specifically, the keyboard on my laptop].  Is there a way to control the Windows machine with a remote keyboard while using the local display?  (I've used Microsoft Remote Desktop for remote keyboard / remote display and it works well, but I haven't found a way to configure it for remote keyboard / local display.)


I recently installed Ubuntu 13.04 in dual boot with 12.04.1.  The problem I have is with the Bluetooth not working. I've tried searching for my phone, but no luck. I've installed Blueman and still no go. Bluetooth is working just fine on 12.04.1, but on 13.04 it is simply dead.  Personal file sharing is enabled on both versions, visibility is enabled but no matter what I do I can't get it to work. This is really annoying. How can I fix this problem?


Let $(a_k)$ be a sequence of real numbers and let $b_k=\frac{a_1+a_2+\dots a_k}{k}$ for each $k\in \mathbb{N}$.  Prove that if $(a_k)$ converges to $\alpha\in \mathbb{R}$, then the sequence $(b_k)$ also converges to $\alpha$.  My answer: Let $\epsilon > 0$. Since ($a_k$) converges to $\alpha$, then there exists a $N_{\epsilon1}\in\mathbb{N}$ such that $|a_k - \alpha | < \frac{\epsilon}{2}$ for all $k \geq N_{\epsilon1}$. Notice that $\frac{a_1+...+a_n - n\alpha}{k}$ converges to $0$ as $k$ approaches infinity. Thus, there exists $N_{\epsilon2}\in\mathbb{N}$ such that $|\frac{a_1+...+a_n - n\alpha}{k}|<\frac{\epsilon}{2}$ for all $k>N_{\epsilon2}$. Now, let $N= $max$ (N_{\epsilon1},N_{\epsilon2})$. Then for any $k>N$ we get,  $$\begin{array}{rcll} |b_k-\alpha| &=& |b_k - \alpha*1|&\\ &=& |\frac{a_1+...+a_k}{k} - \frac{k\alpha}{k}|&\\ &=& |\frac{a_1+...+a_n}{k} + \frac{[a(n+1)+...+a_k]}{k} - \frac{(k-n)\alpha}{k} - \frac{n\alpha}{k}|& \text{(notice that $N_{\epsilon1}\leq N<k$)}\\ &=& |\frac{a_1+...+a_n - n\alpha}{k} + \frac{[a(n+1)+...+a_k - (k-n)\alpha]}{k}|&\\ &=& |\frac{a_1+...+a_n - n\alpha}{k} + \frac{[(a(n+1) -\alpha) + ... + (a_k - \alpha)]}{k}|&\\ &=& |\frac{a_1+...+a_n - n\alpha}{k} + \frac{(a(n+1) -\alpha)}{k} + ... + \frac{(a_k - \alpha)}{k}|&\\ &\leq& |\frac{a_1+...+a_n - n\alpha}{k}| + |\frac{(a(n+1) - \alpha)}{k}| + ... + |\frac{(a_k - \alpha)}{k}|& \text{(by the triangle inequality)}\\ &=&|\frac{a_1+...+a_n - n\alpha}{k}| + \frac{|(n+1) - \alpha|}{k} + ... + \frac{|a_k - \alpha|}{k}&\\ &<& \frac{\epsilon}{2} + [\frac{\epsilon}{2}/k + ... + \frac{\epsilon}{2}/k]& \\ &=& \frac{\epsilon}{2} + \frac{\epsilon}{2}*\frac{(k-n)}{k}&\\ &<& \frac{\epsilon}{2} + \frac{\epsilon}{2}& \text{(since $k-n<k$)}\\ &=& \epsilon& \end{array}$$ And since we found such an $N$ for arbitrary $\alpha$, then $(b_k)$ converges to $\alpha$ by definition.  I'm not sure i kept all my variables straightened out. How does this look and if you have a better idea let me know!


I want insert some records in database, but something go wrong. When compile code, the console return java.lang.NullPointerException at line:  ps = connection.prepareStatement(insert);     public class SignUpController implements Initializable {      @FXML     private TextField fullname;      @FXML     private PasswordField email;      @FXML     private TextField password;      @FXML     private CheckBox check;      @FXML     private Button signup;      @FXML     private Button login;      private PreparedStatement ps;      @FXML     public void logIN(ActionEvent event) throws IOException {          login.getScene().getWindow().hide();         Stage login = new Stage();         Parent root = FXMLLoader.load(getClass().getResource("/FXML_Files/Login.fxml"));         Scene scene = new Scene(root);         login.setScene(scene);         login.show();     }      @FXML     public void signUP(ActionEvent event) throws SQLException {         ConnectionClass conToDB = new ConnectionClass();         Connection connection;         connection = conToDB.getConnection();         String insert = "INSERT INTO student(fullName, password, email) VALUES(?,?,?)";         ps = connection.prepareStatement(insert);          ps.setString(1, fullname.getText());         ps.setString(2, password.getText());         ps.setString(3, email.getText());          int i = ps.executeUpdate();         System.out.println("Data inserted");     } }     public class ConnectionClass extends Configs {  Connection con;  public Connection getConnection() throws SQLException{       try {       Class.forName("com.mysql.cj.jdbc.Driver");      String str = "jdbc:mysql://" + Configs.dbhost + ":" + Configs.dbport + "/" + Configs.dbname;      con = DriverManager.getConnection(str, Configs.dbuser, Configs.dbpass);      con.close();   } catch (ClassNotFoundException | SQLException ex) {       ex.getStackTrace();   }     return con; }