I have an Asus G50vt-x5 laptop with 4GB of RAM installed. But Ubuntu 10.10 shows only 3GB of RAM. Why is it only showing 3GB of RAM instead of the full 4GB? output of free command is :  neal@ubuntu:~$ free              total       used       free     shared    buffers     cached Mem:       3095668    2972784     122884          0     747996    1590044 -/+ buffers/cache:     634744    2460924 Swap:            0          0          0


How to have generate "Author's studies (2008)" in latex

I want to write below in my text:  According to Author et al.'s studies (2008), blablabal...   If I used:  According to \textcite{author1}'s studies   It will become:  According to Author et al. (2008)'s studies, blablabal...


Proof of: if A is an integral domain, then the units of A[x] are the constant polynomials that are units of A

I've a question: How do I proof that if A is an integral domain, then the units of A[x] are the constant polynomials that are units of A? I'm really confused here and I'd be really glad if someone could show me how to prove it by explaining the steps...  Many thanks in advance!!!


I was banned from questioning a long time ago. Till now I have gained a lot of reputation points. According to help center 'The ban will be lifted automatically by the system when it determines that your positive contributions outweigh those questions whicha were poorly received.' But how much contributions should I give?


Some e-Marketing tools claim to choose which web page to display based on where you were before. That is, if you've been browsing truck sites and then go to Ford.com, your first page would be of the Ford Explorer.  I know you can get the immediate preceding page with HTTP_REFERRER, but how do you know where they were 6 sites ago?


How to summon a mob with an item in headslot that has custom model data?

So I know how to summon a mob with an item in a slot:  /summon minecraft:zombie ~ ~1 ~ {     ArmorItems:[         {},{},{},{             id:"minecraft:carrot_on_a_stick",             Count:1         }] }   I also know how to summon an item with custom model data:  /give @s minecraft:carrot_on_a_stick{CustomModelData:100001}  But how do you combine both? I've tried:  /summon minecraft:zombie ~ ~1 ~ {     ArmorItems:[         {},{},{},{             id:"minecraft:carrot_on_a_stick{CustomModelData:100001}",             Count:1         }] }   But that didn't work. Even though it was a "valid" command. I'm doing this in 1.14.4 btw


How to prove that special data is useless for given problem?

I have a dataset of sensor values and machine breakdowns. Based on the sensor values I try to build an early recognition of upcoming breakdowns (classic predictive maintenance task). I've been analyzing the given data for quite some time now and with several methods and came to the assumption that there is no connection between the sensor values and the machine breakdowns. Therefore, now I want to show more formally that there indeed is no connection. Is there a (common) way to do this? If I fit a stochastic process* on the sensor values and get normally distributed residuals**, does this prove that the sensor values are of no predictive power regarding the breakdowns? Many thanks in advance! *(e.g. random walk with mean reversion, moving average or autoregressive process) **(for both cases: close to a breakdown and far away from the next breakdown)


I am in the process of putting in place an audit log, for operations related to database modifying operations and url access. For various reasons, including preventing tampering and protecting sensitive information, I would like this to be 'write only' by the application. Maybe more specifically append-only?  Is it possible to do this on Linux and are there any things I should take into account when doing this or maybe a better way to go about this?


Calculating the greatest length of a polygon using QGIS

I'm new to QGIS and I need to know the easiest way to calculate the greatest length of a polygon. I already know the "rule" tool but I want to do it automatically because I have a huge amount of polygons to process. I only know the basics for the moment. My polygons are watersheds and they look like this:  or even that:


Doubt about Lorentz transformations derivation

I was reading the wikipedia page of the derivation of the Lorentz Transformations, paragraph "Galilean reference frames".   However, at the fourth line of the paragraph, I don't understand this sentence:     "Since space is assumed to be homogeneous, the transformation must be linear."   Why does the transformation have to be linear? Couldn't it be non-linear?


Is asking duplicate questions to improve searchability okay?

There's a certain answer which contains something very useful to me which I fairly regularly go back and reference, however I often have difficulty finding the Q&A again because the question is different to what I want from the answer. I've since just saved a copy of the answer on my phone since it was difficult to search from Google or the site's search.  Would it be okay to ask a better phrased question and then have it marked as a duplicate of the other question since while the questions are different the answer of the other one will provide an answer to the new question while also providing a simpler and more efficient way to search for the Q/A.  Is it okay to ask duplicate questions for this purpose?


How much is the minimum of $\frac{a}{b}+\frac{b}{c}+\frac{c}{a}$

$$\frac{a}{b}+\frac{b}{c}+\frac{c}{a}$$  We have three unknowns if they were two it were easy but I have no idea when it becomes three unknowns any hints?  note:There isn't any information about value of $a$,$b$ and $c$


What does the 3rd volume of Lehrbuch der Algebra of Heinrich Weber talk about?

I don't know the German language and I stumbled upon this book. I tried google translate and utterly failed. I just need to know what this volume is mainly about.


Planning to bring sex toys to Europe via Emirates

I'm planning to go to Europe via Emirates that will have a 3 hours stop over in Dubai.... And I'm planning to bring my sex toys with me....  I'm kinda worried since I just learned that sex toys are not allowed in Dubai....  I wonder if luggages are scanned again at the airport in Dubai before being transferred to the next flight.... (I know that if they scan the luggage, they will confiscate it and it is embarasing if seen in public)  Hoping for a fast response.....


Here is the data:  Valid from: Fri Nov 24 12:11:28 EST 2017 until: Sun Nov 24 12:11:28 EST 2019 Valid from: Fri Feb 24 13:21:19 EST 2017 until: Thu Feb 24 13:31:19 EST 2022 Valid from: Tue Dec 20 12:01:19 EST 2016 until: Fri Dec 20 12:11:17 EST 2041   I want to extract only data which is written after 'until:' word.  For example I should get only Sun Nov 24 12:11:28 EST 2019.


INSERT IGNORE & UPDATE VS INSERT...ON DUPLICATE KEY UPDATE

Is there any different in performance between the following:  (1) Two statements  INSERT IGNORE... UPDATE...   (2) One statement  INSERT INTO...ON DUPLICATE KEY UPDATE   Note that while this question  asks about the difference between INSERT IGNORE and INSERT...ON DUPLICATE KEY UPDATE I'm more concerned about which of the above two patters (using one statement, or two) would perform better.


Install software from packages, or build it from source?

This is a  about when to use packaged software and when to build and install it yourself.   When should I install software from packages provided by my OS distribution, instead of building and installing it myself from source?  When is it better to build from source?


Avoid friends from getting my notifications

I want that even if my friends have activated "Get notifications" for me, stop them from getting my notifications because I don't want my friends from seeing my likes, comments and so.  I have seen  and my question is right that.  But unfortunately it has been marked as duplicate with a totally different question () while they differ.


What is the difference between $|0\rangle $ and $0$?

What is the difference between $|0\rangle $ and $0$ in the context of $$a_-  |0\rangle =0~?$$


I've a windows 10 copy running in my core i5 second gen laptop. Now there is this issue where the hard disk usage goes to 100% and the system doesn't respond for a few seconds to even few minutes. I've run process monitor, resource monitor and found that the system uses the disk so much. This doesn't happen when the pc is on idle rather, if I open a folder or any other window, the hard disk usage spikes to 100% and be there for a long time! which is unusual.   I looked at the event log and there I saw a lot of events with the following message.  The start type of the Windows Modules Installer service was changed from demand start to auto start   I couldn't find what is wrong with the system. I use bitdefender 2015 antivirus and tried switching it off. Then again I disabled windows search, indexing service and all possible solutions I could find over the internet. Installed Ccleaner and did a registry clean and a system cleanup. Nothing worked and now the system is unusable! I cannot re - install windows since I don't have most of the software I've already installed.   If it helps the laptop is a Dell Inspiron n5110. Please help me..


How to prove that $x^p \cdot \mathrm{e}^{-x} = O(x^{-2})$

When $x$ tends to $+\infty$ and where "O" is the Big-O-Notation


I am currently sculpting and for some reason I can't add detail to the side of my mesh; it only works for the front and back.   If I grab my nose, its axis is locked to X and Z. It can't move on the Y axis but can be moved on the X and Z axes. I can only sculpt on the front and back of the mesh, I can't sculpt on the right or left.


Prove that $\sum_{k=0}^{m}\dfrac{\binom{m}{k}}{\binom{n}{k}}=\dfrac{n+1}{n+1-m}$.  We know, n > m. From the right side. we have $\dfrac{n+1}{n+1-m}=\dfrac{1}{1-\dfrac{m}{n+1}}$. since n > m. $0<\dfrac{m}{n+1}<1$. Then $\dfrac{1}{1-\dfrac{m}{n+1}}=1+\dfrac{m}{n+1}+(\dfrac{m}{n+1})^2+...$ I don't know what to do next? Did I choose the right path?


How do I check the checksum of a download and why should I?

My memory isn't great but I think five or six years ago, when I downloaded some package, there was never a checksum line under the download icon on the webpage. And no instructions to "check the checksum" to make sure your download is correct. Now these things are everywhere. I have two questions about them (whether MD5 or whatever).   When did they start becomeing so popular and why are they used? I mean, if I'm downloading a package from server X, then it is up to the server to make sure it is giving me the correct package (I think, anyway). How do you check the checksum? Usually I download the package and install it immediately. Maybe this is stupid.


Is it grammatically correct " Which is correct sentence: "Please provide me with the following documents" or "Please provide me the following documents"


If I restart my game, can I link the new game to the Poke-Bank and re-obtain my Pokemon?

On Pokemon X and Y, I plan on re-setting my game. If I were to put all of my Pokemon into the bank, then reset, could I re-link the bank and the game so I can re-obtain my Pokemon?


What are the specifics of 18.04's ten year support?

Apparently Shuttleworth announced at the  (). But neither the  nor  have been updated to reflect that.  What exactly is included in this ten-year support?    I'm not looking for speculation or guesses or indications. I'm looking for verifiable, official information.


A question related to using self adjoint operators to deduce eigenvalues of a related matrix

I am trying quiz questions of last year in subject linear algebra and i was unable to solve this particular problem. I am studying through textbook Hoffman and kunze. It's image:   I thought initially of multiplying and dividing by (A*+iI) but that doesn't seems to yield anything and also there is no surety why inverse of (A*+I) exists?  I am clueless on how this problem can be solved. Kindly give some hint.


We are making a thank you sign for our donors. Regarding text: when thanking them do we say "we wish to thank all our donors" or is it "we wish to thank all of our donors"


I've built a custom linux system using Yocto.  It uses busybox.  I have most everything working, except I can't have a static dns resolver address because /etc/resolv.conf is being deleted on every boot, and replaced with a link to /var/run/resolv.conf.  I think this is being caused by a script called /etc/volatile.cache.  I've deleted this script, but I think another script /etc/init.d/populate-volatile.sh recreates it every time.  Certainly I could add my own script, something like /etc/rc5.d/S90set-resolv that writes a value to resolv.conf, but that seems like an extremely strange way to do it.  Does anybody know what is going on here?  What is the correct way to set a nameserver address in this situation?


Contour integration of logarithmic functions: $\int_0^{\infty} \! \frac{\ln(x)}{x^2+a^2} \, \mathrm{d}x$

I am trying to solve using contour integration $$\int_0^{\infty} \! \frac{\ln(x)}{x^2+a^2} \, \mathrm{d}x = \frac{\pi \ln(a)}{2a}$$ Where $a>0$. I am stuck in finding roots and residue for the given problem. Can somebody help?


Does the projection from a compact Lie group to its component group split?

This is an elementary question that probably admits an elementary counterexample, but ...  Let $G$ be a compact Lie group and $G_0$ its identity component. One then has a short exact sequence $$ 1 \to G_0 \to G \to \pi_0(G) \to 1; $$ the last object is the component group.   Does the component group embed as a subgroup?


Why should /var /opt /tmp /home /boot directories be on different partitions?

Why should I split these directories across multiple partitions? Performance? Security maybe?


Good morning! I'm having trouble with this problem... It's just taking me forever and I'm worn out and I'm lost on how to use a double angle identity for $72=2⋅36$  The problem reads as follows  An exact value for $\cos36°$ can be found using the following procedure. Begin by considering $\sin108°$. Note that $108=72+36$ and use the sine sum identity. Also note that $72=2⋅36$ and use double angle identities. If there are any common factors in each term, factor them out and cancel them if they are not equal to zero. You should eventually obtain a quadratic equation containing $\cos36°$. Use the quadratic formula to obtain the exact value for $\cos36°$. (Note that the quadratic formula should give two solutions. One can be disregarded - why?  Thank you in advance to anyone who can help.


below is my code Created a wrapper class like below  public class ResponseWrapper{     public list<Account> lstaccounts;     public boolean isError ;     public string errorCode;     public integer statusCode;        public ResponseWrapper(){          lstaccounts = new list<Account>();          isError= false;     }  }   and returning the wrapper class in the Httpget method  @RestResource(urlMapping='/accounts/*') global with sharing class AccountRestService { @HttpGet global static ResponseWrapper getAccounts() {     ResponseWrapper resWrap = new ResponseWrapper();     List<Account> accounts;      try {         accounts = [SELECT Id, Name FROM Account];         res.lstaccounts = accounts;     } catch (Exception e) {         RestResponse res = RestContext.response;         resWrap.isError = true;         res.responseBody = Blob.valueOf(e.getMessage()) = resWrap.errorCode;         res.statusCode = 500 = resWrap.statusCode;     }      return resWrap;   } }   but its throwing the Error message  Error: Compile Error: global methods do not support return type of ResponseWrapper at line 4 column 31


Access permissions have not been updated in open VNC sessions

I've updated group access permissions of a directory. Users that belong to authorized group can access the contents of the folder when they login via SSH. However, they cannot access that folder within their VNC session unless the VNC session is killed and started again. Is there a workaround without killing the current VNC session? The OS is CentOS release 6.10.


I have the following python code:      if direction == 0: # Left         moved = self.slideLeft()     elif direction == 1: # Right         moved = self.slideRigth()     elif direction == 2: # Up         moved = self.slideUp()     elif direction == 3: # Down         moved = self.slideDown()       if(moved):   I know there is no swith statement in python but i am curious if there maybe is a nicer way to write this. Btw moved is just a Boolean


How should I disable application logs into syslog?

I have many services that floods syslog file in /var/log with tons of messages. Sometime server restart all of a sudden and when I created a ticket about the issue, they said that the problem is related to the heavy use of the emulated serial port. By default, the emulated serial port receives the kernel log messages.  On my server dmseg is empty, but syslog has many logs written into. I think I have to disable this feature. Now I tried the below command to disable it:  dmesg -D   or this command:  sudo dmesg -n 1   But logs are written into syslog. How should I disable syslog logging, or to disable some services from writing into syslog?


Concatenating multiple dates into a single varchar cell

I have rewritten this question to be more straightforward. I have a SQL query:  SELECT CAST(CASE WHEN DTH.DoubleBookedFlag = 1 THEN DTH.ActivityDate END AS VARCHAR(MAX)) AS DoubleBookedHours FROM DailyTaskHours DTH WHERE DTH.DoubleBookedFlag = 1   Here is the result:    Instead of returning as multiple rows, I would like whatever is returned to be one long concatenated string in a single VARCHAR field seperate by a character like |.  How can I achieve this?


Can I use Lenovo Type-C charger (20V) with Macbook Pro 2019 (20.3V)?

My Lenovo Thinkpad laptop came with a Type-C charger that has multiple output specs. The output specification of the Lenovo charger is: 20V/3.25A, 15V/3A, 9V/2A, 5V/2A. Can I use this charger to charge my Macbook Pro 2019? The output specification of the Apple Type-C charger that came with my Macbook is: 20.3V/3A, 15V/3A, 9V/3A and 5.2V/3A


Small size words while contraction of the table to be fitted to the page

Regarding this code my table is fit to the page but the size of words are diminished. What should I do? \begin{table}[H]     \centering     \caption{Printing parameters}     \resizebox{\columnwidth}{!}{%     \begin{tabular}{ccccccccc}         & Layer height, mm & First layer speed, mm/s   &Printing speed, mm/s  & Extruder temperature, °C & Bed temperature, °C & Extrusion multiplier & Extrusion width, mm & Fan speed, \% \\ \hline         Carbon fiber tow&  &  &  &  &  &  &  &      \end{tabular} }     \label{table3} \end{table}  Thanks


Annihilators of elements of a finitely generated faithful module over a noetherian reduced ring

Lately I've been thinking to annihilator of modules and I've conjectured  a proposition I can't prove, so I'll expose my claim.     Let $A$ be a noetherian reduced (commutative) ring and let $M$ be a faithful finitely generated module on $A$. Is it true that there exists an element $m \in M$ such that $\operatorname{Ann}(m)=0$?


Controlling capacitive touch panel on a stove

I own a  which is controlled over a capacitive control panel. I would like to make a device which controls power output by checking the temperatur inside the pot: a thermostat.  First thing which came to my mind was a complex two axes apperature which points to the control element which should be driven and removes itself afterwards. This should work but then I discovered that you may drive the stove by capacitive load: I placed a coin on the control element to power the stove on, nothing happened. Then I touched it with my finger and it turned on. Then I touched it with a 10cm wire and it turned off. It seems my fingers were influencing the experiment. When holding the wire with a piece of plastic on the coin the stove does not switch!  The stove itself reacts to permanent capacitive load on any of the control elements with a self turn-off (security mechanism) which has to be avoided.    The Problem is that I am not smart enough to control the capacitive load. My last try so far was a small wire which did not switch the control and a capacitor and a transistor to temporarily enable the capacitive load. But whenever I connect a wire to the transistors base the stove already switched. My intention was to control the transistor with an Arduino Uno which finally should also house the thermistor.         – Schematic created using   This did not do because whenether I connected a wire to the base of the transistor the stove already switched.  I also tried  which should relate to  but it causes the same problem. This is my code:  void setup() {   digitalWrite(2, LOW); }  void loop() {   pinMode(2, OUTPUT); // touch   delay(100);    pinMode(2, INPUT);  // no touch   delay(2000); }   So how can I control the capacitive load to control the stove with an Arduino board?    Edit: After further experimentation with the above solution altering a GPIO pin of the Arduino Uno to be output or input I could reliably perform 'touches'... on my smartphone. The stove ran into the same problem, after the first performed action the above mentioned security mechanism pops in and powers down the unit, so I don't know how to handle that yet. Maybe there is another sensor?


So someone in our past setup DKIM in the production system.  Now I have a sandbox and I'm testing emailing.  I need DKIM setup in the sandbox as well.  Can I just setup DKIM in the sandbox with the same values (selector, keysize, that stuff) as we have in production and will that be enough to get emails signed and not flagged as spam?


Suggested Edits dashboard in 10 k tools list users who rejected an edit as approving it

In the 10 k tools,  is described as if I had approved it:    However, the review item itself (correctly) displays that I rejected this edit:    Going by   , this should be fixed, but it isn’t.  This could be solved by replacing approved by to reviewed by in the list or making an explicit list, who approved and rejected an edit (which is probably more complicated).


Comment vote vertical spacing is inconsistent on IE9

I never thought I would be OCD about pixels but whenever I am involved in a Meta post with a lot of comments, I see this, and today I decided to draw some horizontal lines to prove I am not imagining it:    The one that has the votes too far down is my own. (It's on  if you would like to try to repro, but I have seen this on every question where I've had an upvoted comment, I just never took a screenshot before.) I am guessing I can't upvote it or something and this makes the spacing different. Is it like that for everyone? Is it fixable?


How can I make a GSC change of address from a TLD to subdirectory?

I am moving from https://www.exampleA.com/ to https://www.exampleB.com/directory/. This is because the old site is now a part of a larger company so we are moving it into its directory. For this reason I am not redirecting to the root.   The problem is now I cannot use GSC change of address tool.   All my redirects are in place and those are fine. Is there a workaround I can do with redirects so I can use the change of address tool? If not, what are the downsides to not using it? I'm guessing Google will not transfer authority, seo value, etc. to the new domain?


I am trying to use some widget calendar in a django template.   Is it possible use "django admin widget calendar" in a frontend template?  Thanks


I am trying to : Convert all text in a file to uppercase using sed and interested to use range operator. can some one please help me here.  content of Sample.text: unix is great os. unix is opensource. unix is free os. learn operating system. Unix Linux which one you choose.  Thanks in Advance again


If $\sum (a_n)^2$ converges and $\sum (b_n)^2$ converges, does $\sum (a_n)(b_n)$ converge?  Could someone help me to solve this or at least give me a hint?, I have tried using Cauchy's criterion, the Dirichlet test for convergence, etc, but I can´t prove it.Honestly I don´t know where to start. Any help will be appreciated.


Are there any guidelines out there as to what could be used to effectively convey competency at x, where x is a professional ability of some kind?  At the moment I'm dividing skills up by core and other but this is simply a text label. Have any of you UX gurus any suggestions for how best to do this? I flirted with the idea of a Venn diagram of sorts but it becomes unreadable very quickly.  Other things that have crossed my mind are sliders or ratings stars/thumbs ups but I don't know what best practice is and would love some guidance from the professionals in this arena.  The wireframe below represents my first efforts at using the tool so please be gentle ;-)         – Wireframes created with


Error System.CalloutException: Callout from scheduled Apex not supported

i have created a schedulable class which has to trigger a batch job. The run method for the batch class will get list of data to process from a webservice callout. Now, i got the exception below. Any suggestions please.     System.CalloutException: Callout from scheduled Apex not supported.   global class scheduledDeltaBatchable implements Schedulable {    global void execute(SchedulableContext sc) {     ID batchprocessid = BatchUpsertSAPCustomerMasterBPSync.run(SAPServices.GetSAPCustomerMasterBPSync('Delta'));    } }


Is $f(a)\!=\!0\!=\!f(b)\Rightarrow (x\!-\!a)(x\!-\!b)\mid f(x)\,$ true if $\,a=b?\ $ [Double Factor Theorem]

I encountered this proving problem, I can do the proof but my question is why in the condition/premise we need $a$ to be unequal to $b$? My guess is that even $a=b$, the statement is still true, is it correct? If yes, how can we prove it? If false, are there any counter-examples?  The problem: Let $a$ and $b$ be two unequal constants. If $f(x)$ is a polynomial with integer coefficients, and $f(x)$ is divisible by $x-a$ and $x-b$, then $f(x)$ is divisible by $(x-a)(x-b)$.  My proof (just for reference): Let $q(x)$ be the quotient and $px+r$ be the remainder (where p, r are constants that we have to find) when $f(x)$ is divided by $(x-a)(x-b)$. So we have $f(x)=(x-a)(x-b)q(x)+px+r$. We then substitute $a$ and $b$ into $f(x)$ and use factor theorem, we get $pa+r$ and $pb+r$. We solve the simultaneous equations we get $p(a-b)=0$, since $a\neq b$, $p=0$ and $r=0$. So $f(x)$ is divisible by $(x-a)(x-b)$.  Helps are greatly appreciated. Thanks!


The newest update update of pstricks-add gives me the following error:  ! Paragraph ended before \ProvidesPackageRCS@i was completed  \documentclass[a4paper,12pt]{article} \usepackage{pstricks-add} \begin{document} test \end{document}   Does anyone know, how to fix this?


what will be the definite integration of the following equation

What will be the definite integration from 0 to inf of the cosine function  $$\int_0^\infty\cos(r)\,\mathrm dr$$


Greater than (>) symbol not recognised in debug command line arguments Visual Studio 2017

I am currently trying to debug an application and I am passing debug command line arguments via Visual Studio when starting the application as this is the only way available to me to debug this.  When I use either the > or < symbols in the command line arguments they are simply ignored. This does not happen when the application is called via command prompt however.  I have tried using 'ampersand' gt; , but this did not work. Can anyone please advise?  EDIT: The code I'm using is    Processor.CommandLineArgs = My.Application.CommandLineArgs    An example of it being used is me passing "/output.txt />3"    My.Application.CommandLineArgs has 2 items, "/output.txt" and "/3"


I already have a Sentinel-2 tile imported in QGIS and a shapefile corresponding to the area I want. How do I cut the Sentinel 2 file?


I am trying to create a file system/file commander in java, and I want to make the following loop a quit system that triggers when I type dc.  public static void main(String[] args)    boolean x; x=true;  String dc; dc="dc";         while (x=true) {          System.out.println("_____________________");         System.out.println("local disk C:");         System.out.println("bin");               System.out.println("_____________________");         String ltstcmdddd; ltstcmdddd = ltstcm.nextLine();         if (ltstcmdddd==dc) {             break;          }     }   So this is the code for the file commander, it's part of a game so ltstcm is a scanner, and lstcmd is a string you use to input commands for the game (Can't re-use it, I kept adding d's.), like I said before I want to leave this loop when I write dc, I made an if that checked lstcmdddd, I tried with checkingif (lstcmdddd=="dc") and that didn't work. I suspected that changing the value of the boolean x wouldn't work after discovering 'break', that failed. I then tried defining the string dc which contained "dc", and that didn't work either. I searched Stack Overflow about quitting loops, quitting loops failing, and changing values after defining a variable correctly. Nothing relevant to my problem, nothing I could salvage to solve the problem. (I AM NOT ASKING ABOUT COMPARISON!)


While watching a football game on TV, what does "1st & 10" mean?

One thing that made me curious while watching a football game on TV was the numbers that appear on the ground. For instance, there's a "1st & 10" beside one team, but there was a "3rd & 6" a few minutes prior (and I think it was beside the other team). What do these numbers mean?


When I render my animation, I see the render frame by frame perfectly in the viewport, but when I access the PNG or JPEG files upon completion, they are either all black or completely transparent without the mesh.  This is my first time rendering an animation in blender so it can be a very simple fix.  Thanks!  Background: Using HDR as lighting - checked transparent under "Film" so it doesn't render.  Baked the rigid body animation into keyframes.  I know it's ideal to render as PNG or JPEG, but h.264 isn't even an option, idk if it's only rendering first frame over and over?


Show that $Y_n = \sum_{k=1}^n X_k (\frac{1}{2})^k$ converges to $U(0,1)$

Problem. Let $X_1, \cdots, X_n$ be a sequence of independent Bernoulli random variables with success probability 0.5, i.e. $P(X_i = 0) = P(X_i = 1) = \frac{1}{2}$.  Define $Y_n = \sum_{k=1}^n X_k \left(\frac{1}{2}\right)^k$ for $n= 1, 2, ...$ Show that $Y_n$ converges in distribution to $U(0,1)$.  Attempt. So I'm thinking of proving using mgf (as the question hinted). I have found that $E(e^{-sY}) = \frac{1-e^{-s}}{s}, s \geq 0$ where $Y \sim U(0,1)$.  Now I try to show that $\lim_{n\to\infty}E(e^{-sY_n})=E(e^{-sY}) = \frac{1-e^{-s}}{s}$. So far I've got  $$E(e^{-sY_n}) = E(e^{-s\sum_{k=1}^n X_k \left(\frac{1}{2}\right)^k}) = \Pi_{i=1}^n E(e^{-sX_k (\frac{1}{2})^k})$$ and $$E(e^{-sX_k (\frac{1}{2})^k})=\frac{1}{2}e^{-s (\frac{1}{2})^k}$$ for all $k$. So I'm getting $E(e^{-sY_n})=(\frac{1}{2})^n e^{-s(1-0.5^n)}$ which goes to $0$ as $n$ approaches infinity.  I don't know if I made an error in calculations or something. Would appreciate if someone could point me in the right direction.


Word for someone who sleeps during the day

People are sometimes said to be a morning person or a night person. I also know that the term for something related to night is "nocturnal".   Is there a specific word for a person who sleeps during the day and is active at night? I’m looking for an elegant word for night owl.


X Forwarding over SSH when switching users

How do I forward X when switching users?  I can ssh -X username@server.example.com and open GUIs just fine. However, then when I sudo su to root, the X11 forwarding seems to stop because the windows never seem to launch.  ssh access is disabled for root, otherwise I would just connect directly.


Overriding the java equals() method - not working?

I ran into an interesting (and very frustrating) issue with the equals() method today which caused what I thought to be a well tested class to crash and cause a bug that took me a very long time to track down.   Just for completeness, I wasn't using an IDE or debugger - just good old fashioned text editor and System.out's. Time was very limited and it was a school project.  Anyhow -   I was developing a basic shopping cart which could contain an ArrayList of Book objects. In order to implement the addBook(), removeBook(), and hasBook() methods of the Cart, I wanted to check if the Book already existed in the Cart. So off I go -  public boolean equals(Book b) {     ... // More code here - null checks     if (b.getID() == this.getID()) return true;     else return false; }   All works fine in testing. I create 6 objects and fill them with data. Do many adds, removes, has() operations on the Cart and everything works fine. I read that you can either have equals(TYPE var) or equals(Object o) { (CAST) var } but assumed that since it was working, it didn't matter too much.  Then I ran into a problem - I needed to create a Book object with only the ID in it from within the Book class. No other data would be entered into it. Basically the following:  public boolean hasBook(int i) {     Book b = new Book(i);     return hasBook(b); }  public boolean hasBook(Book b) {     // .. more code here     return this.books.contains(b); }   All of a sudden, the equals(Book b) method no longer works. This took a VERY long time to track down without a good debugger and assuming the Cart class was properly tested and correct. After swaapping the equals() method to the following:  public boolean equals(Object o) {     Book b = (Book) o;     ... // The rest goes here    }   Everything began to work again. Is there a reason the method decided not to take the Book parameter even though it clearly  was  a Book object? The only difference seemed to be it was instantiated from within the same class, and only filled with one data member. I'm very very confused. Please, shed some light?


I have written simple ruby websocket script, using em-websocket, which listening folder for new files, parse them and send to clients.  When I want to test it, I just put ruby filename.rb in terminal and start my websocket server. I am using rvm and I guess it has some integrated server maybe WEBrick like rails has.  Now I have a question, how can I deploy my script and which server should I use? Can I do it by install RVM on my server and required gems, and then run my script with bash on startup? Will it work that way?  Also is it good to use em-websocket because developers have stopped working on it?  EDIT: By the way I want to run my server on ubuntu server so I don't need .exe


I have written this APEX class to use as a controller on a VFP. I need to write a TEST class for this. Can someone help with the test class for the below code ? Thank-you (The use case is to auto associate leads to the campaigns on the press of a button using VFP on campaign detail page)   public class CampaignLeads { public List<AddLeads> addFewLeads{get; set;} public List<CampaignMember> campMems ; public List<Id> ids; public Campaign camp; public CampaignLeads(ApexPages.StandardController sc) { ids = new List<Id>(); camp = new Campaign(); addFewLeads = new List<AddLeads>();  for(Lead lead: [SELECT Id, LastName FROM Lead WHERE Id NOT IN (SELECT LeadId FROM CampaignMember WHERE CampaignId =: ApexPages.currentPage().getParameters().get('id')) LIMIT 50 ]) { AddLeads objAddLeads = new AddLeads(lead); addFewLeads.add(objAddLeads); } campMems = new List<CampaignMember>(); }  public void insertLead() { Campaign camp = new Campaign(); System.Debug('FewLeads : ' + addFewLeads); List<Campaign> campList = [SELECT Id FROM Campaign WHERE Id =: ApexPages.currentPage().getParameters().get('id')]; System.Debug('Campign Id : ' + campList); if(addFewLeads.size() > 0 && campList.size() > 0 ) { camp = campList[0]; for(AddLeads addLead : addFewLeads) { if(addLead.selected == true) { CampaignMember campMem = new CampaignMember(); campMem.CampaignId = camp.Id; campMem.LeadId = addLead.lead1.Id; campMems.add(campMem); } } } if(campMems.size() > 0) { insert campMems; } }  public class AddLeads { public Lead lead1{get; set;} public Boolean selected{get; set;} public AddLeads(Lead wrpLead) { lead1 = wrpLead; selected = false; } } }  this is the VFP used: <apex:page standardController="Campaign" extensions="CampaignLeads" >     <apex:form id="formID">         <apex:pageBlock >     <apex:pageBlockButtons >             <apex:commandButton value="Associate" reRender="formID" action="{!insertLead}" oncomplete="CampaignPage()" />     </apex:pageBlockButtons> <apex:pageBlockTable value="{!addFewLeads}" var="le" columns="4">         <apex:column headerValue="Select">             <apex:inputCheckbox value="{!le.selected}"/>         </apex:column> <apex:column value="{!le.lead1.LastName}"> </apex:column> </apex:pageBlockTable>         </apex:pageBlock>     </apex:form> <script> function CampaignPage() { window.top.location='/{!Campaign.Id}'; } </script> </apex:page>


I'm trying to set the font of PowerShell to be Lucida Console 14, but something strange is happening.  When I launch PowerShell, the font is what I want it to be, but a second later (before the prompt appears) it changes to Raster Fonts 12x16.  I've tried the various font setting suggestions in other answers, but haven't found anything that fixes this.  At the moment, I have a shortcut on my desktop (copied from the start menu).  The Font tab is set up like this:    When I launch PowerShell from that shortcut, it starts up with the correct font, but soon changes.  Once it's changed, if I go into the Properties of the running PowerShell window, the Font tab shows:    On the running window, Defaults still shows the correct font, as set up on the shortcut.  Something appears to be changing the PowerShell font after it opens -- any ideas what it could be?  Added information:  I don't think I have a profile set up:  PS C:\> Test-Path $Profile False   Also, I've noticed that if I manually fix the font, then run chocolatey and install something, the font sometimes changes back to Raster Fonts 12x16.


Allow user to join group during registration

I am using D7 with Organic groups and Organic groups register. I have created the groups and when viewing a group node the link to 'Request group membership' is visible and working.   I wish a user to be able to select a group to join when registering to use the site. I have been unable to get this to work despite lots of attempts.   This issue has been discussed quite a bit as a number of people have problems with it. There is a  but it isn't very explicit. Judging by the lack of up-votes, I suspect other people have been unable to use the solution successfully.  This  discusses the steps, but lots of people, myself included, have been unable to get this to work. People in  are also having problems with this.  I am hesitant to create a duplicate question, but there seems to be a real need for this to be documented clearly in a way that people can follow.


I'm sure most of you know this phrase, what does it mean? Does it represent stupidity cutey thing that they do? What makes this phrase so popular?


How do you plot time on the X axis in excel?

I need to plot the decay of my phone's battery against time over night. My starting time is 23:17:47 and my ending one is 07:05:49. I don't have any issue in changing the time format in the current one, selecting an XY chart and plotting time on the X axis.   The problem arises because Excel doesn't start the X axis at 23:17:47, but instead at 00:00:00, so my first value is drawn from the end of the graph and the goes back at the beginning when time values are over 00:00:00.   In other words, how do I set up the min time value to 23:17:47 and the max to 07:05:49 in excel?


$A\geq B$ implies $A^{\frac{1}{2}}\geq B^{\frac{1}{2}}$ for positive semi-definite matrices $A$ and $B$.

Let $A$ and $B$ be two positive semi-definite $n\times n$ matrices. We say $A\geq B$ if $A-B$ is positive semi-definite.    Let $A^{\frac{1}{2}}$ be the square root of the positive semi-definite matrix $A$.  How to prove if $A\geq B$ then $A^{\frac{1}{2}}\geq B^{\frac{1}{2}}$?  I could prove  this for $B=I$, (i.e., $A\geq I \implies A^{\frac{1}{2}}\geq I$. But I am not able to prove it for the general case.  Note:  1) All positive semi-definite matrices are symmetric for me.   2)Square root of a matrix:- Let $A$ be a symmetric matrix, then there exists  an orthogonal matrix $P$ such that $P^TAP=diag(\lambda_1,\lambda_2,\cdot, \lambda_n)$, where $\lambda_1,\lambda_2,\cdot, \lambda_n$ are eigenvalues of $A$.   Define $A^{\frac{1}{2}}:=Pdiag(\lambda_1^{\frac{1}{2}},\lambda_2^{\frac{1}{2}},\cdot, \lambda_n^{\frac{1}{2}})P^T$ for a positive semi-definite matrix $A$. (Notice, $\lambda_i^{\frac{1}{2}}$ are well-defined as $\lambda_i$'s are non-negative (since A is positive semi-definite).


Will there be any issue with re-entry to US with H1B visa set to expire in 4 months?

I am planning to take a 1 week trip outside the US in April 2018. My H1B visa expires first week of September 2018. I just want to know if there will be any issue at port of entry in the US with 4 months left on my H1B visa. Thanks.


Proving uniqueness (basics of group theory)

If $(G,*)$ is a group, prove that the identity and the inverse elements are unique.  What I did for the first one is:   Suppose $\exists e,g\in G$ such that $\forall a\in G a*e=e*a=a$ and also that $\forall a\in G a*g=g*a=a$, then $g=g*e=e$, hence $g=e$. The first equallity happens because $e$ is an identity, and the second happens because $g$ is an identity.   Is this right? I checked some notes of another class and their proof is much more longer and complicated (although I understand every step), what am I doing wrong?  For the second one, can I use that if $a$ is the inverse of $b$, then $b$ is the inverse of $a$? I feel that I shouldn't, but I'm not sure why.


How could Hermione be in two places at the same time?

In one of the movies, I remember that Ron Weasley is confused about Hermione very busy agenda, so it seems that there are several Hermione's, or she can time travel, or being in two places at the same time.  Which of the movies is that? How could she do that?


Tweak the help text for how to make links on comments

Could we get the help text for comments tweaked a tiny bit?  I always find [link](http://www.example.com) confusing, because  is a link.  Just now, I actually went to one of my answers and posted a comment so I could experiment with it and not disturb anyone.  If you could just change it to [link text](http://www.example.com), I'd never be confused again.  I'll be the first to admit, this is a very similar question to , but that one didn't seem to generate much impact, so I'm hoping this one will.  This is what I currently see on SO:  Comments use mini-Markdown formatting: [link](http://example.com) _italic_ **bold** `code`. The post author will always be notified of your comment. To  also notify a previous commenter, mention their user name: @peter or @PeterSmith will both work. Learn more…


How to access to line that i have created on run-time by its name like created before run-time in wpf?

this is function to make line with 4 points that give it place and name   int counter=0;  public void CreateALine(double po1, double po2, double po3, double po4)     {         // Create a Line         Line redLine = new Line();         redLine.X1 = po1;         redLine.Y1 = po2;         redLine.X2 = po3;         redLine.Y2 = po4;          // Create a red Brush         SolidColorBrush redBrush = new SolidColorBrush();         redBrush.Color = Colors.Red;          // Set Line's width and color         redLine.StrokeThickness = 3;         redLine.Stroke = redBrush;          // Add line to the Grid.         LayoutRoot.Children.Add(redLine);         LayoutRoot.RegisterName("readline"+counter, redLine);         counter++;                 }   I want to create more than one line,  Could i access to any line by its name? to make an event or control its Visibility like this :        redline0.Visibility = Visibility.Collapsed;       redline1.Visibility = Visibility.Visible;


How do I upgrade my Ubuntu server from one LTS version to another? Is this safe?

I like to keep all my servers running only the most stable versions of any operating system, so obviously I only run the LTS versions of Ubuntu.  I currently have a few servers running Ubuntu server 12.04 LTS. I'd like to upgrade them to 14.04. Is it safe to jump versions like that, and how can this be done?


get_metadata() vs get_post_meta() vs custom query

I have 27 items of post_meta data that I need to get out in a class that I use through-out my website.  Currently I'm using:  $this->postMetaData = get_metadata("post", $postID);   This returns an array of arrays... such as...  Array( [first_element] => Array(     [0] => firstValue ) [second_element] => Array(     [0] => secondValue )   I then have to 'loop' through the array and 'flatten' it down so it becomes:  Array( [first_element] => firstValue [second_element] => secondValue etc )   I then assign the array elements to variables in the class such as:  $this->firstElement = $myArray["first_element"];   As part of some micro-optimisation I was looking at I wondered if there was a better way of doing this. I've read about get_metadata and get_post_meta and wondered whether I'm better using get_post_meta (or get_metadata) as singles... for instance:  $this->firstElement = get_post_meta($postID, "first_element", true); etc   Or whether I should just use a bespoke query to get the items out of the database?  Any idea which is better?  Thanks :-)


Integer ordered pair of $(x,y)$ in complex algebraic equation


Creating a bootable usb for MacOS from Windows 10

I've a MacBook Pro and recently my hard drive kicked the bucket. I bought a new ssd drive and installed it in my MacBook.  Now I have to create a bootable usb to install latest MacOS. I've spare a windows pc. Researching, I found that I could use Transmac software to create one.  However, the official ".dmg" file of latest macos (i.e., high sierra) can't be downloaded from PC.  Is there a way to download this file from a PC?


Is giving resources away for free allowed?

Motivation: I once had one surplus card on my hand, and knew the robbers would come soon. So I gave it to someone for free, to avoid losing more cards when they hit. I was surprised by how badly this was received. Two of the three other players (the hosts of the game) acted upset, like I had tried to cheat. I had to take the card back, get robbed the next turn and 'giving cards away for free' was banned immediately. (Oh, how I hate mid-game additions to the rules. But that's beside the point.)  So now the question: Is this really illegal in Settlers of Catan? Is it generally considered underhanded in any way? If so, why?   My reasoning was like this:        Consider players A and B.   A wants to give B a sheep.   A trades a sheep and one rock to B, in exchange for wheat.   A trades the received wheat for the (formerly his) rock.   A and B now both have the same resources they had in the beginning, only the sheep has moved from A to B.


What does the small picture on the cover of comic books indicate?

What does the small stamp/picture (usually in the upper left hand corner) on comic book covers indicate?     The Hulk below is the best example of what I am referring to (where he appears just below the "35¢" stamp). I was wondering if it was related to who was in the issue, or maybe a preview of who would be in the next issue.


Proving $(1)\;\;\left(\frac n3\right)^n<n!<\left(\frac n2\right)^n\forall\,\,n\ge 6,n\in\mathbb{N}$ without induction

Proving $$(1)\;\;\;\;\left(\frac n3\right)^n<n!<\left(\frac n2\right)^n\forall\,\,n\ge 6,n\in\mathbb{N}$$ and $$(2)\;\; \sqrt{n^n}\le n!\,\,\forall n\in\mathbb{N}$$ without induction  $\bf{My\; Try::}$ For $\bf{R.H.S}$ Inequality. Using $\bf{A.M\geq G.M\;,}$ We get $$\frac{2+3+4+5+......+n}{n-1}>(2\cdot 3\cdot 4\cdot 5\cdot.......n)^{n-1}$$ So we get $$\frac{(n-1)(n+2)}{2(n-1)}>(n!)^{n-1}\Rightarrow n!<\left(\frac{n+2}{2}\right)^{n-1}$$ Now How can I solve after that also How can I prove Second one Thanks


Remainder of division when $p$ is not prime

Calculate the remainder of the division of $1160^{602}$ by $35$. What I thought of doing right away is to factor out $602$ until I get to a point where I can apply Fermat's theorem. However, $35$ is not a prime number. How to proceed in this case?


Deleted MySQL "root" user (using phpMyAdmin)...how to restore?

I'm test-running a Joomla installation (locally, using WAMP) with an MySQL database supporting it...this is in preparation to moving everything online once I have it configured.    I was working in phpMyAdmin to change the password of a superuser I had set up with a login-name other than "root."  While doing so, I saw three additional "root" users, and on the phpMyAdmin home page, a warning about these root users not having a password.  I thought that since I created my own superuser with "All Privileges," I didn't need the root users...so I deleted them.  Immediately things stopped working...and now, when I click on the "Users" tab in phpMyAdmin, it simply returns a red bar that says "No Privileges"...my specific superuser is gone.  However, it seems I can still move around in phpMyAdmin (maybe because I'm still logged in?).  Could someone please tell me step-by-step how (if?) I can re-add the root users using phpMyAdmin?  I see instructions posted in various places, but they seem to address users who are using terminal windows or some other program.  I'd  hate to see months of work go down the drain!  EDIT:  Using Windows, I've tried the following:   There is no file called "resetroot.bat" anywhere in the wamp/sql folders, as someone suggested...so that option is out.  I've tried to access MySQL using a terminal connection:  in the MySQL root folder there is a file called mysql.exe that seems to grant this when executed (there is no "mysql_safe.exe" as some solutions have suggested).  However, I have been unsuccessful in starting mysql with the --skip-grant-tables option from outside mysql.exe, and when I try to do it from within mysql.exe, I just get an odd prompt ("->") and no other commands seem to work.   Please keep in mind that I am a newbie at this!  I am trying different things, but without any success...that is why I'll probably need step-by-step instructions.


template argument deduction/substitution failed c++

I have three files: main:  #include <iostream> #include "Punkt.h"  int main() {    const Punkt s1(0, 1);   const Punkt s2(-5, 2);   std::cout << "s1 " << s1.wsp<0>() <<  " " << s1.wsp<1>() << std::endl; }   header:  #include <iostream> #pragma once class Punkt{ public:     Punkt(int x, int y){         m_x = x;         m_y = y;     }      template <typename T> int wsp() const; private:     int m_x;     int m_y;  };   cpp:  #include "Punkt.h" #include <iostream> using namespace std; template <typename T>      int Punkt::wsp() const {     int obiekt(T);     try{         if (obiekt==1){             return m_y;         }         if (obiekt==0){             return m_x;         }         throw;     }     catch(...){         std::cout << "Incorrect number" << std::endl;     } }   and the problem:  Main.cpp:46:35: error: no matching function for call to ‘Punkt::wsp() const’    std::cout << "s1 " << s1.wsp<0>() <<  " " << s1.wsp<1>() << std::endl;  In file included from Main.cpp:39:0: Punkt.h:11:28: note: candidate: template<class T> int Punkt::wsp() const   template <typename T> int wsp() const;  Punkt.h:11:28: note:   template argument deduction/substitution failed:   I am starting with templates and I don't understand what is going on. When I change wsp to: 'template '(and the fuction ofc) it works fine. Do someone have any idea?


How to set a command block to set a command block

I want to setblock a command block to setblock a command block with a command inside. For example: /setblock ~ ~ ~ command_block{Command:"say hi"}  works, but: /setblock ~ ~ ~ command_block{Command:"setblock ~ ~1 ~ command_block{Command:"say hi"}"}  does not work (it says its missing a bracket). Is it possible to make this work?


Selectively find and move specified files to folder

I need to place the whole set of the Google web fonts in a single folder on my Ubunu 14.04 server.  I have downloaded the current snapshot from  which upon expansion gives me the structure  /fonts-master |  apache |  ofl |  ufl   Each of these sub folders in turn contains multiple folders - one for each font.  Each font folder contains one or more *.ttf files.  What I need to do is to grab each of these ttf files and place it in the folder /googlefonts.  I could write a PHP script that would do the job.  However, I suspect that there is a way to do the job via a few simple shell commands.  Roadblock: I know my way around BASH to do simple stuff like move & copy folders and files but that is about it.  I'd be grateful if someone here could tell me how/if this could be done.


I moved a part of my code to function and that stopped working. I don't understand why?  this code is working:  \begin{document} \makeatletter \immediate\write18{start cmd echo /k magick convert _SDC4828.jpg  -crop 50\@percentchar x100\@percentchar\space +repage _SDC4828.jpg} \makeatother \end{document}   This not working:  \newcommandx{\twosidepic}{ \makeatletter \immediate\write18{start cmd echo /k magick convert _SDC4828.jpg  -crop 50\@percentchar x100\@percentchar\space +repage _SDC4828.jpg} \makeatother }  \begin{document} \twosidepic \end{document}


How to choose trace width for very high current PCB?

I am currently designing a PCB layout for my team's high current, high voltage project and am having trouble with choosing my trace width.  The circuit is composed of 12 inductors placed in series with short traces connecting them together (about 5mm max length). We are feeding 10μs pulses at ~300A/1000V at a maximum rate of 10 pulses per second by discharching capacitor banks into the coils. The capacitors are recharged by an external source.  I have looked for resources on the subject, but nothing I could find applies to the level of current and voltage we are applying.  Is there a rule for determining trace width for very high current pulses?


Can a 2009 MacBook Pro use more memory than Apple's 'maximum RAM' figure of 8 GB?

I have a 2009 MBP with 8GB of RAM. I run Windows under Parallels pretty much all the time (I use Visual Studio for work). I recently installed an SSD to speed it up a bit and its running beautifully. However I could do with having a few extra gigs available to the Windows VM and was wondering if it would be worth buying 2 x 8GB SIMs to enable this. Apple states that the maxiumum for MBPs is 8GB, but I have seen figures online (possibly at OWC) which would suggest that Apple's specs are just guidelines which can be over-ruled.  Does anyone have any experience of 'overloading' their Macs with RAM? OSX can address terabytes of memory so I thought perhaps it was availability of chips which is the limiting factor ...  Update   for my Macbook Pro 5,5


This brief story is a future chronicle that looks back at the previous few decades. After the first Martian samples were sent back to the Earth, one plague after another decimated the population. HIV was nothing compared to these afflictions, which ruined lives and devastated society. By the end of the narrative, the last epidemic had been placed under control, sort of, and it was hoped that 15 percent of the surviving women could still bear children.   The story was in English and I think I read it sometime in the 90s or later. Clearly, it could not have been written before the nature of HIV become evident. I don't remember whether I read it in a magazine or in an anthology, though an anthology is more likely.


How to control the processor frequency of i5 in Windows 7?

On Ubuntu I can control the frequency of my CPU. I set it at the lowest value and then the fans are really quiet.  Is it possible to do it in Windows 7 ?  EDIT: The computer is a Laptop: Sony SVT 1311


How to accept generic "SObject" in Lightning Web Component for Flows?

I've got a custom built LWC to be used within a screen component in a flow. My component basically renders a collection of SObjects in a distinct way. It can also deal with different types of sObjects.  The only thing I cannot get working is my design time configuration file. I want to register the property to allow the user to bind any kind of sObject collection (Account, Contact, Custom Object, etc.) to that property in the Flow Builder.  This is my configuration:  <targetConfigs>   <targetConfig targets="lightning__FlowScreen">     <property name="records" label="Record collection" type="@salesforce/schema/Account[]" role="inputOnly"/>   </targetConfig> </targetConfigs>   This works - but limits the user to provide an Account collection.  I've tried all of the following - without success:  type="@salesforce/schema/SObject[]"  Result: Invalid reference SObject of type sobjectClass in file recordPicklist.js-meta.xml  type="@salesforce/schema/Object[]"  Result: Invalid reference Object of type sobjectClass in file recordPicklist.js-meta.xml  type="Object[]"  Result: Type 'Object[]' is either not supported by 'lightning__FlowScreen' or does not exist.  Can anybody tell me how to achieve this?  Thanks!


Can't make python3 as default python instead of python2

I am using Ubuntu. I want to make python3 be the default python version instead of python2. I tried many ways. For example :  Open your .bashrc file nano ~/.bashrc. Type alias python='python3' alias pip='pip3'  on to a new line at the top of the file then save the file with ctrl+o and close the file with ctrl+x. Then, back at your command line type source ~/.bashrc. Now your alias should be permanent.  I also tried : update-alternatives --remove python /usr/bin/python2 update-alternatives --install /usr/bin/python python /usr/bin/python3  But the problem didn't solve. How can I solve this issue ?


Calculate pearson correlation, r in pgfplots

Is it possible to calculate the pearson correlation, r or r^2 value from a linear regression using pgfplots? I already have the curve and would like to display the r value in the legend. I couldn't find any information in the manual nor google search. Please advise, thanks in advance.


Measurable Function bounded by Borel Functions

Let $f \colon \mathbb R \rightarrow \mathbb R$ be Lebesgue measurable. Show that there exist Borel measurable functions $g, h \colon \mathbb R \rightarrow \mathbb R$ such that  $g(x) \leq f(x) \leq h(x) \ \  \forall x\in \mathbb R$ and $m(\{ x: g(x) \neq h(x) \}) = 0$  I try by using simple approximation lemma that tells me i can find simple functions $\varphi$ and $\psi$ such that $\varphi \leq f \leq \psi$ and $0 \leq \psi - \varphi < \epsilon $ on $E$  On the other hand, since $E$ has finite measure, there exist an $F_{\sigma}$ set $F$ and $G_{\delta}$ set $G$ , both Borel sets, such that $F \subset E \subset G$ and $m^*(F) = m^*(E) = m^*(G)$  Now i can define $g$ and $h$ using characteristic functions on $F$ and $G$ but i am not sure if i am right or how to write the functions?  Any help, Thanks.


What differences between `type cd` and `which cd` commands in linux?

What differences between two below commands in CentOS7?  $ type cd cd is a shell builtin   and  $ which  cd cd is a shell builtin cd is /usr/bin/cd cd is /bin/cd   The cd is a shell builtin command, but why which command show another path for cd ?  Is the cd command both internal command and external command ?


A word for someone who shallowly emulates someone/something they wish to be like (but not tied to fads/popularism - not doing it fleetingly)

To detail further; I'm looking for a word for someone who makes shallow attempts to be like someone or something they like or admire by doing nothing more than acting out the perceived actions, whilst making little to no effort to understand the deeper knowledge that facilitates those actions.  Basically a top-down approach to things, rather than a comprehension-based climb.  A good (possibly offensive) example might be the sorts of nerd-types who wear fedoras in attempts to be a 'gentleman' and invoke the kind of respect that goes along with it without understanding the finer points of what else actually creates that 'look' or description.


Selecting all pixels from Pixel Inspector?

While using the Pixel Inspector, whenever I click "copy all values" it only copies values that you can see on the screen. Anyone know a solution? I need all the values to count the number of times 1, 2, and 0 appear on the graph.


How do I emphasize role-playing during combat?

Right now, the group that I GM for is very, very tactical-combat focused. To some extent, we may as well be playing a dungeon crawl board game for all the role-play we manage.  Now, in and of itself that's not bad, and I enjoy progressing the story that we're telling, but I would like more "theatre of the mind" than we're achieving right now.  The one bit of advice that I always seem to come across is to have the villains and other NPCs in the fight invite role-play by taunting and otherwise engaging in banter with the PCs, but unfortunately I've tried and failed at that - largely because quick witted banter is not my forte, and so it comes across as strained and less than engaging.  What I would like are other play-proven tactics that I as a GM can employ to lead my players towards more role-play during combat, without taking them away from their (and my) roll-play comfort zone.


Illustrator CS6 white lines showing in repeat

I've tried everything.Preferences- general-anti aliased artwork makes design look fine.Upload or check it in photoshop and the line is still there.A months work of work messed up. My thinking is I have something selected or checked somewhere and it's screwing up my work.


Finding the perimeter of a right triangle with area given

I have a question where the teacher wants me to find the perimeter of a right triangle using the area which is equal to $1cm^2$.  I've tried a few approaches but seem to be struggling and I can't even find the side lengths.  is this even possible?  would love some help thanks


What are the things that “The Force Awakens” borrowed/parallel from “A New Hope?”

The Internet is awash with criticisms (or is that praise) of how Star Wars Episode VII: The Force Awakens borrows, steals, homages, references, archetype-uses or parallels from Star Wars Episode IV: A New Hope.  What are those similarities?


Why is voltage same for the two resistors connected parallel in circuit?

We know that the electric field inside resistor produced by battery is the actual thing that pushes the electrons in it to move and thus producing some current. We also know that strength of electric field can be described by the electric flux which is the total amount of fields passing through an area. That flux when combined(multiplied) with charge of electron gives the amount of force on it. Now comes our two resistors R1 and R2. Assuming a number of field lines coming out of a terminal going towards another terminal through these resistors, the field lines should get divided into the resistances R1 and R2. Therefore giving a reduced flux through each resistor than in a series. Which will then give a lower voltage for both resistors. Wasn't the electric fields strength divided across resistors in parallel? What is the main cause of voltage? How electrons get a force to produce current even when the wire is very long in? I think it is better to understand with reality than analogy. Please don't give misleading pictures


How can I check which ports are in use from the Linux command line?

I'm running a Node.JS application and need to figure out if something is using a certain port.  How can I do this from the linux command line?


The Start menu no longer shows up when I press the Start button

I have Windows 10 Pro.  Everything was working, but today when I pressed the Start button, nothing happened. The Start menu is not showing.  I have restarted the PC several times, but it's the same situation. What can I do?


I am preparing for the exam. And I need to know the answer to one question which I can't understand.  "Give an example of non-Hamiltonian systems: in case of infinite number of particles; for a finite number of particles".  I hope somebody can help me.


Is there any particular reason why adding an additional join to an ordered table would reorder the result set?  Using a left join on the existing result set  table-valued function is similar to below (function returns @table):  conditional     BEGIN         INSERT @table                (col1)         select col1 from table1         order by col1, x, y     END   ELSE     BEGIN         INSERT @table                (col1)         select col1 from table1         order by col1, x, y, z     END


Bound of the solution of nonlinear PDE $\,\Delta u = u^3 - u$

I am trying to solve the following nonlinear PDE problem.     Let $D$ be a bounded simply-connected domain on $\mathbb R^2$ and $u(x,y)$ be a classical solution of the nonliner elliptic problem:      $$\left\lbrace\begin{aligned} \Delta u &= u^3 - u & \text{ in } D \\ u &= 0 & \text{ on } \partial D \end{aligned}\right.$$      Show that $-1\le u(x,y) \le 1$ in $D$.   Can $u(x,y) = \pm 1$ be achieved in $D$?   Since the equation is nonlinear, we cannot apply maximum principle directly. The only idea coming to my mind is to incapsulate points in $D$ where $u>1$ into closed curve, and to try to justify max principle for subharmonic functions within the curve-bounded portion of the domain. However I could not complete solution following this approach. Any help is appreciated.


Promoting the same product on two websites

I have a publisher who houses all their books on a main website. They have an imprint for a line of specialty books, and are proposing a new website for the imprint and its books to allow for unique branding and marketing efforts. However, they would like to maintain the books from the imprint on the main website as well, so books that fall within the imprint would exist on two different websites.   Is it a reasonable approach to have a second website for the imprint, or should I encourage them to keep everything on main website instead?  If having a second website is reasonable, here are my main concerns and questions:   Purchasing Options: The main website has a shopping cart and checkout process. Putting aside implementation time and cost for adding purchasing options to a second website, if someone is browsing a book on the imprint website and wants to purchase it, what's the ideal call here solely from a structural/organizational/SEO perspective: keep them on the imprint website, or redirect to the main website? SEO: I'm concerned that two pages promoting the same book will fight each other for search engine ranking, and I'm struggling to wrap my head around what content to include on each website. If I include all available information on the main website, then I have no unique content left for the imprint website. But if I split the available content between both websites, then I feel like I'm weakening the main website. How should I approach content creation and usage here?


How to make user home folder after account creation?

I created a new user with useradd name and forgot to use -d -m to create their home directory.  I tried making one, copying the contents of /etc/skel, and chowning everything to the new user.    Aliases don't work, such as ll, and I just have a $ at the command prompt, instead of name@server ~$. Also, using the scroll wheel dumps garbage on the command line :(  How do I fix this, or is it easier to delete the user and start over?


Why does $a+b+c=3\;$ imply $\;a\sqrt{a+3} + b\sqrt{b+3} + c\sqrt{c+3} \ge 6$

Let $a,b,c$ be positive real numbers such that $a+b+c=3$. Prove that      $$a\sqrt{a+3} + b\sqrt{b+3} + c\sqrt{c+3} \geqslant 6$$


Bash regex match not working - escaping all special characters

I'm having problem with bash regex match. I have regex like this:  re="fatal: file not found: .+/tmp_dir_1234/([^\ ]*) \(No such file or directory\)" test="fatal: file not found: /some/path/irrelevant/something/tmp_dir_1234/somefile.txt (No such file or directory)" if [[ "$test" =~ "$re" ]]; then     echo "match!" fi   For me everything here looks good for now but for some reason while debugging bash script I can see that it doesn't match string here:  + [[ fatal: file not found: /some/path/irrelevant/something/tmp_dir_1234/somefile.txt (No such file or directory) =~ fatal: file not found: \.\+/tmp_dir_1234/\(\[\^\\ ]\*\) \\\(No such file or directory\\\) ]]   For some reason regex pattern is escaped.


I have downloaded a shapefile of Stockholm . I'm trying to convert the shapefiles to GeoJSON with the ogr2ogr command line tool. It does not work with the following error:     Export to vector file failed.   Error: creation of data source failed (OGR error:Failed to create GeoJSON datasource: test.geojson.)   The method that I'm using is as follows:   Open the Adm.shp file as a layer in QGIS Right click on the layer and select "Save as..." Save as GeoJSON   I've tried using different projections and such without success. Does anyone have an idea what could be wrong?


What I want to ask is monochromatic light necessary for interference?  Doesn't interference occur on just the superposition of two waves(any waves)? And Why don't waves of different wavelengths don't interfere in a diffraction grating with  other waves but only with waves of the same wavelength(again as interference is just superposition of two waves)?  Why do we say that the waves interfere seperately?


Fresh install of Ubuntu 18.04 on Acer M3985 Failed to open \EFI\BOOT\mmx64.efi

Sorry, I put my explanation in comments instead of editing the question. The important point about why it isn't a duplicate is that I have tried the answers to similar questions and they haven't worked. I have put the solutions I have tried in the comments. So my question remains and its why I started originally by saying "Really struggling with the previous answers to these questions."  I have a bootable usb with a fresh download of 18.04.2 on it. I booted to it from an option in Windows 10 to boot from usb. The install seemed to work okay. I chose both LVM and full drive encryption and really wish I hadn't now. The install seemed to work but when I restarted machine after removing usb I get: Failed to open \efi\boot\mmx64.efi - not found Failed to load image \efi\boot\mmx64.efi - not found Failed to start MOKManager - not found. So I have been into BIOS numerous times, switched off secure boot, saved settings. No change. Set a supervisor password and looked for the option to 'select a uefi file as trusted' but no such option. If I could boot from usb again and re-install without the LVM and encryption option I would but it won't boot from usb even though I have put it first in the list. I tried the usb in another machine and it worked just fine. So, I can only get to BIOS screen, not to a terminal or anything else. The BIOS screen doesn't have the 'trusted' option and I feel really stuck. I would reinstall windows to start again but machine came without CDs so can't do that either. There is a lot about this problem, going back a long way, but most of it is not applicable because I cannot boot up at all, from anything. Any and all help much appreciated. Thanks.


No wifi-adapter found after installing Ubuntu 19.04 on Satellite L55-C5340

So I just installed Ubuntu 19.04 on a Satellite L55-C5340 computer and it just says there is no wi-fi adapter found. All that comes up is the wired, VPN or proxy. I already checked and there is a Broadcom 802.11 LINUX STA wireless driver from bcwl-kernel-source under additional drivers.  The network controller that comes up after running lspxi -nn on the terminal is: Network controller [0280] : Broadcom Inc ... BCM43142 802.11B... (REV 01)  Does anyone know how to fix this?


How can I use an newer package to satisfy an older dependency?

I want to use Bombono to author some DVDs, but unlike 16.04 and 18.04, 20.04 doesn't have this package in the repositories. So I downloaded the relevant packages from the 18.04 repos and tried to install them. A regular, non-forced install attempt will be rejected due to unmet dependencies, even though every missing dependency exists in a newer form in 20.04. Using dpkg -i --force-install breaks apt until I remove Bombono. How can I tell dpkg or apt to use these new packages to satisfy the older dependencies?


Intel DH55TC motherboard compatible with 2 x 8GB RAM

I have an Intel DH55TC motherboard and want to know if I can equip it with 2 x 8GB to get 16GB, or do I need to buy 4 x 4GB instead?  This are the specifications from Intel:


In photographing the moon, it appears hazy, Why?

I have tried to increase shutter speed and changed aperture.  Can this happen if the air is salty with high humidity?  Otherwise,  how can I adjust so this does not happen?


How to avoid storing passwords in the clear for tomcat's server.xml Resource definition of a DataSource?

The resource definition in tomcat's server.xml looks something like this...  <Resource     name="jdbc/tox"     scope="Shareable"     type="javax.sql.DataSource"     url="jdbc:oracle:thin:@yourDBserver.yourCompany.com:1521:yourDBsid"     driverClassName="oracle.jdbc.pool.OracleDataSource"     username="tox"     password="toxbaby"     maxIdle="3"     maxActive="10"     removeAbandoned="true"     removeAbandonedTimeout="60"     testOnBorrow="true"     validationQuery="select * from dual"     logAbandoned="true"     debug="99"/>   The password is in the clear.  How to avoid this?


Just trying to install sssd, getting the following errors: Failed to fetch   404  Not Found [IP: 18.232.150.247 80] thanks Mike


In the movie Prisoners, Keller Dover (Hugh Jackman) gets caught by Ms. Jones and he gets placed in her dungeon beneath the car in her backyard.   At the end though, when Detective Loki (Jake Gyllenhaal) hears the faint whistling sounded by Keller, does he realise it's him?  The final scene ends when Loki hears the whistling, looks in the vague direction and the credits roll.   Did Loki find and rescue Keller at the end?   It seems like we're supposed to read into it that Keller was saved, but I'm not too sure.


How to get Ubuntu (running through VirtualBox) to detect my flash drive?

I am on a Surface Pro 3. I want do a full install of Ubuntu on my flash drive. I  saw in a tutorial that it can be done by running Ubuntu from live cd mode. Since my Surface does not have a cd drive, I ran Live CD Mode in VirtualBox. Unfortunately, my USB Flash Drive does not get detected.   I am assuming this is essentially a VirtualBox issue and I was wondering if anyone has any experience with this? I can see my USB Drive listed in the ports but when I click on it nothing happens and it is not an option for installing when I click on install Ubuntu.


How do you pass $_POST values to a page using cURL?


Did J.K. Rowling purposefully name the school founders off of Hogwarts?

So there are four Houses (and four Founders): Hufflepuff, Gryffindor, Ravenclaw, and Slytherin.  Hmm. HGRS. What does that spell? Oh right! Hogwarts!   Did J. K. Rowling do that on purpose?


Transparent object within transparent object in eevee does not display

I have 3 objects in blender. They are inside one another(think russian nesting dolls) and each one is transparent except for the inner-most object.  My problem is I cannot view all three objects through each other at the same time. I can either see the smallest object within the largest one or the second smallest object inside the largest one but never all three.


Do I have to buy Minecraft again to make a new account?

I have been using my brother's account to play Minecraft and already have it downloaded on my laptop. However I want to create and use my own account do I have to re buy the game


I am just created the account on the meta stackoverflow. I have logged into the meta stackoverflow, When I clicked on this  then it is asking to me to login again. I tried it again then I again did login but When I go to same on the chat then showing to me to login again. So Ultimately I am not able to get logged in the chat.  Guys it seems very weird to me, how a such big platform behaving like buggy


Highest power of a prime $p$ dividing $N!$

How does one find the highest power of a prime $p$ that divides $N!$ and other related products?  Related question: How many zeros are there at the end of $N!$?    This is being done to reduce abstract duplicates. See   and  for more details.


What would be the easiest way to solve the following set of equations:$$ x +  y^2 = 7 $$$$ x^2 + y = 11$$  I've been trying substitution method but end up in a $4$th degree bi-quadratic equation. Thanks for your time!  EDIT: Final equation: $y^4 - 14y^2 + y + 38 = 0$. I'm only concerned about the real solutions. Is it possible to write it as a product of two quadratic equations?


Will a list of all prime numbers upto certain number of bits compromise crytopgraphic algorithms based on prime factorization?

I understand that many cryptographic algorithms depend on the difficulty of large prime factorization. Will a  list of all prime numbers upto certain number of bits make it easy for an attacker to compromise such algorithms?


It's not the first year I use Java for development, but I faced this issue the very first time. I have pretty complex permission module in my system which modifies object I return to the client in accordance with access control list.   To be short, I need to nullify object passed to another function. Here is some code:  public static void main(String[] args) {     String s = "filled";     nullify(s);     System.out.println(s);     s = null;     System.out.println(s); }  public static void nullify(String target) {     target = null; }   I understand that s is passed to nullify() by value and when I setting target to null it doesn't affect s. My question is there any way in Java which allows me to set s to null having target?   Thanks.  p.s. I found lots of information about setting variables to null but all of them was related to garbage collection and didn't answer my question.


How long does it take the bomb to explode?

After the Terrorist team in Counter-Strike: Global Offensive plants the bomb, the Counter-Terrorist team has to defuse it before it blows up.  After the bomb is planted at a bomb site, how many seconds does it take for the bomb to blow up?


What do we mean when we say "for all n where n is an element of..."

When we write "for all n where n is an element of A, P(n) is true." do we mean for all n, if n is in A then Pn or for all n, n is in A and Pn?


Bleed Damage vs. Fast Healing / Regeneration?

Going by this question:   Fast Heal will allow a creature to clean up bleed damage quickly, but my question is does it do any damage on the first round before healing kicks in? Or does the opponent get to choose the order.


A sub-theorem inside "Prove that The group $A_4$ has no subgroup of order $6$".

Proposition: The group $A_4$ has no subgroup of order $6$.   Proof: Suppose we have some $H$ such that $|H|=6$, thus $[A_4 : H ] = 2$. Thus there are only two cosets of $H$ in $A_4$ . Inasmuch as one of the cosets is $H$ itself, right and left cosets must coincide; therefore, $gH=Hg$ or $gHg^{−1} = H$ for every $g ∈ A_4$. Since there are eight $3$-cycles in $A_4$, at least one $3$-cycle must be in $H$ . Without loss of generality, assume that $(123)$ is in $H$ . Then $(123)^{−1} = (132)$ must also be in $H$. Since $ghg^{−1} ∈ H$ for all $g∈A_4$ and all $h∈H$, thus $(124)(123)(124)^{−1} = (124)(123)(142) = (243)$ and $(243)(123)(243)^{−1} = (243)(123)(234) = (142)$ are in $H$. We can conclude that $H$ must have at least seven elements $(1), (123), (132), (243), (243)^{−1} = (234), (142), (142)^{−1} = (124)$. So, we come to a contradiction and $H$ can't be of order $6$.    I understand all of the proof except for "right and left cosets must coincide; therefore, $gH=Hg$ or $gHg^{−1} = H$ for every $g ∈ A_4$".  Yes, there are two distinct left cosets: ${g_1}H={g_2}H=\dots={g_k}H=H$ and ${g_{(k+1)}}H={g_{(k+2)}}H=\dots={g_{12}}H=gH$. Also, there are two distinct right cosets: $H{g_1'}=H{g_2'}=\dots=H{g_l}=H$ and $H{g_{(l+1)}}=H{g_{(l+2)}}=\dots=H{g_{12}}=Hg'$. But how we can know that   $1.\ gH=Hg'$ for the mentioned indices,   and then  $2.\ Hg'=Hg$ for the mentioned indices $?$    Please don't mark it duplicate question, since it's not about whole proof of the original Proposition.  Thank you.


How to diagnose a vague NullPointerException on android.os.ParcelableException.getCause()?

I have an Android app installed on tens of thousands of devices that includes two different automated crash reporting libraries. There have been numerous NullPointerException reports with the output below on a variety of devices. The exact TelephonyManager.java line number referenced varies, likely due to minor differences in Android releases; however, all impacted devices are running Android 10. Some users have reported observing this same error in logcat output after a crash, identical to what is reported by the two libraries. Users are unable to determine a pattern of events that leads to the crash. I have not been able to duplicate it myself. java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Throwable android.os.ParcelableException.getCause()' on a null object reference     at android.telephony.TelephonyManager$1.lambda$onError$2(TelephonyManager.java:5352)     at android.telephony.-$$Lambda$TelephonyManager$1$DUDjwoHWG36BPTvbfvZqnIO3Y88.run(Unknown Source:6)     at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:289)     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)     at java.lang.Thread.run(Thread.java:919)  Unfortunately, the output does not reference any of my app's classes. The most useful clue appears to be that TelephonyManager line number, but that is such a large class with so many versions depending on the exact Android release, I have not been able to identify the actual code it is referring to. How can I diagnose what is causing this exception with such a vague error message, with no reference to any of my app's code? I realize it is a NPE related to TelephonyManager, but it seems like the actual error might be pointing to the exception routine itself, as if the OS is unable to determine the true exception.


Performance - volume of data - ArrayList, List vs LinkedList, LinkedList

In my java app deployed on tomcat, about 500K items (can go even upwards) are added to ArrayList. Then, these list(s) are iterated to check some conditions.  Que- For this scenario, would using LinkedList gain performance?  Any pointers from practical experience for volume of data exceeding 200K items~ 1 million items.  Mostly list of strings and objects having multiple properties mostly string (Basically get data from DB, convert it to Java objects and send it over via HTTP) If size of data is expected to stay within 100K or less, would there be a difference


I have been researching the electron flow which goes from negative to positive in a battery. Since ground the returning point in a circuit, shouldn't ground be the positive terminal?


Proof that the formula $((p\to q)\land (q\to r)\land p)\to r$ is a tautology

Write down the assumptions in a form of clauses and give a resolution proof that the formula is a tautology.  $((p\to q)\land (q\to r)\land p)\to r$  I got information that i need to use here Resolution calculus...Someone can help me?


Boot Camp error "Windows cannot locate the disk and partition specified in the unattended answer's file"

I have a 2019 MacBook Pro 16 inch running on macOS Big Sur 11.1. I am trying to install windows using Bootcamp. I get the following error: Windows cannot locate the disk and partition specified in the unattended answer file's < ImageInstall > setting. Make sure the setting references a valid partition and restart the installation. Attached the image of my disk utility without Bootcamp partition and the Image of the error. Can someone help me how to solve this? Thanks in advance


Beamer - Color of header foreground with AnnArbor theme

I use beamer with the theme AnnArbor and colortheme whale.  I tried to use:  \setbeamercolor{section in head/foot}{fg=white, bg=blue}   or  \setbeamercolor{palette tertiary}{fg=white, bg=blue}   But for an unknown reason, the bg works but not the fg... The sections names stay black in the header.    EDIT : the problem comes from the hyperref package.  This code works well :  \documentclass{beamer} \usetheme{AnnArbor} \usecolortheme{whale} \setbeamercolor{frametitle}{fg=white,bg=blue}  \begin{document}     \section{Test 1}     \subsection{Test 1.1}     \begin{frame}         \frametitle{Test}     \end{frame} \end{document}   Whereas this one doesn't works :  \documentclass{beamer} \usetheme{AnnArbor} \usecolortheme{whale} \setbeamercolor{frametitle}{fg=white,bg=blue} \usepackage{hyperref} \hypersetup{     colorlinks=true,     linkcolor=black,     urlcolor=blue,     citecolor=gray,     frenchlinks=false,     pdfborder={0 0 0} }  \begin{document}     \section{Test 1}     \subsection{Test 1.1}     \begin{frame}         \frametitle{Test}     \end{frame} \end{document}   And that's pretty normal because of this line :  linkcolor=black,


Generating random points uniformly on a disk

I have to randomly generate 1000 points over a unit disk such that are uniformly distributed on this disk. Now, for that, I select a radius $r$ and angular orientation $\alpha$ such that the radius $r$ is a uniformly distributed variate from $r \in [0,1]$ while $\alpha$ is a uniformly distributed variate from $\alpha \in [0, 2\pi]$ using the following code r <- runif(1000, min=0, max=1)  alpha <- runif(1000, min=0, max=2*pi) x <- r*cos(alpha) y <- r*sin(alpha) plot(x,y, pch=19, col=rgb(0,0,0,0.05), asp=1)  Then I look at my sample space and it looks like this:  This obviously doesn't look like a sample with uniform distribution over the disk. Hence, I guessed that the problem might be occurring as a result of a lack of independence between the variables $r$ and $\alpha$ in contingency to how they've been linked computationally. To take care of that I wrote a new code. rm(list=ls()) r <- runif(32, min=0, max=1) df_res <- data.frame(matrix(c(-Inf, Inf), byrow = T, nrow = 1)) for (i in 1:32) {   for (j in 1:32) {     alpha <- runif(32, min=0, max=2*pi)     r <- runif(32, min=0, max=1)     df <- data.frame(matrix(c(r[i],alpha[j]), byrow = T, nrow = 1))     df_res <- rbind(df_res,df)   } } df_res <- subset(df_res, df_res$X1 != -Inf) x<- df_res$X1 *cos(df_res$X2) y <- df_res$X1 *sin(df_res$X2) plot(x,y, pch=19, col=rgb(0,0,0,0.05), asp=1)  And, yet again the sample looks non-uniformly distributed over the disk  I'm starting to suspect that there is a deeper mathematical problem going on in the vicinity. Could someone help me write code that would create a sample space uniformly distributed over the disk, or explain the mathematical fallacy if any in my reasoning?


Can anyone Explain what exactly is the use of the Macro Expansion In C or C++ Program.  # define UPPER 3 main() { int i; for(i=0;i<UPPER;++i) cout<<i; }   The same thing could be achieved using constants and making there scope global, then why do we use it, are they used just to increase the readability of the program?


Geometric Description Of a Set In The Complex Plane

$$S_1=\left\{z:Im\left(\frac{z-z_1}{z-z_2}\right)=0, z_1,z_2 \in \Bbb C\right\}$$  $$S_2=\left\{z:Re\left(\frac{z-z_1}{z-z_2}\right)=0, z_1,z_2 \in \Bbb C\right\}$$  Can someone help me with the geometric description of the above two sets. I have no clue as to where I should start. Thank You!


How can I rename desktops in Mission Control?

The default new desktop space is named 'Desktop 1'. If you create a new one, it is named 'Desktop 2'. Is there a way to change those default names to something more meaningful?  Additionally, it looks like you can't rearrange spaces either and the 'automatically rearrange spaces based on most recent use' checkbox seems to do nothing.


Let $M$ be a noetherian $R$-module and $I=\mathrm{Ann}_R(M)$. Then $R/I$ is a noetherian ring.   I was trying to show that $R/I$ is a submodule of $M^n$ if $M=\langle f_1,...,f_n\rangle$. Now $M$ is an $R/I$-module too. Now how do we try?


How do I remove grayed out phone number in send/receive in message settings?

My service has been disconnected on my iphone6. I want to use it for imessage, how do I remove the old phone number that's grayed out in the send/receive in message settings?  Thanks


Why are error codes on websites shown as "404 Not Found"

Most error pages on websites display http status codes in messages. Eg - "404 Not Found"  Is that status code really helpful for a user?    A previous question asked . However, that question refers to a default error page for a web server. Here, I am asking about error pages that are designed by web a designer/developer in a production site.


How can I use a video as my desktop wallpaper? I would like to have it like normal wallpaper so the icons etc. sit on top of it, just as in a static wallpaper picture.  A similar question was asked at  but no answer was given that support icons, for example, it seems.


How to answer the question "Are you legally authorized to work in the country where the job is located?"

I am a recent graduate from India and currently working in an analytics company as interaction designer.   Few days back I was filling the job application form for interaction designer post in yahoo (Job located in Paris) and I have encounter a section where I have to mention that if I am legally authorized to work in the country where the job is located. I am really confused what to fill in the box.   First of all, I don't have any visa for any country and secondly I don't have any criminal record (as I presumed by the question) so what should I do.   I have heard that after getting the acceptance from the company it provides you an offer letter which can be used as a leverage to get the visa. Is that true or do I need to apply for the visa first?    So I am rephrasing my question again: Question: If the job is open for international applicants then can I apply for the job if currently I don't have any legal right to work in job location?  And If I can apply for the job then is it possible to get the legal rights to work in the job location?


How are values referenced in a "double assignment"

I was curious, so I tried this out:  var test = example = 5;   Now, this is a somewhat common way of defining things...  (for instance in node, module.exports = exports = ...)  The above be equivalent to:  example = 5; var test = example;   Now, if variables don't actually hold a value, but are rather references to values in the memory, when I change example, if test is referencing example which is referencing a value, shouldn't test also have that same value as example?  Lets try it:  var test = example = 5; example = 7;  console.log(test, example);   ... Now, the output isn't really what I expected, due to what I put above..  You get this:  5 7   But how is test still 5 if test is referencing example, and example is now 7?  Shouldn't they both be 7?    EDIT Tried using Objects instead...  But I get the same behavior:  var test = example = {"hello":"world", "foo":"bar"}; example = {"test":"example"}; console.log(test, example);   This outputs:  Object {hello: "world", foo: "bar"}  Object {test: "example"}   So, they're still not the same like I expected.


Statistics on what employers are actually searching for

Just thinking down the road to when Careers is accepting employer signups, I think it'd be a really great promotion and informational view to be able to see what types of tags and searches companies are doing.  For example, I think it'd be valuable during the signup process for prospective job-seekers to see:   65% of employers are searching for C# 22% of employers are searching for Java and Spring etc.   I think having some level of visibility into what employers are actually searching for (at an aggregate level) might help the job-seekers know what exactly it is that employers are currently looking for, and how they can better market themselves to those interests - although I suppose the argument could be made that the type of developer that SO Careers is targeting shouldn't need to do that sort of thing.  I just think it'd be great for paid users to be able to see some level of details as to how employers are using the system, so they can tell if they are getting any value for their registration cost.


Combinatorics question about choosing non consecutive integers

The problem is as follows:     How many ways are there to pick $6$ of the first $20$ positive integers such that no $2$ of them are consecutive?   At first glance, this seems like a fairly straightforward combinatorics problem, but after trying it (and failing) I decided it isn't as easy as it looks.   My method was to find the number of ways you can choose $6$ integers such that there does exist consecutive integers, then subtract that from the total number of possibilities (${20 \choose  6}$ )   The first thing I did was to take all the possibilities for pairs of consecutive integers (there are $19$ of them, starting $(1,2),(2,3),(3,4),\dots,(19,20)$). There are $\binom{18}{4}$ ways to pick the remaining $4$ integers, hence there are a total of   $$19\times \binom{18}{4}=58140$$ possibilites. However, this number is greater than the total number of possibilities (which is $38760$). What am I doing wrong?


What are the most important get-aways from a PhD

I have almost finished a master degree and want to continue to do my PhD in discrete Mathematics (Optimization/Operation Research) in Germany, but i don't want to stay in academica after that.  I would like to know, what are the main things you take with yourself, after doing a PhD except the title?  What does someone who spend 3 years after his master degree doing a PhD differentiate to someone who already started working in industry 3 years earlier in the same field ?  The reason i am asking is, because i want to know, what are the skills/qualities i should be focusing on developing, while i am doing my PhD.


UK online visa application: travelling "with" someone who doesn't have visa "yet"

I am filling in the UK online visa application on visa4uk.gov.uk. They ask if I am travelling "with" anyone. My plans have been made in conjunction with someone else, we arrive at the same time and leave at the same time and some of our tickets have both our names on them although our movements will differ some of the time, and we are doing separate interviews. I would like to give them every detail possible to as not to be accused of withholding information.   However there is this question about "does this person have a valid visa for the UK?". The answer is "not yet", he will not have a visa until his own application process is complete (just like me). However the options are "yes" and "no". So the correct answer is (currently) "no". Will this cause my own application hassles?


What is RDDS service and how to query the RDDS service

When I search whois data for some domains for example, liquid-solutions.biz, I get the following:  Registrant Email: Please query the RDDS service of the Registrar of Record identified in this output for information on how to contact the Registrant, Admin, or Tech contact of the queried domain name.   What does this mean and how to query RDDS service?


Nonprincipal prime ideals contain two relatively prime elements

Let $R$ be a principal ideal domain and let $P$ be a nonprincipal prime ideal of $R[x]$. I'm having trouble seeing why $P$ must contain two elements with no common divisor.    Can anyone help me? Thanks.


How does one make a straight grid from a UV unwrap?

I'm somewhat new to blender. How exactly does one stretch UV islands so that they form a perfect grid? I'm looking to scale/rotate islands from two points, sort of like unfolding a beach towel. I'd like to do this to more easily texture my model.  I've tried to illustrate an example below:    Thank you!


how can I remove folder name from url in php?

I have created index.php file and give header i.e  <?php  header('location:/cicareer/members');  ?>   url is:  careermate.in/cicareer/members   I want to remove  /cicareer/members   So, how could I do this using .htaccess file ?


How to change Ubuntu 18 loading screen background?

I want to change this loading screen background (the purple one), without changing the whole animation, just the purple background, without software, How can I do it ?    I have found the files under  /usr/share/plymouth/themes   and that I should save the file and run the following command.  sudo update-initramfs -u   But what are the needed lines to do add in the files ?


What is and causes the "eerie noise" sound effect?

While mining i saw "eerie noise" appear in the subtitles (new feature of 1.9 showing game sounds; i keep it on as i like my volume low). I am unable to recreate it, although not much time was put into it, and so i assume it is rare and possible for aesthetics.  What causes it? And does it signal anything?


Command-line utility to convert GPX into KML?

I use  to draw cycling routes. However, the Android application I use on my smartphone only supports KML.  As an alternative to GPSVisualizer, I tried the command-line utility GPSBabel, but, besides turning a compact 5K GPX into a much bigger 80K KML, the route is displayed as a long series of waypoints instead of a simple line:    Does someone know of an alternative command-line utility to GPSBabel?  Here's a sample from the source GPX file and the KML generated by GPSBabel:  GPX  <trk> <name>ACTIVE LOG</name> <trkseg> <trkpt lat="48.81569" lon="2.31610" /> <trkpt lat="48.81579" lon="2.31590" /> … <trkpt lat="48.75456" lon="2.18915" /> <trkpt lat="48.75510" lon="2.18814" /> </trkseg> </trk>   KML from GpsBabel  …     <LookAt>       <longitude>2.252120</longitude>       <latitude>48.785320</latitude>       <range>15131.199708</range>     </LookAt>           … … <![CDATA[

Distance 9.8 mi

]]> </description>         <Folder>           <name>Points</name>           <Placemark>             <name>ACTIVE LOG-0</name>             <snippet/>             <description><![CDATA[

Longitude: 2.316100

Latitude: 48.815690

Heading: 2.0

 …         <Placemark>           <name>Path</name>                      <LineString>             <tessellate>1</tessellate>             <coordinates> 2.316100,48.815690 2.315900,48.815790 … 2.189150,48.754560 2.188140,48.755100 </coordinates>           </LineString>         </Placemark>       </Folder>     </Folder>   </Document> </kml>