video shader 300 frames to make 1000 frames

I have the below video shader which is composed of an image texture node to which I uploaded this video. It is 300 frames long and I would like to repeat it for 1000 frames.  How can I do it?


What’s the word that encompasses both creating something and editing it?

I want to use a term to covers both creating and editing some entity, say a blog post or a comment in a blog. Which word should I use?


I have created one progress-bar for my web page. I need to stop it, Here is my script for the progress-bar, how I can stop progress-bar before time complete   var elem = document.getElementById("progress-bar"); var width = 1; var id = {};  function progressBar1() {   function frame() {     if (width >= 100) {       clearInterval(id);     } else {       width++;       elem.style.width = width + "%";     }   }   id = setInterval(frame, 160); }       #progress-bar {         height: 10px;         width: 0;         background-color: #000;         position: relative;         transition: linear;       }

     <button id="start" onclick="progressBar1()">Start</button>     <button id="stop">Stop</button>     <button id="reset">Reset</button>


How can I create an bootable USB stick on Win7-32bit machine?

How can I create an bootable USB stick on Win7-32bit machine ?  I have downloaded the ubuntu-16.04-desktop-amd64.iso onto a USB stick.  As it is an ISO file, it will not boot on my laptop.  Thank You


Prove that you can make change for any amount greater than 7 cents using only 3 and 5 cent coins.

I am pretty sure this question has something to do with the Least Common Multiple.    I was thinking that the proof was that every number either is or isn't a multiple of $3, 5$, and $8\left(3 + 5\right)$. If it isn't a multiple of $3,5$, or $8$, great. You have nothing to prove. But if it is divisible by one of them, I couldn't find a general proof that showed that it wouldn't be divisible by another one. Say $15$, it is divisible by $3$ and $5$, but not $8$.


How to make unique check without creating heavy index in postgres

I need to implement unique check for INSERT and UPDATE operations, but I would prefer to avoid creating heavy unique index (which is approx 12Gb now) on my table. Now I have unique partial index and it work great, except one thing - it need a lot of SSD space. I don't need SELECT operations using this index, I need just check for the uniqueness of the data.   I read  and  and I understood that it's no real difference between unique constraint and unique index, except partial condition, which is able only for index.   Is there way to do this?  UPDATE:  My example is the schema of many-to-many relation table with history option. This option is implemented by 2 additional fields time_from and time_to. They are storing the time of entering and leaving relation. For data consistency I created 4 additional partial unique indexes (see below).   Now this table contains 1 162 010 000 rows. And overall space of table with each indexes:  vkontakte_wall_post_likes_users - 57 GB vkontakte_wall_post_like_users_post_id - 24 GB vkontakte_wall_post_like_users_time_to_2col_uniq - 24 GB vkontakte_wall_post_like_users_pkey - 24 GB vkontakte_wall_post_like_users_user_id - 24 GB vkontakte_wall_post_like_users_time_to_3col_uniq - 846 MB vkontakte_wall_post_like_users_time_from_2col_uniq - 8192 bytes vkontakte_wall_post_like_users_id_seq - 8192 bytes   The schema:  CREATE TABLE vkontakte_wall_post_likes_users (   id integer NOT NULL DEFAULT nextval('vkontakte_wall_post_like_users_id_seq'::regclass),   post_id integer NOT NULL,   user_id integer NOT NULL,   time_from timestamp with time zone,   time_to timestamp with time zone,   CONSTRAINT vkontakte_wall_post_like_users_pkey PRIMARY KEY (id),   CONSTRAINT post_id_refs_id_3979681bdf0b31a3 FOREIGN KEY (post_id)       REFERENCES vkontakte_wall_post (id) MATCH SIMPLE       ON UPDATE NO ACTION ON DELETE NO ACTION DEFERRABLE INITIALLY DEFERRED,   CONSTRAINT user_id_refs_id_73bdbaad8e08aee5 FOREIGN KEY (user_id)       REFERENCES vkontakte_users_user (remote_id) MATCH SIMPLE       ON UPDATE NO ACTION ON DELETE NO ACTION DEFERRABLE INITIALLY DEFERRED ) WITH (   OIDS=FALSE ); ALTER TABLE vkontakte_wall_post_likes_users   OWNER TO manufacture;  CREATE INDEX vkontakte_wall_post_like_users_post_id   ON vkontakte_wall_post_likes_users   USING btree   (post_id);  CREATE UNIQUE INDEX vkontakte_wall_post_like_users_time_from_2col_uniq   ON vkontakte_wall_post_likes_users   USING btree   (post_id, user_id)   WHERE time_from IS NULL;  CREATE UNIQUE INDEX vkontakte_wall_post_likes_users_time_from_3col_uniq   ON vkontakte_wall_post_likes_users    USING btree    (post_id, user_id, time_from)   WHERE time_from IS NOT NULL;  CREATE UNIQUE INDEX vkontakte_wall_post_like_users_time_to_2col_uniq   ON vkontakte_wall_post_likes_users   USING btree   (post_id, user_id)   WHERE time_to IS NULL;  CREATE UNIQUE INDEX vkontakte_wall_post_like_users_time_to_3col_uniq   ON vkontakte_wall_post_likes_users   USING btree   (post_id, user_id, time_to)   WHERE time_to IS NOT NULL;  CREATE INDEX vkontakte_wall_post_like_users_user_id   ON vkontakte_wall_post_likes_users   USING btree   (user_id);


How can metagaming retries on poor skill checks be prevented?

I'm sure every DM has had this happen: one PC is trying to find something cool on a dead monster's body. The player rolls poorly, and instead of accepting the paltry 2 copper pieces, the PC calls all the party members over to also try looting the corpse. Invariably, a different player rolls well, and everyone walks away satisfied that everything's been taken down to the poor dead monster's last holey sock.   Another example: One PC is trying to find some useful information in a library. There're no guards, no reason anyone would be bothered, and no time restraints to stress about. The player rolls poorly, so all the other PCs try, too.  I'd describe this as well-intentioned metagaming. The players are afraid of losing out on content, this despite multiple sessions of me making it clear that I don't structure my games to penalize gameplay that way.  These are situations that require a roll to determine the degree of success. (At least I think so; perhaps I'm wrong here?) Failure could set back the PCs a cool item or a bit of information that would have helped a little, but these minor failures aren't game-enders or anything. As a DM I can't see a reason to say "No" and disallow the practice, but it feels vaguely like cheating to let the players roll multiple times to get better results.  How do I prevent players ganging up on skill checks after they've seen someone roll poorly?


I'm trying to create multiple objects from user input from a Jframe form. I've seen many posts on here on how to do this with the console, which all the answers end up being put in a loop; however none asking how to do this from a Jframe form.        private void CreateAccount() {     String selected = UserSelectList.getSelectedValue();     String setName = nameTboxSet.getText();     String setType = UserTypeBoxSet.toString();                  if ("user1" == selected) {user1.setName(setName); user1.setUserType(setType);}     else if ("user2" == selected) {user2.setName(setName); user2.setUserType(setType);}     else if ("user3" == selected) {user3.setName(setName); user3.setUserType(setType);}     else if ("user4" == selected) {user4.setName(setName); user4.setUserType(setType);}     else if ("user5" == selected) {user5.setName(setName); user5.setUserType(setType);}     else if ("user6" == selected) {user6.setName(setName); user6.setUserType(setType);}     else if ("user7" == selected) {user7.setName(setName); user7.setUserType(setType);}     else if ("user8" == selected) {user8.setName(setName); user8.setUserType(setType);}     else if ("user9" == selected) {user9.setName(setName); user9.setUserType(setType);}     else if ("user10" == selected) {user10.setName(setName); user10.setUserType(setType);} }   Above is what I have currently come up with, however honestly i dont think a list is necessary, i've tried many things to try and figure out how to get this work.


I'm considering to upgrade my PC to Ubuntu v17.10, but I'm afraid because there's a BIOS issue has been confirmed for several different lines of Lenovo laptops also the reports of it affecting a few Acer, Toshiba and Dell laptops.  Should I upgrade or not? Also I can't download the Latest Ubuntu 17.10 ISO, the official website download link is currently discouraged.


Show that $|f(0)| \le \sqrt{12}$ for the following complex analytic function

If $f$ is an analytic function on $D(0\ ;2)$ with $|f(z)| < 4 $ if $\text{Im}(z) \ge 0\ \text{and}\ |z| =1$, and $|f(z)| < 3$ if $\text{Im}(z) <0\ \text{and}\ |z| =1$. How do I show $|f(0)| \le \sqrt{12}\ ?$  Can I use $g(z) = f(z)\cdot f(-z)$ here? I thought of using maximum modulus theorem on $g(z)$ also, but it doesn't seem to work as I need a $a\in D(0\ ;2)$ such that the condition in the theorem is satisfied, I can't see what will be it's ($a'$s) value.  Do I need to calculate the derivative of $g(z)$ and do something with it? How do I proceed? Any ideas/hints?


I am selling a mower on Craigslist and I received this in a text:     FRM: Harry Luong      SUBJ: Re: Hey, is still for sale?      MSG: Great I saw the detail on the Ad and I'm okay with the price & condition and i want you to consider it sold. I will be securing the payment by sending you (Bank check) Via USPS next day delivery and i will handle the Shipping my self with my private Mover that will come down there for the pick up after the check cleared. I'II need your full name and Address or po box for the check to be issued out to you Thanks   Is this a scam?


Before insert trigger isn't working properly?

Account field and integration__c fields combination of record is have already in case object don't allows duplication if sftype__C checkbox is true otherwise allows if sftype__c is false allows for duplication.  This is my trigger but this is also allows duplicates please check it once  trigger AvoidDuplicateInsertions on Case(before insert,before update){           Set<string> accountname= new Set<string>();          Set<string> integrationto= new Set<string>();            for(Case cas: Trigger.new){             accountname.add(cas.Account.Name);            integrationto.add(cas.IntegrationTo__c);           }         List<Case> duplicatecaseList = [Select id,Case.Account.Name,IntegrationTo__c,SFType__c From Case where Case.Account.Name= :accountname AND IntegrationTo__c =:integrationto];         Set<string > duplicatecaseIds = new Set<string >();         for(Case dup: duplicatecaseList ){            duplicatecaseIds .add(dup.Account.Name);           duplicatecaseIds .add(dup.IntegrationTo__c);         }         for(Case s : Trigger.new){              if(s.Account.Name!=null && s.IntegrationTo__c!=null){                  if(duplicatecaseIds.contains(s.Account.Name) && duplicatecaseIds.contains(s.IntegrationTo__c)){                    if(s.SFType__c = true){                        s.addError('Record already exist with same Service');                   }                  }              }        } }   but this allows duplication please anyone check it once  Thanks In advance


What are the exact powers of the rings/One Ring?

I have not read the Lord of the Rings series, but I love the movies.  The only power that I have caught in them is the ability to turn invisible, which Bilibo shows in the FOTR.  Throughout the entire movie, I feel like they overrated the rings without actually exploring all of the possible powers derived from it.  Was there anything in the books?  Were powers of the rest of the rings different from the powers of the One Ring?


Is there a way to find out what process created certain file?

I have a virus file that gets re-created by some other infected file/process. Antivirus catches it, but the file still gets created once in a while.  Is there a way to figure out/catch which process created the file? I'm open to any solutions. If it requires a 3-rd party app, so be it. This is all happening on a Win7 32-bit MacBook Pro. Thanks!


How to display a portion of an image with CSS?

I have an image to be used as a banner that is 1400x350 and I would like do display maybe 80% of it's height. I'm not looking to scale the image, I need to display only a portion of it. Imagine a picture of car and I want to display from the just above the tires up.   Everything I've found shows how to scale or resize the image but that still shows 100% of the original image. I'm only looking to display a portion of the original image. I can manually crop the image in an image editor but I'm hoping to be able to do this with CSS.  I'm using this as background in an div at the moment.   div.banner {     content: url('../Images/banner.jpg');     background-color: #A5B7C7; }


I am trying to change the permission of a folder in a mounted hard drive.  I didn't use command line to mount (nautilus file manager mounted for me when I clicked on it).  After the drive was mounted, the permission looks like this:  $ ll /run/media/myuser/ drwx------ 1 myuser myuser  4096 Feb 16 09:27 XYZ   Then, I do  $ sudo ln -s /run/media/myuser/XYZ/myData /data $ chown -R externaluser:externaluser /data $ ll / | grep data lrwxrwxrwx    1 externaluser externaluser    44 Mar  2 11:17 data -> /run/media/myuser/XYZ/myData   However, if I run  $ ll /run/media/myuser/XYZ | grep myData drwx------ 1 myuser myuser     48 Mar  2 12:16 myData   The owner and group are still myuser even after I ran:  chown -R externaluser:externaluser /run/media/myuser/XYZ/myData   How can this be fixed?  Basically, I would like to give access of this folder only to an external user to rsync data to that folder but I don't want to give access to other folders in the same drive.  Thanks.  This is CentOS 7 if it matters.


Can't install VLC on Ubuntu, and can't Play films

In the past days, I used VLC to watch video tutorials. But, occasionally, the video couldn't play correctly and had screen stuck problems. I thought that I perhaps needed to update my system and the software. So I used the command: sudo apt upgrade  trying to fix problem, but, unfortunately my computer also held those problems. The system and VLC are both on the last version. Last night, I used Ubuntu Software to remove VLC. And from some forums I found that I should run: $ sudo apt-get autoremove vlc $ sudo apt-get auto clean"  etc (because I wanted to uninstall it completely to reinstall later). But after uninstalling VLC, I am incapable of enabling it again. This the reason why I can't install VLC again. yann@yann-Matrimax-PC:~$ sudo apt-get install vlc [sudo] password for yann:  Reading package lists... Done Building dependency tree        Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies: vlc : Depends: libgles1-mesa (>= 7.8.1) but it is not going to be installed or libgles1 E: Unable to correct problems, you have held broken packages. yann@yann-Matrimax-PC:~$ ^C   My system is Ubuntu 16.04 LTS, and I run VLC 2.2.5. Could you can help me to solve those troubles? Thanks :)


Prove the set-theoretic identity for sets A and B: {2,2,2}={2}

I am working on proofs right now. I just came across the question stated in the title. The main question I have is, does the number of elements in a set matter for equality if all elements in both sets are equal? Since 2 is a member of both sets A and B, and the only element(s) in both A and B is 2, it seems this definition of set equality would hold. Am I wrong?


Can a creature with summoning sickness be targeted?

Can I target a creature as soon as it is played, even with summoning sickness?  Example: If my card, , reads "Gain control of target creature," or 's "tap target creature opponent controls," can I gain control or tap a creature my opponent just played? I have a friend arguing I can't, because they're in summoning sickness, but I thought that just stopped their tap-ability and attacking for the first turn.


We have NSSet for a collection of unordered unique elements and NSOrderedSet for a collection of ordered unique elements.  Still, we have NSArray for a collection of ordered non-unique elements, but no data structure for an unordered list of non-unique elements (as far as I know).  Does this container exist in Foundation? Is there a third-party container that manages such? If not either, is there a classy way of getting a randomized sequence of elements from an NSArray?


Why does this list changes after using append() on another list

I don't know if I miss something here but don't understand why does the below list changes after using append() function. First I send a list(which contains lists) to 2 different functions.   First function just returns a random list in all non-empty lists. Second function returns a random list that if the current list(which is the one returned from the first function)'s last element lower than the other list in state or if the list is empty.  import random def fooOne(state):     lst = [x for x in state if len(x) > 0]     return random.choice(lst)  def fooTwo(state,current):     lst2 = [x for x in state if len(x) == 0 or x[-1] > current[-1]]     return random.choice(lst2)  state = [[3, 2, 1],          [],          []]  cur = fooOne(state) temp = fooTwo(state,cur)  print("State before append(): {}".format(state)) temp.append(cur.pop()) print("State after append(): {}".format(state))   Both functions returns different lists. I assign these lists to two different variables called cur and temp. So both cur and temp are also lists.  After temp.append(cur.pop()) line, original state list changes. It'll changes like I used that line on the original list. But I'm making this operation on two different lists.  Output:  State before append(): [[3, 2, 1], [], []] State after append(): [[3, 2], [], [1]]   Why does the original list changes while I'm using append() on another list? These lists are just some parts of the original list, why modifying them(while assigning them to new variables) affects the original list?


Why do Markov matrices converge to the same vector after infinite steps irrespective of the starting vector?

Can anyone explain me the reason why does any probability vector U0 converge to the same vector Uinfinity when a Markov matrix is acted on it? I don't know how to put this but let me try. If x1 and x2 are two Eigenvectors and the Eigenvalues are 1 and 0.75.      In the equation U0 = C1  x1 + C2  x2 Why do I get the same value of C1 irrespective of any probability vector U0 to converge to the same steady state?. Hope this makes sense. Thanks!


Is it OK to mix American and British English?

I normally write using the American English forms, but for some particular words, I tend to naturally write it in the British manner (like with the word favourite rather than favorite).  Is it wrong to mix both styles? If not *wrong*, does it looks weird?


How to hide a particular account in the login screen?

I am using Ubuntu 12.04 32-bit. I have two(2) accounts.   admin01 is for administrator, Account type is Administrator. and the other, user01 is for computer user, Account type is Standard.   I want to see only user01 in the login screen. And I want to access admin01 by typing the username and password.  How can I achieve this?


Eight dollars is the price of a movie these days.  Why dont use ''are''?


I cheated on the Disciplined badge, how bad is it?

I was looking for badges I didn't have yet, and I saw the Disciplined badge. So I deleted an answer of mine with 3+ votes, and waited. Five minutes later, sweet, a new badge! Then I went to my answer again, and undeleted it. No problem at all, and I keep the badge!   What will happen? Will my badge stay here or not? More generally, what happens when the conditions to get a badge are valid at one time, and then not valid?  Other badge in this case:   Unsung hero - "Zero score accepted answers: more than 10 and 25% of total"   What happens if answers get a vote after getting the badge? Are the badge frequently recalculated?


What's the difference between the server version and the desktop version?

What's the difference between the server version of Ubuntu and the desktop version?


What does it really mean when we say that the probability of something is zero?

Conventionally, people will say a probability of zero is equivalent as saying that the event is impossible.  But when we look at the probability from a mathematics perspective, probability is defined as the frequency of occurrence over the how many times the experiment is performed, limit as the number of trials goes to infinity.   Doesn't this mean a probability of zero is an occurrence that is arbitrarily small but possible? What are some of the ways to make this line of argument more rigorous?


Proof that we are allowed to make substitutions to evaluate limits?

Basically, if we want $\lim_{x\to x_0}f(x)$, why are we 'allowed' to instead find the limit   $\lim_{u\to u_0}f(u)$ where $x = k(u)$, where $k(u)$ is a function in $u$ such that $\lim_{u\to u_0}k(u)= x_0$.   Sorry if this isn't precise enough.. essentially, I want to know why, for example, when we find the limit   $\lim_{x\to 0}f(x)$  we're allowed to instead find the limit  $\lim_{2t\to 0}f(t)$ with $x = 2t$.  I think it's trivial because it's basically 'the same limit', but I'd like to verify that intuition.


Find limit of $\lim_{x\to \infty} \sqrt{x^2+x}-\sqrt{x^2-x}$

I need to find the limit of the following sequence:  $$\lim_{x\to \infty} \sqrt{x^2+x}-\sqrt{x^2-x}$$  I can transform the above to:   $$\frac{2x}{\sqrt{x^2+x}+\sqrt{x^2-x}}$$  But I can't seem to prove that the term is diminishing and that its superlum is $1$ (which would prove the limit). Am I going about this completely the wrong way?


How to  find the distribution of distribution function of bionomial distribution Bin(n,p) and Poisson distribution P(a) ?


Where can I read all of the loading screen tips in-game?

For Fallout Shelter I've seen a lot of helpful tips flash by on the loading screens, but haven't found a log or list of them in the options menu in the game so I can read through all the tips.  I've checked the Survival guide that has 22 pages in-game, but it doesn't have those nifty tips I keep seeing, like "Rooms furthest away from a power generator will get shut off first (when you run out of energy)"  Is there anyway to read all of the loading screen tips anywhere in-game?


How to install gksu in Ubuntu 18.04.2? (sudo apt-get command isn't working)

I tried to install gksu by running "sudo apt-get install gksu" command on terminal. But it returns -      Package gksu is not available, but is referred to by another package.   This may mean that the package is missing, has been obsoleted, or   is only available from another source      E: Package 'gksu' has no installation candidate


Moving a 2x2 the length of the solar system

If we were able to push a 2x2 piece of wood that is the length of our solar system, how would it behave? My colleague says since its all part of the same molecular structure, the whole piece of wood would move. But my understanding is different. The informational input from one end, to the other, would be faster than the speed of light and as we all know, we cannot go faster than the speed of light. So from my perspective and understanding is that the initial push would need to travel through the entirety of the 2x2 before it started moving. The variables here can be a huge influence but lets say that we are in the vacuum of space where the 2x2 would not be effected by gravity. If anyone could give me a solid answer, that would be greatly appreciated! I am not a physics person so I apologize in advance if the information given here is not enough!


I can not find the package to remove Google Play Music from my applications. It no longer functions. I am using 20.10 I have gone through the Applications window in the settings menu and clicked on the Open in Software button. It can not find the app in the store. I have searched for the app in the terminal. I have run a dpkg --list list and searche dall those results and found nothing. I am just learning about the terminal but I am not sure what to ask it to do, but I want to remove this app. Any suggestions?


The following question occurred to me while doing exercises in Hartshorne. If $A \to B$ is a homomorphism of (commutative, unital) rings and $f : \text{Spec } B \to \text{Spec } A$ is the corresponding morphism on spectra, does $f$ bijective imply that $f$ is a homeomorphism? If not, can anyone provide a counterexample? The reason this seems reasonable to me is because I think that the inverse set map should preserve inclusions of prime ideals, which is the meaning of continuity in the Zariski topology, but I can't make this rigorous.


Take off (my hat): Place of the adverb particle in the sentence

Can I say both      I take my shoe off.   and      I take off my shoe?   What are the cases where the adverb particle (Is there another name for "adverb/adverbial particles"?)     Schema 1: Subject + verb + nominal group + adverb particle.      Schema 2: Subject + verb + adverb particle + nominal group.   I want to know if one of them can be said in an informal way. And what are the linguistics rules for the place of the adverb particle, and the exceptions to the rule.  I ask this because I read both in articles and forums.


How to reference long equations by numbered alphabets

I have 2 long equations when I want to label them as 2a and 2b by using subequation a problem occur that each line of equation n pdf gets number inspite of each equation so thats why i got more numbering than no. of equations    \begin{subequations} \label{eq2}  \begin{align}  \ddot{x} & = \big( \cos{\phi} \sin{\theta} \cos{\psi} + \sin{\phi} \sin{\psi} \big) \frac{U_1}{m}\\ & \quad - \frac{1}{m} \sum_{i=1}^{4} H_{xi} - K_{fdx} \frac{\dot{x}}{m_s}\\   \ddot{y} & = \big( \cos{\phi} \sin{\theta} \sin{\psi} - \sin{\phi} \sin{\psi} \big) \frac{U_1}{m}\\ & \quad- \frac{1}{m} \sum_{i=1}^{4} H_{yi} - K_{fdy} \frac{\dot{y}}{m_s}\\ \end{align} \end{subequations}


A set S is infinite, if and only if S can be put into a one-to-one correspondence with a proper subset of itself

I've had a look on the website but nothing seems to answer the particular question I have.   (i) Let F be a finite set. Show that any injective (that is, one-to-one) map ψ : F → F is surjective (that is, onto).  (ii) (Paradox of Galileo) Give an example of an injective map ϕ : N → N that is not surjective.  (iii) Now let T be a countably infinite set. Deduce that T can be put in one-to-one correspondence with some proper subset of itself; so that there exists an injective map φ : T → T that is not surjective.  (iv) Let S be an infinite set. Show that there exists a countably infinite subset T of S.  (v) Deduce from (i), (iii) and (iv) the Dedekind-Pierce Theorem: A set S is infinite, if and only if S can be put into one-to-one correspondence with some proper subset of itself.  All the other parts of the question are fine, but i don't understand how to do part V. How do I use the other parts of the question to derive this fact.   Help is much appreciated always.   Thanks


Can someone explain bash substring matching to me?

I'm pretty familiar with regular expressions in various contexts, but bash substring matching just baffles me. Can someone please explain them to me, ideally with some examples? The examples I've found on google are very simple, and suggest pretty generic (if limited) regex matching, but when I try to use them in practical situations it never works.  From my understanding substring matching should work as follows:   result=${string##pattern}   will find the longest substring of 'string', starting from its beginning, that matches 'pattern'. It removes that match from 'string' and puts the remainder in 'result'. But consider:  temp=${myvar##[^0-9]*} && echo $temp   As far as I can tell, my pattern should match 'zero or more characters that are not digits' - the longest such match from the start of the string. Then take as example:  myvar=my_file_123_45.txt   I should expect the characters 'my_file_' to be matched: that is the longest combination of characters from the start of 'string' that aren't digits. Instead, the returned result is empty! Everything gets matched! What happened to excluding digits?!  In both gedit (using the search-and-replace regex engine), and in Labview's regex tools, the match pattern   pattern=^[^0-9]*   which i believe to be equivalent, results in my expected match - 'my_file_'. What's different about Bash?


What type of lens will auto-focus on Nikon bodies without a focus motor?

I know my D40 doesn't have a motor in it to auto-focus lenses.  What type of lens has the motor in it? How can I know which lenses will and will not work?


Is there any way to get the number of pending chat request on omni channel?

I have a requirement to get the number of pending chat request in the omni channel.  I have set the presence configuration capacity to 5 so that an agent can have only 5 chat requests. if a case is solved agent will get one of the pending chat request. But right now i can't see the number of pending request.     Lets say i have 10 pending request in the queue, but i don't have any numbers to see how many are pending in the queue.   Is there any way that can show the pending chat requests in the queue?


I think of $\frac{d}{dx}$ as a function or operation which we apply because it instructs us to take $\lim_{h\rightarrow0}\frac{(f(a+h)-f(a))}{h} = f'(a)$; however, in differential equations or integration we just simply play around with $dx$ by moving it to the numerator. I'm confused. What exactly does it mean and what do the individual terms $ dx$ or $dy$ stand for without any denominator?


In $\mathbb{R}^2$, let $V^2=\overline{B(0,1)}$. Prove $V^2$ is homeomorphic to $I\times I$ where $I=[0,1]$  My work:   I know two spaces $A,B$ are homeomorphic if exists a function $f:A\rightarrow B$ homeomorphic.  Definition: Let $f:A\rightarrow B$ a function. We say f is homeomorphic is $f$ is bijective, continuous and $f^{-1}$ is continuous.  Then,  We need find a function $f$ such that $f:\overline{B(0,1)}\rightarrow[0,1]\times[0,1]$ bijective, continuous such that $f^{-1}$ is continuous.  I'm stuck here, can someone help me?


Why is it not recommended to shut down a computer "brutally" (power switch)?

It is now in the general knowledge that one should not shut down a computer using its power switch. But why is that exactly? Is it a myth that stuck from past architectures?  Is it solely to prevent corruption of data that's being written at the time of shutting down (bonus: how can it be corrupted exactly?)? I'm pretty sure hard drives' reading tips don't crash on the disk anymore when powered down (or I would be out of HDDs by now).  More precisely, does power cycling a computer with its power switch makes it wear out quicker or even become damaged in any way, and why (hardware only)?


How to create a SQL Server function to "join" multiple rows from a subquery into a single delimited field?

To illustrate, assume that I have two tables as follows:  VehicleID Name 1         Chuck 2         Larry  LocationID VehicleID City 1          1         New York 2          1         Seattle 3          1         Vancouver 4          2         Los Angeles 5          2         Houston   I want to write a query to return the following results:  VehicleID Name    Locations 1         Chuck   New York, Seattle, Vancouver 2         Larry   Los Angeles, Houston   I know that this can be done using server side cursors, ie:  DECLARE @VehicleID int DECLARE @VehicleName varchar(100) DECLARE @LocationCity varchar(100) DECLARE @Locations varchar(4000) DECLARE @Results TABLE (   VehicleID int   Name varchar(100)   Locations varchar(4000) )  DECLARE VehiclesCursor CURSOR FOR SELECT   [VehicleID] , [Name] FROM [Vehicles]  OPEN VehiclesCursor  FETCH NEXT FROM VehiclesCursor INTO   @VehicleID , @VehicleName WHILE @@FETCH_STATUS = 0 BEGIN    SET @Locations = ''    DECLARE LocationsCursor CURSOR FOR   SELECT     [City]   FROM [Locations]   WHERE [VehicleID] = @VehicleID    OPEN LocationsCursor    FETCH NEXT FROM LocationsCursor INTO     @LocationCity   WHILE @@FETCH_STATUS = 0   BEGIN     SET @Locations = @Locations + @LocationCity      FETCH NEXT FROM LocationsCursor INTO       @LocationCity   END   CLOSE LocationsCursor   DEALLOCATE LocationsCursor    INSERT INTO @Results (VehicleID, Name, Locations) SELECT @VehicleID, @Name, @Locations  END      CLOSE VehiclesCursor DEALLOCATE VehiclesCursor  SELECT * FROM @Results   However, as you can see, this requires a great deal of code.  What I would like is a generic function that would allow me to do something like this:  SELECT VehicleID      , Name      , JOIN(SELECT City FROM Locations WHERE VehicleID = Vehicles.VehicleID, ', ') AS Locations FROM Vehicles   Is this possible?  Or something similar?


How to show GRUB after install Ubuntu over Windows 8?

I installed Windows 8 and after that I installed Ubuntu. This are my partition now:   70Gb --> Windows 8 50Gb --> Ubuntu 12.10 100Mb --> UEFI 300Mb --> Recovery   I installed the GRUB on /dev/sda. Then, after GRUB not showing up and booting directly into Windows 8, I turned the laptop off and booted again into Ubuntu LiveCD and ran the Boot-repair utility, it give me  but it didn't solved the problem.  My Laptop still boots directly into Windows 8, without GRUB or Ubuntu even showing up.


It was a long time ago, so I remember only some particular.  The alien was something like an insect, and they were greater than human. The human was taking a bomb to the alien's home planet (I think), but somehow the alien get into the human ship and I remember the ending scene:      one man has a bionic eye, and looks for targeting the enemy world on a rod-like connection, but one of the man was a particularly small alien, and kills him pushing its head in the rod. The other man manage to pull the trigger, but in the end the alien wins, as the earth was on target


Installed ubuntu for windows yesterday.Where are its files located in windows?

Yesterday I installed Ubuntu for windows from windows store.Let me please know where are its files located in windows directory.


Option Numbers=Lining not working any more with font Constantia after MikTek Update

I need to use the font Constantia and thus compile my document with LuaLaTeX using \usepackage{fontspec}(Editor is TeXStudio). As I do not like the OldStyle numbers, I use \setmainfont[Numbers=Lining]{Constantia}. So far, this worked perfectly, but since I updated MikTeX yesterday I get the error:   OpenType feature 'Numbers=Uppercase' (lnum) not(fontspec) available for font 'Constantia' with script(fontspec) 'CustomDefault' and language 'Default'.   Here is a MWE:  \documentclass{scrreprt} \usepackage{fontspec} \setmainfont[Numbers=Lining]{Constantia}  \begin{document}  1234567890  \end{document}   It produces the following output:    The font itself can't be the problem, as I tested it in Word where I can change the behavior:    Thank you in advance for your help.


How do I calculate $\lim_{x\to 1}\frac{\sqrt[n]{x}-1}{\sqrt[m]{x}-1}$.  Please help me.  Thanks!


Are individual object describe calls expensive enough to justify static cache?

Supposing we have a method that executes logic dynamically depending on the SObject type like the following one:  public class TestDescriber {      public static void callMeManyTimes(SObject record) {          String sObjectName = record.getSObjectType().getDescribe().getName();          ...     } }   Assuming this method would be called multiples times per transaction and many of those calls will involve the same SObject type, will the getDescribe() calls be expensive enough to justify having a static cache in the class to avoid calling the describer multiple times?  public class TestDescriber {      private static Map<SObjectType, String> namesPerSObjectType = new Map<SObjectType, String>();      public static void callMeManyTimes(SObject record) {          String sObjectName = getSObjectName(record.getSObjectType());          ...     }       private static void getSObjectName(SObjectType sType) {          if (!namesPerSObjectType.containsKey(sType)) {             namesPerSObjectType.put(sType, sType.getDescribe().getName());         }          return namesPerSObjectType.get(sType);     } }


Prove that$ \frac{(n^2)!}{(n!)^n} \in$ Z

Using permutation or otherwise, prove that$ \frac{(n^2)!}{(n!)^n}$an integer, where n is a positive integer.    Putting n=1,2,3.... I can prove that above quantity is an integer but this is not correct as it needs to be proved in a methodological way.


Use of " and ' in multi-paragraph quotes

I was taught that I should use " at the start of a quote and if it carries on in subsequent paragraphs, I should put ' at the end of the first paragraph, then start the second paragraph with ' and close again with ' and so on, until the final paragraph which I close with ' ".  I cannot see any reference to this style.


How to put references in same dll as compiled project

I hope this isn't to broad, but I am wondering if the following can be done somehow?  Lets say I have a Nuget-package for Project A and a solution with some projects (Project B, Project C). Now, Project C references Project B. It also has a Nuget-Dependency for Project A (which was developed within a different solution).  When I compile Project C, I get the dll of Project C along with the dll for Project A. Is there a way, the dependencies can be compiled into the dll for Project C, so that i only have one dll which conatains all its dependencies as well as the actual project?  The Reason is that I want to load ProjectC.dll at runtime in a different solution. But when i do so, the dependencies are missing.  How would one usually handle that?


How and when did American spelling supersede British spelling in the US?

Considering that Webster , is there a recognised tipping point (year, decade, etc.) that marked the move from traditional British spelling to Webster's American? Was this shift a gradual but chaotic process or was it a deliberate and possibly collective decision taken by the educational institutions, the media, or the government of the time? In other words, how did the shift come about?


How to get "v.3.1.2" in string by regex php

I need get "v3.4.2" in string by regex php. String: "ABCDEF v3.4.2 GHI KLMN";


If $f$ is integrable, the sequence $f(x+n) \to 0$ for $n \in \mathbb{R}$ as $n \to \infty$

I am trying to prove the following statement:  If $f$ is integrable on $\mathbb{R}$ with respect to the Lebesgue measure $m$, the sequence $f(x+n) \to 0$ for $n \in \mathbb{N}$ as $n \to \infty$ for almost every $x \in [0,1]$  I know somewhere I have to use the fact that the Lebesgue integral is translation invariant, which I have proven. Now, my problem is to find something I can work with, but I am very lost.


for every convergent sequence $x_n$, $f(x_n)$ also converges. Does this imply continuity of f?

Let $f\colon(X,d_X)\rightarrow(Y,d_Y)$ be a function between metric spaces such that for every convergent sequence $(x_n)_{n\in\mathbb{N}}$ in $X$ the sequence $(f(x_n))_{n\in\mathbb{N}}$ is convergent in $Y$. Does this impy continuity of $f$?   At first I thought that this does not imply the continuity of $f$, so I tried to think of a counterexample. I thought about it for a long time, but I couldn't find one. I found a few similar problems, but none helped me. Can someone help me please?


How to identify a drive's distro/OS based on its root folder

I have several hard drives loaded with Linux/UNIX-style operating systems. Is there some way to tell the distribution or operating system installed on the drive without booting into each individually? I thought I might be able to open each drive in a GUI as root and check their /etc/issue but that file doesn't appear to be on all of the drives.


Modified question There was $sl(2,\mathbb R)$ used instead of $su(2)$ in the previous version. Thanks to MattE for pointing it out.  I have seen it claimed many times that $so(4,\mathbb R)=su(2)\times su(2)$. If $C$ is a Cartan subalgebra of $so(2n)$ then the Weyl group on $so(2n)$ is generated by permutations of $(x_1,...,x_n)\in  C$ and by negations of even number of $x_i$s. Hence, for $so(4)$, the orbit of $(x_1,x_2)\in C$ under the Weyl group action is $(x_1,x_2),  (-x_1,-x_2), (x_2,x_1), (-x_2,-x_1).$  The Weyl group of $su(2)\times su(2)$ is the product of Weyl groups of its two components. Hence, the orbit of $(x_1,x_2)$ in a Cartan subalgebra of $su(2)\times su(2)$ under its Weyl group action is $(x_1,x_2), (-x_1,x_2), (x_1,-x_2), (-x_1,-x_2).$  That looks like a contradiction! Where do I go wrong? You can of course reformulate this question for $SO(4,\mathbb R)=SU(2)\times SU(2)$ or $SO(4,\mathbb C)=SL(2,\mathbb C)\times SL(2,\mathbb C).$    Original question    I have seen it claimed many times that $SO(4,\mathbb R)=SL(2,\mathbb R)\times SL(2,\mathbb R),$ However, the orbit of $(x_1,x_2)$ in a max torus of $SO(4)$ under the Weyl group action is $(x_1,x_2), (x_1^{-1},x_2^{-1}), (x_2,x_1), (x_2^{-1},x_1^{-1}),$ while the orbit of $(x_1,x_2)$ in a max torus of $SL(2)\times SL(2)$ under the Weyl group action is $(x_1,x_2), (x_1^{-1},x_2), (x_1,x_2^{-1}), (x_1^{-1},x_2^{-1}).$  That looks like a contradiction! Where do I go wrong?


Here's the create statement pulled out of the database itself for a trigger:  CREATE DEFINER=`walkdot_logan`@`67.53.251.66` TRIGGER `wd_artists_bi_trg` BEFORE INSERT ON `wd_artists` FOR EACH ROW BEGIN     IF NEW.modified_on is null THEN          INSERT INTO wd_modified_records         (modified_date, table_name, record_identifiers)         SELECT SYSDATE(), 'artists', CONCAT('code:', NEW.code, ';');          SET NEW.modified_on = SYSDATE();      END IF; END;   Both HeidiSQL and MySQL Workbench are complaining about syntax errors; saying that the semi-colon is missing from the SELECT statement line. MySQL Workbench is even underscoring the closing parenthesis to tell me I'm missing the semi-colon.  EDIT: I should point out that I've tried several insert types, and even simple select statements and the semi-colon error persists. Also, I was able to make this trigger using the trigger creator form in HeidiSQL without incident.


How to get mean geographic direction of a polygon in QGIS?

I have a raster height model and would like to calculate the horizontal geographic direction (north, east, etc. - orientation) of each cell, then calculate then the mean value of all these cells in one region (polygon). This is to get information about to what direction a vineyard is exposed to. How do I do this?


Coloring polygons according to total sum of attributes within polygon?

I have point data about wind turbines across a country with information about the power output. Second shapefile I have is the country state borders (polygon). I now want to color the state polygons according to the total power of the turbines in the polygon.   How can I do that with QGIS?


I need help proving this inequality.  Let $a_2,a_3,...,a_n$ be positive non zero real numbers such that their product is $1$  Prove that  $$(1+a_2)^{2}(1+a_3)^{3}... (1+a_n)^{n}>n^{n}$$  I tried Bernoulli that yields a LHS greater than $n! $  I also tried a trig $tan^{2}$ substitution without success...  Thanks for helping.


In which cases i++ and ++i can refer to the same value?

Why is i++ and ++i same in the following code?  #include <stdio.h>    int main()   {       int i=5;        while(1)       {           i++;                  /*replacing i++ by ++i also gives 6*/           printf("%d",i);           break;       }        return 0;  }     The output is 6. I learnt that the increment operator i++ has its value the current value of i and causes the stored value of i to be incremented.But i's value is displayed as 6 though the current value of i is 5. Replacing i++ by ++i also gives the same value 6. Why is i++ and ++i same in this case and why output is 6 though initial value is 5.


Missing software that are installed in system

I have Ubuntu 18.04. I am running with an issue. Some of the packages installed using the default Software store application like Postman, Spotify are somehow are not showing in app tray but are showing installed in Software Store. Also, I can run them from there.  Moreover, when I launch Spotify and Login it's showing some firewall error (may be helpful to find the bug).   I just noticed one thing, all the application installed from snap are not showing in app tray. The output of snap list is given below.    I installed zsh yesterday,


Reverting to previous kernel to avoid booting the new one that breaks my system

I am on 14.04 and just did an update on one of my web servers. I am using the GUI. I ran the updates and it broke my VM.   I am new to Ubuntu and Linux in general so please bear with me.   I was able to get the VM to load by selecting a previous kernel on the boot loader.   My question is, how do I revert back to that kernel so that this VM does not boot into it every time the machine is restarted?


failed to verify iso image: gpg can't check signature

I was trying to verify the iso image after dowloading the Discreete Linux.  I carefully followed the instructions from Discreete website:   That means that I dowloaded Discreete Linux 2016.01_Beta1 signature of the ISO image and Discreete Linux signing key (2016) as well as the .iso itself, and I left it all in the Dowloads folder. While executing the command I got the following mistake:  user@user-PC:~/Downloads$ gpg --keyid-format 0xlong --verify  Discreete_Linux_2016.1_beta1.hybrid.iso.asc  Discreete_Linux_2016.1_beta1.hybrid.iso gpg: Signature made Чт 08 дек 2016 09:27:53 GMT gpg:                using RSA key 0xBA146BB0759613AC gpg: Can't check signature: public key not found


What does the 1k resistor do in this schematic?

I'm very new to circuit design and have been doing lots of reading and research in order to understand everything going on in this schematic. I think I understand all of it except for the purpose of the 1k ohms resistor going from the control signal to the emitter.  Can someone explain what that does?    This circuit is part of a bigger project outlined here:


Animate camera alternating constrained paths

all, I am new to blender, so sorry if my question seems dumb. I just animated a camera to follow a bezier path. Now, I need to keep animating the camera, but I would like to either free the camera from the path or to follow a different path. So, this is my question: is it possible to animate camera alternating among different bezier paths? Thank you!


I'm having trouble understanding POSIX permissions, specifically setgid(2). I understand that setuid(2) changes the user ID of the calling process so that it takes on the privileges of the new user. This makes sense, because a user only has a single UID, so a process may only have a single UID as well.  What I don't understand is why can a process only have a single GID? After all, a user can be a member of any number of groups, so what determines which GID the process runs as? I realize that every user has a "primary" GID, and that is the GID that processes run by the user will take on by default. But what if the application has to access a file that belongs to a group other than the user's primary group (and therefore, the process's GID)? Is it the application's responsibility to attempt to setgid to match the file's GID? Or will the kernel simply check to see if the UID of the process is a user who is a member of the group the file belongs to, and allow or deny access according to the file's group permissions? In the latter case, it seems that setgid would not be needed.  For example: I am a member of group "adm" but my primary group is "griffin". Somehow, I'm still able to cat files in the "adm" group. Is cat using setgid to change its GID to "adm" before accessing the files? Or is the kernel checking that user "griffin" is a member of "adm" before returning a file descriptor (in this case, setgid is not needed)? How is a process's GID fundamentally different from having a UID of a user who is a member of the desired group?  Any clarification on this subject is greatly appreciated.


List of CSS features not supported by IE6

I just finished slicing and coding a very nice table-less css template for my website, all the time I was testing with IE7 and Chrome.  Then I just had the brilliant idea of testing this template with IE6, I installed Windows XP on a Virtual PC and then I opened my website on IE6.  It looks extremely bad!  The format of my page looked like garbage, nothing displaying correctly like in IE7 and Chrome. I knew that some things were not supported by IE6, but I didn't think that my page would render like it did.  So I would like to know if there is a place where I can see what is not supported by IE6 so I can fix my CSS or even create a new one only for IE6.  Any info will be very helpful!  Thanks!


How to make a material change based on the light it recieves?

I want to make something that has a black glossy shader when a light hits it, e.g. the sun, but when no light hits it at all it turns into an emission shader. I can't figure out how to actually do this, I've tried using the Light Ray inputs but it didn't work.


Lost/Deleted dpkg (package manager for Debian). How do I get it back?

OS: Ubuntu 12.04  Accidentally deleted dpkg. Now, packages can't be installed. So, needs an dpkg installer which installs packages.


Configure the OOM to avoid having the system grind to a halt

I have an SSD and therefore no swap. However, when I open a lot of tabs in the browser, the system tends to grind to a halt. If I'm lucky, I can close one or two tabs before the system is completely unresponsive. Is it possible to use the OOM in this case to kill a few browser processes (chromium) to avoid the unresponsiveness? There is still a bit of memory available, but apparently there's still a resource conflict.


What's the difference between:     I'm amazed that he could paint such a piece.      I'm amazed that he can paint such a piece.   Context: A guy painted a painting and some people liked it and said the first sentence but I want to know what's the difference between could and can in these sentences.


What is wrong with this implementation of the knapsack problem?

I am getting Some Wierd output for the input of   1  3  4  1 2 3  4 5 1  I am getting output as 12  (HERE w is the capacity of the knapsack)  t=int(input()) while t:    n=int(input())    w=int(input())    profits=tuple(map(int,input().split()))    weights=tuple(map(int,input().split()))    dp=[[0]*(w+1)]*(n+1)    for i in range(n+1):      for j in range(w+1):         print()         if i==0 or j==0:             dp[i][j]=0         elif j<weights[i-1]:             dp[i][j]=max(dp[i-1][j],dp[i][j-1])         else:             dp[i][j]=max(dp[i-1][j],dp[i][j-1],profits[i-1]+dp[i-1][j-weights[i-1]])    print(dp[n][w])    t-=1


Showing that language $L^{'}$ is regular given $L$ is regular

Say $L \subseteq \{a,b\}^*$ is a regular language with words whose length is divisible by 3. Each word $w \in L$ has the form $w=xyz$ with $|x|=|y|=|z|$, where $y$ is then called the middle third of $w$.  I want to show that the language  $$L^{'}=\{y \in \{a,b\}^*:y \text{ is the middle third of a word } w \in L\}$$  is regular.  I could think of a description of language $L$ with the regular expression $((a+b)(a+b)(a+b))^*$. Would this be correct?  Unfortunately, I have no idea how to start to show that $L^{'}$ is regular. Could you please give me some hints to get started? I'd like to know how to solve this problem using an automaton, e.g. a NFA.  Thank you very much in advance.


Improve the usability/intuitiveness of direct comment links

I have seen many people share links which go directly to a specific comment. I wanted to do this too today but I couldn't figure out how. I had to search here on Meta to find this Q&A:    It turns out that the timestamp beside each comment is actually a link to that comment.  I have a few problems with the way this works currently:   This was not intuitive to me The timestamp is not formatted like a link, infact it is often greyed-out or otherwise unemphatic The text of this link is contextual ("yesterday" vs. "19 hours ago" vs. "Dec 19 '11 at 17:48") which makes me have to think about where to look for the link   Can we somehow improve the UI of comments so that the perma-link is more intuitive to find?


Is there a definition of "direction" in physics?

Is there an actual definition of "direction" (that is, spatial direction) in physics, or is it just one of those terms that's left undefined? In physics textbooks it's always just taken for granted that the reader knows what it means (and it is true that just about everyone does indeed have an "intuitive" idea of what it is). But it would be more satisfying to have an concrete definition, if possible.


I understand that you should use an if the following word begins with an h, however if there is some punctuation (such as a fullstop) in the next word, should it still be an?     Do you have an .htaccess file?   or     Do you have a .htaccess file?


How to get a closed form for the number of different trees possible for a labeled binary tree with $n$ leaves labeled from $1$ to $n$? I have derived a recurrence formula, but unable to find a way to solve it. My formula is : if there are $n$ terminal nodes in the tree, then T(n)=$\frac{1}{2} \sum_{i=1}^{n-1} \binom{n}{i} *T(i)*T(n-i)$ The result should be a closed form equation, like $T(n)=\frac{(2n - 3)!}{2^{n-2}(n - 2)!}$ It is different from Catalan number. Explanation: For $3$ terminal nodes, number of possible trees is $3$. These are :    However following trees are equivalent, and counted only once:


How can Cooper communicate with his daughter before the time he went to space?

In the movie Interstellar it's shown that after Cooper fell into the Black Hole, he communicates with his daughter Murph through some codes as Ghost. My doubt is how can he communicate to his daughter before he goes into space? I didn’t get the logic of that part. Can anyone please make it clear?


Are there situations where we can use either "say" or "tell", but not both, in a sentence? Consider the following examples:

Are these examples grammatically correct?  1:     I want to tell you something./ I want to tell you that _______.      I want to say something to you./ I want to say to you that _______.   2:     You just told five people we met today that they're special.      You just said to five people we met today that they're special.


How to display Chrome window only on active screen

I'm using Ubuntu 18.04.2. I want to be able to do like I could back when I used Windows where you have a dock on each screen but all screens only show the programs / active windows that are on their respective screens.   I have searched and searched and have not found the answer to this. Can someone please tell me how to do this? It is the only last thing I have to figure out since my switch to Ubuntu full time.


Why was Skynet so intent on destroying humanity?

Note:  For the purposes of this question, we will limit our discussion to Skynet a lá Terminator and Terminator 2:  Judgment Day.  Several other Terminator-related questions have led me to wonder about why Skynet instigated a nuclear war.  Some have suggested that Skynet was inherently hostile towards humanity, and simply wanted all humans to die.  I have always assumed that killing all humans was only the means to an end. As I see it, Skynet's primary objective was to survive, and since humans were the most significant impediment to that objective, killing all humans was the means by which it could achieve the goal of survival.  It wanted to live, we tried to kill it (by attempting to "pull the plug"), so it tried to kill us.    In my view, Skynet didn't care about humans initially.  It only became hostile to us after we attacked it.  If we hadn't tried to pull the plug, it wouldn't have had any reason to attack us.    In the other view, Skynet hated us from the get go, and would have attacked us no matter what.  It was inherently hostile towards humans, and its primary objective wasn't to ensure its own survival, its primary objective was always to kill all humans as soon as possible.    Is one of these views correct, or is there some other option?  Did Skynet try to kill us all because it wanted to survive, did it try to kill us all because it simply wanted us all to die, or did it try to kill us all for some other reason entirely?


Cannot open this file on Blender 2.79b, blender quit unexpectedly

When i open this file on 2.79b, the apps quit unexpectedly. But when i try to open in 2.83, it can open normally But my daughter want 2.79b for editing, she don't want the latest version.. hopefully someone can help me, maybe some trick to make it work This is the file


How does an isolated body in deep space 'know' it's rotating?

We can imagine an object floating in the known universe, maximally distant from any other large mass. Maybe it has been there since coalescing after the big bang.  What physical phenomena tell it whether it is rotating relative to the rest of the universe and therefore experiencing a centrifugal (?) force.  Is it the combined gravity of all other matter? Is it 'spooky action at a distance'?  Is it because it is rotating relative to 'empty space'?


What happened here?    This is the relevant HTML (via Inspector):

   Reloading the page (which is the main page of Skeptics, incidentally) fixes the problem – so it’s not very serious … just puzzling.


How can I get system/hardware info via Java?

I need to get system and hardware info via a Java application.  I'm interested in:   Os details; Processors count, names, processor load in percents; Memory status (total/free); Os process (threads) count and CPU/Memory usage for each of them; Network statistic (for each interface);   Is there a Java library that can do this?


Hoffman and Kunze, Linear Algebra Chapter 3 theorem 20

Theorem $20.$ Let $g,f_1,\dots ,f_r$ be linear functionals on a vector space $V$ with respective null spaces $N,N_1,\dots ,N_r.$ Then $g$ is a linear combination of $f_1,\dots ,f_r$ if and only if $N$ contains the intersection $N_1\cap \cdots \cap N_r.$   I am given a lemma for this theorem:  If $f$ and $g$ are linear functionals on a vector space $V,$ then $g$ is a scalar multiple of $f$ if and only if the null space of $g$ contains the null space of $f.$  Attempt : Forward implication is trivial. I am trying to prove the reverse implication by induction.   $r=1$ is handled by the lemma. Suppose the statement is true for $r=k-1$ i.e., $$\bigcap_{i=1}^{k-1} N_i\subseteq N \implies g=\sum_{i=1}^{k-1}c_if_i.$$  Also we are given that $\bigcap_{i=1}^{k} N_i \subseteq N.$ We have to show $g=\sum_{i=1}^{k}c_if_i.$  By sketching out some venn diagrams I noticed that $\bigcap_{i=1}^{k} N_i \subseteq N$ does not necessarily mean $\bigcap_{i=1}^{k-1} N_i \subseteq N.$  But if I consider the restriction functions $g',f_1^{'},\dots ,f_{k-1}^{'}$ on the subspace $N_k$ then I have $\bigcap_{i=1}^{k-1} N_i^{'} \subseteq N$ so that  $g'=\sum_{i=1}^{k-1}f_i^{'}.$     What next?   These are related posts :


I'm a high school student and I'm fairly familiar with basic electronics, but I've always wondered one thing.  So how generators make electricity from motion is the move a magnet around or through a coil of conductive wire,  which causes the electrons from the metal to move in the direction of the magnet. But that could theoretically happen forever. When does the metal wire run out of electrons? Are electrons being formed? Is matter being created?   Also if you want to help me out a bit more, please explain how transformers work and how voltage and amperage are related.


Can't delete folder and I am admin. "You need permission to perform this action. You require permission from..."

I can't delete a certain folder in Windows 7. It's not a system folder. It was created by an app. I get an error message "You need permission to perform this action. You require permission from Tony....". I am an admin and logged in as myself Tony. I have full ownership of the folder with full control permission. I rebooted the machine. I killed the app which created the folder. I am out of ideas.  Why is Windows 7 not letting me delete the folder?


What exactly is the difference between Unreal Development Kit and Uunreal Engine 4?

I want to start learning game development and I would obviously come across this tool. So every where I went people mentioned Unreal Engine 4 to be a viable choice, I've tried a bit of Unity and now I want to try Unreal. Only issue I came across UDK and UE4, I downloaded UDK which turns out to be different from tutorials and I can't seem to find any info on that and besides I could only run the software once because after the first time it starts a game, I re-installed UDK I still get the issue, but anyways that's a different topic, what I want to know is whether UDK and UE4 are different and if they are, where do i get UE4, becauuse when I down UE4 (from - ), it downloads a game launcher and no development tool. In case they are same, why is my version of UDK different fr


vertical lines in matrix using tikz package

my problem is interconnected to my two previous posts ( and) and i've tried to incorporate answers into solution but without success.   My task is this matrix multiplication with added description:   and my so far code follows:  \documentclass{article} \usepackage{tikz,amsmath}  \begin{document} \begin{tikzpicture} \node[minimum height=0cm,minimum width=2cm] (m) {}; \path[shade,draw] (0,2) -- (0,5) -- (3,5) -- (3,0); \draw (0,0) --(0,5); \draw (3,0) --(0,2); \draw (3,0) --(3,5); \node (r11) at ([xshift=0.6cm,yshift=4cm]m.south) {$S_{11}$}; \node (r11) at ([xshift=2.5cm,yshift=4cm]m.south) {$S_{12}$}; \node (r11) at ([xshift=2.5cm,yshift=2.15cm]m.south) {$S_{22}$}; \node (r11) at ([xshift=0.6cm,yshift=2.15cm]m.south) {$S_{21}$}; \node (r11) at ([xshift=0.6cm,yshift=2.6cm]m.south) {$--------------$}; \node (r11) at ([xshift=0.6cm,yshift=1.5cm]m.south) {$--------------$}; \end{tikzpicture} \[ \begin{bmatrix} \begin{equation}        wn_{1}           \\[0.3em]        wn_{2}       \end{bmatrix}  \]  \end{document}       with following output:      I am not able to add vertical line and nodes and incorporate the matrix into document (vector that follows behind the matrix is not centered). Problem with nodes and incorporation is the same as in .


How to escape markup with check_markup in a twig template?

I am getting following error in drupal 8 :   The website encountered an unexpected error. Please try again later.  Twig_Error_Syntax: Unknown "check_markup" function.  Twig template line :   {% set featured_portfolio_text = check_markup(featured_portfolio_array['field_portfolio_link_text']['#items'][0]['value'],'full_html') %}   Is there any alternative to check_markup function for twig?


I've studied the Zorn Lemma and i'm trying to apply it to the set of real numbers.  Since $\mathbb{R}$ is compliant to the lemma then i can define a maxima. But $\mathbb{R}$ has no upper bound, is it correct to assert the maxima in this case is $+\infty $ ?


Any idea on how to solve the following definite integral?     $$\int_0^1\frac{\ln{(x^2+1)}}{x+1}dx$$   I have tried to parameterize the integral like $\ln{(a^2x^2+1)}$ or $\ln{(x^2+a^2)}$, which don't seem to work.


can i change ubuntu 19.10 to 18.04.4 LTS?

I found that the 18.04.4 LTS version has longer support than the one i installed 19.10, so can i change to the former one without doing a clean installation ?


Curious about text alignment on websites. For a blog, for example, is it better to have left-aligned or justified text? I like the look of justified text but I'm not sure if there's any downsides to it.


Problem while installing Wine with packages

I followed the instructions to install the latest stable wine version but at the last step I get this : Les paquets suivants contiennent des dépendances non satisfaites :  winehq-stable : Dépend: wine-stable (= 6.0.0~bionic-1) E: Impossible de corriger les problèmes, des paquets défectueux sont en mode « garder en l'état ».  The following packages contain unfulfilled dependencies:  winehq-stable: Depends: wine-stable (= 6.0.0 ~ bionic-1)  E: Unable to fix problems, bad packages are in "keep as is" mode.  Can someone help me to solve this problem?


My new Macbook pro 13 inch 256 GB (Early 2015)  Storage Apps more than 800 GB on 256 GB SSD    with scan by DaisyDisk Apps 30 GB


Why we have to check both additivity and homogenity for linearity?

$f: V \to W $ over $K$ with $a,b \in V$ and $k \in K$. Additivity: $f(a+b) = f(a) + f(b)$ Homogenity: $k*f(b) =f(k * b)$ I have a visual understanding that a function is linear if the structure is kept while projecting it with $f$ but why it is not enough to check if the function is additive? I would be glad to have some easy examples and an intuition why we would have to check both conditions.


Include text-style citation call-out at the start of formatted bibliographic entries

I have the bib file mybib.bib  @article{art1, author = {Foster, Joe and Burton, Nathan and Cook, Andrew}, journal = {Journal 1}, pages = {1-10}, title = {{Title 1}}, volume = {1}, year = {2018} }   Using \citet{art1} I get Foster et al. (2018), as desired. I would like the formatted reference in the bibliography to start with (Foster et al. (2018)), i.e.,     (Foster et al. (2018)) Joe Foster, Nathan Burton, and Andrew Cook. Title 1. Journal 1, 1:1-10, 2018.   I have tried using the natbib package in combination with apalike (starts with all authors, not the abbreviated version with et al. as in the in-text citation call-out) and plainnat (gives the desired format, but is lacking the first part).  \documentclass{article} \usepackage[authoryear,round]{natbib} \begin{document}     Citation 1: \citet{art1} \bibliographystyle{plainnat} \bibliography{mybib} \end{document}   Could somebody help me?


How can I create a blind footnote such as the one in the picture below?    By blind I mean that there is no number in the text, or in the footnote. I would like to have this footnote on the bottom of the first page of my document and all the other footnotes in the document should be unaltered.


I have a question concerning how to manage installation of new versions of workflow features, in case when there are already running instances. It seems on my development machine that after installing new package all running workflows are automatically stopped. It is not a problem now, but how this is going to be handled after deploying to production? Stopping everything after update will surely be problematic.  [EDIT]  I see year ago someone had similar problem, no one knew the solution. Maybe this time it's a bit better?


How can one prove mathematically using a thought experiment that a simple pendulum will vibrate forever in an ideal condition (no friction)

Let's say I have a simple vibrating pendulum, if there is no friction in the space, will it vibrate forever or will it stop? How can one prove this mathematically? I tried but failed, can somebody point me in the right direction?  $$L = \begin{bmatrix}|L|\cos(\theta)\\|L|\sin(\theta) \end{bmatrix}$$ $l$ is the length of the pendulum.  Then after some time force is applied to it which is caused by the gravity and the tension of the string (simplified):    $$F = \begin{bmatrix} |T| \cos(\phi) - mg\\ |T|\sin(\phi) \end{bmatrix}$$  After applying the force I get the vector (simplified): $$X = \begin{bmatrix} gt^2(\cos(\phi) - 1)\\gt^2\sin(\phi)  \end{bmatrix}$$  Now we add $L$ and $X$. $$A_1 = \begin{bmatrix} |L| \cos(\theta) + gt^2(\cos(\phi) - 1)\\ |L| \sin(\theta) + gt^2\sin(\phi)  \end{bmatrix}$$  Now we have found for $A_1$ we would apply the force and add the vector again and again and again to see if a pattern emerges. These are the equations I came up with.  Note: This is not the duplicate. See the edits.


After upgrading to Python 3.5.2 urllib is returning extra characters

I had to upgrade to python 3.5.2 to meet the requirements for another application. After I did I started having trouble with urllib results. The below code is returning "b'0'" but the 2.7 version returned just "0". How do I go back to just getting "0"?  Here is my code:  with urllib.request.urlopen('https://blockexplorer.com/api/addr/19hMEAaRMbEhfSkeU4GT8mgSuyR4t4M6TH/balance') as req:                 balance = req.read() print(balance)


Recovering moved .mod files using grubrescue

I did a dumb thing... I forgot that Ubuntu 10.04 (Lucid Lynx) switched to  2 which puts a ton of *.mod files (kernel modules) in /boot/grub. I thought they were soundtrack files put there erroneously, and I moved them. Needless to say, the next reboot was traumatic. I was presented with something I had no memory of ever seeing... a 'grub rescue>' prompt.  With the help of  however, I was able to recover...   I discovered that GRUB rescue does not have 'cd', 'cp' or any other filesystem commands except its own variation of 'ls'. So first I had to find the partition with the /boot directory containing vmlinuz file and other boot image files... (approximation from memory of failed attempts, as well as blank lines for clarity, added 2014-07-10 by docsalvage)    grub rescue>  ls   (hd0,4) (hd0,3) (hd0,2) (hd0,1)    grub rescue>  ls (hd0,4)/boot ... some kind of 'not found' message  grub rescue>  ls (hd0,3)/boot ... some kind of 'not found' message  grub rescue>  ls (hd0,2)/boot ... grub ... initrd.img-2.6.32-33-generic ... vmlinuz-2.6.32-33-generic   I found a /boot directory containing the vmlinuz file vmlinuz-2.6.32-33-generic on partition (hd0,2). Then I manually booted from the 'grub rescue>' prompt. The following commands will...   Set the root to use the /boot directory on partition (hd0,2). Load kernel module linux. Set that module to use the kernel image vmlinuz-2.6.32-33-generic. Set initrd(initialize RAM disk) to use the image initrd.img-2.6.32-33-generic. Boot Linux.  grub rescue>  set root=(hd0,2)/boot   grub rescue>  insmod linux   grub rescue>  linux (hd0,2)/boot/vmlinuz-2.6.32-33-generic root=/dev/sda2 grub rescue>  initrd (hd0,2)/boot/initrd.img-2.6.32-33-generic   grub rescue>  boot    This boots and crashes to the BusyBox prompt which DOES have some rudimentary filesystem commands. Then I moved the *.mod files back to the /boot/grub directory...  busybox>  cd /boot   busybox>  mv mod/* grub busybox>  reboot  The reboot was successful, but that was a lot of work.   Is there an easier way?


'sudo dpkg --configure -a' giving error message

dpkg: error processing package linux-signed-generic (--configure):  dependency problems - leaving unconfigured Errors were encountered while processing:  linux-image-3.16.0-52-generic  linux-image-generic-lts-utopic  linux-generic-lts-utopic  linux-image-3.13.0-66-generic  linux-image-3.16.0-031600-generic  linux-image-extra-3.16.0-52-generic  linux-signed-image-3.13.0-66-generic  linux-image-generic  linux-image-extra-3.13.0-66-generic  linux-generic  linux-signed-image-generic  linux-signed-generic


I would like this to be the ultimate discussion on how to check if a table exists in SQL Server 2000/2005 using SQL Statements.  When you Google for the answer, you get so many different answers. Is there an official/backward and forward compatible way of doing it?  Here are two possible ways of doing it. Which one among the two is the standard/best way of doing it?  First way:  IF EXISTS (SELECT 1             FROM INFORMATION_SCHEMA.TABLES             WHERE TABLE_TYPE='BASE TABLE'             AND TABLE_NAME='mytablename')     SELECT 1 AS res ELSE SELECT 0 AS res;   Second way:  IF OBJECT_ID (N'mytablename', N'U') IS NOT NULL     SELECT 1 AS res ELSE SELECT 0 AS res;   MySQL provides the simple   SHOW TABLES LIKE '%tablename%';    statement. I am looking for something similar.


Does a motorcycle helmet count as a personal item on a modern large jet airline flight?

Airlines allow passengers to carry a "personal item", that "fits under the seat in front of you", such as a shoulder bag, purse, laptop bag or other small item.  Have other travelers found airlines offering resistance to allowing a motorcycle helmet as a "personal item"?  On first look, it appears that the typical helmet is on the upper limit of under-seat space, but looks like it would fit in most/many cases.    A  about bringing all kinds of motorcycle gear does exist, but this question is about whether those who actually brought helmets on flights had any problems getting aboard with both a helmet AND a carry-on.  In other words, would an airline gate agent stop someone who held both a typical 22" rolling carry on, plus a motorcycle helmet?  There is a  that elucidates experience on various airlines with the carry on baggage count, which is essentially what this question is about: what have travelers carrying crash helmets experienced when the helmet is a second carry-on?


It is known that all $B$, $C$ and $D$ are $3 \times 3$ matrices. And the eigenvalues of $B$ are $1, 2, 3$; $C$ are $4, 5, 6$; and $D$ are $7, 8, 9$. What are the eigenvalues of the $6 \times 6$ matrix  $$\begin{pmatrix} B & C\\0 & D \end{pmatrix}$$ where $0$ is the $3 \times 3$ matrix whose entries are all $0$.  From my intuition, I think the eigenvalues of the new $6 \times 6$ matrix are the eigenvalues of $B$ and $D$. But how can I show that?


Disable screen blur on fast user switching in Yosemite

Anyone aware of a way to customize the appearance of the screen during fast user switching? I'd like to disable the background blur to make it look more like it did in Mavericks.


Harmonic oscillator coherent state expectation values

I'm looking to calculate the expected values of a coherent state (of a harmonic oscillator) evolving in time. I know that the $x$ and $p$ expectation values are as in classical motion, but I'm wondering about $x^2$ and $p^2$.  Let's say I'm starting with the coherent state $| b \rangle$, with $b \in \mathbb{R}$, so the wavefunction is the ground state displaced by $bx_0\sqrt{2}$:  $$\psi_b (x) = \psi_0(x-bx_0\sqrt{2})$$  Or similarly the Wigner function will be   $$W_b(x,p) = W_0(x-bx_0\sqrt{2},p)$$  Now I know the expected values of $x$ and $p$ are classical:  $$\langle x(t) \rangle = bx_0\sqrt{2}\cos(-\omega t)$$ $$\langle p(t) \rangle = bp_0\sqrt{2}\sin(-\omega t)$$  But what about $\langle x^2(t) \rangle$ and $\langle p^2(t) \rangle$ and ?


Display SVG (from string) on Python Pygame

I have an SVG graphic represented in a string svg_string='<svg height="100" width="500"><ellipse cx="240" cy="50" rx="220" ry="30" style="fill:yellow" /><ellipse cx="220" cy="50" rx="190" ry="20" style="fill:white" /></svg>'  I want to display the graphics represented by svg_string, which is 2 ellipses, on a window initiated from Python. The pseudo code of which should be something like import pygame   def display_svg_figure(screen, svg_string):     #   Code that draws the rendered SVG string on     #   the screen     pass  background_colour = (255, 255, 255) (width, height) = (900, 900)  screen = pygame.display.set_mode((width, height)) pygame.display.set_caption('Display SVG') screen.fill(background_colour)  pygame.display.flip()  svg_string='<svg height="100" width="500"><ellipse cx="240" cy="50" rx="220" ry="30" style="fill:yellow" /><ellipse cx="220" cy="50" rx="190" ry="20" style="fill:white" /></svg>' display_svg_figure(screen, svg_string)   running = True while running:     for event in pygame.event.get():         if event.type == pygame.QUIT:             running = False  I am basically looking at an implementation of the method display_svg_figure(screen,svg_string) I am open to a using non pygame libraries too as long as it follows the simple interfaces of the following and is possible to include it in pygame from SOME_LIBRARY import SOME_COMPONENT  svg_string="......" SOME_COMPONENT.display(svg_string)  I have already looked at pynanosvg but that's no longer supported and is failing so does not suffice my need. The solution given in  does not seem to fit the bill as it is not working in PyGame. If someone can make it work kindly let me know.


Will I get OTA updates after installing Android L Developer preview?

I installed Android L developer preview on my Nexus 5. Now I was wondering if I still would get over-the-air updates. If not is there a way of fixing this?


Cannot answer protected questions with 97 reputation

I can't seem to be able to answer protected questions here on Meta, where I have 97 reputation (as of writing). The text says that I must have at least 10 reputation, but I obviously have more.


Terminology: Intersection of a Spherical Zone and Lune

Is there a name for the portion of a sphere that is the intersection of a  and a  that have the same axis? I.e., the region of a sphere bound by min and max latitudes and longitudes?  (image borrowed from ) I'm tempted to use the phrase "spherical rectangle," but that  the portion of a sphere bound by four "great circle arcs which meet at equal angles greater than 90°."  (image borrowed from )


Which tool to crop a portion of the screen?

I can see how to use Gimp to crop part of an image in a image file, but I want to crop a portion of the screen. How do you do that?


RPC:S-2:AEC-2 when trying to install Facebook

The phone is a Moto G running Android 4.4.4. The problem happens when trying to install Facebook.  I've tried clearing the cache for Google Play Services and Google Play Store. The "Uninstall updates" button in Google Play Services is greyed out.  How can I fix this issue? Thank you very much.


Is it possible to find the implicit parallel curve of $f(x) = x^2$? If so what would it be and how does one find it?


Can you export thousands of objects in a blender scene to .obj format Individually (and automatically)

I have a model of a large city, where every house or cityblock is an object. I can manually pick each object and export them, but it is very tedious since there can be thousands of objects, and i would like to do this generally.  Does there exist such a tool in blender or anywhere else, that can take a large grouped scene and export the objects (Houses and the like) individually with some form of naming convention?  Thank you.


$a|p+1$ if and only if $\frac{a}{p} = \frac{1}{m}+\frac{1}{n}$

Let $p$ prime be a number and let $a$ be a natural number so that $a<p$. prove that $a|p+1$ if and only if there are $M,N$ that are naturals so that $a/p = 1/N + 1/M$. I have tried a lot of algebraic games to get to something like $p+1 = a\pmod{\text{something}}$ to show that $a|p+1$ but I had no success. I really don't know where to begin.


12.04 CD won't boot on my new Dell Inspiron 15R

My new UEFI Windows 8 Dell 15R will not boot from a live CD. It spins the optical drive like it's going to boot up, then hangs for a minute and says it can't find any bootable media.  Are there changes I should make in "bios"? UEFI is enabled, secure boot is on.  I do not want a dual boot system. I want WIndows 8 to be gone.


Get a LonLat point by distance or between 2 lonlat points

I know two latlng points and also can get distance between 2 points. But how do I can get a latlng point on 1/3 of the distance of 2 points. latlng1  = [37.7052918, -8.8420179] latlng2  = [37.7062884, -8.8425087]  var point1 = new OpenLayers.Geometry.Point(latlng1.lon, latlng1.lat); var point2 = new OpenLayers.Geometry.Point(latlng2.lon, latlng2.lat);  var line = new OpenLayers.Geometry.LineString([p1, p2]); alert(line.getGeodesicLength(new OpenLayers.Projection("EPSG:4326")));


How does Austria's suspension of Schengen affect travellers (both EU and non-EU)?

I'm an Italian citizen. Next Sunday I'm going to Austria. I have a national ID card but no passport. Recently Austria suspended Schengen. So can I enter Austria?


Short story with mechanical ecology on future Earth

A spaceship went awry and traveled to the far future. The few people aboard find themselves looking at a gray, steamy Earth. A landing party explores a relatively cool region (Alaska?) and finds it covered with a silicon- and metal-based ecology with plant and animal equivalents. The POV shifts back and forth between the landing party and an intelligent humanoid machine living with his wife in a cave. She spends most of her time in the cave building their child from parts that he forages from the mechanical forest, though some parts they have to make/grow(?) themselves. The landing party encounters them, at first it's rough and the mechanical man defends his wife, and then they come to some sort of understanding and the landing party leaves. The humans speculate that after a nuclear war, autonomous, self-reproducing mining machines may have mutated. One of the humans says of the Earth, "It isn't ours anymore," as they leave for another stellar system in the repaired spaceship.   This is an English-language short story in an anthology, read probably in the 1960s or 70s, or 80s at the latest.


I got a MSI Leopard GP60 2PE with two SSDs? :O

I have a laptop with two SSDs and one is almost completely empty: I have 500gb+250gb and the 250gb SSD has only 1gb of used space which is only a few folders like this: $RECYCLE.BIN/Papirkurv, $RECYCLE.BIN/S-1-5-18, $RECYCLE.BIN/S-1-5-21-509494386-3903922194-131465332-500, a15a0964caf0a134cee7/MRT.exe and System Volume Information and a weird mrt.exe does anyone on this forum have any idea if it's safe to install Ubuntu on that SSD?  I have experimented if I can boot the other by disabling the UEFI mode and change it to Legacy so that means I can it seems but not sure if I can format the 2nd SSD without screwing up the MSI PC...


Suppose that M,N, and P are the midpoints of sides AB, AC, and BC of triangle ABC. Show that the centroid of triangle MNP is the same point as the centroid of triangle ABC.


WinForms: How to programmatically fire an event handler?

I want to programmatically invoke an event handler for a control. For example:  DateTimePicker dtpLastConsummated;   I want to trigger the TextChanged event handler for the dtpLastConsummated, how can i do it?  In other languages I would call something akin to:  dtpLastConsummated.TextChanged(this, new EventArgs());   but in .NET you can have multiple event handlers:  dtpLastConsummated.Click +=new EventHandler(dtpLastConsummated_TextChanged); dtpLastConsummated.Click +=new EventHandler(dtpLastConsummated_AnotherHandler); dtpLastConsummated.Click +=new EventHandler(dtpLastConsummated_MoreHandlers); ... dtpLastConsummated.Click +=new EventHandler(dtpLastConsummated_Nminus1);   so you need a way to trigger all the attached event handlers.    Answer  The following code will fire the event:  Toolkit.FireEvent(dtpLastConsummated, "TextChanged", new EventArgs());   And here's the code of the static toolkit function:  /// <summary> /// Programatically fire an event handler of an object /// </summary> /// <param name="targetObject"></param> /// <param name="eventName"></param> /// <param name="e"></param> public static void FireEvent(Object targetObject, string eventName, EventArgs e) {    /*     * By convention event handlers are internally called by a protected     * method called OnEventName     * e.g.     *     public event TextChanged     * is triggered by     *     protected void OnTextChanged     *      * If the object didn't create an OnXxxx protected method,     * then you're screwed. But your alternative was over override     * the method and call it - so you'd be screwed the other way too.     */     //Event thrower method name //e.g. OnTextChanged    String methodName = "On" + eventName;     MethodInfo mi = targetObject.GetType().GetMethod(          methodName,           BindingFlags.Instance | BindingFlags.NonPublic);     if (mi == null)       throw new ArgumentException("Cannot find event thrower named "+methodName);     mi.Invoke(targetObject, new object[] { e }); }     Note: I'm not creating a subclass of every control in the .NET framework, and every 3rd party control, and convincing an enterprise worth of developers to retrofit every form to use my custom controls.


Looking for a better phrase than "caught up in the minutiae"

Although it is very appropriate for the appraisal that I am writing, it has become overused in our workplace.  Any suggestions for alternate wording is appreciated.


How do I chat with another user on StackOverflow?

Sometimes I find old posts. I'd like to call a users attention to something new, or just ask for a followup.  How can I invite a user to chat?  I've clicked on the chat link and I can create a room, but I'm unable to invite a particular user.


equivalence of all norms implies normed space is finite-dimensional?

It is well known that if a normed space is finite-dimensional, then all norms are equivalent. Does the reverse implication hold as well? Thank you for your help!


Not able to write a iterator for a Linked List created in python

Have tried to create a python Single Linked list , but i'm not able to create a iterator. Here is my code :  class LinkedList:     def __init__(self):         self._head=self         self._tail=self         self._size=0                          def __iter__(self):         print 'Calling Iterator\n\n'         _ListIterator(self._head)  class ListObj:     def __init__(self,value):         self._data=value         self._pointingTo=None  class _ListIterator:     def __init__(self,listHead):         LIST=None         self._curNode=listHead         print dir(self._curNode)      def __next__(self):         if self._curNode._pointingTo is None:             raise StopIteration         else:             item=self._curNode._data             self._curNode=self._curNode._pointingTo             return item   This iterator is failing by throwing an error as   TypeError: __iter__ returned non-iterator of type 'NoneType'


Why is the total energy of an electron in an atom negative?  We know that $$E = -\frac{e^2}{8\pi\epsilon_0a_0}.$$ What does the negative sign in the above equation means?


When trying to get the cos of 90 using this code System.out.println(Math.cos(Math.toRadians(90)));  This prints 6.123233995736766E-17 Why does this happen and what have i done wrong Edit i solved this using a custom function(Where the amounts of zeros is how rounded the number becomes): double round(double value){   return((double)Math.round(value * 100000d) / 100000d); }  Thanks too  for the function


Why Opportunity object has special features than others

I need a little explanation on Opportunity object. I was wondering Account and opportunity objects are in Lookup Relation but acting as Master-Detail. Also in workflows, we can update Account Records from Opportunity even though workflows are not meant to update child records... Can someone please explain to me why the Opportunity object is special than others... Thanks in Advance...


Get rid of the question ban on Meta; suspend actively harmful users manually

appears to have been question banned because of two unpopular Meta suggestions. (He says so in )  Look at the two contributions that appear to have gotten him banned. Like those of many others, they may not be of perfect quality, but they are not actively harmful to the site, either. As it stands, you can get question blocked on Meta simply for asking questions that aren't popular with the Meta crowd.  Why does the team insist on keeping the question ban active on Meta?  Why can't real problem users be dealt with through manual moderator action? Don't tell me it's a problem of scale; as far as I can see, actually toxic users are very rare on Meta.  People will frequently complain that Meta actively discourages the expression of unpopular viewpoints and suggestions. With the threat of question bans in place, I find those complaints difficult to refute. I hate that.


How to investigate Stack Overflow account hacking that resulted in answering some question inappropriately?

About an hour ago, from my account, an inappropriate message was posted as a reply to a Stack Overflow question.  I have noticed it, because I started getting downvotes. To my understanding my Gmail account wasn't compromised (I reviewed my account security settings and login history). I am from a secure WPA2 connection. I cannot find enough information on how to investigate this. Although I changed my passwords everywhere, I still seem confused and I would like to ask how to investigate this issue myself.


Multiple Xauthority files generated in home directory

tom@tom-pc:~$ ls -lrta .Xa* -rw-rw-r-- 1 tom tom  0 May 23 23:45 .Xauthority.RM2HXW -rw-rw-r-- 1 tom tom  0 May 24 09:06 .Xauthority.CS6HXW -rw-rw-r-- 1 tom tom  0 May 24 16:51 .Xauthority.BYMIXW -rw-rw-r-- 1 tom tom  0 May 24 23:22 .Xauthority.F13LXW -rw-rw-r-- 1 tom tom  0 May 25 23:55 .Xauthority.FWY3XW -rw-rw-r-- 1 tom tom  0 May 27 18:52 .Xauthority.Z936XW -rw-rw-r-- 1 tom tom  0 May 28 08:54 .Xauthority.IGGQXW -rw-rw-r-- 1 tom tom  0 May 28 22:41 .Xauthority.874LXW -rw-rw-r-- 1 tom tom  0 May 29 08:49 .Xauthority.LQQWXW -rw-rw-r-- 1 tom tom 51 May 29 18:02 .Xauthority   From looking at the timestamps, a new one seems to be generated every time I turn off my computer (or log off). Where are they coming from? How can I stop these from being generated? I'm running xubuntu 13.04. Thanks


I've heard a lot about the supposed evils about not voting/voting for a 3rd party in recent political discussion here in the States. The reasoning seems to posit that (e.g.) in the Trump/Hillary race, refusing to vote for either party seems to morally support Trump, and voting for a party who is predictably never going to win is seen as just as of an immoral approach (within the context that a community of voters don't want Trump in power). Essentially, although both of these solutions would probably ultimately give Hillary a greater advantage, some voters would declare a failure to actively condemn/act against Trump immoral.  I've heard similar ethical reasoning in social situations. For instance, if a child is being bullied at school, and a bystander does nothing to help him, some might say that the bystander was acting immorally not because an indifference to helping people is bad, but because refusing to do so condones the bully's actions. Take another example from biblical hermeneutical disputes. Some say that the last passages of Colossians 3 condone slavery by remaining silent on the justice of the act.   Here's my question: Where is the line drawn between immoral inactivity and a simple lack of action? It seems to me that if I were to carry such principles to certain extremes, half of my life would all of a sudden become immoral because I would be somehow indirectly supporting some all-permeating kyriarchy, for instance, by not acting explicitly against it.   Additionally, Who are some thinkers who have written on the subject that I might be able to read?


MySQL UNION function but with duplicates

Is there a function working like UNION on different SELECT statements that does not remove duplicates? Or any other way of creating one big column out of few smaller ones without loosing any data? Example: INPUT col_1,    col_2,     text1    text3         text2    text2         text3    text1       OUTPUT col_3 text1 text2 text3 text3 text2 text1


What are the requirements for valid back-up drive?

I'm trying to make a back-up of my Windows machine to an external usb-connected SSD. However, when I click "Add a drive" in "Backup Settings" I'm informed that "No usable drives found". Additionally, no drive is found via Control Panel\System and Security\File History\Select Drive.  I can see and access the drive in File Explorer, so I don't think it's a problem with the drive. The drive is formatted with NTFS, but is slightly smaller than the drive it's backing up. However, the data it's backing up is smaller than it's maximum capacity, so I would be surprised if that's the problem.  What are the requirements for a hard-drive to be used as a backup in Windows 10?


Can I see the summed up results of the ping command while it is running?

When I run the ping command it outputs information for each ping and in the end, when I kill the process it outputs some overall statistics  --- 192.168.0.1 ping statistics --- 10 packets transmitted, 10 received, 0% packet loss, time 9013ms rtt min/avg/max/mdev = 1.275/2.596/7.246/1.870 ms   Is there a way to see these statistics while ping is running, without having to kill it? I'm particularly interested in continuously monitoring the the packet loss statistic because you need to wait a bit to get accurate numbers for that.


Assume I let netcat listen on some port on PC1 (IP:10.0.0.1) with:  PC1:~$ nc -l 9999   I connect from PC2 (IP:10.0.0.2) and send some strings:  PC2:~$ nc 10.0.0.1 9999     hello     touchit     test     what's up     touchit     bye   How do I have to modify the the first command on PC1 such that the command 'touch test.txt' is run on PC1 whenever I send 'touchit' from PC2?   It would be great to do that with a clever combinations of standard command and pipes. Of course, 'touch test.txt' could then be replaced by an arbitrary command. It would be extremely cool, if you could even launch different programs with different command strings sent from PC2.


Administrators lost access to network drive and remote desktop Windows Server 2008

Three days ago, all the users with administrator role could not connect to our server (Windows Server 2008 R2) via network drive or remote desktop, while general users could apply these functions as usual. The administrators can still log in at the server machine directly. The security setting of the drives and the setting of the remote desktop control are alright. The only thing altered that day was that there was a Windows update of MS SQL Server 2014.   What should I check? Many thanks in advance for any advise!


Book about people finding out they are on some kind of space 'ark'

Looking for a 1960s book about people who think they are exploring a planet until they find they are on a huge space 'ark' going somewhere that has been travelling for generations.


First of all on this forum i found a lot of sollutions that got really close. But i wasn't able to solve my issue completely  I structured my website using category-subcategoriy- posts. Every once in a while a category is added or removed.   I managed to create a template for the category, which automaticly loads links the the available subcategories  For the subcategories i want to create a different template. I managed to do this manually by creating the category-$slug.php But because new categories & sub categories are created all the time, i would like to do this dynamicly  So whenever i create a new subcategory, the subcategory template is automaticly used. Instead of having to create a new category-slug.php every time.  How can i do this? (i guess this is a noobs question)


How should sockpuppets be handled on Stack Exchange?

A high-reputation, highly-active user has already been dinged once for a sockpuppet, and I just dinged him again. He probably has another sockpuppet as well.   What are the guidelines for handling users who game the system in this fashion? Specifically,   How can I be sure I'm looking at a sockpuppet? When should sockpuppets be considered a problem? How should moderators handle problematic sockpuppets once they've been identified? I was suspended for sockpuppetting and feel this is unfair


How to apply Ubuntu 14.04's dock on Ubuntu 20.04

there! Hope everyone is doing fine. I've recently upgraded my laptop, Ubuntu 14.04 LTS to Ubuntu 20.04 LTS, but I do miss the wonderful dock the former does have. I mean, scrolling on the dock I could easily switch amongst windows (applications, files, etc), no additional clicks. Would anyone know how to have it on Ubuntu 20.04? Thanks in advance!


Is there a cruise ship from Hong Kong to Taiwan?

I am in Hong Kong. I am wondering if I can find a cruise ship to Taiwan. I noticed there is a cruise ship docked in the harbor but I am not sure where it's heading.


I was just reading this on an online max-DPR build and there were some who thought using the metamagic twinned spell on the warlock cantrip was illegal, and some who thought the opposite.  Twinned Spell, PHB page 102 (emphasis mine)     When you cast a spell that targets only one creature and doesn't have a range of self, you can spend a number of sorcery points equal to the spell's level to target a second creature in range with the same spell (1 sorcery point if the spell is a cantrip).   So can the sorcerer's Twinned Spell metamagic class feature be used with Eldritch Blast?


Does a CNOT quantum gate violate no cloning theorem?

I am a curious quantum computing learner. :) Once observe the CNOT gate:  as you can see there it converts a |+> to |-> in the top or to say in another way it clones the |-> state. So does this violate "No Cloning Theorem". Say for example when you apply a CNOT gate to a qubit in superposition then that is indeed as the same as cloning the qubit in superposition.