Command line PDF printing - automatic filenames based on timestamp

Ubuntu 12.04 LTS, 3.8.0-35-generic kernel, Firefox 27.0   If I print a text file to pdf, I get a default filename which is always the same. (it is always "output.pdf")   How can I have automatic file name based on timestamp? How can I use that particular printer in command line?  What is the name of that (virtual)printer I'm using?  also from firefox, if I print to pdf    How can I have automatic filename based on timestamp?    following some commands and the output I received:  ~$ lp "$in" lp: Error - no default destination available.  ~$ lpr "$in" lpr: Error - no default destination available.  ~$ dpkg --list | grep ' cups ' ii  cups    1.5.3-0ubuntu8    Common UNIX Printing System(tm) - server  ~$ ps -ef|grep cups | grep -v grep root   867   1  0 14:51 ?   00:00:00 /usr/sbin/cupsd -F  ~$ cups --version  cups: command not found  ~$ cups-pdf cups-pdf: command not found   I would like not to install other PDF printer, because the default one works very well.


Physical interpretation of the Reissner-Nordstrom metric

The Reissner-Nordstrom metric (in spherical coordinates and c = 1) differs from the Schwarzschild metric in a additive term $$\frac{GQ^2}{4\pi\epsilon_0 r^2}$$, so the metric is   $$ds^2 = \left(1 - \frac{2GM}{r} + \frac{GQ^2}{4\pi\epsilon_0 r^2}\right)dt^2 - \left(1 - \frac{2GM}{r} + \frac{GQ^2}{4\pi\epsilon_0 r^2}\right)^{-1} dr^2 - r^2d\Omega^2$$  This has an effect of "repulsion".   Why adding more energy (by the addition of charge to the black hole) has this repulsive effect? What is the physical meaning of adding charge to a black hole?


Need clarification as confusion between whom or who

Covid-19 patient was telling his story, how he recovered. govt officials always trace with how many people he made contact.  The Building I was staying in was quarantined and contact tracing was done immediately I was called by hospital and govt. officials and they found out who I was in contact with, how did i go from the airport to home.  Is this correct who I was in contact with.? I think it should be they found out whom I was in contact with.


Hi I am a huge fan of Blender. I've been using it to edit video perfectly. Since recently I need to edit 4k mov files. (each strip is between 1 or 2 gb) And it is too slow to work with. I noticed that when rebuilding proxy and timecode indices Blender is only using one (of the 8) cores. (well it looks like it. it only uses 19-20% of its processor)  I am working on a Intel Core i7-4720HQ quadcore 256g ssd with NVIDIA GeForce GTX 950M, 2GB/4GB DDR3 VRAM  Is there any solution so I can keep working with Blender?


Does more reflective aluminum foil make a room cooler compared to less reflective foil?

Aluminum foil is said to be not absorbing light at all. It reflects light. So, does it mean that a more shiny aluminum foil will reflect more light and thus make the room more cooler as compared to less shiny foil?  If yes, then where does unreflected light go in case of less shiny aluminum foil?  Does less shiny and more shiny actually make a difference? Why?  In order to keep whole room cool will it help if I stick the foil to the outside of wooden door (exposed to the sunlight) too?


definition of meromorphic function : it may have removable singularities

I'd like to know about the definition of meromorphic function. Usually I see the definition of meromorphic function as follows: Let $D\subset\mathbb C$ be a connected open set,  a function $f$ defined on a subset $U$ of $D$ and with value in $\mathbb C$ is meromorphic on $D$ if the following conditions are satisfied:   $P(f)=D\setminus U$ is a set of poles $P(f)$ is discrete in $D$ $f$ is holomorphic on $U$.   However, in the book " Complex anlysis for mathematics and engineering" by John H. Mathews and Russel W. Howeell, $P(f)=D\setminus U$ is a set of poles and removable singularities.  I think removable singularities are not real singularities, since we can extend the function to the holomorphic function. Thus, two definitions may be almost same.   I'd like to know how other people think about this question.   Would you give any comments about this question? Thanks in advance!


Examples of finite groups that are not a semidirect product

I'm looking for examples of (families of) finite groups that are not semidirect products.   When first learning group theory, the first such group that one encounters is $Q_8$. In my search for other groups that are not semidirect products, the only examples I could find were simple groups, which clearly cannot be semidirect products since they don't have normal subgroups.   Does anyone have example of non-simple finite groups that are not semidirect products?


Google spreadsheet sorting messes up cell comments

I'm running into this weird problem with Google spreadsheets: if the cells have comments on them and I sort the spreadsheet, the rows sort but the comments stay in the same position, and don't move with the cells they're attached to.  In other words, the cells look like this:  A C  <-- comment on this cell B   and then I sort by this column:  A B  <-- comment remains on this cell (stays in position) C  <-- comment should have remained attached to this cell   This means that sorting is completely broken and I can't use it at all, because I clearly need the cell comments to stay with the cell they're attached to.  Is this a bad bug in Google Spreadsheets, or am I missing something here?


I have the following HTML code:    p.error {   color: red;   padding: 5%;   margin-left: 20%;   margin-right: 20%;   font-size: 300%;   height: 100%;   box-shadow: 3px 3px 20px 3px #545454;   text-align: center;   background-color: #f1f1f1; }  div.alert {   padding-top: 50%; }

Error: Permission denied!

     Which my browser (Google Chrome Version 57.0.2987.133) compiles to this:  I finally got it to vertically center the div by using:  div.alert{     padding-top: 22.5%; }   By further testing, I noticed that the browser uses the width instead of the height for padding-top.  My question: Why does the browser compile the HTML-code like this and how can I get it to vertically center the div by using 50%?


Adding different suffix to end of the line

I have a text file which contains this:  John Jack Jerry   I have another text file:  2017 2015 2018   And I want to make them like this:  John2017 John2015 John2018 Jack2017 Jack2015 Jack2018 Jerry2017 Jerry2015 Jerry2018   How can I do this?


How to watch Youtube fullscreen on one monitor of a dual-monitor display?

How to watch Youtube fullscreen on one monitor of a dual-monitor display, in Linux?  If I do it in Google Chrome, as soon as I do anything at the other monitor, Chrome jumps back to normal window.  Edit: added that OS is Linux.


Showing equality of sequence of holomorphic functions to limit function if converges uniformly locally

I do not know how to proof following question:  Let $D$ be a domain in $C$.  ${{f}_{n}}$ be a sequence of holomorphic functions on $D$ that converges uniformly locally to a function non-constant $f$. Show that for each $z\in D$, there is a sequence ${{z}_{n}}\to z$ as ${{f}_{n}}({{z}_{n}})=f(z)$ for all sufficiently large $n$.  Actually, I know that I should use an assumption such as: ${{f}_{n}}({{z}_{n}})\ne f(z)$  Therefore, there is compact set    that  $\left\| {{f}_{{{n}_{k}}}}({{z}_{{{n}_{k}}}})-f(z) \right\|>\varepsilon $  Then I think I have to use Montel theorem, but I do not know how to show the contradiction.


PIR motion detector or Emitter receiver pair or?

I have a simple 3 ft by 3 ft goal. I want to electronically detect when a ball passes into the goal but not when it goes wide.  I had initially thought i could use a simple PIR motion detector pointing downward  on the cross bar but I am concerned that  1) it might detect balls that go wide? (how do i restrict the arc) 2) it might be too slow for a fast moving ball 3) it might miss balls in top corner etc  Option two is a series of emitter reciver ir pairs on each side of the goal post. Enough to make sure that a ball can't get through. See attached sketch of the options.   I have zero experience with this. I am thinking the emitter pairs is best option but I am unsure? Maybe there is another alternative? The overriding concern is that the solution must require minimal power to run (and cost!).    edit as directed by site to explain why not duplicate -- to reiterate my comment below: yes they are similar questions. I think my question was more specific. I asked specifically for option a) or option b) or something else. Steve G kindly informed me why the PIR was not suitable -- as it uses temperature -- as opposed to use solution this because i think so. For this reason I think this question is worthy as a standalone and I will update the answer to reflect why PIR was not suitable.


I don't know how to approach this exercise: Let $f$ be a real valued convex function that satisfies:  $$\lim_{x\to-\infty}f(x)=-\infty$$  prove that it must be $$\lim_{x\to+\infty}f(x)=+\infty$$  I know the definition of convexity and limits however I don't know how to prove this formally.


If $d \mid n$ then $x^{q^d} - x \mid x^{q^n} - x$.

I've only been able to resolve this far  $$ d \mid n \Rightarrow \exists l \in \mathbb{Z}\; \textrm{such that} \; n=dl \Rightarrow x^{q^n} - x = x^{q^{dl}} - x.$$  I can't move forward.


Can country geo targeting be overridden for country code top level domains in Google Webmaster Tools?

Google Webmaster Tools automatically associated your website with the TLD that you're in. This is nice if the website is targeted towards that country, but its not always the case. In some instances, they're used for vanity, and in some - they're meant for users all around the world.   For instance, I have a .ky domain - Webmaster automatically targets this to the Cayman Islands. However, it should be unlisted OR United States, but there is no option to override this.   We've done marketing, promotions, and partnerships to gain the majority US inlinks. The other sites (Europe, etc) all rel alternate back to the .ky site as US-en, but still - having issues with US ranking.   Is there any way to override this feature in Google Webmaster Tools? It's quite silly that you cannot edit it for its intended purpose and Google makes this assumption.


I understand that the Maximum Modulus Principle works, but I'm a little baffled as to why. To be more precise, the picture I have in my head is something like this: for a compact set $K \subset \mathbb{C}$, since $|f|$ (for $f$ holomorphic) can only attain its maximum on the boundary $\partial K$, if you consider a disk centered on the origin, no matter what value $|f|$ obtains on the boundary of this disc, you can just increase the radius of the disc a little bit and find a higher value of $|f|$; in other words, the absolute value of function just keeps growing without bound. What exactly is driving/forcing this growth?  I'm looking for some kind of explanation, geometric or otherwise, that could aid my intuition. In particular, why does $\mathbb{C}$ behave so differently from $\mathbb{R}$ here?  EDIT. In response to the "duplicate" tag: I am looking for something a little deeper than the answers there. As mentioned above, an explanation of the difference in behaviours of $\mathbb{C}$ and $\mathbb{R}$ in this regard, perhaps with a tie-in to the Cauchy-Riemann equations...it seems like there's something that causes functions to behave fundamentally differently over $\mathbb{C}$, and I would like to understand why, with the Maxiumum Modulus Principle as a concrete example.


$X_n = \text{Bin}(n,\frac{\lambda}{n})$ for $\lambda > 0$. Show $M_{X_n}(t)$ converges to the MGF of Poisson($\lambda)$ as $n\rightarrow \infty$

$X_n = \operatorname{Bin}(n,\frac{\lambda}{n})$ for $\lambda > 0$. Show $M_{X_n}(t)$ converges to the MGF of Poisson($\lambda)$ as $n\rightarrow \infty$  So far I got MGF of $$\operatorname{Poi}(\lambda)=e^{-\lambda}\sum_{x=0}^\infty(e^tx)^x/x!$$ MGF of $$\operatorname{Bin}(n,\frac{\lambda}{n})=\sum_{x=0}^{\infty}e^{tx}{n\choose x}(\frac{\lambda}{n})^x(1-\frac{\lambda}{n})^{n-x}$$ $$\lim_{n\to\infty} \sum_{x=0}^{\infty}e^{tx}{n\choose x}(\frac{\lambda}{n})^x(1-\frac{\lambda}{n})^{n-x}$$  I can see that $n \choose x$ as n goes to infinity will be $\frac1{x!}$, but I don't know how they got the $e^{-\lambda}$ and $x^x$. I could be wrong but I feel like $(1-\frac{\lambda}{n})^{n-x}$ just becomes 1 and $(\frac{\lambda}{n})^x$ becomes 0, which wouldn't really work out.


The box says I can add up to 3 GB (for a total of 4GB), but is this restriction hardware based, or because of the operating system?  If I upgrade to OS X 10.6 or higher, can I increase the RAM to 8 GB like the newer models?


I am having windows 10 pro 64 bit OS,With 4 Gb RAM. But in memory section its showing 2.66 GB usable. Why? doing some research(Googling) I found that 32 bit machine can't utilize the full RAM. But though I am having 64 bit machine, still why its showing 2.66 GB usable? I tried a tweak through MSConfig → Boot → Advanced option → unchecking but nothing is working.  ------------------ System Information ------------------        Time of this report: 6/3/2016, 08:39:50          Operating System: Windows 10 Pro 64-bit (10.0, Build 10586) (10586.th2_release.160104-1513)                  Language: English (Regional Setting: English)       System Manufacturer: LENOVO              System Model: 20351                      BIOS: InsydeH2O Version 03.73.069ACN28WW                 Processor: Intel(R) Core(TM) i3-4030U CPU @ 1.90GHz (4 CPUs), ~1.9GHz                    Memory: 4096MB RAM       Available OS Memory: 2722MB RAM                 Page File: 3268MB used, 1885MB available               Windows Dir: C:\WINDOWS           DirectX Version: 12       DX Setup Parameters: Not found          User DPI Setting: Using System DPI        System DPI Setting: 96 DPI (100 percent)           DWM DPI Scaling: Disabled                  Miracast: Available, with HDCP Microsoft Graphics Hybrid: Not Supported            DxDiag Version: 10.00.10586.0000 64bit Unicode   --------------- Display Devices ---------------           Card name: Intel(R) HD Graphics Family        Manufacturer: Intel Corporation           Chip type: Intel(R) HD Graphics Family            DAC type: Internal         Device Type: Full Device          Device Key: Enum\PCI\VEN_8086&DEV_0A16&SUBSYS_380C17AA&REV_0B      Display Memory: 1473 MB    Dedicated Memory: 112 MB       Shared Memory: 1361 MB        Current Mode: 1366 x 768 (32 bit) (60Hz)


"I already knew how to do it."[Tr included within Tsit]..., in this imperfective aspectuality which is reference time and situation time please answer for this by using time line because in this sentence there are two verbs(knew and do) are used so it is difficult to understand imperfective aspectuality from this sentence ? The sentence is in CGEL page no.126


How to solve mathematics error in VB.Net?

I am getting a math error in vb.net. Even tried in vb6 in my old project. Even tried in NodeJs.(Asked a friend) I am doing a simple stuff.  Msgbox(3.28 - 3.2)   This shows me 0.79999999999996(don't know how many 9 in between but this many for sure.) Even tried Msgbox(Format(3.28 - 3.2,"0.00")) Still same answer.  In my Vb6 project, I get 7.9999999999996E-02 something.  In nodejs by my friend too get the same 0.7999…96   I need in vb.net so tried using Format but no proper answer. Maybe using format in wrong way.  What to do to get 0.08 ?


Water inside bucket is rotated (by spoon or something) to flow in circular motion. An object kept in the bucket tends to be at the center of the bucket. Why is that?


How do I backup all files? (.dbus and dconf backup problems)

What are /home/user/.cache/dconf and /home/user/.dbus? Why does their backup fail?  I tried following  (see code below) but while it allowed me to backup the above files, now I am told it couldn't backup /home/[user]/.dbus/session-bus.    $ man chown $ sudo chown user .cache/dconf   [sudo] password for user:  $ sudo chown user .dbus $ man chgrp $ sudo chgrp user .cache/dconf $ sudo chgrp user .dbus   How do I fix it so it will not take my time closing an error message after each backup? Should I exclude these folders ? Why are they not needed? Why would someone want to back them up?


How to copy the data from Excel to oracle?


Why LED signboards shake when I eat an apple?

while I was sitting in city center with so many LED (especially red ones mounted) signboards and I was bitting an apple, the signboards suddenly begin to shake for only a second while my head is shaking.   I couldn't understand why this had happened to my eyes? Maybe the XTALs in the LED-driver-circuits are out of the frequency because of high voltage or so many times these are used, and/or grid's frequency has been added on to the device.  What should be done to prevent this frequency shake?  Is this topic belongs to harmonic distortion - THD ? That maybe a reason by XTAL's frequency?


Why would three airlines offer an identical long-haul connection within minutes of each other?

I was playing around with Flightradar24 today and noticed three large planes leaving from Frankfurt, Germany, to Seoul Incheon within a few minutes of each other:   OZ 542, 17:35, Airbus A380 KE 530, 17:35, Boeing 777 LH 712, 17:40, Boeing 747-8     All large-capacity aircraft, all from different companies, all departing Germany in the late afternoon to arrive at Seoul at noon tomorrow.  Just out of curiosity: why would airlines choose such a timing? Arriving at midday does not look so overly attractive that everyone would need to compete for it. If there is very high demand for the route, why would the airlines choose to compete in that way instead of going for, say, an hour's spacing to catch different connecting flights? What's in it for them, business-wise?


Let's say you are at the center of the earth witch way would gravity pull?

which way would gravity pull at the center of the earth


How to answer a negative question in English?

Q: "Don't you know?"   If I really don't know, how should I respond to this question? Yes or No?  There's a similar question on EL&U, but the answer isn't clear how it works:      Also here on ELU too:      These answers are confusing. I want to know what one word answer I can use. In other words I want to know:   What will native speakers understand if I reply No to this question? What will native speakers understand if I reply Yes to this question?


Generating HMAC message digest via Crypto class

I have an API Integration which expects a HMAC-SHA256 signature. Example:  message = 'testmessage' secret key = '123456789' signature: 9cba4d1d75689509208a97b1ca42f786a630a891e2410bfb11a84feb7a4807ad   How can I generate the same signature in Apex? I tried the generateMac function from the Crypto class but it gives a different value than the one expected. Below is the code:  Blob blobSignature = Crypto.generateMac('HmacSHA256', Blob.valueOf('testmessage'), Blob.valueOf('123456789')); System.debug(EncodingUtil.base64Encode(blobSignature));   Output: nLpNHXVolQkgipexykL3hqYwqJHiQQv7EahP63pIB60=  What I am doing incorrectly here?


I am trying to figure out for what value of $x$, is $f(x)=x^{x^{x^{...}}}=4$. $f$ is a infinite height tower of $x$.    I am able to solve for $f(x)=3$ in the following way: $$\ f(x)=x^{x^{x^{...}}}=x^{f(x)}=x^3=3 \\ \implies x= \root{3} \of{3} \approx 1.44225 $$  When I use the same technique to solve for $f(x)=4$. I get $x=\sqrt{2}\approx1.4142$. But this cannot be correct since $f$ is a monotonically increasing function. Also, $f(x)=4$ should have a solution because the function seems continuous and from Intermediate Value Theorem we can reason that there exists a $x^*$  such that $f(x^*)=4$    Any help or idea is appreciated.


facebook ad metric vs google analytics metrics

My facebook ad metrics shows me a number of clicks in my ad. Also my google analytics is tracking the facebook ad source, but the number of clicks in my ad is almost 30% bigger than the number of visits that is being tracked by the google analytics from the facebook campaign source.  What am I missing here?


In my very first rendering I have an unknown object in my rendering image. its not found on any layer and I cant finde any unknown axis or objects on my rendered layers. Its a white circle behind a cup. could it have something to do with the light?


I googled this, but couldn't find an answer.  How do I add space inside \textrm{}?  e.g. I want to get "Hello_____World", but what I get is "Hello_World" when I type in \textrm{Hello_____World}. Please note that _ is there just to show spacing size.  Thanks in advance.  p.s. The question is inside \textrm{}. \, \quad, \hspace, etc. don't work inside \textrm{}.


I used to study at Cambridge School.  I am used to studying at Cambridge School.  If the verb is continuous tense, it need to be added "verb to be" before used to?


I listen to audiobooks as I work around the house. Most audiobooks come in many "pieces" ... multiple MP3 files. I need to combine these files into one large file to properly use it. In windows there are several "merge" file but I haven't found anything for Ubuntu. Any suggestions?


How to find when a previous flight occured?

I want information about a flight in 2009. My dad came to Canada from the US.  He went back in August 2009.  He forgets the exact date.  He travelled by US airways.  He need to know exact date for citizen purpose.  Can anyone help me to find this information?


I have been using !$A.util.isEmpty(var) to check if value in empty/null/undefined in aura but this is not supported in LWC. What will be equivalent of this expression in LWC.   I don't want to write like if(this.var!==null && this.var!==undefined && this.var!=='')


How to properly clean the ducks and his friends?

You know, .  My little one loves her ducks, some ducks friends, a small manual portable shower, and so on: all they go to her bathtub and we play a lot.  In the end, although I squeeze, shake, dry using a hair-blower, there's always some water left inside. And no matter how I clean using hot water, put them in the boiling water on my stove, after some time I can notice that something (algae?) is developing inside. So I go and try everything again.  How can I clean them after every bath ? Or how can I clean them every x days?   Edit  Those cheaper ducks could be thrown away, but some of the others are hard to find/expensive. And the mini-shower wouldn't have any fun without splashing real water (that we use to bath the ducks during the bath).  For reference: an almost duplicate question but with different answers:


How to make grep return value without comma

I want to extract a value from a json file so that I can process it and I try that using grep '"USDEUR" currs.json' | cut -d ':' -f 2 but it returns 0.918695, and the json file looks like this:   { "success":true, "terms":"https:\/\/currencylayer.com\/terms", "privacy":"https:\/\/currencylayer.com\/privacy", "timestamp":1449232988, "source":"USD", "quotes":{   "USDEUR":0.918695,   "USDGBP":0.660851,   "USDPLN":3.95815 } }   So I want to know how to disable the comma so that I can process the value of USDEUR


System.NullPointerException: Attempt to de-reference a null object, sr1

public class MyCustomController{  Public Account acc;  public MyCustomController(){  List<Account> lstAccount  = [select id,Name,Phone,Industry,Website,Active__c,Rating,BillingCity,Description,Fax, ShippingCity,AnnualRevenue,BillingCountry,ShippingCountry from Account where id=:ApexPages.currentPage().getParameters().get('Id')];   }  public Account getAccount() {  return acc;   }  public Pagereference saveMethod() {  update acc;  Pagereference pageRef = new ApexPages.StandardController(acc).view();  return pageRef;  } }


Let, $f(x,y)=|xy|$, Show that $f$ is differentiable at $(0,0)$   I started with by trying to prove $\lim_{h\to 0,k\to 0}\dfrac{f(0+h,0+k)-f(0,0)}{hk}$ exists. Then, $\lim_{h\to 0,k\to 0}\dfrac{|hk|}{hk}=\lim_{h\to 0,k\to 0}\dfrac{|h||k|}{hk}=\lim_{h\to 0}\dfrac{|h|}{h}\lim_{k\to 0}\dfrac{|k|}{k}$  Can I do this? Because, if I do this, $f$ may not be differentiable, but I have to show the converse. Thanks, for any help!


In Miktex with winedt, how to install tikz-cd?

To make commutative diagram, I have to use tikz-cd package. The error says tikz-cd.sty not found. So I find tikz-cd.sty file, but I can't know where I should put this file. In my computer, MiKTeX's location is C:\Program Files (x86)\MiKTeX 2.9  How should I do?


Formulas for calculating pythagorean triples

I'm looking for formulas or methods to find pythagorean triples. I only know one formula for calculating a pythagorean triple and that is euclid's which is:  $$\begin{align} &a = m^2-n^2 \\ &b = 2mn\\ &c = m^2+n^2  \end{align}$$  With numerous parameters.  So are there other formulas/methods?


How can I promote a self-written tool on StackOverflow?

Over the last months, I was working on several API backends and I couldn't find a simple tool to quickly create API requests and view the results. (Other than writing blocks of javascript or long curl commands)  I've read several Stack Overflow faq's and many promotion-discussions, but I can't find a good way to share my tool with other users, possibly looking for such a tool. If there is a better way, or if there's a special board for 'tool promotion', please let me know.


How to convert cloth simulation into mesh animation?

I want to transfer Blender scene with cloth simulation to Maya and Houdini.   The solution of this problem involves answers to two questions: - How to "bake" the animation, so it does not depend on the cloth modifier (how to bake cloth simulation into shape key animation, if this is what I need to do)? - In what format it is better to save the final result for future transfer to Maya (fbx?)?


the difference between "come of" and "come from"

He came of a rich family.   He came from a rich family.      Which is correct?  came of or came from? Explain to me.


Disable to receive address from dhcpd for one host/mac

I have a client in my network,  who ask me to prevent him from getting ip address via dhcp.  He has a strange software, and can't switch off dhcp-client, but this dhcp client do something bad after it get ip.  In same vlan I have clients who needs dhcp to work.  I tryed that for isc-dhcp41-server-4.1.e,2:  host client_disable {                                                                                hardware ethernet aa:bb:cc:dd:rr:ff;                                                                                fixed-address 0.0.0.0;                                                                                }    Its seems like doesn't works.   I am trying to google that, but looks like its pretty strange scenarios, and I can't find anything appropriate.  Please, point me to right solution.


cant get the sub-surf right (Blender guru beginner modeling tutorial)

So I have been following the Blender Guru modeling tutorial with minor changes every thing looked OK till he added the sub-surf modifier and I have no idea how to fix  (followed tutorial  )  this is my edit view with and with out sub surf     and this is how it should look like


Recently while getting an review-audit I wanted to edit the post. A message like  This post was deleted. You can't edit deleted entries.   appeared. I think this shouldn't be displayed because it shows that we are in an audit.


Let $X,Y$ be integrable random variables such that $\mathbb E(X|\sigma(Y))=Y$ and $\mathbb E (Y|\sigma(X))=X$, where $\sigma(X)$ is the smallest sigma algebra such that $X$ is measurable. Show that $X=Y$ almost surely.   The claim seems plausible since I think of the equality $\mathbb E(X|\sigma(Y))=Y$ as $X$ being finer than $Y$. But still, I didn't manage to formally prove the claim. Any suggestions?


How to handle optional parameters in function

I have a function named test which accepts two parameters. If any pass any input to that function, it works perfect. But I have a scenario where input may or may not come. How to handle such scenario. Is it possible to do in node.js? I tried using typeof check but it did not work as expected.  function test(input, callback) {     if (input) {         callback(input)     }     else {         callback("No input")     } } test("message", function (result) {     console.log(result) }) test(function (result) { // This scenario fails     console.log(result) })


Add a {Start a new}/{Join the} discussion on this {Question}/{Answer} button

There is a significant push back being felt as a result of the implementation of the Code of Conduct.  This is especially true for the crackdown on comments. I think that we can smooth this by adding a new button to Join or start discussion on any question or answer.    This will allow people to quickly join the discussion in chat rather than in comments.  Right now the only "easy" way to start a discussion is to post multiple comments.  If we make it easier to have a targeted discussion in chat then we should see less need or desire to chat in comments.  I suggest this because the customers of SE want to be able to have discussions on questions and answers.  There is already a method to do this.  I am just suggesting making it easier for those users to avail themselves of that method, as well as to corral that chatter to where it belongs.


How to solve resistance in this circuit?

I need to find R(AB). It is resistance across terminals A and B.  I really do not know how to solve this kind of circuits. Maybe I have to use transforming from triangle to star? But it is quite inconvinient.  I noticed that on the right side 1 kOhm and 2 kOhm resistors are series. We add them and get 3. But what's next step?


Proper back-transformation of lognormal standard deviation to find confidence intervals around a mean

I want to determine the 95% confidence interval of a mean.    I logged-transformed my data in order to achieve a normal distribution.  Several observations contained 0, so I changed these to 1 so that they would be represented as 0 after the transformation.  I then found the standard deviation of the log-transformed data.  I computed the SE of the transformed data by the equation (SD/sqrt(n)*1.96),  I back-transformed the SE with exp(SE) in order to get the SE on the scale of the original data. I then added and subtracted the back-transformed SE from the untransformed mean (calculated with the 0s) in order to find the lower and upper confidence limits of the mean.   I have a bad feeling my back-transformation (step 5) is either not done correctly, or in the wrong place. Could someone validate my method? Refute it maybe as well, with an explanation of any statistical rules I have violated with this method, and possible suggestions to solve the problem


What's the benefit of assigning a function to a variable vs just calling the function?

I'm struggling to see the differences and benefits  between defining a function as a variable vs just defining a function with a name. When would it be better to use each type?  Simple function definition   function add(a,b) {return a+b;}; // and calling it like this when you need it: add(5,2) // Sum 7   vs   As a variable:   add = function(a,b) {return a+b;}; // and calling it like this when you need it: add(5,2) // Sum 7   Apologies for the rookie question. Thanks!  Edited: typos


Pythonic way to get n elements at time from list

There are similar questions but i didn't find a clean answer for what i think is simple.  I want to get once the first 1000 elements of a list, then the first 2000 ecc...  for i in range(1000, len(l1), 1000):      a = l1[:i]   but obviously won't work if len(l1) % 1000 != 0 or if len(l1) < 1000. What is an easy solution for this?  Thanks.


Board deals a straight say 45678  Alice has K A 123 and Tom has K Q 123 does Alice win as her hole card is an Ace ? or do they split the pot ? TY


For the past few days, when I click on the notification icon in the Stack Exchange Android app, it is closing suddenly.  So to view any notification regarding my post/comments, I need to go the profile first and then click the post. OR, I need to open the Stack Exchange site in Chrome. What's happening?


What is the role of an unescaped circumflex or hat character " ^ "?

Is there any use for the unescaped ^ in (La)TeX, when not in math mode? If not, I couldn't see why it's necessary to escape it.


Extend volume where unallocated space lies ahead of it

I want to extend my volume. However the unallocated space lies ahead of the volume. Is it possible to extend this volume without converting it to a dynamic volume?     I tried to use diskpart with the extend command but it doesn't work. Makes sense because the instructions says that the unallocated space has to be behind the volume.


Is cooking garlic is the important part of curry.This huge use of garlic in our dishes wants the easy method to peel of garlic.


Can relative pronouns be omitted in some regions?

“I guess it was Cal asked Lee.” (Aron, born in California) . . .   . . . “That’s a smell could raise me out of a concrete grave.”   (Adam, born in Connecticut) (John Steinbeck, East of Eden)   In the ‘it is’ or ‘there is’ constructions, relative pronouns can be omitted, says my Korean grammar book. In this context, is the second sentence an example of regional dialect?


When should I use "a" versus "an" in front of a word beginning with the letter h?

A basic grammar rule is to use an instead of a before a vowel sound. Given that historic is not pronounced with a silent h, I use “a historic”. Is this correct? What about heroic? Should be “It was a heroic act” or “It was an heroic act”?  I remember reading somewhere that the h is sometimes silent, in which case it’s an, and when the h is pronounced, it’s a. But then I also remember reading that it depends on which syllable is stressed. And I also think I read somewhere that it might differ between British and American English.  Personally, I pronounce the h, and believe that a is correct. I find that it sounds incorrect to use an and pronounce heroic without the h.  So how do I know when to use a and when to use an with a word beginning with the letter h? Are both acceptable or is there one that is correct?


How would I be able to run Blender on a Chromebook? The Rollapp is a farce that demands money for free software, and the whole reason I didn't buy a windows laptop is because I hate Windows 10, so is there another option?


How to suppress a windows 10 update to my network driver?

I just noticed that Windows wants to update my network driver (see below).  I do NOT want this update. This driver version was already on my system, and I had to roll back to an earlier version to fix miracast.  How do I get this driver suppressed.... forever?


How do I add another audio stream to an MP4 file?

I've got an MP4 video file and I want to add another AAC audio track to it. I've tried YAMB and MeGUI (frontends for MP4Box) and it plays correctly in Zoom Player, but it picks the wrong track in WMP and plays both at once in Quicktime. I think this might have to do with designating the default audio track somehow.  Does anyone know how to specify the default audio track with YAMB/MeGUI or know of another way of adding a track to an MP4 file?


Reason behind dependence of forces on the medium

I am a high school student and have covered basic concepts in electrostatics, magnetism and gravitation. It is clearly stated in my text book that the gravitational force experienced between two bodies is independent of the medium. Whereas electrostatic and and magnetic forces are heavily dependent on the medium. Is this just the basic nature of gravitational force or is there a logic behind why  it remains unaffected?


How exactly does a SAS SFF-8087 breakout cable work? + RAID/connection questions

Please let me know if my question does not makes any sense as I am not sure if I am interpreting it correctly from my thoughts due to my lack of technical knowledge on this.   If I am using a motherboard which has a connection for a SFF-8087 to 4x cable such as this  connection.   I am still learning about SAS but was told to build a system from a potential employer utilizing these connections. However, I am just not sure I understand the concept on how the system will treat the SATA connections which are going into the SAS port via this cable.   Also what would be the advantage of doing it this way as opposed to just connecting the SATA drives directly into the SATA motherboard ports? I believe the built-in SAS connection may be an integrated RAID controller.   Although, yes I can just go ahead and connect all the cables that fit I would like to have a better grasp of what I am doing such as:   If a motherboard has SAS connections, should I automatically assume it has some type of RAID controller built-in or is this on a case by case basis? Do All RAID controllers have only SAS connections? Even though the SATA drives are connected via a SAS connection, are they still just treated as SATA drives or as SAS technology?


How to use Regular Expression for whole numbers with C#

As I've tried with the code below but it did not work. I would like to use Regular Expression for only whole numbers.  if (Regex.IsMatch(tbColumn.Text, @"^[0-9]") == true) {     MessageBox.Show("true"); } else {     MessageBox.Show("false"); }   With my code:  0 --> true 1 --> true 9 --> true 10 --> false (it must be true) 100 --> false (it must be true)   For example:  0 --> true 1 --> true 100 --> true 34343 --> true 0.5 --> false 1.42 --> false 1,2 --> false a1 --> false a --> false


How to ssh to a server using another server?

Possible Duplicate:          For connecting to server B I have to first ssh to server A. What's the command line to access server B?


Deriving or justifying fundamental constants

Is there a fundamental way to look at the universal constants ? can their orders of magnitude be explained from a general points of view like stability, causality, information theory, uncertainty?   for example, what sets the relative magnitudes of Planck's constant compared to say charge of electron or is it just a matter of choice of units.   Does the physics become more or less cumbersome, insightful if we set all fundamental constants to 1 in appropriate units.


Black screen freeze after logging in Ubuntu Desktop 14.04 LTS

I am using Ubuntu Desktop 14.04 LTS on an Acer Aspire-5742G with Intel Core i3 processor, 8 GB RAM, 640 GB HDD and nVidia GeForce 520M with 1GB memory.  I ran BleachBit with sudo permissions form the terminal. In the GUI that opened I checked all of the features in the left panel of the program, except those for which the system said they would take a long time to perform. I noticed that it deleted some files from the system folders, but I ignored that. After that I did a   sudo apt-get update && sudo apt-get upgrade   and I rebooted my system.  Immediately after I logged in I got a black screen and the only thing I could do was to open a console by pressing Ctrl+Alt+F1. I pressed Enter, it asked me for my log in credentials. Then I typed in DISPLAY and got the following error:  Cannot start X server - error/display.c/DisplayImageCommand/428   Please tell me what sequence of commands should I enter to fix this. If you need additional information, please ask. Although, I am still able to log in from the guest account.  Thank you in advance!


How to eject and insert CD/DVD drive using command-line in Windows?

As a Linux user I know that I can use command-line in Linux to eject/insert CD/DVD. Namely, the command to eject CD/DVD drive is eject /dev/sr0 (or simply eject) and the command to insert CD/DVD drive is eject -t /dev/sr0 (or simply eject -t).  Now, is it possible to do the same in Windows from CMD or PowerShell? Using Cygwin or WSL would be cheating so they don't count. I know I can use Windows' GUI to eject CD/DVD drive but not to insert it.  My question has been proposed as a duplicate of . But I think that is only partially true. I will now explain why I think so.  It is easy to see that  only asks for the command that ejects CD/DVD drive. My question asks for the commands that eject and insert CD/DVD drive. Therefore, answers to  only answer one part of my question.


How do I find the amount of free space on my hard drive?

Is there a way to quickly check the amount of free / used disk space in Ubuntu?  I would assume you could right click on 'file system' in the file browser and choose 'properties' or something but there is no such option.


What's the difference between present perfect and present perfect continuous?

I need to know if this two sentences have different meaning a) The client has been telling us that the site is likely to be around the Krakow area. B) The client has told us that the site is likely to be around the Krakow area


How do I fix connection problem in update sources of ubuntu 15.04 vivid?

I'm trying to update my system with the habitual sequence of codes:  $ sudo apt-get update $ sudo apt-get upgrade   But when the first code finishes, it appears the follow message:  W: Fail to search http://ppa.launchpad.net/fossfreedom/packagefixes/ubuntu/dists/vivid/main/binary-amd64/Packages  404  Not Found W: Fail to search http://ppa.launchpad.net/fossfreedom/packagefixes/ubuntu/dists/vivid/main/binary-i386/Packages  404  Not Found   And appears some other messages too, but the site don't allow me to post more than 2 links with my reputation points.  I use the Ubuntu 15.04 vivid, Kernel Linux 3.19.0-15-generic, MATE 1.8.2. I tried a sort of things, like update the /etc/apt//sources.list, and use the banish 404, but none of them was in success. If someone could help me, it would be great. Thank you very much.


Cannot remove partitions - losing disk space

I am using Windows 7 Pro, I have a 2GB micro SD card which I put a Arch Linux image (iso) on using win32diskimager. _ I no longer care about the iso image or any contents on this drive, I want it clean  Navigating to My Computer -> J:\ shows I have only 90MB of space available. I have tried formatting multiple times and also changing the filesystem but the result is the same.  I have opened the Disk Partition manager in Windows and can see the SD drive is partitioned into what appear to be 3 parts.  I was able to delete the middle partition visible in the screenshot I have posted below, however after doing this it just changed to "Free Space", I have also edited my image to show the result of the right click options available on each part of the drivespace.  Ideally I want my SD drive back to 1 single partition with all space available (usually around 1.86GB out of the total 2GB if I remember correctly)


Does $\sum_{m=0}^{\infty} {2m\choose m} \frac{1}{4^{m}} $ converge?

I would like to check if the series $\sum_{m=0}^{\infty}  {2m\choose m} \frac{1}{4^{m}} $ converges or diverges. The ratio test is inconclusive. Any other way to proceed? Thanks.


Does reviewing queues have any gains for me as a Stack Overflow user?

Due to my reputation on Stack Overflow, I have access to different review queues. I want to know if it will change my score/reputation or if it will only provide me some badges?  Maybe this part seems a bit odd, but I want to know why some users spend so much time in the review queues? Is it something about their passion about Stack Overflow or their passion to help others inside the community or does it have some other reasons which I've missed?  P.S. I have read some information like  and  but I will be grateful to have your answer about this.


What information can my ISP see from my router?

I installed a new router today and saw my IP address change because the new router has a different MAC address and I am just curious on what information my ISP can see from my network.  I know they log the WAN MAC address and can figure out the manufacturer with the OUI, what about the router host name and other MAC addresses like the LAN and wireless MAC?


Uncaught ReferenceError: btn_submit is not defined,tbl_persons is not defined

I was just build single page application name,age,city,submit,persons are id of my input form. jquery and my script file in the header of .html file   $(function() { let inp_name = $('#name') let inp_age = $('#age') let inp_city = $('#city') let btn_submit = $('#submit') let tbl_persons = $('#persons')  }) function refreshPersonTable(persons){ tbl_persons.empty(); tbl_persons.append(     `<tr>     <th>Name</th>     <th>Age</th>     <th>City</th>     </tr>`     )     for(person of persons){         tbl_persons.append(             `<tr>             <td>${person.name}</td>             <td>${person.age}</td>             <td>${person.city}</td>             </tr>`         )     } }


javascript object reference not work as expected

Can anyone explain me what is going on in this code below? Why does it work like this? I expected the variable a would change too...  var base = {   cars: {     color: "blue",     brand: "Ford"   } }  var a = base.cars; base.cars = function () { console.log("example method") }  console.log(base) // changed to method console.log(a) // still is object - why?


I have been trying all day to get to the bottom of this problem, but I  just cannot see how to implement it, hence the reason for applying here seeking for help. I am looking for any type of advice someone could give. I have the following class: public class Client {     private String name;     private String surname;     private String address;      public Client(String name, String surname, String address){         this.name = name;         this.surname = surname;         this.address = address;     }      public String getNume() {         return name;     }      public void setName(String name) {         this.name = name;     }      public String getSurname() {         return surname;     }      public void setSurname(String surname) {         this.surname = surname;     }      public String getAddress() {         return address;     }      public void setAddress(String address) {         this.address = address;     }   }  I wanted to implement the state design pattern for something like a delivery-type of exercise. I have an interface with the showStatus() and nextStatus() method, and two classes that implement it - InDelivery and Delivered. public interface Delivery {     void showStatus();     void nextStatus(Courier courier) }   public class Courier {     int phoneNumber;     String destination;     Client client;     Delivery statusDelivery = new InDelivery();       Courier(int phoneNumber, String destination){         this.destination  = destination;         this.phoneNumber = phoneNumber;       }      public int getPhoneNumber() {         return phoneNumber;     }      public void setPhoneNumber(int phoneNumber) {         this.phoneNumber = phoneNumber;     }      public String getDestination() {         return destination;     }      public void setDestination(String destination) {         this.destination = destination;     }      public void setStatus(Delivery statusDelivery){         this.statusDelivery = statusDelivery;     }      public void printStatus(){         statusDelivery.printStatusStatus();         statusDelivery.statusUrmator(this);     }  }  public class InDelivery implements Delivery{     Client client;      @Override     public void showStatus() {         System.out.println("In delivery");     }      @Override     public void nextStatus(Courier courier) {         if(courier.getDestination() == client.getAddress())             courier.setStatus(new Delivered());      } }   public class Delivered implements Delivery{     @Override     public void showStatus() {         System.out.println("Delivered");     }      @Override      public void nextStatus(Courier courier) {     System.out.println("No status, already delivered");     }   }    What I am trying to do is only when the Courier address matches the Client address it moves to the next status (the Delivered status). This piece of code is the problem: public void nextStatus(Courier courier) {         if(courier.getDestination() == client.getAddress())             courier.setStatus(new Delivered());      }  Any kind of advice I'd greatly appreciate..


Interpretation of log transformed coefficients, OLS regression

I have a question about how to interpret or use the result of an OLS regression w a log transformed DV. Due to non-normal distribution of the Dependent variable, I used a log10 transformation to coax it into normality. I'm looking at a state by state dataset, each row is a state IE N=51. Data are industry data.  EQ: Ylog10(market_size)= B0 +  Bx1(consumption) +  Bx2(price) +  Bx3(income) +  Bx4(govt intervention) +  Bx5(climate) +  Bx6(socioeconomic proxy).  Exact question:  With a non-transformed Y, I can get a state total by multiplying the value of each variable by its coefficient, and summing them for each state.   Because log transformed data are percentage change rather than raw number, can I do the same thing with the logged result?  If not, is there something else I can do with the logged coefficients to see where states rank in terms of their values for the variables above? If I multiply the value for each state datapoint by the coefficient and sum them, does it matter that they're percentage change and not raw numbers?  The ranking of states differs in a few noticeable ways if I use raw numbers vs logged results.  Any help would be very much appreciated. Thank you.  EDIT: Gung linked a thread I had previously read before asking my question, it is/was helpful but did not fully answer my question. I know that in an OLS regression with a log transformed DV with non-transformed IVs, the IV coefficients reflect percent changes in the DV.   Maybe an example is better:  Values for CA: consumption=50  price=10  income=12  govt intervention=2  climate=0  socioeconomic proxy=5  Non-transformed coefficients: consumption 1.3 price 3258 income 42 intervention 18 climate 1 socioecon 5968  Transformed coefficients: consumption 0.0 price 0.0005 income 0.04 intervention 0.00001 climate 1 socioecon .2  'Value' for CA non-transformed (50*1.3)+(10*3258)+(12*42)+(2*18)+(0*1)+(5*5968)=63205  'Value' for CA transformed (50*0.0)+(10*.0005)+(12*.04)+(2*.00001)+(0*1)+(5*.2)=1.48502  With the above example - are the two values for CA valid? Specifically, is the 2nd value with the log transformed data as valid as the non-transformed value?  Thank you again.


11 year old leaking or wetting pants while laughing

My 11 year old daughter has "leaked" or wet her pants (small amount) while laughing hard.  She has become irrationally fearful to the point where she quit soccer and doesn't want to do anything where it might happen again I don't know how to help her with this.  I don't think it is a physiological problem it is normal for this to happen occasionally.  She is getting more and more anxious as school approaches-please help


" ... as if the dog were its mother" - why "were" and not "was"?

I passed a test and this question confuses me:     The young chick, separated from its mother after hatching, followed the family dog around as if the dog were its mother   I chose "was its mother" as the correct answer, but it seems like the correct answer is "were".  The question is, why are we using "were" when we are referring to a singular form of a third person?  The following makes sense to me:     ... As if you were its mother   But using "were" for the answer is like saying "He were", which doesn't make sense to me. It must be "You were" and "He was".  What's the reason for this?  UPDATE: I've read the answer links that are marked as duplicates of this question. I already know those answers. But they are talking about "You", while my question is why we are still using "Were" when both of the subjects are "Him/Her", not "You".


PHP - SELECT query using PDO without injection

I have some variables that I want to check if any of them are exist in the database or not. Also I want to prevent injection. This is my code:  if(!empty($_POST['submit'])) {     $username = $_POST['username'];     $password = $_POST['password'];     $result = $db->query('SELECT * FROM users WHERE username=:username AND password=:password');     if($result->rowCount($result)=='1') {         echo 'Ok';     } else echo 'Not Ok'; }   But I get this error:  Fatal error: Call to a member function rowCount() on a non-object in D:\xampp\htdocs\index.php on line 7   Please help me solve this problem.  Thanks.  By the way, I have the class $db and It is working well.


I want to draw several different triangles ABC with the angles marked and the angle value written in it. Thanks to answers on on another question, I've managed to get this code:  \documentclass{article} \usepackage{tikz} \usepackage{tkz-euclide} \usetkzobj{all} %% om allerhande objecten te gebruiken zoals gradenboog... \usetikzlibrary{calc,intersections,through,backgrounds,snakes} \usepackage{pgfplots} \pgfplotsset{compat=1.8} \usepgfplotslibrary{statistics}   \begin{document}  \makeatletter \newcommand\ddToddmmss[1]{% \pgfmathtruncatemacro\deg@tmp{#1}% \pgfmathsetmacro\min@tmp{(#1-\deg@tmp)*60}% \pgfmathtruncatemacro\Min@tmp{\min@tmp} \pgfmathtruncatemacro\sec@tmp{(\min@tmp-floor(\min@tmp))*60}% \ensuremath{\deg@tmp^\circ \Min@tmp ' \sec@tmp ''}} \makeatother   \begin{tikzpicture} \tkzInit[ymin=0,ymax=9,xmin=0,xmax=15] \tkzClip \tkzGrid \tkzDefPoints{1/3/A, 7/8/B, 12/1/C} \tkzDrawPolygon(A,B,C) \tkzDrawPoints(A,B,C) \tkzLabelPoints(A,B,C)  \tkzMarkAngle[fill= red,size=1.5cm, opacity=.4](C,A,B); \tkzFindAngle(C,A,B) \tkzGetAngle{angleCAB}; %\FPround\angleBAC\angleCAB{2} \tkzLabelAngle[pos = 2.3](C,A,B){\ddToddmmss{\angleCAB}};    \tkzMarkAngle[fill= red,size=1.5cm, opacity=.4](A,B,C); \tkzFindAngle(A,B,C) \tkzGetAngle{angleABC}; %\FPround\angleABC\angleABC{2} \tkzLabelAngle[pos = 2.3](A,B,C){\ddToddmmss{\angleABC}};  \tkzMarkAngle[fill= red,size=1.5cm, opacity=.4](B,C,A); \tkzFindAngle(B,C,A) \tkzGetAngle{angleBCA}; %\FPround\angleBCA\angleBCA{2} \tkzLabelAngle[pos = 2.3](B,C,A){\ddToddmmss{\angleBCA}}; \end{tikzpicture}   \begin{tikzpicture} \tkzInit[ymin=0,ymax=9,xmin=0,xmax=15] \tkzClip \tkzGrid \tkzDefPoints{1/3/A, 7/8/B, 12/5/C} \tkzDrawPolygon(A,B,C) \tkzDrawPoints(A,B,C) \tkzLabelPoints(A,B,C)  \tkzMarkAngle[fill= red,size=1.5cm, opacity=.4](C,A,B); \tkzFindAngle(C,A,B) \tkzGetAngle{angleCAB}; %\FPround\angleBAC\angleCAB{2} \tkzLabelAngle[pos = 2.3](C,A,B){\ddToddmmss{\angleCAB}};    \tkzMarkAngle[fill= red,size=1.5cm, opacity=.4](A,B,C); \tkzFindAngle(A,B,C) \tkzGetAngle{angleABC}; %\FPround\angleABC\angleABC{2} \tkzLabelAngle[pos = 2.3](A,B,C){\ddToddmmss{\angleABC}};  \tkzMarkAngle[fill= red,size=1.5cm, opacity=.4](B,C,A); \tkzFindAngle(B,C,A) \tkzGetAngle{angleBCA}; %\FPround\angleBCA\angleBCA{2} \tkzLabelAngle[pos = 2.3](B,C,A){\ddToddmmss{\angleBCA}}; \end{tikzpicture}  \end{document}     Problem is, in version 2, where point C is higher than point A, he takes the wrong angle.  Any suggestions?


Prove that this factor ring is a finite ring without zero divisors

Let $R=\mathbb{Z}[\sqrt{d}]=\{a+b\sqrt{d}\mid a,b,d\in\mathbb{Z}\}$ and let $d$ be square-free. Let $P$ be a non-zero prime ideal in $R$. I need to prove that the factor ring $R/P$ has no zero divisors and is finite.    How do I do this?  Thank you.


How to download a package without installing it

I know the name of a package in a directory that I already added, and I want to download it without installing it, how is that possible?   Suppose I have already installed it, can I already find the package (or its content)?  Thanks a lot guys


Does the recurrent neural network require the length of input samples all the same

Theoretically, the training of RNN doesn't require that the samples must have the same time length, but it seems to me that some software or open-source requires that the input data has the same time length, for example, some packages in R. Can anyone give me an affirmative answer about this and some tools can treat inputs of different length? Thanks a lot!


Another exponent problem.  $GL(n,q)$ is the group of invertible $n\times n$ matrices over the finite field $GF(q)$, where $q$ is a prime power.  I am trying to figure out the exponent of this group.  Ideas:  We'd be doin real good if we could find the set of element orders $\{o(A):A\in GL(n,q)\}$, so I am looking for things to help me figure this out.   The order of $GL(n,q)$ is $$|GL(n,q)|=\prod_{k=0}^{n-1}\left(q^n-q^k\right)$$ The set of prime factors of this number is a little unpredictable so I'm not sure whether I can use this. If $q$ is prime, the maximum order of an element in $GL(n,q)$ is at most $p^n-1$ (and this bound is strict I think).  Also I guess the maximal power of $p$ that occurs as an order of this group is $p^{\lceil \log_pn\rceil}$.  () I am aware of , which I believe implies that $\text{Exp}(GL(2,p^n))=\text{lcm}\{p(p^{2n}-1),p-1\}$.  I am trying to think of how to extend it to the general case but I'm not sure.   And I'm stuck; can't think of anything else that might help.


Human-readable filesize with find's printf

I am writing a simple helper function to show a specific folder in the format I want:  find . -maxdepth 1 -not -name "." -printf '[%TY-%Tm-%Td]\t%s\t%f\n' | sort -n   However I want to show the filesizes in a nicer format. I found  which I used to create a bash function called hr.  user@host:~$ hr 12345 12M   I tried using this in the find call as so:  find . -maxdepth 1 -not -name "." -printf '[%TY-%Tm-%Td]\t'$(hr %s)'\t%f\n' | sort -n   But it still continues to show the full filesize. How should I modify this so it works as expected?


Number of pages in Google web index falling?

Accoring to webmasters tools (sitemaps), the number of pages for one of my sites in the Google index has been steadily declining over the last few days.  In the space of a week the number of pages has dropped from over 1000 to just over 400.  Why might this be?  Has anyone else experienced something similar recently?


I have a little problem with my first JOptionPane program. I don't get my if-statements to output anything. What did I do wrong?  package test1;  import javax.swing.JOptionPane;  public class Lol1 {   public void test() {     String res;     res = JOptionPane.showInputDialog("Does this work?");     if (res == "Yes") {         JOptionPane.showMessageDialog(null, "Good.");      }     if (res == "No") {         JOptionPane.showMessageDialog(null, "You're lying.");          } }    public static void main(String[] args) {     Lol1 l1 = new Lol1();     l1.test();     } }


I want to create a recovery flash drive. I have my 8 gb flash drive[Kingston data traveller] with me. I also have the required .iso files for a>Ubuntu 13.10 b>Boot-repair disk c>AVG Rescue CD  I Wish to create 4 partitions(3 for each bootable .iso and one for data storage. Also, I want a way in which I can select which OS to boot each time I boot from USB.   So, is there a way to install GRUB on USB as well as the three other live distros? And how to create such a setup?


On a machine with Ubuntu 10.04 is it possible to install Ubuntu 14.10 in a new partition and have a dual boot between the two installations?


Carrying engagement ring in carry-on backpack. Must I declare it at the airport customs in Europe?

I'm traveling to Europe with an engagement ring (€500-€900 value) purchased in my home country, to give it to my European girlfriend. Must I declare it at the airport customs at each country I go through? Must I declare it at the final airport? Or is it considered a "personal use" item? If I will have to declare it in Europe, how much duties and taxes will I have to pay for it?  Details:  I'm a non-EU resident and purchased the engagement ring in my home country. I will give it to my girlfriend in Europe. She is an EU-resident, therefor the ring will remain in Europe after I come back to my home country.  I'm traveling from my home non-EU country. My connecting flights go through multiple countries both in North America and then Europe. The final flight arrives to an EU country from another EU country. I then will drive by car to the final destination country which is also in Europe.


How to export data from the Developer console?

I have to remove around 300 inactive flows from our Salesforce org, for this reason I would like to export the results of a query from the developer console to a csv or text. I'm unable to use Workbench since I'm working with the tooling API.  Thanks!!


Excuse my limited acquaintance on English usage; which sentence is grammatically correct, and if any, which meaning does each convey?   I saw them play chess. I saw then playing chess.


TeamViewer, open source replacement? (Connection created from remote device)

Is there an open source alternative to TeamViewer? The issue is having the remote placed device initiate a connection so that the help desk can manage the device.  I am looking to create a facility for remote management on devices we deploy which are BEHIND a firewall).  I understand that the SSH protocol supports X11 forwarding, but if I am going to deploy 10+ devices behind a firewall, how would I connect to the correct device to manage it?


What criteria should we use to determine which review queue indicator a site will have?

A few weeks ago, we tested a . In essence, the top bar icon will get a red dot whenever there's any task and not just when the count reaches a . The experiment  for small sites, but  when there are many active reviews. I'd like to come up with an objective criterion we can apply to determine which version to deploy to each site. (And, as sites grow, there will be a criterion to know when we ought to change the setting to the danger-lever version.)  I should note that:   People are no longer notified of review queue tasks that they can't access because of their privilege level and People might still be notified of review tasks they have already completed if they don't get cleared after an hour   As a result, false positives are still possible for sites with few non-moderator reviewers but should be rare otherwise.  Proposed criterion: maximum median tasks per hour <= 2  The  was built to fire about 10% of the time. The notify-immediately version of the indicator will alert more often than that unless a site is extremely slow. But that's balanced by the benefit of being able to clear the review queues more often. If the typical hour on a site has only a few items to review, you might not mind getting notified every hour since you can clean them out each time. But if the typical hour has many more items than anyone can reasonably review, the alert is of the worst kind: constant and uninformative. By this criterion, here are the statistics for the experiment sites for the first two weeks of December 2017:  Site                       Queue           Median hourly tasks  ----                       --------------  -------------------  Meta Stack Exchange        Close Votes                       1 Movies & TV                Close Votes                       5 Internet of Things         Close Votes                       2 Martial Arts               Suggested Edit                    0 Role-Playing Games         Suggested Edit                    0 Worldbuilding              Close Votes                       2 Arts & Crafts              Suggested Edit                    1 Unix & Linux               Close Votes                       9 Computer Science Educators Close Votes                       1   Unix clearly has too many for the indicator to be helpful. (I ended the experiment for them last week.) Yes, they normally have few tasks outstanding because the community is very responsive. Warning sooner  the time review tasks had to wait, but the satisfaction of completing the queue is ephemeral as new items arrive constantly. Meanwhile, there are hours in which nothing new comes to even RPG's most active queue. (The chart suggests it is Suggested Edits, but since the median is 0, it could be any of the other queues are more active. Depends on how SQL sorted the results.) So I think the median tasks for the most active queue is a pretty good metric.  As for the actual criterion, 2 seems reasonable to start with since:   It mostly divides the experiment sites between between those that appreciated the change and those that didn't and It's easy to imagine someone doing a couple of tasks between answering questions and not feeling put out by the interruption   The caveats for those points are:   Movies & TV seems to like the new indicator and would fail this criterion and This assumes that the other queues are basically empty and that reviews are not time consuming   Rollout process  I began . Assuming all goes well, we'll move on to the sites with a maximum of one per hour:   Fitness and Nutrition Motor Vehicle Maintenance and Repair Parenting Aviation Poker Space Exploration Reverse Engineering Language Learning Hardware Recommendations Literature Politics ExpressionEngine Mythology Genealogy and Family History Arts & Crafts Embedded Systems Puzzling Vegetarianism Joomla Interpersonal Skills Mathematics Educators   What am I missing and what should I look for when the change goes to more sites?


is their solve to my problem i was used kali and ubuntu and windows 8 but when am install new windows boot menu disappeared and my laptop log into windows automatically all time


I would like to install the gpointing-device-settings package which I found on the Launchpad website    I tried:  apt-get install gpointing-device-settings   but I get the following reply:  E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied) E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?   I also tried  add-apt-repository ppa:gpointing-device-settings   and got  Error: must run as priviledged user   Can anyone point me in the right direction please as I seem to have got my brain into a loop...


How to disable plain FTP with proftp and xinetd?

I'm using CentOS release 6.4 on a VPS. Its runs proftp with xinetd  I've found configuration files at  /etc/proftpd.conf /etc/xinetd.conf /etc/xinetd.d/ftp_psa  I want to disable plain FTP, but need to keep FTPS. So a ftp client tries to start a connection via plain FTP it shouldn't be allowed.  How to make this happen?


Sortcut key is not working on windows 10

I have windows 8.1 . On my system I have configured some shortcut keys like CTRL+ALT+A will launch the Equra application. On my windows 8.1 when I press CTRL+ALT+A it starts the Equra app.  I also have configured it to run as maximized.It works fine on my system. But when I connected with one client to deploy this application on his windows 10 system. This shortcut key issue arrised.I have configured the shortcut key how I did on my pc but it did not work on his pc . I dont have windows 10 but next time in future when I will connect with him through anydesk I want to fix it. Why this shortcut key problem arrised on windows 10 pc and how to fix it. English is not my native language excuse me please : )


I'm planning my first network with 2 subnets and came up with the following schema:    I'd like to know...   Would this work? Did I use the right amount of routers? Did I configure everything correctly? Plus, do I need to configure static routing here, so that every host within the subnets has internet access?


pgfplots: prevent single plot from being listed in legend

In order to fill the area between two complex curves I use tables and the vertcat command (see ).   Now I don't want the plotted area to appear in my legend, just the two curves. Is there any command to prevent the yellow area plot from being added to my legend?  this could be a minimal example:  \documentclass{article} \usepackage{pgfplots}  \begin{document} \begin{tikzpicture}   \begin{axis}[area style,axis on top]     \addplot+[mark=none,fill=yellow,draw=none] {0.1*x^2} \closedcycle;     \addplot[mark=none,draw=red,line legend] {0.1*x^2};     \addplot[mark=none,draw=blue,line legend] {0.0*x^2};     \legend{red curve,blue curve};     % \legend{\empty,red curve,blue curve};   \end{axis} \end{tikzpicture} \end{document}   With this legend{...}-command the last plot is skipped, an additional \empty doesn't help, too.  Sadly, drawing the first to plots together with fill=yellow,draw=red is not an option for me. Does anybody know any inside hacks? As far as I know, there is no command shown in the manual. Thanks in advance.


Encrypting a programs internal code [c#]

as the title says, I am wondering how you would encrypt the code inside of a project, more specifically a C# .net application, I don't want other people using various things like '.NET reflector' and getting the 'source' from my program, any help? Thanks in advance.


Should moderators be allowed to answer questions first?

I post this question because of a condition of human behavior. I don't know the name for it but, it is the phenomenom that we as humans assume that a person with a given label is incapable of erring. Therefore, our brains tell us there is no need to shop around.  I do apologize to all the moderators who feel slighted by this question. Please try to see it my way.  If a user with a low reputation posts an excellent answer, and a moderator posts an answer to the same question, the poster and other readers will naturally lean towards the moderator's point of view.    Here is a great example: The actual answer only received 390 up votes, while Jon Skeet's somewhat tongue-in-cheek answer received 793 upvotes, not including all the comment upvotes. (Ultimately, Jon points out his answer is flippant, and it was not selected.)  One comment even suggests...     @Jon Skeet, press space bar for 10 times and than put a "." I bet you will still get upvotes, This is hilarious! – krio yesterday   The other issue comes from the mentality. I know I have thought this before: "Oh [They] already answered it, I'm sure it's right… Why should I bother providing my answer?"  I think moderators should avoid answering questions. If they find a question that they want to answer, instead of answering maybe provide comments that the poster or readers will encourage more activity and possibly result in an answer.


Trying to Convert String to Character Pointer?

I've been trying everything under the sun to do the simple following:  1) Receive an input string from stdin.  2) Convert it to a char pointer so I can pass to a tabling/palindrome finding function.  I'm confident in the latter part of step 2, but it's the type agreement I can't hack. Below is my main body in question. The prototype of the palin function is int palin(char *str).  int main() {     string input;     cin >> input;     char seq[] = input.c_str(); //Error here, invalid initialization?     int len = strlen(seq);     int result = palin(seq);     cout << result;     getchar();     return 0; }   Any ideas? c_str() conversion also presents a problem as it expects a constant pointer char, but my char pointer will change.


How to prove that $(C[a,b], \|\cdot\|_\infty)$ is not a reflexive Banach Space

The tag line basically says it all...this is a question in Luenberger's Optimization book (5.14.4 on p.138).  Clearly I don't expect someone to deliver a full proof if it's tedious, but a sketch or theorem or tactic would help...I tried:   characterizing the dual of $BV[a,b].$  finding a sequence $\{f_n\}$ of continuous functions without a weakly convergent subsequence. Using the Hahn-Banach theorem to extend a functional on $BV[a,b]$.   Any help? Thanks!


"Evaluated at" bar for derivatives: \Bigr, \biggr, or \left...\right?

I'm trying to determine if there is a best practice for typesetting the "evaluated at" bar for derivatives. The three possibilities I'm thinking of are shown in the code excerpt below:  \begin{gather*} 5 + \frac{df}{dt} \Bigr\rvert_{t = 0} \\ 5 + \frac{df}{dt} \biggr\rvert_{t = 0} \\ 5 + \left. \frac{df}{dt} \right\rvert_{t = 0} \\ \end{gather*}     The \Bigr option doesn't quite reach the top and bottom of the fraction. The \biggr option overshoots the top and bottom of the fraction by a little bit. And the \left...\right option has the same height as the \biggr option, but it introduces a little extra space between the + and the fraction. I'm having trouble deciding between these options. Is there a best practice for typesetting this?


Do all P2P connections need a server to connect them to each other?

I have questions about the way P2P works -   Do all p2p nodes need a server to connect them to each other ?  (For example, pptp is a p2p connection but it users a vpn server, while bittorrent is also a p2p system but it uses a tracker)  Do bittorrent clients use trackers to find the ips or does the traffic between clients goes through the trackers ?   Lastly - how do bitcoin clients find each other ?  Do they use something like a tracker ? (I have read on the bitcoin site that if we want to help the bitcoin network we can install bitcoin core on our server but the question is that how do they communicate with each other through the Internet.  Surely there needs  be main server to connect them  ? I have heard that there is an IRC server that send the clients the ip addresses for example)


“Your system has run out of application memory”, but memory pressure is not even at 50%?

The system has 16GB of memory, and the memory pressure looks well below even 50%. This doesn't make any sense. Usually the message starts popping after about 10 days without restarting.  Any light to shed here? I used to have a 12GB hackintosh with Yosemite and this NEVER happened, it lasted stable without restarting for months at a time, this is really ridiculous, I was really expecting for Apple hardware to be more reliable, not less.


As of version 2.7 of luaotfload the support for font feature files (.fea) .  On the  Hans showed how to make font substitution work through Lua.  More examples are available in the latest ConTeXt distribution (, , , , , , )  In the past I have been using font feature files to adjust the kerning of fonts on-the-fly.  From Hans' example it is not clear to me how to adjust kerning in the new syntax.  The below example does not work as intended.  \documentclass{article} \usepackage{fontspec} \directlua{ fonts.handlers.otf.addfeature {     name = "kern",     {         type = "pair",         data = {             [0x0041] = { [0x0056] = { false, { -200, 0, 0, 0 } } },         }     } } } \setmainfont{Latin Modern Roman} \begin{document} AV \end{document}   Can we have a comprehensive guide on how to adjust font features with LuaTeX with the fonts.handlers technique?    Related questions:  (These involve hooking into the luaotfload.patch_font callback)


My LAN worlds never work. Any suggestions?

I tried everything, the port and IP address way, and the main multiplayer way, but my LAN games won't work. Please help me.


How do duplicate (and other closure) flags from low rep users work?

I have been trying to find out how vote-to-close flags from users with less than 3000 rep work, but I can't find the kind of information I want, not even from the help centre or FAQ. I have gathered bits of information here and there, but I think one comprehensive answer will help myself and others.  Here are some of the things I want to know:   How is the flag marked as helpful? How can it be marked as unhelpful? How do other (high-rep) users see and vote on it (are they notified when a flag lands in the queue)? Is there a way to check how many vote have been cast on it? Do moderators handle vote-to-close flags? What happens to the "helpful flag" status if it expires?   Can anyone give me some more information on this?  Edit:  does not sufficiently answer most of what I am asking (it answers two out of six points, to be exact).


$R$ euclidean domain, show $\tilde{N}(a)=\min_{0\neq x\in\left}N(x)$ is a norm

Let $R$ be an euclidean domain with a norm $N$. We define $\tilde{N}(a) = \min_{0\neq x\in\left<a\right>}N(x)$. Show that    $\forall a,b\neq 0\quad \tilde{N}(ab) \geq \tilde{N}(a)$  $\tilde{N}(a)=\min_{0\neq x\in\left<a\right>}N(x)$ is a norm   I proved the first claim, but I'm struggling with the second one and would be thankful for some hint.


I know it isn't. But I have trouble understanding how energy conservation would work in that case.  I might be confused. Please explain.


Japanese Stack Overflow is 2014 years old

This is clearly a bug. Somewhere. Somehow.


Perl hash mapping SVG elements to content elements


How to deeply review internal Java implementation of certain function?

I use Java 8.0 (IDE Eclipse). And sometimes want to drill-down into specific implementation (fields, methods) of which original developers (of language internals itself) have chosen.  In many times Wikipedia is too general (helps, but not enough), while other sources answer to just-near, but not exact my question.  And besides it - I am sometimes curious to see by myself (for both "want to be more independent" and "seeing by myself eyes is best to understand and be convinced" reasons).   How can I see inside, like this ?  My specific questions for now (as example and I ask to really know how-to): How internally random numbers generated in Java, I mean what the exact algorithm for output Java uses (using Math.random()) ?


Why is the first case "to reducing" and the second one "to reduce"? Is it correct?

Why is the first case to reducing and the second one to reduce? Is it correct?  During this time, she studied an environmental management system with an innovative approach to reducing pollution in an industrial company. This strategy was successful and allowed the company to reduce considerably the level of heavy metals in the wastewater produced.


How can I get String in Django model field and make sure if it is unique

This question already has answers here: How to create a GUID/UUID in Python (8 answers) Your post has been associated with a similar question. If this question doesn’t resolve your question, ask a new one. Closed 8 mins ago. (Private feedback for you) I am generating a string using below technique but one thing I just want be sure of is that uniqueness of the string. will be a great help if anybody evaluate and suggest if there is a better way of getting a unique string. models.py import random import string  def random_string_generator(size=10, chars=string.digits):     return ''.join(random.choice(chars) for _ in range(13))  class Orders(models.Model):     id= models.AutoField(primary_key=True)     token = models.CharField(max_length=13,             default=random_string_generator,             editable=False,             unique=True)          identifier = models.CharField(max_length=13,                        default=random_string_generator,                        editable=False,                        unique=True)


Prove that the set of all $n × n$ matrices of the form $AB-BA$ is equal to the set of all $n × n$ matrices with trace zero

Let $W$ be the space of $n × n$ matrices over the filed $F$, and let $W_0$ be the subspace spanned by the matrices $C$ of the form $AB - BA$. Prove that $W_0$ is exactly the subspace of matrices which have trace zero. (Hint: What is the dimension of the space of matrices of trace zero? Use the matrix 'units,' i.e. matrices with exactly one non-zero entry, to construct enough linearly independent mayrices of the form $AB-BA$. )  Let $K$ be the set of all $n × n$ matrices of the form $AB-BA$, amd let $U$ be the subspace of all $n × n$ matrices with trace zero.  First, I am not sure how $K$ is a subspace. Certainly it's closed under scalar multiplication, but how is it closed under addition?   We know that $K$ is a subset of $U$, but I am not sure how it's the other way around. We know that the $dim U = n^2-1$, and I could find $n^2-n$ 'unit' matrices (each of which has only one 1 on a non-diagonal entry) and express them as $AB-BA$. But I am not sure how to deal with the ones with at least one nonzero diagonal entry.  I am not even sure what the hint means. Any help?


I don't know how to solve this question. A line of 100 airline passengers are waiting to board a plane. They each hold a ticket to one of the 100 seats on the flight. For convenience, lets say that the n-th passenger in line has a ticket for the seat number n. Being drunk, the first person in line picks a random set (equally likely for each seat). All of the other passengers are sober, and will go to their proper seats unless it is already occupied; In this case, they will randomly choose a free seat. You're person number 100. What is the probability you end up in your seat (seat #100)?


Reverse DNS issue with Mailserver (Postfix)

My mail server is set to server.mailtuner.com, but when i try sending to a hotmail user, it goes into the spam folder.  Results on mailtester show the following reverse DNS issue:   Your IP address 45.56.86.66 is associated with the domain mailtuner.com. Nevertheless your message appears to be sent from server.mailtuner.com.  You may want to change the host name of your server to mailtuner.com.  Here are the tested values for this check:      IP: 45.56.86.66     HELO: server.mailtuner.com     rDNS: mailtuner.com   I am using a linode VPS server if anyone is familiar with it and could help.


C++, how do I print out only the first part of a string?

I'd like to ask the user for their first and last name by using a string variable, then use the first name they entered in that string and print it out.  string name;  cout << "What is your first and last name? "; cin >> name; cout << "Thank you " << name  << " for shopping with us!";   Where the name variable is in the second cout statement I'd like to just use their first name, with the current setup i have, it outputs both their first and last names.


I'm writing my BSc thesis right now in LaTeX using texmaker. The maximum amount of characters (without spaces) for the thesis is 70'000. Is there a decent way to count this? Copy-pasting it into Word is quite tedious and sometimes several words are pasted without any spaces and so on. So it's not really precise...  Thanks for your help!


Is it OK to partially copy an answer from a Stack Exchange site to another site?

First scenario: Sometimes, there are off-topic questions with a bounty, which belong to another site. On the other site, the question already exists and have some answers. The person who wrote the best answer also has an account on the second site. Second scenario: With Area 51, some sites overlap, and the same question can be asked by two different users on both sites. One has answers and the others don't. The person who wrote the best answer doesn't have an account on the second site. My question: In both cases, is it OK to make a partial copy of the best answer without telling the person nor the asker that the answer contain an exact part of another?


Find a point on a rotated rectangle with known angle

I have an example:    How to find point A's xy location (assuming point A can be anywhere on rectangle (not 4 small one, I mean the large one), including corners, but not inside or outside rectangle), with known alpha, beta angles, width, height and center xy location (center can be any position too, not just (0, 0) ) ?  Is there a formula too? If so, include it :)  P.S: I know about , but this one only have one angle to calculate..


Unistalling wine 4.0.2 from ubuntu 19.10

The command: wine --version  tells me: wine-4.0.2 (Ubuntu 4.0.2-1). I tried to unistall it with the following commands, but they do not work. How can remote it? sudo apt autoremove wine-devel wine-devel-amd64 wine-devel-i386 winehq-devel winetricks sudo apt-get remove --autoremove wine-* sudo apt-get purge winehq-stable sudo apt-get remove --autoremove wine-stable wine-stable-amd64  "Common" output: unable to locate package wine-stable-amd64 Thank you in advance.


I know this is a duplicate, I couldn't get an answer from other topics.  Kids are bad, aren't they? yes they are, no they aren't.  Kids aren't bad, are they? yes they are, no they aren't.  Generally, do you answer the question tag or validate the truthiness of the sentence before question tag.


Define colours of markers of scatterplot by rgb-values

I want to colour the markers of a scatter3 plot in specified colours with rgb values. I tried it before in the following way:  \documentclass[]{article} \usepackage{pgfplots}  \begin{document} \begin{figure}[H] \centering \begin{tikzpicture} \centering     \begin{axis}[ view={100}{35}, width=255pt, height=255pt, z buffer=sort, xlabel={$R$}, ylabel={$G$}, zlabel={$B$}, point meta=explicit,colormap/bluered, scatter/use mapped color={ball color=mapped color}, ] \addplot3[only marks,scatter,mark size=2.5, scatter/classes= {0={mark=ball, }}] table[x=R,y=G,z=B,meta=C] {Scatterplot.txt}; \end{axis} \end{tikzpicture} \caption{Caption} \label{label}  \end{figure}  \end{document}   In this try the data in Scatterplot.txt was divide in the following way:  R G B C 0.68235 0.67843 0.44314 1 0.68235 0.67451 0.45098 1 0.68235 0.67059 0.4549 2 0.67843 0.66667 0.4549 5 0.68235 0.67451 0.45882 4 0.68235 0.68235 0.46275 3 0.6902 0.69412 0.47451 2   It plotted the scatter plot like I wanted. The dots were in the colour cube and had 5 different colours. Those colours were just the ones defined by a predefined colourmap.  The problem is now, that i want to have the marker in a colour specified by three columns in Scatterplot.txt.  The file Scatterplot.txt now looks like:  R G B RED GREEN BLUE 0.68235 0.67843 0.44314 0.7653 0.74446 0.33547 0.68235 0.67451 0.45098 0.7653 0.74446 0.33547 0.68235 0.67059 0.4549 0.7653 0.74446 0.33547 0.67843 0.66667 0.4549 0.7653 0.74446 0.33547 0.68235 0.67451 0.45882 0.7653 0.74446 0.33547 0.68235 0.68235 0.46275 0.7653 0.74446 0.33547 0.6902 0.69412 0.47451 0.7653 0.74446 0.33547   So instead of 4 columns with 3 coordinates and a single "colourvalue" I want to have the markers still at the coordinates of the first 3 columns, but coloured in the rgb value defined in the last 3 columns.  This is the first question I asked here and i hope that it is in the format how you normally do this here. If not please let me know so I can do it better next time.  Note, that i found the question    which is similar to mine, but I was not able to make it work with a   addplot3   command.


Correct way to flag "do my work for me" questions?

I am not a heavy user of StackOverflow due to various time constraints I face. As such, I sometimes see some very-low quality questions where OPs ask someone to get their work done (a.k.a. "I don't wanna code, can someone do it for me?") and have a hard time trying to figure how to handle them.  When I see such a thing, which is the correct way to flag for moderator attention? Should this kind of question be tolerated inside StackOverflow?


Why does 'apt -f install' want to remove all installed packages?

Hiho everyone, I wanted to install the opera browser via their .deb package. I downloaded it from  and tried to install it with $ sudo dpkg -i opera-stable_45.0.2552.898_i386.deb but it said I need the apt-transport-https package.  I then tried to install opera using gdebi package installer, successfully.  I guess it somehow messed up my package manager, because executing $ sudo apt -f install now wants to remove all my :amd64 packages ... Here is the output:  Reading package lists... Building dependency tree... Reading state information... Correcting dependencies... Done The following packages were automatically installed and are no longer required:   apt-transport-https bbswitch-dkms:amd64 evolution-data-server:amd64  [...]    rtmpdump:amd64 seahorse-daemon:amd64 wmctrl:amd64 xsel:amd64 xserver-xorg-legacy:amd64   zlib1g-dev:amd64 Use 'sudo apt autoremove' to remove them. The following additional packages will be installed:   acl alsa-utils anacron aspell at-spi2-core avahi-daemon base-files   base-passwd bash bc bind9-host binfmt-support binutils  [...]    yelp zeitgeist-core zenity zip zlib1g-dev Suggested packages:   default-mta | mail-transport-agent aspell-doc spellutils avahi-autoipd   bash-doc binutils-doc  [...]    cairo-5c xfonts-cyrillic gnome-user-guide zeitgeist-datahub Recommended packages:   gir1.2-appindicator3-0.1 The following packages will be REMOVED:   accountsservice:amd64 acl:amd64 alsa-utils:amd64 anacron:amd64   apparmor:amd64 apport apport-gtk aptdaemon apturl:amd64  [...]     yelp:amd64 zeitgeist-core:amd64 zenity:amd64 zip:amd64 The following NEW packages will be installed:   acl alsa-utils anacron aspell at-spi2-core  [...]    yelp zeitgeist-core zenity zip zlib1g-dev WARNING: The following essential packages will be removed. This should NOT be done unless you know exactly what you are doing!   base-files:amd64 gawk:amd64 (due to base-files:amd64) base-passwd:amd64   bash:amd64 dash:amd64 (due to bash:amd64)   debianutils:amd64 (due to bash:amd64) bsdutils:amd64 coreutils:amd64   dpkg:amd64 (due to dash:amd64) tar:amd64 (due to dpkg:amd64) libc-bin:amd64   mount:amd64 ncurses-bin:amd64 perl-base:amd64 sed:amd64 util-linux:amd64 0 upgraded, 683 newly installed, 480 to remove and 0 not upgraded. Need to get 441 MB of archives. After this operation, 469 MB disk space will be freed. You are about to do something potentially harmful. To continue type in the phrase 'Yes, do as I say!'  ?]    And the output of apt autoremove:  Reading package lists... Building dependency tree... Reading state information... You might want to run 'apt --fix-broken install' to correct these. The following packages have unmet dependencies:  adduser : Depends: perl-base (>= 5.6.0) but it is not installed            Depends: passwd (>= 1:4.1.5.1-1.1ubuntu6) but it is not installed  adwaita-icon-theme : Depends: gtk-update-icon-cache but it is not installed                       Depends: librsvg2-common but it is not installed  alsa-base : Depends: kmod (>= 17-1) but it is not installed              Depends: udev but it is not installed              Recommends: alsa-utils but it is not installed  apparmor:amd64 : Depends: python3:any  [...]    xserver-common : Depends: x11-xkb-utils but it is not installed               Recommends: xauth but it is not installed yelp:amd64 : Depends: yelp-xsl:amd64 (>= 3.12.0) but it is not installable zenity:amd64 : Depends: zenity-common:amd64 (= 3.24.0-0ubuntu1) but it is not installable   Now what exactly did I do with installing apt-transport-https and how can I correct this error?


What happening here '>>>' operator in java?

I have a simple program here .I know it Shift right zero fill operator. The left operands value is moved right by the number of bits specified by the right operand and shifted values are filled up with zeros.   package com.demo.operator; public class Test123 {        public static void main(String args[]) {          int a = 60;                int c = 0;           c = a >>> 2;               System.out.println("a >>> 2 = " + c );       }     }    Output:a >>> 2 = 15  Can anyone tell  me .  How to give the output a >>> 2 = 15 ?


What is actually being compared in JS object comparison?

The following code from  demonstrates that two objects with the same properties are not necessarily the same 'value'. So I'm wondering what values the equality operator actually uses when comparing two objects. From looking around I can see it is a 'reference'. But what is this reference? Is it a memory address?  let object1 = {value: 10}; let object2 = object1; let object3 = {value: 10};  console.log(object1 == object2); // → true console.log(object1 == object3); // → false


Does there exist a surjective homomorphism from $(\mathbb R,+)$ to $(\mathbb Q,+)$ ?  ( I know that there 'is' a   'surjection' , but I don't know whether any surjective homomrophism from $\mathbb R$ to $\mathbb Q$ exist or not . Please help . Thanks in advance )


Can I save my Tweaks, themes, icons, customisation, softwares etc. like a backup and restore them if i do fresh install?

I did a lot of work today and enhanced the look of my Lubuntu 13.10.   I also installed  a lot of packages, like Numix icon theme from their PPA, downloaded icons and changed the taskbar color, size etc.  Now I want to save that all as a backup so that, if I have any errors, I can restore my customizations.


Python: Change Text Color Based on Var Value

I'm learning python and have written a small script that pulls data from a webpage and displays it on the screen.  It assigns a variable to each item it pulls from the webpage. I have a variable that has two out comes.  ham_lic = Active  or  ham_lice = Expired  It then prints that value to the screen.  print "License: ("+ham_lic+")"+"\n"  I'm trying to figure out how to print the license status red when the value is 'expired' and green when the value is 'active'.  Even just reference material would be greatly appreciated.


Copy one MS Word style from machine to machine?

I have a complex style named code in my Word 2007 normal.dotm document on one machine (setting 'New documents based on this template').  I want to transfer it to another machine (also Word 2007), also to be available in all documents.  I see plenty of tips about transferring styles on one machine, but how do I transfer it across (Windows) machines?  BTW In an attempt to recreate the style there is already a style named code on the target machine.


NullPointerException error due to adding a JPanel

I am trying to get my GUI layout to work. I can assure that I did everything right, until I kept getting this error:  Exception in thread "main" java.lang.NullPointerException     at java.awt.Container.addImpl(Container.java:1097)     at java.awt.Container.add(Container.java:417)     at Calculator$ButtonPanel.<init>(Calculator.java:33)     at Calculator.<init>(Calculator.java:23)     at Calculator.main(Calculator.java:42)   I have literally tried everything and it's still giving me that error. I did similar code like the one below and I never had this problem, which is strange. Here is my code:  import java.awt.BorderLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener;  import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JPanel; import javax.swing.JTextField; import javax.swing.SwingConstants;  public class Calculator extends JPanel implements ActionListener {     JButton buttons[];     JTextField displayarea;     JFrame fr;     Calculator() {         fr = new JFrame("Calculator");         fr.setLocationRelativeTo(null);         fr.setDefaultCloseOperation(3);         displayarea = new JTextField("0");         displayarea.setHorizontalAlignment(SwingConstants.RIGHT);         displayarea.setEditable(false);         fr.add(displayarea, BorderLayout.NORTH);         fr.add(new ButtonPanel(), BorderLayout.SOUTH);         fr.pack();         fr.setVisible(true);     }      class ButtonPanel extends JPanel {         ButtonPanel() {             setLayout(new java.awt.GridLayout(4, 4));             buttons = new JButton[16];             for (int i = 0; i < buttons.length; i++)                 add(buttons[i]);         }     }     @Override     public void actionPerformed(ActionEvent e) {         // TODO Auto-generated method stub      }      public static void main(String[] args) {new Calculator();}  }   Any suggestions?


I was wondering if someone could please explain how a Gee-haw whammy diddle works. I have linked the Wikipedia page that does include an explanation that I don't completely understand, i.e. could you please give a fairly layman explanation as to how it works.  Also, I would appreciate if you could explain why you can change the direction of the spinning ect.


Extreme Value Theory - Show: Normal to Gumbel

The Maximum of $X_1,\dots,X_n. \sim$ i.i.d. Standardnormals converges to the  Distribution according to .  How can we show that?  We have   $$P(\max X_i \leq x)  = P(X_1 \leq x, \dots, X_n \leq x)   = P(X_1 \leq x) \cdots P(X_n \leq x) = F(x)^n $$  We need to find/choose $a_n>0,b_n\in\mathbb{R}$ sequences of constants such that: $$F\left(a_n x+b_n\right)^n\rightarrow^{n\rightarrow\infty}  G(x) = e^{-\exp(-x)}$$  Can you solve it or find it in literature?  There are some , but not for the Normal case:  $$\Phi\left(a_n x+b_n\right)^n=\left(\frac{1}{\sqrt{2\pi}}\int_{-\infty}^{a_n x+b_n} e^{-\frac{y^2}{2}}dy\right)^n\rightarrow e^{-\exp(-x)}$$


Close vote review audit flawed - fails without casting vote

Having just  from any of the queues, it was reviewing close votes; however, this audit was flawed in that I didn't even cast a close vote.  Often I press the Close button to preview greater detail and sentiment of the closure, spawning the Why should this question be closed dialog box:    Especially for duplicates, where functionality is solely dependent on spawning this dialog.  From Closing > Duplicate, I can search or view selected duplicates:    Although, I realize general closure reasons are summarized on the page:    This question had 6-upvotes, but seemed very localized referencing subjective query is "taking too long" and even had a sqlfiddle link.  Maybe overly broad regarding performance tuning, the OP was posting like a forum with two answer posts to his own question  and  with one of those answers asking follow-up questions.    Wanting to gauge community response, current closure totals struck my curiosity.  So, I pressed the Close button and boom - oh, the humanity!  I failed, and didn't even cast a close vote.    Votes are not cast until a reason for closure is selected and Vote to Close is pressed.  Taking any review very seriously on this site, it only seems fair that my review quality is tested through actionable steps instead of clicking for more detailed information, leveraging the functional design of the close vote user interface.  Sure, it's complex to seed fake vote totals, and then there's controversy of mindless voting in the majority or people who simply cherry pick 4-vote questions.  Still though, it seems unfair I should hesitate to review further information of vote totals and duplicates before skipping due to the implementation of this audit.


When I run a sudo command it says unable to resolve host

And when I tried the following commands /etc/hostnames and /etc/hosts, it says:  bash: permission denied.


As you can see in the picture below, the diagram is shifted to the left. The code I am using to display this image is give below:   \begin{center} \includegraphics[width=\textwidth]{"Law 2".png} \end{center}   The name of the image file is "Law 2".  How should I go about fixing this problem? I've also read answers to a related question, but, since I am a beginner in Latex, it's difficult for me to understand their logic. So, an ideal answer would be one that strictly deals with my case.   Update   After trying \fbox{\includegraphics{"Law 2".png}} I got, the following:     Update   After trying \fbox{\includegraphics[width=\textwidth]{"Law 2".png}} I got the following picture: