I have the following loop, but it doesn't stop and produces the wrong dates.  #!/bin/bash i=0 thedate="2018-03-28" enddate="2018-04-02" while [ "$thedate" != "$enddate" ]; do     thedate=$( date -d "$thedate + $i days" +%F )      new_date=$( date -d "$thedate " +%Y%m%d )     printf 'The date is "%s"\n' "$new_date"     i=$(( i + 1 )) done   I expected this output:  The date is "20180328" The date is "20180329" The date is "20180330" The date is "20180331" The date is "20180401" The date is "20180402"   How can I achieve this?


Where can i configure themes?! and how?!

I am using Adwaita theme and I love it but I just wanted to do some changes in some colors highlights and graphics. yes I can install compizconfig and other software, but I want to understand a little  bit about the files management and things like that.   So what I want in particular is where are the files(directories) in which I can configure the themes?  Second where can I find more technical and programming Information about the themes and things related.  Thanks In advance.


I know that this has been asked multiple times. But so far I have not found a working solution.  I have the following code in a view:  @using (Html.BeginForm("RoleEdit", "AccountRoles", FormMethod.Post, new { id = "updaterole" })) {     <button name="mySubmit" formaction="@Url.Action("SetDefaultRole", "AccountRoles")" value="MakeDefault" class="button small">Make Default</button>      ...       other code      ...      <button type="submit" class="button small" value="save" name="save" id="save">@Resources.DashBoardTags.UpdateRoleTag</button> }   And in the controller:     [HttpPost]     public ActionResult SetDefaultRole()     {          return View();     }   and:      [HttpPost]     public ActionResult RoleEdit(List<UserRole> userRole, string mySubmit)     {          if (mySubmit == "Save Draft")         {             //save draft code here         }         else if (mySubmit == "Publish")         {             //publish code here         }      }   When the code executes:   When clicking on the first submit button it ignores the SetDefaultRole function and executes the RoleEdit function. The RoleEdit function value mySubmit is null.   Please show my the error of my ways !!!!  I have looked at the proposed solution:   From this I have created an attribute extension called MultipleButton and changed my code so that the the code now looks like this:  View:  @using (Html.BeginForm("RoleEdit", "AccountRoles", FormMethod.Post, new { id = "updaterole" })) {    <button value="SetDefaultRole" name="action:SetDefaultRole" class="button small" formmethod="post">Make Default</button>      ...       other code      ...      <button value="RoleEdit" name="mySubmit:RoleEdit" class="button small" formmethod="post">@Resources.DashBoardTags.UpdateRoleTag</button> }   Controller      [HttpPost]     [MultipleButton(Name= "action", Argument = "SetDefaultRole")]     public ActionResult SetDefaultRole()     {          return View();     }      [HttpPost]     [MultipleButton(Name = "action", Argument = "RoleEdit")]     public ActionResult RoleEdit(List<UserRole> userRole)     {         return View();     }   Within the new extension, MultipleButtonAttribute shown in the Proposed Solution link above, is executed, the following line of code always returns a null value:  controllerContext.Controller.ControllerContext.RouteData.Values[Name] = Argument;   Can anyone help.


I have to prove that the ring $R=K[x,y]/(x^2-y^3+y)$ is not a UFD showing that the prime ideal $(x,y)R$ has height 1, but it's not principal.    Do someone know a simple way to prove it? I know there are others way to solve the problem, for example to consider the Picard group to the elliptic curve, but I am interested to solve it in the way I explained. Thanks!


Can't get correct number formatting as a string

I've developed a custom control for money input, which contains UITextField and UILabel. When the user taps on it, it becomes active and switches to the UITextField for data input and accepts only numbers and dot symbol, when the user finishes editing it becomes passive and switches to UILabel just to show formatted money value. But there is one little issue which I'm unable to fix a lot of days already. Let's say the user writes down 88.99 and presses done, this becomes "$ 88.99" in a UILabel, next when the user again taps on it to edit the initial value I get the following value "88.98999999999999". To not present the entire code I selected the core part in a playground format which gives the same result as in my complete project: extension NumberFormatter {     static public func defaultCurrencyFormatter() -> NumberFormatter {         let formatter = NumberFormatter()         formatter.usesGroupingSeparator = true         formatter.numberStyle = .currency         formatter.currencySymbol = ""         formatter.minimumFractionDigits = 1         formatter.maximumFractionDigits = 2         formatter.currencyGroupingSeparator = ","         formatter.currencyDecimalSeparator = "."         return formatter     } }  let stringValue = NumberFormatter.defaultCurrencyFormatter().number(from: "88.99")?.stringValue  print(stringValue) // result is Optional("88.98999999999999")  I have no idea why using this NumberFormatter I get such a result. I was thinking that explicitly setting minimumFractionDigits and maximumFractionDigits will solve my issue but it does not affect my result


How does Wolverine survive even his bones are adamantium?

How is Wolverine able to survive?  The main source of blood is bone marrow. But his bones are adamantium - Even if we assume that his bones are covered with adamantium, how does he get blood?


I've installed Ubuntu 19.10, language/locale/formats are set in US/en. And everything seems to work OK, except datetime language on login screen (when I turn on my laptop and see fields for user/password logging). It has local-language-style.  So, datetime language for user / lockscreen picks up correctly, but for login screen - nope. What's the reason and how can I fix this ?  Output of locale command:  LANG=en_US.UTF-8 LANGUAGE= LC_CTYPE="en_US.UTF-8" LC_NUMERIC=en_US.UTF-8 LC_TIME=en_US.UTF-8 LC_COLLATE="en_US.UTF-8" LC_MONETARY=en_US.UTF-8 LC_MESSAGES="en_US.UTF-8" LC_PAPER=en_US.UTF-8 LC_NAME=en_US.UTF-8 LC_ADDRESS=en_US.UTF-8 LC_TELEPHONE=en_US.UTF-8 LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=en_US.UTF-8 LC_ALL=


How help to the development community with the most duplicated questions on Stack Overflow

How it may works?   I think it is important for the development community to understand what issues are raised again and again (of course by tag or similar tags). This may point on some poor documentation, missing tutorials, etc. Especially if we able to correlate these questions with the user's reputation. I assume here (may be wrongly) that the low reputation mostly belongs to the beginners. Other aspect is hot topics. I guess Stack Overflow will show many duplicated questions about some bug/issue/problem in the new release software. Then the software community may receive fast indication about such issues.   The rational of this question not belongs to the merge issue like in  (suggested as the duplicated). I am talking about providing more information to the different development communities that may lead to the site impact increasing.


What's the directory/location where the installations from repositories go?

I want to install the program ImageJ from the Ubuntu repositories (mainly because it's easier than compiling the code from source), but I need to add a few plugins to the basic installation.  I would like to know where would the program be installed (physically, like the directory path on my computer) so that I can manually add the plugins. Does anybody knows what it is?  Thank you very much!


Let $G$ be an abelian group. Show that the mapping $\phi:G\to G$ given by $\phi(x) = x^{-1}$ is an automorphism of $G$.

Let $G$ be an abelian group. Show that the mapping $\phi:G\to G$ give by $\phi(x) = x^{-1}$ is an automorphism of $G$. Show that if $G$ were not abelian, then $\phi$ would not be an automorphism.   Okay so this is broken down into two cases;     case $1$: $G$ is abelian then $\phi$ is an automorphism   case $2$: $G$ is non-abelian then $\phi$ is NOT a automorphism   For case $1$: I want to show that $\phi(xy)=\phi(x)\phi(y)$, $\phi$ is $1$-$1$, and $\phi$ is onto, but I'm not sure how to do so.  For case $2$: I want to show that $\phi(xy)\ne\phi(x)\phi(y)$


Mumbai to london - dubai change of planes

I have a flight from mumbai to London with 3 hrs layover(change of planes at Dubai), both Mumbai to dubai and dubai to london flight is of Emirates only and terminal is also same. (T3)  do i reuqire transit visa for the same?


I was just wondering how complex numbers can be applied in electrical engineering and why we use complex numbers over regular, real numbers for this application (e.g what capabilities does the complex number have that real numbers do not in electrical engineering)?  I have done some research concerning impedances and understand how they are written in complex form, however I am still confused why complex numbers are necessary in this field over regular numbers.


I can draw a simple table with non merged rows and columns. However, I want to draw a table in latex with some rows merged as shown below, any ideas on how to do it?


I am not a physicist, I am just an engineer.   But I dared to ask whether the temperature changes the perception of time.  Let's consider a particle that "stops" at absolute zero. I was thinking as a hypothesis, that our perception of time changes and the particle actually does not stop at all.


Count number of lines in files then compare which has more (BASH)

I need to count the number of lines in x files and compare which has more.  The one I've done only takes two files and compares them. Any idea how to make it x amount of files?  echo Enter the filename read fn  echo Enter another file read fn1  for WORD in $(cat $fn) do         echo "$WORD" done | wc -l  for WORD in $(cat $fn1) do         echo "$WORD" done | wc -l  if (cat $fn | wc -l > cat $fn1 | wc -l) then         echo First file has more lines than second file else if (cat $fn1 | wc -l > cat $fn | wc -l) then         echo Second file has more lines than first file.  fi


Can moderators lock user accounts?  If so, what are the main reasons that they would do so?


How does having neutral make electrical systems safer than electronic systems which do not have neutral?

Electrical systems have neutral besides live and ground. Electronic systems have only VCC and gnd. I read that having neutral is necessary for safety in electrical systems because of the higher voltage and current involved.   How does having neutral make electrical systems safer?


Start with an equilateral triangle with unit area. Trisect each of the sides and then cut-off the corners. In this case, we get a regular hexagon - see the picture below. Next, trisect each of the sides of the hexagon and cut-off the corners. This will give a dodecagon, but not a regular one.   Continue this process ad infinitum.  What is the area of the limiting "polygon"?  My first thought was that it would be the circle tangent to the midpoint of each side. However, by making some pictures, it becomes clear quite quickly that the limiting polygon is not a circle and, in fact, might perhaps be an ellipse. The problem with that is that while there is a unique circle passing through any three points in general position, I need five generic points to specify a conic.   Can anyone suggest any hints as to how to find the area? By "hint" I don't mean "what you think might work", I mean "what you have tried and you know will work". Thanks in advance.


Why can't I get a decent white background for my product photography

This is the example image i have taken this few days.   why can't I get the full white background like the photo from the internet?


Accessing the object mode preview mesh, or reproducing it?

When in object mode with wireframe display, Blender only draws edges between non-coplanar faces, or edges which only belong to one face. For example this image shows switching between object and edit mode:    Using the python API, is there a way to access the object mode preview mesh, or some other way to tell if an edge would be rendered in object mode? i.e., without having build a list of faces for each edge and then check whether every pair of faces is coplanar?  I don't want to display all edges in object mode, so option "Draw all edges" is of no use. In fact that is the exact opposite of what I want. I want to export only the edges which are shown in object mode, using a python script.


Why is my DBN predict only 2 out of 5 classes?


When updating to HTML5, will adding , , and microdata result in rendering problems in older browsers?

When updating our website from XHTML to HTML5, will changing the following things result in rendering problems for our site in older browsers like Internet Explorer 8:   Specify <!doctype html>. (The current XHTML web pages are well-formed enough) Add new specific HTML5 semantic block tags like <header> and <article>. We are not going to use CSS for these tags - just wrap the existing parts of the site. Add microdata attributes to the existing tags like <p>.   After reading some books and many Internet articles, I see no problems as the new tags and attributes will be simply excluded from rendering as unknown in those older browsers. However, I admit, in practice there can be some issues, especially with IE. Does anybody have any real experience with that?


could you use fabricate to excavate a area of earth?

Could you use  to excavate an area of earth? if you cast the spell targeting the ground in a 120ft cube in front of you, could you clear out the area? If so, what would happen to the raw materials? It specifies you have to create something, but could you just create a single stone/similar?


Show for any real numbers $a_1,a_2,...,a_n$ $$(a_1+a_2+···+a_n)^2 \leq n(a_1^2+a_2^2+...+a_n^2)$$  I know the definition of  Cauchy-Schwarz is $$(\sum_{i=1}^n a_ib_i)^2  \leq  \sum_{i=1}^n a_i^2 \sum_{i=1}^n b_i^2$$ I can write the same problem with following form, but I would not know how to continue to prove it $$(\sum_{i=1}^n a_i)^2 \leq n(\sum_{i=1}^n a_i^2)$$   Note: an other definition of Cauchy Schwarz $$ \langle\ v,u\rangle^2 \leq \langle\ u,u\rangle \langle\ v,v\rangle$$  Could you give me a steps what to use?


Prove that $\sin(a)$ + $\cos(a)\leq\sqrt{2}$

$$\begin{align*} \sin (a) + \cos(a) &\leq \sqrt{2}\\ (\sin(a)+ \cos(a))^2 &\leq (\sqrt{2})^2\\ \sin^2(a) + 2\sin(a)\cos(a) + \cos^2(a) &\leq \text{2} \end{align*}$$ Am I doing it right? I need help.


I'm trying to do a simple, low power, low cost power "switch" for a custom board (I know, it will be complicated).  The device will be powered by default by a coin cell battery (3V3 and lower) and can also be powered by USB (5V). I will use a boost converter () for the battery, it will allow a constant 3V3, with a bypass for sleep mode controlled by a MCU.  This is a part of the power rails I designed:         – Schematic created using   The battery is protected by the schottky diode (some nA can flow into it, but it is accepted by the manufacturer)  If the VUSB is not present, the diode D2 will avoid reverse current in USB connector. D4 is protecting the LDO itself from the reverse current by bypassing it.  The boost bypass will be activated by the MCU when it is in active or when USB is plugged.  Do you think it will work correctly?


Whenever I open my documents, all the folders in it are displayed with a lock icon. Therefore, I cannot delete any file or folder in it.  I tried changing the root access using sudo chmod user:directory/  but it fails. I am not able to delete or perform any file action with it.  What action should I perform to fix it?


How to achieve a super leavened cake as the Pierre Herme ones?

I made several cakes in my life. I know the difference between different leavening agents. I know that low temperature tends to make flatter cakes, but I never could get this kind of shape. If I use a super hot oven I burn the surface and I don't get this shape, there must be something else. Does anyone have experience doing this? Does anyone have a recipe from any modern pastry chef showing this kind of cake? Maybe gluten content in the flour could help?  Thank you


If I get a game from the Apple store, can I play it on other computers?

Let's say I buy a game from the app store from this computer. Then I copy the game files to a external drive and go to a friend and copy them on his computer. Will my friend's computer play the game?


No objects or images to bake to error, driving me nuts

I am trying to bake texture for a model, and I get the infamous error "No objects or images to bake to". I have done a lot of googling to try and solve this, and in particular I have read pretty much every post related to that on this forum. It does not help and I still get the error. Here below are some details - please ask for more if necessary. Any help would be hugely appreciated.   Set up: I have an obj file, in the same folder as an mtl file along with a jpg picture for the texutre.   Import: I open up Blender 2.7 on Linux, default mode, delete the cube and subsequently import the obj file; I can see it alright and I recenter it.   Texture: in the materials and texture tabs, I select the jpg image for texture, so that when I set the viewport shading to texture I see the texture on the 3D model view.   Bake: making sure that coordinates is set to UV and that Map is set to UVMap in the Mappin dropdown menu of the Texture tab, I then go to the Render tab to the Bake dropdown menu. I click the Bake to Color vertices and choose Texture in the rollout. Clicking bake then yields the error.   Details: I make sure that the object is selected, both in the 3D viewport and in the Outliner. In the latter, the icons are on (the eye, the pointer and the camera). I have also been careful enough to open up a second subwindow for the UV/Image editor, and in there I select the jpg image for texture that is in the folder, and I can see the UV map alright. Also, this is all with the Blender Render engine, not with cycles.   What I have in mind after all this, and the reason I want to do it, is that I ultimately want to export the model to a ply file in a way that all vertices are listed together with an RGB color for each vertex, which is impossible currently (because color/texture is associated to faces of the mesh and not to vertices), even if I tick the "include vertex color" option in the ply export.   Thanks a looot in advance. I am absolutely out of resources here.   Gustavo  Edit: the thread  is different I believe. My question is more specific. However the answer to that thread does include what I was missing: adding a set of vertex colors under the object data tab.


Let $n \geq 1$, and $M \subset \mathbb{R}^{n+2}$ be a smooth $n$-dimensional manifold which is closed in $\mathbb{R}^{n+2}$.  Show that for each $m \in M$, there exists a line $L \subset \mathbb{R}^{n+2}$ such that $L\cap M = \{m\}$.   I tried to consider $m$ as the origin of $RP^{n+1}$ space and use Sard's Theorem, but it seems not to work.


Denial of entry in Japan because no visa. Can I sue the airline?

Last month I was traveling to Japan with my husband and my brother in law for visit from USA. Immigration officers let my husband and my brother in law entry into the country,but they not let me in due absence of visa. My question is who’s responsible for this? Do airline for this?


Learning Ruby, early stages. I have a very simple script that I run on terminal and I want it to open files in browser based on user input. What code can I use (I have found references to RoR so far, didn't help):  puts "What type of train would u like to see today? steam or diesel" print "> " train = $stdin.gets.chomp if train == "steam"      what code can I put so script opens xyz image on browser?   elsif train == "diesel"      what code can I put so script opens xyz image on browser?   else "Sorry, I didn't understand that. Bye"  end


Evaluate $\lim\limits_{x\to\ 1}\frac{x+x^2+\cdots+x^n-n}{x-1}$ without L'Hospital's rule

I used substitution $$t=x-1, x=t+1,x\rightarrow1\Rightarrow t\rightarrow 0$$  Now the expression is $$\lim_{t\to\ 0}\frac{t+1+(t+1)^2+\cdots+(t+1)^n-n}{t}$$  Can we use the sum of geometric sequence or squeeze theorem?


Probability of a number rolled of a 20 sided dice being greater than the sum of the numbers rolled on 3 six sided die.

Bob rolls $3$ six-sided die and sums the numbers facing up. Bill rolls a single $20$ sided dice and records the number. What is the probability that Bob's number is greater than Bill's number.  I started the problem trying to come up with an equation, but that didn't work, so I resorted to creating $6$ six by six tables with all of the possible sums for Bob's die. Then, I counted the number of each number and created a chart and calculated the probability of each of those numbers occurring. Then, I multiplied the probability of each number occurring by the probability that Bill's number is greater than that number. Finally, I added them all up.  Obviously, this was very tedious and time-consuming. Is there a more elegant/less tedious way to do this problem.   PS: Is there away to do a $n$ die vs $m$ dice problem without listing them all out? Is there a general formula? Up until now, that's what I've been doing.


Find all possible Jordan canonical forms of $A$, where $(A-2I)^3(A+2I)^2=0$

A $5\times 5$ matrix $A$ satisfies the equation $(A-2I)^3(A+2I)^2=0$. Assuming there are at least $2$ linearly independent eigenvectors for $2$, write all possible Jordan canonical forms.   My Question:  The eigenvalues of $A$ are $2$ and $-2$. If we know the number of linearly independent eigenvectors for $2$, can we determine the number of linearly independent eigenvectors for $-2$?


How to prove $a^2 + b^2 + c^2 \ge ab + bc + ca$?

How can the following inequation be proven?  $$a^2 + b^2 + c^2 \ge ab + bc + ca$$


I have been trying to show my subsections in the out line but could not manage to do it. I used the following command:  \setcounter{tocdepth}{4} \setcounter{secnumdepth}{4}   I can see all my subsections in the chapter but can not see them in the outline. Am I missing something? I see up to the subsubsection. I do not see \paragraph and \subparagraph in my outline.  \documentclass{report} \chapter{sectioning} \listfiles  \makeindex \begin{document}  \setcounter{tocdepth}{4} \setcounter{secnumdepth}{4} \section{titles} \subsection{subtitles} \subsubsection{subsubtitles} \paragraph{subsubsubtitles} \end{document}


I am new to Stack Exchange.  Math and physics newsletters get to my inbox every Thursday, and every Thursday there are 5-day-old answers to questions as I read them for the first time.  Too often a question of interest  has already been closed because of the low quality of recent answers and comments.  I have no reputation, and to do almost anything requires more reputation than I have.  Nothing I have found in Help helps (however I noted one user submitted an "answer" because he said he did not have the reputation to comment.  I have started wondering if Joseph Heller is looking over my shoulder.  Any help, please?  Thank you to those who made useful suggestions.  The question, "How does a new user begin using Stack Overflow/Stack Exchange?," clearly expressed my difficulties.  I would close the question if I knew how.  Good night.


In android, Is it possible to format a date object to mm-dd-yy? If yes, then how?

I have to display the date in dd-mm-yy format as per the UI design for our Android app. can any one help me, how to achieve it?


Where does the Term "Polarization Identity" come from?

The "polarization identity" constructs an inner product from a norm provided the parallelogram law is met by the norm. How does the term originate, i.e. what has this to do with "polarization" ?    (For reference:   Polarization identity (real space): $\langle v, w \rangle = ¼(||v + w||^2 - ||v - w||^2 )$ Polarization identity (complex space): $\langle v, w \rangle = ¼(||v + w||^2 - ||v - w||^2 + i||v + iw||^2 - i||v - iw||^2)$ Parallelogram law: $2||v||^2 + 2||w||^2 = ||v + w||^2 + ||v - w||^2$


I'm having trouble understanding the behavior of a WP_Post variable (and / or possibly the behavior of var_dump itself).  As far as I know, var_dump will inspect all data from a variable. From the PHP documentation:     This function displays structured information about one or more expressions that includes its type and value. Arrays and objects are explored recursively with values indented to show structure.    Then, why is it that var_dump($post) doesn't show metadata, whereas var_dump($post->metadata) does?  I've already read the offficial documentation, specially , as well as . I assume the explanation is there, in plain sight -- however, it's still unclear to me.   What's going on here? Is it some basic PHP behavior that I'm not aware? (I'm not sure if this question is because a lack of understanding how WordPress works or how PHP works. Sorry if this is the wrong site to ask).


What is the simplest way to increase volume of mesh?

This hand looks too skinny. What is the simplest way to make it fatter, especially the fingers?


How to set the default timezone to the user's local timezone in PHP?

I want to set default timezone to the user's local timezone, please find my code below:  date_default_timezone_set("Asia/Karachi"); $currentHour = date('h:i');   My code works correctly, but only works only for Karachi; if user in other country it may not works.


How does one use pdf@strcmp in the pdftexcmds package?

I am trying to compare two strings with pdf@strcmp but I get the error:  ! Undefined control sequence. <argument> \pdf              @strcmp{abc}{abc} l.6     \section{\pdf@strcmp{abc}{abc}}   Here is what I am trying to run:  \documentclass{report} \usepackage{pdftexcmds}  \begin{document}     \section{\pdf@strcmp{abc}{abc}} \end{document}   I was expecting to see something like 0 being output. From what I understand the strcmp returns 0 if the strings are equal, -1 if A < B and 1 otherwise. I've installed the oberdiek package so I believe I have the dependencies I need.  This seems simple but I must be missing something obvious so, how do I make this comparison?


An internal server error when trying to pass custom class via SFDC server action  public class Estimation {      @AuraEnabled     public Decimal tic {get; set;}      @AuraEnabled     public Decimal go {get; set;}      @AuraEnabled     public Decimal get {get; set;}      @AuraEnabled     public Decimal probability {get; set;} }   Callout to srever  saveEstimation: function (cmp, recordId, estimation, callback) {     var action = cmp.get("c.saveEstimations");     action.setParams(         {             recordId : recordId,             est      : estimation         }     );   And on server side:  @AuraEnabled public static Estimation saveEstimations(Id recordId, Estimation est)   This is what i get     (3442602)|FATAL_ERROR|Internal Salesforce.com Error   As a workaroud I can serialize object to JSON on js side and deserialize it on server side. I have to do it at this moment but I think it's a bug.  Othe possible option is to retrieve Map as parameter which is also no pretty solution.  Does anybody have any idea what to do with it?


I have had this Macbook pro since a few months and I am trying to download XCode. I have about 12GB free and apparently that is not enough to install the app. What is weird is that I had about 6GB free and I deleted the old XCode which according to Finder was 12GB, and my new total available space is only 12GB. Is Finder totally rubbish at estimating disk space? When I go into about this Mac it tells me I have about 16GB of Apps and 21GB of "Other"    When I look in my Applications folder I don't see anything close to 16GB:    Same when I look for files that would account into Other, I am nowhere near that. Can anyone help me out finding where this usage is coming from?  EDIT: To be clear I am not trying to find out how much space XCode needs, but where to find these GBs that my computer says are used  Thanks


Merging objects whose properties may be objects

I am currently working on a project and I've written something that will do for what I'm trying to do but isn't perfect. It currently takes in 2 objects and merges them letting the second override the first if there is a property name conflict.   The code looks like this.   function appendObject(start, obj) {     var newObject = start;      for (var propName in obj) {         if (typeof start[propName] === "object" && typeof obj[propName] === "object") {             for (var propName2 in obj[propName]) {                 newObject[propName][propName2] = obj[propName][propName2];             }         } else {             newObject[propName] = obj[propName];         }     }     return newObject;  }   This will go one layer deep. So if there is a flat object as a property it will still be able to handle it. But what if there is a more complex object as a property in this object? I have not been able to figure out a good way to handle any level of complexity.   Perhaps I'm missing something basic and there is an easier way to merge objects like this. The practical application here is we have a 'default' set of properties we need on the json and then some possible initial values and user inputted values.   Any ideas?


Let us consider a particle in one spatial dimension $x$ and one temporal dimension $t$. Its Lagrangian $L$ is given by   \begin{eqnarray*} L &=& T- V \\   &=& \frac{1}{2} m\dot{x}^2 - V(x) \\   &=& L(x, \dot{x}) \end{eqnarray*}  But if I write $ L = \frac{1}{2} m [\frac{d}{dt}({x})]^2 - V(x)$, then it seems to me that $L$ depends only on $x$.   So, my question is why it is said that $L$ is a function of $x$ and its derivative $\dot{x}$ ?


How do I sync apps to my iPhone with iTunes 12.7 or later?

I’ve got an iPhone 4S that I still use, but the WiFi chip has died. I want to try the hairdryer and freezer trick (I used it once before) but in the meantime I want to be able to add apps to it through iTunes. However, somehow the Apps tab is gone. Is there a way to get it back?  Help would be appreciated a lot.


Trying to execute insert an item coming from a list:`                 item=u'Sunil Goyal'              c.execute('''INSERT INTO bpersons(person_name) VALUES (?)''',item)`           is simple enough, but it returns      Incorrect number of bindings supplied. The current statement uses 1, and there are 11 supplied.   Clearly instead of reading item as one element, it is reading characters. There is no problem with the earlier code which returns this list:  >>> if meta[7]:#bcoz list could be empty also     for item in meta[7]:         print item   Sunil Goyal  Rehan Yar Khan  Khan  Kae Capital  Ashish Shankar  Karthik Reddy  Feroze Azeez                 len(meta[7])       7           Any idea where I am going wrong?


Power Supply Rating versus Graphics Card requirement

Windows 8.1 64 bit  Lepa N500 Power supply  GTX Geforce 650 ti boost  My Lepa N500 Power supply is rated at 500 watts. I read some about PSU's and it says that the overall rating isn't really what matters. Apparently, for Graphics Card requirements, one should check the line 12? rating. On my power supply it is 408 Watts.   IF NVIDIA says that the GTX Geforce 650 Ti Boost requires 450 Watts, does this mean that my 500 watt power supply is enough? Or should I be comparing 450 Watts to 408 Watts, thus seeing that my psu can't support my graphics card?  My computer ran for a whole year using this PSU and Graphics card but now I am having a problem where my computer will shutdown turn off and restart at the lock screen and I am given critical event 41 Kernel-Power in my event logs.  Could this mean that my power supply is too weak? Why did my computer work for a whole year before this happened?  NOTE: Computer will run in Safe Mode using the ONBOARD video card. Not the NVIDIA card


So, I came across the following paradox:  At $1$ minute before noon, put in balls $1 \sim 10$ and take out ball number $1$. At $1/2$ minute before noon, put in balls $11\sim20$ and take out ball number $2$ and so on. How many balls are there at noon?  None.  At $1$ minute before noon, put in balls $1 \sim 10$ and randomly take out a ball. At $1/2$ minute before noon, put in balls $11\sim20$ and randomly take out another ball and so on. How many balls are there at noon?  None.  Okay, so I understand the first paradox because one can describe the exact moment each ball was taken out. But, you can't apply a similar argument to the second paradox because we randomly take out a ball.   I feel as if it's like infinitely summing $\frac{1}{n}$ and eventually there would be too many balls.  Can someone explain to me mathematically why this is the case?


Good day guys, i have to something like this, any idea how is this picture made ?  so it looks like negative i did invert it in photoshop but the bright side of his face was blue, so there been negative effect and smting been used to change his face to blue before nagative or smting that changed his face to normal skin color after negative ? what can it be ? what do you guys think ? THANKS ! for help.


Avoid notifications if card is moved to done list before due date?

Is it possible to avoid notifications if a card is moved to Done list before assigned due date?


Performance Monitor of ArcGIS for Desktop?

Is there a way/tool that could basically report what ArcMap 10.2 is doing?  I can't really explain it, so I will show you what I mean. Now mind you it doesn't have to be exactly like this.  ARCMAP Report Query Basemap (150ms) Draw Basemap (300ms) Query Layer1 (100ms) Draw Layer1 (200ms) Query Layer2 (50ms) Draw Layer2 (3000ms)   The point of this would show me that Layer2 is taking 3 seconds to draw, so maybe I could change the symbolism to make it faster.


Meaning of symbols $\vdash$ and $ \models$

I'm confused about the use of symbols $\vdash$ and  $ \models$. Reading the answers to  and  I see that:  the turnstile symbol $ \vdash $ denotes syntactic implication. Then $ S \vdash \psi$ means that $\psi$ can be derived from the formulae in $S$  the double turnstile $ \models $, denotes semantic implication. Then the notation $A \models B$ means simply that B is true in every model in which A is true.  So I understand that, e.g., $(ZFC+ A) \vdash B$ means that $A \Rightarrow B$ is a theorem in ZFC and, in this sense $\vdash$ is a mathematical symbol for a theorem. While $(ZFC+ A) \models B$ means that $ B$ is true in every model of ZFC in which $A$ is true, and, in this sense $\models$ is not a mathematical but a metamathematical symbol.  I understand correctly? And those are the only uses of the two symbols?


How do I type the tick and backtick characters on Windows?

How do I type tick and backtick on Windows?


Is it safe to use phone while charging with portable powerbank?

I understand using phone while it is being charged by a normal charger is not advised. What about using phone while it is being charged by a portable charger (powerbank)?  I own a HTC one and i was told by a mobile technician HTC’s own portable charger only should be used for HTC one. How much truth is there to it as HTC powerbank is not available in my city and i am thinking of using Sony portable charger for charging my HTC One?


Interesting Property of Tri-Rectangular Tetrahedron

For starters, we know that a trirectangular tetrahedron is a tetrahedron where all three face angles at one vertex are right angles.   Here's an interesting property I stumbled upon, of which I look for an elegant proof:  (For the sake of explanation, I shall model this tetrahedron in the Cartesian plane, with origin as a vertex and the three normal vectors of the three faces intersecting at the origin, along the coordinate axes)  And here it goes  Consider the plane, $$ \frac{x}{a}+\frac{y}{b}+\frac{z}{c}=1 $$ forming a tetrahedron OABC, with the XY, YZ, and ZX planes. O is the origin, and A,B,C are the other three vertices. The property is, that, the foot of perpendicular from O, on plane ABC, is the orthocentre of triangle ABC.  I have already proved it, with an analytic approach (extending the Cartesian model I describe above), however, I'm looking for a rather elegant, and possible geometric proof for this property.   Please share your ideas and proofs, thanks a lot!   P.S. Feel free to ask for the analytic proof (It's probably too obvious, and also undesirably lengthy) which I've completed. (I shall attach a picture of the handwritten work to this post)


What is the maximum possible value of determinant of a matrix whose entries either 0 or 1?

My question is simply the title:     What is the maximum possible value of determinant of a matrix whose entries either 0 or 1 ?


Create a Bootable Windows USB from a OS X to work on a PC

What I need to achieve is   Create a Bootable USB drive from Windows 7 iso image using a Mac running. Use the flash drive to boot and install windows on a PC (not Mac)   What I'm looking for is an app like  but one that can run from OS X. This app make a bootable flash drive from a Windows iso image. I found a mac alternative to WinToFlash a while ago, but I don't remember the name.  All I can find is questions about making a bootable usb from a mac to a mac. I want to repair a Windows PC that doesn't startup but I have a working Mac computer, the target computer is a PC (not Apple).  A PC can't boot from a USB created with bootcamp which have MBR based BIOS.  UNetbootin doesn't seems to work with Windows iso's just Linux iso's.  P.S. the target PC have BIOS, it doesn't have UEFI.


Which ship can go faster, the Millennium Falcon or the USS Enterprise-D?

As far as I can tell, both universes have equally objective ideas of speed.  Do we know how fast the two ships, Millennium Falcon and USS Enterprise-D, can go?  Which is faster?


Does Euclid's Lemma apply to squared numbers?

Euclid's lemma states that: if a prime $p$ divides the product $ab$ of two integers $a$ and $b$, then $p$ must divide at least one of those integers $a$ and $b$.  My question is can $a=b$? or must they be different integers?   If they can would I be able to use Euclid's Lemma to prove a question such as this:  Prove that if $n^2$ is divisible by $13$ then $n$ is divisible by $13$


After upgrading to Ubuntu 20.04, top bars of apps are showing boxes with numbers in them instead of titles

Every application window has these numerical things instead of titles since I upgraded to Ubuntu 20.04:


Switch Item Slots in Minecraft using a Command Block

I want to be able to set the active hotbar slot with a command instead of the mouse wheel or keyboard shortcuts (1 through 9).  I don't need to move items around in the hotbar, I just need to be able to set the active slot.  I have searched for this quite a while now and haven't found anything useful yet. Can somebody please tell me how I can achieve this for a given player?


Are the referees of a journal allowed to reveal the title of the papers they review after the review process?

I am wondering if a referee can reveal the title of the papers he/she has refereed for a journal (either by talking about it in the pub, posting it on facebook or another mean) after the decision has been made.  The reason for my question is that I have seen some people revealing titles of the papers they referee but I have not found an authoritative reference for judging this behaviour.


I am indexing a big latex project (with xindy). I use biblatex for the bibliography and the command \footcite for the references.  Sometimes, I write long prenotes which contain some words to be indexed. The logical procedure is to put the index command before of after the \footcite command and not in the prenote. But in practice as my prenotes are very long it's sometimes difficult to notice the square backets of the prenote... And it causes a lots of bug during the compilation.  For example :  \footcite[blabla blabla\index[n]{something} blabla.][postnote]{Reference}   It takes a lot of work to correct all the errors. But maybe there is a trick to bypass compilation bugs or loose less time.


Is there an advantage to a traditional but non-deductable IRA over a taxable account?

Let's say for whatever reason, I can not take the income deduction for traditional IRA contributions. Also, I am not eligible for a Roth IRA. Perhaps my MAGI is too high.  In this case, if I contribute to a traditional IRA:   I'll have paid regular income tax on the money I put in (since I can not deduct it), and I'll pay tax on gains when I take distributions as regular income.   Compared to an ordinary taxable account, this seems like not a great deal, since it doesn't get the benefit of the lower tax rate on capital gains and qualified dividends that a taxable account would.  Is there some additional advantage to the traditional IRA when an income deduction can not be made that I'm overlooking?


Top Panel icons+text Ubuntu 20.04 have become extremely small

The question says it all. From yesterday, my top panel icons and text have become very small. Not sure what has happened. I am sharing a screenshot.  Let me know if this can be corrected. Thanks!


I'm using p{} format to adjust the width of a table.   I expected using {p{0.1\textwidth}||p{0.2\textwidth}|p{0.2\textwidth}|p{0.2\textwidth}|p{0.2\textwidth}} makes the table width smaller than the text width (1 > 0.1 + 0.2*4), but the result is not what I expect.     What might be wrong? Why the total width of the table is wider than text width?  This is the code.   \documentclass[oneside, openany, 10pt]{article} %\documentclass[article, oneside, openany, 10pt]{memoir} \newcommand{\HRule}{\rule{1.0\textwidth}{0.5mm}} \newcommand{\Hrule}{\rule{1.0\textwidth}{0.3mm}}  \makeatletter% since there's an at-sign (@) in the command name \renewcommand{\@maketitle}{%   \parindent=0pt% don't indent paragraphs in the title block   \centering   {\Large \bfseries\textsc{\@title}}   \HRule\par%   \textit{\@author \hfill \@date}   \par } \author{prosseek} \title{test}  \begin{document}  \maketitle  \begin{table}[hbtp] \footnotesize \centering \begin{tabular}{p{0.1\textwidth}||p{0.2\textwidth}|p{0.2\textwidth}|p{0.2\textwidth}|p{0.2\textwidth}}   \hline & Function & Pre conditions & Post conditions & Constraints \\ \hline\hline R1 & An election official is assigned for each precinct & Precincts and elections officials are created & Unique one on one mapping from an election official to precinct & Before voting starts\\  \hline \end{tabular} \caption{Requirements before voting starts} \label{eoRequirements} \end{table}  \end{document}


My compass was working. It was pointing to my bed when I went off exploring, and the compass seemed to work.  However, when I tried to go home it just took me to a random spot on the map, and now I'm lost.  How can I fix this and find my way home?


Does the expanding universe prove the theory of relativity wrong?

I recently read an article which said the the universe is expanding with a very high velocity, which is even a lot faster than the speed of light. So, doesn't this prove Einstein's theory wrong which says that nothing can go at the speed of light, whereas the expanding universe is even faster than that.


Execute script after specific delay using JavaScript

Is there any JavaScript method similar to the jQuery delay() or wait() (to delay the execution of a script for a specific amount of time)?


I have the following MWE  \documentclass{article} \newcommand\setmarks[1]{\hfill (#1 marks)} \begin{document}  This works well, text appears on right \setmarks{10}  On the other hand, this line with additional text gets broken on a new line \setmarks{10}  I prefer the additional text to appear on an separate line, still flushed to the right like the following:  %%%% On the other hand, this line with additional text gets broken on a new line  \setmarks{10} %%%% \end{document}   How do I change the definition of setmarks so that the additional line is added automatically when needed?


What are some good introductory books on mathematical proofs?

There was a time when I avoided math proofs, but now I am starting to enjoy them. I am taking Intro to Linear Algebra and am falling in love with proofs. Are there any introduction to mathematical proofs books that blow the others out of the water?


How to manually manage grub.cfg for Grub2?

I am setting up my system. The features of it are:   GPT partition table (not sure how important this is) Triple boot - Gentoo, Debian and Mint. Custom kernel (kernel git repo) shared amounst distros.   Now I am wanting to write my own lines for grub and not have the distros place their own lines in grub. I also don't really want one distro to have the role of creating the grub.conf file.  As everybody is advocating the scripts, there is no one mentioning about hand crafting one. I am fairly sure editing it by hand is safe, so long as I make sure no script touches it.  Another solution that I might be forced into is to configure every distro the same way (no kernels in menu, keep the custom config synced between distros), or just use one distro to manage the boot.  How should I implement this?


Moving from Windows 8.1 to Ubuntu - what can I do to replace OneDrive?

That's it - I got tired from the constant problems on and about Windows I'm having. Network issues, performance issues, compatibility issues... But I'll seriously miss OneDrive integration (all my files are there). There is some kind of app that can sync with it? And what is the easiest way to install JDK? Through PPAs? Note that I have no plans to keep Windows, I'll just replace the d*mn thing with Ubuntu (maybe Mint).


One thing I don't understand is that if the white walkers and the dead cannot swim, how did they manage to       resurface the dragon from water?


Add support for images to Twitter oneboxing

When you do a Twitter onebox, it embeds the twitter text nicely.  However, if the tweet is mostly for the sake of sharing an image, that text isn't really useful, and you then need to click the link in the tweet to view the image.  This kinda undermines the point of oneboxing.  Can embedded images get added to Twitter oneboxes?


Prove the identity $\sum_{k=0}^{n}\sum_{r=0}^{k} \binom{k}{r} \binom{n}{k} = 3^n$. I believe I need to use the binomial theorem here, but I don't know how to deal with the double summations.


Why is this true: $\|x\|_1 \le \sqrt n \cdot \|x\|_2$?

Stuck, help please, I am really new to this. I opened the 2-norm and multiplied by $n$, then I am thinking to square both sides. The problem is that I do not know how to open $(x_1 + x_2 + ... + x_n)^2$ $\|x\|_1 \leqslant \sqrt n\cdot \|x\|_2$


I am using \tableofcontents to create TOC in my document. however it is appearing as shown in the image. As the numbers increase the gap between the number and text is reducing.   Thanks for your help Aku


What happens to at-scheduled job when PC is off?

Say I have job scheduled via at - what happens when the PC is off during that scheduled time? Will the job be caught up for during reboot? Does this have to be specified? Or comparing this to cron: Is there an anacron-analogue for at? info at does not seem to mention the issue.


Different wallpapers on different desktops

How to set different wallpapers on different desktops (workspaces)? Why is this option disabled,by default, in Ubuntu?


Identifying a fantasy genre series - magic users drain strength from others

From what I can remember, it has about 6 books in the series, I believe. It is a fantasy, medieval, magic background.  It revolves around people using a form of magic to boost their strength, agility and looks by taking it from others, essentially linking them while making the victims weak, comatose.  The main protagonist uses the magic forcefully on the kings and lords he conquers, while the hero refuses it but slowly accepts when people does it willingly to boost him. I believe the hero had an affinity to earth  / nature magic, could be wrong here.


At a high level, boosting is the process of adding many weak learners to form a strong learner. My professor had mentioned that in the case of boosting using regression trees, trees with a depth of less than 4 or 5 should be appropriate - some sources even say that stubs are sufficiently good weak learners.   Why doesn't boosting make use of multiple strong learners instead; for eg. boosted regression trees using full depth trees?


New phone: How to transfer game progress?

I'm planning to buy a new Android phone and I'd like to be able to transfer the progress I have made at several games to the new device, so I won't have to play all the levels again from scratch.  I currently have an HTC Desire and will buy an HTC Evo 3D.  There's probably no simple/general solution to this.  But I was wondering if anyone did something similar and could provide some advice (e.g. where to look for files that might hold game progress information).


From .shp to .kml to .shp Without Losing Attributes

I've converted a shapefile with attributes to a .kml for a client.  The .kml and attributes were then edited within google earth.  I received the updated .kml and now I need to get it back to .shp.  The problem is: all of my attributes are now in html format, which makes the popup info box in google earth.  When I try to convert back to .shp my attributes get lumped into a (google created) "Description" field.  And ALL of my attributes and information is lumped into a single cell.  Is there some way to extract the data from the "Description" field.  Even if I do that, is there an easy way to get rid of the html format and make it usable?   This is what I get using the "Fusion Table" method I found on some forums.  You can see the html in the left, it continues on further than it shows.    I am using ArcGIS Desktop 10.2.


Is this statement true?  $$\sqrt{(-5)^2} = -5$$


It seems that the figures in my document are positioned at the top of the page by default. Is it possible to change that default behaviour to [h]? (without adding [h] to all the figures)  Thanks in advance!


Can I include or declare a function inside a structure? I am trying to achieve polymorphism in C. If defining a function isn't the correct way to do it, what other methods can I use?


What is the safest method for order by cast()

My query looks a bit like this:  Select top (@n) * From MyTable Where IsNumeric(MyColumn) = 1 Order By Cast(MyColumn as int) desc   Occasionally Sql will produce a query plan that places the Sort operator ahead of the filter operator. This is problematic since the table can contain values which are non-numeric.  Is there a query hint I can apply to force the filter to always come first?   Or would it be better to write my order-by clause to safely handle non-numeric values? I've found two options for this, but I'm not sure which one is better:  Order By Cast(Stuff(MyColumn, 1, Patindex('%[0-9]%', 1), '') as int) desc   Or  Order By Case IsNumeric(MyColumn) When 1 Then Cast(MyColumn as int) else 0 end desc


I haven't done PHP for a while so I apologize in advance if it's something simple.  I'm migrating a PHP-based site to a shared web hosting and there's an issue with the way it outputs HTML markup. Let's consider the following code snippet that reads HTML from a file on the server and outputs it to the web browser:  $handle = @fopen($file_name, "rb");  $str = @fread($handle, filesize($file_name)); fclose($handle);  print $str;   For some reason it replaces some characters on the page. Like it puts that character instead of an apostrophe:    while it looked normal when the exact same code ran from a previous web hosting server:    Any idea what am I missing here?


Does "no larger than" imply shapability?

In follow up to my question , I would like to find out whether this portion implies shapability and what restrictions are placed on shapeability.  And can the same logic be applied to a possibly game breaking point?     Choose a door, a window, or an area within range that is no larger than a 20 foot cube   It seems that this language implies shapability because the wording is "an area". But does no larger than a 20 foot cube mean no measurement can be larger than 20 feet? Or does it mean the area or volume cannot exceed that of a 20 foot cube? We already know the size can be round or rectangular (windows can be either).


How is, by its nature, a class differ from a set?

A class is a collection of sets in which the sets are members of the class. So, may I ask what are the differences between a class and a set (or more precisely a set of sets) by their nature? What motivates mathematicians to give it a separate name?


Include in the document only the abstract of a cited paper

Using \bibliographystyle{unsrtnat} and bib files, with pdfLaTeX. I would like to include in the body of the text or perhaps in a footnote -- certainly not in  the reference section --  only the abstract of an article contained in the bib file. By way of analogy, this is what \citeyear{bibitem} does with the publication year. The nearest to this that I could find are:   seems to output each entry, while I would like to do it for a single citation at a time; : this extends the citation with the abstract, but I would like to have just the abstract.


Finding out if upgrading to a newer macOS version will cause issues?

I'm going to be upgrading my Macbook Pro (mid-2012 model) from its original OS X Lion 10.7 installation to a newer version of macOS. It looks like Apple will allow me to upgrade from Lion directly to OS X El Capitan 10.11 and macOS Sierra 10.12, and from there all the way to macOS Mojave 10.14.  I have heard that upgrading to a newer OS can cause performance issues, especially on older hardware. How can I find out about these issues, so I can determine the best version of macOS to upgrade to?


I have two object one is lead and another zipcode(fields default owner and zip code field).when I create a record in a lead page it would search through zipcode in zip code object in a zip code field and need to update that ownerId to the lead owner .please anyone help me I don't know where I am wrong and getting error  trigger updatelead on Lead (before insert) {     for (lead l : Trigger.new)     {         if (lead.PostalCode != null)         {             List<zipcode__c> zip = [select ownerId from zipcode__c where zipcode__c=:lead.postalcode] \\getting error              {                 if (zip.size() > 0)                 {                     Lead.ownerid = zip[0].ownerId;                 }             }         }     } }   Can anyone help me where I am wrong


Proving that $f(x)$ is irreducible over $F(b)$ if and only if $g(x)$ is irreducible over $F(a)$

Let $f(x)$ and $g(x)$ be irreducible polynomials over a field $F$ and let $a,b \in E$ where $E$ is some extension of $F$. If $a$ is a zero of $f(x)$ and $b$ is a zero of $g(x)$, show that $f(x)$ is irreducible over $F(b)$ if and only if $g(x)$ is irreducible over $F(a)$.   Attempt:  Since $f(x),g(x)$ are irreducible over $F \implies a,b \notin F$.  $f(x)$ is irreducible over $F(b) $ and $f(x)$ is irreducible over $F \implies a \neq b$ (As, $a$ is the zero of $f(x)$)  Which means $b \notin F(a)$ either $\implies g(x)$ is irreducible over $F(a)$.  Similarly, the other half can be proved in a similar way.  Is my solution attempt correct?  Thank you for your help..


Superuser.com should better-identify as authentic Stack Exchange site

Suggestion: superuser.com should forward to superuser.stackexchange.com or something with stackexchange in the name, and should very-very-clearly be branded as part of the SE family.  I eventually figured out that it was, indeed, part of SE (right?! :) but, given all the fake-SE/SO copycat sites out there, it'd be nice to at least see stackexchange.com as part of the URL.  I love the whole SE family thing but, given that 99.44% of my usage is on Stack Overflow, when I go to a different member site, it'd be nice to know that I'm "in bounds" and haven't strayed to one of "those other guys" and am about to give them my account credentials, etc.  (Same suggestion for all the other members of the SE family that don't have SE.com in the URL.)


Prove that $\mathbb{R}^{n}_{1}$ is not isometric to $\mathbb{R}^{n}_{\infty}$ for $n>2$.

$\mathbb{R}^{n}_{1}$ is  $\mathbb{R}^{n}$ with norm $\lVert (x_{1},...,x_{n}) \rVert_{1}= |x_{1}|+...+|x_{n}|$. $\mathbb{R}^{n}_{\infty}$ is  $\mathbb{R}^{n}$ with norm $\lVert (x_{1},...,x_{n}) \rVert_{\infty} = \max\{|x_{1}|,...,|x_{n}|\}$. I know the closed unit ball in the spaces have different shapes when $n>2$. However, I can't use the fact to give a proof.


Is there a way to load standard tab content through custom component

Is there a way to load standard tab content like "leads" or "contacts" through custom lightning component? Something similar to the way i can load one custom component in another: <aura:component implements="force:appHostable" controller="CustomComponentOneController">     <c:CustomComponentTwo/> </aura:component>


From book Axioms and Set Theory - A first course in Set Theory by Robert Andr´ Axiom A9 (Axiom of regularity): Every non-empty set A contains an element x whose intersection with A is empty.  From Wikipedia In mathematics, the axiom of regularity (also known as the axiom of foundation) is an axiom of Zermelo–Fraenkel set theory that states that every non-empty set A contains an element that is disjoint from A. In first-order logic, the axiom reads:  {\displaystyle \forall x\,(x\neq \varnothing \rightarrow \exists y\in x\,(y\cap x=\varnothing )).}  Now I totally understand that a class A = {A} is not a set by axiom of regularity as A intersection {A} is not null.  But What about class A = {A,B}, now as there exists B belong to A such that B intersection A is null so as per axiom of regularity such a set A = {A, B} and A is an element of A can exist.  But then in Wikipedia it is mentioned that - The axiom of regularity together with the axiom of pairing implies that no set is an element of itself  So how to prove that class A = {A,B} is not a set  (simple understandable answer if possible is very much appreciated.)


Prove tat for every natural number   $n$ the fraction  $\frac{21n+4}{14n+3}$ is irreducible   How can I beginning in this problems   I don't have any ideas to approach it


Sorting the Table and getting the position

I am able to sort a table using the following code:SELECT * FROM Persons ORDER BY LastName  But I wanted to get the ranking/position of a person using that order.  For example when I sort Person table by age, I want to get the rank/position of a person named Antinio Trias.  How will I do it?


How can I make Windows Paint save by default as JPEG format?

Every time I want to save an image I've pasted into the  application, it chooses a BMP/DIB format (which is the worst for saving things from the clipboard).  How can I hack Paint into defaulting to the JPEG format when saving images?  I am using Windows XP SP3 and Paint 5.1 at the moment. I hope though that any hacks might be generic and I'd be able to use them across all my Windows machines.


How to install Ubuntu Mate on an USB stick?

The goal: Install a regular Ubuntu Mate system on an USB stick.  What I've done so far:  1) Using an Ubuntu Mate installation USB stick. Selecting another USB stick as target using the default software provided for that, named Ubiquity. Result: Several attempts made, doesn't work. At least the final step - installing grub - fails.  2) Using a freshly installed Ubuntu Mate. Selecting a USB stick as target using the software Ubiquity that comes along with the installation. First: The software titles to install "Kubuntu" not "Ubuntu Mate". Second: It tries to unmount system partitions - the one the current system is using. Result: Doesn't work. Hangs at least after determining the current time over a network time server. The GUI just hangs, no recovery of the application possible.  So could anyone please tell me how to install a regular (not an installation) Ubuntu Mate on an USB stick? My goal is to run Ubuntu from that USB stick later.


I'm converting 240 plug to 120. It's a 3 prong, the left side and right side test 240 and the left side and the bottom test 120 and the right side and the bottom test 120.   So, I took face plate off the right side is barely wire left side is red the bottom is black and there's a white wire not connected to anything.  How should I rewire this to convert it to 240 volts?


What's the importance of CDFs being right continuous?

One of the properties of a cumulative distribution function $F_{X}(x)$ is that it's right continuous i.e. $$\lim_{x \to a^{+}} F_{X}(x)= F_X(a) \space \forall a \in \mathbb{R}$$.  1)What is the importance of this?  2)Why are CDFs not left continuous?


I'm told by smart people that $$0.999999999\ldots=1$$ and I believe them, but is there a proof that explains why this is?


How can I implement a comprehensive apa-style citation and bibliography

I am really new to LaTeX and I need a comprehensive solution for my Thesis  I have this problem since two days and I couldn't find any solution in any other post.  I work with BibDesk on Mac  And I used Packages apacite and natbib  @article{Ha89, Author = {Peter M. Haas}, Date-Added = {2017-02-06 21:15:57 +0000}, Date-Modified = {2017-02-06 21:45:06 +0000}, Journal = {International Organization}, Lastchecked = {03/02/2010 12:54}, Number = {3}, Pages = {377-403}, Publisher = {Peter Haas}, Read = {0}, Title = {Do regimes matter? Epistemic communities and Mediterranean pollution control}, Urldate = { http://www.jstor.org/stable/2706652}, Volume = {43}, Year = {1989}}   this is a stripped version of my document:  \documentclass[11pt, oneside]{article}  \usepackage{lipsum} \usepackage[margin=1in, left=1.5in, includefoot]{geometry}   \usepackage{ragged2e} % REFERENCE PREAMBLE %\usepackage{url} \usepackage{apacite} \usepackage{natbib} %\usepackage{biblatex-apa}                                                   % Bullet preamble \renewcommand{\labelitemi}{$\bullet$} \renewcommand{\labelitemii}{$\diamond$} \renewcommand{\labelitemiii}{$\circ$} % graphics preamble \usepackage{graphicx}   %Allows you to import images \usepackage{float}      %Allows for control of float positions %HEADER AND FOOTER STUFF \usepackage{fancyhdr}  \pagestyle{fancy} \usepackage{graphicx}        \usepackage{amssymb} %Zeilenabstand 1,5 wenn aktiviert  \usepackage{setspace}\makeatletter\newcommand{\MSonehalfspacing}{\setstretch{1.44}\ifcase \@ptsize \relax\setstretch {1.448}\or\setstretch {1.399}\or\setstretch {1.433}\fi}\newcommand{\MSdoublespacing}{\setstretch {1.92}\ifcase \@ptsize \relax\setstretch {1.936}\or\setstretch {1.866}\or\setstretch{1.902}\fi}\makeatother\MSonehalfspacing %Zeilenabstand Code fertig \usepackage[hidelinks]{hyperref}   %allows for clickable reference %                       BEGIN OF DOCUMENT \citeA{source} %                       REFERENCES  \renewcommand{\sectionmark}[1]{\markright{\thesection\ #1}} \fancyhf{} \rhead{\fancyplain{}{Identifying the Regime}} \lhead{\fancyplain{}{List of References}} \cfoot{\fancyplain{}{\thepage}}  \setlength\bibitemsep{1.9\itemsep} \bibliography{/User/Desktop/Thesis/references/mybib.bib}                   \bibliographystyle{apa} \addcontentsline{toc}{section {\numberline{}References}                                                       \end{document}   I would like to have the bibliography entry include a retrieved from    I tried to deactivate hyperref – as suggested in another post – but it didn't work. I also tried to activate and deactivate natbib and apacite as well.   I would really appreciate any help...


converting example with empty nodes to forest 2.0

I use the following code to produce this figure:    \documentclass{article}  \usepackage{forest}  \forestset{ sn edges/.style={for tree={parent anchor=south, child anchor=north,base=top},              where n children=0{tier=word}{}              }}  % auxiliary nodes without node label \forestset{   empty nodes/.style={     delay={where content={}{shape=coordinate,for parent={for children={anchor=north}}}{}}} }   \begin{document}  \begin{forest} sn edges, empty nodes [{}   [{} [{} [Mummy]]      [{} [must]]      [{} [leave]]]  [{} [now]]] \end{forest}  \end{document}   This works nicely for forest 1.0 (e.g. texlive 2013) but I cannot get it to work for forest 2.0.   This is what I tried:  \documentclass{article}  \usepackage{forest}  \useforestlibrary{linguistics} \forestapplylibrarydefaults{linguistics}  \forestset{ sn edges/.style={for tree={parent anchor=south, child anchor=north,base=top},              where n children=0{tier=word}{}              }}   \begin{document}  \begin{forest} sn edges [{}, nice empty nodes   [{} [{} [Mummy]]      [{} [must]]      [{} [leave]]]  [{} [now]]] \end{forest}  \end{document}


JAVA: buffered reader always gives IOExcepion

I am reading lines from a file using BufferedReader. The code with the issue is:  while((line.charAt(0)!='X') && (line !=null))   This gives a `NullPointerException when it reaches the last line. However:  while(line !=null)   alone works perfectly i.e. BufferedReader doesn't catch an exception. So, the problem seems to be when implementing multiple conditions with a BufferedReader condition.


SQL Server: Examples of PIVOTing String data

Trying to find some simple SQL Server PIVOT examples.  Most of the examples that I have found involve counting or summing up numbers.  I just want to pivot some string data.  For example, I have a query returning the following.  Action1 VIEW   Action1 EDIT   Action2 VIEW   Action3 VIEW   Action3 EDIT     I would like to use PIVOT (if even possible) to make the results like so:  Action1 VIEW EDIT   Action2 VIEW NULL   Action3 VIEW EDIT     Is this even possible with the PIVOT functionality?


Cellcolor overwrites partial horizontal lines (\cline)

So I need to make a colored table with multirows, together with the use of partial horizontal lines. I used \cline which does not work: the \cellcolor-command overwrites the line.  told me to change it to \hhline which will not be overwritten by \cellcolor. Instead, \hhline overwrites the color.  To make it more clear:  Without color:  \documentclass{article}  \usepackage{colortbl} \usepackage{multirow}  \begin{document}    \begin{tabular}{|c|c|}     \hline     \bfseries ColumnOne & \bfseries ColumnTwo\\ \hline     First data & 932\\ \hline      & 239\\ \cline{2-2}  % or \hhline{|~|-|}      & 137\\ \cline{2-2}  % or \hhline{|~|-|}     \multirow{-3}{*}{More data} & 319\\ \hline     Last data & 132\\ \hline   \end{tabular}  \end{document}     With color: Using \cline  \documentclass{article}  \usepackage{colortbl} \usepackage{multirow}  \begin{document}    \begin{tabular}{|>{\columncolor{red}}c|>{\columncolor{blue}}c|}     \hline     \bfseries ColumnOne & \bfseries ColumnTwo\\ \hline     First data & 932\\ \hline      & 239\\ \cline{2-2}      & 137\\ \cline{2-2}     \multirow{-3}{*}{More data} & 319\\ \hline     Last data & 132\\ \hline   \end{tabular}  \end{document}    Makes the lines in the right column disappear.  Using \hhline  \documentclass{article}  \usepackage{colortbl} \usepackage{multirow} \usepackage{hhline}  \begin{document}    \begin{tabular}{|>{\columncolor{red}}c|>{\columncolor{blue}}c|}     \hline     \bfseries ColumnOne & \bfseries ColumnTwo\\ \hline     First data & 932\\ \hline      & 239\\ \hhline{|~|-|}      & 137\\ \hhline{|~|-|}     \multirow{-3}{*}{More data} & 319\\ \hline     Last data & 132\\ \hline   \end{tabular}  \end{document}    Creates white lines on the left column.  Is there any possible way on how to resolve this?


Explain why a composite function in which g(x) is any function, is applied to the output of any even function h(x) , f(x) is always even.

This is what I have so far, but I don't feel like its a full explanation   The even function gets rid of the negation   Since $ h(x) $ is even then $ h(x)=h(-x) for \ all \ x \ $  $ f(x) = g(h(x)) $  $ f(-x) = g(h(-x)) = g(h(x)) \ or \  g(-(-h(x))) = g(h(x)) $  therefore $  f(x) $ is even  Thanks in advance!!


What is the purpose of a function being surjective?

So as far as I understand, a function $f\colon A \to B$ is surjective if and only if for every $b\in B$ there exists $a\in A$ such that $f(a) = b$.  My question is when is this actually relevant? Couldn't you arbitrarily define the set $B$ so that any elements never "used" are removed from the set, leaving you with a surjective function?


Does $\pi$ contain all possible number combinations?

I came across the :    Which states:     $\pi$ Pi      Pi is an infinite, nonrepeating $($sic$)$ decimal - meaning that   every possible number combination exists somewhere in pi.  Converted   into ASCII text, somewhere in that infinite string of digits is the   name of every person you will ever love, the date, time and manner    of your death, and the answers to all the great questions of    the universe.   Is this true? Does it make any sense ?


Special summon 2 Interplanetarypurplythorny Dragon

:     If a monster you control is destroyed by battle or card effect and sent to the Graveyard: You can Special Summon this card from your hand.   Opponent destroyed 1 monster I controlled on field, and I have 2 cards of  in hand, can I special summon both of them at once?


Can I input the password as a parameter to SCP rather than be prompted for it?   This question is similar, but answers deal with doing away with SSH password completely.


Sometimes when I want to logout quickly I do kill -15 -1. I've noticed that bash is ignoring SIGTERM.   I wonder what's the rationale for such bash behavior?  It's not very UNIX'y to ignore SIGTERM without a good reason, isn't it?  UPDATE:  same (no)effect for all:  $ kill -TERM $$ $ type kill kill is a shell builtin $ command kill -TERM $$ $ /bin/kill -TERM $$   UPDATE2:  From :     When bash is interactive, in the absence of any traps, it ignores   SIGTERM   So it's done on purpose. But why?


VMWare workstation 10 no 3d acceleration after many tries

I have a ASUS Zenbook UX31A and recently I've felt the need for VS2013 so I installed VMWare Workstation 10 because of it's Unity feature.Things have gone crazy since I made so many attempts in order to get this 3d acceleration enabled.It still shows me "3d acceleration is not supported".  Things I tried:   mks.gl.allowBlacklistedDrivers = "TRUE" Installing missing libraries like libtxc-dxtn-s2tc-bin Installing Intel drivers driconf -> forced s3tc    But I still can't get 3d acceleration, despite many tries. I just don't understand what goes wrong.  glxinfo | grep OpenGL  OpenGL vendor string: Intel Open Source Technology Center OpenGL renderer string: Mesa DRI Intel(R) Ivybridge Mobile  OpenGL core profile version string: 3.3 (Core Profile) Mesa 10.1.3 OpenGL core profile shading language version string: 3.30 OpenGL core profile context flags: (none) OpenGL core profile profile mask: core profile OpenGL core profile extensions: OpenGL version string: 3.0 Mesa 10.1.3 OpenGL shading language version string: 1.30 OpenGL context flags: (none) OpenGL extensions:   lspci -nnk | grep -iA3 VGA  00:02.0 VGA compatible controller [0300]: Intel Corporation 3rd Gen Core processor Graphics Controller [8086:0166] (rev 09)     Subsystem: ASUSTeK Computer Inc. Zenbook Prime UX31A [1043:1517]     Kernel driver in use: i915 00:04.0 Signal processing controller [1180]: Intel Corporation 3rd Gen Core Processor Thermal Subsystem [8086:0153] (rev 09)   glxinfo | grep -i render  direct rendering: Yes     GLX_MESA_multithread_makecurrent, GLX_MESA_query_renderer,      GLX_MESA_multithread_makecurrent, GLX_MESA_query_renderer,  OpenGL renderer string: Mesa DRI Intel(R) Ivybridge Mobile      GL_NV_conditional_render, GL_NV_depth_clamp, GL_NV_packed_depth_stencil,      GL_NV_blend_square, GL_NV_conditional_render, GL_NV_depth_clamp,   Ubuntu 14.04 LTS


I'll appreciate if anyone can explain to me if $\mathbb{R}^n$ is a polyhedron? I saw this link  which says $\mathbb{R}^n$ is not a polyhedron, but could one think of $\mathbb{R}^n$ as an intersection of halfspaces in $\mathbb{R}^{n+1}$? Thanks


How do I backup system to a different partition on the same drive?

I am a linux newbie, tech oldie.  I am setting up a system with Lubuntu 14.04. Although, when I ran the installation I created two partitions -- 1/2 for quickie backups and 1/2 for the installed system -- lubuntu ignored that and took my entire disk.  Yesterday, I spent a lot of time with the Redo Rescue disk manually recreating what I wanted.  Now, I have the following paritions:  /dev/sda1 ext2 /boot +- 200MB /dev/sda2 extended +- 244GB /dev/sda3 ext2 +- 220GB   sda1 and sda2 were created by the installer. I manually created sda3 after resizing those.  within sda2 is a logical volume  sda5 lvm2 pv lubuntu-vg   within sda 5 there are a swap partion and the root partition and nothing else. these were also created by the installer, but I resized them yesterday.  I want to backup sda1 and sda2 to sda3. I have been at this long enough to know that gives me zero protection from a disk failure. I just want to quickly be able to restore my work up to a certain point if I screw something up as I am tweaking the new system.  I have the qt4-fsarchiver LiveCD, the SystemRescueCD LiveCD and the Redo Rescue LiveCD.  As a linux newbie, I have been unable to figure out how to do this on any of these.


Is it a good practice to import only the necessary classes from JUnit API

My question is; for an example, when I'm importing classes from JUnit library, the exact classes that I want are: Result, JUnitCore, notification.failure  And these are available in the junit.runner parent class.  So if I import as:  import org.junit.runner.*;    ... will it be considered as good practice? Because by doing this definitely I'll be importing unwanted classes too.


In C you have to free the memory that has been allocated by the program. Does the same go for objects in C++?  class Common {     //some function declarations }  void example()   {     Common obj;     //do stuff with obj     delete obj; }   How important is delete obj; here if i asume the function example() will be called once only?


I had an idea and was wondering if it works. I seem to have gotten away quite cheaply. The many multiplications on the right side made me consider the prime divisors:   $p\mid (ah,bk)\Rightarrow p\mid ah \land p\mid bk \Rightarrow \left(p\mid a\lor p\mid h\right)\land\left(p\mid b\lor p\mid k\right)\Rightarrow \left(p\mid a\land p\mid b\right)\lor\left(p\mid a\land p\mid k\right)\lor\left(p\mid h\land p\mid b\right)\lor\left(p\mid h\land p\mid k\right)$.   Which matches exactly the right side! I am almost tempted to replace the implications with equivalences, use the definition of the gcd and call it a day! What do you think?  Reference  Apostol, Introduction to Analytic Number Theory, exercise 1.24.


Minecraft Java: io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection timed out: no further information:

I'm attempting to get a modded Minecraft Java Edition server up and running, but my friend joining me keeps getting the following error:  io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection timed out: no further information:   I also get the same error if I attempt to join myself not using 'localhost.'  I've forwarded the port 25565, allowed it through my firewall on both TCP and UDP, allowed all copies of Java platform SE Binary (i have many for whatever reason) through private and public, and all Minecraft executables through the firewall, but in case that wasn't enough I then turned off my firewall entirely, reinstalled Minecraft and did it all over again. My friend has the exact same mods as the server and I, the same Minecraft version as the server and I, but still gets this error. How do I fix this?  EDIT: It also does not work in vanilla.


The word for how real a fictional world seems to be?

A few weeks ago my old English Teacher updated his word of the week and I can't remember the word only the definition; It was something along the lines of     'How real A fictional world or character feels to be .'   If Anyon


Proof by induction of summation inequality: $1+\frac{1}{2}+\frac{1}{3}+\frac{1}{4}+\dots+\frac1{2^n}\ge 1+\frac{n}2$

Prove by induction the summation of $\frac1{2^n}$ is greater than or equal to $1+\frac{n}2$.  We start with $$1+\frac{1}{2}+\frac{1}{3}+\frac{1}{4}+\dots+\frac1{2^n}\ge 1+\frac{n}2$$ for all positive integers.   I have resolved that the following attempt to prove this inequality is false, but I will leave it here to show you my progress. In my proof, I need to define P(n), work out the base case for n=1, and then follow through with the induction step. Strong mathematical induction may be used.  This is equivalent to $$\sum_{k=0}^n\frac1{2^k}\ge 1+\frac{n}2\;.$$  Let $P(n)$ be summation shown above.   Base case for $n=1$, the first positive integer,   $$\sum_{k=0}^1\frac1{2^k}=\frac1{2^0}+\frac1{2^1}=1+\frac12=\frac32\ge 1+\frac12=\frac32\;,$$  so base case is true.  Induction step: Assume $P(n)$ is true and implies $P(n+1)$. Thus   $$\sum_{k=0}^{n+1}\frac1{2^k}\ge\frac1{2^{n+1}}+\sum_{k=0}^n\frac1{2^k}\ge 1+\frac{n+1}2\;.$$  This can be written as   $$\sum_{k=0}^{n+1}\frac1{2^k}\ge \frac1{2^{n+1}}+1+\frac{n}2\ge 1+\frac{n+1}2\;.$$  I work the math out but I get stuck contradicting my statement. Please show your steps hereafter so I can correct my mistakes.


How can I calculate number of days between two dates?

If I have two dates (ex. 19960104 and 19960314), what is the best way to get the number of days between these two dates? Actually I have to calculate many dates in my dataframe. I use the code:   `for j in range(datenumbers[i]):     date_format = "%Y%m%d"     a = datetime.strptime(str(df_first_day.date[j]), date_format)     b = datetime.strptime(str(df_first_day.exdate[j]), date_format)     delta = (b - a).days     df_first_day.days_to_expire[j] = delta`   I need to put every difference between two dates in one of column of my dataframe. I wonder if there is a better way to do as not using for loop


$(x+2)(x-1$)  Totally forgot how to do it. Isn't this the rule:  $(a+b)(c+d)$  $a*c +a*d +b*c +b*d$  The answer I'm getting is $x^2-x+2x-2$ which is wrong. Please help me out, thanks!


I have a for loop with decimal condition. If the loop iterates between 0.1 and 0.3 it is executed 2 times:  int count = 0; for (double i=0.1d; i<=0.3d; i+=0.1d) {     count ++; }   If the loop iterates between 0.2 and 0.4 it is executed 3 times:  int count = 0; for (double i=0.2d; i<=0.4d; i+=0.1d) {     count ++; }   I use System.out.println(count); to print out the result  Why is this happening? What am I missing?


Matrix Concentration for Products- Orthogonality Property

The following comes from page 3 of the paper "Matrix Concentration for Products" found here . Given two independent, complex, square matrices Y and Z: $$ YZ=\mathbb{E}(Y)Z+(Y-\mathbb{E}(Y))Z.$$ I understand that $$ \mathbb{E}((Y-\mathbb{E}(Y))Z|Z)=0. $$ Now, this is called an orthogonality property (Why?) and apparently used to show: $$ \mathbb{E}(\left\| YZ\right\|_2^2) =\mathbb{E}(\left\|(\mathbb{E}(Y))Z\right\|_2^2) + \mathbb{E}(\left\| (Y-\mathbb{E}(Y))Z\right\|_2^2) $$ where $\left\| .\right\|_2$ refers to the Schatten 2-norm or Frobenius-norm. Could someone clarify how exactly this property is used here? I assume the tower property comes into play here but I'm not sure how exactly. Thank you.


I modified my bashrc via terminal and now when I open a terminal I can not do nothing either via Ctrl+Alt+F1, Can anyone help me to fix this. In both cases appears this:   # ~/.bashrc: executed by bash(1) for non-login shells. # see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) # for examples  # If not running interactively, don't do anything case $- in     *i*) ;;       *) return;; esac  # don't put duplicate lines or lines starting with space in the history. # See bash(1) for more options HISTCONTROL=ignoreboth  # append to the history file, don't overwrite it shopt -s histappend  # for setting history length see HISTSIZE and HISTFILESIZE in bash(1) HISTSIZE=1000 HISTFILESIZE=2000  # check the window size after each command and, if necessary, # update the values of LINES and COLUMNS. shopt -s checkwinsize  # If set, the pattern "**" used in a pathname expansion context will # match all files and zero or more directories and subdirectories. #shopt -s globstar  # make less more friendly for non-text input files, see lesspipe(1) [ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"  # set variable identifying the chroot you work in (used in the prompt below) if [ -z "${debian_chroot:-}" ] && [ -r /etc/debian_chroot ]; then     debian_chroot=$(cat /etc/debian_chroot) fi  # set a fancy prompt (non-color, unless we know we "want" color) case "$TERM" in     xterm-color|*-256color) color_prompt=yes;; esac  # uncomment for a colored prompt, if the terminal has the capability; turned # off by default to not distract the user: the focus in a terminal window # should be on the output of commands, not on the prompt #force_color_prompt=yes  if [ -n "$force_color_prompt" ]; then     if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then     # We have color support; assume it's compliant with Ecma-48     # (ISO/IEC-6429). (Lack of such support is extremely rare, and such     # a case would tend to support setf rather than setaf.)     color_prompt=yes     else     color_prompt=     fi fi  if [ "$color_prompt" = yes ]; then     PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ ' else     PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ ' fi unset color_prompt force_color_prompt  # If this is an xterm set the title to user@host:dir case "$TERM" in xterm*|rxvt*)     PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"     ;; *)     ;; esac  # enable color support of ls and also add handy aliases if [ -x /usr/bin/dircolors ]; then     test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"     alias ls='ls --color=auto'     #alias dir='dir --color=auto'     #alias vdir='vdir --color=auto'      alias grep='grep --color=auto'     alias fgrep='fgrep --color=auto'     alias egrep='egrep --color=auto' fi  # colored GCC warnings and errors #export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'  # some more ls aliases alias ll='ls -alF' alias la='ls -A' alias l='ls -CF'  # Add an "alert" alias for long running commands.  Use like so: #   sleep 10; alert alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'  # Alias definitions. # You may want to put all your additions into a separate file like # ~/.bash_aliases, instead of adding them here directly. # See /usr/share/doc/bash-doc/examples in the bash-doc package.  if [ -f ~/.bash_aliases ]; then     . ~/.bash_aliases fi  # enable programmable completion features (you don't need to enable # this, if it's already enabled in /etc/bash.bashrc and /etc/profile # sources /etc/bash.bashrc). if ! shopt -oq posix; then   if [ -f /usr/share/bash-completion/bash_completion ]; then     . /usr/share/bash-completion/bash_completion   elif [ -f /etc/bash_completion ]; then     . /etc/bash_completion   fi fi


I need to find all FieldItemList's with a certain field type.  /* @var FieldItemList $field */ foreach ($p->getFields(FALSE) as $field_name =>  $field){   kint($field->getPluginId()); //NOPE   kint($field->getFieldDefinition()); //NOPE   kint($field->equals(array('MY_FIELD_TYPE'))); //NOPE }   I would expect there is a simple way of finding out the field type of a FieldItemList.


Is there a speed limit for objects falling in gases or liquids?

Let $o$ be a spherical object with mass $m$ and surface $s$.  Let $g$ be the gravitational acceleration and $h$ the height.  Let the gas where we drop $o$ in have density $d$ and pressure $p$ at height $h$.  If we drop $o$ at height $h$ what will be its speed $v(t)$ and height $H(t)$ as a function of time $t$ ?  Note that $g$ is a parameter here, not ness 9,81 as here on earth.  I know here on earth there is a speed limit to falling objects in the air. Do we always get a speed limit?  What if we add an initial velocity to $o$ paralell to the falling direction  $v$ , where the velocity $v$ can be both positive or negative?  What is the logic and justification behind the equations and solution? Is this analogous to sliding on a ramp with friction, or is it more like collosions with particles? Or maybe both are valid and are possible origins of the solution equations?


I am a US Green Card holder. Do I need a visa to travel to and from Canada? Also, my friends are US citizens. Can they use birth certificates to enter and depart from Canada?


Visitor Visa for US Indian student studying in new zealand

I am Indian Student pursuing my studies in New Zealand , can i apply for a B1/B2 Visa for USA .I have a valid visa till March 2017 .Can I apply from New Zealand ,else I need to come back to my Home country


I'm aware of the concept of overfitting in Machine Learning. The main advice for dealing with it, usually is regularization.   Is there other practical advice to avoid overfitting?


Why aren't there notifications about negative reputation changes?

Occassionally, my posts get down-voted. However, most of the time they are up-voted.   When I get a positive reputation change, you get a notification at the top of the site that says +whatever reputation for things like up-votes, accepts and edits. However, when you lose reputation, you have to notice your reputation go down strangely and then actively look in your reputation history to see where the down-vote came from.   So my question is, bearing in mind that there are notifications for positive changes in green; surely it would be logical to notify negative reputation changes in red for example?


Fitting a distribution to data given only the tails? Fitting normal distribution from only the 90th-99th percentile of data

I'm trying something out in R and I'm curious how one would go about doing this. Let's say I have a sample of Americans and their income, furthermore I know that they are in the 90th-99th percentile of all American earners. If I assume I have that ALL income is normally distributed, how would I fit a normal distribution to the information I am given.  I have been playing around in R and using the fitdistr package and some youtube videos, however, the only examples I've seen is where fitdistr plots the entire distribution treating the input data as the whole instead only as a part if that makes sense.  So fitdistr will give me a mean and a standard deviation for my data, but in doing so it appears to be treating this small slice of earners as the entire population of Americans (obviously I'm doing something wrong) and not just as the portion falling in the 90th-99th percentile. If that makes sense?  Is there a name for what I'm trying to do beyond just fitting distributions? I'm just looking for a jumping off point or any resources that someone could point me to.  I definitely feel like this is possible, I have been playing around using different means and standard deviation levels (for instance using a mean of 50k and a std. of 25k) and then seeing how those distributions line up with the data I have but I'm just doing this visually, I'm sure there is a more rigorous way to do it in R I just don't know, I'm pretty lost because I can't get past the part to tell R that the input data is only a SLICE of the curve


I wanted to know if you know why the colorimetry of the image is not exactly the same when I save the image of the rendering, my settings in the save are however the Blender standards (RGBA, Color Dept 8, Compression 15%). Thank you very much for your answers :)


Where does blender store its config files?

I want to be able to change and store all the settings blender has in a configuration file. Eventually I would like to be able to make self-contained blender plugins that also affect the configuration of blender. I'm sure there must also exist some settings that are not available in the GUI. For example, I would like to able to configure vim-like keychords for changing the focus of split views, creating them, etc. and in general being able to configure my keys very flexibly.


What is a man-in-the-middle attack (for instance in Diffie-Hellman)?

I'm new to cryptography and I just started learning about the Diffie-Hellman key agreement. I read that this system is vulnerable to a man-in-the-middle attack when used alone. What kind of attack is this?


I know there are some posts talking about this, but I don't understand them at all. I am trying to compute the Lie algebra of the affine maps: Aff(n)$=\{\begin{pmatrix} A & v   \\ 0 & 1   \end{pmatrix} / A \in GL(n,\mathbb{R}), v \in \mathbb{R}^n \} $. I know it must be $\mathfrak{aff}(n)=\{\begin{pmatrix} A & b   \\ 0 & 0   \end{pmatrix} /  \in \mathfrak{gl}(n,\mathbb{R}), v \in \mathbb{R}^n \}$ and I have proved that if $X$ is in $\mathfrak{aff}(n)$, then $X$ is of the form $\begin{pmatrix} A & b   \\ 0 & 0   \end{pmatrix}$. For the other inclusion, I don't know how to proceed. I tried to compute the exponential of such a matrix but I didn't get anywhere.


I am trying to design four panel booth design W: 0.5 x 5.5 x 2.5 x 0.5m and H: 2.5m. What would be the best way to start and save the files. 5.5m is too big for InDesign.


I can adjust the shape of nodes using commands such as minimum width or inner xsep, but these require explicit units. When I scale the entire figure (\begin{tikzpicture} [scale=0.5]) it does not scale the node.  NOTE The following question does not solve my problem:   Because when I add arrows from the node they do not recognize the shapes that I drew around the node.  \documentclass[twoside]{article} \usepackage{tikz} \usetikzlibrary{calc,shapes,arrows}  \begin{document}  \begin{tikzpicture} [scale=1]  \draw (0,0) circle (1.5) node (A) {A}; \draw (0,4) circle (1.5) node (B) {B}; \draw [->] (A) -- (B);  \end{tikzpicture}  \end {document}


How to find a 4D vector perpendicular to 3 other 4D vectors?

In 3 dimensions it is possible to find a vector c (one of infinitely many) perpendicular to two vectors a and b using the cross product. Is there any way of extending this to 4 dimensions, i.e. given three vectors a, b, and c finding a vector d perpendicular to all of them?  I realize that this can be done by solving the equation system:  dot(a, d) = 0 dot(b, d) = 0 dot(c, d) = 0   and imposing an additional constraint, for instance setting the length of d to or one of its components to 1, but is there a way of doing this that does not involve solving an equation system?


permission to write in root/usr/share/kde4/apps

i am trying to just do basic theming.. there isnt an install button for "Desktop Theme" so i am trying to copy the files to root/usr/share/kde4/apps/desktoptheme but get access denied message every time.. i tried changing permissions via properties then tried getting permissions using terminal and neither has led to any success... it would be most helpful if someone could tell me how to get total root permissions any time that i should need them as i know that kubuntu has these files as read only to protect more inexperienced users, like myself.. but this is how i learn... a lot of reading and trial and error..... any help is greatly appreciated.. thanks


How do you find the modular inverse of $5\pmod{\!11}$

I need to find out the modular inverse of 5(mod 11), I know the answer is 9 and got the following so far and don't understand how to than get the answer. I know how to get the answer for a larger one such as 27(mod 392) but am stuck because they are both low numbers.  11=5 (2)+1  5=1 (5)


Install and play games on Steam solely from an External Drive?

I want to save some space on my SSD and have Steam and its games stored on an external drive.  Is it possible to install Steam and its games on an external drive ? Will some of the installation files be stored on my SSD ? Will games run sufficiently fast when played from the external drive ?


Find the value of- $\lim_{x \rightarrow -\infty}\sum_{k=1}^{1000} \frac{x^k}{k!}$

QUESTION: Find the value of-  $$\lim_{x \rightarrow -\infty}\sum_{k=1}^{1000} \frac{x^k}{k!}$$    MY ANSWER: Since $x→-\infty$ therefore the summation will look like- $$ \frac{-\infty^1}{1!}+ \frac{-\infty^2}{2!} + \frac{-\infty^3}{3!} + \frac{-\infty^4}{4!}$$   Now, we know that $${-\infty^{even}}=\infty$$  And $1000$ can be broken down into 500 pairs. And since $k$ is finite the terms will look like $$ -\infty + \infty -\infty +\infty-.....$$  Hence, we can conclude that the overall limit of the summation will tend to zero.   Am I correct?  Thank you for your help.


I'm trying to use  in some components but I only got basic html component in my page.  For example I add this button :  <lightning:button variant="brand" label="Précédent" onclick="{!c.previousPage}"/>   It is the only lightning base element in my component, maybe I have to insert it into a special element, like a container ?   My Salesforce org is in spring 17.  Here is the kind of button I got :  instead of button with slds design.  Edit : I try differents browsers but I always get the same result.


Blocks at the End of a Solution Structure

so a couple of months ago I created my own package. Everything in it works great, and so far it does everything I need it to do, the way I need it to. But I want to change one thing. When I made the package, I found it necessary to create a structure declaration in the package that says  \newtheorem*{solution}{Solution}   Until now, I have been very happy with it. But I've decided (in order to separate the solutions from the surrounding text) that I want the structure to add a black square at the end every time the structure ends. Could somebody tell me how to modify my code to do this?


I am a beginner in Blender 3D, but I can already appreciate the power of this app.   I downloaded this book -->   However, I am encountering a lot of problems because my version 2.72b and most of what I am reading refers to UI which dates back to older versions.  Can someone help me identify a beginners book (in pdf format) that is updated for the version 2.70+.


Let $\{a_n\}$ be a sequence of real number, let $\{n_k\}$ be an increasing sequence of positive integer and let $A_n=a_{n_k}+a_{n_{k+1}}+...+a_{n_{k+1}-1}$ for $k \in N$. Prove that if $\sum_{n=1}^\infty a_n$ converges then $\sum_{k=1}^\infty A_k$ converges. Is the converse true?  I know that $\sum_{n=1}^\infty a_n$ converges implies that $lim _{n_>\infty} a_n =0$, can I conclude that $A_n$ ->$0$ as well, even if I can conclude that, it still doesn't prove that $\sum_{k=1}^\infty A_k$ converges, am I correct?


Invalid response error when installing Viber on PC

I typed on terminal:  ~$ wget http://download.cdn.viber.com/cdn/desktop/Linux/Viber.zip --2018-06-30 19:54:15--  http://download.cdn.viber.com/cdn/desktop/Linux/Viber.zip Resolving download.cdn.viber.com (download.cdn.viber.com)... 2.17.13.45 Connecting to download.cdn.viber.com (download.cdn.viber.com)|2.17.13.45|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 44397656 (42M) [] Saving to: ‘Viber.zip.1’   Viber.zip.1         100%[===================>]  42,34M  3,97MB/s    in 10s       2018-06-30 19:54:25 (4,22 MB/s) - ‘Viber.zip.1’ saved [44397656/44397656]   then:  igor@igor-Easynote-TE69HW:~$ unzip Viber.zip Archive:  Viber.zip replace Viber/Sound/DTMF/0.wav? [y]es, [n]o, [A]ll, [N]one, [r]ename: error:  in]alid response   Now what should I do?


Apache 2.4 - Redirect Folder to Sub-domain

I have an application running at  - An external application downloads hundreds of PDFs from within the application directory (e.g. ) - The 'Modules' directory has grown significantly and I would like to separate it by moving the Modules folder to a separate directory outside my application root.  I've done this by creating a separate virtual host and now have  and can access the files at  - However, I will have to update the URLs for over 300 courses on an external application to fetch the PDFs.   I am trying to avoid this by using Apache Mod rewrite with a rule that redirects all requests to * to the new sub-domain * - This way, PDFs are still delivered and I can delete the former directory.  After reading through some ServerFault answers, I came up with the following:  RewriteEngine On RewriteCond %{HTTP_HOST} ^webapp.ex !^/Modules [NC] RewriteRule ^(.*)$ https://modules.webapp.ex/$1 [L,R=301]   I added the above to my VirtualHost and Apache fails to restart with this error     AH00526: Syntax error on line 77 of   /etc/apache2/sites-enabled/acms.conf: RewriteCond: bad flag delimiters   Action 'configtest' failed. The Apache error log may have more   information.   I've checked the rewrite statement above using  and this URL:  - I'm not sure why Apache is crying. Please help!


How to run a PHP file in a scheduled task (Windows Task Scheduler)

How can I create a scheduled task to run a PHP file? Yes, I filled out everything in the scheduled task, but it still doesn't work.  Run: "C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\WEB\4w_website\save.php" Start in: "C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\WEB\4w_website"  It just opens the PHP file in Notepad. I gave the correct user name and pwd. Please help me..


Inserting special characters (č,š and ž) into mysql database

I was experimenting with how special characters such as č, š and ž appear in the database, once inserted. Inserting the string "č_š_ž" looks like this in the database (varchar field): "Ä_Å¡_Å¾". For me it is not a problem how the string appears in the database, but as it seems it still looks like "Ä_Å¡_Å¾" when I fetch it back from the database and render it in HTML with this meta (if it matters):  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">   I also tried real-escaping the string before inserting it, but the result stays the same. Anyone knows a good way to deal with that? Any help is greatly appreciated!