What causes multiple colored patches on a wet road?

I was going to school (after a rainy hour) when I saw some patches of shiny colours lying on road. Some small children surrounded that area and thought that it's a rainbow falling on the Earth. (For some 5-6 year old children it is a serious thing.)  I have a similar photo from Google:   It is definitely not a rainbow falling on the Earth but what is it? The road is a busy road and hence I think that's because of some pollutants, oil, or grease.


Is there a list of available events that can be used for Upstart?  For example start on local-filesystems so local-filesystems is an event but when is it triggered and what other events are there?


\renewcommand with exact same definition results in weird error

I'm using the dramatist package to typeset a drama script. Characters are created using the \GCharacter-command. I want to customize that command to have it execute \NewPerson for each new Character created.  To do so, I've looked up the installed dramatist.sty on my system and copied the definition of \GCharacter into my preamble like that:  \renewcommand\GCharacter[3]{     \stepcounter{g\Roman{character}}     \global\@namedef{#3}{{\namefont #2}\xspace}     \global\n@me@ppend@nddef{#3}{\@ppendname}{%         \if@drverse             {\speakstab\speaksfont #2\speaksdel\par\nobreak\addvspace{-\parskip}}         \else             \item[#2\speaksdel]         \fi}     \global\n@me@ppend@nddef{gpersona@\Roman{character}}{%         @\Roman{g\Roman{character}}}{\castfont #1} }   This is the exact definition from the dramatist.sty-file. However, LaTeX complains: ! You can't use \spacefactor in vertical mode. on the first line I use \GCharacter in. How could this be, as I've changed nothing in comparison to the original definition?  In the following MWE, the error occurs in line 19:  \documentclass[a4paper]{scrartcl} \usepackage{dramatist} \usepackage{lipsum}  \renewcommand\GCharacter[3]{     \stepcounter{g\Roman{character}}     \global\@namedef{#3}{{\namefont #2}\xspace}     \global\n@me@ppend@nddef{#3}{\@ppendname}{%         \if@drverse             {\speakstab\speaksfont #2\speaksdel\par\nobreak\addvspace{-\parskip}}         \else             \item[#2\speaksdel]         \fi}     \global\n@me@ppend@nddef{gpersona@\Roman{character}}{%         @\Roman{g\Roman{character}}}{\castfont #1}     %\NewPerson }  \begin{CharacterGroup}{TeX.SX} \GCharacter{A Character}{A Character}{character} \end{CharacterGroup}  \begin{document} \DramPer  \lipsum[1] % Compilation fails with only \DramPer in document \end{document}   Without the \renewcommand, everything works fine:   Any clues on how to fix that error?


Capacitor charging, work done by battery on changing polarity

A uncharged capacitor $C$ is connected to a battery with potential $V$. It becomes fully charged and has a charge $Q=CV$ stored on it.   Now the polarity of the battery is reversed. The capacitor will have the charge $Q$ still but with polarity reversed too.  My question is: What is the work done by the the battery?  According to me, during 1st charging it will do a work of $QV$. The energy of the capacitor is also not changing, then what is the work done to change its polarity?


Why this is true?$\exists x \in U, [P(x) \land Q(x)] \Leftrightarrow [(\exists x \in U, P(x)) \land (\exists x \in U, Q(x))]$

$$    [\exists x \in U, P(x) \land Q(x)]   \Leftrightarrow [(\exists x \in U, P(x)) \land (\exists x \in U, Q(x))] $$


Proof using mean value theorem iteratively

I was given the following problem:  Let $f:[0,1] \to \Bbb R $ be a differentiable function on $[0,1]$ such that $f(0)=0$, and $\forall x \in[0,1]$ : $\lvert f'(x)\rvert \le \lvert f(x)\rvert$. Prove that $f(x)=0$ $\forall x \in [0,1]$.  I tried to solve it using mean value theorem iteratively, and got to a point where I have a series that holds $f(x_1) \ge f(x_2)  \ge f(x_3) \ge  \dots $ pretty much stuck from here, is it a good start? any advice on how to move on / solve it differently? Thanks


Can you have a multicolumn listview control where one of the columns is a checkbox?  Example code or links would be greatly appreciated.  I am using visual studio 2005


Can sets of cardinality $\aleph_1$ have nonzero measure?

$\aleph_1$ is the cardinality of the countable ordinals. It is the least cardinal number greater than $\aleph_0$, and assuming the continuum hypothesis it's equal to $\mathfrak{c}$, the cardinality of the the real numbers.    My question is, is it possible for all $\aleph_1$ subsets of $\Bbb{R}$ to have Lebesgue measure $0$?  This is, of course, impossible assuming the continuum hypothesis, because then all sets of real numbers would have measure $0$, which is absurd.  But is $\mathsf{ZFC}$ + $\lnot\mathsf{CH}$ + "all subset of $\Bbb{R}$ of cardinality $\aleph_1$ have Lebesgue measure $0$" consistent?  If not, what if we replaced Lebesgue measure with some other measure?  It may be worth noting that, although there may be subsets of $\Bbb{R}$ with cardinality $\aleph_1$, there are no subsets of $\Bbb{R}$ which have the order-type $\omega_1$ (the order-type of the countable ordinals) under the usual ordering on $\Bbb{R}$.  Any help would be greatly appreciated.  Thank you in Advance.


What would be a proper way to check/uncheck checkbox that's placed inside the element that triggers my function?  Here's my code:

     <input type="checkbox" name="news[1]" />	     TEXT

  $("#news_list tr").click(function() {     var ele = $(this).find('input');     if(ele.is(':checked')){         ele.removeAttr('checked');         $(this).removeClass('admin_checked');     }else{         ele.attr('checked', 'checked');         $(this).addClass('admin_checked');     } });   The problem is I can check and uncheck each box only once. After I've checked and unchecked sometimes it still does add/remove class, but never checking a box again (even when I click on checkbox, not table row).  I've tried using .bind('click') trigger, but it's the same result.  Any solutions?


So, I was doing some Family History at my local Family History Center when I came across newspaper articles on NewspaperArchive.com concerning some events that happened to ancestors I was researching. One of them was concerning the murder trial of which one of my ancestors was the victim, and the other a short paragraph about how another ancestor was arrested for seduction.  To ask, is it acceptable to even think about putting a screenshot or a transcription of the article to their respective ancestors without violating copyright? If so, are those stories OK for FamilySearch? I know that there are certain limitations that are there that keep the high quality of memories in FamilySearch.


show this function have this $2f(\sqrt{xy})=f(x)+f(y),\forall x,y>0$

Let $f:R^{+}\to R$ and such foy any $x,y>0$ have $$f(\frac{x+y}{2})+f(\frac{2xy}{x+y})=f(x)+f(y)$$ show that $$2f(\sqrt{xy})=f(x)+f(y),\forall x,y>0$$  I find this result surprising because the arithmetic mean, the geometric mean, the harmonic mean all appear in this function,But I can't prove it,Thanks


What is the 15-pin black port that old sound cards have? Here is an example


I am trying to replace a word in a text file with the current username. I am trying to do this with "sed" using $USER, but it keeps actually writing "$USER" in the text file instead of my username.  sed -i 's/test/$USER/g' ~/.gtkrc-2.0   Can anyone help? Thank you in advance.


Ubuntu 13.04 alongside Windows 8 - How to partition from Windows

I plan to install Ubuntu 13.04 alongside Windows 8, and I'm looking for a CLEAR answer on how to conduct partitioning appropriately.    I'm very new to all of this so a thorough explanation with minimal jargon would be great.  I have an Acer Aspire M5 x64 with 6G RAM.  I think I already figured out how to deal with the fast startup, UEFI and SecureBoot issues (I disabled fast startup and disabled Secure Boot).  I am able to boot into Ubuntu from a LiveUSB, and I think I am ready to install Ubuntu. Note - despite some advice found here, I do have to disable SecureBoot to boot 13.04 from my LiveUSB.  From what I have read here, it seems that I should (at least at first) create the partitions from WITHIN Windows 8, not from the LiveUSB, to avoid reported problems.  I have run compmgmt.msc and I see the existing partitions.  I see the following:  Disk 0:  400 MB Recovery; 300 MB EFI System; Acer (C:) 444.95 GB (Boot, Page File, Crash Dump, Primary Partition); 20 GB Recovery  Disk 1:  3.74 GB Primary Partition; 14.90 GB Primary Partition  I gather I need to create a mounting point '/' Partition (??), a swap partition, and a home partition.   Please explain what these are, how big they should be, how I create them from Windows Disk Management, and anything else I need to know.    Eventually, I plan to fully replace Windows 8 with Ubuntu, but for now I want to run alongside Windows 8 and not screw things up.  I don't have any critical files saved on this computer yet.  Thanks.


Proving that a complex number lies on the imaginary axis.

Given that there are two complex numbers - $z, w$ - such that $w\overline{w} = 1$ and $z = \frac{1+w}{1-w}$, how do I deduce that $z$ lies on the imaginary axis?


How to remove the text "LaTeX tutorial/STA9700 Project/fig1.jpg" above the figure:    my code:  \usepackage{graphicx} \usepackage{float}  ......  \begin{figure}[H]     \centering     \includegraphics[height=3in]{E:/Dropbox/learning Latex/LaTeX tutorial/STA9700 Project/fig1.jpg}     \caption[Optional caption]{CHN vs. US in 2008 Olympics}     \label{fig: Cover Picture} \end{figure}


Put a comma in a number larger than 999 in visualforce?

I have this visualforce tag   {!IF(relatedTo.Total_Professional_Services_Before_Disc__c=0, "--", "$" + TEXT(ROUND(relatedTo.Total_Professional_Services_Before_Disc__c,0)))}	    and the idea is that if it is 0, it will output '--' else the number in US currency format. It works fine but let's say the number is 9999, it will output  $9999   Is there a simple way to make it output  $9,999   without creating a controller as this is just in a simple visualforce email template?  Edit: Thank you to those that answered. Final solution came out to be     <apex:outputText value="${0, number, ###,##0}" rendered="{!IF(relatedTo.Total_Professional_Services_Before_Disc__c=0, false, true)}">     <apex:param value="{!relatedTo.Total_Professional_Services_Before_Disc__c}"/>   </apex:outputText>   <apex:outputText rendered="{!IF(relatedTo.Total_Professional_Services_Before_Disc__c=0, true, false)}">--</apex:outputText> 	   It isn't pretty and I can't say I'm excited to replace 28 tags in a table like this, but it works


How to disable Hyper-V in Windows forever?

I am using Oracle VirtualBox oftet, which conflicts with Hyper-V feature of Windows, which I don't use. So, I am turning Hyper-V off.  Nevertheless, from time to time, probably during major upgrades, Windows set it back on again.  How to prohibit this setting forever? May be delete some files or lock subdirectories? Any solution for robot disobey 1st law of robotics appreciated.  UPDATE  The question was not how to disable Hyper-V as in "duplicated" ones. The question was how to disable it FOREVER.  For example, this method    provides only temporary disabling, which will restore on next windows update.


An array is defined to be maxmin equal if it contains at least two different elements and the number of times the maximum value occur is the same as the number of times the minimum value occur. So {11, 4, 9, 11, 8, 5 , 4, 10} is maxmin equal, because the max value 11 and min value 4 both appear two times in the array.   if the input array is {} , isMaxMinEqual should return false (array must have at least two different elements) status = false; if the input array is {2}, isMaxMinEqual should return false (array must have at least two different elements). if the input array is {1,1,1,1,1,1}, isMaxMinEqual should return false (array must have at least two different elements).  if the input array is {2,4,6,8,11}, isMaxMinEqual should return true (Both max value(11) and min value 2 appear exactly one time). if the input array is {-2,-4,-6,-8,-11}, isMaxMinEqual should return true(Both max value(-2) and min value -11 appear exaclty one time).   I wrote the class MaxMin which satisfied the above condition.  public class MaxMin {  public static void main(String args[]) {     System.out.println("The result is: " + isMaxMinEqual(new int[]{2, 2})); }  public static boolean isMaxMinEqual(int[] a) {     boolean status = false;     int count = 0;     if (a.length < 2) {         status = false;         return status;     }     for (int i = 1; i < a.length; i++) {         if (a[i - 1] != a[i]) {             count++;         }     }      int max = a[0];     int min = a[0];     for (int i = 0; i < a.length; i++) {         if (a[i] > max) {             max = a[i];         } else if (a[i] < min) {             min = a[i];         }     }      int maxCount = 0;     for (int j = 0; j < a.length; j++) {         if (a[j] == max) {             maxCount++;         }     }      int minCount = 0;     for (int j = 0; j < a.length; j++) {         if (a[j] == min) {             minCount++;         }     }     System.out.println(count);     System.out.println("max is: " + max);     System.out.println("min is: " + min);     System.out.println("Max Count is: " + maxCount);     System.out.println("Min Count is: " + minCount);      if (maxCount == minCount && count >= 1) {         status = true;     }      return status; } }


How can I get a very wide table to wrap all three rows within the margins?

I have a series of tables that are going to be very (very!) wide, but with only 3 rows. Is there any way I can get the tables to wrap within my margins, without having to break the rows within the .tex file itself?


I'm told to show that $2^n < n!$ using induction  This is my attempt at it:  BC: $n=4, 2^4 = 16 < 4!$  IH: n = k, $2^k < k!$  IS: try n = k+1  I'm told to only work from one side, so I try the left side:  2^(k+1)   But I'm stuck here, any ideas?


punctuation when abbreviation at the end

It's about using the right punctuation when abbreviation is used at the end of sentence. It has been asked here when the sentence is a question: .  What about sentences like the following:  The opinions of this articles are those of the author(s), and do not necessarily reflect the views of Google Inc..   Two dots or one dot?


Get rows with most recent date for each different item

Let's say  this is the sample date coming from a join of 2 tables. Database is Postgres 9.6  id  product_id  invoice_id  amount       date 1    PROD1       INV01       2          01-01-2018 2    PROD2       INV02       3          01-01-2018 3    PROD1       INV01       2          05-01-2018 4    PROD1       INV03       1          05-01-2018 5    PROD2       INV02       3          08-01-2018 6    PROD2       INV04       4          08-01-2018   I want to know if it's possible in a optimized way to:   Get all the PRODx with their respective INVx which have the latest date, but per product_id. Please note that records unused from a day may be reported to a new one. This means:    id  product_id  invoice_id  amount       date 3    PROD1       INV01       2          05-01-2018 4    PROD1       INV03       1          05-01-2018 5    PROD2       INV02       3          08-01-2018 6    PROD2       INV04       4          08-01-2018     Get daily summed amounts for each PRODx but fill the gaps with the previous ones if day does not exist.   This means:   product_id    amount       date    PROD1         2          01-01-2018    PROD2         3          01-01-2018    PROD1         2          02-01-2018    PROD2         3          02-01-2018    PROD1         2          03-01-2018    PROD2         3          03-01-2018    PROD1         2          04-01-2018    PROD2         3          04-01-2018    PROD1         3          05-01-2018    PROD2         3          05-01-2018    PROD1         3          06-01-2018    PROD2         3          06-01-2018    PROD1         3          07-01-2018    PROD2         3          07-01-2018    PROD1         3          08-01-2018    PROD2         7          08-01-2018   A few thoughts:   For first question I could obtain the max(date) for each PRODx and the pick for each PRODx the rows that have the date=with max(date) but I was wondering if there's faster way to obtain this given a large number of recors in the database For the second question, I could generate a series of dates for the interval needed and then use WITH rows As and do the query grouping by product_id and sum by amount and then select for each date the previous values from rows with a limit 1 but that does not sound that optimized either.   Looking forward for any input. Thank you.  Later edit: Trying to give DISTINCT ON () a try.   If I have distinct on(product_id, invoice_id) then I don't get only the most recent ones for the most recent date. If there were invoice_ids in the the past, beside the latest date, then they will be returned If I have distinct on (product_id) then it returns from the most recent date, but as normal, only the last rows even if in the last day I have two positions for PROD1.    Basically I need something like 'I need for the most recent date, all the product_ids and their invoice_ids while keeping in mind that a product_id can have multiple invoice_ids'  Later edit 2:  Running a query like for first question seems to be reasonably fast:  select product_id, invoice_id, amount from mytable inner join myOtherTable on...              inner join (select max(date) as last_date, product_id                           from mytable                           group by product_id) sub on mytable.date =                           sub.last_date


To delete directories you need to use the command rmdir instead of rm. I learned that unix sees everything as a file. So what is the reason that rm can't delete any type of file?


UserName and Password in Request body of apex callout using Named Credentials

I am able to make an apex callout by passing the username and password in the request body.  String endpoint='https://xyz...com/'; String userID='xyz'; String password='pass'; String jsonBody ='userID=' + userID + '&password=' + password; HTTP auth = new HTTP(); HTTPRequest r = new HTTPRequest(); r.setClientCertificateName('certificate_Name'); r.setEndpoint(endpoint); r.setMethod('POST');    r.setBody(jsonBody); r.setHeader('Content-Type','application/x-www-form-urlencoded'); HTTPResponse authresp=new HttpResponse(); authresp = auth.send(r);  system.debug(authresp);   I have a requirement to use the above same approach of passing the credential in request body but I have to do it using Named Credentials.  I did go through the link -  to learn that -      The Salesforce admin must set up the named credential to allow Apex   code to construct headers or use merge fields in HTTP headers or   bodies.   I am trying some approach to include the named credentials in the above code but I am do not get a success result so far. Below is what I tried:  Named Credential:    Code using Named Credential:      HTTP auth = new HTTP();     HTTPRequest r = new HTTPRequest();     r.setEndpoint('callout:Named_CREDENTIAL');     String jsonBody ='userID=' + '{!$Credential.Username}' + '&password=' + '{!$Credential.Password}'; r.setBody(jsonBody);     r.setMethod('POST');        r.setHeader('Content-Type','application/x-www-form-urlencoded');     HTTPResponse authresp=new HttpResponse();     authresp = auth.send(r);      system.debug(authresp);   Response I got - System.HttpResponse[Status=Forbidden, StatusCode=403]


Rationality of a power with irrational exponent

The following fact is known:  If $a$ and $b$ are both irrational numbers, then $a^b$ can be a rational number.  Proof. Suppose $a^b$ is always irrational. Then $\sqrt{2}^\sqrt{2}$ is an irrational number, which in turn implies that  $\left(\sqrt{2}^\sqrt{2}\right)^\sqrt{2}$ must also be irrational. However: $$ \left(\sqrt{2}^\sqrt{2}\right)^\sqrt{2} = \sqrt{2}^{\sqrt{2}\times\sqrt{2}} = 2 $$    Now assume $a$ is a rational number and $b$ is irrational. I wonder if  $a^b$ can be a rational number. Any way to prove, or a reference maybe?


My isp provides a dns service; but unfortunately they do block certain sites. I would like to use opendns or google; but it seems like it doesn't work.    I have set up a wired connection; given a manual ip and entered opendns-ip's in the nameserver field (all through the gui). Still url's are being resolved through my ISP. I have tried to configure the same on my girlfriends laptop (win 7) and I also can't seem to do the setup. My previous computer also was a win 7 and had no problem. (so I believe the problem is 'me') If it were only one site, i could edit the hosts file; but I prefere to circumvent their whole dns server.  Is there something an isp can do to block the use of other dns-servers than theirs? Is it possible to re-route the ISP dns to the opendns?


what is the equation of longitude and latitude distance between 2 cities

I want the equation that compute the distance between longitude and latitude of one city and longitude and latitude of another city in c++, oop


let q be an odd prime and p a prime dividing $1+n+\dots+n^{q-1}$. Prove that $p = 1 \mod q$ or $p = q$.  I don't actually know how to start, i thought of using fermat's little theorem or an application of eulers formula, but it didn't really give me any insights.   Any hints?


Is there a way to create an object by using a variable that stores the type?

here is what im trying to do,  someClass object = new someClass(); Type a=object.GetType(); a someOtherObject =new a();   but the variable a can't be used in place of someClass even though i saved it as a type. I was wondering if there is an alternative method of doing something like this.  As for the why, i want to make a method that takes in a list of monster in my game and it picks a random one, creates a new object out of the one it has chosen and adds it to a seperate list.


Single word for floating dust visible in sunlight

Is there a single word used in English for the visibility of dust particles floating in a stream of sunlight?     shutterstock.com


Max Files for a Directory in Linux File System, Best Performance

how many files in a diretory will be decrease server performance? I have a website that contain hundreds thousand of images ( >a million in separated directory). I wonder if it will effect the performance.  server detail: centos, apache, php 5


For which $p$ does the series $\sum_{n=2}^{\infty} \frac{1}{(\log 1)^p+(\log 2)^p+\cdots +(\log n)^p}$ converge?

Suppose $\displaystyle a_n=\frac{1}{(\text{log}2)^p+(\text{log3})^p+...+(\text{log}n)^p}$ for $n\geq 2$ and $p>0$. For which values of $p$ does $\sum_{n=2}^\infty a_n$ converge?  So, when $p\leq 1$, $\displaystyle a_n\geq \frac{1}{(n-1)(\text{log}n)^p}$ for $n\geq 2$. Let $\displaystyle b_n=\frac{1}{(n-1)(\text{log}n)^p}$. Then $\sum b_n$ diverges since $p\leq 1$. Therefore by comparison test $\sum a_n$ diverges when $p\leq 1$.  When $p>1$, $\displaystyle a_n\leq \frac{1}{(\text{log}n)^p}$. Let $\displaystyle c_n= \frac{1}{(\text{log}n)^p}$. If $\sum c_n$ converges then I will win. But now I am stuck. Is $\sum c_n$ converges? Then how can I prove it? If not how can I conclude the state of convergence of $\sum a_n$ for $p>1$?   Can anybody please help?


Does existence of continous bijections imply homeomorphism?

Let $X$, $Y$ be topological spaces and assume there exists a continous bijection $X\to Y$ and there exists a continous bijection $Y\to X$. Are $X$ and $Y$ homeomorphic?


jquery selector i cant select new element add on the fly but work with existed element

Can someone tell me why this code is not hiding elements dynamically added to the html document:  $("p , h1 , h2").mousedown(function(){     $(this).hide(); });   This selection works only with the existing element in the html page, but doesn't work with what I add with after method on the fly. It seems that any new p element or h1 element that get added in the fly doesn't get any recognition from this selector.


My neighbor had company in the US from Colombia. They incurred hospital bills that they never paid. My neighbor is wondering if the US can deny his family's visitor visas the next time they visit?


I created a timeline view and it works fine, still, I need to add translatable nodes, I added another display and replace it in the page that I want, my problem is when I change the page to the other language, it's showing me all the nodes that I made in content types that related with the timeline. How can I add only the translatable nodes to the other view display? is there another way to add these nodes? appreciate any help with this issue.


Prove that for all $\alpha\in\textbf{On}$ the set $V_{\alpha}$ is transitive

Im  a little stuck here. I'm thinking of doing induction on the ordinals $\textbf{On}$, but I can't make it work.  Can someone help me?


I'm not able to get refreshApex() working in an lwc. . Here are the key elements of the js file:  import { LightningElement, track, api, wire } from 'lwc'; import getBlasts from '@salesforce/apex/Blast.getBlasts'; import { refreshApex } from '@salesforce/apex';  export default class BlastWaveTree extends LightningElement {     @api recordId;     @track blastData;     @track error;     @wire(getBlasts, { CampaignId: '$recordId' })         wireBlastData({             error,             data         }) {             if (data) {                 let tempjson = JSON.parse(JSON.stringify(data).split('waves').join('_children'));                 this.blastData = tempjson;          } else {                 this.error = error;         }     }      @api     refresh() {         return refreshApex(this.blastData);      }   My code varies from the doc examples for 2 reasons:    The example code doesn't separate out the Apex response into error and data, the pattern I've been following as shown elsewhere. This data is going into a lightning-tree-grid so I have to process it a bit before assigning it to blastData.   I've tried return refreshApex(this.wireBlastData) as well, and that doesn't work.  Ultimately, I want to call the refresh function from the parent component (hence, the @api), but I've simplified it (till I get it working) by calling the refresh function from a button on this same component. I added a console.log line in the refresh() function so I know the button is calling the function. It just doesn't refresh. I'm also watching the apex logs as I push the refresh button, and there's no apex activity.  Here's the template:  <template> <lightning-card title="Blasts" icon-name="custom:custom3">
         <lightning-button-group >             <lightning-button-icon icon-name="utility:refresh"  alternative-text="Refresh" onclick={refresh}></lightning-button-icon>             <lightning-button label={buttonLabel} onclick={toggleWaves}></lightning-button>              <lightning-button label="New Blast" onclick={onNewBlast} variant="Brand"> </lightning-button>         </lightning-button-group>

         <lightning-tree-grid              data={blastData}              columns={columns}              key-field="id"              hide-checkbox-column="true"              onrowaction={handleRowAction} >         </lightning-tree-grid>
 </lightning-card>     What am I missing?  Here's the error detail from the browser dev tools:      lds.js:2 Uncaught (in promise) Error: Refresh failed because resolved configuration is not available.     at Object.e.refresh [as refreshApex] (lds.js:2)     at l.refresh (blastWaveTree.js:4)     at callHook (aura_prod.js:24)     at sa (aura_prod.js:2)     at aura_prod.js:2     at _ (aura_prod.js:2)     at HTMLElement.e (aura_prod.js:2)     at l (aura_prod.js:2)     at Un.call.a (aura_prod.js:2)     at Array.forEach (<anonymous>) e.refresh   @   lds.js:2 refresh @   blastWaveTree.js:4 callHook    @   aura_prod.js:24 sa  @   aura_prod.js:2 (anonymous) @   aura_prod.js:2 _   @   aura_prod.js:2 e   @   aura_prod.js:2 l   @   aura_prod.js:2 Un.call.a   @   aura_prod.js:2 t   @   aura_prod.js:2 Lt  @   aura_prod.js:2 t.$$lwcEventWrapper$$   @   aura_prod.js:2


I can't defeat Chapter 7 Archimonde's Ascent no matter what I try and I'm not playing on difficult.I read one guys post about putting ballistae in the trees of the human base, but sure can't figure out where he's talking about? I'm playing on slow too. I had no problem going through the entire campaign until this last mission. Any and all help would be appreciated. Thanks in advance


java if statement doesn't work inside if(item instanceof nomclass)

I have just wrote an actionPerformed for my save button, that will save data into arraylists, but before that I must be sure that all fields are not empty so if a textfield is empty I want to show a dialogbox and put all empty textfield in red background color  here is my code  //Field outside constructor private List<Component> comp;      //inside constructor comp = getAllComponents(this); //method public static List<Component> getAllComponents(final Container c) {     Component[] comps = c.getComponents();     List<Component> compList = new ArrayList<Component>();     for (Component comp : comps) {         compList.add(comp);         if (comp instanceof Container)             compList.addAll(getAllComponents((Container) comp));     }     return compList; }   ``  //actionperformed if(e.getSource() == savebtn){         for(Component item:comp){             if(item.isVisible()){                 if(item instanceof JTextField){                     JTextField txtField = (JTextField)item; //here is my problem: with no if statement my program works fine and puts all textfields in red but I want to highlight just empty textfields;                     if(txtField.getText() == null)                     txtField.setBackground(Color.RED);                 }             }         }       }   so how can I solve this problem? thank you very much


Does a Ukrainian citizen need a transit visa for Paris while traveling from Ukraine to the Dominican Republic and changing planes at CDG?


Geo- referencing Projected coordinated raster with GCS - ArcGIS

I have raster displaying Lat/ Long grid, but map information shows that, it s been mapped in Gauss Krugger projetion/ Beijing 1954. So, technically we need to geo reference the map in Gauss Krugger/ Beigjing 1954 Projectec Coordinated System in ArcGIS.   So, basically what I need to do is, georeference raster by input of Lat/Long, but need to update the georeferencing by projected coordinated system mentioned above.  In Global mapper, we can load the raster and enter Lat/Long available in the map, straight away it will be recalculated to Projected coordinated system.   Can we get anything same in ArcGIS?


Allow moderators to edit/delete comments directly from the per-user comment moderation page

A while back, a new dashboard was added to the user moderation tools to .  It's great for scouring a user's comment history to find certain comments, but I can't do anything from this dashboard except filter by flagged1, deleted, or active comments, and visit the posts to which the comments are attached where I can then edit or delete them.  Can we have the ability to edit and delete comments from this dashboard just as we're able to from the flag queue? It gets particularly tedious to have to open 100 tabs just to delete 100 spam comments from the posts they're attached to (and no, I'm not making that number up2...).    1 .  2 Alright, fine, I made that up; the actual number of spam comments I had to delete was 111.


Can the Higgs particle escape a black hole?

The higgs particle or field is what gives mass to everything. It's said that nothing can escape a black hole. If that is true how can the black hole "tell" its mass as even the higgs would not be able to escape? If higgs particles are able to escape, will eventually all matter be converted to higgs particles -- it's the only way out of the black hole?


so basically i dont know whats going on with my mac. please look at the images bellow.   there are several problems with this picture. first, adding up storage volume of my drives is 104gig and 121 - 104 = 17gig . but at the top it says 11gig free. second , in my Documents it says 17gig usage but when u add the contents of folders and files in documents it is hardly 10gig .third, why my system drive takes 77gig space?? . how can i get a better look at my usage with good details. i m so confused.


Google Chrome unity icon does not restore after minimizing

After minimizing the Google Chrome window, clicking on the chrome icon in the unity sidebar doesn't restore the window. Additionally, the the icon seems to behave more like a launcher: no white indicators showing whether a window is open or not, and clicking on the icon just opens another instance of chrome. No other icon does this.  Can anyone help me here?


In The Hobbit by JRR Tolkien, Rivendell, a city of elves, is ruled by Elrond. The party of adventurers are waylaid there until Midsummers Eve, but I noticed a small passage about Elrond.     The master of the house was an elf-friend - one of those people whose fathers came into the strange stories before the beginning of History, the wars of the evil goblins and the elves and the first men in the North. In those days of our tale there were still some people who had both elves and heroes of the North for ancestors, and Elrond the master of the house was their chief.   I know Elrond was sometimes called the 'half-elven'(as was pointed out in , and normally that would be that, but he appears fully elvish. For example, he appears to have an incredibly long life, as is evidenced by the above passage, and he noted his inability to act as the Elvish emissary in the Fellowship, because of his age and inability to leave, rather than because he was not fully Elvish. So, is he fully Elvish?


Need Help fixing NullPointerException error in my code

im a biginner in java ,im trying to create a rubber band dynamic graph but when i ran my program it came back with these errors  : Exception in thread "main" java.lang.NullPointerException   at Node.add_neighbour(Node.java:58)   at Graph.add(Graph.java:32)    public class Node {      private static final double FRICTION = -0.8;     Vector position;     Vector velocity;     Set<Node> Neighbours;     boolean Mobile, Rigid;      public Node(Vector vector) {         Vector vector1 = new Vector(0, 0);         this.Rigid = false;         this.Mobile = true;         Set<Node> myNodes = new HashSet<>();     }      public void add_neighbour(Node node) {         Neighbours.add(node); //**the 1st error is indicated in this line**     } }   2nd error:  import java.util.HashSet; import java.util.Set;  public class Graph {      Set<Node> nodes = new HashSet<>();      public Set<Node> getNodes() {         return nodes;     }      public void add(Node node) {         nodes.add(node);     }      public void add(Node node1, Node node2) {         node1.add_neighbour(node2);//2nd***         node2.add_neighbour(node1);//2nd****     } }


Why can't I create edge loops inside of my mesh

The edge loops do not go on the inside of the cube wall. I made the wall from a cube following a floor plan. I tried using the knife tool but the edges it generated were not able to be selected. What is a solution to this. The walls all have 4 vertices and are not n-gons. Thanks Blend File:


javascript: How can I have a string that has code in it that I don't want to be executed?

I am building a website that teaches people how to code a website. I am trying to add a feature where they code the exercise into a text box and I then compare that to a string to see if they got it right or not yet. I am running into an issue though when there is quotes inside the strings answer because that then ends the string thus cutting off some of the answer. How can I get around this?  All feedback is greatly appreciated!  Here is an example of a strings answer that screws it up:  var answer = "var greeting="Hello World!"; ";   The second pair of quotes end the string's declaration early. Is there a way to include all of it including the second pair of quotes in the declaration?


I am entering 1044372000263084 into a cell in Excel 2013. When I hit enter the cell is changing to 1.04437E + 15 . The bar above the table shows 104437200063080.   Why is it changing and how can I make it stop?


Grammar rules for "I would rather be a lonely man than to play"

I searched all over the internet and always found contradicting answers concerning the following topic.  In this sentence:     I would rather be alone than to go out tonight.   if I apply grammar rules it would have to be "than go out tonight",  but I found a lot of people who saw nothing wrong with the first version. I want to be sure about it and get a correct answer!


What is the best way to edit default article layout in communities?


How can I set the Titlebar Buttons to the left for Firefox in full screen? tab

In Ubuntu 18.04 I set system wide Titlebar Buttons placement to the left using Tweaks:   The image shows Close, Minimize, Maximize buttons on the left.  This is working for every application window. In Firefox when I display the window in full screen (F11) the Titlebar Buttons placement is totally wrong.   The image shows Minimize, Maximize, Close buttons on the right.  This is very confusing. How can I set the Titlebar Buttons to the left for Firefox in full screen?  I am using Firefox 71.0 (64-bit) in Ubuntu 18.04.


Explain Root Mean Square Error to non-technical audience

My company is in the process of switching equipment from one vendor to another. We measured several metrics from the existing and new equipment and compared the time series. The ideal is to have no difference between the old and new equipment. For that, we use Root Mean Square Error (RMSE) to measure the difference.  We are to present the findings to upper management and employees at the plant, many of whom have no background in statistics. How should I explain the concept of RMSE to those audiences? If series X and Y have an RMSE of 5, how should I explain that 5 in layman's terms?


Attribute editing in QGIS on geoJson file

We have vector files in the format of geoJson files. We need to keep it in geoJson format as it is picked up by mobile devices via Restful services.  The problem is we want to change the attributes of the features in QGIS but it seems like this is not possible. We don't have to add or remove columns. We simply need to edit the existing data.  Is there a work around for this?  Are there any plugins that I can download that will allow me to do this in QGIS?


I've been searching for days. When I export and create my fat jar it loads and disappears. It can't find my images.    This is what it all looks like. I used something like this to load them:  File a; a = new File("res/theimage.png");     wood = TextureLoader.getTexture("PNG", new FileInputStream(a));   This works just fine in eclipse but the jar can't find the image. I tried putting the first jar with the fat jar in a folder. It still didn't work so I put all project files in there too. Somehow it couldn't find it still. How do you get your res to be in your lwjgl game. I mainly just want to have a jar file that you click and start easily instead of a zip folder with all the files. I don't know how to do any of this. My game without images works just fine. I rather a visual way of doing this.  Can Images be draw without being textures in LWJGL?


Error in downloading Wine in Ubuntu 18.04

I have installed Ubuntu 18.04 and I want to install software with .exe but I read that I must download Wine so, when I try to follow the instruction of downloading wine it show me this error   "E: Malformed entry 1 in list file /etc/apt/sources.list.d/wine-obs.list (Suite) "   when I run this commend      sudo add-apt-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main'    So what I can do?


i had these weird noise on my render i had changed render settings even every object material, and it's not solved  Maybe anyone can help?


How long can I store soaked beans before cooking?

I've soaked some beans in room temperature water overnight, since 6pm (white navy beans).    How long can I keep them in water before I must use them?   Will they last a day or so at room temperature and in water, or should I drain and store in the fridge, or must I cook with them immediately?


UnboundLocalError on local variable when reassigned after first use

The following code works as expected in both Python 2.5 and 3.0:  a, b, c = (1, 2, 3)  print(a, b, c)  def test():     print(a)     print(b)     print(c)    # (A)     #c+=1       # (B) test()   However, when I uncomment line (B), I get an UnboundLocalError: 'c' not assigned at line (A). The values of a and b are printed correctly. This has me completely baffled for two reasons:   Why is there a runtime error thrown at line (A) because of a later statement on line (B)? Why are variables a and b printed as expected, while c raises an error?   The only explanation I can come up with is that a local variable c is created by the assignment c+=1, which takes precedent over the "global" variable c even before the local variable is created. Of course, it doesn't make sense for a variable to "steal" scope before it exists.  Could someone please explain this behavior?


Take a digit of a string as an integer in C++

I want to add the first digit of a string 111 to the integer x = 0 so that it equals  x = 0 + 1 = 1  The following code takes the character 1 instead of the integer 1:  int x = 0; string str = "111"; x += str[1];   std::stoi did not work either:  x += std::stoi(str[1]);


Lets look at the pythagoras $a^2+b^2=c^2$ for the integers $a,b,c$. Proof that one of components $a,b,c$ is always divisible by 3. How do i prove that?


For analytic function that is not univalent in a disk $|z|<R$, there exist $z_1$ and $z_2$ such that $|z_1| = |z_2| < R$, and $f(z_1) = f(z_2)$

Univalent means not invective. My only thought on this is maybe to use reflection principle? Can someone drop me some hints?


I am in a need to have my own web server as I use to have few websites to be tested on monthly basis.  I plan to get some cheap P4 laptop which will do that task and am planning to install Ubuntu on it for PHP, MySQL.  Can you suggest some configurations I must have including Processor, RAM, Hard Drive and etc.


repair windows boot loader after cloning to SSD

I bought my PC with Windows 10 on it, later installing Ubuntu for dual-booting. Recently, I wanted to replace the HDD inside with an SSD of the same size, so I copied all the partitions to the SSD (GPT partitioning) using GParted and installed the SSD in the laptop. On startup, GRUB is loaded and I can:  Boot Ubuntu normally Select the "Windows Boot Manager on /boot/sda1 or select bootmgfw.efi manually, however it loads a Recovery BSOD, stating the following with options to access the recovery environment (F1) or boot parameters (F8) but those don't work (same screen): File: \WINDOWS\system32\winload.efi is missing or broken Error code: 0xc000000e    As I understand it, Windows Boot Manager is loaded but cannot find the Windows boot loader (probably because not looking into the right partition), so what I need to do is give the right partition to the boot loader, but I have no idea how to do that. How do I fix this, preferably something that can be done from Linux and doesn't involve a reinstall of Windows?


How to fix device null and nullpointer on the BluetoothSocket

I'm starting with Java and I'm trying to create one android bluetooth chat app but now Im facing this NullPointerException and seems like the null device is the problem but I still can't figure out how solve this. It was working all good until the bluetooth discovery and connection, then I started looking for chats tutorials and examples and made this one.  java.lang.NullPointerException: Attempt to invoke virtual method 'android.bluetooth.BluetoothSocket android.bluetooth.BluetoothDevice.createRfcommSocketToServiceRecord(java.util.UUID)' on a null object reference         at com.example.gabriel.eden.MainActivity$ConnectThread.run   @Override protected void onStart(){     super.onStart();     getPairedDevices();     buttonSearch.setOnClickListener(clicked);     newDevices.setOnItemClickListener(listItemClicked); }  private void getPairedDevices(){     Set<BluetoothDevice> pairedDevice = mBTAdapter.getBondedDevices();     if(pairedDevice.size() > 0 ){         for (BluetoothDevice device : pairedDevice){             arrayListPaired.add(device.getName() + "\n" + device.getAddress());             arrayListPairedBluetoothDevices.add(device);              ConnectThread connect = new ConnectThread(mBTDevice,MY_UUID);             connect.start();          }     } }   private class ConnectThread{      public ConnectThread(BluetoothDevice device, UUID uuid){         Log.d(TAG,"ConnectedThread: started");         mBTDevice = device;         deviceUUID = uuid;     }      public void run(){         Log.i(TAG, "RUN mConnectThread ");         BluetoothSocket tmp = null;          try {             Log.d(TAG, "ConnectThread: Trying to create InsecureRfcommSocket using UUID: " + MY_UUID);             tmp = mBTDevice.createRfcommSocketToServiceRecord(MY_UUID);         } catch (IOException e) {             Log.e(TAG, "ConnectThread: Could not create InsecureRfcommSocket " + e.getMessage());         }          mSocket = tmp;          //Connection to the bluetoothsocket         try {             //only return a successful connection or exception             mSocket.connect();         } catch (IOException e) {             try {                 mSocket.close();             } catch (IOException e1) {                 e1.printStackTrace();             }             e.printStackTrace();         }     }  }


How to fix "Couldn't load plugin ..." and "ImportError: No module named ..." in QGIS plugins?

After installation of Quantum GIS (QGIS) I tried to use Table Manager Module, but I can't do it.  Here is the message:  Nem tudom betölteni a 'tablemanager' modult innen: ['C:/PROGRA~1/Quantum GIS Wroclaw/apps/qgis/./python', 'C:/Users/TamÃ¡s/.qgis/python', 'C:/Users/TamÃ¡s/.qgis/python/plugins', 'C:/PROGRA~1/Quantum GIS Wroclaw/apps/qgis/./python/plugins', 'C:\PROGRA~1\Quantum GIS Wroclaw\bin\python27.zip', 'C:\PROGRA~1\Quantum GIS Wroclaw\apps\Python27\DLLs', 'C:\PROGRA~1\Quantum GIS Wroclaw\apps\Python27\lib', 'C:\PROGRA~1\Quantum GIS Wroclaw\apps\Python27\lib\plat-win', 'C:\PROGRA~1\Quantum GIS Wroclaw\apps\Python27\lib\lib-tk', 'C:\PROGRA~1\Quantum GIS Wroclaw\apps\qgis\bin', 'C:\PROGRA~1\Quantum GIS Wroclaw\apps\Python27', 'C:\PROGRA~1\Quantum GIS Wroclaw\apps\Python27\lib\site-packages', 'C:\PROGRA~1\Quantum GIS Wroclaw\apps\Python27\lib\site-packages\PIL', 'C:\PROGRA~1\Quantum GIS Wroclaw\apps\Python27\lib\site-packages\win32', 'C:\PROGRA~1\Quantum GIS Wroclaw\apps\Python27\lib\site-packages\win32\lib', 'C:\PROGRA~1\Quantum GIS Wroclaw\apps\Python27\lib\site-packages\Pythonwin', 'C:\PROGRA~1\Quantum GIS Wroclaw\apps\Python27\lib\site-packages\wx-2.8-msw-unicode', 'C:\PROGRA~1\Quantum GIS Wroclaw\apps\qgis\python\plugins\fTools\tools']  Traceback (most recent call last):   File "C:/PROGRA~1/Quantum GIS Wroclaw/apps/qgis/./python\qgis\utils.py", line 117, in loadPlugin     __import__(packageName)   File "C:/PROGRA~1/Quantum GIS Wroclaw/apps/qgis/./python\qgis\utils.py", line 283, in _import     mod = _builtin_import(name, globals, locals, fromlist, level) ImportError: No module named tablemanager  Python verzió: 2.7.2 (default, Jun 12 2011, 15:08:59) [MSC v.1500 32 bit (Intel)]   QGIS verzió 1.7.4-Wroclaw Wroclaw, 411aff6  Python elérési út: ['C:/PROGRA~1/Quantum GIS Wroclaw/apps/qgis/./python', 'C:/Users/Tam\xc3\xa1s/.qgis/python', 'C:/Users/Tam\xc3\xa1s/.qgis/python/plugins', 'C:/PROGRA~1/Quantum GIS Wroclaw/apps/qgis/./python/plugins', 'C:\\PROGRA~1\\Quantum GIS Wroclaw\\bin\\python27.zip', 'C:\\PROGRA~1\\Quantum GIS Wroclaw\\apps\\Python27\\DLLs', 'C:\\PROGRA~1\\Quantum GIS Wroclaw\\apps\\Python27\\lib', 'C:\\PROGRA~1\\Quantum GIS Wroclaw\\apps\\Python27\\lib\\plat-win', 'C:\\PROGRA~1\\Quantum GIS Wroclaw\\apps\\Python27\\lib\\lib-tk', 'C:\\PROGRA~1\\Quantum GIS Wroclaw\\apps\\qgis\\bin', 'C:\\PROGRA~1\\Quantum GIS Wroclaw\\apps\\Python27', 'C:\\PROGRA~1\\Quantum GIS Wroclaw\\apps\\Python27\\lib\\site-packages', 'C:\\PROGRA~1\\Quantum GIS Wroclaw\\apps\\Python27\\lib\\site-packages\\PIL', 'C:\\PROGRA~1\\Quantum GIS Wroclaw\\apps\\Python27\\lib\\site-packages\\win32', 'C:\\PROGRA~1\\Quantum GIS Wroclaw\\apps\\Python27\\lib\\site-packages\\win32\\lib', 'C:\\PROGRA~1\\Quantum GIS Wroclaw\\apps\\Python27\\lib\\site-packages\\Pythonwin', 'C:\\PROGRA~1\\Quantum GIS Wroclaw\\apps\\Python27\\lib\\site-packages\\wx-2.8-msw-unicode', 'C:\\PROGRA~1\\Quantum GIS Wroclaw\\apps\\qgis\\python\\plugins\\fTools\\tools']


I have seen this sentence somewhere.     she came undone   I take this in as putting together an intransitive verb and an adjective(or a participle) so as to describe state of a subject.  and likewise, I tried a few other variations,   so are followings weird in your sense?  If it sounds weird, can you explain the reason?     she arrives dry.      she walks wet.      she lived stealing.      she drinks unsatisfied.      she sits angry.      she stands hungry.


Repeated Multiple Definition Errors from including same header in multiple cpps

So, no matter what I seem to do, I cannot seem to avoid having Dev C++ spew out numerous Multiple Definition errors as a result of me including the same header file in multiple source code files in the same project.  I'd strongly prefer to avoid having to dump all my source code into one file and only include the header once, as that's going to make my file very long and difficult to manage.  Essentially, this is what's going on:  #ifndef _myheader_h #define _myheader_h  typedef struct MYSTRUCT{ int blah; int blah2; } MYSTRUCT;  MYSTRUCT Job_Grunt; MYSTRUCT *Grunt = &Job_Grunt; MYSTRUCT Job_Uruk; MYSTRUCT *Uruk = &Job_Grunt;  int Other_data[100];  void load_jobs();  #endif   Example Cpp File (They pretty much all look something like this):  #include "myheader.h"  void load_jobs(){  Grunt->blah = 1; Grunt->blah2 = 14;  Uruk->blah = 2; Uruk->blah2 = 15;  return; }   Bear in mind that I have about 5 cpp files that include this one header, each one dealing with a different type of struct found in the header file.  In this example there was only the one struct containing a couple of members, when there are about 4-6 different structs with many more members in the actual header file.  All the files I've included it in follow the same formula as you see in this example here.  Now I understand that the header guard only stops each individual cpp file from including the header file more than once.  What would seem to be happening is that when the compiler reads the include at the start of each cpp, it defines the header file all over again, which is causing it to spit out lines and lines of:  Multiple Definition of Uruk, first defined here   Multiple Definition of Job_Uruk, first defined here   Multiple Definition of Grunt, first defined here   Multiple Definition of Job_Grunt, first defined here   Multiple Definition of Other_data, first defined here   I'll see a set of this for just about every cpp file in the project which includes the header.  I've tried moving the definitions of the struct and the struct variables to the cpp files, but then the other cpp files cannot see them or work with them, which is very important as I need all files in the project to be able to work with these structs.  But the single most confusing part about this problem requires a little more explanation:  The way I'm setting up these multiple files in this project is identical to the book I'm working with, All In One Game Programming by John S. Harbour.  I ran into the exact same problems when I created the files for example projects in the book which called for one header included by multiple cpps in the same project.  I could type them out, word for word from the book, and I do mean word for word... and I'd get the series of MD errors for every cpp in the project.    If I loaded the example project from the CD included with the book, it would compile and run without a problem, allthough the files themselves, as well as the project options, were by all appearances identical to the ones I had created.  If I created my own project file, and simply added the source and header files for the example project from the CD, this, too, would also compile and run, though I can find no difference between those and mine.  So then, I tried making my own project file, then creating the blank source and header files and adding them to it, and then filling them by copying and pasting their contents from the files on the CD they were meant to correspond to(the same ones that had worked). And sure enough, I'd get the same thing...lines and lines of MD error messages.  I'm absolutely baffled.  I've repeated all these methods multiple times, and am certain I'm not mistyping or miscopying the code.  There just seems to be something about the premade files themselves; some configuration setting or something else I'm missing entirely...that will cause them to compile correctly while the files I make myself won't.


How many people have undergone carbon freezing in Star Wars?

We all know the story of Han Solo being a guinea pig for the planned freezing of Luke Skywalker, but how often are people "stored" in this way?


Given a *nix command, how do I find where the executable is?

There is a command written in bash I found from documentation from people who previously worked in this project. Now I need to locate the command's source and modify it.  I tried   which my_command   It cant find the command.   edit:  whereis outputs:     mycommand:


Is 0 of anything the same as 0 of any other thing?

So, we know that in physics, units matter. 2 cm is different from 2 newtons which is different from 2 seconds. But what if the number is 0? Is 0 of any unit the same as 0 of any other unit?


Mouse-over hints in LibreOffice get cut-off

I couldn't find the solve of my problem. So, problem is: in LibreOffice there are cut-off hints. I show it in the screenshot below.    Ubuntu version is 16.04.  P.S. Sorry for my English. There is Russian on the screen.


Dual booted Windows 8.1 and ubuntu. Deleted Ubuntu partition stuck with Gnu Grub version 2.02

I know similar things have been asked before, but they either apply to grub 1 or I am just too ignorant in the subject matter to follow the answers. I can't get ubuntu, bootloader, or windows recovery to boot from a usb (which is how I ran and installed ubuntu in the first place.) I just need a working computer ASAP for an upcoming project and am lost can someone explain it like I'm 5?


Let $a, b$ and $m$ be integers, and $m \ge 2, \ ab ≡ [ (a \bmod m) * (b \bmod m) ] (\bmod m).$

I'm relatively new to this, I got no idea how to proceed at all. I'm just bad at this chapter :(  $$ m\mid (ab- (a \bmod m \cdot  b \bmod m)). $$ How do I proceed after that? Is this even the first step?


I am sorry if I am asking a basic question here but have no idea what I am talking about  :).  My question is this:  I have a digital camera that requires DC supply. I have a couple of power supplies but not sure if either are any good.  On the camera it states: DC12W 5Watt Max  On power supply 1: INPUT 100-240 VAC 50/60Hz 0.5A OUTPUT +12V 1A  On power supply 2: INPUT 100-240 VAC 50/60Hz 0.8A OUTPUT +5V 4  Are either power supplies powerful enough or are they too much?  Thanks


Which is the correct answer?         I'll be there in a _____ time.       A) day or two   B) day or two's   C) day's or two's


Is a clean install better than upgrading?

Is it better to install Ubuntu completely new or is the upgrade process just as good? In other words, will my computer run just as problem-free and efficiently when I upgrade as opposed to a fresh install?


how to print same footnote in top left corner on every page generated by LaTeX?


Individual Phase shift provided by Op-Amp in Closed loop configuration

When comparing the input and output of the Op Amp alone (Vid1-Vid2 and Vo and not Vsupply and Vo) in a closed loop configuration the phase shift is only 90 degrees? Why it is so? And the Simulation shows its is 90 degrees!!The white wave form is the input of Op Amp (V-diff) and the Red Waveform is output.  Does it implies that the closed loop Op amp individually by themselves gives only 90 degree phase difference? If so which part of the external circuitry give the remaining 90 degrees to satisfy the known experimental fact that the overall phase shift in closed loop- inverting configuration is 180.   And the circuit diagram of implimentation:


I've got a question of some strange String pool behavior. I'm using == to compare equal Strings to find out whether they're in the pool or not.  public class StringPoolTest {   public static void main(String[] args) {     new StringPoolTest().run();   }    String giveLiteralString() {     return "555";   }    void run() {     String s1 = giveLiteralString() + "";     System.out.println("555" == "555" + "");     System.out.println(giveLiteralString() == giveLiteralString() + "");   } }   The output is:  true false   which is a big surprise for me. Could anyone explain this please? I think something about this is taking place at the compilation time. But why does adding "" to a String makes any difference at all?


Show that square of any odd natural number is congruent to 1 mod 8.

How can we prove that the square of any odd natural number is congruent to 1 mod 8?


Use theorem counters in custom tcolorboxes

I want my custom boxes to use the same counter as my theorems. I took a look in the tcbox manual and tried various things like "use counter from=theorem" and so on but probably it doesn't work like this:  This is a mwe of the above picture. : \documentclass{article} \usepackage[most]{tcolorbox} \tcbuselibrary{breakable} \usepackage{fontawesome}  %Theorems  \newtheorem{theorem}{Theorem}[section] \newtheorem{definition}[theorem]{Definition}  % Boxes  \newtcolorbox[auto counter,number within=section]{abox}[2][]{%     colback=green!5!white,colframe=green!50!black,     enhanced,     colbacktitle=green!50!black,      attach boxed title to top left={xshift=0.5cm,yshift=-2mm},     fonttitle=\bfseries,     title=\faPencil\ Exercise~\thetcbcounter: #2,#1}  \newtcolorbox[auto counter,number within=section]{bbox}[2][]{%     colback=blue!5!white,     enhanced,     colframe=blue!50!black,     colbacktitle=blue!50!black,      attach boxed title to top left={xshift=0.5cm,yshift=-2mm},     fonttitle=\bfseries,     title=\faPaperclip\ Example~\thetcbcounter #2,#1}    \begin{document}  \section{Section 1}      \begin{theorem} Hello, I am a theorem.     \end{theorem}    This is some random text.     \begin{definition} Let $A$ blabla     \end{definition}              \begin{abox}{Differential Equations} This exercise should have the counter 1.3 \end{abox}      \section{Section 2}      \begin{definition} asdf \end{definition}     \begin{bbox}{} This example should have the counter 2.2 \end{bbox} \end{document}


Characterizing all mobius transformations from unit disk to itself.

All answers to this problem involve the following process:   Pick a point $a$ in the unit disk such that $T(a)=0$. Then, $T(a^*)=\infty$ if $a^*$ is the symmetric point $a^*=\frac{1}{\bar{a}}$ of a. Clearly, such a transformation is of the form $T(z)=\frac{z-a}{1-z\bar{a}}$. We might as well place a constant C in there: $T(z)=C\frac{z-a}{1-z\bar{a}}$. Then, most answers magically jump to replacing $C=e^{i\theta}$ in the formula and claiming the job is done.  Why does a function built so that it sends a point inside the unit disk to zero, and its symmetric point to $\infty$, be the one that preserves the unit disk? What's the motivation behind approaching this problem in that manner? Could one proceed bruteforce: with $|\frac{az+b}{cz+d}|<1$ and arrive at the same function? For some reason this seems to me like somebody pulled a rabbit out of a hat. Once given the formula, I understand why it does the job, but why would somebody think that choosing a point inside the disk and building a function that sends it to zero create a mobius transformation that does the job?


I would like all my theorem-like environments (theorem, example, etc.) to be numbered but such that the number appears before the environment's name, more or less like this:  1. Theorem  2. Example  How can I do this?


Where can I get a cached copy of a website from Google?

I've heard a lot about websites saved thanks to Google's cached copies of them. Where can I access these cached copies?


There are r tasks that can be assigned to n people, where there is no limit on the number of tasks that can be assigned to each person.

This is a hw question I got in my class, but I'm not even sure how to begin it. I need to find the probability of each of the four parts below, but first I can't even count the total number of ways these tasks could be allocated.   "Person number 1 is assigned no jobs"; "People number 1 and 2 are assigned no jobs"; "exactly two of the people are assigned no jobs" "No person is assigned more than one job".   I wrote out some examples, and it has confused me even more.   For example, if we had 1 task and 2 people, all the possibilities are {(1,0), (0,1)}, giving 2 different possibilities.  If we had 2 tasks and 2 people, we have {(0,2), (1,1), (2,0)}, giving 3 different possibilities.  If we had 2 tasks and 3 people, we have {(2,0,0), (0,2,0), (0,0,2), (1,1,0), (1,0,1), (0,1,1)}, giving 6.   I'm having a lot of difficulty with finding a pattern between these cases.   Any help would be appreciated. Thanks!


Considering there are icons for the  tag, the  tag, the  tag, and some other ones, won't it be possible to have an icon for the  tag too?


Is "this is the first time I'll be taking the exam" right?

Is the sentence "This is the first time I'll be taking the exam." grammarly correct? If so, why using the present continuous tense, and what about "This is the first time I take the exam."


I'm going through an online course, and don't understand the 4th line of this code:   import numpy as np  H1 = np.random.randn(50, 50) + 10  p = 0.5  U1 = np.random.rand(*H1.shape) < p   In particular, what is the * doing to H1.shape inside the np.random.rand function?


proof that topologist sine curve is not locally connected

I know that this question has been asked before, but it is still not clear to me why the topologist sine curve is not locally connected.     The topologist's sine curve: Let $S$ denote the following subset of the plane. $$S = \{ (x, \sin(1/x)) \mid 0 < x \le 1\}.$$ The set $\bar{S}$ is called the topologist's sine curve, which equals the union of $S$ and the vertical interval $0 \times [-1,1]$.   My attempt was:  Fix a point $p = (0, t)$ where $t > 0$, and consider a neighborhood $N = B(p,\delta)\cap\bar S$, where $B(p,\delta)$ denotes a ball centered at $p$ with radius $\delta$.  Then, I want to show that every open subset of $N$ is disconnected, so there can't be connected neighborhood of $p$ contained in $N$.  But, I am having a trouble with establishing that every open subset of $N$ is disconnected.  How can I prove the claim?


Flagged post status is set to "eventinvalidated" in my flagging history

I flagged a  yesterday as a duplicated question and now its status is set to eventinvalidated. I can see this in my Flagging History section.  I'm not sure I understand what it means since the post is still there and has not been deleted. It's the first time I have seen this status.  Could someone enlighten me about that?


No A2DP streaming audio from 12.04 to Bluetooth headset

I want to listen to streaming audio from Ubuntu using headset (). Although Bluetooth connection is established, I haven't been able to hear anything via the headset. How can I work this around in general (I know this might sound brutal but I don't have much knowledge in audio setting on linux) ?  When I use my other Bluetooth headset BlueAnt Q2 () streaming is going. In "Hardware" tab on sound setting panel (not sure how it's officially called but see the image below) shows my headset.    However, Bose one never appears on the same window while it's connected via Bluetooth, except for a few seconds after I manually disconnect the headset (this moment is snapshotted as the image below. When it's connected the Bose BT2 thing is never shown. Btw, with Android phone this headset works just fine).     indicates that   Make sure the device supports A2DP audio streaming.   So I tried to figure out if A2DP is enabled on my Ubuntu (referring to ), finding that it's probably available as the result below shows:  $ sdptool search --bdaddr local a2snk Searching for a2snk on FF:FF:FF:00:00:00 ... Service Name: Audio Sink Service RecHandle: 0x10005 Service Class ID List:   "Audio Sink" (0x110b) Protocol Descriptor List:   "L2CAP" (0x0100)     PSM: 25   "AVDTP" (0x0019)     uint16: 0x102 Profile Descriptor List:   "Advanced Audio" (0x110d)     Version: 0x0102


Why should you use propensity score matching?

I have a question about propensity score matching and how it is used in analyzing non-randomized datasets. I understand how it is performed (I think!), but not why I should use it and not something else. Let me illustrate what I mean with an example. Assume I have a dataset with a treatment (x, binary variable), an outcome (y, numeric) and one covariate (z, numeric). The task is to determine the effect of the treatment (x) on the output (y). Treatment was however not randomly administered, so we need to take the covariate (z) into account. A real world example would be y=sick days per year, x=some drug and z=age. If I understand correctly, this is how you (can) go about if you apply propensity score matching:  Predict treatment x from the covariate z, e.g. using logistic regression Group patients based on this predicted probability of treatment = propensity score For each propensity score group, calculate the average outcome (y) for patients with the treatment (x=1) and without the treatment (x=0) For each propensity score group, calculate the difference between x=1 and x=0 averages above and then average all those differences (maybe using some weighting scheme) The average difference is the treatment effect  Please let me know if I got this part wrong! Another alternative, not involving propensity score at all, would be like this:  Predict the outcome (y) from the covariate AND the treatment (x), e.g. using logistic regression Study the size, sign of the coefficient in front of x, and also check if it is statistically significant Done!  Will the two methods give me the same result (probably not)? If not, which one is preferred and why? Does it differ if I have more than one treatment or covariate? I'd be very happy if you could find the time to help me with this one. And please keep in mind that I'm just a simple engineer, so please limit the number of difficult statistical words and formulas :-)


I have 800 cards dated between 2004 up to 2011....  Is it cool to to build a deck from a variety of sets?  Trying to get into mtg and need a boost of knowledge.


What does the symbol $\subset\subset$ mean?

In some texts (mainly complex analysis or harmonic analysis) I sometimes see the following double subset symbol $\subset\subset$ for inclusion relation of two regions, e.g., $\Omega$ and $\Omega'$ are two regions in $\mathbb{C}$ such that $\Omega \subset\subset \Omega'$. I never figured out what it means exactly; I always interpreted it as the closure $\overline{\Omega}$ is contained in $\Omega'$ (so that some nasty boundary effects can be avoided). Is that right? Or does $\subset\subset$ mean some other kind of inclusion? Thanks.


Is there a better way to manage fonts in Illustrator instead of the default drop-down? I am on CS6 and Windows7  I have several hundred fonts and I wish there was a more intuitive way to browse through my fonts.   Any suggested add-ons or extensions ?


What's the difference between Wubi and a regular "alongside Windows" installation?

At this time, Wubi does not work with Windows 8 default boot-loader. Thus at this point Wubi would not work on a new Windows 8 machine.      Citation fom    Question  Recently I've learned of , a way to install Ubuntu right from Windows.  Besides installing from Windows, I would like to know key differences between a regular "alongside Windows" or Dual-boot Ubuntu installation and one done with Wubi. Are there any disadvantages (for example a performance penalty) or incompatibilities I should look out for when using Wubi?


If an element is contained in a set, and this set is contained in another set, does the second set contain the element? In ordinary language I'd say yes, but my mathematical intuition says no. What's the right answers according to set theory?


Apply final Value theorem for functions that don't converge

This is in continuation of the question   I need to show that for a continuous and bounded function such that:  $$\lim_{T\to\infty}\frac{1}{T}\int_0^Tf\left(t\right)dt = d$$ exists and final (take note that $\lim_{t\to\infty}f\left(t\right)$ doesn't neceserely exist) then  $$\lim_{s\to0^+}sF\left(s\right) = d$$  Where $F\left(s\right)$ is the Laplace transform of $f\left(t\right)$. I now understand from the previous question how to show that for a function that converges, but how do I show it for a function that doesn't converge but for which the limit above exist?


QGIS just installed on MAC OSX - vector layer styles do not work properly

I am a newbie with QGIS - I have just installed QGIS 2.10.1-Pisa. I am following a youtube tutorial by Steven Bernard and I just found that the styles do not work properly (I run Mac OS X Lion 7.5.1. on a 1.7 GHz Intel Core i5 MacBook Air).  When I want to change the sybology of my map, this does not work properly. If you have a look at step 3.2.3. Changing Symbol Structure in the manual on  , QGIS does not provide me with any choices. It tells me that 'This layer doesn't have any editable properties'. I am attaching a screenshot just to be clear.  Can anybody tell me what is wrong?


I am trying to reverse an int using java, for some reason when given 0001234 my program somehow reads this as 668 and returns 886

public static int reverseInt(int x) {         String t = Integer.toString(x);         StringBuilder sb = new StringBuilder(t);                sb = sb.reverse();                String b = sb.toString();                 x = Integer.valueOf(b);         return x;     }  is my code and         int x = 1234000;         int b = 24230100;         int g = 001234;         int s = reverseInt(x);         int q = reverseInt(b);         int y = reverseInt(g);         System.out.println("this is y:" + y);  is my tester. g is my int value that needs to be reversed but it is being read as 668. any idea why? when adding print statement for testing:         String t = Integer.toString(x);         System.out.println(x);         StringBuilder sb = new StringBuilder(t);                sb = sb.reverse();                String b = sb.toString();            System.out.println(b);              x = Integer.valueOf(b);         return x;     }  my inital print for g is 668 and the print on line 7 returns 866


I'm trying to install VirtualBox 5.1  Reading package lists... Done Building dependency tree        Reading state information... Done Package virtualbox-5.1 is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source  W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/google-chrome.list:1 and /etc/apt/sources.list.d/google-chrome.list:2 W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/google-chrome.list:1 and /etc/apt/sources.list.d/google-chrome.list:2 W: Target Translations (main/i18n/Translation-en_IN) is configured multiple times in /etc/apt/sources.list.d/google-chrome.list:1 and /etc/apt/sources.list.d/google-chrome.list:2 W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/google-chrome.list:1 and /etc/apt/sources.list.d/google-chrome.list:2 W: Target DEP-11 (main/dep11/Components-i386.yml) is configured multiple times in /etc/apt/sources.list.d/google-chrome.list:1 and /etc/apt/sources.list.d/google-chrome.list:2 W: Target DEP-11-icons (main/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list.d/google-chrome.list:1 and /etc/apt/sources.list.d/google-chrome.list:2 E: Package 'virtualbox-5.1' has no installation candidate   What's happening?


Creating centerline of polygon using PostGIS?

I am aware of  but I am looking for another Open Source GIS way to do this.  Is there a possibility to create centerlines in PostGIS?  I have this shapefile (see below) which contains different zones. I need a centerline in each zone - it may not be one line, it can be more (for example in brown zone).  In ArcGIS I can separate each zone as a new shapefile and then use ET Geowizard to create that lines.


Custom environment breaks listings command

Following a LaTeX beginners’ tutorial, I am toying around with custom environments and commands. The following is supposed to be the logical markup for (for instance) a student task: \newenvironment{task}{ \newcommand{\subtask}[1]{     \begin{enumerate}[label={\alph*)},resume]\item{##1}\end{enumerate}} }{}  (Note that this is a minimal example. I do realize that defining the environment like this is quite pointless.) However, this setup breaks a listings environment if it is passed as a subtask, as the following MWE shows: \documentclass{article} \usepackage{enumitem} \usepackage{listings} \newenvironment{task}{     \newcommand{\subtask}[1]{         \begin{enumerate}[label={\alph*)},resume]\item{##1}\end{enumerate}} }{}  \begin{document} \begin{task} \subtask{\{0, 1\}, with unescaped braces, becomes \lstinline!{0, 1}!.} \subtask{\{0, 1\}, with escaped braces, becomes  \lstinline!\{0, 1\}!.} \subtask{\{0\}, with unescaped braces, becomes \lstinline!{0}!.} \subtask{\{0\}, with escaped braces, becomes \lstinline!\{0\}!.} \end{task}  Typing the environment commands by hand: \begin{enumerate}[label={\alph*)}, resume]\item{\{0, 1\}, with unescaped braces, becomes \lstinline!{0, 1}!.}\end{enumerate} \begin{enumerate}[label={\alph*)}, resume]\item{\{0, 1\}, with escaped braces, becomes  \lstinline!\{0, 1\}!.}\end{enumerate} \begin{enumerate}[label={\alph*)}, resume]\item{\{0\}, with unescaped braces, becomes \lstinline!{0}!.}\end{enumerate} \begin{enumerate}[label={\alph*)}, resume]\item{\{0\}, with escaped braces, becomes \lstinline!\{0\}!.}\end{enumerate}  \end{document}   Note the moving around of the “1“, the comma and a space in the first a). This does not happen if I escape the braces inside the listing (which is usually unnecessary, as exemplified by the text between the lists) or if I type the environment’s exact commands by hand, as shown in the second list. My questions after lots of text are now:  Why is it necessary to escape the braces inside the environment? How come the listing’s contents are moved around and doubled if I don’t do that? How can I fix this?


Get lines until first matched pattern range

I have a file that looks like as follows:  line1 line2 line3 line4 line5 line6 line7 line5 line2   I want to get data between line1 and line5. I used awk '/line1/,/line5/' myfile. Expecting that output will be:  line1 line2 line3 line4 line5   But awk reads until last matched line5. I desire that awk shall stop on first match and not on last match.


What's the best method of email verification?

For a registration page, what's the best way to verify a user's email address? Some websites ask you for the username, password and email address all on the registration form and then email you a link which when clicked simply displays "you are now verified". However, I came across a site which had a registration system where they asked for only your email address; they then sent an email with a link to a page where you can then choose your username and password.  The benefits of the first method is that there's just one form that the user has to fill in and once they've done that, all they have to do is click a link.  The benefits of the second method is that the form appears less daunting since there's only one field. Also, it rules out the chance of a user entering a username with an incorrect email address, so they have to choose a different username because the original username is now taken.  What's the best way to ensure that a user's email address is valid?


What are the 'right questions' to ask professors at a visit day for prospective graduate students?

I'm in mathematics, though I don't know if the answers to this will be field-dependent. There have been previous good questions that answer what to ask graduate students  and only somewhat relatedly  (about what to ask students of potential advisors). However, I don't know what good questions are to ask professors themselves. The big question is, of course, "will I be happy at this school?", but it's not clear to me what the 'right questions' are to help me get a feel for this.   Essentially, what should I know about the program/school that are suitable questions to ask a professor during a meeting at these visit days?


I'm trying to run a private server for the game RuneScape.  After some time a player of mine went to a minigame I have programmed in the server named pestcontrol. The player tried to join it but in order to be able to start it he needs 5 other players in order for it to work.  So, he logged out.  But then after that his account got nulled which caused other people to get nulled too.  I have managed to fix that.  But then he was invisible, I couldn't see his character ingame. So then i worked it out by declaring the following:  if (player == null) return;   This did work and made him visible again. But then the error still occurs with this line of exception:  java.lang.NullPointerException at net.kagani.game.player.controllers.pestcontrol.PestControlLobby.forceClose(PestControlLobby.java:52) at net.kagani.game.player.ControlerManager.forceStop(ControlerManager.java:317) at net.kagani.game.player.ControlerManager.login(ControlerManager.java:66) at net.kagani.game.player.Player.sendInit(Player.java:1396) at net.kagani.game.player.Player.run(Player.java:1233) at net.kagani.game.player.Player.start(Player.java:886) at net.kagani.executor.PlayerHandlerThread.initPlayer(PlayerHandlerThread.java:273) at net.kagani.executor.PlayerHandlerThread.processLoginSession(PlayerHandlerThread.java:231) at net.kagani.executor.PlayerHandlerThread.run(PlayerHandlerThread.java:65)   If someone could help me out with this ( redirect me to it ) cause i am willing to learn alot. This is the class itself:  package net.kagani.game.player.controllers.pestcontrol;  import net.kagani.Settings; import net.kagani.game.WorldObject; import net.kagani.game.minigames.pest.Lander; import net.kagani.game.player.controllers.Controller; import net.kagani.utils.Utils;  public final class PestControlLobby extends Controller {     private Lander lander;      @Override     public void start() {         this.lander = Lander.getLanders()[(Integer) getArguments()[0]];     }      @Override     public void sendInterfaces() {         if (player == null)             return;         int remainingTime = lander.getTimer().getMinutes();         player.getPackets().sendIComponentText(407, 3,                 Utils.fixChatMessage(lander.toString()));         player.getPackets().sendIComponentText(                 407,                 13,                 "Next Departure: " + remainingTime + " minutes "                         + (!(remainingTime % 2 == 0) ? " 30 seconds" : ""));         player.getPackets().sendIComponentText(407, 14,                 "Player's Ready: " + lander.getByStanders().size());         player.getPackets().sendIComponentText(407, 16,                 "Commendations: " + player.getCommendation());         player.getInterfaceManager().sendMinigameInterface(407);     }      @Override     public void magicTeleported(int teleType) {         player.getControlerManager().forceStop();     }      @Override     public boolean sendDeath() {         player.getControlerManager().forceStop();         return true;     }      @Override     public void forceClose() {          player.getInterfaceManager().removeMinigameInterface();         System.err.println("This is 1 error output that declares it here");         lander.exit(player);     }      @Override     public boolean logout() {         lander.remove(player);         return false;     }      @Override     public boolean canSummonFamiliar() {         player.getPackets()                 .sendGameMessage(                         "You feel it's best to keep your Familiar away during this game.");         return false;     }      @Override     public boolean processObjectClick1(WorldObject object) {         switch (object.getId()) {             case 14314:             case 25629:             case 25630:                 player.getDialogueManager().startDialogue("LanderD");                 return true;         }         return true;     } }


I need to rename files in batch--the other questions I browsed don't exactly address my problem. The names of my files are generated non-deterministically, so I can't predict what they will be named. I do know that they will start with NORMAL and end with -lib*. I'd like to replace everything in between with some string X. For example,  |   |   |-- NORMAL_H_LS-A7-A0CE-10A-01D-A017-09-lib1.concordant |   |   |-- NORMAL_H_LS-A7-A0CE-10A-01D-A017-09-lib1.deletion |   |   |-- NORMAL_H_LS-A7-A0CE-10A-01D-A017-09-lib1.divergent |   |   |-- NORMAL_H_LS-A7-A0CE-10A-01D-A017-09-lib1.inversion |   |   |-- NORMAL_H_LS-A7-A0CE-10A-01D-A017-09-lib1.translocation |   |   |-- NORMAL_H_LS-A7-A0CE-10A-01D-A017-09-lib4.concordant |   |   |-- NORMAL_H_LS-A7-A0CE-10A-01D-A017-09-lib4.deletion |   |   |-- NORMAL_H_LS-A7-A0CE-10A-01D-A017-09-lib4.divergent |   |   |-- NORMAL_H_LS-A7-A0CE-10A-01D-A017-09-lib4.insertion |   |   |-- NORMAL_H_LS-A7-A0CE-10A-01D-A017-09-lib4.inversion |   |   |-- NORMAL_H_LS-A7-A0CE-10A-01D-A017-09-lib4.translocation   So it will probably be of the form rename "s/something/X/", but I don't know what that something should be, as I don't know how to use regex.


While trying assignment questions of Field Theory of my class I am unable to solve this particular problem.  Let $ f/g \in K(x) $ with f/g not belonging to K and f, g a relatively prime in K[x] and consider the extension of K by K(x).  Then prove that x is algebraic over K(f/g) and [ K(x) : K(f/g) ] = max ( deg f, deg g). I have showed it algebraic by considering polynomial p(a)=  f/g × g(a) - f(a). But I am unable to prove the result related to degree. Edit 1: This question had some part which I am unable to solve : The assignment $ x \to f/g $ induces a homomorphism $\sigma : K(x) \to K(x)$ such that $\frac{\phi(x)}{\psi(x)} \to \frac{\phi(f/g)}{\psi(f/g)}$. I am not well in problems in which it is to be proved that an homomorphism is induced. Can you please tell basic philosophy behind it? Thanks!!


I've found  the following integral.  $$I = \int_{0}^{1}\sin{(\pi (1-x))}x^x(1-x)^{1-x}\,dx=\int_{0}^{1}\sin{(\pi x)}x^x(1-x)^{1-x}\,dx=\frac{\pi e}{24}$$  I've never seen it before and I also didn't find the evaluation on math.se. How could we verify it?  If it is a well-known integral, then could you give a reference?


I was researching sinusoidal functions when I realized that the wave produced by a wave function looks exactly the same as a light wave. Is a light wave a sinusoidal wave, and can a light wave be described as a sinusoidal function?


I'm not having any luck with Drush (just hangs) to update a (non-production) D8 site, dev branch (from around beta2) to Head.  How would one manually update the files db/config?


One of my favourite types of photography is long exposure photography. I use a nikon D3100 with the kit lens. Unfortunately being the beginner I was, I decided to buy a cheap tripod from Ebay...I am looking for a good quality tripod for around £100 or less. At the moment I have looked at various different ones from amazon:        I am fairly new to photography, so I am not sure which tripod is the best. I am mainly looking for sturdiness.


Say I have two files (file1.txt & file2.txt).  file1.txt: (contains only list of words, one per line)  Car Ricky   file2.txt: (contains lines (phrases) using words from file1.txt and more)  he has a Car there is no food I have a book road is straight Ricky is a good student   The output should be:  he has a Car Ricky is a good student


I am working with a small dataset (21 observations) and have the following normal QQ plot in R:     Seeing that the plot does not support normality, what could I infer about the underlying distribution? It seems to me that a distribution more skewed to the right would be a better fit, is that right? Also, what other conclusions can we draw from the data?


Debugging FeatureClassToFeatureClass giving ERROR 000732?

I get this Error when trying to run the FeatureClassToFeatureClass_conversion:     Traceback (most recent call last):   File "", line 1, in          arcpy.FeatureClassToFeatureClass_conversion(inFeatures, outLocation, outFeatureclass)   File "C:\Program Files   (x86)\ArcGIS\Desktop10.2\arcpy\arcpy\conversion.py", line 1675, in   FeatureClassToFeatureClass       raise e ExecuteError: Failed to execute. Parameters are not valid. ERROR 000732: Input Features: Dataset Parcel_Owners does not exist or   is not supported Failed to execute (FeatureClassToFeatureClass).   This is my code:   import arcpy arcpy.env.workspace = "D:\Users\ShawnO\Desktop\PythonExercizes\Parcel_Ownership_update_model\Parcels.gdb" inFeatures = "D:\Users\ShawnO\Desktop\PythonExercizes\Parcel_Ownership_update_model\Parcels.gdb\Parcel_Owners" outLocation = "D:\Users\ShawnO\Desktop\PythonExercizes\Parcel_Ownership_update_model\Old_Parcel_Owner\Old_Parcel_Owners.gdb" outFeatureclass = "old_owners" arcpy.FeatureClassToFeatureClass_conversion(inFeatures, outLocation, outFeatureclass)   What is wrong with my variable inFeatures? I know that a feature class table consists of more than one file but examples on the internet had the name of the Featureclass as an acceptable input.


How to install all existing media codecs?

How to install all possible media codecs from console?  Is there a way to load and save them for some cases without Internet connection?  Thanks in Advance!


How to make $((5/2)) deliver a floating point number?

This is what I get  🐷 echo $((5/2)) 2   How to make $((5/2)) giving me 2.5 ?


Installing latest version of Dancer2 on Debian

OK, got myself a clean virtual machine running Debian 9 (Stretch). I installed  from the Debian package system. It's running version 0.204002. The Dancer2 software is telling me that the latest version is 0.205002.  I want to finally, once and for all, learn the proper way to upgrade Perl modules on a Debian machine to the latest and greatest versions without ruining the Debian dpkg dependencies. How do I achieve this?  EDIT Yes, this is a development machine I'm just playing with. But what if I wanted to run the latest version of Dancer 2 on a production machine? How would I do it?


Does a scratched DVD result in lost data, and how do I fix a scratched DVD?

Does a scratched DVD result in lost data? How do I fix a scratched DVD?


How do I use an inputStream as the text to an outputStream?

I have two files, GettysburgAddress.txt, where the Gettysburg Address is written, and GettysburgAddressCopy.txt, which is an empty text file that I'm supposed to fill in with the Gettysburg Address, each sentence, till its period, on a different line. So I thought of this   import java.io.PrintWriter;` import java.io.FileNotFoundException;v` import java.util.Scanner;` import java.io.File;  public class UltimateTextFileOutputDemo  {      public static void main(String[] args)     {         String writtenFileName = "C:\\Documents and Settings\\GettysburgAddressCopy.txt";         PrintWriter outputStream = null;         try         {             outputStream = new PrintWriter(writtenFileName);         }         catch (FileNotFoundException e)         {             System.out.println("Error opening the file" + writtenFileName);             System.exit(0);         }           String readFileName = "C:\\Documents and Settings\\GettysburgAddress.txt";         Scanner inputStream = null;         try         {             inputStream = new Scanner(new File(readFileName));         }         catch (FileNotFoundException e)         {             System.out.println("Error opening the file " +                             readFileName);            System.exit(0);         }         while (inputStream.hasNextLine())         {             inputStream.useDelimiter(".");            // setting the period as the delimiter of the read piece of text, I'm sure it gets a single, complete sentence             String line = inputStream.nextLine();             outputStream.println(line);         }         outputStream.close();         inputStream.close();          System.out.println("The Gettysburg Address was written to " + writtenFileName);      } }   When run, the program rightly creates the GettysburgAddressCopy.txt, if it doesn't exist yet, but it doesn't fill it with the speech. I realize the code naïvety is all in the three lines  inputStream.useDelimiter("."); String line = inputStream.nextLine(); outputStream.println(line);   but then, what's the right code to write? Many thanks for giving me the best tips you can.


How to get around array.equals(otherArray) evaluating to null?

I'm trying to make a for loop that loops through an array, comparing the user input to each object using a method called getID() that returns the stored user IDs for various employees. The data is not saved between runs, so on the first loop, all objects (I believe) should be null. With that being said, I get a nullPointerException on the line that's supposed to compare the strings retrieved by getID() and the userInput string. The array is initialized as follows:  Salesperson[] staffList; staffList = new Salesperson[20];   Here is the loop in question, the if statement is the line that throws the NPE:  for(i = 0; i < staffList.length; i++)   {      if(staffList[i].getID().equals(idNum))      {           duplicateID = true;      }  }   Here is the class for the Salesperson array:  public class Salesperson { private String name; private String idNum; private double annSales;  //Various getter and setter methods here }   If I missed anything please let me know. I've used Stack Overflow in the past but have never asked a question myself. I've tried searching around here but have yet to find anything that helped me. Thanks in advance!


Difference between: "it has rained / been raining for two hours"

I read that this is the difference between present perfect and present perfect continuous.     A1: It has been raining for two hours [and I don't expect it to stop soon].    A2: It has rained for two hours [and will likely continue to do so in the future].    Source:   Is it right? I knew it another way. Could you please tell me what is right?


The Game: There is the following patience game: One starts with an ordinary deck of cards, i.e. 52 cards and divides them equally into 13 piles of 4 face-down cards, each pile being labelled by a card value, i.e. one pile corresponding to aces, one to 2's etc.. After setting the game up, one takes a card from the top of the kings pile and looks at its value. This card is then placed face up under its corresponding pile, i.e. if it is a queen one would place it under the queens-pile. Next, the top card of this particular pile one has just added to, is picked up and one repeats the procedure, placing it under the pile corresponding to its value. The game ends when the pile one has added to has no more face-down cards to pick up. The Objective: To win the game, one needs to turn over every card before the game ends. This means that the last card to be turned over is the fourth king, and that all other cards are turned over before the fourth king is. The Problem: Since this game is deterministic, i.e. its outcome cannot be changed once the cards are separated into piles, I have always wondered what the probability of winning this game is. Furthermore, when exploring this question it is also interesting to think about the chances of winning the analogue game with a different amount of piles, i.e. possible values of cards, and colors, i.e. how large the individual stacks are. My Progress: I have no experience working on problems like this one, so my progress is very very limited. Through my efforts I have only been able to find that the probability of winning the a game with $n$ stacks with 1 card is $1/(n!)$, as well as some other combination of very small stacks and colors (simply through working it out explicitly, not by noticing any general pattern). Since winning the game is in some sense "finding a loop" through the entire deck of cards, I have also thought about trying to analyse when smaller loops exist (for example all 3's being in the 3 pile). In this sense, if there is more than one "loop", the game is destined to fail, so analysing them might solve the problem. However, I have not found a way to properly grapple with this idea in a productive way. It would be very helpful if anyone could give me some Ideas or perhaps resources to read about problems like this.


$f(f(z))=f(z)$ for all $z\in \mathbb{C}$ implies that $f(z)=z$ for all $z\in \mathbb{C}$

As in the title, I would like to show that if $f$ is an entire, non-constant function, then $f(f(z))=f(z)$ for all $z\in \mathbb{C}$ implies that $f(z)=z$. I tried to think about what kind of singularity $f(z)$ has at $\infty$, since it can not be removable and if it is a pole then $f$ is a polynomial and we would be done very quickly. However, if it is an essential singularity I don't really know what to do there. I also tried to use the chain rule on the initial equation $f(f(z))=f(z)$ and got that for all $z\in \mathbb{C}$, we either have $f'(z)=0$ or $f'(f(z))=1$. If you could show that we always have the second condition and also that $f$ is onto, then we would also be done. Would appreciate any help.


How to add a text overlay over an image with HTML and CSS

I am trying to make it so that when the cursor is hovered over an image, text will display at the center of the image. Text such as "Facials", "Skin Care Solutions" etc. should display at the center of their corresponding images when the cursor hovers on to it. A overlay effect where the images changes color when be hovered over has been added. Here is a picture for context.  HTML

SERVICES

Personalized Special Care

Facials

Skin Care Solutions

Lashes

Microblading

Eyebrow Treatment

  CSS #service{     width: 100%;     padding: 70px 0;     background: #b4edfa;     } .service-box{     width: 80%;     display: flex;     flex-wrap: wrap;     justify-content: space-around;     margin: auto; } .single-service{     flex-basis: 50%; /*get two services in 1 row*/     text-align: center;     border-radius: 7px;     margin-bottom: 15px;     color: #fff;     position: relative; } .single-service img{     width: 85%; /*resize image*/     border-radius: 7px; } .overlay{     width: 100%;     height: 100%;     position: absolute;     top: 0;     border-radius: 7px;     cursor: pointer;     background: linear-gradient(rgba(0,0,0,0.5),#93dced);     opacity: 0;     transition: 1s; }  .single-service:hover .overlay{     opacity: 1; } .service-desc{     width: 80;     position: absolute;     bottom: 0%;     left: 50%;     opacity: 0;     transform: translateX(-50%);     transition: 1s; } .service-desc h3{     line-height: 20% } .service-desc p{     font-size: 15px;     }  hr{     background: #fff;     height: 2px;     border: 0;     margin: 15px auto;     width: 60%; }  .singler-service:hover .service-desc{ /*create hovering effect that shows text*/     bottom: 40%;     opacity: 1; }


Sql Joining maptables and separating results with comma

I have three tables. I have connected it using a query, but I would like to separate results with comma in one line instead of showing result on different line.   1st table   ProgrammeId | Name ==================== 1 |Software Engineering                                          2 | Game Design   2nd table   CoordinatorId| CoordinatorName ==================== 1 |Bob                                          2 | Ted   3d table   ProgrammeId| CoordinatorId ==================== 1 | 1                                          1 | 2 2 | 1   That is a query.   SELECT a.ProgrammeId, a.Name, c.NameCoordinator FROM Programme a --Joining maptable for Programme and Coordinator INNER JOIN ProgrammeCoordinators b ON a.ProgrammeId = b.ProgrammeId INNER JOIN Coordinator c ON b.CoordinatorId = c.CoordinatorId   Output will be something like that:   ProgrammeId| Name | CoordinatorName ================================== 1 | Software Engineer | Bob                                         1 | Software Engineer  | Ted 2 | Game Design | Ted   How can I separate to show this:  1 | Software Engineer | Bob, Ted


Expansion of the Universe: is new space(time?) being created or does it just get stretched?

Is new space(time?) being created as the Universe expands, or does the existing spacetime just get stretched?  If it just gets stretched, why do galaxies move along with the expansion instead of just getting smeared (like a drawing on an inflatable balloon)?


\subsection{First} \index{First}  Some text of first subsection.  \begin{figure}[!htb] %[hbtp]     \centering         \noindent\makebox[\textwidth]{\includegraphics[width=\textwidth,height=\textheight,keepaspectratio]{images/a.pdf}}     \caption{Some description}       \label{a} \end{figure}  \subsection{Second} \index{Second}  Some text   For some reason, the figure / image I want to implement appears in the second subsection, even though it's been declared at the end of the first subsection.   Other posts suggested using [!htb] which didn't help.  Thanks!


a question about the evaluation of integral

Let $\alpha:[0,1] \to R$ be the . Evaluate $$\int_{0}^{1}xd\alpha $$and $$\int_{0}^{1}x^2d\alpha.$$  I know that the Cantor function is continuous and monotone increasing, how can I evaluate the integral above using the properties of $\alpha$? Can someone help me solve this question?


Jealousy and envy seem to have resentment tied in with them, and that's not what I'm trying to express. This is like, I want something someone else has, and I am sorry that they got it before me, but I do not resent them for it. They deserve it and I'm respectful of that, I just wish I had it.