PHP QR Code will not display UTF-8 characters

I'm generating a QR code vCard using PHP QR Code (). It works, but not with Brazillian Portuguese characters. I can't find how to force UTF-8 to it.  The problem is that iOS will not recognize the characters, check the screenshots below (iOS and Android).  <?php   include('phpqrcode/qrlib.php');   // how to build raw content - QRCode with detailed Business Card (VCard)  $tempDir = "";   // here our data  $name         = 'João Carlos da Silva';  $sortName     = 'da Silva;João Carlos';  $phone        = '+55 (89) 2345-6789';  $phonePrivate = '+55 (94) 4521-3989';  $phoneCell    = '+55 (66) 1234-5678';  $orgName      = 'GH Construtora';   $email        = 'emaildousuario@dominio.com.br';   // if not used - leave blank!  $addressLabel     = 'Escritório';  $addressPobox     = '';  $addressExt       = '2º andar';  $addressStreet    = 'Av. das Nações, 200';  $addressTown      = 'Cidade';  $addressRegion    = 'SP'; $addressPostCode  = '18.902-100';  $addressCountry   = 'Brasil';  // we building raw data  $codeContents  = 'BEGIN:VCARD'."\n";  $codeContents .= 'VERSION:2.1'."\n";  $codeContents .= 'N:'.$sortName."\n";  $codeContents .= 'FN:'.$name."\n";  $codeContents .= 'ORG:'.$orgName."\n";   $codeContents .= 'TEL;WORK;VOICE:'.$phone."\n";  $codeContents .= 'TEL;HOME;VOICE:'.$phonePrivate."\n";  $codeContents .= 'TEL;TYPE=cell:'.$phoneCell."\n";   $codeContents .= 'ADR;TYPE=work;'.      'LABEL="'.$addressLabel.'":'      .$addressPobox.';'      .$addressExt.';'      .$addressStreet.';'      .$addressTown.';'      .$addressPostCode.';'      .$addressCountry  ."\n";   $codeContents .= 'EMAIL:'.$email."\n";   $codeContents .= 'END:VCARD';   // generating  QRcode::png($codeContents, $tempDir.'026.png', QR_ECLEVEL_L, 7);   // displaying  echo '<img src="026.png" />';


Doesn't the unprovability of the continuum hypothesis prove the continuum hypothesis?

The Continuum Hypothesis say that there is no set with cardinality between that of the reals and the natural numbers. Apparently, the Continuum Hypothesis can't be proved or disproved using the standard axioms of set theory.   In order to disprove it, one would only have to construct one counterexample of a set with cardinality between the naturals and the reals. It was proven that the CH can't be disproven. Equivalently, it was proven that one cannot construct a counterexample for the CH. Doesn't this prove it?  Of course, the issue is that it was also proven that it can't be proved. I don't know the details of this unprovability proof, but how can it avoid a contradiction? I understand the idea of something being independent of the axioms, I just don't see how if there is provably no counterexample the hypothesis isn't immediately true, since it basically just says a counterexample doesn't exist.  I'm sure I'm making some horrible logical error here, but I'm not sure what it is.  So my question is this: what is the flaw in my argument? Is it a logical error, or a gross misunderstanding of the unprovability proof in question? Or something else entirely?


What is different between arguments and parameter of functions in PHP?

I don't understand difference of arguments and parameter in function.Is there anybody who tell me details about arguments and parameters. What is arguments and what is parameter?


I am looking for a specific word to describe a concept such that its meaning is linear and one-way. Such is the case for the title of this question. X would be of this concept and Y would not, Y would be the opposite of this concept.  For example, all automobiles are motor vehicles but not all motor vehicles are automobiles.  I cannot seem to find any word to relate to this.  Any advice/guidance is very much appreciated.


Can you suggest an easy way to draw atoms?

Can you suggest an easy way to draw these atoms?      \documentclass{standalone} \usepackage{tikz,graphicx} \usetikzlibrary{shadings} \usetikzlibrary{decorations.markings} \definecolor{myyellow}{RGB}{254,241,24} \definecolor{myorange}{RGB}{234,125,1} \begin{document}  \begin{tikzpicture} \def\proton(#1,#2){%     \fill[shade=ball,ball color=myyellow] (#1,#2) circle (10pt);     \node at (#1,#2) {\texttt{+}}; } \def\neutron(#1,#2){%     \fill[shade=ball,ball color=myorange] (#1,#2) circle (10pt); } \def\electron{%     \fill[shade=ball,ball color=gray!30] (0,0) circle (5pt);     \node at (0,0) {\texttt{-}}; } \def\sorbit(#1,#2){%   \draw[   color=violet,   rotate=#1,   postaction=decorate,   decoration={markings,   mark=at position #2 with {\electron}, }]   (0,0) ellipse (1.5 and 3.5); } \def\porbit(#1,#2){%   \draw[   color=violet,   rotate=#1,   postaction=decorate,   decoration={markings,   mark=at position #2 with {\electron}, }]   (0,0) ellipse (4 and 6); } %%Nucleons \neutron(0.8,0.2) \proton(0.5,-0.5) \neutron(-0.25,-0.5) \neutron(0.55,0.8) \proton(-0.5,0.2) \proton(-0.1,0.8) \proton(0.5,0) \proton(0.12,0.6) \proton(0.12,-0.6) \neutron(-0.25,0) \neutron(-0.5,0.6) \neutron(0.5,-0.3) %%orbits \porbit(-20,.15) \porbit(15,.45) \sorbit(40,.9) \porbit(65,.6) \sorbit(100,.3) \porbit(125,.75)  \end{tikzpicture}  \end{document}


Failing to upgrade Ubuntu or run updates from the command line, apt-get giving 404s

I would like to upgrade my Ubuntu 11.04 from the command line (this is a remote machine I can only SSH into). I am following . I am getting 404's from many commands I am trying to run such as:   sudo apt-get install update-manager-core  sudo apt-get update sudo apt-get install libkrb5-dev   What can I do to apt-get install these things without 404s from the command line? I can only use the command line.  Here is an example of the 404.  $ sudo apt-get install update-manager-core [sudo] password for melissa: Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed:   update-manager-core 0 upgraded, 1 newly installed, 0 to remove and 95 not upgraded. Need to get 165 kB of archives. After this operation, 1,294 kB of additional disk space will be used. WARNING: The following packages cannot be authenticated!   update-manager-core Install these packages without verification [y/N]? y Err http://archive.ubuntu.com/ubuntu/ natty-updates/main update-manager-core amd64 1:0.150.5.4   404  Not Found [IP: 91.189.91.13 80] Err http://security.ubuntu.com/ubuntu/ natty-security/main update-manager-core amd64 1:0.150.5.4   404  Not Found [IP: 91.189.91.14 80] Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/u/update-manager/update-manager-core_0.150.5.4_amd64.deb  404  Not Found [IP: 91.189.91.14 80] E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?


It seems like when I call getMessage on a thrown AuraHandledException, I see "Script-thrown Exception" instead of the message that I have set. Any idea why this may be happening?  Controller:       @AuraEnabled     public static Conversation__c makeConversation(String tonum, String objid)     {         if (tonum.length() != 10)             throw new AuraHandledException('ToNumber length invalid.');     }   TestController:  @isTest     static void testMakeConversationInvalidTo()     {         Boolean testPass = false;         String fromNumber = '1234567890';         String toNumber = '1';          List<ConversationController.ConversationWrapper> test =    ConversationController.getConversations();         System.assertEquals(0, test.size());         try {             ConversationController.makeConversation(toNumber, '0');         } catch (AuraHandledException e) {             System.debug(e.getMessage());             System.debug(e.getTypeName());             System.assert(e.getMessage().contains('ToNumber length invalid'));             testPass = true;         }     }   Return:  16:26:28:477 USER_DEBUG [320]|DEBUG|Script-thrown exception 16:26:28:477 USER_DEBUG [321]|DEBUG|System.AuraHandledException


print column value based on column name match in awk/sed

In my shell script after executing a few commands, I'm getting the output below:  Name      English    Maths    science   Social studies ------    --------  --------  -------- --------------- James     20        25        30        40  (many values) (or)  Roll Num   Name     English   Maths   science   Social studies ---------  ----    --------  -------  --------  ---------------   1        James     20        25        30        40  (Many values)   I want to print the values based on a column heading match.  Example: cmd(matching Maths) test.txt  o/p:25   I have tried few awk and sed commands,But I didn't get proper output.  Can someone help me how to get this?


Immediately update my community list when i change it

If i add a site to my community list (accessible by clicking the SE icon in the top left), i usually want to be able to get to it. Right away. But with the current setup, once i click 'save' to keep it there, it disappears, as the old list is shown. I can't see the new site i put there (or removed, or reordered) until i reload the page.  Could it just do a quick recalculation of the site list when i modify it? It doesn't even need to give me my rep on it - just a simple link.


Which statistical test to use for Likert scale questionaire

I need help on determining what tests to use in SPSS. Let me provide some background on my research:   I am doing a research on system automation of leave management in a company (which is still using a manual paper form to apply for leave). My hypothesis validates the automation of the different processes (independent variables) on the overall improvement of the leave management process (dependent). My control variables are age, gender and dept. I have developed a prototype of a system and provided a questionnaire in the form of a 5-point Likert scale to the participant. (Strongly Agree, Agree, Neutral, Disagree, Strongly Disagree). The questions measures their response on the statement provided on the test evaluation of the system. These questions are categorised based on the hypothesis.   Where do I start?


Square free graph : Graphs with minimum cycle length greater than 4.  Question : What is the maximum number of edges possible for a square free graph $G(V,E)$ given that $|V|$ = n. Is it of the order $O(n^2)$?  How does the answer change if max_degree(G) = d ($>1$)?  EDIT: Out of curiosity, what is the maximum number of edges with $n$ vertices, when  we limit the  of the graph to $l$.  Thanks in advance!


What is the difference between an Intel i7 and a Xeon quad core processor?

I know the  processors have been around for a long time and are mostly used in servers, but I am curious, why do people not use the Xeons in a high performance desktop?    As far as I know about the best desktop processor out there now is the  line. The i7's and Xeons are both quad-core processors, what is the main difference in these? I just saw that the MacBook Pro's are using the quad core Xeons instead of the i7's.


Prove that the perpendiculars from P,Q,R to BC,CA,AB respectively are also concurrent.

Let $ABC$ and $PQR$ be any two triangles in the same plane. Assume that the perpendiculars from the points $A,B,C$ to the sides $QR,RP,PQ$, respectively, are concurrent. Prove that the perpendiculars from $P,Q,R$ to $BC,CA,AB$ respectively are also concurrent.   I was suggested to prove this using vectors. But I have no idea how to use them...


When to use "me and my __" and "my __ and me"?

When is it correct to use, for example "me and my wife" and "my wife and me", which is correct and what's the difference?


Transforming a combination of sine and cosine functions to either sine or cosine function

Consider the expression $a\sin\theta+b\cos\theta$. This expression consists of a combination of sine and cosine trigonometric functions which makes analysing it difficult. How can this expression be converted to an expression consisting of only sine or cosine functions?


How to merge multiple rows into one row with SQL?

Originally, I have one table, storing UserID and the corresponding value based on Year, Month, as shown below:    Now, I want to 'merge' the rows according to the Year and Month value and to store them into another table, as shown below:    Note that, M1 means Mth = 1 (January), M2 means Mth = 2 (February), and so on. (The images are meant for description, you may ignore the accuracy of the figure.)  Question, how to do this in SQL Server?


Youtube videos do not play in Ubuntu 14.04LTS

Youtube videos do not play. Instead, the following messages appear: "This plugin is vulnerable and should be updated", "Activate Adobe Flash", "Check for updates." Since my version is 14.04LTS, the Adobe Flash Player cannot be installed. What should I do for playing Youtube videos. The browser I use is Firefox.


I have an IDictionary<TKey,TValue> implementation that internally holds n other Dictionary<TKey, TValue> and distributes that insertions by the HashCode of the key to the invidual sub-dictionaries. With 16 sub-dictionaries, the number of collisions is pretty low on a 4-core machine.  For parallel insertions, i locked the Add-method with a ReaderWriterLockSlim, locking only the individual sub-dictionary:    public void Add(TKey key, TValue value)         {             int poolIndex = GetPoolIndex(key);             this.locks[poolIndex].EnterWriteLock();             try             {                 this.pools[poolIndex].Add(key, value);             }             finally             {                 this.locks[poolIndex].ExitWriteLock();             }         }   When inserting items with four threads, i only got about 32% cpu usage and bad performance. So i replaced the ReaderWriterLockSlim by a Monitor (i.e., the lock keyword). CPU usage was now at nearly 100% and the performance was more than doubled.   My question is: Why did the CPU usage increase? The number of collisions should not have changed. What makes ReaderWriterLock.EnterWriteLock wait so many times?


This is a feature request to increase the number of close votes in /review, and somewhat similar to .  I know the concern is robo reviewers in search of a badge, but it seems odd to me that I have only 40 close votes per day, but 54 moderator flags.  If the community trusts me enough to give me that much ammunition to throw up to the mods, then why is there not enough trust to spend more time in /review?  Why not increase daily close votes in a way that reflects the community's trust in you?  Something like   Math.max(40, NumberFlags)    or even   Math.max(40, NumberFlags + (~~(UserRep / 10000) * 10)) //(+ 10 votes per 10K rep)   or maybe  Math.max(40, NumberFlags) + (~~(UserRep / 10000) * 10) //(+ 10 votes per 10K rep)


Today I've suddenly received spam calendar invitation for $19.99 Ray Ban sunglasses (never subscribed, checked, searched or visited any related site, so clearly spam) and it has other visible email accounts within the invitation. I'm wondering if I should be worried whether my accounts been compromised or a simple email from anywhere just plops this in my calendar without review. Questions to be answered:  What should I check/setup in order to make sure my iCloud account is safe? How can I delete this invitation without sending a notification to the sender, so as to prevent them from knowing my email address is live? How can I prevent these notifications in the future?  Here's an image:


Attaching listeners to a new elements loaded after 1st page- Jquery?

Bit new to Java-script so let me explain my problem. I have implemented pagination using Django and using Infinitescroll.js for pagination in Front-end.  Now I want to attach an click-event listener to elements of a class on the page. I can do.  $(".class").on("click",    function(){   alert("1234") });   First page of Pagination is working fine. But for next page the listener is not getting attached. I tried keeping above js in $(document).ready but still it's not working. How can I add listeners to new elements of the same class that are being loaded after pagination. Do I need to put the above code in callback function of the infinitescroll.js?


So I am having trouble getting the sum of the series:  $1 + 2\left(\frac32\right) + 3\left(\frac{3^2}{2^2}\right) + ... + k\left(\frac{3^{k-1}}{2^{k-1}}\right)$  I cant figure out for the life of me how to figure out the sum of this.


90s sci-fi book of a world where women had no rights but they act as translator for aliens?

Read this in the 90s, it's part of a series I think. Women didn't really have much rights, men ruled the planet but mostly in the book the women were treated well but unequal. Yet somehow women acted as translators for the aliens?


Why some Java classes' constructor be shown as private without private keyword?

I have encountered a weird situation today for second time which keeps my mind busy. The problem has started when i looked Matcher class's constructors which are not declared as private. I thought, i can invoke Matcher's constructor in other class with creating object of it. But my IDE has shown the constructors as private.   And i am wondering why cannot i access those constructors? The second time was in Bitmap class from Android Library. I haven't worked with Matcher or any related class. This is the first time, i am dealing with it. I would be grateful if you guys and ladies can help. Thanks in advance. BTW, I am using IntelliJ Idea as IDE.


I'm trying to pass a php var that is a string using Javascript, but in the final result the string gets cmmented in html. Here's my code:  PHP:  $txtVar = "My text";   JavaScript:   var txt = '<?php echo $txtVar; ?>'; document.getElementById('MyDiv').innerHTML = txt;   HTML(result):

   I just want the string value to be printed in my html, withou the comments ()


Expressing $1.24\overline{123}=1.24\;123\;123\;123\;\ldots$ as the ratio of two integers

So I'm supposed to express:  $$1.24\overline{123}=1.24\;123\;123\;123\;\ldots$$ as the ratio of two integers.  So I got $$1+\frac{24}{100}+\frac{123}{10^5}+\cdots$$  I don't know if this is correct, and if it is, I also don't know how I would get the common ratio from this. Would the common ratio just be $\frac{1}{10^5}$? Am I doing this wrong?


service --status-all | grep  always returns [ ? ] entries

Trying to get the state of a service that is running (or not).  I use service --status-all | grep <service> and no matter what I enter for <service>, I always get:  [ + ]  <service I grepped>  [ ? ]  rng-tools  Any ideas on why I am getting [ ? ] rng-tools in the result?


SQL Server performance is slow when migrated from SQL Server 2012 to SQL Server 2014

We are trying to migrate from SQL Server 2012 to SQL Server 2014 on Windows 2012 R2 OS.  After the upgrade, we are doing performance testing and observed huge difference in running a simple query from only one table (No joins at all).  The query is getting executed in 4 seconds in SQL Server 2012, but taking more than 1 minute in SQL Server 2014.   The SQL Servers are installed on 2 different VMs (different IP addresses).  They have only one SQL Server instance on each machine.   The processor / ram / hard drive space is same between 2 machines.   The machines have the same applications installed. We are running the same select query from the SQL Server Management Studio directly.


Malus Law in Michelson Morley experiment

My book of physics (I don't quote it here, since it is in Catalan) says  that in the 1887 Michelson - Morley experiment, after getting the transversal and longitudinal phase shifts, they claim that the number of fringer observed will belong to the number of times that both phase shifts contains 2 pi because that is the phase two maximums  repeat. My question is: why is here said that waves should form maximums? Because as I understand it, the expected result was to obtain a destructive interference whose phase shift could be jsed to determine Earth's velocity. If they were expecting a destructive interference, shouldn't the book use the phase two minimums repeat?


I just visited  and noticed that my profile picture is not the same as on all other sites.  According to  the image will be synchronized when synchronizing the complete profile. I did that but the image is still the same.  Then I wanted to change the image in the Area51 profile directly - but I can only change to a gravatar image and can't use the new and fancy Stack Exchange image.  Is that a bug?


It has rained / been raining for one hour

Imagine it's raining, and it started one hour ago and it's still raining, which sentence is correct:        It has been raining for one hour   It has rained for one hour      And if we say:        It has been raining.   It has rained.      Are these sentences true for this situation (without for or since) or not?  I think the former two sentences are true, and the first one is better, but we use the latter ones for finished actions or situations (It isn't raining right now).  Am I right?


How to split a video file by size with ffmpeg?

i want to split a video file by size using ffmpeg.  Do you know how to do that ?  Do i have to calculate the duration that corresponds to each size ?  Thank you.


Translation Workbench CustomObjectTranslation Metadata

I'm trying to retrieve the translations in translation workbench to add to Stash. My sample .xml file is below.  <?xml version="1.0" encoding="UTF-8"?> <Package xmlns="http://soap.sforce.com/2006/04/metadata"> <types>     <members>Sample_Object__c-es_CO</members>     <name>CustomObjectTranslation</name> </types>     <version>37.0</version> </Package>   I am able to successfully retrieve the object, but the file does not contain any of the translations that I have added. I have verified that I am using the correct sandbox, I verified the object name, I verified that I added the translations in my sandbox, but still no luck.  The sample output in the file is below:  <?xml version="1.0" encoding="UTF-8"?> <CustomObjectTranslation xmlns="http://soap.sforce.com/2006/04/metadata">     <caseValues>         <plural>false</plural>         <value><!-- Sample Object --></value>     </caseValues>     <caseValues>         <plural>true</plural>         <value><!-- Sample Object --></value>     </caseValues>     <gender><!-- Feminine --></gender>     <nameFieldLabel><!-- Sample Object Name --></nameFieldLabel> </CustomObjectTranslation>


Punctuation with definitions like "what x means by y"

I would like to know if in the following examples punctuation is primarily opinion-based or whether there are rules or standards.     Milcot defines power as a dynamic process.       1) By dynamic, Milcot means ... (without single quotation marks)      2) By 'dynamic,' Milcot means ... (with single quotation marks)   And does it make any difference if the defition is a quotation?     Milcot defines power as "a dynamic process."   Thanks again!


What does the height represent in a probability density function?

I know the integral represents the probability, but what does the height represent? It can’t be the number of times that a feature appears, because the function is continuous.  I understand that it is the "probability density", but I don't really understand what is meant by that.


I would need a hint to prove the following statement :  For every $\epsilon>0$ there exists $C_{\epsilon}>0$ such that for every couple $a,b\ge 0$ we have  $(a+b)^p\leq(1+\epsilon)a^p+C_{\epsilon}b^p$


Calculations in pstricks swallows the spaces after a command

The following MWE works fine when plotting a square using pstricks with xelatex.   \documentclass{article}  \usepackage{pstricks}  \begin{document}    \def\x{0 } % Notice that there MUST be a white space after 0    \psframe(\x, 1)(!1 \x add 1 1 add)  \end{document}   The problems is, when I try to make the \psframe in a whiledo loop with a counter, the space after a command is swallowed. Look at the following MWE:   \documentclass{article}  \usepackage{pstricks}  \newcounter{Y}  \setcounter{Y}{1}  \begin{document}    \def\x{0 }    \def\Y{\theY  }    \psframe(\x, \Y)(!1 \x add 1 \Y add)  \end{document}   When compile with the command xelatex test where test.tex is the name of the source file, it throws the following error:   Using PSTricks configuration for XeTeX+xdvipdfmx  ))) (/usr/share/texlive/texmf-dist/tex/generic/pstricks/pst-fp.tex))  (./test.aux) [1] (./test.aux)Error: /undefined in 1add  Operand stack:     --nostringval--   0.0   true   0.0   28.4527   1   1   Looks like after expanding \Y in \psframe, the second coordinate becomes (!1 0 add 1 1add) where the white space between the last 1 and add is swallowed.  How can the value of a counter be used in the coordinate calculations in pstricks? Thanks.


What does the title "Return of the Jedi" refer to?

Which entity does the "Jedi" in the title "Return of the Jedi" refer to? Does it refer to the general return of the Jedi Knights to the galaxy via Luke, or does it specifically refer to the redemption of Darth Vader and the return of the Jedi Anakin Skywalker, Chosen One of the prophesy?


cannot be referenced from a static context- switch statement

What is this error and how do I fix this? This is driving me nuts.  public static void NSOMUHDialog(final Context context) {   AlertDialog.Builder builder = new AlertDialog.Builder(context);   builder.setTitle("Menu");   builder.setCancelable(true);   builder.setItems(new CharSequence[]{"Announcements", "Rate us", "Get support", "How to use?", "Share download link"},       new DialogInterface.OnClickListener() {             public void onClick(DialogInterface dialog, int which) {               switch (which) {                 case 0:                   if (NSOMUHUpdateChecker.getInstance(context).isOnline()) {                      // internet is available, fetch announcements                      new NSOMUHFetchAnnouncements().execute();                   } else {                      // device is offline                      Toast.makeText(context, "not connected", Toast.LENGTH_LONG).show();                   }                   break;   ERROR:     NSOMUHMenu.this' cannot be referenced from a static context


Finding the widest angle to shoot a soccer ball from the sideline using optimization!!

I'm trying to do an independent project for my Math class, but I was stuck and couldn't figure out how to use optimization to find position along the sideline that gives the widest angle to shoot. As in the picture, A and C demonstrate positions that provide smaller angle to shoot, while B provides a wider angle to shoot. I tried using law of cosine, but because both sides of triangles change every times I didn't know how to apply optimization to it :(  if anyone know, please help, any suggestion would be appreciate


A novel with sentient predators that can join their minds telepathically to form a collective personality

I read this novel about 15-20 years ago. I don't remember if it was recent at that time or much older.   It was quite complicated and involved several different threads. But I remember only one of them. There is a planet with vaguely wolf-like predators who are sentient individually, but who can also join their minds telepathically. The "collective mind" that emerges from this joining (not a large group, half-a-dozen minds or so, it is a very small "hive") can have a very different personality than the individuals. IIRC, one point-of-view character has a rather nice personality and does not know that she (? I think I remember that was a female, but I am not sure) is part of an extremely unpleasant "collective".


When does a Debian server require restart?

I have Debian 8.3 installed on my vServer, hosting websites and other applications. For instance, my VM didn't boot properly after my hoster rebooted the node. So there must be something that gets loaded only on complete reboot.  What are scenarios where I have to reboot the server?`   apt-get upgrade - when libraries get updated? apt-get upgrade - when a new image is installed? other reasons?   Or is a Debian server something that you simply don't have to reboot, ever?


How does Valakut trigger with a card like Harrow or Scapeshift putting multiple mountains into play?

has an effect that triggers when mountains enter the battlefield.      When a mountain enters the battlefield, if you control 5 or more other mountains, Valakut deals 3 damage to target creature or player.   If a player has for example 4 mountains and 3 forests in play, and casts a spell such as , sacrificing a forest to fetch 2 mountains, bringing the total count up to 6, does Valakut trigger?  How does this work with a card like , which would allow you to sacrifice all of your lands and fetch a valakut and 6 mountains?


How to set page numbers within left/right margins using classicthesis and geometry

I'm using classicthesis and the geometry package for the margins. The page numbers are top outer, but should be within ALL of the margins. I've successfully got the page numbers within the top and bottom margins,   What I've tried that doesn't work: 1) I've tried includeall and includeemp in the geometry package -- it shifts the page number successfully but then reduces the text width as if making room for margin notes 2) I tried \marginparwidth 0pt, \marginparsep 0pt to remove space for margin notes and that didn't work either.  Here's a working example:  \documentclass[twoside,openright,titlepage,numbers=noenddot,headinclude, footinclude=true,cleardoublepage=empty,dottedtoc, BCOR=5mm,paper=a4,fontsize=11pt, fontsize=11pt, ngerman,american, ]{scrreprt}   \input{classicthesis-config} \usepackage[inner=3.5cm, outer=2.5cm, top=2.5cm, bottom=2.5cm,includefoot,includehead]{geometry}   \deftripstyle{pgnumbottomcenter}{}{}{}{}{\pagemark}{} \pagestyle{pgnumbottomcenter} \deftripstyle{pgnumtopouter}{}{}{\pagemark}{}{}{} \renewcommand{\chapterpagestyle}{pgnumtopouter}   \begin{document}  \pagestyle{scrheadings}  \pagenumbering{roman}   \section{hello} \newpage \section{what's up}  \end{document}   And a screenshot of the second page, showing what I'd like to achieve:


I have went from left to right, up to down and my world only has jungle, beach, crimpson, and snowy biomes. I had that world since 2019 and worked so hard on it, i really don't want to make a new world and probably have the same problem. Is it possible to bring those orbs with you into another world, if so please help me.


Difference between the following two class implementations

What is the difference between the following two class implementations  function Animal() {   this.feed = function () {   } }   function Animal () { }  Animal.prototype.feed = function () { };   I tried creating both the function but both worked in a similar way.


Do dual American and Mexican citizens need passports to travel between the US and Mexico?

I have 2 children that were born in Mexico. They have a birth certificate abroad. So this is dual citizenship. Do they need passports?  My kids were born in Durango, Mexico. I am American. Their father is Mexican. They were both given birth certificates abroad. They are now 16 and 14. They want to go visit grandparents and aunts and uncles in Mexico.  Will they need to get a passport to enter Mexico?  Will they need it to fly?


Can't boot other softwares ( Windows XP, 10, 8, 7 ) after Ubuntu Server

I succesfully uninstalled Ubuntu from my device (Single Boot), but i cant boot other softwares.


Is there an upside down caret character?

I have to maintain a large number of classic ASP pages, many of which have tabular data with no sort capabilities at all. Whatever order the original developer used in the database query is what you're stuck with.  I want to to tack on some basic sorting to a bunch of these pages, and I'm doing it all client side with javascript. I already have the basic script done to sort a given table on a given column in a given direction, and it works well as long as the table is limited by certain conventions we follow here.    What I want to do for the UI is just indicate sort direction with the caret character ( ^ ) and ... what?  Is there a special character that is the direct opposite of a caret?  The letter v won't quite cut it.  Alternatively, is there another character pairing I can use?


Is the Lagrangian density a functional or a function?

Weinberg at page 300 of The Quantum Theory of Fields - Volume I says:  $L$ itself should be a space integral of an ordinary scalar function of $\Psi(x)$ and $\partial \Psi(x)/\partial x^\mu \,$, known as the Lagrangian density $\mathscr{L}$: $$ L[\Psi(t), \dot{\Psi}(t)]= \int d^3x \, \mathscr{L}\bigr(\Psi({\bf x},t), \nabla \Psi({\bf x},t), \dot{\Psi}({\bf x},t)\bigl) $$  So he says that $\mathscr{L} \, $ is a function. But Gelfand and Formin at page one of their book Calculus of variations say:  By a functional we mean a correspondence which assigns a definite (real) number to each function (or curve) belonging to some class.  So from that I'd say it is a functional. The notes of quantum field theory of my professor stay on this side, explicitly calling the lagrangian density a functional. I'm very confused at the moment. I always used this latter way of defining functionals (the Gelfand way) so Weinberg saying that $\mathscr{L}$ is a function confuses me. Can someone makes some clarity about this?


Writing python script to group and sum records from each group?

I am doing hydrology analysis in ArcMap 10.2 and have a drainage area feature class containing hundreds of records.  Each record is assigned a drainage area name and acreage amount.   How do I sum all the acreage amounts for each drainage area name using a python script preferably in the field calculator?


I have accidentally spilt coffee on my desktop keyboard

I have accidentally spilt coffee on my keyboard. I unplugged it and let it dry for half an hour, then I reattached it and it worked perfectly for one hour of continuous use - but then I tried a couple of keys and realized that the Caps Lock key not only activates the Caps Lock, but also types 3. The same happens with the 3 key: it types 3 but also activates Caps Lock.  Something similar happens with another couple of keys on the left hand side of the keyboard. Eventually, I unplugged the keyboard, and I will leave it for a couple of days until I plug it back in and see if it works properly.  Any suggestions? Is it possible to fix it? Is there still moisture inside it? What do you think?  I have to mention that it is a Razer model, so an expensive "mechanical" keyboard.


What to do if this dialogue comes in terminal in ubuntu 16.04

When I try to install wine through commands this comes in the terminal and I cannot forward after this. What to do?


What's the policy about having multiple user accounts?

Take this example: .  I can imagine of any human reasons to create a new user account at SO, e.g. willing to restart with a clean (reputation) history. But particular this one is extreme. The user known as "icepax" currently already has 10 accounts, each involved in only one question/answer.  How and why would one do that? There is certainly more at matter here. Shouldn't it be our task to merge the accounts and inform the user in question about how to use SO and the OpenID properly?


As a developer, I am writing a commit message to rollback an update. In my message I want to describe what I am doing which is the opposite of an update. I am looking for something like the word downgrade for upgrade.  If you wonder what is the difference between update and upgrade, check this link. .  The word downdate quite exist (at least on the Urban Dictionary) but it means a .


Orthogonal polynomials lme4: Interpretation of significant quadratic predictor when linear predictor is not significant

Summary of Study  Participants worked in pairs to complete three tasks. Periodically throughout the interaction, they evaluated one another across a variety of categories. The primary category of interest for this analysis is comprehensibility, which participants rated using a 100-point scale. We are interested in examining how comprehensibility ratings fluctuate over time.  Variables   Comprehensibility: Continuous, 0-100 Time: Continuous, 0-6 (represents the time at which the ratings occurred; ratings occurred at equally spaced intervals) Speaker: Categorical/grouping variable, 1-40 Pair: Categorical/grouping variable, 1-20   Summary of the Problem  I have fit and evaluated a number of polynomial mixed-effects models using the poly function to estimate orthogonal time terms to avoid autocorrelation. I fit the following polynomial models: null/intercept, linear, quadratic, and cubic growth. I also fit a piecewise model in which I recoded time into separate variables representing the first four data points (time 0, 1, 2, and 3) and the second three data points (time 4, 5, and 6), labelled time03 and time46. I then constrained the quadratic slope to occur only during time03. These models were informed by plots of the data (individual and group trajectories) showing a U-shaped trajectory over the first few data points and a linear trajectory over the last few data points.   I used likelihood ratio tests to compare models. With the addition of each polynomial term, model fit improved: null < linear < quadratic < cubic. When I compared the piecewise and the cubic models, both containing the same number of parameters, the piecewise model proved to be a slightly better fit. I'm including a plot of the group-level trend for reference at the end of this post.  When I call the summary of the model, the linear predictor over time 0-3 is not significant, poly(time03, 2)1, but the quadratic predictor is, poly(time03, 2)2. What is the interpretation of the significant quadratic trend when the linear trend is not significant?   Model Summary    Plot  Note that in the plot, time has been relabeled 1-7, but models were fit to data labeled 0-6.    Update  I realized I should have included orthogonal polynomials as one of the tags. I found the following posts related to that topic helpful: , , and .   I understand that the significant quadratic slope essentially represents the U-shaped curve over the first few data points, but I'm still confused about the non-significance of the linear term. I had assumed that if a higher-order polynomial is significant, then the lower-order terms would be as well, since I thought the higher-order term(s) represent curvature or deviation from the lower-order terms. Incidentally, in the cubic model fit to the entire data set consisting of all 7 points in time, poly(time, 3), all three predictors were significant.


Story about a group of programmers detecting the emergence of AI

I read this story a couple of years ago but can't seem to find it since.It's a short story.  The story starts with a programmer debugging a program and not being able to find the bug. Frustrated, he decides to disassemble the program and look at the assembly and found instructions that can't possibly come from the original source code. He then looks at the compiler for the source of the bug and even recompiles the compiler but the alien code still managed to make it into the program.  Then he decides to actually see what the alien code does and finds that it's trying to do something simple like adding two numbers but doing it in a completely non-intuitive way. He concludes that no human would do it that way and starts suspecting a virus.  Later he finds alien code everywhere from the compiler (not in the source of the compiler) to the assembler to the OS down even to the router in his office at which point he begins to suspect that the alien code may even be part or the CPU itself (modern CPUs after all are designed on computers).  The story ends with the programming team receiving a letter from another engineering team (I forget if it's Geneva or Tokyo or somewhere else) stating that they've found the same thing but every effort they've tried to publish their findings got censored by the emerging AI (hence the handwritten letter).


I don't have Chromium, but the Software Updater keeps updating some extensions!

I have Ubuntu Mate 14.04, in case it matters. The Software Updater keeps giving me updates for some Chromium extensions, but I don't even have Chromium. The only browser I have currently installed is Firefox.  I checked the Synaptic Package Manager, searching for "chromium" in the quick filter. It says I have the two following packages:  Extra ffmpeg codecs for the Chromium Browser (chromium-codecs-ffmpeg-extra)  Web browser engine for Qt (codecs) (oxideqt-codecs-extra)  Is there another application using these packages? How can I tell? Should I remove them??  Thanks in advance for the help!


How to prove the following properties of infimum and supremum involving the union and intersection of the sets $A_k$

I am reading a book on probability theory and I have troubles understanding why the following holds  $$    \sup_{k \ge n} A_k = \bigcup_{k\ge n} A_k $$  $$ \inf_{k \ge n} A_k = \bigcap_{k\ge n} A_k $$  I know how to define infimum and supremum, but I have troubles proving the above expressions. Unfortunately, the book states those expressions as a definition without proving them. A graphical explanation in terms of a Venn diagram will be very helpful.  Thank you in advance


Initiate an oAuth flow via an Auth Provider

I use the  to create an AuthProvider and NamedCredential after the installation of my managed package app. MetadataService.NamedCredential cred = new MetadataService.NamedCredential(); cred.fullName = 'MyCred'; cred.label = 'MyCred'; cred.allowMergeFieldsInBody = false; cred.allowMergeFieldsInHeader = true; cred.authProvider = 'MyKeycloak'; cred.generateAuthorizationHeader = true; cred.oauthScope = 'api refresh_token'; cred.principalType = 'NamedUser'; cred.protocol = 'Oauth'; cred.endpoint = apiEndpoint.trim();  The problem is the Authorization is still in Pending status as a user seems to manually Edit and Save the Named Credential to trigger it. Is there a way I can trigger that by my code when I insert the NamedCredential?


How does the PPA fit into the scenario of publishing an application to the Ubuntu Software Center?

I've been going through docs for the past couple of hours but I haven't understood what the PPA is? I have a cross-platform Java application that I'd like to publish to the Ubuntu Software Center. My application is open-source and I'm using Github.   Apparently, publishing applications to the store isn't as simple as uploading a deb package - am I right? I need to create an account on Launchpad and put all my code there.  I don't intend to move from Git to Bzr merely for the sake of publishing to the app store but luckily, one is able to set up source-code mirroring from Github to Launchpad.  Since my application is still very premature, it'll have updates fairly often. When I build my application on my machine, do I simply go my Ubuntu App Developer page and upload the new DEB package or do they build my application from source?  What exactly is the PPA for? I don't think I'll need too many of the Launchpad features so I'd like to stick to Github if possible.


Locked out of my Galaxy mini due to "too many pattern attempts"

I have tried everything on the website and on many others, but nothing has worked for me. What should I do?


What can/do mixed second-order partial derivatives represent?

What I know from basic calculus: The first derivative of a function $f:\mathbb{R}\to\mathbb{R}$ gives an indication of the function's behavior (namely, how the value of $f(x)$ changes as $x$ changes). The second derivative admits information about the concavity of the function.  On , I read that first order partial derivatives of a function $f:\mathbb{R^2}\mapsto\mathbb{R}$ can show the same principle; that is, $\dfrac{\partial f}{\partial x_i}$ can be thought of the rate of change of a particular cross-section of $f(x_1,x_2)$ in the direction of $x_i$. If this is the case, then it makes sense to me that $\dfrac{\partial^2f}{\partial {x_i}^2}$ is useful in showing how the concavity of a function changes in the direction of $x_i$.  So what might $\dfrac{\partial^2f}{\partial x_1\,\partial x_2}$ and $\dfrac{\partial^2f}{\partial x_2\,\partial x_1}$ represent? Do they offer anything "meaningful" in the same way that the first- and unmixed second-order partial derivatives do?


I tried to remove the white space after figure using \setlength\belowcaptionskip{-10pt} but it didn't work. any help?  \begin{figure}[H] \centering \includegraphics[width=0.8\linewidth]{figure/example-product.PNG} \setlength\belowcaptionskip{-10pt} \caption{Future plan for CAT ‘environment’} \end{figure}


Should I include a reference for an image that is released into the public domain?

I am writing my thesis and came across an image on Wikipedia that I would like to use. The licensing on this image is:     I, the copyright holder of this work, release this work into the public domain. This applies worldwide.   In some countries this may not be legally possible; if so:   I grant anyone the right to use this work for any purpose, without any conditions, unless such conditions are required by law.   Should I still include a reference to indicate this image is not my own work, if so, who should be given credit (the author is not known in this case)?


Some people believe that children should learn how to be   respectable members of society from their parents.   Would there be a grammatical problem if "how" was omitted?


Trying to find the answer to this but all of the people I've contacted can't answer it. So I entered the Schengen zone on June 11th and then left June 23rd.  Now I'm living in Italy until December 8th--I will reach 90 days as of the 8th of December.  Technically, 180 days from June 11th is December 7th.  Does that mean I get another 13 days in Schengen zone after the 7th?   How does this work with the rolling 180 days?


Double-clicking a window’s title bar to minimize it in Mavericks

After upgrading to Mavericks I’m no longer able to minimize a window to the Dock by double-clicking on its title bar. How do I get this functionality back?


I've just installed the Arc theme on my Ubuntu 19.04 machine. The theme looks awesome except one small issue with the top bar.  My top bar is completely transparent and the dock is completely opaque. Is this the way Arc theme is supposed to be displayed?    Thank you so much for your help


Meaning of following statement in careers in stackoverflow

My profile in Stack Overflow Careers shows the following:        I want to know what is the meaning of this?


If I am correct, films run at 24 fps. Early, we saw jerky and rapid movements of people. This was, I think, 16 fps.  However, we have seen earlier films (like the first kiss) at 24 fps it seems.  Also the famous brontosaurus  (Bab?) seems at a faster rate than 16. Why did films seems to start off with 24 fps but later... such as in the 1920's we see the 16 fps,  then back to the 24 fps In the late 20's mid 30's?


Here is a sentence:       First thing you need to do is install and activate the Google Doc Embedder plugin.  Maybe the formal format : First thing you need to do is to install and to activate the Google Doc Embedder plugin.  be+verb or be+ to verb is right?


Accepted answer box colour discernibility

Compare the pair:    At least on my laptop, the two boxes (on MSO) are very similar in colour, and not immediately noticeable that one has already been answered, unlike on other sites such as the main SO site, where the yellowish colour is immediately apparent.     Could this be changed?  Thanks.  EDIT: note that this is only for the front page, not the questions page, nor the "unanswered" page.


Where can you find all of the legendary materials?

There are a bunch of new  in Diablo 3, used to craft specific items. I need, for example, Element of Celerity, Quaking Vial, or Skelon's Dice to make some of the recipes I've found, but I have no idea where to find them.  Where can you find each of the new legendary crafting materials?


What should I do when my Nikon displays "Error: press shutter release button again" after I dropped it?

How can I resolve a shutter release button problem with a Nikon D5100? I dropped the camera on the floor and now it displays "Error: press shutter release button again."


Isometric embedding of Schwarzchild metric in $\mathbb{R}^4$

I am reading through this article   about the special case of the positive mass theorem in general relativity. I do not understand the section below:  In particular what does it mean to isometrically embed an $n$-dimensional Riemannian manifold $(M,g)$ in a higher dimensional space, and where does the embedding given for the  $n=3$ Schwarzschild metric come from? I assume we are referring to the standard definition of isometric embeddings using pullbacks of covariant tensor fields. I assume the author refers to the map between Riemannian manifolds $f: \mathbb{R}^3-B_{2m}\to\mathbb{R}^4$ given by $f(x,y,z)=(x,y,z,\sqrt{8m(r-2m)})$. I have tried to check if the Schwarzchild metric on $\mathbb{R}^3$ is the pullback of the flat metric on $\mathbb{R}^{4}$, however this doesn't appear to be true...


Show that this metric space is incomplete: $C[0,1]$ with metric defined as follows: $d(f,g) = \int_0^1 |f(x)-g(x)| \mathrm{d}x$

I know that in order for a metric space to be complete, all Cauchy sequences in the metric space should converge to points in the space, and I also know the definition of Cauchy sequences. But I am struggeling to prove the above question. The only idea coming to my mind is to find a Cauchy sequence that doesn't converge in the metric space and thus I can prove that the metric space is incomplete.


Standard packages for compact SMT crystals

There is an old and bog standard form factor for SMT crystals - HC49/US. The problem is that HC49/US takes a lot of real estate on the board.  It's 12mm long.  Another problem with crystals and oscillators in general is that they often become long lead time items.  [This is my experience.]  There are lots of small form factor crystals from various manufacturers.  But, at a glance, it seems that there is no standardization of form factor.  It’s nice when packages are standardized.  It alleviates the long lead time problem.  Crystals from manufacturer B may be used, if crystals from manufacturer A are out of stock.  Are there standard form factors for compact SMT crystals?  Update  Armed with the insights from Gribo and Gustavo, I did a more focused survey.  Found that 12MHz in 3.2x2.5mm package are produced by: Abracon, Citizen, Epson, Fox, ECS, TCS, NDK.  To be included in this list, the part had to be in stock at DigiKey.  It turns out that 3.2x2.5mm package is common across many manufacturers.


Important information can be stored in a computer   vs     Important information can be stored on a computer   Also, can we use stored and saved alternatively/interchangebaly with computer.  E.g.      Important information can be saved in a computer


In a test I'll take there may be a question such as the following:  A perfect power is an integer that can be written as $a^b$, $a$ and $b$ being integers greater or equal to 2. One of the following numbers is not a perfect power, which one is it?  125 216 1000 500 2500   The first three (125, 216, 1000) are simply primeNumber^something, but the last two aren't. Keeping in mind that I can't use a calculator and should spend on average only 1 minute per question, I was wondering what's the best method I can use to resolve such questions or more difficult ones (where there are less obvious wrong solutions, such as 1000).


Where are Google Chrome bookmarks stored in macOS for multiple profiles?

I can find bookmarks for one profile at ~/Library/Application\ Support/Google/Chrome/Default/Bookmarks. However I don't know where I can find the bookmarks for the other profile. Where should I look?


I think complete ring $R$ with respect to some ideal $I⊂R$ is always Hausdorff, because the topology is inherited from direct some of discrete space, which is Hausdorff. For example, well known complete ring p-adic integers or pro finite completion of integers is of course Hausdorff. Are there counter examples, that is, complete ring which is not Hausdorff? Thank you for your help.


What does it even mean to say 'preserve structure'?

Could somebody give a concrete example of a group structure being preserved in a isomorphism, et cetera? I always hear this 'preserve structure' thing. Ok, could somebody give me a rigorous definition of what it means to preserve structure? I'm tired of hearing things like 'they behave the same way under some operation bla bla bla'


Is there an easy way to change the WYSIWYG editor for sending emails?

I've noticed that the WYSIWYG editor for sending HTML emails in a SalesForce case is dated (doesn't support keyboard shortcuts, doesn't support text indentations, doesn't support font styles/headers etc).    The editor toolbar for knowledge base article appears newer and has more features.    Is there an easy way to tell SalesForce to use a newer text formatting toolbar for sending emails?


Having trouble properly adding object to collection using Python script

I want to put some objects in a separate collection in my Python script.  However, when I add an existing object to a new collection, it seems to exist in both the new collection and the main collection (where I put it to begin with) as shown in this figure the Cube exists in both the axis collection and the scene collection:  Here is my script: import bpy scene_collection = bpy.context.view_layer.layer_collection.children[0] new_collection = bpy.data.collections.new("Axes") bpy.context.scene.collection.children.link(new_collection) obj=bpy.context.active_object new_collection.objects.link(obj) bpy.ops.mesh.primitive_cone_add() #scene_collection.objects.unlink(obj) bpy.context.view_layer.active_layer_collection = scene_collection  bpy.ops.mesh.primitive_cone_add()  #add cone to original collection  The script adds the initial cube that appears in the 3D view to the new collection.  When I was reading about collections, I was under the impression that new objects would automatically be added to the new collection, but the first cone that I add in the script is placed in the original collection. So, my questions are, why is the Cube in both collections and how can I make sure it is only in one, and can I make the new collection active so that new objects are automatically added to it?


jquery function $(document).ready and $(document).on('mouseover mouseout', ...)

In my symfony application i have a jquery $(document).ready function that looks like that: $(document).ready(function (){     var button = $(".addFieldButton");      $(button).click(function (e){         //... click function     } }  The thing is i can also add lines which contain a new .addFieldButton-Button which doesn't work because the function is only instanciated once when the document is loaded so i also want to reinstanciate this function when the user clicks the .addLineButton-Button like this: $(document).on('mouseover mouseout','.addLineButton',function (){     var button = $(".addFieldButton");      $(button).click(function (e){         //... click function     } }  But when i only use this function the .addFieldButton-Button that exists from the start on, only works when i hovered over the .addLineButton-Button. Is there a way to combine these to functions?


Convergence or divergence of infinite power towers of complex numbers $z^{z^{z^{z{...}}}}$

Let $s$ be any complex number, $t = e^s$ and $z = t^{1/t}$.  Define the sequence $(a_n)_{n\in\mathbb{N}}$ by $a_0 = z $ and $a_{n+1} = z^{a_n} $ for $n \geq 0$, that is to say $a_n$ is the sequence $z$, $z^z$, $z^{z^z}$, $z^{z^{z^{z}}}$ and so on.  I want to show that the sequence $(a_n)_{n\in\mathbb{N}}$ converges to $t$ if and only if $s$ lies in the unit disk.  I know that when the sequence converges the limit is $\frac{W(-\ln(z))}{-\ln(z)}$ where $W$ is the Lambert W function.  I have verified the above statements numerically for several thousand values of $z$ but I have no idea how to actually prove it.  I graphed the natural logs of the limits on my computer. I got what appeared to be the unit disk.   If we take the log of the limit we get $ln(\frac{W(−ln(z)}{−ln(z)})=-ln(−ln(z))−W(−ln(z))+ln(−ln(z))=−W(−ln(z))$  So what I want to prove is equivalent to showing the sequence $a_n$ is convergent if and only if $|W(−ln(z))| \leq 1$   I was reading the Wikipedia article on the Lambert W Function and I found this proof that the limit $c$, when it exists, is $c= \frac{W(-ln(z))}{-ln(z)}$  $z^c = c\implies z = c^{1/c} \implies z^{-1} = c^{-1/c} \implies 1/z = (1/c)^{1/c} \implies -ln(z) = \frac{ln(1/c)}{c} \implies -ln(z) = e^{ln(1/c)}ln(1/c) \implies ln(1/c) = W(-ln(z)) \implies 1/c = e^{W(-ln(z))} \implies \frac{1}{c} = \frac{-ln(z)}{W(-ln(z)} \implies c = \frac{W(-ln(z)}{-ln(z)}$  I can only assume that at least 1 step is not justified when $|W(-ln(z)| > 1$ though I am not sure which one.  I think that part of the problem is the equation $z^c=c$ has a solution for every non-zero complex number $c$ while the sequence $a_n$ only converges for certain special values of z.  In other words the convergence of the $a_n$ is a sufficient but not necessary condition for the existence of a solution to the equation.


What is $\left|\mathbb{N}^\mathbb{N}\right|$?  I know that $\forall n\in\mathbb{N}: \left|\mathbb{N}^n\right|=\left|\mathbb{N}\right|$. But is this also true for the limit?


Recently I answered a  on Stack Overflow regarding a problem with a MySQL connection.     Initially it was very obvious that the question was about a problem with a connection, but after some helpful comments and my answer, the user edited the question according to our suggestion and presented a whole new problem regarding a MySQL query in the same code.     At this point my answer appeared to be completely off-topic, so I have flagged the question for moderators intervention. What else can I do in such scenarios?  Note: A similar question has been answered  but it didn't suggested actions against such questions.


Flattening JP2 files to single band (i.e. averaging bands)?

I have created thousands of png tiles using ArcGIS and have merged groups of them into large jp2 files for serving via GeoServer. I need to flatten these to a single band so that I can apply a colour map to achieve transparency.   is similar but the suggested tool  "Composite Bands tool in arctoolbox" only merges single band to 3 band. I need the reverse!  This is based on the following question   I have arcgis 10.1, qgis/gdal, erdas imagine and global mapper.


When I tried to connect my Ubuntu 13.10 to my VM Centos 6.5 using ssh appear the message "Connection refused" or "No route to host" even than I change the port, noting change.    I need to use SSH, VPN and Samba, but this IP in my VM Centos do not work.  How Can I resolve this problem?


How do I extract portion of a log file given the delimiters and a word contained in between?

I have a log file and I need to extract the sections related to a specific event. I performed something similar before but easier with the "sed" command. The task I've been trying to solve is the following. I need to extract all the portions of text in the file starting with the word "BEGIN" included and ending before the next "BEGIN" where it is included a specific word identifying a table in my database. I need help with the usage of the sed command. The task can be summarized in "search between all occurrences delimited by Start and End containing the word word" The text looks like something like this: BEGIN ... something here something here containing the desired "word" something here ... COMMIT BEGIN  . . . COMMIT BEGIN  And I want to obtain all the occurrencies conaining "word" as this: BEGIN ... something here containing the desired "word" ... COMMIT


What do you recommend as an optimal point and orientation for mounting a rear-view mirror? I'm open to handlebar-, glasses-, or helmet-mounted.  Some of the considerations, as I understand it, are:   Ease of mounting. View provided. Vibration. Likelihood of breaking. Robustness for repeated off and on (for glasses-mounted).   I've got a hybrid bike with flat handlebars.  I'd also welcome specific product recommendations and recommendations about other aspects to look for in a mirror.


Why do objects in front and back view look reversed?

Whenever I model objects that has different look at front and back. Viewing it from front perspective or orthographic the model displays back of the object.


What is the best way to work around the fact that ALL Java bytes are signed?

In Java, there is no such thing as an unsigned byte.  Working with some low level code, occasionally you need to work with bytes that have unsigned values greater than 128, which causes Java to interpret them as a negative number due to the MSB being used for sign.  What's a good way to work around this? (Saying don't use Java is not an option)


How to install VirtualBox from command line?

I am a newbie. For some reasons, I need to install Virtualbox. I see that I can easily install it using the Software Center, but I trust most the apt-get install way, because I find it safer, less buggy, and it helps me accommodate more with the Terminal.  So, my question is the following: is there a way to install VirtualBox using the command line? I would prefer something easy, like apt-get install not unzipping, archiving, etc, because I still don't know how to do these in the Terminal.


Remove Windows service from command line

I would like to do this because I have a half installed service because of installation failure which is just there, non-functioning.  How can I delete the Windows service using the command line?


I want to install Xen to run Ubuntu 12.04 and Windows 7 at the same time but I can't find any good tutorials

I'm wanting to use Xen Hypervisor to be able to run both Ubuntu 12.04 and Windows 7 at the same time using virtualization. I can find plenty of XCP tutorials but I'm not looking to install the cloud stack, I just want the server confined to my machine.  All I need is a link to a decent tutorial for this purpose. I've read a ton of articles that lead me to believe I'm on the right track, but not enough to feel comfortable getting it right if I just dive in. I'm getting caught up on whether I need to install Ubuntu and then install Xen into it, or do I need to install Xen on a small partition and then leave the rest of the hard drive open for the virtualization... I dunno.  Basically, I need the virtualization of Windows 7 for Adobe Premiere and After Effects (until Lightworks for Linux comes out and I can afford NUKEX). If I didn't need those, I'd be rocking out a straight up Ubuntu machine or just using VirtualBox for my virtualization. However, I need Windows to run as an HVM so it runs like I would expect rather than having the issues I may run into with VirtualBox (video drivers, etc).  So, any suggestions?


Youtube-dl: How to download video with no audio?

How can I download a video without it's audio track, ideally with the ability to choose what level of quality the video will be downloaded in.  Edit: I realize that selecting the quality may be the same as in other questions, but my main question is how to get a video without it's audio.


I have HTML form with three Submit Buttons. One is for reloading the page, the other one makes a database entry and the last one is a simple login button. Each button is also in a div.   When i try to login, i normally enter my username & password and then press enter (Im not tabbing out of the textbox). But instead of pressing the button "login", it presses the button "reload".   I found some ways with Javascript, JQuery and AJAX, but im not allowed to use any of these. All i use is PHP, CSS and HTML.  Is there a way to choose which Button i want to press when i use enter?  edit:  This is the form with the three submit buttons:  <form method="post"action="Sub.php"> <input type="text" id="txt" name="txt" value="text"> <input type="submit" id="refresh" name="refresh" value="Refresh"> <input type="submit" id="update" name="update" value="Update"> <input type="submit" id="login" name="login" value="Login"> <input type="text" id="txt" name="txt" value="text"></form>   This is the file, where i post it.  <?php if(isset($_POST['login'])) {echo "Login has been pressed";} if(isset($_POST['update'])) {echo "Update has been pressed";} if(isset($_POST['refresh'])) {echo "Refresh has been pressed";} ?>   If i tab through the first file and press enter in one of the textboxes, i will allways press the submit button with the value "refresh".


Query regarding bent space-time in General Relativity

I am just a beginner in this topic and I accept I haven't gone through whole of the content of GR. However after going through some of the basic ideas, I encountered a problem. If I did my homework well, there is a statement, "mass tells the space-time how to curve and curvatures in the space-time tell mass how to move". Also, in every video they represent the 4-D space-time as a 2-D flat surface. They put mass over there and the flat surface bends. But, it's the gravity that bends that 2-D flat surface when mass is placed over there (analogous to mass in 4-D space-time). This creates confusion as gravity is needed prior to the placement of mass in the space-time in-order to bend it. But, they say gravity doesn't exist without mass.  To make the problem more clear let's place "the 2-D flat representation of space-time" in outer space (where gravity is absent, ISS will work). Then, keep a massive object (say an iron ball) over the flat surface. Here, the flat surface does not produce any curvatures (in absence of gravity). Is this approach of visualizing space-time "wrong"? What is the right approach?


No updates for Ubuntu LTS from 18.04 to 20.04

I checked the software manager updated and upgraded everything on my system and then too no updates.  I tried using update-manager -c -d and I can update to development version. But I want to install the stable LTS one.  I am thinking about upgrading through ISO. But is it as good as upgrading through your update-manager or I can lose some things.  In conclusion, please provide me the solution to upgrade to stable 20.04.


Is $\frac{1}{\sqrt{2}}$ a fraction or not?   I just came across a Grade 8 student's class work where the teacher has given the above as an example to differentiate fractions from rational numbers. I think this is wrong fundamentally, as $\sqrt2$ is irrational while all fractions would be rational. Please advise. Thanks!


I need to build a Django Model in which it refers to itself (a list of the same Model type within each instance of this model, sort of like a nested structure), probably within its own definition.  I have looked into ManyToManyField or a possible solution with another model with a foreign key to this Model. What's the simplest way to do it ?


Will I be able to travel out of US without a valid visa?

I'm an international student in the US, and my visa already expired, will I be able to travel out of US without a valid visa?


Why multiple definitions of a template does not generate a link error?

Assume these two cc files: 0.cc #include <iostream>  template <class T> T test(){  return 5; }  int main(){  return test<int>(); }  1.cc template <class T> T test(){  return 5; }  We compile them with g++ 0.cc 1.cc. This compiles and runs successfully but if above functions were not templates then we would get a duplicate symbol error during compilation and linking phase. Why using templates does not generate a link error?


My code is:  \documentclass[12pt,letterpaper]{report} \usepackage{blindtext} \usepackage[utf8]{inputenc} \usepackage[margin=1in]{geometry} \usepackage{titlesec}   \titleformat{\chapter}[display]     {\filcenter\normalfont\bfseries}     {\MakeUppercase{\chaptertitlename}\ \thechapter}     {0pt}     {} \titlespacing{\chapter}{0pt}{-24pt}{24pt}  \titleformat{\section}[display]     {\filright\normalfont\bfseries}     {\MakeUppercase{\sectiontitlename}\ \thesection}     {20pt}     {} \titlespacing{\section}{0pt}{0}{0pt}  \usepackage{indentfirst} \usepackage{parskip} \setlength{\parindent}{.5in}  \usepackage{setspace} \renewcommand{\baselinestretch}{1.75}     \begin{document}  \chapter{INTRODUCTION} \include{CHAPTERS/Chapter 1}   where Chapter 1.tex:  \section{BACKGROUND OF THE STUDY} Here we describe in some detail the use of the package to generate such tables on a per-chapter basis. The generation of per-section or per-part tables is completely analogous (using differently named commands); an overview appears at the end of the section.   When compiled it shows:    Instead of:    Please help me...


In bash, what is the shortcut to recall the last command without any arguments?  That seems to be the one shortcut that is missing form the various guides I have found, such as   I would like the last used command to appear on the command line with the cursor at the end of the line so I can type the new argument I wish to supply.  Furthermore, I would like to achieve this with a single shortcut key combination along the lines of CTRL+P  !:0 does not work because it actually executes the command without giving me an opportunity to enter new argument(s).  Meta+Ctrl+e fails to produce any results in bash for me. However, the following indicates it should work, assuming \e refers to Alt  bind -P | grep shell-expand-line shell-expand-line can be found on "\e\C-e".   I'm running Arch.


Find all functions $ f : \Bbb R \to \Bbb R$ which satisfy $f(x)f(y) = f(x + y) + xy$ for all $x, y ∈ \Bbb R$.

Find all functions $f : \Bbb R \to \Bbb R$ which satisfy $f(x)f(y) = f(x + y) + xy$ for all  $x, y \in \Bbb R$.


How to use spotlight for system commands such as shutdown?

I want to type in Spotlight commands such as shutdown, reboot, suspend or lock and make it execute it, just like Alfred does.  How to make this possible with Spotlight?


How to trick a command into thinking its output is going to a terminal

Given a command that changes its behaviour when its output is going to a terminal (e.g. produce coloured output), how can that output be redirected in a pipeline while preserving the changed behaviour?  There must be a utility for that, which I am not aware of.  Some commands, like grep --color=always, have option flags to force the behaviour, but the question is how to work around programs that rely solely on testing their output file descriptor.  If it matters, my shell is bash on Linux.


Prove that the elements of a sequence are pairwise co-prime

Hi I need help on this question: Consider the sequence of positive integers an, for $n ≥ 1$, defined by $a_n = 6^{2^n} + 1$. (a) Prove that the elements of this sequence are pairwise co-prime, i.e. prove that if $m$ is not $n$ then $gcd(a_m, a_n) = 1$. (b) Show how this result, combined with the Fundamental Theorem of Arithmetic, provides another proof that there are an infinite number of primes. Hint: Begin the first part by proving that $a_n$ $|$ $(a_{n+1} − 2)$ I've tried proving that $a_n$ is a factor of $(a_{n+1} − 2)$ but now im not sure how to carry on to prove the $gcd$ is $1$.


I am surprised to see this python behavior, but couldn't understand why? I am not able to search 0.3 in a python list.  >> import numpy as np >> Lambdas = np.arange(0.0, 1.05, 0.05) >> print(Lambdas) [0.   0.05 0.1  0.15 0.2  0.25 0.3  0.35 0.4  0.45 0.5  0.55 0.6  0.65  0.7  0.75 0.8  0.85 0.9  0.95 1.  ] >> print(0.3 in Lambdas) False >> print(0.30 in Lambdas) False >> print(0.1 in Lambdas) True >> print(0.4 in Lambdas) True >> print(1 in Lambdas) True >> print(1.0 in Lambdas) True >> print(0.1 in Lambdas) True >>


"UNION-ALL" Causing Answer Submission to Fail

I was attempting to answer a question on StackOverflow, but repeatedly ran into an error while submitting my answer.  When I clicked "Post Your Answer", it would hang for a while and then fail; giving me the error message "An error occurred submitting the answer".  At first I thought it was a momentary glitch, so I copy/pasted my answer to a file to retry later.  After repeatedly getting this error from many attempts over the course of a few hours, I tried submitting the answer piecemeal to see if StackOverflow would accept part of the answer.  In the end, I found it to be due to the use of "UNION-ALL" (without the dash).  If I put a dash between "UNION" and "ALL", my answer would save fine.  If I removed it, I would encounter the error again.  In addition, I encountered the same problem when simply trying to type "UNION-ALL" in the comments on the question and I'm encountering it here.  Does anyone know why this is happening?  Is this a bug in StackOverflow?  Here is a link to the  I posted.


In spite of changing in the configuration from bibtex to biber and in the user command entering a command option of biber, biber does not work. the message I get is Could not start command "book":biber "book"


I read an English grammar article in which the author talked about the correct use of pronouns.  He writes:     If the extended sentence is “She’s more likely to ask him than I am,” in which the comparison is between the subject and the writer, I is correct. However, if the intent is to convey that the man referred to as him is more likely to be asked something by the subject than the writer is, the correct pronoun form is me, but that distinction should be clarified with a revision like “She’s more likely to ask him than ask me.”   Before reading this piece, I thought that the two sentences had the same meaning. While the second example is quite clear for me (“She’s more likely to ask him than ask me”), I don't think that I have correctly understood the first one. Could anyone explain it to me, please?


Is it grammatically correct to put both of related nouns in plural form? Like:   cards databases / databases of cards words variations / variations of words etc


Who stole the darkness from the accepted-answer-tick?

At first I thought my eyes were fooling me, but after taking a second look, I found the SO answer-tick to be brighter than before!  old:  new:   (I find the new color to be too bright and stingy, especially with the white background. The old darker green was nicer for the eyes. Can haz old color back?)


Any automorphism of the group $\Bbb Q$ under addition is of the form $x\to qx$ for some $q\in \Bbb Q$.   I don't know how to proceed in this. Even if i say that $1\to q$, I can't claim that $x\to qx$ since $\Bbb Q$ is not cyclic.


What is the difference between forward secrecy and key freshness?

Is all random private key that generating a unique session key is both forward secrecy and key freshness?


Is there a feminine equivalent to the adjective "avuncular"?

My brief researches only bring up the word "auntlike" to render the feminine equivalent of avuncular. Surely, though, and given the etymology of "aunt" [ < Latin amita -father's sister, old feminine past participle of amāre to love, i.e., beloved ], there must be a more lyrical word to hand.


What was the size of universe at big bang

While self studying cosmology as well as reading around I can't find a satisfactory answer to this question. My thinking is that in principle universe could have started already infinite or as a thiny speck.   The first case is as to say that I can imagine a collection of thiny speck or it is wrong? This picture indeed let me think of space as already existing unless those infini speck of something can imagined as not having volume .  But at least they should have had one at about the Planck scale.   Conversely, if I think of only one speck, I do understand that it could have generated the observable universe as well the "outer" one (via inflation, right? ) but I have troubles to see how the cosmological principle can be used in very very far parts of the universe. In other words why it should/could have a size exceeding those compatible with inflation (this latter is a mind blowing factor, but not infinite).  I am not arguing about currently standard ideas, I try to visualize them .  Edit: or simply it was infinite but space did have to start its expansion? This and its consequences are impossible to visualize but conceptually could make sense. However, there should be an horizon problem at enormous scale exceeding the inflation range.... really confusing


How do I process my data file in bunches (without using the app parallel)?

I have an analysis program and a text file with data in it which for the sake of exposition I will call wibble and data.txt respectively.    I tried a simple for loop to process all of my data:for i in $(cat data.txt); do     wibble $i done  But it takes a very long time to finish the analysis one by one.  So I tried making it spin off separate jobs for each datum:for i in $(cat data.txt); do     ( wibble $i ) & done  But this many analysis processes running causes a memory crash!  So I want to spin up analysis processes in groups of, say, five.  I want to take the first five data items, spin up an analysis process on those; then take the next five and do the same; and so on.  How can I do that without using the program "parallel' as explained in previous posts (bellow)? I don't have sudo permission on my institutional workstation to install this app, so I am trying to accomplish this goal using simpler code.  https://unix.stackexchange.com/questions/299346/running-commands-at-once https://unix.stackexchange.com/questions/361505/how-to-control-for-loop


In a problem, we have to differentiate : $$ y = \arcsin (2 x \sqrt{1 - x^2}),$$ given: $$-{1/(\sqrt2)} < x <{1/(\sqrt2)}$$.   My approach :  Put $x = \cos (p)$, so y reduces to:- $y = 2p = 2 \arccos (x)  \implies$ ${dy}/{dx}$ $ = -{2}/{\sqrt{1-x^2}}$   But the solution given is without the minus sign, so I am doing something wrong here but don't know what.  So please tell me what I am doing wrong and how to correct it.


Modal pop up issue; background is not fading and pop up does not appears on whole browser lightning page

             <button class="slds-button slds-button--icon-inverse slds-modal__close" onclick="{!c.showModalBox}">                 Close             </button>
Create Opportunity

 <button class="slds-button slds-button--neutral" onclick="{!c.showModalBox}">Cancel</button>             <ui:button class="slds-button slds-button--brand" press="{!c.saveOpportunity}" label="Save" />

   Controller  //for showing modal $A.util.removeClass(component.find("newClientSectionId"), "slds-hide"); $A.util.removeClass(component.find("backGroundSectionId"), "slds-hide");   CSS  .THIS.slds-hide {    display:none; }


Is there a way (without dragging) to move layer into specific group in Photoshop?

Is there a way (without dragging) to move a layer into specific group in Photoshop? Because I have large PSD file (greater than 100 layers), moving a layer into a group by just dragging is too hard to find the specific group. Maybe some plugin can let me just right click on the layer, and select "send to..." to specific group?  I know some people would suggest that we can close groups first and then drag, but I still want to know if there is a more effective way?  Thanks.


No counter 'chapter' defined. \begin{document}

Upon trying to insert Python code in my LateX document I ran into corresponding error message.  Code, which recreates the error message and contains only the most vital parts of my documents:  \documentclass[12pt, a4paper, fleqn]{article} \usepackage{multirow} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[latvian]{babel} \usepackage{geometry} \usepackage{graphicx} \usepackage{amsmath}  \usepackage{listings} \usepackage{color}  \definecolor{dkgreen}{rgb}{0,0.6,0} \definecolor{gray}{rgb}{0.5,0.5,0.5} \definecolor{mauve}{rgb}{0.58,0,0.82}  \lstset{frame=tb,     language=Python,     aboveskip=3mm,     belowskip=3mm,     showstringspaces=false,     columns=flexible,     basicstyle={\small\ttfamily},     numbers=none,     numberstyle=\tiny\color{gray},     keywordstyle=\color{blue},     commentstyle=\color{dkgreen},     stringstyle=\color{mauve},     breaklines=true,     breakatwhitespace=true,     tabsize=3 }  \geometry{     paper=a4paper,     top=2.5cm,     bottom=3cm,     left=3cm,     right=3cm,     headheight=0.75cm,     footskip=1.5cm,     headsep=0.75cm, }  \begin{document}     \begin{lstlisting}     #Hello, world!     \end{lstlisting} \end{document}


Cant Install anything on Ubuntu 12.04 after power failure

I was installing Google Earth from a package, and my power went out in mid-way.  When I power on my computer a pop up comes saying system problem detected. Now I cannot install ANYTHING, no updates, missing plugins, open up software center, nothing.  In the notification area an error message comes stating the following:     An error occurred, Please run package manager from the right click   menu or apt-get in a terminal to see what is wrong.   The error message was:     'Unknown Error:'(lessthansign)type'Exceptions.SystemError'>' (E: The   package google-earth-stable:i386 needs to be re installed, but I can't   find an archive for it.)This usually means that your installed package   have unmet dependencies   I am really up set: here are the technical details:


This is a simple question, but I have no idea with this. Can a commutative ring $R$ with identity be isomorphic to the product ring $R\times R$?  It is clear that this is not true when $R$ is an integral domain, because $R$ has no zero divisors while $(0,1)(1,0)=0$ in $R\times R$. But does this still false in the general case?


Difference between cell state and hidden state

LSTM cells consist of two types of states, the cell state and hidden state. How do cell and hidden states differ, in terms of their functionality? What information do they carry?


Apostrophes via Mac not saving correctly to db

I have never come across this before and it's completely stumped me!  I am using some custom front end posting scripts in Wordpress, these work absolutely fine, everything is escaped correctly before the data is saved to the db etc, but I seem to be having an issue with the apostrophe (single quote) when entered on a Mac keyboard.  An example post using various chars is entered in the text area :   a post with other chars `~":;?/[]{}-_=+!£$%^&*()'   And this is what is saved in the db (and then displayed on the page when called) :   a post with other chars `~":;?/[]{}-_=+!£$%^&*()&#039;   This is how the data is being saved to the db for clarity :  esc_attr(strip_tags($_POST['postContent'])),   If I copy and paste an apostrophe from a webpage like this for example it saves just fine :   Ain’t that strange!   But that slanted apostrophe isn't available (as standard) on the Mac keyboard, the default is the single quote '  I have never come across this issue before.  Anybody got any suggestions or workarounds as I'm at my wits end!


Getting NullPointerException on http() while running rest api test with Citrus framework

I'm trying to write integration test with Citrus framework and I keep getting NullPointerException on http() line.   And here is the stacktrace.     java.lang.NullPointerException       at com.consol.citrus.dsl.testng.TestNGCitrusTestDesigner.http(TestNGCitrusTestDesigner.java:438)       at com.test.tests.RestProviderIT.testGetUsers(RestAppIT.java:32)       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)       at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)       at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)       at java.lang.reflect.Method.invoke(Unknown Source)   public class RestAppIT extends TestNGCitrusTestDesigner{  @Autowired private HttpClient restClient;  @Test @CitrusTest public void testGetUsers() {     http()         .client(restClient)         .send()         .get("/comp/users")         .accept(ContentType.APPLICATION_JSON.getMimeType());      http()     .client(restClient)     .receive()     .response(HttpStatus.OK)     .messageType(ContentType.APPLICATION_JSON.getMimeType()); } }   I have setup the endpointconfig class and defined the restClient there. Can you help me with this issue?


Linker error / Best way to make a "helper" class in C++ which can be included in multiple files

I need a helper class with functions which are useful everywhere in my program. Ideally, I wanted a file with a single namespace like below which I can include anywhere in my program: namespace myhelpers{   int func(){     //function with implementation in one file.    } }  This doesn't work because I can't have multiple definitions of the function, so I separated into .h and .cpp and still get errors. Code below: myhelpers.h #ifndef MYHELPERS #define MYHELPERS #include <vector>  class myhelpers { public:     template <class M>     static std::vector<M> func1(double i); }; #endif  myhelpers.cpp #include "myhelpers.h" template<class M> // <--making this function a non-template function fixes the error.  std::vector<M> myhelpers::func1(double i ) {     return std::vector<double>(5); };  main.cpp #include "someclass.h" int main() {     // also want to use my helpers here.  }  someclass.cpp #include "myhelpers.h" #include "someclass.h" int someclass::func(int i) {     myhelpers::func1<double>(10.0);     return 1; }  someclass.h class someclass {     int func(int i); };  I get this linker error: Severity    Code    Description Project File    Line    Suppression State Error   LNK2019 unresolved external symbol "public: static class std::vector<double,class std::allocator > __cdecl myhelpers::func1(double)" (??$func1@N@myhelpers@@SA?AV?$vector@NV?$allocator@N@std@@@std@@N@Z) referenced in function "private: int __thiscall someclass::func(int)" (?func@someclass@@AAEHH@Z)  directory/someclass.obj 1 If I remove the template from the myhelpers function this linker error disappears, I don't see how this template function changes fixes the error, but I need the templates in my helper functions. I've spent hours looking online for the best way to have a helper class like this but can't find a good answer. Thanks.


How to access the member of OneClass which is in default package into OtherClass of another package   Project Hierarchy | |--->default |      |------> OneClass |                   |-------> public int a=1; |                              |--->another                            |----->OtherClass                                         Now want to access variable a of class OneClass to OtherClass of package another.


Replacing a toilet, when I turn the water valve off there is still water running into toilet?

When trying to replace a toilet, the water valve to toilet will not stop water supply even when valve is shut off. I have opened and closed the valve several times but water continues to be supplied to toilet.


Accessing a function through a pointer after setting the pointer to null

I do not understand how the below piece of code yields the given output.  #include <iostream> using namespace std;  class MyClass {    public:     void doSomething()    {         cout<<"Inside doSomething"<<endl;      } };  int main() {        MyClass obj;     MyClass *ptr=&obj;     ptr->doSomething();     ptr=NULL;     ptr->doSomething(); }   Output    Inside doSomething Inside doSomething  I executed a function with a null pointer and it actually calls the function. Retrieving the address stored in the ptr using cout of ptr shows that ptr is set to 0 after the statement ptr=NULL; .But it still calls doSomething().What is actually happening inside ?


Citing one book twice should show short-title second time

I use the following bib-file:  @misc{kant2007grundlegung,   title={Grundlegung zur Metaphysik der Sitten, Kommentar von Christoph Horn, Corinna Mieth und Nico Scarano},   author={Kant, Immanuel},   year={2007},   publisher={Frankfurt am Main: Suhrkamp} }   And following commands in my präamble:  \usepackage{hyperref} % For hyperlinks in the PDF \usepackage{url}        \usepackage{csquotes} \usepackage[style=verbose, backend=biber]{biblatex} \bibliography{biblio} \addbibresource{references/biblio.bib}   And later  \printbibliography   Now if I do \footcite(kant2007grundlegung} more than once, I get this:   But i would love to get the first \footcite like it is here but the next ones Just like "Immanuel Kant, Grundlegung zur Metaphysik der Sitten" with a hyperref to my references-page. Is this possible?


The Basic Rules state that you can get a possible bonus action. Is this entirely up to the dm or are there circumstances where it is guaranteed? Players handbook doesn't include the bonus action.


Android java if-statement not working for OnClickListener

Sorry if this is a nooby question, but I recently tried to catch if a float is null with the if-statement, like:  Calculate.setOnClickListener(new OnClickListener() {      @Override     public void onClick(View v) {         final EditText Capital = (EditText)findViewById(R.id.Capital);         final float Capitalf = Float.valueOf(Capital.getText().toString());         if(Capitalf == "0"){             Toast.makeText(getApplicationContext(), "Please insert something!",             Toast.LENGTH_LONG).show();         }            } });   I already tried to make a String from Capital and check it with .equals, but it wasnt working. I also tried to catch the exception with try and catch, but the app still crashed by clickling on the button with no values.  It would be great, if anyone could help me, and sorry for my bad english, Im from austria.


How do I change the font in beamer to be as the standard font in a normal LaTeX document?  As far as I have found, the standard font in LaTeX is computer modern roman, but I don't know how to set the font to this.


I've been running in circles and couldn't give a rigorous mathematical proof that the angle is x = 20°.     Any idea? This is my try:  I got the answer $x=20^\circ$ using a computer program:


Hello is there any good tutorial for real head modeling in blender 2.8 i would like to model and enliven my grandfather from old photography. Thank you very much


What is the best way to remove texture from a scanned textured photo paper?

I have a bunch of scanned old family photos where the photo paper has a texture. Unfortunately, the texture of the photo scans quite well. What is the best way to remove the texture?  (Photoshop CS5)


How can I recover files from partitioned disk?

I have a Windows machine in which I had my data files. I have partitioned the drive to install Ubuntu and accidentally installed Ubuntu in the drive where I had all my important files. How can I recover those files now?


Do I need to manually install AMD GPU driver updates on Ubuntu 20.04?

I am fairly new to Ubuntu. Do driver updates for an AMD GPU occur automatically with sudo apt update && sudo apt upgrade? Or do I have to manually install them from the AMD website? After running the command: sudo lshw -c video, this is what pops up in my terminal:        description: Display controller        product: Lexa [Radeon 540X/550X/630 / RX 640 / E9171 MCM]        vendor: Advanced Micro Devices, Inc. [AMD/ATI]        physical id: 0        bus info: pci@0000:03:00.0        version: c0        width: 64 bits        clock: 33MHz        capabilities: pm pciexpress msi bus_master cap_list rom        configuration: driver=amdgpu latency=0        resources: irq:149 memory:a0000000-afffffff memory:b0000000-b01fffff ioport:3000(size=256) memory:d1300000-d133ffff memory:d1340000-d135ffff  Thank you :)


In Harry Potter and the Deathly Hallows, Whatever happened to the Dursleys?

I mean, Harry said that Voldemort would try to find the Dursleys. But now he's dead. So what happened to them?


I get these errors after installing woeusb:  krish@krish-Inspiron-3558:~$ sudo apt-get upgrade [sudo] password for krish:  Reading package lists... Done Building dependency tree        Reading state information... Done You might want to run 'apt-get -f install' to correct these. The following packages have unmet dependencies:  grub2-common : Breaks: shim (< 13) but 0.9+1474479173.6c180c6-1ubuntu1 is installed  shim-signed : Depends: shim (= 13-0ubuntu2) but 0.9+1474479173.6c180c6-1ubuntu1 is installed E: Unmet dependencies. Try using -f. krish@krish-Inspiron-3558:~$ sudo apt-get autoremove Reading package lists... Done Building dependency tree        Reading state information... Done You might want to run 'apt-get -f install' to correct these. The following packages have unmet dependencies:  grub2-common : Breaks: shim (< 13) but 0.9+1474479173.6c180c6-1ubuntu1 is installed  shim-signed : Depends: shim (= 13-0ubuntu2) but 0.9+1474479173.6c180c6-1ubuntu1 is installed E: Unmet dependencies. Try using -f.   I also get:  The following packages will be upgraded:   shim 1 upgraded, 0 newly installed, 0 to remove and 257 not upgraded. 2 not fully installed or removed. Need to get 440 kB of archives. After this operation, 24.6 kB of additional disk space will be used. Get:1 http://archive.ubuntu.com/ubuntu/ trusty-updates/main shim amd64 13-0ubuntu2 [440 kB] Fetched 440 kB in 3s (119 kB/s)  dpkg-deb: error: archive '/var/cache/apt/archives/shim_13-0ubuntu2_amd64.deb' has premature member 'control.tar.xz' before 'control.tar.gz', giving up dpkg: error processing archive /var/cache/apt/archives/shim_13-0ubuntu2_amd64.deb (--unpack):  subprocess dpkg-deb --control returned error exit status 2 E: Sub-process /usr/bin/dpkg returned an error code (1)


What is the origin of the quantifier symbols ∀ and ∃?

It's pretty natural how they stand for the phrases "For ∀ll" and "There ∃xists", but I was wondering who was the first to use these symbols, and if they had any related meaning before this use.


How to convert SSH public key from PEM to DER format?

I'd like to convert an existing public key (generated using ssh-keygen) from PEM-format to DER-format  I tried:  openssl rsa -in ~/.ssh/id_rsa.pub -inform PEM -pubin -outform DER -out ~/.ssh/id_rsa.pub.der   Unfortunately this gives the following error:  unable to load Public Key 139946985690784:error:0906D06C:PEM routines:PEM_read_bio:no start line:pem_lib.c:703:Expecting: PUBLIC KEY   The file ~/.ssh/id_rsa.pub contains a public key; cat ~/.ssh/id_rsa.pub gives:  ssh-rsa ...... user@machine   What am I doing wrong?


Brute force attack on my servers ports burning through bandwidth

Am having some form of brute force attack being done to my server and I have a screenshot of what's happening below. Remote Address 121.14.154.206 is somehow abusing all of my ports and burning through my bandwidth at an incredible rate.  Does anyone know how to directly combat this problem even if I were to not know the IP address as I do now?  I tried blocking the address via iptables like:  iptables -A OUTPUT -s 121.14.154.206 -j DROP   but the it still continues. Maybe I'm missing something but I'm pretty desperate because I can't afford to pay the bandwidth overage charges at this rate.      EDIT Blocked all output destination port 53 traffic iptables -I INPUT 0 --dport 53 -j DROP as I use cloudflare and don't need to resolve my own DNS. I'm seeing some weird things in iptraf still    The amount of traffic has drastically reduced but I'm still getting a solid amount and there's source/destination IP addresses still coming in that are not my ip address. I'm completely baffled as to why they're even showing up because none of them are 173.234.60.106


Make outlook add a signature based on a certain value

So in outlook you can select an email address in the from field for a new e-mail. I was wandering, can I make outlook add a signature based on the value in the From field. So when i send on behalf of a certain email address i want to have a specific signature added automatically.   I would just like to know if it is possible before i spent any time trying to get it to work.


I have some confusion about t test on original result, log2(result), fold change and log2(fold change). Hope to get some expert opinion on this.  Our original results are, for example, some biomarker values measured from 10 patients in clinical study. The biomarker was measured at 3 time points. t0, t1, t2.  Here we are using t test (in our case, paired t test) to compare biomarker values at t1 and t2.  Fold change at t1 and t2 is represented using t0 as baseline value,  result(t1)/result(t0) and result(t2)/result(t0).   I'm relatively certain about t test on original result and log2-transformed result.  t test on original result: compare the mean of results between two time points.  t test on log2(result): compare the mean of log2(result), which is equivalent to one sample t test of fold change vs 1 (mean of fold change equals 1?), which is also equivalent to comparing geometric mean on original result.  However, I'm not sure about doing t test on fold change?  t test on fold change:   comparing mean of fold change(relative to t0) between t1 and t2?  Does that make sense? what's the meaning of test result?  t test on log2(fold change):   I'm not sure about this...  For further clarification:  In many cases such as differential gene expression, people use log2 of fold change to represent differences with its associated p value. Does that mean we calculate log2(fold change), BUT do t test on log2(result) to get p value OR do t test directly on fold change or log2(fold change) to get p value?  One additional question:  If we use non-parametric test like wilcox to get the p value of fold change, what should we do wilcox on? fold change, log2(fold change) ? .......  Thanks a lot in advance.


C# Break Line of Text considering Uppercase and Lowercase

I'm making in Unity a Dialog Box with Public Variables. I put the Texts and the Dialog Box Typed in sequence. I wanna just put the Text and make the code break lines automically, and the problem is that I can't just set a Limit of Characters, cause exist a big difference if I try to use a lot of Uppercase Letters or just a little I need a help to Break Line for Occupied Space, and not a Limit of Characters  Sorry if I wrote a confused question, I'm trying to learn more english ^^


Is it possible to dynamically rename spaces, (as if I was renaming a folder or file), so I can write small descriptions of the ongoing project contained in each?


Website a Broken link an google webmaster tools is giving me an error

Hi my website is only a month old but I have paid to have traffic to my site so I don't know if maybe that is the problem. I have an error in webmaster tools for a url link http://www.example.com/null.html? I never made that page so as you can understand I was a tad confused. Does anyone have any insight as to what I should do next an if I should cancel my paid traffic with the company in question or if that is normal.


Can I run Ubuntu 12.04 concurrently with Windows 7?

I want to install Ubuntu on my laptop. Will i be able to install it without removing the windows 7 OS. I would like both of them.


How to capture supermoon using a Fujifilm X100T?

I am a novice photographer. I have a Fujifilm X100T, which has a fixed 35mm-equivalent lens. As today is the supermoon lunar eclipse, I want to capture the moon with my camera. I was wondering if anyone could suggest me good tips in how to shoot such celestial objects using a mirrorless camera.