Installation problem /usr/bin/dpkg returned an error code (1)

Anything I tried to install I get this error message:  No apport report written because MaxReports is reached already   Errors were encountered while processing:    linux-image-3.2.0-23-generic-pae    linux-image-3.2.0-24-generic-pae    linux-image-3.2.0-26-generic-pae    linux-image-3.2.0-27-generic-pae    linux-image-3.2.0-30-generic-pae   E: Sub-process /usr/bin/dpkg returned an error code (1)   I've tried most of the tips people say: apt-get upgrade, apt-get -f install, apt-get update. and I've always got the same error.


How to ask a question across multiple Stack Exchange sites?

How do you ask a question on Ask Ubuntu, Server Fault, the Unix and Linux SE, and Super User all at once?  My  is about Ubuntu so I put it there, but it could easily fit at any of the others.


Weird result when piping text into sed replacement

I make a network call (using curl), and filter the result (using grep) to get HTTP/1.1 200 OK. Then I want to transform it to a JSON hash (so I can use it in jq).  I want this transform: HTTP/1.1 200 OK  --->  { "status": "HTTP/1.1 200 OK" }  So I tried: curl ... | grep ... | sed -E 's/^(HTTP.*)$/{"status":"\1"}/' But it gives this strange output: "}status":"HTTP/1.1 200 OK  I also tried saving to file foo first: cat foo | sed -E 's/^(HTTP.*)$/{"status":"\1"}/' But it gives the same nonsensical output.  Interestingly, this works: echo 'HTTP/1.1 200 OK' | sed -E 's/^(HTTP.*)$/{"status":"\1"}/'  Where is my mistake?


Newly created user account does not count my old posts, even if e-mail matches

I was not a registered user on Stack Overflow, when I  on this website. This website suggested I become a registered user. It also created a pseudo-account page (user id 226454), and started recognizing me by a special cookie. I switched to another browser, and completed the registration. In the registration form, I provided the same e-mail address, which I provided when posting an answer in the previous browser. A new user account was created (user id 228365).  Problem:  The website created another separated account (which is not based on my pseudo-account, which already had 1 answered question). So, my answer is not counted in my new account.  Expected behaviour:  I wish Stack Overflow would recognize me by my e-mail address (not by an unreliable cookie), and attach all my old answers to the newly created account.  I'm not sure if it is wise to scan all your database entries of unregistered users posts, and build a newly created account on top of a pseudo-account if the e-mail address matches, but it would be nice. I think an e-mail address is a better identifier than a temporary cookie.  Please fix this bug to avoid this trouble for future users.  Also, could you, please, merge my answer to my newly created account? Or tell me, what I have to do to solve this problem?


I am trying to create a TabControl which matches the style of an existing tab control I use in WinForms, and one of the features of that is that it has tab button shapes like those found in VS (slant on the left, other edges square).  I am just starting out in WPF, so maybe I'm barking up the wrong tree, but I figured I needed to get a Border, and attach it to a Path, so that I could specify some geometry for the border... However, I just can't find any useful information. I found a 'FreeFormContentControl' class on S/O, but that is for masking content to a specific shape, rather than drawing a border around it in a specific shape.  If somebody could point me in the right direction I'd be very much obliged!


Is it possible to recover an account deleted at the SE team level?

Is it possible to recover an account that was explicitly deleted by a Stack Exchange team member (as opposed to an elected diamond moderator)? That is, the kind of account where the user requested the deletion, or committed atrocities against the community?


What are pitfalls of Intel proprietary microcode in Additional Drivers tab?

In Settings -> Software & Updates -> Additional Drivers tab this window appears (for me):    I have no idea what second driver name: Unknown:Unknown is. The option to use Intel microcode for Intel CPU was intriguing so I picked it and rebooted.  Looking at my Conky monitor:    I think the system is running cooler, CPU percentage and average load factor are a little bit lower.  Other than the fact Ubuntu developers can't vet the source code, are there any pitfalls with using Intel Microcode? Does anyone know how to find out what the "unknown device" is? ie CPU, Integrated Graphics GPU, Wifi card, USB controller, Memory Bus, etc. Could it be Ubuntu doesn't know specific details about my system and I can add it to a file?  Edit 1  @karel pointed out links to duplicate questions about Intel Proprietary Microcode however, none of them ask about the title of "Unknown:Unknown". It would be nice, for me at least, to change this to something more meaningful.  Edit 2  @Pilot6 pointed out this is not a "Driver" but rather "CPU Firmware". I have changed the word "driver" to "title" in Edit 1. Also in comments below; in order to change the title "Unknown:Unknown" requires downloading source code, modifying it and recompiling.


Entering Time data in excel in mm:ss format (without the leading 0: for the hours)

I want to enter time data into excel sheet in mm:ss format. The problem is - that although the cell format is mm:ss, if I enter the data like this:  12:33 the actual value stored is 12 hours and 33 min.  if I want 12 min and 33 sec, I need to enter 0:12:33  Is there a way to make the cell accept 12:33 as mm:ss ?


Jacobson radical of an Artinian ring is nilpotent.

Definition: For a ring with unit $R$, Jacobson Radical is defined as the ideal $J(R) = \{r \in R: rM = 0 \}$ where $M$ is simple.  How do I show the $J(R)$ is nilpotent for an Artinian ring $R$? , but it uses Nakayama, which assumes commutativity. The only lead I got is forming a chain of inclusion $J^n \supset J^{n+1} \supset \dots$ and this chain terminates with $J^{n} = J^{n+k}$ for every $k \geq 1$


Is a product of derivatives still a derivative?

Given $f : \mathbb{R} \rightarrow \mathbb{R}$ and $g : \mathbb{R} \rightarrow \mathbb{R}$ differentiable functions, does $f'g'$ always have an antiderivative ?     Origin of the question : $\ $  At first I considered two functions s.t. both $f'$ and $g'$ are locally bounded (thus locally Lebesgue integrable), and s.t. every point in $\mathbb{R}$ is a  for $f'$ and $g'$. Then it is not hard to show that every $x \in \mathbb{R}$ is also a Lebesgue point for $f'g'$, and thus $x \mapsto \displaystyle{\int_0^x} f'(s)g'(s)ds$ is differentiable and its derivative is $f'g'$.  My problem is that in the general case, I do not manage to find a form for the antiderivative without, at some point, using integrals which are not always defined...


Nudge toward proper capitalization in question title

On  we try really hard to fix spelling, grammar, and capitalization mistakes in question titles in order to avoid the . But occasionally someone enters a question with an all-lowercase title ().  It would be useful if the system could nudge the user toward capitalizing titles property by showing a hint when the user appears to be capitalizing incorrectly. For instance:    As  and  note in comments, the feature should also try to detect and advise against Title Case and ALL CAPS.


I've installed some not very good software. And now terminal is missing. Doing Ctrl + Alt + T does nothing. No left or top bar. There is nothing but the desktop. That's all. Software center is also missing so my ubuntu is ruined. Also I don't want to reinstall ubuntu then reinstall all my software.


I'm about to post an ad for our company survey but I'm not sure which of the following (the position of should) is correct.      Take the survey on which computer should our company get next.   or     Take the survey on which computer our company should get next.


If I were to jump one meter in the air and hang for one second, would I fall back down in the same spot or would the earth rotate ever so slightly under me, causing me to land a short distance away from my original point of departure?   I am conflicted on this.  If I look at the equation for angular velocity, I see that $w = v/r$ where $w$ is the angular velocity, $v$ is the linear velocity, and $r$ is the radius of the object I am on (in this case the Earth).  There is another version of this stating that $w$ = $2\pi/t_{rev}$ where $t_{rev}$ is the time it takes to complete one revolution.    Being on the Earth, I have a certain linear velocity, $v_{G}$.  When I jump in the air 1 meter, I am not applying any force except for vertically so I do not believe my linear velocity would change.  However, I am increasing the distance I am from the center of the earth so now my angular velocity would be $w_{A} = v_{G}/(r+1)$.  Therefore, it seems that my angular velocity in the air ($w_{A})$ would be slightly less than my angular velocity on the ground ($w_{G}$).  If I were to recalculate the linear velocity given this discrepancy in $w$, I would get $v_{G}=w_{G}r$ and $v_{A}=w_{A}r$.  This shows I get a small difference unless the radius in $v_{A}$ must account for the jump ($r+1$), in which case I end up with $v_{A} = v_{G}$.  I've gone around in circles trying to decide if one would actually move.  This top answer seems to think you would:   Any insight would be appreciated.  Thank you!


I tried to rev a file and then pipe it to cat > same_file but it was turning into a blank file.    While I tried rev file.txt | cat > file2.txt && mv file.txt file2.txt; it worked.    Even rev file.txt | cat >> file.txt; worked.  But when I tried rev file.txt | cat > file.txt it failed.


Sort -u without sorting but with better uniqueness?

I don't want to sort my file, just filter out duplicate lines, maintaining the original ordering.  Is there a way to use sort's unique function without it's sort function (something like cat -u would give if it existed)? Just using uniq without sort does nothing worthwhile, because uniq only looks at adjacent lines, so a file has to be sorted first.  Also, incidentally, what in hell is the difference between uniq and uniq --unique?  Here are commands on a random file from pastebin:  wget -qO - http://pastebin.com/0cSPs9LR | wc -l 350 wget -qO - http://pastebin.com/0cSPs9LR | sort -u | wc -l 287 wget -qO - http://pastebin.com/0cSPs9LR | sort | uniq | wc -l 287 wget -qO - http://pastebin.com/0cSPs9LR | sort | uniq -u | wc -l 258   In summary:   How do I filter duplicates greedily without sorting? How is uniq not unique enough that there is also uniq --unique?   p.s.  This question looks like a duplicate of the following q's, but it isn't:


Can /home/user/music and other media folders be moved to a separate drive?

I have two hard drives. One is a 256GB SSD and the other is a 1TB HDD. I installed Ubuntu to the SSD and that is where my /home directory resides. I would like to use the HDD for media storage. How can I point /home/user/music (and ~/movies, ~/pictures, etc.) to the larger HHD but keep my /home directory on the smaller, faster SSD?


Is there a dongle (or set of dongles) that allows a USB-C MacBook Pro to be connected to an Apple Cinema Display?

I am looking for a USB-C or Thunderbolt 3 dongle that has mini DisplayPort, at least 1 USB 2/3 port, and a USB-C power delivery port.   The idea is to have a single cable between my laptop and my mini DisplayPort Cinema display. Would the Apple Digital AV Multiport Adapter work with a HDMI to DisplayPort adapter?  Edit: This question is different from  for a few reasons:    The DisplayPort Cinema display uses mini DisplayPort. I would like only 1 cable going to the laptop.


Is there a direct way to prove $\lim\limits_{n\to\infty}(1+\frac{1}{n})^n=\sum\limits_{n=0}\frac{1}{n!}$?

How to prove the equality of the two definitions of $e$ directly? $$\lim_{n\to\infty}\left(1+\frac{1}{n}\right)^n=\sum_{n=0}\frac{1}{n!}$$ In other words, I want to know a proof that is not "prove $e^x=\sum\limits_{n=0}^\infty\frac{1}{n!}x^n$ and then substitute $x=1$". I guess we do not need $e^x$ to prove this equality.  There are answers in other questions like this: $$\begin{aligned} \lim_{n\to \infty}\left(1+\frac{1}{n}\right)^n &= \lim_{n\to\infty}\sum_{k=0}^n \frac{1}{k!} \prod_{m=0}^{k-1}\left(1-\frac{m}{n}\right)\\ &=^?\sum_{k=0}^\infty\left[\frac{1}{k!}\lim_{n\to\infty}\prod_{m=0}^{k-1}\left(1-\frac{m}{n}\right)\right]\\ &=\sum_{k=0}^\infty\frac{1}{k!} \end{aligned}$$ However, I think this operation of limits is wrong. For example, $\lim\limits_{n\to\infty}\sum\limits_{k=1}^n\frac{1}{n}=1$ and $\sum\limits_{k=1}^\infty\lim\limits_{n\to\infty}\frac{1}{n}=0$.  None of the answers to  answers this question. There are 3 answers to it:      1 is begging the question. It assumes $\displaystyle e^x=\sum_{k=0}^\infty\frac{x^k}{k!}$. 2 is wrong. The operation of limits is incorrect. 3 is not direct proof.


There are several solutions out there, but I do not know of one that works the way I want.  I want to make a multi-boot USB drive where I simply place my ISOs on it and chainload into them.  I don't want to have to partition the drive or copy files to the drive.  I simply want to place my ISOs on it, perhaps edit a menu.lst, and choose which one to boot from a menu.  When i do not need that ISO anymore I simply delete it.  Anyone know of a similar solution?


Every nontrivial linear functional is open

Let $X$ be a normed linear space and let $f:X\to \mathbb K$ be a nontrivial linear functional. I want to prove that $f$ is open. I tried as follows:  Let $E$ be an open set in $X$ and let $y\in f(E)$. Then there is $x\in E$ such that $y=f(x)$. Since $E$ is open there exists $r>0$ such that $B_r(x)\subset E$. Let $z\in B_1(0)$ such that $f(z)=\delta>0$. If I can show that $(-\delta,\delta)\subset f(B_1(0))$, then I am through. But I could not show this. Please help me  to resolve this.


Can anyone count my Schengen visa for me? Calculator seems to be broken

I'm trying to visit Italy again so I can see one of my family members and I don't quite get the rule.  I know it's concept is about the first day you enter the Schengen zone, the 180 day count starts and you can't be in the Schengen zone over 90 days.  I'm not even sure if I violated the rule right now.  So my situation: I was in Italy on August 4-September 4 2018 and on January 11-March 7 2019. For 89 days total if my count was right...   So question #1: Did I violate the rule? question #2: If I didn't violate it, when can I go back to Italy for 90 days fully?  Thanks in advance!


Does an absolutely integrable function tend to $0$ as its argument tends to infinity?

Suppose that $f:[0,\infty)\rightarrow\mathbb{R}$ is continuous. Is it true that   $$\int_{0}^\infty|f(t)|dt<\infty\Rightarrow \lim_{t\rightarrow\infty}f(t)=0?$$  If so can you provide a proof, otherwise a counter example. Thank you.


Is there a way to extrude a face while following the angles of the sides?

I tried extruding the edges along their normals but it would not follow the angle properly, so i was wondering if there was a way to extrude the face and as i pull it out, it will scale it to keep the edges co planar to their origin edges and corresponding face.


Can I include the page number when using \includepdf?

I'm doing a thesis and I need to include another document I created into the document.  I tried using  \includepdf[pages=-]{usermanual.pdf}  And that works well, except that it shows only the usermanual.pdf page numberings, and what I need is to shrink each page and show both that page numbering and continue the numbers of the main document.  Is there a way to make \includepdf shrink the pages?  edit: OK, I have figured out how to scale it (by adding the scale= option) - but the page numbering is still gone. How do I get it back?


I wonder if any of you know if there are separate OEM and OLP RDS CALs for server 2016?  Our distributor said that we will be able to use the OLP CALs on an OEM version of 2016 standard. Is this correct?  We got the following product codes quoted, but cannot really tell the difference besides 2 being USER and 2 being Device CALs:  6VC-03222  6VC-03224  6VC-01152  6VC-01149


Ubuntu 14.04 - installed apt-get install openssh-server, username is sun and password is 1234 and root also has password 1234.  Remotely connecting and failing to allow me.  suns-MacBook-Air:js sun$ ssh sun@192.168.1.6 sun@192.168.1.6's password:  Permission denied, please try again. sun@192.168.1.6's password:  Permission denied, please try again. sun@192.168.1.6's password:  Permission denied (publickey,password).  suns-MacBook-Air:js sun$ ssh sun@192.168.1.6 sun@192.168.1.6's password:  Permission denied, please try again. sun@192.168.1.6's password:  Permission denied, please try again. sun@192.168.1.6's password:   suns-MacBook-Air:js sun$ ssh root@192.168.1.6 root@192.168.1.6's password:  Permission denied, please try again. root@192.168.1.6's password:  Permission denied, please try again. root@192.168.1.6's password:    EDIT: PC is using ipv4 and ipv6  $ ip addr 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default      link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00     inet 127.0.0.1/8 scope host lo        valid_lft forever preferred_lft forever     inet6 ::1/128 scope host         valid_lft forever preferred_lft forever 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000     link/ether d4:be:d9:fd:84:fe brd ff:ff:ff:ff:ff:ff     inet 192.168.1.6/24 brd 192.168.1.255 scope global eth0        valid_lft forever preferred_lft forever     inet6 2a02:a03f:24af:bd00:898f:6294:6b5e:94f6/64 scope global temporary dynamic         valid_lft 345642sec preferred_lft 85306sec     inet6 2a02:a03f:24af:bd00:d6be:d9ff:fefd:84fe/64 scope global dynamic         valid_lft 345642sec preferred_lft 345642sec     inet6 fe80::d6be:d9ff:fefd:84fe/64 scope link         valid_lft forever preferred_lft forever 3: wlan0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000     link/ether 1c:3e:84:01:bf:86 brd ff:ff:ff:ff:ff:ff


Why is January month 0 in Java Calendar?

In java.util.Calendar, January is defined as month 0, not month 1. Is there any specific reason to that ?  I have seen many people getting confused about that...


Limit of the sequence $\lim_{n\to\infty}{\sqrt[n]{4^n + 5^n}}$

I have been trying to evaluate this limit:  $$\lim_{n\to\infty}{\sqrt[n]{4^n + 5^n}}$$  What methods should I try in order to proceed?  I was advised to use "Limit Chain Rule", but I believe there is a different approach.


Before I ask my question, I should say that I am very new to working with electronics and I may not quite know how to describe my problem.  I am trying to use a pin on my msp430 microcontroller I have as a replacement for a pushbutton on a device. The msp430 is 3.3v and the device I am switching is 5 volts. I was under the impression I could use a 2n3904 transistor in place of the button by applying current by turning on the pin on the msp430 which would let current go from the collector to the emmiter, and hopefully "push" the button.  This is my current setup    However, turning the pin on does not activate the circuit. When I connect the jumper for the onboard LED, I can verify the pin is working. also, when I connect the 5v from the collector to the base using a wire, I can activate the transistor.  What other information am I missing to solve this? Thanks in advance  EDIT: After reading the comments, adding a 4.6k resistor between the base and IO pin and connecting my 3v ground and 5v ground allowed me to control the transistor without any noticeable problems. Thank you!


Determinant of Character table as a matrix

I'm studying for finals and came across this problem in a book.  Suppose $G$ is a finite group with conjugacy class representatives $g_1,...,g_k$ and character table $Z$. Consider $Z$ as a matrix. Then I want to show that $\det(Z)$ is either real or purely imaginary and that $$|\det(Z)|^2=\prod_{i=1}^k |C_G(g_i)|,$$ where $|C_G(g_i)|$ is the centralizer of $g_i$.  I am very lost as to how to approach this problem. Any help would be greatly appreciated.


Iam having trouble with a code coverage issue in one of my apex class code coverage please find the code below. Apex class: public class Executeapex {  public static void executethismethod(){          DELETE [SELECT Id, CC_ContractType__c, CC_Entity__r.Name, CC_ProductBook__r.Name, createdDate FROM CC_ContractEntityProductMatrix__c];  List<AggregateResult> l_epv = [SELECT CC_ContractType__c, CC_Entity__c, CC_Entity__r.Name E, CC_ProductBook__c, CC_ProductBook__r.Name FROM CC_EntityPropertyValue__c WHERE CC_ProductBook__r.Name != null AND CC_ContractType__c != 'All' AND CC_ProductBook__r.CC_Parent__c = null GROUP BY CC_ContractType__c, CC_Entity__c, CC_Entity__r.Name, CC_ProductBook__c, CC_ProductBook__r.Name]; List<CC_ContractEntityProductMatrix__c> l_cepm = new List<CC_ContractEntityProductMatrix__c>(); for(AggregateResult epv : l_epv){     CC_ContractEntityProductMatrix__c cepm = new CC_ContractEntityProductMatrix__c();     cepm.CC_ContractType__c = String.valueOf(epv.get('CC_ContractType__c'));     cepm.CC_Entity__c = String.valueOf(epv.get('CC_Entity__c'));     cepm.CC_ProductBook__c = String.valueOf(epv.get('CC_ProductBook__c'));     l_cepm.add(cepm); } insert l_cepm;     PageReference pageRef = new PageReference('/apex/Executeapex');     pageRef.setRedirect(true);     ApexPages.AddMessage(new ApexPages.Message(ApexPages.Severity.CONFIRM,'Pricing Calculation successful!'));      }  } Test class:     @isTest   public class Test_Executeapex {        public static testmethod void  test_executethismethod(){         CC_Entity__c e = new CC_Entity__c();         e.Name = 'Test';         e.CC_Country__c = 'FRANCE';         e.CC_DefaultLanguage__c = 'English';         insert e;                    SG_ProductBook__c pb = new SG_ProductBook__c();         pb.Name = 'Test Book';         insert pb;                    CC_ContractEntityProductMatrix__c epm = new CC_ContractEntityProductMatrix__c();         epm.CC_ContractType__c = 'Routine Maintenance';         epm.CC_Entity__c = e.Id;         epm.CC_ProductBook__c = pb.Id;                test.startTest();        // Executeapex exeap = Executeapex(epm.Id);         Executeapex.executethismethod();         test.stopTest();         //DELETE[SELECT Id, CC_ContractType__c, CC_Entity__r.Name, CC_ProductBook__r.Name, createdDate FROM CC_ContractEntityProductMatrix__c];                                }  }  I get a code coverage of 64 % only please find the image below.  Thanks.


How to Update Picklist values along with record types using metadataservice?

I have used the following code to add new picklist values to the picklist field called "Tags__c" in contact object. The code works and the new picklist values are getting created successfully but they are not added to any record types and hence i have to manually add them to the record types to view the new values in UI. I need to do assign the existing record types for the new picklist values created through apex metadataservice code.  public static void updatePicklist() {     MetadataService.MetadataPort service = new MetadataService.MetadataPort();                  service.SessionHeader = new MetadataService.SessionHeader_element();     service.SessionHeader.sessionId = UserInfo.getSessionId();     MetadataService.CustomField customField = (MetadataService.CustomField) service.readMetadata('CustomField', new String[] { 'Contact.Tags__c' }).getRecords()[0];     metadataservice.PicklistValue two = new metadataservice.PicklistValue();     two.fullName= 'Sample 1';     two.default_x=false;     metadataservice.PicklistValue three = new metadataservice.PicklistValue();     three.fullName= 'Sample 2';     three.default_x=false;     customField.picklist.picklistValues.add(two);     customField.picklist.picklistValues.add(three);   handleSaveResults(     service.updateMetadata(         new MetadataService.Metadata[] { customField })[0]);    }   Can someone suggest me a solution for this?


how to get host name from bellow Example.     I/P:  | O/P: stackoverflow.com      I/P: stackoverflow.com/users/login | O/P: stackoverflow.com      I/P: /users/login  | O/P: (return empty string)   I checked parse_url function, but doesn't return what I need. Since, I'm beginner in PHP, it was difficult for me. If you have any idea, please answer.


I really like the look and feel of ubuntu before they ditched unity. The last version to use unity was 17.04. The problem is 17.04 ended life in January 13, 2018. How do I make ubuntu 20.4 (the latest version) look like ubuntu 17.04?


implementing a cryptographic hash with a block cipher

How can a cryptographic hash function be implemented/created using the block cipher?  I was wondering if we can use AES in cipher block chaining mode to implement it.


There's a related question about editing the text of spam: . I've always understood this to include any sort of edits on a spam post, including tag edits. The tag exert for the Stack Overflow  tag includes an explicit warning  DO NOT USE THIS TAG ON QUESTIONS THAT ARE SPAM, we have a special flag for that!  I recently noticed that an  on ExpressionEngine Answers SE was treated exactly the way it is not supposed to be treated on Stack Overflow - a 3000+ rep user has retagged the question as [spam] and voted to close it seven hours after it was posted. So, Should questions that are spam be retagged as [spam] in addition to flagging as spam? This is not the same question as  as that question is about editing out the text of spammy advertisements. This question is about leaving the text as-is and retagging the question as [spam], presumably to adjust its visibility on the site or bring it to the attention of users who might be interested in flagging it as spam.


probability density of a random vector greater than some value?

In single dimension, the probability that a random variable $X$ is greater than some value $x$ is easily related to the cumulative distribution(c.d.f.) as $Pr(X > x) = 1 - F(x)$ if only $Pr[X \leq x] = F(x)$ is known.  If instead we have a random vector $[X_1, X_2, \cdots, X_n]$, could you please let me know if there is a direct relation between the c.d.f and the probability $Pr[X_1 > x_1, X_2 > x_2, \cdots, X_n > x_n]$ if I only know $F(x_1, x_2, \cdots, x_n) = Pr[X_1 \leq x_1, X_2 \leq x_2, \cdots, X_n \leq x_n]$? I know it is not $1 - F[x_1, x_2, \cdots, x_n]$ in this case.


I am having a hard time understanding what is wrong with the code below. When I run it in tex, I get an error input limit exceeded. The exact error is pasted below:     I am using texmaker to run the code.     \documentclass[a4paper,12pt]{article} %{scrartcl}      \usepackage{filecontents}     \begin{filecontents*}{Bibliografy.bib}     @misc{wikipedia1,       title = "Scripting language",       author = "Wikipedia",       url = {http://en.wikipedia.org/wiki/Scripting_language},       year = 2014,     }     \end{filecontents*}      \usepackage[numbers]{natbib}     \usepackage{url}      \begin{document}         \cite{wikipedia1}     \bibliographystyle{plainnat}     %\bibliography{Bibliografy}     \end{document}


How to create Ubuntu 16.04.3 on dell g3 3779

What actions need to do to come first boot installation with out usb?


Imagine if you will, a strand of fiber optic cable 186,000 miles long. A pulse of light is sent through the stationary cable: it takes 1 second for light to travel the entire length of the cable.  Now again, imagine this same fiber optic cable travelling at 98,000 miles per second and a pulse of light is sent through the cable.  In this instance both the cable and the pulse of light are travelling in the same direction.  How long does it take the light to travel the length of the cable?  Would it take the light 2 seconds to travel the 1 light second of distance through the cable?  Carl Sagan, "Thou shalt not add thy speed to the speed of light"  Yet again, picture this same fiber optic cable is travelling at 98,000 miles per second..  but this time the pulse of light is sent in the opposite direction that the cable is moving.  Does the light take only half a second to travel the 1 light second of distance?  if the cable is moving at 99.9% the speed of light and a pulse of light is sent perpendicular to the course of the cable...  is the information lost because the light cannot move in the direction the cable is moving AND its path within the fiber optic cable?


How to merge shapefiles of two countries with QGIS

I want to merge the shapefile of Nigeria and Cameroon admin level 1. I downloaded the files from gadm but I cannot merge the files with QGIS or find a shapefile of Africa having countries at states level. Could anybody help me with this?


I just took a look at the Recent Badges column and the high frequency of occurrence of a username caught my attention:    I then visit the links of these badges to see how this user (jrharshath) earn all these badges at once. It turns out that these questions are quite old and he should have earned them a long time ago.  Famous Question:     Notable Question:     Good Question:     Why did he earn all these badges at the same time?


How to get cpuinfo to show Turbo frequency?

How do I get the frequency of my CPU when it is turbo boosted to show up in cpuinfo?


What is the correct character encoding for the following

im having a string like this which im trying to save to my mysql database  $str = "The size id 9” x 12” and some other";   here the ” is not the regular "  Its a part of an Ajax response,In the php side this is what im using  header("Content-Type: text/html; charset=utf-8"); echo $this->_helper->json(array("string is" => $str));   My but console shows 9[a sqaure box] x 12[a square box] //actually a square box cant able to paste it  And im saving this string to my database which has the charset utf8mb4 which is also not correct (ignores the ” in the table while saving)  Can somebody show me which charset i need to use for both showing in html and saving in mysql


How to find the program name of a shortcut?

I have installed some apps through the Ubuntu Software center. How can I find the corresponding terminal command? For many apps, this is not the same as the displayed name. For example, the app called Text Editor can also be launched by typing "gedit" in the terminal, but how can I find this for other apps?


Prove that $(2+ \sqrt5)^{\frac13} + (2- \sqrt5)^{\frac13}$ is an integer

When checked in calculator it is 1. But how to prove it? Also it is not a normal addition like $x+ \frac1x$ which needs direct rationalization. So I just need something to proceed.


How to Number Theorems within a Chapter?

There are lots of theorems and lemmas in my thesis which are being numbered continuously from start to end. I want the numbering to be like                  Theorem <>.<>. Same for lemmas and corollaries. I am using amsthm and the environments are defined like  \newtheorem{definition}{Definition} \newtheorem{lemma}{Lemma}   Is there any simple way to get chapter-wise numbering?


Intuitive characterization of the graph of a twice differentiable function

In high school textbooks, the following characterizations are often found:     A function is continuous if its graph can be drawn without lifting the pencil.   and     A function is differentiable if its graph has no sharp bends.   Is there a similarly intuitive characterization for twice differentiable functions based on the shape of the function graph alone? Of course, we can say things like "a function is twice differentiable if the graph of its rate of change has no sharp bends" but that does not really help when trying to recognize the graph of a twice differentiable function.  A notable example for where this could be relevant is , which are widely used in design and architecture and often appear as "perfectly smooth" shapes, although they are in general only twice differentiable at the joints between the individual spline polynomials.


same content, different meaning? (with + subject + adjective (participle)" construction)

Other studies, including in the United States, have shown this same   pattern, with girls who begin developing earlier than their peers   vulnerable to depression in adolescence.   Without context, are there two meaning? :   Girls are vulnerable to depression in adolescence. Peers are vulnerable to depression in adolescence.   Put another way: if sentence is      There are girls who begin developing earlier than their peers vulnerable to depression in adolescence.    then is there ambiguity which group is vulnerable to depression in adolescence?


For 15k+ users: Guidelines on Protecting Questions?

Just got a notice on StackOverflow that I can now "protect questions" .... I've seen diamond moderators do this a few times before, but for the most part I haven't seen it used too often. Therefore I have little body-of-knowledge on when/if questions should be protected.  Any tips on when/if questions should be protected?


Can't find process that is creating backups

We have an instance of SQL Server 2008 installed on a customer server. The customer's IT department is in charge of the various backups of the machine.  The SQL Server log shows there is a full backup every day at 7 PM but we can't find evidence of any plan scheduled in SQL Server.  The technicians we contacted couldn't tell us if there was some sort of automatic backup, all they told is that the entire machine is being backup up.  Using a script I found in  I found out that the physical device name is a GUID and that this means that this is an external backup process:  USE [msdb] GO  SELECT      [bs].[database_name],      [bs].[backup_start_date],      [bs].[backup_finish_date],      [bs].Server_name,     [bs].user_name AS [BackupCreator] ,     [bmf].physical_device_name FROM msdb..backupset bs   INNER JOIN msdb..backupmediafamily bmf ON [bs].[media_set_id] = [bmf].[media_set_id]  ORDER BY [bs].[backup_start_date] DESC   This is a row from the above query:     db_name 2015-09-16 19:01:23.000   2015-09-16 19:01:28.000SERVER_NAME  NT AUTHORITY\SYSTEM{424F084A-F35D-4A66-8FC7-072268A89A77} 5   Moreover the backup start and finish date spans only for 5 seconds, so I guess it's clear it's not a job of sql server.  This is a line from the log:     2015-09-03 19:02:30.71 Backup   Database backed up.   Database: db_name, creation date(time): 2012/10/12(20:52:11), pages dumped: 3290021,   first LSN: 276028:152755:172, last LSN: 276028:152827:1, number of dump devices: 1,   device information:   (FILE=1, TYPE=VIRTUAL_DEVICE: {'{95380B0A-D50B-408F-B95F-1AB8975BA7F8}5'}).   This is an informational message only. No user action is required.   So, since they can't help us what can I do to track down the process responsible of the backups? We need this because we want to coordinate the backup in an ordered manner, and do the transaction log backups too in order to keep the log at a reasonable size (now we do shrink the log every week, and this is not the good way to go).


What is the general formula for calculating dot and cross products in spherical coordinates?

I was writing a C++ class for working with 3D vectors. I have written operations in the Cartesian coordinates easily, but I'm stuck and very confused at spherical coordinates. I googled my question but couldn't find a direct formula for vector product in the search results.  Assume that I have $ \overrightarrow{V_1} $ and $ \overrightarrow{V_2} $ vectors in shperical coordinates:  $ \overrightarrow{V_1} = r_1\hat{u_r} + \theta_1\hat{u_\theta} + \phi_1\hat{u_\phi} \\   \overrightarrow{V_2} = r_2\hat{u_r} + \theta_2\hat{u_\theta} + \phi_2\hat{u_\phi} \\   \hat{u_r}: \mbox{the unit vector in the direction of radius} \\   \hat{u_\theta}: \mbox{the unit vector in the direction of azimuthal angle} \\   \hat{u_\phi}: \mbox{the unit vector in the direction of polar angle} $  $ \theta $ and $ \phi $ angles are as represented in the image below:   What is the general formula for taking dot and cross products of these vectors?  $ \overrightarrow{V_1} \bullet \overrightarrow{V_2} = ? \\   \overrightarrow{V_1} \times  \overrightarrow{V_2} = ? $  If you need an example, please work on this one:  $ \overrightarrow{V_1} = 2\hat{u_r} + \frac{\pi}{3}\hat{u_\theta} + \frac{\pi}{4}\hat{u_\phi} \\   \overrightarrow{V_2} = 3\hat{u_r} + \frac{\pi}{6}\hat{u_\theta} + \frac{\pi}{2}\hat{u_\phi} $


Is WiFi calling supported on ios 8 on iPhone 5?

I have an iPhone 5, and I don't have good reception at home, so I was hoping to use wifi calling after upgrading to ios 8, but I can't find an option to enable it.  BTW I'm with T-Mobile carrier.


Recently, I created a blog in Blogger.com(or blogspot.com). My problem is that I can't see my content when I search on google for it. Similarly, I created the same page using Wordpress.com which shows the content on search on google.  What should I do to show my content on google search using blogger?  EDIT: (Edited after this )  More specific question - what part of a blogger blog does google search. I get the impression that it searches the header and the posts, but not the widgets, so if you are using the blog more as a website, your widget content won't get searched. I may be wrong though. Does anyone know exactly what is searched, heading, subheading, widgets and posts?  Please help I am new to blogspot.com or blogger.com


Installing KDE on Ubuntu, fails to fetch files because of versions mismatches

Trying to install KDE on Ubuntu 16.04 with the following commands:  sudo add-apt-repository ppa:kubuntu-ppa/backports sudo apt-get update && sudo apt-get dist-upgrade sudo apt-get install kubuntu-desktop   I do not get to the selection of the display manager.  I have a list of errors like:  E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/r/ruby2.3/ruby2.3_2.3.1-2~16.04.5_amd64.deb  404  Not Found [IP: 91.189.88.149 80]   Going on the corresponding http page, I see this file with a slightly different version number:  ruby2.3_2.3.1-2~16.04.6_amd64.deb   How can I install KDE if there is no exact match between the packages' versions?    The answers to  do not seem to cover my case, i.e. with most packages correctly installed, but with some not found due to minor version mismatches.


This has been flagged as a duplicate but to clarify once my drop down appears I do not want to run any more jquery click function on it.  I simply wish to select the drop down available by select I mean select it as you would a regular drop down.    I'm currently adding some li elements from some dynamic data like so.  $(document).ready(function() {        $('#size li').click(function() {              if ($(this).text() != '') {               // var select = $(".dynamic li").closest("ul").prop("id");               // var value = $(this).text();               // var dependent = $(this).closest('ul').data('dependent');               // var _token = $('input[name="_token"]').val();               var productId = $(this).attr("value");                // here we'll make ajax call to post details of dropdown and get new data               $.ajax({                     url: "{{ url('product_details/fetch/productId') }}".replace("productId", productId),                     dataType: "json",                     success: function(result) {                         // clear the drop downs so no data will be there                         $("ul[data-dependent='quantity']").empty();                          // add quantity drop down based on selected size                         $.each(result.productQuanties, function(i, item) {                           $("ul[data-dependent='quantity']").append("
" + item.quantity_name + "
");                         })   This appends to an empty drop down ul and the html code viewable in the dom is this:
25

50

100
 etc.   This appears as a drop down on my web page.  However when I go to select the li nothing happens.  By nothing happens I mean the drop down just appears as it did before I clicked anything.  The data is still there but it is not showing as selected.  The expected result would be for me to just click on it and it remained clicked.


Windows 10 always ask for default browser

is there a way to force Windows to always ask which browser I wan't to use? I know how to set the default browser, but there is no option to unset.   Thanks for any answer.


How to pack the game files into one without using any file compressor?

Well, one example is this file of the game The Sims 2 for PS2: quickdat.arc. The file contains this .arc extension, but it's no one an archive file and it contains some data of the game inside. How can I do this? Put so many files in one?  How to do something like this? All the game files inside one without using a file compressor?


Show that is not possible to form a unity ring structure on $(\Bbb Q /\Bbb Z , + )$

I'm trying to show exactly what the title says.  I tried to construct a multiplication from $\mathbb{Q}/\mathbb{Z}\times \mathbb{Q}/\mathbb{Z}\to \mathbb{Q}/\mathbb{Z}$ defined as $\hat{x} \ast\hat{y} =\widehat{xy}$ and find a contradiction. But that didn't get me anywhere.  Any help please ? Thank you !


meaning of as - as in following sentence

"The Plaza hotel is as near as it gets to the best shopping along New York's famous Fifth Avenue." Whats the meaning of this sentence?and what does as-as means here?


How do I install Albert on Ubuntu 18.04?  I tried to install it from the terminal following a tutorial for Ubuntu 17.10 but that didn't work for 18.04.  So I purged Albert and want to try again but there is no tutorial targeted for Ubuntu 18.04 LTS.


I am trying to update from version 2.0.0 to version 2.1.2 in Ubuntu 64bit/14.04LTS but when I click "update and restart" it says "Downloading patches" and it closes.   It does not start again and if I try to open it, the version is still 2.0.0.   Is there any tutorial to manually update android studio? (keep all settings and etc).


Selecting specific row in attribute table using ArcPy (without iterating through whole table)?

I am using ArcGIS 10.2 and have assumed until now that it is possible to select a specific row in an attribute table. However, I can't seem to find a way to do this. The only available methods seem to be to return a search or update cursor, and to iterate through each row in the table.   Is there really no way to select only the desired row?  What I am trying to do is to select a target row - e.g. 50423 - and then to update a field for that row. I'd hate to iterate through the entire table of millions of records.


public static map<id,RecordType> MapRecordtype = new Map<id,RecordType>([SELECT id, DeveloperName FROM RecordType where sobjecttype ='move__c' and                                         Developername in('Assignment','Draft','Domestic_Draft','LTST_Draft','MX_Domestic','MX_Domestic_draft','Termination','International_Relo','Localization','J1',                                        'Back_To_Back','Repatriation','PAM','US_Domestic_Relo','CHN_Domestic_Relo','CHN_Domestic_Draft')])   Can we write schema for above query?


Sum of independent Poisson random variables is a Poisson random variable

Suppose $x_1$ and $x_2$ are independent Poisson random variables with parameters equal to $\lambda_1$ and $\lambda_2$ respectively. Show the sum of $x_1$ and $x_2$ is also a Poisson random variable using the moment generating function.   I know the function for Poisson is $\frac{\lambda^x e^{-\lambda}}{x!}$ and moment for it is $M_x(t) = e^{\lambda(e^t - 1)}$.  So I have to show $M_{x_1 + x_2}(t)$ is of the form $e^{k(e^t - 1)}$. But I don't know where to plug in $\frac{\lambda^{x_1} e^{-\lambda}}{x_1!} + \frac{\lambda^{x_2} e^{-\lambda}}{x_2!}$ into the moment function.


How can I create directories recursively?

Is there a Python method to create directories recursively? I have this path:  /home/dail/   I would like to create  /home/dail/first/second/third   Can I do it recursively or I have to create one directory after the other?  The same thing for:  chmod and chown can I do it recursively without assign permissions for each file/dir?


India to Jamaica via UK and USA: do I need transit visas?

I am going to Jamaica for a medical conference and I have booked my flights via UK and New York. I will stay in JFK, New York airport only two hours and then fly New York to Jamaica.  Do I need visas for USA and UK to catch connecting flights?


how can i call class name from extend class without implements in this class method (i want extend this function from parent class) and without call new class. If i call class name like this:  abstract class foo {      public static function get_name(){          return get_class();          //or          return __CLASS__;     } }  class bar extends foo {}  echo bar::get_name();   i get:  foo   expect:  bar


Safely removing and reclaiming Windows partition when Ubuntu was initially installed via Wubi

I wish to reformat a Windows 7 partition, reclaiming it for use under Ubuntu 14.04 already running on the machine. Windows is no longer needed.   The partition is mounted in Ubuntu and its files accessible to Ubuntu, but as mentioned no longer needed. How can I most safely go about this?   And also, Will this consequentially screw up the boot process? To the point of boot - the machine started as Windows 7, then had Ubuntu 12 installed via Wubi, later Wubi was discarded of and the Ubuntu partition became a regular Ubuntu partition. The machine is still dual boot, but as mentioned Windows will no longer be needed.


TikZ: Z-order curve (Lebesgue curve) with Lindenmayer systems

I am trying to draw a  witz TikZ using the Lindenmayer systems. This is kind of hard since this curve consists of paths with changing angels. And it seems to me, that the only angle I can change is angle=135. So I did not find a way to draw a Z-order curve. Here is what I have so far:  \documentclass{article} \usepackage{tikz}  \usetikzlibrary{lindenmayersystems} \usetikzlibrary[shadings]  \begin{document} \pgfdeclarelindenmayersystem{Lebesgue curve}{   \rule{L -> F+F-FR}   \rule{R -> F+F-F}}  \begin{tikzpicture} \shadedraw [bottom color=white, top color=white, draw=black] [l-system={Lebesgue curve, step=20pt, angle=135, axiom=L, order=2}] lindenmayer system; \end{tikzpicture} \end{document}   What I get is this:    Does not really looks like a . I really want to use \usetikzlibrary{lindenmayersystems}. Any ideas how it can be done?


As my title says. Who makes them, or can they be done via spare parts. It seems that if they stop manufacturing light sabers to their enemies, they would then have balanced the force.


How to automount partition at startup or login?

With my previous installation I just had  /usr/bin/udisks --mount /dev/sda2 && /usr/bin/udisks --mount /dev/sda3   among the startup applications, but on my new installation (also 12.04.4) it has no effect.  The command works fine in the terminal.  Autostarting firefox using the startup applications tool works also.  How do I automount those partitions?  (No, update does not help!)


So I removed bootcamp and now there is a partition called "free space" that I can't remove.  Here is my output from diskutil list:    Here is the screenshot from disk utility showing the partitions:    And here is the error I get when I try to remove "free space":    Heres the output when I run   sudo diskutil apfs resizeContainer disk0s2 0


How do I rename a directory via the command line?

I have got the directory /home/user/oldname and I want to rename it to /home/user/newname. How can I do this in a terminal?


dummy output and no sound in sound setting ubuntu 2018.04 in lenovo think pad

I have searched it's solution and tried all possible solution but could not able to fix this issue.


When to use "be going to" / present continuous in future?

In our lesson we have Be going to  future plans (personal) prediction based on something we can see or hear  Present continuous  future arrangement fixed plan  Is this right? Can someone explain this to me with examples?


Is a scan with an antivirus software enough?

I have read that if your computer gets hacked you can't be really sure that you have a clean system even if you manage to stop the hacker and the best thing to do is to reinstall your OS. Do you agree with this?  What about different types of file including audio,video,pdf and executable files. If I move them to an external drive is it enough to scan them with an antivirus? If the antivirus says that it did not find any threats, can I trust it? Is it correct at least 99%?


I am using kubuntu 13.04 and accidentally I have deleted My important .pdf files by pressing shift+delete. It was in the home directory. Is there any way by which I could recover them back ?


command not found and syntax error near unexpected token

I have this script to divide a file over a 100000 or even more in 50000 lines.  desc()                                                     {                                                       echo $1 $2|awk '{d=$1;}                                 BEGIN {a=1;b=0}                                            { f=d"0"a;                                                while ((getline x<d)>0)                                   { print x>>f".txt"                                        if (b++>=50000)                                            {                                                         close(f);b=0;a++;f=(a<10)?d"0"a:f=d""a                }                                                  }                                                   }                                                   END {print "Terminado ... ! "}'                         }                                                      if [ -f $1 ]; then                                              desc $1 $2                                      fi                                                        When I execute it I got this error message:  sh-3.2$ parte.sh pa.txt                                  : command not found                                      '/parte.sh: line 2: syntax error near unexpected token ` '/parte.sh: line 2: `desc()                              sh-3.2$                                                    Can anyone help to solve it?


The hourly configured cronjob asl started to exit with return code 127 since one day (after run of apt-get update; apt-get dist-upgrade).  Now I'm receiving hourly reports like:  run-parts: /etc/cron.hourly/asl exited with return code 127   Where does it come from? Config file looks quite fine.  /EDIT: I saw the "duplicate thread". Unfortunately there is only that one small chapter about cron.hourly scheduled jobs. All the logs files etc. are not mentioning anything. Executing the cron step by step shows following error:  root@s01:/etc/cron.hourly# /var/asl/bin/aum -u Checking versions ...   Updating Web Application Firewall to 201608111803: updated        [PASS] Restarting Apache ...  Generating report ...   Finished ------------------------------------------------------------------------------- Errors were encountered:  L CODE SOURCE                        MESSAGE - ---- ----------------------------- ------------------------------------------ 2 9901 ASLCommon::cmd_system         ERROR: '/bin/cp -af /var/asl/rules/modsec/                                      template-* /var/asl/data/templates/ >/dev/                                      null 2>&1 (1)'


Ideals of the ring of rational numbers with odd denominators

Consider the subring $R\subset\Bbb Q$ , $R=\{\frac ab\ | \ a,b\in\Bbb Z, b\text{ odd}\}$  I am struggling with the following questions:  (1) Prove that the ideals of $R$ are $\{0\}$ and $2^nR$ for $n\ge 0$  (2) Prove that $R$ has 2 prime ideals and 1 maximal ideal  For (1) I can see that $2^nR$ is an ideal for $n\geq0$ but I'm not sure how to show all ideals other than $\{0\}$ are of this form  With question (2),  $2^nR\subsetneq 2^{n-1}R\subsetneq...\subsetneq 2R\subsetneq R$  so $2R$ is clearly the only maximal ideal and is therefore prime, but I am not sure where to go from here.  Any suggestions?


checkall not working in second page in pagination

I am using the DataTable library. On each page I am displaying 10 rows total. I have 10 records(rows). I have one checkbox button. If I click the 'checkall' button it has to select the 1st page of 10 rows. I then go to the second page and click the 'checkall' button. It has to select the 2nd page of 10 rows.  In total 20 rows has to be checked. However my code is not working like this. Can anyone tell me what is wrong here?    <button type="button" id="selectAll"> Select All </button>	   var baseURL = '<?php echo $this->config->item('base_url'); ?>'; $(document).ready(function() {   var allComments = $('#comment-table').DataTable( {     "bStateSave": true,     "processing": true,     "serverSide": true,     "searching": false,     "ordering": false,     "ajax":  {     "url": baseURL+"Comments/ajaxHandler",     "type": "POST",     "data": function(d) {       d.method='getAllComments';       $.extend(d, generateField($('#comment-table')));     }   },     "columns": [       { "data": 'comment' },       { "data": 'username' },       // { "data": 'status' },       { "data": 'assignedTo' },       //{ "data": 'userCategory' },       { "data": 'orgName' },       { "data": 'commentDate' },       { "data": 'lastUpdateOn' },       { "data": 'commentCount' },       {         "data":   "actions",         "orderable":false       }     ],     "order": [[1, 'asc']]   });    $('#select-all').on('click', function(e) {     e.preventDefault();     $(".sub_chk").prop('checked', $(this).is(':checked'));     }); });      I tried like below code   $(document).ready(function () {         $('body').on('click', '#selectAll', function () {            if ($(this).hasClass('allChecked')) {               $('input[type="checkbox"]', '#example').prop('checked', false);            } else {             $('input[type="checkbox"]', '#example').prop('checked', true);             }             $(this).toggleClass('allChecked');           })      });


So apparently when using javascript to make a copy of an array copies a reference and so I get pass by reference issues. Good to know.  So how do I copy an array of objects (a class effectively) without passing by reference. I tried using slice but it didnt work.  Thanks.


Why are Pokemon so difficult to find for me?

I live in a suburban town outside of Harrisburg, Pa. I know people who get swarmed by Pokemon where I live in Pokemon go. However, It is very difficult for me to find any. I can bike for 5 Kilometers and only find 2, maybe 3 on occasion. And the ones I am finding are low leveled ones. I do frequently have the White spinning pokeball loading on the side of my screen as well. My character is moving properly however on the map. Any help would be appreciated. I really want to enjoy this game.This is different from the other question because the other specific he lived in a low traffic area/rural. I live in a highly populated town. I also can specify that I dont see any when my friends find them right next to me.


my problem should be fairly simple but I am a LaTeX Noob... :) Using WinEdt 10 under Windows 7, compiling with PDFTeXify (standard).  If I use basic symbol commands like \pi or \leftrightarrow, no matter whether in floating text or math environment, the file does not compile any more. Otherwise, it does.  Error-Message I get:  ! Missing $ inserted.  inserted text (in <> brackets)  $ 1.87 ...r = i - \pi  ?  ! Emergency stop.   What is going on here? I am puzzled... :)


Is it possible to have an entity with fields, which doesn't use bundles?

I have an entity (using entity API) for which I would like a fixed number of fields (and would prefer to use fields and the API rather than just creating properties) - it makes no sense to make a bundle - but do I need to create a bundle nonetheless to allow fields to be attached?  I'm thinking this is the case since field_attach_instance takes a 'bundle' value in the array to pass in (and field_config_instance contains the bundle column).


Sequence of monotone functions converging to a continuous limit, is the convergence uniform?

I'm reading some extreme value theory and in particular regular variation in Resnick's 1987 book Extreme Values, Regular Variation, and Point Processes, and several times he has claimed uniform convergence of a sequence of functions because "monotone functions are converging pointwise to a continuous limit". I am finding this reasoning a little dubious.  EDIT: Thanks to some comments below I realized I was confused, I really want each $f_n$ to be a monotone function on $[a,b]$, so it isn't quite like Dini's theorem. Formally I am wondering:  Let $f_n:[a,b]\rightarrow\mathbb{R}$ be a sequence of non-decreasing functions converging pointwise to the continuous function $f$. Is the convergence uniform?   My thoughts:   I have been thinking that since the set of discontinuities of each function $f_n$ is at most countable, the set of discontinuities of the entire sequence is at most countable...something something? Any thoughts would be greatly appreciated!


Copy subset of multimap into a new multimap

// this has data from elsewhere, just showing its the same type multimap<string,string> map_with_data; string string_key = "some_string";  // not working: multimap<string,string> new_map;  new_map = map_with_data[string_key];   I want a return of a multimap with only the key pairs with the key string_key. What is the right way to do this or is this method of direct copying even possible?  I'm getting: error: no match for ‘operator[]’ (operand types are ‘std::multimap<std::basic_string<char>, std::basic_string<char> >’ and ‘std::string {aka std::basic_string<char>}’)|


A counterexample to "$k\mid n$ if and only if $k\mid n^2$"

I am looking to prove the following statement false:  Let $k$ be a positive integer, then $k\mid n$ if and only if $k\mid n^2$.  So I am trying to find a $k$ where this does not hold but after aimlessly trying numbers I was curious if there is a methodical way to find $k$.


Object slicing with base class vector and derived class pointers

Here is a simplified version of my scenario:  class Base {     class Entry     {         ...     }      std::vector<Entry *> entryList;      void processEntry() = 0;      void OnProcessEntry(); // processEntry callback };  class Derived : public Base {     class Entry : public Base::Entry     {         ...     }      void processEntry()      {          ...          entryList.push_back(new Entry);           OnProcessEntry();     } };   When I copy a Derived::Entry pointer into entryList, the object is sliced to Base::Entry. Is there any way I can get the Entry back to its original "unsliced" state within the base class method OnProcessEntry?  If anybody can recommend a more appropriate title please do and I will edit.  Thanks.


I'm new to the game and trying to make my first constructed deck. My understanding of the card rule is I can only have four cards of one kind.  What does this precisely mean?  For instance, does this mean I can only have four rat cards total or four rat cards of several kinds? If two different cards do the same thing (like  and ), can I have four of each?


Is changing your passport a good strategy for removing a negative immigration history in Schengen?

When certain nationalities of people want to travel in the Schengen zone, they are required to apply for a Schengen visa. This is a straight-forward process for most, but when an applicant has had problems with removals or refusals they may be reluctant to apply because they want to avoid the complexities of serial visa refusals. This reluctance may lead some into wondering how their history can be expunged, and this line of thought inevitably leads to the idea of getting their passport replaced with a new one.  This sounds like a great formula for people who have had prior refusals or removals.  In essence they can become 'reincarnated' as a first-time traveller and hence avoid the unpleasantness of revealing their prior interactions with the Schengen authorities.  The relevant parts of the application form are shown here...    Nothing asks about a prior removal or refusal, and the applicant is left with simple denials for 3 questions in order to present themselves as a first-time traveller.  Assuming the person is happy to set aside the moral issues associated with denying their history, are there any holes to this strategy?  This question is scoped to Schengen visa applications so that it will not be unmanageably broad, but answers from other regimes (particularly the affluent Commonwealth and the USA) are acceptable as long as the main points are relatively consistent with Schengen.


Is there something like python's interactive REPL mode, but for Java? So that I can, for example, type InetAddress.getAllByName( localHostName ) in a window, and immediately get results, without all this public static void nightmare() thing?


I wrote this simple Javascript for auto and manually hiding bootstrap alerts.  $(function () {     $.ajaxSetup({ cache: false });     $("[data-hide]").on("click", function () {         $(this).closest("." + $(this).attr("data-hide")).hide();     });     window.setTimeout(function () {         $(".alert").fadeTo(700).slideUp(700, function () {             $(this).hide();         });     }, 5000); });   I want to cancel the setTimeout when the cancel button is clicked. How can I do this?


This equation is directly given in my book and I am don't know anything about its proof.I tried L'Hospital rule by differentiating the both numerator as well as denominator(division rule), but the result is still coming in indeterminate forms.I am a beginner , and haven't practiced limits that much. This formula is really confusing me.


Load jQuery from Stack's CDN if Google's CDN is blocked (or always)

Google's CDN is nice, but it's not 100% reliable for all users. It occasionally fails to load for me. Other users , and some .  It's one more possible point of failure. It would be preferable if Stack Exchange didn't depend on it.  If you don't want to stop using it, consider adding a fallback if it fails to load. Something like this:  <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> <script>   if (!window.jQuery) {     document.write('<script src="https://cdn.sstatic.net/stackoverflow/content/js/jquery-1.7.1.min.js"><\/script>');   } </script>


How to set the default program or application for handling a given file type or url protocol?

How can I change or set the default application for handling a given file type? What about for some specified actions, like "open web browser" and "preview image"?


List my downvoted posts that were edited

Consider the following situation:  I downvote a question / answer with a comment The answerer / asker edits the question and improves it  In that case, I think the downvote should be removed. I know it's possible to find my downvotes by going to:  http://stackoverflow.com/users/1438393/?tab=votes&sort=downvote  but that requires me going to each and every post, check if it was edited etc. I was wondering if it can be done with the . I've looked at the existing queries searched for a similar one but couldn't find anything except  and . (I've seen  answer by Jeff and this is just a personal view) So, my question is: how can I list the posts that I downvoted that were edited later?


Let $G=G_1\times G_2$, prove $G'=G_1'\times G_2'$

I'm reading Hans Kurzweil's "The Theory of Finite Groups", in 1.6.2 (b) it's claimed that let $G=G_1\times G_2$, one has $G'=G_1'\times G_2'$ because:     $$\begin{align} G'&=[G_1G_2,G_1G_2]\\ &=\prod_{i,j}[G_i,G_j]\\ &=G_1'\times G_2'. \end{align}$$   Here $G'$ is the commutator subgroup defined as  $$G':= \langle [x,y] | x,y \in G\rangle,$$ and $$[x,y]:=x^{-1}y^{-1}xy.$$    However, I'm a bit confused here about the proof.  First, what does it mean by $\prod_{i,j}[G_i,G_j]$, is it $[G_1,G_1][G_1,G_2][G_2,G_1][G_2,G_2]$?   Second, why $[G_1G_2,G_1G_2]=\prod_{i,j}[G_i,G_j]$?    With $$G'=\langle [a_1b_1,a_2b_2] | a_1,a_2\in G, b_1, b_2 \in G_2 \rangle,$$  I can't move all $G_1$ part to the left side without changing the element $a_1,a_2,b_1,b_2$, because in general $a_1b_1\ne b_1a_1$.


Installing 8.1 Windows | Removing Ubuntu?

I'am running Ubuntu right now ( 32 bit) , I burned the Windows 8.1 ISO (64 bit) on my  USB now when I launch my USB on boot , I have language select , then accept terms ... and when I have to choose Parititions of where to install Windows 8.1 , I get the following error : "Nous n'avons pas pu créer de partition, ni localiser une partition" It's in french , sry . (In English: We did not create a partition or locate a partition)  I tried to delete the Parition and make new ones same error (Do I have to delete the System Partition ? and remake ?) since I can't install over it because it's not NTFS   & NO , I'am not planning to dual boot , I just wanna remove Ubuntu & put WIndows  gparted :


As we know in the universe there are two types of charges, positive for some elementary particles and negative for other. By inversion charge sign of elementary particles the world be the same this couldn't affect some physical phenomena. If not, so the charge signs just hold the information that only exist two kind of electricity.


Difference between shadowing and overriding in C#?

What's difference between shadowing and overriding a method in C#?


I am trying to replace the old 3par LUNs with new Vmax LUNs. Can someone help me  make a script to ease the task?  Is it possible to create 2 files, one file having the 3par LUNs, the other file having all the new VMAX LUNS? Then replace all the content of mulipath.conf.  Currently I am using:  sed -i "s/360002ac000000000000001f20001add7/60002ac000000000000001f20001accb/g" multipath.conf   Can someone help make the command work?  sed "s/`cat 3par.txt`/`cat vmax.txt`/g" multipath.conf


I just suggested  to  and it was rejected by Community. I believe it was a good edit. I improved formatting and grammar.  What I edited:   There was a line that was not code and I removed it from the code block. The instances were the OP used i instead of I were changed. At the bottom there are some code fragments and I formatted them.


Allowed memory size of 134217728 bytes exhausted in system\image.gd.inc reported for styled images

There is a content type in my website that has an image field. Some contents have images that are larger than 20MB.   I created an image_style called fp which scales and resizes the images in 800X400px it works well but when the browser displays this resized version it reports the following error     Allowed memory size of 134217728 bytes exhausted (tried to allocate 73834563 bytes) in modules/system/image.gd.inc on line 237   I know by increasing the memory_limit the problem will be solved (even though it is not recommended).  From what I know Drupal creates a distinct file of the original image for every image style, so in sites/default/files/styles/fp there is a resized version of the original image. It means when browser displays the resized image, the PHP needs no process to resize the image, it only displays another image which is the resized version. But why it displays the above error while it only needs to display an image (styled version) which its size is about 200kb ?


Feature scaling for classification and regression

Is it true that one should generally scale each of the features before feeding them into common classification models such as Support Vector Machine, Logistic Regression, etc?  What about for regression models?


How concatenate string and variable to a string in C

I need to concatenate a string and a variable to fill another string:  #include <stdio.h>  int main(){      char *te1;     char *te2;     char *tabela[2];      te1 = "text 1";     te2 = "text 2";     tabela[0] = "text 0, " + te1 + ", " + te2;     printf("%s\n", tabela[0]);     return 0; }   expected result:     text 0, text 1, text 2


i tried to gradually interleave one list with another. i mean: starting from the lists  a0 = list(range(3))      # [0, 1, 2] a1 = list(range(10, 13)) # [10, 11, 12]   i would like to be able to iterate over the combinations  [0, 1, 2] [10, 1, 2] [0, 11, 2] [10, 11, 2] [0, 1, 12] [10, 1, 12] [0, 11, 12] [10, 11, 12]   where first no element of a0 is replaced by the corresponding element of a1, then one, then two and then all of them.  what i came up with so far i this:  a01 = list(zip(a0, a1))  for i in range(1<<len(a0)):     print(list(item[(i >> j) & 1] for j, item in enumerate(a01)))   where i zip the lists together and use i as a flag that tells me from what list to select an element.  this seems quite inelegant. is there something more elegant? i feel that  provides something that could be used here but i could not figure out anything so far.    the suggestion in the  applied here is:  from itertools import product  for item in product(*zip(a0, a1)):     print(item)   this produces the desired results (in a different order).  to get the order correct  suggests in the comments:  list(map(lambda x: tuple(reversed(x)), product(*reversed(list(zip(a0, a1))))))   this answers the question.


Error message when friends try to join my minecraft server

I made a minecraft server yesterday and my friends had no issue joining. My internet was out this morning and now they get an error saying io.netty.channel.abstractchannel$annotatdsocketexception: host is down, any idea on how to fix that?


I dont see the error but the message "illegal character in ar." popped up (line 14)

\documentclass [12pt]{article} \oddsidemargin=0pt \topmargin=0pt \textwidth=6.5in \textheight=8.5in \begin{document} \begin{center} {\large\bf\LaTeX\ Example 7} \end{center} This example demostrates two methods for typesetting piecewise defined functions. The array structure can be used to typeset function definitions that have multiple cases: \begin{equation} f(x)=\left\{ \begin{array}{r@{\quad\mathrm{if}\quad} i} x^2-1 & x\in(-infty,-1]\vspace{2pt}\\ {\displaystyle \frac{x^2+1}{x^2-1}} & x\in(-1,1) \vspace{6pt}\\ x^2+1 & x\in, \infnty) \vspace{4pt} \end{array} \right. \end{equation} \end{document}


There is no doubt that 50mm lenses, if all other variables are held equal, will beat any other lens when it comes to value for price (lower f/number). I want to know why.  Possible theories I have heard:   There some physical property of the lens that makes it fundamentally cheaper to produce (i.e. no real magnifying or odd wide-angle lens elements). The lens makers have had years and years to optimize the design of the lens    in order to make the manufacturing process cheaper.   The implication with the first possibility is that 50mm lenses will always fundamentally be cheaper. Unfortunately this will always plague cropped sensor camera owners with slight telephoto lenses if they want great valued lenses (i.e. 35mm lenses will never be as cheap at as low an f/number).  The implication of the second possibility is that one day, cropped sensor camera owners will be able to get absurdly cheap and high quality 35mm lenses.  Cropped sensors may one day fall by the wayside with Moore's Law, but for now they are going nowhere fast.  Any insight is much appreciated!


Lest they do anything before we.     Lest they do anything before us.   One of my students, for their creative writing coursework, phrased his sentence as shown in quote 1, but I have a confusion as to which (1 or 2) is more grammatically appropriate, and the literary device used in the first sentence, if any.


Trouble proving that $\mathbb{R} \approx \textbf{I} $

Prove that $\mathbb{R} \approx \textbf{I} $ by showing that the function $f: \mathbb{R} \rightarrow \textbf{I}$ defined by $$f(x)=\frac {x}{1+|x|}$$ is one-to-one and onto, wherein $\mathbf{I}=[0,1]$.  I have a problem in showing that $f$ is one-to-one since, for $-\frac{1}{2} \in \mathbb{R}$, $f(-\frac{1}{2})=-\frac{1}{3}$ and $-\frac{1}{3} \notin \textbf{I}$.


large Bayesian prediction uncertainty for gam (mgcv) logistic regression

I'm running across an interesting case where the estimated uncertainty based on the Bayesian simulation approach outlined in Simon Wood's book (Generalized Additive Models (2004), section 4.8; as coded in the examples of help(predict.gam)) is giving surprisingly large uncertainty for logistic regression predictions where the point prediction is very near 0.   Here's example R code for simplified problem. Note that the true probability of success is low for a large part of the domain and this is where the uncertainty blows up for the Bayesian approach for the response but not the linear predictor (and not for the se.fit values).  library(mgcv)      x = (1:200)/200 # note that the empirical probabilities are 0 except  # in the middle of the domain y = c(rep(0, 100), 3, 7, 12, 15, 12, 20, 15, 9, 5, 8, 3, rep(0, 89)) z = cbind(y, 100 - y)  k <-  150 mod = gam(z ~ s(x, k = k), family = 'binomial')  rmvn <- function(n, mu, sig) { ## MVN random deviates   L <- mroot(sig); m <- ncol(L);   t(mu + L %*% matrix(rnorm(m*n), m, n))  }  n <- 500  # Bayesian uncertainty calculation, as per help(predict.gam) Xp <- predict(mod, type="lpmatrix") draws_coef <- rmvn(n , coef(mod), mod$Vp)  draws_lp <- Xp %*% t(draws_coef)  # type = "link" draws <- exp(draws_lp) / ( 1+exp(draws_lp))  # type = "response"  # Bayesian standard deviation sds = apply(draws,1,sd)  # plot to show Bayesian standard deviation is very large where # predictions are near zero, unlike standard errors par(mfrow = c(1,3)) plot(x, predict(mod, type = 'response')) plot(x, sds) # mgcv's estimated prediction standard error sef = predict(mod, type = 'response', se.fit=TRUE)$se.fit plot(x, sef)  # Bayesian standard deviation and standard error very similar # for linear predictor par(mfrow = c(1,2)) sds_lp <- apply(draws_lp, 1, sd) plot(x, sds_lp) plot(x, predict(mod, se.fit=TRUE)$se.fit)   Comparing to the output of predict.gam with se.fit=TRUE, the Bayesian standard deviation and the predict.gam standard error are very similar for for the linear predictor (and those uncertainties are very large where the success probability is very near zero), but for the reponse scale the standard error is small where the Bayesian uncertainty is large. Mathematically this seems to just be a consequence of the fact that the se.fit calculation in predict.gam() seems to involve applying the delta method to the type="link" se.fit values, and this scales the type="response" values down a lot where the fitted probabilities are near zero.  Does anyone have any insights to help explain the large uncertainty? Presumably some sort of instability in parts of the domain where the linear predictor is very negative, but I'd like to understand it better and figure out if there is a workaround, as I need posterior draws for downstream processing and not just pointwise standard errors.


How to evaluate $\int {{x^2-1}\over{(x^4+3x^2+1)\arctan(\frac{x^2+1}x )}}$

How do I go about doing this: $\displaystyle \int {{x^2-1}\over{(x^4+3x^2+1)\arctan(\frac{x^2+1}x )}}$  I have tried integration by parts but it seems to be making the problem more complicated.  Also, I have thought of substitution but I couldn't find any suitable substitution.


If $f(x + 1) + f(x − 1) = f(x), \forall x \in \mathbb{R}$,then how to find $k$ such that $f(x + k) = f(x)$?

Let $f(x)$ be a function such that $f(x + 1) + f(x − 1) = f(x), \forall x \in \mathbb{R}$. Then for what value of $k$ is the relation $f(x + k) = f(x)$ necessarily true for every real $x$?  The answer/solution suggested in my module is like this: "this is a bit involved but can be proved that $k=6$". Could anybody explain me this?


I am getting the following message whenever I start my laptop:  Windows Boot Manager   Windows failed to start. A recent hardware or software change might be the cause.   To fix the problem:    1. Insert your Windows installation disc and restart your computer.    2. Choose your language settings, and then click "Next."   3. Click "repair your computer."  If you don't have this disc, contact your system administrator or computer manufacturer for assistance.     File: \Boot\BCD    Status: 0xc000000f  I have googled about the error, and from the message it looks like I need to boot my laptop from the Windows installation disc.  My laptop has Windows 7 Professional SP1 x86 installed, but when I try to insert Windows 7 Professional x86 I get the same error. Do I require an SP1 disc? I did setup CD/DVD drive as first in the boot order, but I still got the same error.  Also what other options should I try to get to the Windows 7 System Repair Screen, so that I can repair/rebuild the BCD file?


Can php+mysql scale to handle 5000 request per second?

I have web application build with php and mysql, and I except 5000 requests/sec in the first 6 months. and I register a dedicated server with CPU intel Xeon 4 cores 3.3GHz, 16G ram, Uplink 1000Mbps, bandwidth 25TB, and I tested the webserver using ab benchwork and the results is:  for txt file : ab -n 10000 -c 1000 http://mywebsite.com/file.txt results: 1500 requests/second for php file with only echo "test"; results: 130 requests/second   I just want to know where is the bottleneck?.


Filter the score of the questions on the homepage before loading them

At the moment questions on the homepage are loaded by the top N most recent and then ones with a score of -4 or less are filtered out. This doesn't make much difference for a user who is logged in but consider anonymous users; their home page is only 15 questions in length. If someone was to edit several posts that bump to the top with a score of -4 or less then the home page looks tiny. At the moment on SFF, for example, the homepage for anonymous users only shows 9 questions:  At one point it only showed 3 questions (a few weeks back):  Can the filtering logic be changed to before the questions are loaded to appear on the homepage?


I would like to know what would be the best way to do unit testing of a servlet.   Testing internal methods is not a problem as long as they don't refer to the servlet context, but what about testing the doGet/doPost methods as well as the internal method that refer to the context or make use of session parameters?  Is there a way to do this simply using classical tools such as JUnit, or preferrably TestNG? Did I need to embed a tomcat server or something like that?


Force every new terminal to open in new tab

I have the habit of opening a terminal using the "Open terminal here" command in folders. This causes a few terminals to remain open while I don't really use them anymore, or I get confused which terminal was serving which purpose.  I know I can label terminal tabs and such, but can I force a new terminal that is being openened, to become a new tab in a terminal screen (if there is one open already?) This way I always have them tabbed in a single terminal.  EDIT Okay, so it's been a while and my linux mojo has improved a lot. So the current solution to this situation for me has been using tmux. It's a little more advanced than regular terminals and tabs but once I got the hang of it (about an hour of trying) I'm very pleased with the way of going about things.   First of all, I made sure that whenever I opened a terminal using ctrl-alt-t, it would open tmux by default. This can be achieved by adding the following line in your .bashrc file after all the aliases:  [[ $TERM != "screen" ]] && exec 'tmux   Now everytime you spawn a terminal using ctrl-alt-t you will be presented with a tmux.  To make sure you only have one terminal open at the same time I did the following:  First of all, you can reattach a session in tmux by running tmux attach -d. This will disconnect all other clients connected to this session. This works fine if you are the only person using the sessions.  But, if you don't have a session running it will say it did not find any sessions. Ergo, you need something like if(nosession) { tmux } else { tmux attach -d }. To do this create of append to your ~/.tmux.conf file the following line:  #if run as "tmux attach", create a session if one does not already exist new-session -n $HOST   (Thanks to )  In my .bashrc file, I changed the line added previously to the following:  [[ $TERM != "screen" ]] && exec 'tmux attach -d'   What this does is detach all other clients from the tmux session. When you do this, all other terminals close. They close because this line also makes sure that when you open a terminal (ctrl-alt-t), it immediatly starts a tmux session.  Ergo, attach -d kills the other sessions. So this is the closest fix I could get and I'm rather happy with it! :)  The only thing I would still like is that when I press ctrl-alt-t it opens up my current session and also creates a new window. I haven't figured that out yet so feel free to help!


How to setup proxy authentication only once to the entire system?

I'm a newbie :)   My context: I installed Ubuntu in a desktop behind a proxy that needs authentication, its very very boring because I need to configure proxy's URL, and to enter my username and password in everything, example: firefox, eclipse, and etc...   I need something to leave it in a transparent way(for programs, it would be as if they are in a direct connection)  There is a natively way (or third-party program) that allows to storage my proxy authentication(preferably, encrypted), and Ubuntu ALWAYS use this information to ALL System and software?


Did Luke have help from Obi-Wan in using the Force in the wampa cave on Hoth?

In The Empire Strikes Back, Luke is hanging upside down in the wampa cave and reaches out to pull his lightsaber to him in order to cut himself down. However, we know that at this point his Jedi powers are severely limited, and as we see later in the movie he has much to learn from Yoda. So, as we see him reach out for his lightsaber, it weakly wriggles in place then shoots up to his hand. My question is does he receive any help through the Force from Obi-Wan (who we see a few minutes later) in retrieving his lightsaber from the snow?


I need to do date arithmetic in Unix shell scripts that I use to control the execution of third party programs.   I'm using a function to increment a day and another to decrement:   IncrementaDia(){ echo $1 | awk ' BEGIN {         diasDelMes[1] = 31         diasDelMes[2] = 28         diasDelMes[3] = 31         diasDelMes[4] = 30         diasDelMes[5] = 31         diasDelMes[6] = 30         diasDelMes[7] = 31         diasDelMes[8] = 31         diasDelMes[9] = 30         diasDelMes[10] = 31         diasDelMes[11] = 30         diasDelMes[12] = 31 } {         anio=substr($1,1,4)         mes=substr($1,5,2)         dia=substr($1,7,2)          if((anio % 4 == 0 && anio % 100 != 0) || anio % 400 == 0)         {                 diasDelMes[2] = 29;         }          if( dia == diasDelMes[int(mes)] ) {                 if( int(mes) == 12 ) {                         anio = anio + 1                         mes = 1                         dia = 1                 } else {                         mes = mes + 1                         dia = 1                 }         } else {                 dia = dia + 1         } } END {         printf("%04d%02d%02d", anio, mes, dia) } ' }  if [ $# -eq 1 ]; then         tomorrow=$1 else         today=$(date +"%Y%m%d")         tomorrow=$(IncrementaDia $hoy) fi   but now I need to do more complex arithmetic.   What it's the best and more compatible way to do this?


Customize feed on stack exchange android app

I happily enjoys Stack exchange android app. I am really having a good experience browsing through various sections .  However, the questions that appear on first page when I open the app seems to be not from the tags which I like/favorites one. Is there a way to customize which questions to appear ?


UK tourism visa refused twice - if refused again should my friend appeal?

Here's the situation. My friend applied for a UK tourism visa stating that she would be visiting the UK for 2 weeks (It's written in the visa that she could stay up to 180 days) and granted but she ended up staying for 5 months (150 days). And the visa was valid for 6 months   During the 5 months she traveled a lot in the UK, Wales and Scotland. She stayed with friends so she didn't have to pay for the accommodation. So, she thought it would be ok which the immigration didn't say anything when she went back. She's Thai national.  Now she wanted to come back so she applied for the visa again and got rejected, UK Border gave the reason that they didn't believe she would be coming for tourism again because she stayed for 5 months already. And she applied again because she wanted to come here for vacation during Christmas and got rejected again with the same reason. Now, she wanted to apply again for the third time and she's not sure of what more documentation she needs to provide for UK Border to believe that she will come here for vacation and nothing else. For that last two rejections she also showed return tickets.  Not sure if anyone has seen this kind of case before and how to resolve it?


I am adding a sample application which add 2 numbers. I am trying to make a class for this. Below is my HTML and Javascript. Now getting an error from add method     Uncaught TypeError: Cannot read property 'val'of undefined'.    I know this is due to this context in event listeners. Can you please guide how to deal this?                  <title>JS Tips</title>         <meta charset="UTF-8">         <meta name="viewport" content="width=device-width, initial-scale=1.0">
Total Marks in First Sem
         <input  type="text" id="num1" class="num1" placeholder="Marks in Science" />         <input type="text" id="num2" class="num2" placeholder="Marks in Maths" />         <button id="add" class="add">Add</button>         <button  id="result" class="result">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</button>


Is there an easy way to clean up useless files?

Is there a command or an application i can download or run that would clean up and uninstall useless and unused files? I just want to free up some space on my machine, and that is my main goal.


I need to print a newline character to a file with a C program running in windows and compiling with MinGW. However, it has to print \n only, instead of \r\n.  Take for example the following program:  #include <stdio>  void main() {     FILE * fid = fopen("out.txt", "w");     fprintf(fid, "\n");     fclose(fid); }   Reading the created file in Matlab with the command:  text = int32(fileread('out.txt'))  Yields:  1x2 int32 row vector  13 10  Yet, somehow, I need it to print only 10 and not the 13 (=\r) character.


I study mathematics and as I'm sure you can imagine, often read the word formula. I also quite often come across formulas used as the plural. This always annoys me as I was under the impression that the correct plural of formula was formulae?   Is there any consensus or information as to why there is two (seemingly) accepted forms of this? I thought that formulae probably has a Latin derivation and formulas may be Americanized?


Why i get error when set value to label in new thread c#?

I'm write simple application to load csv file,and in c# code start the new thread to load heavy csv file with this code:  Thread workerThread = new Thread(DoWork); workerThread.Priority = ThreadPriority.Highest; workerThread.Start();    and into the DoWork i try run this code:   public void DoWork()  {  label1.Text = "ok";  }    but when receive label line i get this error:  An unhandled exception of type 'System.InvalidOperationException' occurred in System.Windows.Forms.dll  Additional information: Cross-thread operation not valid: Control 'label1' accessed from a thread other than the thread it was created on.     What happen?thanks.


$\sum_{n=1}^\infty\frac{z^n}{n}$ does not converge uniformly on $\mathbb{D}$.

It is required to prove that the series $\sum_{n=1}^\infty\frac{z^n}{n}$ does not converge uniformly on the open unit disc centered at $0$, i.e. $\mathbb{D}$. Clearly by virtue of the ratio test the series converges pointwise on  $\mathbb{D}$. However I find it difficult to see why the convergence is not uniform. Could someone please give me a hint?


I recently  . One of the users who read my answer felt that it would have been helpful if I included the output (from terminal) to the code I used in my answer:     You should include the output of your examples, people reading this won't always have the possibility to try it out. :)   Since I did not have access to a terminal at the time, I asked the user to run my code on the terminal and edit the output thereof into my post:     @flornquake: Normally, I would, but I'm not at a terminal at the moment. I'd appreciate it if you were and could, though   I had to walk away from my computer for a while, but eventually, I did see a suggested edit (it was however, already reviewed by the time I could weigh in). The edit does exactly what I asked and has been rejected (2-3) for reasons that I don't agree with (This edit is incorrect or an attempt to reply to or comment on the existing post).   Now, I would like to be able to overrule the decision and include the suggested edit into my post. I prefer this option, as the alternative is for me to copy-paste the suggested edit and manually splice it in, myself; which is less efficient.  Does anyone think this is a viable feature to add?


Why don't arrays in Javascript resize when you remove an item?

In many languages, the standard dynamic list (not fixed-size array) type will resize after an item is deleted:  Python:  myList = ['a', 'b', 'c'] del(myList[0]) print(len(myList)) # Prints '2'   C#:  var myList = new List<string> {"a", "b", "c"}; myList.RemoveAt(0); Console.WriteLine(myList.Count); // Prints '2'   and so on.  However, in Javascript, the list length stays the same, even though the element evaluates to undefined ( tells me that it's different to array[index] = undefined):  Javascript:  var myArray = ['a', 'b', 'c'] delete myArray[0] console.log(myArray.length) // Prints '3' console.log(myArray) // Prints "[ , 'b', 'c' ]" in node, '[undefined × 1, "b", "c"]' in Chrome  myArray[0] = undefined console.log(myArray) // Prints "[ undefined, 'b', 'c' ]" on both node and Chrome  myArray.splice(0, 1) console.log(myArray) // Prints "['b', 'c']"   My questions are:   Is the JS array delete behaviour by design or an oversight that couldn't be fixed for fear of breaking legacy code? What exactly is the 'undefined-like' value that replaces the deleted array element?


I'm trying to create record Type selection screen in LWC, but getting this error  afterRender threw an error in 'c:createContact' [Cannot read property 'recordTypeInfos' of undefined]  HTML:  <template>     <lightning-combobox name="recordType" label="Record Type" placeholder="Choose Status"                         value={value}                          options={recordTypeId}>      </lightning-combobox> </template>   JS:  import { LightningElement, track, wire, api } from 'lwc'; import { getObjectInfo } from 'lightning/uiObjectInfoApi'; import CONTACT_OBJECT from '@salesforce/schema/Contact';  export default class CreateContact extends LightningElement {      @track statusOptions;     @track value;     @api objectApiName;      @track objectInfo;      @wire(getObjectInfo, { objectApiName: CONTACT_OBJECT,})     objectInfo;       get recordTypeId() {         // Returns a map of record type Ids          console.log(this.objectInfo);         const rtis = this.objectInfo.data.recordTypeInfos;         return rtis;     }  }


unable to upgrade from 12.10 to newer ver.

im having extreme issues being unable to upgrade and force upgrade keeps telling me to check repositories, i want to install a newer ver. but unable to do much of anything. what is the proper steps and can some one walk me through it?


Auto-size dynamic text to fill fixed size container

I need to display user entered text into a fixed size div.  What i want is for the font size to be automatically adjusted so that the text fills the box as much as possible.  So - If the div is 400px x 300px.  If someone enters ABC then it's really big font.  If they enter a paragraph, then it would be a tiny font.  I'd probably want to start with a maximum font size - maybe 32px, and while the text is too big to fit the container, shrink the font size until it fits.


I am using axure RP 30 day free trial and I have a startup idea. I need to make the website really quickly. But when I at the wireframe stage I encountered with a problem.Problem is, According to which page size (width) I need to design my website? My screen resolution is 1920x1080 but I don't know how to design for all screen sizes? But one more problem: Some people say use 960grid system but when I use 960 grid there is no screen resolution like 960x480 960x350 etc. Please help me I hope I explain well my problem thanks. Sorry for my bad english   Edit: I mean when I design the page for 960 grid Does that design fit bigger screen resolutions for example 1920x1080? Or Do I need to use 1200 grid system or 980 etc to fit the design bigger pages than 1024x780. When I design my page for 960 grid Will  my website be seen as 1024x768px on every screen? Which page size I need to use to wireframe my pages? My screen size is 1920x1080. I need to place my elements every corner of the page not just on the middle. So for this job Is it useful to design with 960grid? thanks


I want to change the icon in the start menu:    I'm willing to mess with the Registry, and I am well aware that I should make backups (and do!)  How will I accomplish this?


Solving an interesting polynomial with degree 4?

So the equation is as follows:  $$ 6x^2  -\ 25x \ + 12 \ +\ \frac6{x^2}\ + \frac{25}{x} = 0$$  So one thing that is immediately observable is that pairs of roots will be of the from $$x_1=-\frac{1}{x_2}$$  How do I go about solving this equation systematically ? I have already solved it based on trial error to get roots as 2,3,-1/2,-1/3. But I need to show systematic manipulations to get there.  Thanks a lot !


Should I modify a gerund using an adjective or an adverb?

I know that a gerund is a noun, so it should be modified by an adjective. However, it is also a verb form. Can I modify it by using an adverb?


Why does general relativity need space to be continuous?

So I was reading this article because I'm new to this stuff and don't quite understand the ways in which quantum mechanics and GR contradict each other. Why does general relativity require space to be continuous?


Given $\exists x.\lnot p(x)$, use the Fitch System to prove $\lnot \forall x.p(x)$

This is what I've come up with so far, but I'm stuck at step 11:  \begin{align} &(1)\quad \exists x.\lnot p(x) & \text{Premise}\\ &(2)\quad \lnot p(x) & \text{Assumption}\\  & (3)\quad \forall x.p(x) &\text{Assumption}\\ &(4)\quad p(x) & \text{Universal Elimination: 3}\\ & (5)\quad \forall x.p(x)\rightarrow p(x) & \text{Implication Introduction: 3, 4}\\ & (6)\quad \forall x.p(x) & \text{Assumption}\\ & (7)\quad \lnot p(x) & \text{Reiteration: 2}\\ & (8) \quad \forall x.p(x) \rightarrow \lnot p(x) & \text{Implication Introduction: 6, 7}\\ & (9) \quad \lnot \forall x.p(x) & \text{Negation Introduction: 5, 8}\\ & (10) \quad \lnot p(x) \rightarrow \lnot \forall x.p(x) & \text{Implication Introduction: 2, 9}\\ & (11) \quad \forall x.(\lnot p(x) \rightarrow \lnot \forall x.p(x)) & \text{Universal Introduction: 10} \end{align}  I figured Existential Elimination would be step 12, but all I get is    $\lnot p([c6])$.  Any help? Thank you.


Make larger capacitance using multiple capacitors?

Can I connect five 100μF capacitors in series or parallel to form 500μF in total that I can use like a regular 500μF capacitor? (Apologies for noob question.)


How could I reach root after switching from bash to zsh?

It's very weird that after switching to zsh from bash, I can't access root.  I normally use 'su' to login as root after I login as a normal user (username is normalusername) with less privileges. And it was always nice. But after switching root shell from bash to zsh, when I try to login via su, I got:  normalusername@(none):~$ su Password: (enter the correct password) Cannot execute zsh: No such file or directory   When I access root directly via ssh from my Mac, I got:  localhost:~ myname$ ssh -lroot 106.186.120.20 root@106.186.120.20's password: (enter the correct/incorrect password) Permission denied, please try again.   No matter whether I entered the correct password, it comes again and again.  So I intentionally entered a wrong password with "su" from a normal user, I got:  normalusername@(none):~$ su Password: (entered a wrong password and pressed enter) (pressed enter) su: Authentication failure   After entering the incorrect password I didn't see anything, I typed enter twice and then got the su: Authentication failure result.  I tried for many times and the conclusion is:   If I enter the correct password, it will tell me that "Cannot execute zsh: No such file or directory" If I enter the incorrect password, it will not showing up anything until I hit enter for 2-6 times.   It seems to be an indication that I didn't just forget the "correct password". But how can I access root anyway?  The entry in /etc/passwd is  root:x:0:0:root:/root:zsh