50mm or 35mm lens for a DSLR with 1.6 crop factor?

I have a Canon 500D, with the original lens EF-S 18-55mm f/3.5-5.6 IS II. I would like to try a prime lens, but I don't know whether I should choose a 35mm or 50mm lens.  I read that the 50mm was great even for portrait, so I'd like to try it. However, as the crop factor of the 500D is 1.6, does that mean that I should by the 35mm ? (35 * 1.6 = 55).  I may have missed something, and perhaps my question makes no sense. I apologize in that happens to be the case. Either way, I'll learn something.


Copy map keys to vector in STL using transform

How to copy keys from map to vector. Specifically I have a map<int, int> and I want keys of the map to form a new vector (vector<int>).  So a map (<1,100>; <2,99>) should give a vector of (1,2).   Question , describes exactly what I need but for values, but the response is too cryptic to understand. I cannot understand how the unary operator function is written. Can somebody explain how it is written?


Firstly, I understand that we have no observational evidence for 'wormholes'. They are theorised solutions to general relativity equations.  That said, if macroscopic wormholes do exist---how do they work? I've been thinking about this for the past couple of days, and I have some questions.   What does the mouth of a wormhole look like? I've seen ; is that more or less accurate? If I place one end of a wormhole in a high magnetic field, and the other end on my desk, will all my ferrous objects fly into the wormhole? If so, with what force? What does the magnetic field look like at each end of the wormhole? If the distance between the mouths of the wormhole was comparable to the force that the magnets exert, would the magnet 'pull' on itself and draw itself into the wormhole?   Do any of these questions even make sense?


Why are so many Star Wars species so similar in external anatomy?

There are so many different species in the Star Wars universe yet many of the sentient ones have the same general humanoid appearance: Two arms, two legs on a torso with a head on top. I'm not saying there aren't intelligent species that vary from this, I'm just wondering why there aren't more?  I thought it might be the most "naturally selected" evolutionary development, but that seems unlikely since planets can be so vastly different. There are some that are almost completely water, others that don't have oxygen and still others that all forests. Why would they all develop the same shape of intelligent life? For example Manaan (Legends Canon) is all one big sea with the exception of a few space ports for foreigners, yet the Selkath are bipedal and not entirely fish like.


What are the practical differences between Bash and Zsh?

With the news that , I'm finding lots of results telling me about the switch, and that it may cause problems with shell scripts, but I'm not familiar enough with Zsh to know what those problems might be.  My shell scripts are really not that complicated, but I've only ever used Bash on macOS and Linux - zero experience with Zsh. Can anyone provide a simple practical comparison, or specific stumbling blocks I will need to know, so that I can start working towards being ready for the new shell when Catalina is released?


The difference between "Older" and "Elder"

What is the difference between "Older" and "Elder" ?  And are they interchangeable ?


If oil starts to smoke, does that mean it's already gone toxic?

When heating oil sometimes I notice smoke comes out and this sets home smoke detector off.  At this point I lower the fire or just add food.  Does this mean that it's already hit the smoking point and the oil should no longer be used?  If it hits smoking point and we lower the temperature is it still ok to use or is it only a problem with reuse?


Uniformly convergence of $f_{n+1}(x)= \int^x_0 f_n(t)dt$

Let $f_0$ be integrable function on $[0,a]$ and a sequence of functions $f_{n+1}(x)= \int^x_0 f_n(t)dt$.     Show that $f_n$ is uniformly convergent on $[0,a]$ to $0$.    I get so far is if $\int_0^xf_0(t)dt =x_0 $ so $\int_0^xx_0dt=xx_0 $ and $f_n(x)=x^nx_0  $ so  $f_n(x) \to 0$ for $x\in[0,1) $ but I don't know if it uniformly and what happen for $a>1$ ?  Thanks ahead.


How does FaceTime determine which contact method to use when FaceTiming with a contact?  For example, if I have one contact on my iPhone. The contact has 2 email addresses, persona@icloud.com & personb@icloud.com. Each of those email addresses is associated with a different Apple ID & FaceTime account. The only overlap is the contact on my local device. If I tap FaceTime for that contact, which Apple ID will take priority and be called via FaceTime?


biblatex: different bibstyles in the same document?

I'm using biblatex to print the bibliography for my document and I'm quite happy with the result. However, I also want to add a list of personal publications in another part of the document. It works very well with the refsection environment, but I would like to use for this part another style (e.g., ).   Q: Is it possible to use two different biblatex styles at different parts of a single document?    Example:  For the general bibliography:     Thomas H. Cormen, Charles E. Leiserson, Ronald L. Rivest, and Clifford   Stein. Introduction to Algorithms, Third Edition. 3rd. The MIT Press,   2009   For the personal publication list:     1987 (with John Doe and Mary Hall). Are there new trends in gardening?   In: Gardening Practice 24, pp. 10–15.     It seems that the style can only be specified when loading the package which makes the style a global option. Is there a way around this?


Prove that $\sum_{n=2}^\infty (\ln n)^{- \ln n}$ converges

As the title suggests, I'd like to prove that the sum $$ \sum_{n=2}^\infty (\ln n)^{- \ln n} $$ is finite.  The root and ratio test both fail here, but  suggests that there is a comparison that can be used to show convergence.  The only thought I have is that it may help to write the terms as $e^{-\ln(n)\ln(\ln(n))}$, but this has not led me to any particular insight.  Any ideas are appreciated.


Copy all files created after a specific hour in command line (Windows)?

I would like to easily copy a batch of files from one very big directory to another based on the hour of creation (every hour i want to copy the files from last hour).  I have used Xcopy /D function but you can only put the date but not the hour.  Is there another command?  the directory is really big and it's very long to test each file for it's creation date in a Script. Xcopy is great but lacks the hour.


Hyperlink for square brackets inside inline code

Adding a hyperlink for inline code with square brackets via the tool button (or Ctrl+L) gives the wrong enclosing:  E.g.:     text [] text   produces:     text  text   instead of     text  text


Is the sentence "George's inviting her should please Mary" correct?

As far as I know, this sentence should be George's invitation should please Mary. But in an English book, I am recently studying it is stated in that form. Is it grammatically accurate?


I'm not really sure what to call the "minimap" feature of a text editor.   For example, Sublime Text has what I would call a Minimap feature. A skinny map on the left side where you can click to get to different parts of the file.     Seems like there would be a Notepad++ plugin for this.  Anybody know?


How to change global variables in Python

I am trying to change a variable further down the program. I have a global variable declared at the start of the program and I want to change the variable in different functions down the program. I can do this by declaring the variable inside the function again but I would like to know is there a better way of doing this. Some test code is below to explain what I mean.  ID = 'No' project = ("Yep"+ID) # ID added with 'No' value which I later want to change  def pro():      ID = "YES"     print ID  def pro1(ID):      # I could declare project again to get this to work, but I would like to avoid this     print project # I want this to print with the new ID number.  if __name__ == '__main__':     pro()     pro1(ID)   Has anyone any ideas, thanks  I have tried the global variable but when I do this the project variable still prints out YepNo instead of YepYES. I want the new variable from the function proto change the variable in the project variable.


A light elastic string is stretched between two points, one lying vertically below the other. A particle is attached to the mid-point of the string, causing it to sink a distance h. Assuming that the string below the particle does not go slack, show that the period of small vertical oscillations about its equilibrium position is $2\pi(h/g)^{1/2}$.   My attempt:  The string seems to be acting like a spring so from Hess's law we have the tension $T = kh$ and resolving downwards we have $mg = kh$ so $k = \frac{mg}{h} $, this was as far as I was able to go - how else would I proceed? I've tried using $F = ma$ but no luck.


Making a loop that returns the characters before it hits a colon character

Whenever I run my code it returns this error message:  Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of range: 5     at java.lang.String.charAt(Unknown Source)     at codes.Main.main(Main.java:10)   Here is my code:      package codes;  public class Main {     public static void main(String[] args) {         String cord1 = "Name: x=23 y=60 z= 600";         String cord2 = "Name: x=200 y=20 z= 300";         int c1 = cord1.length();         String mychar = String.valueOf("cord1".charAt(0));         for (int a = 0; a < c1; a++){             mychar = String.valueOf("cord1".charAt(a));             if (mychar == ":"){                 break;             }else{                 cord1.substring(a);             }         }     } }


Well, it's been 4 months. And I am impressed.  I am also a bit disappointed.  Before you read this, take it with a pinch of salt. I'm kinda new, still. I'm still learning the ropes. But I've done a lot of browsing through old questions and new questions, and all the comments in between.  Why am I disappointed, you might ask? Well, I'm disappointed because of the (re)occurence of the yousuck effect. No, I'm not talking about the stern warnings to "read the faq" or the "please post your code". I'm talking about this question. And there are others, if anyone wants to add them.    The first comment on the question was by Mitch Wheat: "It's that time of day again..."  Look, I might have got an easy welcome to Stack Overflow. I posted some dumb stuff. I also posted some good questions, if I say so myself.  But just because it's the time of day where the foreign people (not sure from where because they could be many nationalities) come onto the site and post so-so questions DOES NOT mean that you should treat them like crap.  I know that I wouldn't want to be treated like a useless statistic if I was a foreign person with a question.  And for all those other high-rep people out there, I know what you are like. I know that you are generous. I know that you help me out when I get stuck. But please, please just realize that every new account is, well, a new person. And that is an account that should be treated with utmost respect. And really, the high-rep people should be setting the good examples.  ... not to pick on you, but Mitch, I guess that the comment was deleted for a good reason. I think that it was a good move to delete it.    So in conclusion, just realize that there are people who care. I hate this stuff. I did a "dodgy upvote" because I felt bad for the poor guy. So please, please just do the downvotes and the flags. Maybe you could try to help them out once in a while.  But try to keep the snarky comments to yourself.  Thanks.


We know that Hagrid is half giant but was he considered a Muggle-born, half-blood, or a pure-blood? He just can't be a pure-blood but was his dad a wizard or a Muggle?


How to remove Ubuntu 15.10 from a multiboot configuration?

How can I remove Ubuntu 15.10 from a multiboot computer with windows 10 Ubuntu Kylin and Deepin 2014.3?


Determine if the following sets of vectors are linearly independent

I need to determine if the following set of vectors are are linearly independent or not.  1) $S=\{\mathbf u , \mathbf v , \mathbf w\}\subseteq \mathbb R^3$, it is known that $(1,2,3) \notin \text{span}\{\mathbf u , \mathbf v , \mathbf w\}$  2) $S=\{\mathbf u + \mathbf v,\mathbf u - \mathbf v , \mathbf u - 2\mathbf v +\mathbf w\}\subseteq \mathbb R^n$ where $\{\mathbf u , \mathbf v , \mathbf w\}\subseteq \mathbb R^n$ is a linearly independent set.  3) $S=\{\mathbf u , \mathbf v , \mathbf w\}\subseteq \mathbb R^3$, where it is known that $(1,2,-3),(1,-3,2),(2,-1,5),(0,0,1)$ all belong to $\text{span}\{\mathbf u , \mathbf v , \mathbf w\}$.  I honestly have no idea how to start this, all I know is that the if the vectors $\mathbf u , \mathbf v , \mathbf w$ are linearly independent, then $a\mathbf u + b\mathbf v + c\mathbf w=0$ has only the trivial solution.  Any help here will be appreciated, many thanks!


how to prove this nice trigonometric identity

I was working on a complex analysis problem in "Berkeley Problems in Mathematics", which was asking me to prove that some product is equal to $n$. I had reduced the problem to proving a trigonometric identity, but I couldn't prove it although I spent much time on it. Then, I checked the solution, and it solves the problem with a quite different approach that doesn't even enter to trigonometric expressions at all. But, still, this nice identity that I hadn't encountered before must be true then! I was wondering if people can think of a direct proof for that?  Yes, here is the identity: For $n\geq 2$ integer, we have  $$2^{n-1} \sin \left(\frac{\pi}{n}\right)\sin \left(\frac{2\pi}{n}\right)\cdots \sin \left((n-1)\frac{\pi}{n}\right)=n$$  Thanks!


How to update software installed via .deb file

There are so many software which we installed via .deb file because official ubuntu repo has very old version of it. But I was just wondering how to update packages install via .deb file.  One particular example is sonic-visualiser The official ubuntu has 3 years old 2.5 version while the official site has 3.0.3 version


Is it normal for iOS updates to fail or to take hours on launch day?

After just accepting the iOS 7.0 upgrade dialog on my iPad, the gears spin for a moment and it looks like the download will start, but then the install fails.    Is this something I can fix?


I am having a problem operating with a char array. My idea was to use scanf to store input in a char array and then store the contents of that array inside a struct.  Here is the code which may be easier for you to understand:  struct ListaCategoria {     int ident;     char data[MAX];     struct ListaCategoria* next; };  struct ListaCategoria* headCat;  void inserirCat(){     int x;     char arr[MAX];     printf("Identificacao : ");     scanf("%d", &x);     printf("Designacao : ");     scanf("%c[^\n]", &arr);     struct ListaCategoria* temp = (struct ListaCategoria*) malloc(sizeof(struct ListaCategoria));      (*temp).ident = x;     (*temp).data = arr; //this is the line that's giving some trouble can someone explain me why? }


Is an unsuccessful attack on a creature under the effect of Charm Person "harmful" for purposes of ending the spell?

Consider the following elaborate scenario, which nevertheless actually occurred at our table. Two PCs, Sophie Sorcerer and Roger Rogue, sneak into the hideout of hapless villain Tarley Target. While hidden, Sophie uses her Subtle Casting metamagic to silently cast sleep, rendering Tarley unconscious without ever alerting him to the intrusion. Sophie and Roger swiftly exfiltrate the sleeping Tarley from the hideout to their camp nearby, where Sophie successfully casts charm person on him. When the sleep spell ends and Tarley awakes, Sophie takes advantage of Tarley's charmed condition: she dupes him into believing that someone else actually assaulted him, and that the PCs are in fact his saviors. Tarley, overcome with gratitude and having little cause to believe the PCs are really hostile, proceeds to spill his secrets. Once satisfied that she has squeezed every bit of useful information from Tarley, Sophie signals to Roger -- who has been quietly, nonchalantly moving into striking position -- to kill him. Initiative is rolled. Tarley is ruled surprised. Roger goes first, attacks, and misses. Does Tarley's charmed condition end? The description of  says a target that fails its save "is charmed by you until the spell ends or until you or your companions do anything harmful to it." Does an unsuccessful attack count as "harmful" for purposes of charm person? Would it make a difference if Tarley remained unaware of the attack -- e.g., because (as happened here) the DM ruled him distracted by Sophie's riveting conversation? Related questions:   asked what "harmful" means vis-à-vis charm person, but only in the context that the charmed condition restricts the charmed creature's ability to "target the charmer with harmful abilities or magical effects."  asked whether the target of charm person has to know who damaged them in order for the spell to end, but that presumes damage was actually dealt.


Pexerized D'alembert functional equation $f(x+y)+g(x−y)=\lambda f(x)g(y)$

Let $\lambda$ be a nonzero real constant. Find all functions $f,g: \mathbb R \to \mathbb R$ that satisfy the functional equation $f(x+y)+g(x−y)=\lambda f(x)g(y)$.  I try this : Let $y=0$ in the equation to get $f(x)+g(x)=\lambda f(x)g(0)$ Here we have two cases:  $g(0)=0$ here $f(x)=-g(x)$  $g(0) \neq 0$ here $g(x)=\beta f(x)$ , $\beta = g(0)\lambda-1$   Is this true? And if this true how I can complete the the solution especially in case two?


"Do you want to continue[Y/n]?" Why the upper case?

I am new to Ubuntu and some little thing start to bug me. Such as when trying to install a program, Ubuntu asks,     Do you want to continue[Y/n]?   What is bugging me is why the letter "Y" is upper case and "n" is lower case. Do they have any significant reason why one is upper and the latter is lower? Whatever case I enter it doesn't change the outcome: it either continues or not. Are they trying to notify us that we can enter both and it won't change anything?


Polygons not appearing when creating shapefile based on criteria using GDAL and Python (area calculated properly)

I am looping over the features of a shapefile containing multiple polygons. If  certain criteria are met, I want to save the current feature in a new shapefile.  I am doing this using GDAL 1.10.0 with Python 2.7.3  The code runs, creates the files I want, calculates the area correctly. In the shapefile that is created, the attribute table contains the propoer fields ('name' and FID). Two things are wrong:   No polygons are visible (in ArcMap). This seems to me particularly weird, because the polygons seem to me proper, in the sense that they are closed (and the area is calculated properly).  The coordinate system seems off (in Arc Catalog there appears in the bottom -20,9667 0,0000 (are these degrees??)), despite the fact that I am creating a projection file (they are in German national grid 3)   Any hints as to what the problems could be? I tried to put the relevant excerpt of the code below:  from osgeo import gdal, gdalnumeric, ogr, osr, gdalconst  ### prepare shapefile into which to save driver = ogr.GetDriverByName('ESRI Shapefile') path_matched = r'.../.../path' datasource = driver.CreateDataSource(path_matched) lyr_matched = 'matched_%s' % cur_id  # from above # Remove output shapefile if it already exists name_shpfile = lyr_matched + '.shp' if os.path.exists(os.path.join(path_matched, name_shpfile)):     driver.DeleteDataSource(os.path.join(path_matched, name_shpfile)) layer = datasource.CreateLayer(lyr_matched, geom_type=ogr.wkbPolygon) #layer.ResetReading() field_name = ogr.FieldDefn("name", ogr.OFTString) layer.CreateField(field_name)  ### prepare file in which I want to write the areas of matched polygons path_area = path_matched file_area = 'matched_area_%s.txt' % (cur_id) fobj_area = open(os.path.join(path_area, file_area), 'w')  ### original shape file containing all polygons shp = ogr.Open(shp_all)  # os fobj from above lyr = shp.GetLayer()  # loop over polygons in original shameful for FID in featList:     feat = lyr.GetFeature(FID)      # this is from the shapefile      cur_name = feat.GetField(1)      # ... work on conditions ...      if condition = true:         myPoly = ogr.Geometry(type=ogr.wkbPolygon)         cur_poly = feat.GetGeometryRef()         myPoly.AddGeometry(cur_poly)         cur_spat_ref = cur_poly.GetSpatialReference()          cur_area =  cur_poly.GetArea()         cur_area_string = "%s \t %f \n" % (gw_name_EZG, cur_area)         fobj_area.write(cur_area_string)          featur_dfn = layer.GetLayerDefn()         feature_abc = ogr.Feature(featur_dfn)         feature_abc.SetGeometry(myPoly)         feature_abc.SetField("name", cur_name)         feature_abc.SetFID(FID)         layer.CreateFeature(feature_abc)         myPoly.Destroy()         feature.Destroy()   # generate projection file prj_filename = lyr_matched + '.prj' file = open(os.path.join(path_matched, prj_filename), 'w') targetSR = cur_spat_ref targetSR.MorphToESRI() file.write(targetSR.ExportToWkt()) file.close()   datasource.Destroy()


call tooling API when using lightning component

When I make request tooling API from Apex by using lightning component, the error This session is not valid for use with the REST API is responsed. Also, the response status code is 401, and status is Unauthorized.  How can we call tooling API without problem when we use lightning component.  By the way, when I use only "Debug - Open Excute Anonymous Window" in Apex, I can get correct and expected response.  Below is the code that I tried.  req = new HttpRequest(); req.setHeader('Authorization', 'Bearer ' + UserInfo.getSessionID()); req.setHeader('Content-Type', 'application/json'); req.setEndpoint(URL.getSalesforceBaseUrl().toExternalForm()+'/services/data/v39.0/tooling/sobjects/GlobalValueSet/(Here is GlobalPickListId)?_HttpMethod=PATCH'); req.setMethod('GET'); httpreq = new Http(); res = httpreq.send(req); System.debug(res.getBody());   Thank you in advance.


I get "floatrow.sty error; line 485; No room for a new \dimen . ...finable\flrow@foot{\newinsert\flrow@foot}" The code used is given below. Any help to solve this is highly appreciated. Adding \usepackage{etex} didn't help     %\pdfminorversion=4  \documentclass[twoside]{article}  \usepackage{siunitx} \usepackage{multirow} \usepackage{hyperref} \usepackage{amsmath,amssymb} \usepackage[]{graphicx} \usepackage[noabbrev]{cleveref} \usepackage[font={it},tableposition={top}]{caption} \usepackage{subcaption} \usepackage{pdflscape} \usepackage{pgfplots} \usepackage{pgfplotstable} \pgfplotsset{compat=1.11} \usepackage{makecell} \usepackage{xfrac} \usepackage[hmarginratio=1:1,top=32mm,columnsep=0.2in]{geometry} % Document margins \usepackage{multicol} % Used for the two-column layout of the document \usepackage[style=boxed,font=small]{floatrow} \usepackage{array,booktabs} % Horizontal rules in tables \usepackage{float} % Required for tables and figures in the multi-column environment - they need to be placed in specific locations with the [H] (e.g. \begin{table}[H]) \usepackage{paralist} % Used for the compactitem environment which makes bullet points with less space between them \usepackage{titlesec} \usepackage{lscape} \usepackage{color} \usepackage[figuresright]{rotating} \usepackage{xfrac} \usepackage{longtable} \usepackage{epstopdf} \usepackage{import} \usepackage{floatrow} \usepackage{tikz} \usepackage[rightcaption]{sidecap} \usepackage{cite} \usetikzlibrary{arrows,pgfplots.groupplots}     \tikzset{arrow/.style={             -stealth, thick         }} \allowdisplaybreaks  \pgfplotsset{     legend image with text/.style={         legend image code/.code={%             \node[anchor=center] at (0.3cm,0cm) {#1};         }     }, }  \floatsetup[table]{capposition=top} \newsavebox{\tempbox} \newcommand*\diff{\mathop{}\!\mathrm{d}} \newcommand*\Diff[1]{\mathop{}\!\mathrm{d^#1}} \DeclareSymbolFont{extraup}{U}{zavm}{m}{n} \DeclareMathSymbol{\vardiamond}{\mathalpha}{extraup}{87} \DeclareSIUnit\torr{Torr} \makeatletter \renewcommand{\maketitle}{\bgroup\setlength{\parindent}{0pt}     \begin{flushleft}         \textbf{\@title}         \vspace*{0.5cm}         \@author     \end{flushleft}\egroup } \makeatother  \titleformat{\subsection}[hang]{}{\thesubsection}{1em}{\itshape} \titleformat{\subsubsection}[runin]{}{\thesubsubsection}{1em}{\itshape} \bibliographystyle{iopart-num}  %----------------------------------------------------------------------------------------  \begin{document} \begin{abstract} \textit{In situ}  \end{abstract} \end{document}


How can non-UX professionals effectively join the UX process/discussion

Trying to avoid the "what is the best tool for 'X'" type question, but a friend asked and I wasn't quite sure how to answer.  The original question went something like this:     What's the best tool for a sales-type guy/girl to create interactive mobile mockups?   The more I thought about it, the more I felt like I'd be doing a disservice to simply respond with "Balsamiq" (or any other tool for that matter).  I feel like the question could go deeper with something like:      What's the best/most efficient way for someone in sales to get his/her feet wet with UX?    Read some books? Don't Make Me Think, The Design of Everyday Things, A Project Guide to UX Design? Learn some of the tools? Photoshop, Sketch, UXPin, Flinto, etc.   Am I overthinking it? Could you combine pen/paper with a tool like  or  and just dive in?  Edit: This isn't about making the switch into the field. It's about getting their feet wet just enough to join the conversation in a meaningful way. I'm thinking about it like this:     Pat works in sales, but has an idea for an app/site/whatever they want to play around with as a side project. (S)he has heard about user-centered design, but that's about it. Some developer friends might be interested in teaming up, but they don't have much experience with UX either. What do you tell Pat?


Does `at` run a command later if the computer is off at the specified time?

I want to schedule jobs with at, but I'm not sure what happens if the computer is suspended at the specified time: Will the command be executed as soon as the computer wakes up again (like with anacron) or will it not be executed at all (like with cron)?     If you specify a job to absolutely run at a specific time and date in   the past, the job will run  as  soon  as possible.   That's what the manpage says about that, however it doesn't quite match my case: I don't want to specify a job to run in the past, I want to run it in the future and ask how at will treat it if the computer is sleeping then.  This is not a duplicate of  because this question asks whether at will wake up the computer to execute the command, neither is it a duplicate of  because this is about how to prevent at from executing  those “old” jobs (with a very good answer though!).


Cardinality of $\mathbb{R}^\mathbb{R}$ by diagonal argument

I want to prove that the set of all real functions $\mathbb{R}^\mathbb{R}$ has a higher cardinality than the real numbers $\mathbb R$, by Cantor's diagonal argument.  I'm having difficulties with approaching this problem.  What I'm looking for is a hint in the right direction.  I've seen an example where it is shown that the power set $2^S$ of a countable set $S$ is uncountable, by the diagonal argument.


How to deal with payment scam through apple calendar?

I upgraded to latest version of iOS and link my debit card to apply pay a few days ago. After that I start receiving a very suspicious invite on my iPhone calendar. I ignored it and on advice from my friend, disabled "Events found in apps". However, 2 days later, when I wake up, I received the same event again, and most shockingly the phone was at the payment screen, waiting for me to authorise the payment of $19,99 through my thumbprint. Unfortunately I did not take a screenshot of this as I immediately turn off and on my phone to get rid of it.  I checked both my gmail and yahoo mail accounts that are linked to my phone, including the spam folder, but did not find any suspicious email.  I had contacted apple support, but they did not even know about the disable event found in apps feature. Really worried about the security of my phone now and thinking of deleting apple calendar or removing apple pay. Any advise will be appreciated.


Suggested edit gained 4 reputation points

I recently  to a . This edit got approved, but I received 4 reputation points for that suggestion.     Shouldn't that be just two points - or am I missing something here?  My first thought was that I suggested two edits, but that would have been to simple:    Looking at the  I can see 4 revisions - could it be that I received credit for the edit made by Nuffin? And if so, is that a  or ?


If I change my avatar (or profile/user image) can I return to the old one?

If I've decided to update my SE avatar (in any of the various ways well described in the answer to this ), am I able to return to either the original stock image or previous avatar images I have used?


This is a general question regarding pagination.  I have posts on the main page, but the pagination is redirected to main page.  For example, site.com/page/2 goes to site.com.  Is there a general setting in the backened which I can fix the redirect?   (otherwise, I am guessing it is from plugin setting).  Thanks


Managing SQL Server 2008 R2 transaction logs when using principal/mirror databases

My system has the main database as a principal (reads/writes only to that database) and then a mirror database on a different site that receives all database updates from the principal database.  This is all working fine, but the transaction log on the principal database is close to 80GB and growing. I have tried shrinking the log but that task fails every time. In my opinion I would not need the log at all, since all updates are mirrored to the other site.  Principal database needs to be in full recovery mode for the mirroring to work.  Can you give me some steps on how to get rid of that annoying transaction log or how to get it into a manageable size? Since the mirror site is my recovery method, can I just delete in?


PHP DateTime microseconds always returns 0

this code always returns 0 in PHP 5.2.5 for microseconds:  <?php $dt = new DateTime(); echo $dt->format("Y-m-d\TH:i:s.u") . "\n"; ?>   Output:  [root@www1 ~]$ php date_test.php 2008-10-03T20:31:26.000000 [root@www1 ~]$ php date_test.php 2008-10-03T20:31:27.000000 [root@www1 ~]$ php date_test.php 2008-10-03T20:31:27.000000 [root@www1 ~]$ php date_test.php 2008-10-03T20:31:28.000000   Any ideas?


Python How to calculate number of days between 2 dates?

I'm having trouble doing this in a clean and simple way in python. What I'd like to do is having a piece of code that calculates the number of days passed between 2 dates. For example today being the 22nd of december and i want to know how many days i have before the 15th of febuary. There are 55 days difference (i took this example because it englobes 2 different years an multiple months) What i made was very messy and dosen't work half the time so i'm kind of embarrassed to show it. Any help is appreciated. Thanks in advance


This can be considered a combination of the following questions      The following piece of code renders two plots, one above the other, and attaches a common ylabel to both.  \documentclass[tikz]{standalone} \usepackage[T1]{fontenc} \usepackage{cmbright} %% Just some font that has serifs for maths                                           %% Yes; this particular combination is horrible                                       \usepackage{euler} \usepackage{pgfplots} \usepgfplotslibrary{units} \pgfplotsset{compat=newest} \usepgfplotslibrary{groupplots} \begin{document} \begin{tikzpicture}   \begin{groupplot}[group style={group size=1 by 2}]     \nextgroupplot[ylabel = ylabel, y unit = m/s]     \addplot coordinates {(0,0) (1,1) (2,2)};     \nextgroupplot     \addplot coordinates {(0,2) (1,1000) (2,0)};   \end{groupplot}    \node at ($(group c1r1.west)!0.5!(group c1r2.west)$)   [xshift=-1.5cm] % Problem #1: estimated distance                                      {\rotatebox{90}{ylabel [$\mathrm{m/s}$]}};   % Problem #2: Copying pgfplots internals,                                             % i.e. /pgfplots/unit code/.code 2 args={\mathrm{#1#2}}                             \end{tikzpicture} \end{document}     There are two problems: It would be nice if the near ticks mechanics worked for this case, too, i.e. the optimal distance from both plots were determined automatically; on top of that, if units are used, the ylabel isn't just a bit of text anymore, but something more complicated; and I'd rather not reinvent that machinery.  Is there a better way to handle this?


Is there a way to use sed or awk to filter data inside a zipped file? When I run a sed or awk command and send to stdout the file created is 0 bytes.


In order to ssh into my work computer from home, let's call it C I have to do the following:  ssh -t user@B ssh C   B is a server that I can connect to from home but C can only be connected to from B.  This works fine.  If I want to copy a file that is on C to my home computer using scp, what command do I need from my home computer?


How do I create a sum for each group of data in Libre Office Calc?

I have a simple spreadsheet like this:  Invoice_Number     Invoice_Date      Invoice_Amt 1000               1/1/12            1 1001               1/1/12            2 1002               1/2/12            3 1003               1/3/12            4   How can I get LibreOffice Calc to create a sum of the amounts for each date?  I have a feeling it has do with outlining and grouping, but I can't get the incantation right.


How to verify Email on Server without sending an email?

I Want to verify Email Address without sending an Email because when we know it's invalid Email, So why i send Email


Since disk space is allocated in blocks, is it a more accurate representation of the actual space consumed by a directory to report it in blocks vs bytes?  If a file of size 1,025 bytes resides on a file system where space on the file system is doled out in units of 1,024 byte blocks, that file consumes two whole blocks.  That seems more accurate than to say that this file consumes 1,025 bytes of space.  Edit: File system in question is ext4, no dedupe, no compression, fwiw.  This is my attempt:  def getDirUsage(filepath, block_size=1024):  # block_size as reported by os.statvfs()     '''     return the number of blocks consumed by a directory     '''     total_size = int(math.ceil(os.path.getsize(filepath)/block_size))  # debatable whether this should be included in the size     allfiles = os.listdir(filepath)     for f in allfiles:         p = os.path.join(filepath,f)         if os.path.isdir(p):             total_size += getDirUsage(p,block_size)         else:             total_size += int(math.ceil(os.stat(p).st_size/block_size))     return total_size


How much physics a mathematician needs to know to study GR?

I'm intending to study General Relativity on my own. The thing is, my physics background is not very strong. I know classical mechanics and I know some electromagnetism. I'm familiar with Gauss' law, Ampere's law, RLC circuits, ... but I still have problems with the intuition behind concepts like 'momentum'. I know that momentum is nothing but $p=mv$ and I know that the change in momentum is associated to a force acting on the particle by the equation $F=\displaystyle {\mbox d p \over \mbox d t}$ but I'm not sure if my background is enough.  I know some differential geometry and this semester I'm going to take a course in topological manifolds. I guess my mathematical background is strong enough for GR. But I don't know where I should start. I know the basics of special relativity, but I only know the basics, I don't know every details that a physics student must know. So, where do you think I should start from?


Setup Windows Remote Desktop on port 80?

I have a VM on Internet. I have a port limitation on my windows.  Is it possible to setup Windows Remote Desktop on port 80?


What sort of Rice do Chinese Restaurants use? I use good quality Thai Rice at home in my rice cooker, I have tried all sorts of brands of rice and I have tried mixing different rice together, but, I have never been able to achieve the same taste of rice that I have had in Chinese Restaurants. Any advice?


To prove $\sup |x^n g(x)| $ tends to zero as x tends to infinity

In this particular problem,I am unable to understand how to prove the claim of sup(x) part. How can we use the information that g(1)=0.I need something to start off...


need to make salesforce app available in multiple language

I want to make my appexchange app available in multiple language like Spanish, dutch etc. so that depend on the language of the user they can access the app.  Is it possible in any way..  any help will be appreciated.. Thanks


Need to add Shader node to this tree but it's not available

I'm trying to add the "Shader" node to this drop-down menu but it's not available and I truly don't know how to figure it out or even find it otherwise lmao.  I promise I tried Googling first for about an hour, then just clicking around for an hour, but I'm stuck because I'm super-new to using Blender (I've managed to do very little in the two weeks since I started trying to learn) and tbf my ADHD is bad and it's making me feel hella stupid so I just need a kind soul to tell me exactly what to do. If it helps at all, I'm trying to make this object glossy and I'm following a Youtube tutorial to learn how to do that.  I had this problem with 2.70 and just updated to 2.80 because I figured some of you might tell me to update, but the issue persists!  And tbf (again), it seems that I might have trouble following tutorials now because 2.80 looks so different from 2.70!  Haha! Here's a screengrab of what happened when I pressed Shift + A in 2.70 (very similar to 2.80).  Here's a screengrab of what happened when I tried to search for "Shader" within that search function in 2.70.  And here's what happens when I try to search for "shader" in the search bar in 2.80 (literally the same as in 2.70; I don't know why I thought updating would fix this.  I feel so stupid right now!)  Sorry & thanks in advance.  I'll answer whatever questions you have to the best of my ability, but I'm apparently an idiot so I may not know how to find what you're asking me for and anyway I'm assuming this'll be as simple as a few clicks or keystrokes.  I really appreciate it!! EDIT:  Whoever closed this question, the link provided uses v2.70 and I'm using 2.80 so everything looks completely different and I'm a complete beginner so I don't know what they're telling me to click!  So it doesn't help me at all!  I'm really frustrated and would appreciate it if you'd tell me how to do that in 2.80!  :^)


If $\sum a_n$ converges then $\lim_{m \to +\infty} ma_m = 0$

Let $a_n$ a decreasing sequence of real positive numbers such that $\sum a_n$ converges then $\lim_{m \to +\infty} ma_m = 0$. I had the following idea but cannot finish it : We know that :  $\sum a_n$ converges absolutely (I do not use it but can be useful for permutations). $\lim_{n \to +\infty} a_n = 0$ $\frac{a_{m+1}}{a_m} \leq 1$ $a_n \geq 0$.  We cannot use the alternating series criteria because of the last point but I thought of using D'Alembert's criteria : if $\lim_{m \to +\infty}$ $\lvert \frac{(m+1)a_{m+1}}{ma_m}\rvert =  \lvert \frac{a_{m+1}}{a_m}+\frac{a_{m+1}}{ma_m}\rvert < 1$ then $\lim_{m \to +\infty} ma_m=0$ but it seems to be not using at all the fact that $\sum a_n$ converges. Is there a way to finish this way or maybe there is some other proof ?


I get the error ! pdfTeX error (ext4): \pdfendlink ended up in different nesting level than \pd when trying to compile. I'm on texlive/texmaker on Linux. It was compiling fine before I added another source in bibtex, now it craps out. I've tried deleting the sources I entered, didn't work. I tried deleting all files apart from the .tex and .bib files I use to compile - still same error.


I'm trying to build a complicated regex. I want to match a regex of the following structure:   .+ (any character, at least once) either "del" or "ins" or "dup" or [ATGC] .* (string ends or is followed by whatever)   I have tried different things and at the moment I am here, which doesn't work:   hgvs = "c.*1017delT" a = re.match('(.*)(del|ins|dup|[ATGC]).*', hgvs) a.groups() ('c.*1017del', 'T')   I expect to catch everything before the "del" with "(.*)". But he seems to apply the [ATGC] match over the del match.


unstandardized coefficient B value 2.314E-005 in multivariate regression analysis

I do multivariate regression analysis for a dependent variable. unstandardized coefficient B for one of the independent variables was  2.314E-005 ,standardized coefficient Beta was 0.051, CI (0.000- 0.000), p=0.409. i want to know what is the this abnormal value of unstandardized coefficient 2.314E-005 means ?


Java - How do I initialise an array holding items of type T in the constructor of a templated class?

Searching this only found answers in C++, which I know plenty well already, but how do I do this in Java? I found answers that suggest I need to do the following:  class FixedArray<T> {      public FixedArray(byte size) {         array = new T[size];     }      private T[] array; }   ... but I get the error  Type parameter 'T' cannot be instantiated directly


Who/What are the First Order stormtroopers?

I just returned from watching the movie, and I'm not sure if I heard this wrongly since everything was going on for the first time to me and I was busy absorbing everything in the movie as it happened:      When Finn defected and escaped with Poe, Kylo Ren requested for information on him, whether he is a defective trooper or something. The reply was that, if I remembered correctly, nothing is wrong with him on record, that he had just returned from conditioning, and this is a first-time offence.   Looking back at the movie, who/what are the First Order stormtroopers composed of?      One theory I had in my head is that he is a clone, especially since early in the movie - around or before the time of the scene mentioned in the last spoiler tag, I seemed to have heard the mention of a clone program (or could have misheard it). Some elements that seem reminiscent of it is Finn having been called FN-2187 all his life - like a birth number - and this mention of conditioning. I am reminded of concepts that exist in the EU such as the use of multiple clone templates, and flash memory training that has been used to condition troopers, including Darth Vader's own apprentices partly to instil loyalty. Some may perhaps argue the First Order to be unable to afford clones, but hey they can afford a superlaser the size of a planet instead of a moon...   I may have heard wrong in the movie, however, especially since      When Finn confessed to Rey that he is a stormtrooper, he mentioned how he has never known his own parents. This may suggest he is birth-born, but then again that could have been a clone grappling with his own identity, or some plot device of a clone being deceived into believing what he is actually not.   Regardless of whether my own theory is correct, it seems clear that the stormtroopers of the First Order are different from the stormtroopers of Palpatine's Empire - they aren't simple trained conscripts, but something more. What is this more:      Are they clones, babies seized from birth to be trained and indoctrinated - a practice somewhat similar to what Republic-era Jedi do - or something else?


Is there a word to describe someone who over responds to the judgement of others?

Is there a word to describe someone who overreacts to the judgement of others, i.e., they over-correct their behavior or are overly fearful of the judgement of others?


Subfig causing a mess in List of Tables/Figures

OK, this was introduced with a very recent update to MikTeX but it is a big problem for me... - I narrowed it down to the subfig package - and yes, I need it for subfloats with numbering... however it now does this:  \contentsline {table}{\numberline {3.1{table}}{\ignorespaces List of orders of reactions with the appropriate units for the rate constant.\relax }}{39}{table.caption.16}   This shows up as 3.1table List of order ... -> That "table" (or figure for figures) did not use to show up, suddenly it does, I need to get rid of it.  Any solutions?  For those desperate for an example, it shows up in something as simple as this:  \documentclass{article}  \usepackage{subfig}   \begin{document}  \listoftables  \begin{table}% \begin{tabular}{lcr} entry1 & entry 2 & entry 3 \\ \end{tabular} \caption{} \label{} \end{table}  \end{document}


Why is $\frac{n-1}{n}$ always in its simplest form?

So I was just messing around on my calculator and I noticed that for every positive integer the formula $\frac{n-1}{n}$ is always a fraction in its simplest form im not quite sure why this happens is there a case where this is not true?


Can I influence the direction in which fire and smoke dissolve?

I know how to control fire/smoke particles but flames and smoke always appear to be drifting upwards (i.e. positive global Z-axis) regardless.  I'm actually trying to create a sun-like fireball, i.e. I want the flames to emit outwards in all directions from a sphere. My particles are already doing this but the flames emitted from those particles are still drifting upwards only.  Is this possible at all with the latest release of Blender (2.69 at the time of this writing)?


Is it possible to install Cain and abel in ubuntu?

I just want to know if it's possible to get Cain and abel installed in ubuntu, it would really help my work instead of dual booting back to my windows 7 just to use it. THanks!


How do I install Intel Graphics drivers under Ubuntu 17.10?

I am running on Ubuntu 17.10, and I want to install the Intel Graphics Tool (version 2.0.6). It installs fine, however running it results in the below error message:       Distribution not supported   What can I do to fix this, if anything?


How to use Jquery on the table that I echo from another php?

I echo a whole table to the div and then I can't access the id of it by some reason via jquery, what should I do?  I don't know how to ajax the datatable so I echo the whole table with post and it all work fine.  No error just can't access ID of button In the table I echo  I don't know what line of code I should provide here because everything work fine except I can't access the id of the button in the datatable that I echo from fetch.php to index.php   I checked with inspect mode and the ID are there with everything (ex. $(#'PROID112').click(function() ) <- the id of the buttons was all in place  Solution: I fixed it myself by changing  $('#id').click(function())  to  $(document).on('click', '#id', function()  thank you everyone for your answer ;)


User Postgres execute unknown command which take high resource and cpu

I just install postgres in my host but some time I get CPU and memory very high usage I checked with following topcommand result   PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND  5029 postgres  20   0 2438036   2.0g      4 S 185.0 55.0   6224:15 rzQBQuPW    35 root      20   0       0      0      0 S   4.3  0.0   9:15.50 kswapd0  2414 baovech+  20   0  579344  70044   2496 R   4.3  1.8   7:27.91 php-fpm 20998 baovech+  20   0  579596  77564   2644 R   3.0  2.0   3:55.35 php-fpm 15749 root      20   0       0      0      0 S   0.7  0.0   0:00.22 kworker/0:2  Is this a virus or something like that?


BibTeX: Abbreviate first name (aka given name) to 2 or 3 letters (not 1)

BibTeX can abbreviate first names, e.g. change Smith, John to J. Smith.  In some languages, certain (not all) first names must be abbreviated  (it's not optional as in the case of Ch. for Charles).  How can I force BibTeX to do this for particular first names?  EDIT:  I encounter this all the time, including for my own name which should be abbreviated Sz rather than S.  I used to work around the problem by hand editing the reference list in the final version of the paper, but I'd prefer using BibTeX for everything if possible.  Requested example:  .tex file:  \documentclass{article} \begin{document} Text \cite{kovacs, smith}.  \bibliographystyle{abbrv} \bibliography{references} \end{document}    .bib file:  @Book{smith,   author  = "Peter Smith",   title   = "Title 1",   year    = 1980,   publisher = "Addison-Wesley" }  @Book{kovacs,   author  = "Csaba Kov\'{a}cs",   title   = "Title 2",   year    = 1986,   publisher = "Addison-Wesley" }   The output I get:     Text [1, 2].      References       [1] C. Kovács. Title 2. Addison-Wesley, 1986.      [2] P. Smith. Title 1. Addison-Wesley, 1980.   I need to tell bibtex that for Csaba Kovács I need to get Cs. Kovács in the output, and not C. Kovács, as this is incorrect.  The document is in English, so this is not a babel-issue.  This applies only to certain author names, and it's because in Hungarian C and Cs are considered to be distinct units of the alphabet.


"curl : Depends: libcurl4 (= 7.61.0-1ubuntu2.2) but it is not going to be installed" on Ubuntu 18.10 with PHP 7.2.10

I am struggling with installing cURL module in Ubuntu 18.10. While upgrading from 17.10 to 18.10 cURL was removed/deleted. Now when I try to execute the command  sudo apt-get install php7.2-curl   I get this error:  The following packages have unmet dependencies:   php7.2-curl :   Depends: libcurl4 (>= 7.44.0) but it is not going to be installed E: Unable to correct problems, you have held broken packages.     sudo apt-get install curl   gives the error  The following packages have unmet dependencies:   curl : Depends: libcurl4 (= 7.61.0-1ubuntu2.2) but it is not going to be installed E: Unable to correct problems, you have held broken packages.


What was the "invalid flag" flag? What was the "10k flag queue"?

Many older questions and answers here on Meta discuss or mention an "invalid flag" flag, often in the context of the "10k flag queue". However, right now, there's no such flag, and there's no such queue. What is the context of these posts? (In other words, what were these flags and this queue about, back when they existed, and how did they work?)


Reputation on Activity tab has an ugly gray background (child metas only)

The reputation on the profile Activity tab (on child meta sites) has a gray square background that also extends all the way to the edge of the next div (text below the reputation). Using Stack Overflow as an example, compare how it looks on the  (light theme) vs :  The div has a bg-black-050 class which is responsible for this gray background.


Is there a word that means "a nicer word for a word"?

I'm looking for a word that I learned when studying for the CLEP analysing and interpreting literature exam. It is a word that means -'a more eloquent version of a harsher word.  Example: saying, 'expecting' instead of 'pregnant'


Any simple way to check if two numbers have different signs?

I have two floating point number a and b. I want to check if they have different signs. The easy way is to see   bool b = a * b < 0;   But the two numbers are very small and a * b might be underflow. Any other simple way to check it?  Anyone thinking it is a duplicate question please give me an answer that exactly matches the condition a * b < 0. Note here the sign of 0 is undefined in my question.


English equivalent for "Don't burn your house to smoke out a rat!"

In my language there's a saying which literally translates to     Don't burn your house to smoke out a rat!   It advises us to use solutions that are appropriate to the magnitude of the problem.  Eliye pedichu illam chudaruthu! - in Malayalam/Indian.  What could be the English equivalent?


Why is the phrase "I hope this computer work" unacceptable? The word "hope" makes the phrase subjunctive, so why isn't it correct to use the infinitive verb form?


Test for presence of specific object or managed package?

I am writing a test class that needs to be instance-agnostic. On some of our instances we have a managed package that affects the outcome of the test, so I need to insert some test data that will be used by that managed package, but I'm worried that if I migrate this test case to instances without that managed package, it will fail when trying to insert this test data for objects that don't exist on that instance.  To make a long question shorter, is there a way to test for the presence or absence of either a specific object or a managed package so I can run this code conditionally?


How to isolate my programming related accounts from my other accounts?

I have several accounts on StackExchange, but I would like keep my programming and IT accounts separated from the others.  Is there a way to create two personas ?


Using PDO to insert html form data into SQL table getting parse error

Im a bit confused on this subject, I have seen variances in answers I have found and looking for a bit more direction for my application. What I am trying to do is use a PDO method to take data from a form with multiple entries and insert the data into my table I created.  I think I have an understanding of the overall concept but what I would like to do or rather not do is have to create a variable ( $player1 = $_POST['player1'] or similar...) for every input field I have.   Is there a way in my sql statement I can use something like $_POST['player1'] to use the input from the form? I tried doing it as such below, but Im getting this error:  Parse error: syntax error, unexpected '' (T_ENCAPSED_AND_WHITESPACE), expecting identifier (T_STRING) or variable (T_VARIABLE) or number (T_NUM_STRING) on line 19  line 19 being the values line of the sql statment...  html          <form method='post' action='phpfiles/Sqldata2.php'>             Enter data in for team 1.
             Enter Id: <input type='text' name='id1' maxlength='6'>
             Enter Teamname: <input type='text' name='team1' maxlength='30'>
             Enter city: <input type='text' name='city1' maxlength='30'>
             Enter Bestplayer: <input type='text' name='best1' maxlength='30'>
             Enter Year formed: <input type='number' name='year1' maxlength='4'>
             Enter website: <input type='text' name='website1' maxlength='40'>

              <input type='submit' name='SQLdata' value='Submit Data'>                         </form>   php      <?php      // server and database information     $servername = " n/a  ";     $username = "   n/a  ";     $password = "   n/a  ";     $dbname = "     n/a  ";      if ($_SERVER["REQUEST_METHOD"] == "POST"){          try {             $conn = new PDO("mysql:host=$servername;dbname=$dbname", $username, $password);             // set the PDO error mode to exception             $conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);              // begin the transaction             $conn->beginTransaction();             // our SQL statememtns             $conn->exec("INSERT INTO teams (id, teamname, city, bestplayer, yearformed, website)             VALUES ($_POST['id1'], $_POST['teamname1'], $_POST['city1'], $_POST['bestplayer1'], $_POST['yearformed1'], $_POST['website1'])");              // commit the transaction             $conn->commit();             echo "New records created successfully";             }         catch(PDOException $e)             {             // roll back the transaction if something failed             $conn->rollback();             echo "Error: " . $e->getMessage();             }          $conn = null;     }         ?>   The error im getting I believe is a syntax error such as that I need some more "" because my sql statment isnt a string? a little lost here and not sure if what Im trying to do is correct...


Running remote GUI application over SSH as a standard non-admin user

I'm running a HelpDesk for internal call center employees.  All employees have headsets in conjunction with their jobs, and I'm working on a script to remotely launch a minimized Mumble session via SSH in order to better aid in remote support.  All remote users are using Linux Mint XFCE.  I followed Oli's top solution to the question , and I used his example to write this bit of code to launch Devilspie (which I've pre-configured to minimize Mumble) and then launch Mumble itself:  export DISPLAY=:0 devilspie & echo loading devilspie mumble   When I test this code while logged in as the remote admin profile, it works like a charm.  Devilspie launches, and then Mumble launches to immediately minimize.  My problem, however, is that the end-users I'm trying to support aren't administrators on their workstations.  If I run this same script via SSH while the remote machine is logged in as a non-admin user, Devilspie gives me the following error:  No protocol specified Gdk-WARNING **: devilspie: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.   and Mumble gives me the following error:   No protocol specified  mumble: cannot connect to X server :0   Since this same script works flawlessly on an admin profile, I'm presuming that the error may have something to do with permissions.  Help!  I can't figure out how to launch these applications for a non-admin user.


Why do we need to set swap space as twice big as our physical memory?

When we want to setup a linux system, there is a common a suggestion to set the swap space  twice as big as your physical memory. I want to know why do we need this, and how it is this suggestion come to be?


(Apologies if I break some conventions, this is my first time posting!)  I am working on proving Stein's characterization of the Normal distribution: for Z $\sim N(0,1)$ and some differentiable function $f$ with $E[|f'(Z)|] < \infty$, $$E[Zf(Z)] = E[f'(Z)]$$ Writing the LHS expression in integral form and integrating by parts, I eventually obtain: $$E[Zf(Z)] = \frac{1}{\sqrt{2\pi}} \left[ -f(z) \cdot \exp \left\{ \frac{-z^2}{2} \right\} \right] \Bigg|_{-\infty}^{\infty} + E[f'(Z)]$$ Now I need to show that the first expression on the right hand size is zero. Intuitively, this seems clear because of the exponential term, but I am having trouble explicitly applying the condition on $f'$ to prove this rigorously. Any ideas?


I have read about LaTeX2rtf, but installing it on a Mac looks a bit intimidating, so in the meantime I am trying to use the workaround of using TeX4ht to convert my TeX into an ODT file and then saving to Word format. Anyway, in case this makes any difference I have been playing around with the SimpleTeX4ht GUI implementation of TeX4ht. When I convert the following code, the Tarski citation shows up as empty brackets [] in the output ODT file.  \documentclass{article} \usepackage{natbib} \begin{document} According to \cite{Tarski:1935}, you can have your cake an eat it, too. \bibliography{bibfile} \bibliographystyle{plainnat} \end{document}   When I convert this file to HTML, the citations all look normal, but for some reason they get screwed up when converting to ODT. Any ideas?


The object does not change after being passed through a constructor. Why?

Hi I have the following code:  public class Dog {     private String name;     private int size;     public Dog(String name, int size){         this.name = name;         this.size = size;     }     public void changeSize(int newSize){         size = newSize;     }     public String toString(){         return ("My name "+name+" my size "+ size);     } }  public class PlayWithDog {     public PlayWithDog(Dog dog){         dog = new Dog("Max", 12);     }      public void changeDogSize(int newSize, Dog dog){         dog.changeSize(newSize);     }       public static void main(String[] args){         Dog dog1 = new Dog("Charlie", 5);         PlayWithDog letsPlay = new PlayWithDog(dog1);          System.out.println(dog1.toString()); // does not print Max.. Prints Charlie... .. Does not change... WHYYY???         letsPlay.changeDogSize(8, dog1);         System.out.println(dog1.toString()); // passing by value.. Expected Result... changes the size         dog1 = new Dog("Max", 12);         System.out.println(dog1.toString()); // Expected result again.. prints Max     } }   I know Java always passes everything by value. Be it primitive types or objects. In objects however, the reference is passed that is why you can modify the object after its being passed through a method. I wanted to test whether the same thing applies when the object is passed through a constructor of a different class. I found out that the object does not get changed. This seemed weird to me because I am just passing a reference of the object in the constructor. It should change...?


I cannot find the answer to this in the EL&U archives but I am sure it must be there somewhere and that this is a duplicate question.  Singular :      He/she goes to the shops every day.    Plural :     We/they go to the shops every day.   Why am I plural ?     I go to the shops every day.     EDIT : The supposed duplicate is an interesting question and has a very competent answer but the answer is very broad and does not specifically answer my own question. People learning English often err in this very matter and it would be interesting if someone could answer more specifically to give an orderly reason why we do something in English that appears to be either completely chaotic or strangely contradictory.


I want to make an alias in my .bashrc or .bashrc_aliases file (probably the latter).  Specifically, I want to call the clang command for my *.c file I'm writing. What I'm looking for is best summed up if I provide an example:  I have program1.c written I want to be able to type (in the terminal) compile program1, and something like the following should be actually run:  clang -ggdb -std=c99 -Wall -Werror   program1.c -lcrypt -lcs50 -lm -o program1   For those who have taken Harvard's CS50 class, you will recognize this as their make command. So if the above is impossible, and you know another way to make this happen, I'm all ears. I'm trying to avoid using their VM, as my netbook isn't really up to par to handle a VM.


"I'm born and brought up in India" - I don't want to use the 'past' tense here

I read this  and this one is different because the second clause is in present tense.  I'm born and brought up in India. - too commonly practiced in India.  I was born in India is correct over I'm born in India. I am pretty clear on that, but then if I want to include brought up which is still effective (present), how do I say that?  I was born and brought up in India. - does not relate the sentence to the present time then. As both are in past I was born in India + I was brought up in India. - no. I AM brought up in India, I'm still here.


Evaluate $\int_0^1 \frac{\ln{\left(x+\sqrt{1-x^2}\right)}}{x} \; \mathrm{d}x$

Evaluate $$\int_0^1 \frac{\ln{\left(x+\sqrt{1-x^2}\right)}}{x} \; \mathrm{d}x$$ I tried $x=\sin{t}$ the symmetry with $t=\frac{\pi}{2}-t$ to get $$\int_0^{\frac{\pi}{2}} \frac{\ln{\left(\sin{t}+\cos{t}\right)}}{2\sin{t}\cos{t}} \; \mathrm{d}x=\int_0^{\frac{\pi}{2}} \frac{\ln{\left(\sin{t}+\cos{t}\right)}}{\sin{2t}} \; \mathrm{d}x$$ This looks much nicer I think but now what...? I considered $\sin{t}+\cos{t}=\sqrt{2} \sin{\left(x+\frac{\pi}{4}\right)}$ but that doesnt help.   Any hints or suggestions please. Integral equals about 0.61685028


I forgot the password for my Asus eee pc with linux operating system. How can I get back in without losing all of the files?  I found this   Do you believe every model of a linux version has BusyBox, the commands should work for every model (not just Eee PC 701, Eee PC 904 HD, Eee PC 900 that's what they talk about in the link) and it should not damage the system?  If it doesn't work, what are the alternatives?


Count immediate child div elements using jQuery

I have the following HTML node structure:

   How do I count the number of immediate children of foo, that are of type div? In the example above, the result should be two (bar and baz).


Cycle option when drawing between nodes in TikZ

Cycle lets you close curves when drawing, and  \coordinate (a) at (0,0); \coordinate (b) at (1,0); \coordinate (c) at (0.5, -1); \draw (a) -- (b) -- (c) -- cycle;   works fine. Shouldn't also  \node (a) at (0,0) {}; \node (b) at (1,0) {}; \node (c) at (0.5, -1) {}; \draw (a) -- (b) -- (c) -- cycle;   give the same result?  The former gives a triangle, while the second doesn't close up. Is this a bug or am I missing something regarding the cycle option?  (Of course, as a workaround I could use the coordinates to draw the cycled path, and then draw the nodes at the same coordinates, but still...)


How can I prove that the following T-SQL is bad for performance?

I have recently inherited a codebase with a large amount of Stored Procedures.  The system they are supporting is encountering numerous performance problems which I am looking in to.  A number of the Stored Procedures have a pattern like this:   Create Temp table Build up dynamic SQL query to insert a bunch of records, e.g.  DECLARE @sql VARCHAR(MAX) SET @sql = 'INSERT INTO @tempTable SELECT SomeColumn, SomeColumn2, SomeColumn3, etc FROM MyTable'  IF @someParam = [SomeValue]     SET @sql = @sql + 'WHERE SomeColumn = [SomeValue]';  IF @someOtherParam = [SomeOtherValue]     SET @sql = @sql + 'WHERE SomeOtherColum = [SomeOtherValue]';  Execute this dynamic sql  EXEC(@sql);  Select from the temp table and bring in a bunch of additional information to return to the client.  SELECT     ...  FROM     @tempTable    INNER JOIN ...    My immediate thoughts are:   There is dynamic SQL, so no cache plans, meaning plans generated every time. There is an INSERT SELECT pattern, so table locking is more likely to be an issue.   I have re-written some of the Stored Procedures in this way instead:      SELECT          ...      FROM          MyTable          INNER JOIN ...      WHERE      (         @someParam != SomeValue         OR         SomeColumn = SomeValue     )     AND     (         @someOtherParam != SomeOtherValue         OR         SomeOtherColumn = SomeOtherValue     )           From comparing execution plans and client statistics in SQL Management Studio, I have not sped the Stored Procedures up so I am apprehensive about suggesting wholesale re-writes of all Stored Procedures.  I am trying to set up some profiling of a live customer scenario, but as yet have been unable to prove my thoughts.  Can anyone offer any confirmation of the theory behind my thoughts, or any better ways of proving my suspicions?  The problem is I have read that dynamic SQL is not always a closed case - i.e. it depends on how it is used.  My understanding of locking also falls down at the fact that nowhere can I get 100% confirmation of how this type of INSERT SELECT will lock tables.


Windows 7 and Ubuntu 9.04: both don't boot

My computer loads up then gets to black screen and reads....  Intel UNDI, PXE-2.1 (build 082) Copyright (C) 1997-2000 Intel Corporation For Atheros PCIE Ethernet Controller v2.0.0.4(03/03/09) CLIENT MAC ADDR: 00 13 74 0 00 00 GUID: FFFFFFFF-FFFF-FFFF-FFFF-FFFFFFFFFFFF PXE-E51: No DHCP or proxyDHCP offers were recieved. PXE-M0F: Exiting Intel PXE ROM Reboot and Select proper Boot device or Insert Boot Media in selected Boot device and press a key  What is happening?


Problem understanding the logistic regression link function

I am trying to learn the logistic regression model. I came to know that there is no linear relationship between predictor variables and response variables since response variables are binary (dichotomous). The link function used for logistic regression is  logit which is given by $$  \log \frac {p}{1 - p} = \beta X  $$ This tells that the log odds is a linear function of input features. Can anyone give me the mathematical interpretation of how the above relation becomes linear i.e. how logistic regression assumes that the log odds are linear function of input features? Since I am poor at statistics, I can't understand complex mathematical answer.


Prove that $\bigcup_{n \in \Bbb{N}} [1/n,1] = (0,1]$.

Prove   $$\bigcup _ { n \in \mathbb { N } } \left[ \frac { 1 } { n } , 1 \right] = ( 0,1 ]$$    I'm having some trouble starting this proof because I'm not really sure how to get started on this. Any help would be appreciated.


How to install Ubuntu Desktop on Windows Vista

I have copied Ubuntu Desktop to a blank DVD. However, when I boot my PC with Windows Vista, it doesn't prompt me to install Ubuntu.  Where are my getting all wrong?


ubuntu 14.04 artifacts scren when installing

I tried to install ubuntu 14, but after a screen appears that reads "ubuntu" (ubuntu loading), my computer screen artifacts (not visible picture or writing)   computer: proc: amd fx8350, ram : 10GB, VGA : msi ati 7730


What part of speech does “here” have in “I am here”?

What part of speech does here have in the following sentence?     I am here.   I say that in that sentence, here must be an adverb because:    It modifies the verb am by describing where I am. Am is a “being” verb in this instance, not a “linking” verb.   My friend contends that here is a noun because the word here is, in this instance, defined as this place, which in Merriam-Webster is the definition for the noun here.


Why is there something rather than nothing?

Our presence in the universe is something too bizarre for words. The mundaneness of our daily lives cause us take our existence for granted — but every once in awhile we're cajoled out of that complacency and enter into a profound state of existential awareness, and we ask: Why is there all this stuff in the universe, and why is it governed by such exquisitely precise laws? And why should anything exist at all?


I am in the process of buying a house and the bank requires that my name needs to be taken out of the car loan. My son is the cosigner, and my daughter (whom I bought the car for) is making the monthly payments. What would I have to do to get my name out?


fontenc causes error in appendix table of content

I am making a table of content for my appendices, but when I use fontenc a strange series of letters appears in the compiled pdf file.  my code:  \documentclass[10pt,a4paper,dvipsnames]{article} \usepackage[T1]{fontenc} \usepackage{etoc}  \begin{document} \appendix  \etocdepthtag.toc{mtappendix} \etocsettagdepth{mtchapter}{none} \etocsettagdepth{mtappendix}{subsection} \tableofcontents \clearpage  \section{The first section} \section{The second section} \section{The third section}  \end{document}   Under the table of contents is a strange text appearing, as visible in the image below:   But this is not visible when I deactivate the fontenc package:    This is part of my thesis for which I really need the fontenc package. I believe that I cannot choose a different font without it. Is anybody able to help me out so I can use fontenc without the funny letters in my table of contents?


I am running a Java application and faced an error Out of memory. .hprof file is generated. What do I use to analyse what's in the file? How to read that file? Any suggestion?  Thanks in Advance!!!


I already build new home for her but nothing happens.I have 18 gold(if that matters) but no one moves into the new home. In my village I already have 4 NPCs.


The coefficients of a polynomial over a commutative ring without nilpotent elements

Claim: Let $R$ be a commutative ring with no nonzero nilpotent elements. If $0 \not = f(x) = a_0 + a_1x + \dots + a_mx^m \in R[x]$ is a zero-divisor, then there is a nonzero $b \in R$ such that $ba_0 = ba_1 = \dots = ba_m = 0$.   Here is my attempt:  Proof: When we say $f$ is a zero-divisor, that means that there is a $q \in R[x]$ such that $q \not = 0, fq = 0$. Since $f,q$ are non-zero, we know that $0 = \deg fg \implies \deg f + \deg q = 0$. Therefore $f, q$ are both constant functions, and in particular we can write $f(x) = a_0, q(x) = b$. But then we have $fq(x) = a_0b = 0$, verifying the claim as $b \not = 0$.  But I doubt this is right because then the claim would be misleadingly general. I suspect the issue comes from the step where I use the identity $\deg fg = \deg f + \deg g$, having something to do with the lefthand side being zero, but my textbook contains a proof of the following:  Lemma: If $f, g$ are non-zero elements of $F[x]$, then $\deg (f(x)g(x)) = \deg (f(x)) + \deg (g(x))$.   So in particular, no claim is made about the product being non-zero. Thus I am unsure why the above is wrong.


I would like to check if a monitor is turned on so that I can switch the output to it.   xrandr --query   will show all connected displays no matter if they are turned on or not  xrandr --listmonitors   will only list the monitors that are displaying something.


Customs regarding external computer components in laptop bag as carry on

I've traveled in the past with a laptop in its bag as the sole carry on. There were usually other "small" electronic parts, like a mouse, charger, phone charger, etc.   The laptop and its accessories are the property of the company I work for and on whose behalf I'm going on the business trip. However, I have no official document that states the ownership of the device(s), such is the company policy (I can't change that, nor include it somewhere), but I do have a written travel order. Customs never made any issue about that, just as for a mobile phone, even in the case of two laptops or external hard drives. (I guess that that falls under some kind of "personal items" category.) They typically look through my stuff and just confirm that those are business things and don't look twice at them (once they asked me to power on the laptop, but that is for security reasons).  What is about to change is that I'm going to be required to travel, again on business, with a graphic card. Those are also company-issued and definitely not high-end (perhaps ca. 300 euro).  However, these are graphic cards that are used for PCs normally, i.e. as such they can't be plugged in into a laptop. The interface for the laptop wouldn't look as such to the layman and can't be found on the internet, as it is internally built.  My main concern is that a customs officer will think that I'm trying to smuggle a graphic card and that I'm going to be either forced to pay taxes/duties or worse get penalized. I haven't been able to find any rules regarding electronic devices as to what is allowed that would match my situation - not even for just the laptop. The question is whether there are such rules and subsequently whether my concern is justified?  I tagged the question with europe, but to further narrow down, focus on entering and leaving the EU.  And to give a bit of substance to my concern, I've observed that non-technical people are often biased when it comes to electronic devices. For example, no one would accuse a man with a leather briefcase that he traveled to London without it, purchased there a 2000 euro briefcase and is now attempting to avoid paying due customs.  Edit  I don't think  is a duplicate for two reasons. First, it focuses on security rather than customs. Second, OP says explicitly that he is going to buy a graphic card abroad and consequently has all the required documentation and/or packaging and the duty and intent to pay any occurring taxes/duties, which is not my case. I have neither the packaging, nor the receipts, nor should I be obliged to pay duties and taxes.


What is a good word(s) for someone who excessively asks for information that they have no business knowing?  This person constantly asks what other people have on their schedule. This same person (and I apologize if I am getting too personal) was recently caught rifling through other employee schedules. I have terminated the employee and was issuing a termination letter.


Where are the contents of the clipboard stored?

Since they are "saved to clipboard", the contents must be stored somewhere.  Are they stored in a file?


Show there are infinitely many primes that are equivalent to $1 \pmod{8}.$ I've tried using proof by contradiction:  if there are only $n$ primes equivalent to $1 \pmod{8}$ with a product of $P$, then $(2P)^4 + 1 \equiv 1\pmod8.$  How do I finish this off?


Is there a way to integrate $\int \frac{1}{f'(x)}dx$?

Is there a way to integrate $1/f'(x)$ with regards to $x$, where $f'(x)$ is the first derivative of $f(x)$? Are there any rules/conditions which make it possible?


New flagging dialog has a duplicate for duplicate

We've changed the flagging format from today(AFAIK) as below,        looks good.  But, when I select it should be closed for another reason...  I can see the same reason duplicate on the top.        What is the need of placing that reason over there? It should not be there. Please remove the dupe.


Compute $\mathbb{P}\{ W_t < 0 \, \, \text{for all} \, \, 1 < t < 2\}$ for a Brownian motion $(W_t)_{t \geq 0}$

Let $(W_t)_{t \ge 0}$ be a standard one-dimensional Brownian motion. Calculate $$\mathbb{P}\{ W_t < 0 \, \, \text{for all} \, \, 1 < t < 2\}.$$ I can only think that this will be conditional on $W_1$. Please tell how to proceed?


Use Pigeonhole to show of any set of $2^{n+1}-1$ positive integers is possible choose $2^{n}$ elements such that their sum is divisible by $2^{n}$.

Show that, of any set of $2^{n+1}-1$ positive integers numbers is possible choose $2^{n}$ elements such that their sum is divisible by $2^{n}$.   My approach: Let $a_1,a_2,\ldots,a_{2^{n+1}-1}$ positive integers numbers. Define, $s_j=a_1+a_2+a_3+\ldots+a_{2^{j+1}-1}$, $j\in\{1,\ldots,n\}$.   If any of the $2^{n+1}-1$, $s_j$, are divisible by $2^n$, we are done.   In case contrary, $s_j$ have a remainder $1,2,3,\ldots,2^{n}-1\mod(2^n)$. And, we know that $2^{n+1}-1>2^n-1$, so by Pigeonhole Principle, there exist a tleast two $s_j$ such that has a same remainder ($\mod(2^n)$), i.e., if $p<q$, then $$s_q-s_p=a_{2^{p+1}}+a_{2^{p+1}+1}+\ldots+a_{2^{q+1}-2}+a_{2^{q+1}-1}\equiv 0\mod(2^{n})$$  So, the set $\{a_{2^{p+1}},a_{2^{p+1}+1},\ldots,a_{2^{q+1}-2},a_{2^{q+1}-1}\}$ is the set we need. I know, this answer doesn't be right, but is the idea I have to occupy Pigeonhole.  EDIT: Both answers were very good, but, how I could occupy the pigeonhole principle in this problem?


Question is to prove that $\mathbb{Q}(\sqrt[3]{2})$ is not in any cyclotomic extension of $\mathbb{Q}$.   As i was not so sure how to proceed i did the following thing(which may possibly be not so relevant to the Question but hope it would give me some hint to proceed). As $\mathbb{Q}(\sqrt[3]{2})$ is not Galois over $\mathbb{Q}$, I tried Computing Splitting Field and corresponding galois Group and ended up in concluding that Galois Group is isomorphic to $S_3$. As $S_3$ is not abelian Group there could possibly no Sub field $K$ of Cyclotomic field with $Gal(\frac{K}{\mathbb{Q}})\cong S_3$.  I am helpless after this.  Please let me know am i going in a correct path?? Any suggestion/hint would be appreciated :) Thank You


Prove the following equality using mathematical induction: For any integer $n \ge 1$  $$\sum_{i=1}^{n} \frac{1}{i(i+1)} = \frac{n}{n+1}$$  I understand for the base base I need to have $n=1$. If I substituted $n$ for 1 and $i$ for 1 I would get   \begin{align} \sum_{i=1}^{1} \frac{1}{1(1+1)} &= \frac{1}{1+1} \\ \sum_{i=1}^{1} \frac{1}{2} &= \frac{1}{2} \end{align}  As for the inductive step, I inputted $n +1$ but it did not work for me because honestly I did not know what to do with the $i$ and what I should do next.  How would I go about doing the next step and an explanation for $i$ would be helpful.


Stop default SSL response on Shared IP using SNI

Previously I asked a question here:  about setting up secure and non-secure domains on a single IP.  Opinions were mixed, but it appears SNI hold the solution. Unfortunately I cannot get it work as required.    — Works as expected  — Presents domaina.com certificate, not as expected. I would like it to not respond to SSL requests.   I would like my server to only send the certificate for domaina.com and no other host names, even if this means sending a 403 error to non-SNI clients. My current configuration on vanilla Ubuntu Server 12.04 LTS is below:  Ports.conf  … <IfModule mod_ssl.c>     NameVirtualHost *:443     Listen 443 </IfModule> …   Domain A Virtual Host  <VirtualHost *:80>     ServerName   domaina.com     ServerAlias  www.domaina.com     DocumentRoot /var/www/domaina.com/public     ErrorLog     /var/www/domaina.com/logs/error.log     CustomLog    /var/www/domaina.com/logs/access.log combined </VirtualHost>  <IfModule mod_ssl.c> <VirtualHost *:443>     ServerName   domaina.com     ServerAlias  www.domaina.com     DocumentRoot /var/www/domaina.com/public     SSLEngine on     SSLCertificateFile      /etc/apache2/ssl/domaina.com.crt     SSLCertificateKeyFile   /etc/apache2/ssl/domaina.key     SSLCertificateChainFile /etc/apache2/ssl/domaina.com.ca-bundle </VirtualHost> </IfModule>   Domain B Virtual Host  <VirtualHost *:80>     ServerName   domainb.com     ServerAlias  www.domainb.com     DocumentRoot /var/www/domainb.com/public     ErrorLog     /var/www/domainb.com/logs/error.log     CustomLog    /var/www/domainb.com/logs/access.log combined </VirtualHost>   apache2ctl -S  VirtualHost configuration: wildcard NameVirtualHosts and _default_ servers: *:443                  is a NameVirtualHost          default server domaina.com (/etc/apache2/sites-enabled/domaina.com:12)          port 443 namevhost domaina.com (/etc/apache2/sites-enabled/domaina.com:12) *:80                   is a NameVirtualHost          default server domaina.com (/etc/apache2/sites-enabled/domaina.com:3)          port 80 namevhost domaina.com (/etc/apache2/sites-enabled/domaina.com:3)          port 80 namevhost domainb.com (/etc/apache2/sites-enabled/domainb.com:1) Syntax OK   How can you get rid of the defaults?


How to prevent apps from being restored after reboot?

Using Windows 10 LTSB (Build 17763.1098).  Say I have Google Chrome running and click Start → Power → Restart. The PC shuts down and restarts as expected. After log in, the deskop is displayed... and then after ~5 seconds Chrome automatically restarts! Why? Same thing if Task Manager was running when I restart. After reboot, Task Manager is automatically restarted.  What controls this and how can I ask Windows to show the desktop only after a reboot?


Upgrade from 16.04 to 18.04, indicator-multiload doesn't work

I'm rather glad of the upgrade from 16.04 to 18.04 (desktop). However there are a few things I find annoying,   Among them is indicator-multiload  indicator-multiload is an invaluable app, graphically showing activity for  CPU, memory, network, disk...  Looking like that (top bar) in 16.04   Unfortunately it doesn't work (well) in 18.04.  How can I get indicator-multiload to work in 18.04?


How to break very long code lines in Python?

How do I make my python code prettier by shortening each row? For example: I have a really long if statement that I would like to make shorter => split it's length on to a couple of rows:  if (imgA.shape[0] != imgB.shape[0]) and (imgA.shape[1] != imgB.shape[1]) and (imgA.shape[2] != imgB.shape[2]):   I would like to have something like this:      if (imgA.shape[0] != imgB.shape[0]) and        (imgA.shape[1] != imgB.shape[1]) and       (imgA.shape[2] != imgB.shape[2]):   But I get a syntax error. Anyone?


What is the reason for these float results?

for the code below, why is the first result a small decimal number but the second results in 0? My main question is why that extra decimal place makes the second result a 0. Does python have a limit in its decimal places when calculating floats?  x =5.000000000000001 y =5 print(x-y) x =5.0000000000000001 y =5 print(x-y)


find action not working for specific search

I'm trying to use the find command to list the size of a certain set of files but am getting no output. The command I use is:  find POD -type f -name *.mp3 -or -name *.ogg -ls   Which produces no output. While:  find POD -type f -name *.mp3 -or -name *.ogg   does produce output, I've also tried the actions:  -printf "%p %k KB\n" -exec ls -ls '{}' \; -print0   but all of these give no output. When I use any of these actions with a different expression e.g.:  find . -maxdepth 1 -type f -printf "%p %k KB\n"   I also get the expected output. Does anybody have any idea what the problem is? I'm running:  Linux irimi 3.10.37-1-MANJARO #1 SMP Mon Apr 14 20:56:29 UTC 2014 x86_64 GNU/Linux   aka an up to date Manjaro linux distribution. The shell I use is: /bin/bash version 4.3.8(1)-release.  The content of my SHELLOPTS environment variable is:  braceexpand:emacs:hashall:histexpand:history:interactive-comments:monitor   my BASHOPTS environment variable is:  cdspell:checkwinsize:cmdhist:complete_fullquote:dotglob:expand_aliases:extglob:extquote:force_fignore:histappend:hostcomplete:interactive_comments:nocaseglob:progcomp:promptvars:sourcepath   Again any help on trying to debug this would be very much appreciated.


Can not install skype on ubuntu 12.04. How to solve this error?

kithokit@09:39:03 ~ $ sudo apt-get install skype Reading package lists... Done Building dependency tree        Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:  skype : Depends: skype-bin E: Unable to correct problems, you have held broken packages. kithokit@09:39:13 ~ $ sudo apt-get install skype-bin Reading package lists... Done Building dependency tree        Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:  skype-bin:i386 : Depends: libasound2:i386 (>= 1.0.23) but it is not going to be installed                   Depends: libqt4-dbus:i386 (>= 4:4.5.3) but it is not going to be installed                   Depends: libqt4-network:i386 (>= 4:4.8.0) but it is not going to be installed                   Depends: libqtgui4:i386 (>= 4:4.8.0) but it is not going to be installed                   Depends: libqtwebkit4:i386 (>= 2.2~2011week36) but it is not going to be installed                   Depends: libx11-6:i386 but it is not going to be installed                   Depends: libxext6:i386 but it is not going to be installed                   Depends: libxss1:i386 but it is not going to be installed                   Depends: libxv1:i386 but it is not going to be installed                   Depends: libssl1.0.0:i386 but it is not going to be installed                   Depends: libgl1-mesa-glx:i386 but it is not going to be installed                   Recommends: sni-qt:i386 but it is not going to be installed                   Recommends: libasound2-plugins:i386 but it is not going to be installed E: Unable to correct problems, you have held broken packages. kithokit@09:39:18 ~ $


how to apply a boolean modifier to a collection instead an objects?


The escape velocity of earth is roughly $11 kms^{-1}$. However, what if a long ladder was built extending out of Earth's atmosphere and considerably more. Then if something was to climb up at much less than the escape velocity, what would happen when it reached the end?  And what if the object that climbed the "ladder" then fired some kind of thruster/rocket and was going fast enough so that it orbited the Earth. It would mean less energy required to get into orbit?


Why couldn't Doctor Strange use his sling ring in space?

After       the attack on Earth where Doctor Strange is abducted and Iron Man and Spider-man rescue him, Doctor Strange starts asking how they plan to get back to Earth.   Why couldn't he just use his sling-ring teleportation to return? There is later confirmation that he can still do it (locally, at least). I understand they later decided against returning in general, but in the moment they seemed to preclude that option.


What is the largest aperture on a commercially available lens?

Out of pure curiosity, what is the largest aperture, or lowest f-stop, a commercially available lens has.  I have seen the 50mm prime lens from canon with 1.2, but not lower than that.  What are the technical problems associated with the size, does it become exponentially more difficult?


I need to find all occurrences of AAsomeArbitraryStringBB and replace it with CCsomeArbitraryStringDD.  So  AAHelloBB Text AAByeByeBB   becomes  CCHelloDD Text CCByeByeDD.   It's important to note that the replacement string contains part of the search string.


Change a normal submit 'input' type to 'button' type with button tag

Is it possible in Drupal 8 to change a regular form submit button from Drupal into a button tag?  This is the output I need to achieve:  <button type="button" class="search-box__button">   <svg class="icon search-box__open">     <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/build/img/svg-sprite.svg#icon-search"></use>   </svg> </button>


How to stop jumping again when character is in air (double jump)?

I'm using touch inputs in my game to control the character. I would like to know how to disable my character from jumping again in the air.  if (FingerTouchy.phase == TouchPhase.Ended)                 {        charcter.transform.Translate(Vector2.up * speed * Time.deltaTime);        float jumpForce = 250;                         charcter.GetComponent<Rigidbody2D>().AddForce(new Vector2(0, jumpForce));                      }   Update  Im using   void OnCollisionEnter (Collision col)     {         if(col.gameObject.tag == "Ground")         {             grounded = true;          }     }   And checking if charcter is grounded  if(FingerTouchy.phase == TouchPhase.Ended)             {                      float jumpForce=250;                     if (grounded)                         continue;                     charcter.transform.Translate(Vector2.up * speed * Time.deltaTime);                     charcter.GetComponent<Rigidbody2D>().AddForce(new Vector2(0,jumpForce));                         grounded=false;                  }   using collision/collision2d doesn't work too.


All of the sudden my media library tab becomes empty. I check the permissions and everything seems to be fine.


Why isn't there an atom with an electron at the center and a proton on the outside?

I can understand that the role of electrons and protons are not interchangeable for elements heavier than Hydrogen, because there is no nuclear force to keep the charged electrons together in a nucleus, but at least for the Hydrogen atom, it should be possible to exchange the proton and the electron? Is there a reason this element doesn't exist?


Group $G$ acts faithfully on a set $X$ of 5 objects?

A group $G$ acts faithfully on a set $X$ of 5 objects. The action has   two orbits: one of size 2, and one of size 3. What are the   possibilities for the group $G$?   I believe the right step is to apply the orbit-stabilizer theorem but I'm not sure how to get started. What's a good way to go about solving this problem?


Failing to POST, any troubleshooting tips?

My problem:  I took a break to have lunch and when I came back, my computer would not POST or display.  I haven't changed anything recently.  It's about 6 years old.  The CPU led on the motherboard lights up.  Most fans are spinning, except for the GPU fans, which spin very briefly; some years ago, one of the GPU fans stopped spinning unless the temps get very high, at which point it starts spinning.  The motherboard speaker I bought doesn't make any beeps.  Specs:  CPU: AMD FX8350, GPU: Radeon 7950, Motherboard: m5a99fx pro r2.0, PSU: Rosewill Capstone 750 RAM: GSkill Ripjaws 2x4GB 1600 DDR3 (also monitor, mouse, keyboard)  What I've tried:  I've breadboarded the computer, using only the items in the above specs.  I bought a multimeter and tested the voltages from the PSU.  From the 24 pin motherboard connection, to the CPU and GPU connections, everything is within spec.  I've tried booting using combinations of 1 or both RAM sticks, and different slots.  I've tried replacing the CMOS battery and clearing the CMOS by moving that little 2 pin connector over.  I've tried reseating everything, including the CPU, which did not have any bent pins.  What I'm planning:  The PSU seems fine based off the voltages I read.  Unless both RAM sticks failed, I think the RAM is fine, too.  I hear CPUs rarely ever fail, so I doubt it's that.  The monitor turns on and I can switch inputs, brightness, etc., so I doubt it's that either.  Based on how the GPU fans aren't spinning right, I think it's that.  However, it could also be the motherboard.  The only way I can think to narrow it down further, besides buying a GPU or motherboard, is find a GPU I can borrow.  Does anyone know of any troubleshooting methods I missed?


I have ubuntu 14.04 and i need to download adobe flash player,but when i go to the main page on the bottom right corner on top of the download button it says "Note: Your antivirus software must allow you to install software." does anyone know how i can download it?


How to combine two lists to get all combinations (ie. list1=["a","b", "c"] list2=["1","2","3"] wantedoutcome=["a1","a2","a3","b1","b2"...."c3"]

I want to create a deck of cards by combining a list containing card values:  [7,8,9,10,J,Q,K,A]    and a list containing colors:  [♣,♥,♠,♢]   to get all combinations once.  Is there some simple way to combine lists (or strings) in this way?  I tried several ways but none worked (maybe because special characters used directly (♣,♥,♠,♢) and not in the \N{xxxxx} way? )  expected outcome would be list/dictionary containing all possible combinations exactly once:  ["7♣","7♥","7♠","7♢","8♣","8♥","8♠","8♢", ....."A♣","A♥","A♠","A♢"]   thanks alot for helping guys :)


I have a 100 line text file. I want to extract lines 50 to 70 inclusive. How can I do this? My Google skills are failing me and man cut doesn't seem to have the answer - perhaps I need a different tool.


Here are two instances in a formal paper I submitted where my professor told me my semicolon  usage is incorrect.  He says that, in both instances, a period should be used.  Is he right?  I maintain that I've used them appropriately and at my discretion to indicate closeness of subject matter between two independent clauses.  Instance 1:     Baz Luhrmann, in his 2013 film adaptation of Fitzgerald’s work by the same name, represents its major characters in a manner mostly true to the novel; Nick, Gatsby, Daisy and Tom are somewhat polarized, however, in their speech and actions.      Instance 2:     In the novel, when Nick is “urged” (28) by Myrtle to go along, bribed with the promise of Myrtle’s sister, he responds “Well, I’d like to, but—” (28); in the film, he worriedly says, “No, no, no—that’s alright.”


On the question of the Galois group of some polynomial.

I want to ask you some question on the Galois group of some polynomial.  Let $p_1<p_2<\cdots<p_n$ be distinct prime numbers. Let's consider $f(t)=(t^2-p_1)(t^2-p_2)\cdots(t^2-p_n)\in \mathbb{Q}[t]$. Then what is the Galois group of $f(t)$? (I am asking the shape of $Gal(E/\mathbb{Q})$ where $E$ is the splitting field of $f(t)\in \mathbb{Q}[t]$)  For $n=1,2,3$, I found out that $G_f\simeq (\mathbb{Z}_2)^n$ and so I guess it should hold for all $n$. But I can't prove it for $n \ge 4$. How can we prove it?


How to add panel applets to classic gnome panel?

Because of Unity's inability to use any Gnome panel applets, I changed back to the classic gnome panel.   However, even in the classic interface, I'm finding I can't right-click the Gnome panel to change anything.  How do you add applets to the Gnome panel in the classic interface?


Can a matrix be invertible but not diagonalizable?

While reading a chapter on diagonalizable matrices, I found myself wondering:     Can a matrix $A \in \mathbb R^{n \times n}$ be invertible but not diagonalizable?   My quick Google search did not return a clear answer.


What is the difference between "family" and "set"?  The definition of "family" on mathworld () is a collection of objects of the form $\{a_i\}_{i \in I}$, where $I$ is an index set. But, I think a set can also be represented in this form. So, what is the difference between the concept family and the concept set? Is there any example of a collection of objects that is a family, but not a set, or reversely?  Many thanks!


Why does Newton's Third Law not preclude any motion at all?

When walking, if I apply a force of 2N on the earth, the earth applies a force of 2N back on my feet due to Newtons 3rd Law of Motion. These 2 forces are equal in magnitude but opposite in direction, so they negate each other and add up to zero. So how can we move then if the net force adds up to zero?


how to show that sets $\{0,1\}^{\mathbb{N}}$ and $\mathbb{R}^{\mathbb{N}}$ have an equal cardinality?  I tried to use Cantor-Bernstein theorem but it seems to be hard.


Let $(X_{\alpha})_{\alpha \in A}, (Y_{\alpha})_{\alpha \in A}$ be families of sets such that for $\{X_{\alpha} \mid \alpha \in A \}$ and $\{Y_{\alpha} \mid \alpha \in A \}$ are totally ordered by inclusion. We have $(X_{\alpha},Y_{\alpha}) \neq (X_{\beta},Y_{\beta})$ for $\alpha \neq \beta$. Suppose that $|X_{\alpha}| \leq |Y_{\alpha}|$ for any $\alpha \in A$. It is true that $|\bigcup_{\alpha} X_{\alpha}| \leq |\bigcup_{\alpha} Y_{\alpha}|$?


Meaning of dy n dx when they act as differentials

dy/dx represents the derivative of y wrt x. We are taught that it is not the ratio of dy and dx but a limiting form that the ratio of the change of the dependent variable wrt the change of the independent variable takes when the latter tends to zero. Now if dy/dx is just a symbol representing the derivative how can we separate dy n dx during the process of integration i.e if dy/dx=f(x) then we can write dy=f(x)dx. Are dy n dx real numbers or what do they represent . What exactly are differential. Plz explain elaborately


There seems like a lot of fixes and also network tests in 2.7 that I would like to take advantage of.  I see the Snap install for 2.7 but I'm trying to understand the upgrade path.  I don't want to destroy the existing db in MaaS 2.6.2 with all of the machines.    Do you do a snap install... and maas init and just don't reinitialize the db?    Any help in the right direction would be greatly appreciated.