I've modified \item to insert a \vfill after each occurrence to space out bulleted lists on slides so they do not cluster in the center following this . However, to balance out my vertical spacing, I have to include a \vfill at the end of each slide.  \begin{frame}     \begin{itemize}         \item foo         \item bar         \item baz     \end{itemize} \end{frame}   I'd like to avoid this repeated effort by modifying the frame environment to automatically include a \vfill before the \end{frame}:  \begin{frame}     \begin{itemize}         \item foo         \item bar         \item baz     \end{itemize} \vfill % I want this automatically inserted \end{frame}   Thus, I need to run a command before the end of each frame. The top answer to this  details how to use  to tap into the low level commands in  to add arbitrary TeX code to the end of each slide. However, I've tried modifying the provided code and it results in placing a test string after the frame environment ends, resulting in a blank slide after each slide with the test string at the top, or before, with a blank slide before each slide with the test string at the top. Needless to say since my test string is appearing on slides by itself, when I replace it with \vfill, my the items on my slides are not spaced out like they should be.  I don't understand beamerbaseframe.sty well enough to know which command I should be patching to achieve my desired outcome. Where should I be looking to patch to add a command directly before the end of every frame?  MWE with my attempt at solving this and demonstrating the spacing I'd like to achieve:  \documentclass{beamer}  \usepackage{etoolbox}  \makeatletter \patchcmd{\beamer@doseveralframes}% <cmd> {\beamer@reseteecodes}% <search> {\beamer@reseteecodes\textbf{aaa}}% <replace> {}{}% <success><failure> \makeatother  \let\olditem\item \renewcommand{\item}{%     \olditem\vfill}  \begin{document}  \begin{frame}     \begin{itemize}         \item foo         \item bar         \item baz     \end{itemize} \end{frame}  \begin{frame} % this slide is spaced how I want     \begin{itemize}         \item foo         \item bar         \item baz     \end{itemize} \vfill \end{frame}  \end{document}


I want to create this equation in overleaf:  Here is my code trying to do so: \begin{equation} \textit{S = \dfrac{R - U}{1 - U}} \end{equation}  However, I get this:  It seems to be some sort of infinite recursion, and if you look closely, the (2) marking that this is the second equation is all the way at the end. Any thoughts on how to fix this? I'm sure I'm just missing something small. Thanks.


How can I add tags to favourites in the iOS app?

I am pretty sure it was possible to add tags to your favourite tags list in the app, but now I can't find this function any more. Similarly, I can't find a way to delete existing tags from my favourites in the app.


Perturbation theory: justifying expansion in terms of eigenstates of the basis Hamiltonian

I have been wondering why anyone ever thought that we could find an expansion for eigenstates of some perturbed Hamiltonian in terms fo those for the basis Hamiltonian. My lecturer insisted that this was because the eigenstates of the Hamiltonian are complete', however from my (limited) understanding of the mathematical basis of QM:   When you are given a Hamiltonian, it comes with the Hilbert space of functions of which it acts (subject to some conditions we impose, such as the Lebesgue square-integrability of functions) When you are given another Hamiltonian, there is no guarantee that it will act on the same Hilbert space Therefore, that the zeroth order Hamiltonian has eigenstates forming a complete basis for the space on which ti acts does not guarantee that these same eignestates form a complete basis for the Hilbert space on which the purturbed Hamiltonian acts.   As a simple example. I can imagine adding a small perturbing magnetic field to a Hamiltonian in which there initially is none, such that we lose the degeneracy in the eigenstates accounting for different spins of a particle. One could say that we have the same Hilbert space before and after but we lose degeneracy; or I would have been tempted to say that our initial Hilbert space did not have these extra dimensions corresponding to the spin states. So rather than the eigenstates of the basis Hamiltonian also forming a complete basis for the purtubed Hamiltonian, but having eigenvalue degeneracy which is lifted on the purtubration, I would have said that our Hilbert space has changed. After all, if we take the former view (i.e. a basis accouting for spin but with degeneracy) then it seems like for any problem we would need to know and account for EVERY possible system property that can be discerned. This doesn't seem reasonable to me....  NOTE:  1) My question was asked here previously:   although there is only a discussion and no conclusive answer given. I see that the distinction is important in relativistic QM, and the case of adding a potential onto a free particle Hamiltonian seems to be a special one. Although I am still not sure what the answer is for general purturbations.  2) Similar question here:   but it seems to completely avoid answering the question.


How to display a block with menu child items programmatically?

I need to create block with a list of links menu child items (only first level) of a given menu like this:   Item 1 Item 2 Item 3   With this code I can have the menu items but I don't know how to process each element to obtain the menu item title and the menu item url.  $menu_name = 'main'; $menu_tree = \Drupal::menuTree(); $parameters = $menu_tree->getCurrentRouteMenuTreeParameters($menu_name); $parameters->setMinDepth(0);  $tree = $menu_tree->load($menu_name, $parameters); $manipulators = array(   array('callable' => 'menu.default_tree_manipulators:checkAccess'),   array('callable' => 'menu.default_tree_manipulators:generateIndexAndSort'), ); $tree = $menu_tree->transform($tree, $manipulators);


Can I Become A Vampire Lord After Siding WIth The Dawnguard?

As it says in the title. Can I become A Vampire Lord after siding with The Dawnguard? Ive already completed the quest "Chasing Echoes".


Which Windows 7 log file contains device connection/disconnection information?

Windows 7 frequently plays the usb/new device connection/disconnection sound. It happens both when the computer is idle and under load. All usb device connections have been checked (though I can't rule out a bad cable yet). I thought a good way to track down the issue would be to wait for the sound and then check the log file for the latest connected/disconnected device. I just need to know which log file has this information.  Edit: I'm going to leave the answer accepted, however the issue persists. I get that sound seemingly randomly throughout the day. Anyone else have any ideas?


How would I make these curved indents in this water bottle? Picture in description.

I'm relatively new. I know how to make a water bottle starting with a circle and extruding upwards while using a combo of extrude and scaling to make indents, but how would I do something like this? I'm still trying to wrap my head around some of the photos I see out there. This is such an incredible program. Thanks for your help!


\documentclass[tikz]{standalone}  \begin{document}  \begin{tikzpicture}   \draw [-] (0, 0) edge node[above] {$\epsilon_f$} (5, 0);   \draw [<->] (1, -1) edge node[below] {$\epsilon_f$} (4, -1); \end{tikzpicture}  \end{document}   The result is :    Why does the left-end has strange arrowhead? How can I make it a normal <- arrowhead?


Unable to Resume Activity: Null Pointer Exception on button click

All i am trying to do is click on button to go to another activity through intent. But when i click on button it shows following error in my logcat.     11-23 22:14:21.761    7140-7140/com.example.admin.mysqlitest E/AndroidRuntime﹕ FATAL EXCEPTION: main       java.lang.RuntimeException: Unable to resume activity {com.example.admin.mysqlitest/com.example.admin.mysqlitest.InsertActivity}: java.lang.NullPointerException               at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2124)               at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:2139)   My code for both MainActivity and InsertActivty are here.  Main Activity  public class MainActivity  extends ListActivity  {      private StudentOperation studentDBoperation;      @Override     public void onCreate(Bundle savedInstanceState) {         Button   btListe;          super.onCreate(savedInstanceState);         setContentView(R.layout.activity_main);          studentDBoperation = new StudentOperation(this);         studentDBoperation.open();          List values = studentDBoperation.getAllStudents();          // Use the SimpleCursorAdapter to show the         // elements in a ListView         ArrayAdapter adapter = new ArrayAdapter(this, android.R.layout.simple_list_item_1, values);         setListAdapter(adapter);       btListe = (Button)findViewById(R.id.newBtn);         btListe.setOnClickListener(new OnClickListener()         {    public void onClick(View v)             {             // Intent intent = new Intent(main.this, ListViewImage.class);                 Intent intent = new Intent(MainActivity.this,InsertActivity.class);                 startActivity(intent);                 finish();             }         });     }  @Override     protected void onResume() {         studentDBoperation.open();         super.onResume();     }      @Override     protected void onPause() {         studentDBoperation.close();         super.onPause();     }  }   Insert Activity  public class InsertActivity extends ListActivity {      private StudentOperation studentDBoperation;    protected void onCreate(Bundle savedInstanceState) {         super.onCreate(savedInstanceState);          setContentView(R.layout.insert_activity);     }     public void addUser(View view) {          ArrayAdapter adapter = (ArrayAdapter) getListAdapter();          EditText text = (EditText) findViewById(R.id.editText1);         Students stud = studentDBoperation.addStudent(text.getText().toString());          adapter.add(stud);         if(true)         {             Toast.makeText(getApplicationContext(), (String)stud.getName()+"is added successfully!!", Toast.LENGTH_LONG).show();             Intent intent = new Intent(InsertActivity.this,MainActivity.class);             startActivity(intent);             finish();         }      }      public void deleteFirstUser(View view) {          ArrayAdapter adapter = (ArrayAdapter) getListAdapter();         Students stud = null;          if (getListAdapter().getCount() > 0) {             stud = (Students) getListAdapter().getItem(0);             studentDBoperation.deleteStudent(stud);             adapter.remove(stud);         }      }      @Override     protected void onResume() {         studentDBoperation.open();         super.onResume();     }      @Override     protected void onPause() {         studentDBoperation.close();         super.onPause();     } }   Any suggestions please. I am new to Android.


When one blows up a latex balloon, why does it get easier to blow once it has a little air in it (after 1 or 2 breaths)?


I want to generate some formatted output of data retrieved from an MS-Access database and stored in a DataTable object/variable, myDataTable. However, some of the fields in myDataTable cotain dbNull data. So, the following VB.net code snippet will give errors if the value of any of the fields lastname, intials, or sID is dbNull.     dim myDataTable as DataTable    dim tmpStr as String    dim sID as Integer = 1     ...    myDataTable = myTableAdapter.GetData() ' Reads the data from MS-Access table    ...     For Each myItem As DataRow In myDataTable.Rows      tmpStr = nameItem("lastname") + " " + nameItem("initials")      If myItem("sID")=sID Then         ' Do something     End If      ' print tmpStr     Next   So, how do i get the above code to work when the fields may contain dbNull without having to check each time if the data is dbNull as in ?


Contact form 7 issue with jquery - hiding/showing fields

I've followed  regarding how to hide/show Contact Form 7 fields using jQuery.  I have used this before and it worked wonders. However, on a new site for some reason it isn't working. The page in question .  The fields hide okay but don't show when a field conditioned to show is clicked! Can anyone please help me to resolve this issue? Here's the code:  HTML Code:
You are an employee or official representative of a charity or community group (i.e. you are not a third party raising funds on their behalf (required):
     [select* criteria-question-1 label_first include_blank "Yes" "No"]

The fundraising will benefit people in the Southampton and/or Hampshire area (required):
     [select* criteria-question-2 label_first id:form include_blank "Yes" "No]

Name of organisation (required):
         [text* org-name placeholder "Enter organisation name here"]

   jQuery  $( document ).ready( function() {      //Hide the field initially     $( "#hide1" ).hide();      //Show the text field only when the third option is chosen - this doesn't     $( '#form' ).change( function() {         if( $( "#form" ).val() == "Yes" ) {             $("#hide1").show();         }         else {             $( "#hide1" ).hide();         }     } ); } );


Abandoned colony of military engineer corps

I read this short sci-fi story some time ago:  The story is about an abandoned colony of military engineer corps that crash landed on a planet. They still know all about repairing equipment (they don't have any).   The other part is about the empire that is losing the knowledge about repairing the ships and equipment. One day, a ship reach the colony.


Is there a word for colloquial forms of address?

For example, "dude," "man," "buddy," "pal," etc, when used to stand in for someone's name.  "Hey, pal, how's it going?"  Is there a word for terms like these?  Or is "colloquialism" as close as we can get?


need to enum all points on a line between two points defined by coords p1(x1,y1) p2(x2,y2) which count of digit numbers are equal to predefined number:  e.g. take a points   with two digits only   (1.234456, 2.345567) - not meets a requirement    (2.34, 5.4)           - meets a requirement  (3.45,6.67567567567)  - not meets the requirement  this looks clear in terms of arithmetic.  1. find a function for that line like y = A*x + B  2. go throu all X numbers between first and second points with a step of 0.01 and check that Y is also having two digits.  but the problem is in understanding e.g. number : 5.54999999 - doesn't really accept my requirement  or just wrong representation of 5.55?  any idea how to solve the problem?


Can you remove the 'apt' command to prevent users installing what they want?

I would like to remove 'apt' from ubuntu.  I do not simply want to remove the repos, but the actual executable itself.  I know removing all the repos would cause apt to fail (be useless), but I want to make it so that someone couldn't simply add a repo and install what thy wanted.


Example of two open balls such that the one with the smaller radius contains the one with the larger radius.  I cannot find a metric space in which this is true. Looking for hints in the right direction.


Friend of mine dropped a HDD on the floor and every since the HDD won't mount when connected. It just makes this spinning noise inside for about two rounds and then it goes quiet. Obviously, he wants to salvage the data but I said to him I'll see what I can do knowing the chance of recovery is pretty slim with HDD that won't mount. Was I right about this ? Is there anything I can try I may not know about ? I tried to run gparted on it as I know gparted can detect disks that aren't mounted but connected. But no luck.


Is the sum of natural numbers equal to $-\frac{1}{8}$?

I came across the following video on YouTube: .  Basically what happens is:  \begin{align*} 1+2+3+\dotsb &= N \\ 1+(2+3+4)+(5+6+7)+\dotsb &= N\\ 1+9+18+27+\dotsb &= N\\ 1+9(1+2+3+4+\dotsb)&= N\\ 1+9N &= N  \end{align*} and therefore $N=-\frac{1}{8}$.  This is directly in contradiction with the well-known result of $-\frac{1}{12}$.  What is the problem with this reasoning? Was this result discovered earlier? Is this a consequence of Riemann's Rearrangement Theorem? Thanks in advance.  This was a repost of my previous post because some people said it was a duplicate to "Why is the sum of natural numbers $-1/12$?"


What to use for "other" or "unknown" gender?

We're showing a pie graph that would show something like 53% male, 41% female and 7% unknown.  The "unknown" category includes many reasons we can't tell: we don't know, we can't know for legal reasons, we can't know for self-imposed privacy policy reasons, our data sources don't know, etc. The reasons are quite innumerable.  This seems like a common problem so I wanted to ask if there is a common solution?


What are the new shortcuts for Windows 8?

I loved the keyboard shortcuts in Windows 7 (i.e. Win + ← moves a window to the left side of the screen), but I'm not sure on what some of the new ones might be for Windows 8.  What are all of the NEW keyboard shortcuts that I can use while working in Windows 8?


I am starting to learn about the liminf and limsup of a sequence of sets. However, I do not understand the very basics, such as why $\lim\sup A_n=\bigcap_{n\in N}\bigcup_{k>n} A_k,$ and why $\lim\sup A_n=\bigcup_{n\in N}\bigcap_{k>n}A_k.$ Can someone break these definitions down for me?  Also, why is $\lim\inf\subseteq\lim\sup$?


How do I get current date/time on the Windows command line in a suitable format for usage in a file/folder name?

Update: Now that it's 2016 I'd use PowerShell for this unless there's a really compelling backwards-compatible reason for it, particularly because of the regional settings issue with using date. See @npocmaka's     What's a Windows command line statement(s) I can use to get the current datetime in a format that I can put into a filename?  I want to have a .bat file that zips up a directory into an archive with the current date and time as part of the name, for example, Code_2008-10-14_2257.zip. Is there any easy way I can do this, independent of the regional settings of the machine?  I don't really mind about the date format, ideally it'd be yyyy-mm-dd, but anything simple is fine.  So far I've got this, which on my machine gives me Tue_10_14_2008_230050_91:  rem Get the datetime in a format that can go in a filename. set _my_datetime=%date%_%time% set _my_datetime=%_my_datetime: =_% set _my_datetime=%_my_datetime::=% set _my_datetime=%_my_datetime:/=_% set _my_datetime=%_my_datetime:.=_%  rem Now use the timestamp by in a new ZIP file name. "d:\Program Files\7-Zip\7z.exe" a -r Code_%_my_datetime%.zip Code   I can live with this, but it seems a bit clunky. Ideally it'd be briefer and have the format mentioned earlier.  I'm using Windows Server 2003 and Windows XP Professional. I don't want to install additional utilities to achieve this (although I realise there are some that will do nice date formatting).


For $n$ variables $x_1,\ldots,x_n$, the determinant $$  \det\left((x_i^{j-1})_{i,j=1}^n\right) =   \left|\begin{matrix}      1&x_1&x_1^2&\cdots & x_1^{n-1}\\      1&x_2&x_2^2&\cdots & x_2^{n-1} \\      \vdots&\vdots&\vdots&\ddots&\vdots\\      1&x_{n-1}&x_{n-1}^2&\cdots&x_{n-1}^{n-1}\\      1 &x_n&x_n^2&\cdots&x_n^{n-1}   \end{matrix}\right| $$ can be computed by induction; the image below says it shows that. I have done this before, if I submit this will I get marks?   MORE IMPORTANTLY how do I do it by induction? The "hint" is to get the first row to $(1,0,0,...,0)$.  I think there are the grounds of induction in there, but I'm not sure how (I'm not very confident with induction when the structure isn't shown for $n=k$, assume for $n=r$, show if $n=r$ then $n=r+1$ is true.  By the way the question is to show the determinant at the start equals the product $$\prod_{1\leq i<j\leq n}(x_j-x_i)$$ (but again, explicitly by induction)


showing a function defined from an integral is entire

Let $f$ be a continuous complex-valued function on the unit interval. For any complex number $z$, define $F(z)=\int _0 ^1 f(t) e^{zt} dt$.  How do I show that $F$ is entire?


It's hard to describe, but the votecell <td> tag can overlay the questions/answers in chrome. It is clear this is not on purpose as it only occurs in chrome (tested in IE and Firefox). Here's an image to show what I mean:    To recreate this, resize your window horizontally until a scroll bar is shown. Then simply scroll right and then up/down the page.  I am using "Chrome Version 43.0.2357.81 m."  So onto the question: is this the same for everyone else with this version of chrome? Will this be fixed?  Edit: While the other question produces the same error, my browser is not zoomed in. This happens regardless of zoom.


The determinant of block triangular matrix as product of determinants of diagonal blocks

I am given the following partitioned, upper-triangular matrix:  $$ \begin{bmatrix}   A_1 &*  &*  &*  &*  &*  \\    0& A_2 &*  &*  &*  &*  \\    .&  0& A_3 &*  &*  &*  \\    .&  0&  0 &...  &*  &. \\    .&  0&  0&  0& ... &.  \\    0&  .&  ...&  0&0 & A_m \end{bmatrix} $$  where each of the $A_i$ are block-matrices.  I have to prove that the determinant of this general matrix is: $$ \prod_{n=1}^m \det A_i. $$  We already proved in class that it is true for $ m=2 $ and we can use it in our proof.  Thanks for your answers!


If I run a company for children, do I run    a children's company a children company  a childrens company   I originally thought "children's company" was correct but the children are not in possession of the company as the apostrophe would suggest.


Why is learning command line imporatant?

I googled this question many times but could not find a good reason why the knowledge of command line is important.Some say GUI cannot be used always but there are no examples supporting their statement.


Why is the apostrophe positioned differently in "ones' complement" than "two's complement"?

There is a concept in computer science which deals with how to demonstrate negative binary numbers. Two methods for achieving this goal are  and .  Since I got acquainted with these methods, this question never stops coming to my mind that why the apostrophe is placed differently in ones' vs two's? I also saw many articles using one's instead. Even Google suggests that I might be mistaken!    So I want to resolve this issue once and for all. Is it a stylistic preference? What causes this difference? And please provide more examples of similar usage.


When we use a header in a Question or Answer, the header is starting a new section of text, and is not related to the previous text above it (we have bold etc for highlighting within current text).    However, currently the space above the header is less than the space below it, so the header visually appears to be more closely linked and relevant to the text above the header.    For example:      Here I write some text about conservation within urban areas.    Header to portray I'm starting a new context (or other usage)  Do mice understand algebra when given enhancement drugs?    The header is closer to the text above than it is the text it's relevant to below. I measured it's roughly 5 pixels more space from the bottom of the header to the next text, than it is from the top of the header to the text above.  Can we have the spacing slightly adjusted so (whatever space is decided) there is more above the header than below?    Something like:  margin-top: 1.5em; would do it (i.e. on h2{})    This is what the exact above example looks like with 1.5 em added to the top (using Firebug):     It's not much, but it's enough to separate the text correctly.


Atheros AR9462 WiFI very unstable & package loss

I'm having severe issues w/ package-loss and a generally bad connection w/in a WiFi-network at my uni. I'm usually encountering a package loss of ~50% and aborting connections which makes working w/ SaaS impossible.  I'm using Ubuntu 13.04 and my network-adapter is an Atheros AR9462.  Applying the nohwcrypt=1-option doesn't change anything.  Also very noticable: The connection works as intended in other networks; the problematic network uses WPA2 w/ MSCHAPv2.  Anyone can help my out here?  $ sudo lshw -class network  *-network UNCLAIMED             description: Ethernet controller        product: NetLink BCM57780 Gigabit Ethernet PCIe        vendor: Broadcom Corporation        physical id: 0        bus info: pci@0000:04:00.0        version: 01        width: 64 bits        clock: 33MHz        capabilities: pm msi pciexpress bus_master cap_list        configuration: latency=0        resources: memory:d3500000-d350ffff   *-network        description: Wireless interface        product: AR9462 Wireless Network Adapter        vendor: Atheros Communications Inc.        physical id: 0        bus info: pci@0000:09:00.0        logical name: wlan0        version: 01        serial: e0:06:e6:76:ba:89        width: 64 bits        clock: 33MHz        capabilities: pm msi pciexpress bus_master cap_list rom ethernet physical wireless        configuration: broadcast=yes driver=ath9k driverversion=3.8.0-22-generic firmware=N/A ip=131.173.74.130 latency=0 link=no multicast=yes wireless=IEEE 802.11abgn        resources: irq:19 memory:d3400000-d347ffff memory:9fb00000-9fb0ffff


Installing Ubuntu on a laptop with Windows 10

I have two drives (C, D) on my laptop and Windows 10 is installed on C.   Now, if I install Ubuntu 14.04 and choose the option "Replace Windows with Ubuntu", will it delete all current data from my D drive?


I have a "strange" behaviour with a double:  #include <stdio.h> int main() {     double var = 4724.735;     double var1 = 472473.5;     printf("var: %19.11f var1: %19.11f\n", var, var1);     var *= 100.0;     printf("var * 100.0: %19.11f\n", var);    return 0;  }   The result is:  var:    4724.73500000000 var1:  472473.50000000000 var * 100.0:  472473.49999999994   Why after the * 100.0 operation I have that result instead of 472473.50000000000?  With a smaller number, i.e. var = 724.735, the problem doesn't exist.  Are you sure is a duplicate? The  is related to javascript and here the problem is in the first decimal and only if I use an integer part of 4+ number. Thank you


When I try to update my machine using terminal it ask some questions about should it override the current file or not, or should it continue or not. So my question is how can I make it just to continue and answer yes to everything it asks, coz I dont want to manually answer those questions every time I make an update.


I am looking for a way to store a large variable number of matrixes in an array in MATLAB.  Are there any ways to achieve this?  Example:  for i: 1:unknown   myArray(i) = zeros(500,800); end   Where unknown is the varied length of the array, I can revise with additional info if needed.  Update: Performance is the main reason I am trying to accomplish this.  I had it before where it would grab the data as a single matrix, show it in real time and then proceed to process the next set of data.  I attempted it using multidimensional arrays as suggested below by Rocco, however my data is so large that I ran out of Memory, I might have to look into another alternative for my case.  Will update as I attempt other suggestions.  Update 2:  Thank you all for suggestions, however I should have specified beforehand, precision AND speed are both an integral factor here, I may have to look into going back to my original method before trying 3-d arrays and re-evaluate the method for importing the data.


Suppose the gcd (a,b) = 1 and c divides a + b. Prove that gcd (a,c) = 1 = gcd (b,c)

I am lost.   So far...  If $\gcd (a,b) = 1$, by Bezout's Formula  $ax + by = 1$  If $c|(a+b)$, then $cf = a+b$  Then,  $a (x-y) + cfy = 1$   $b(yx) + cfx = 1$  Am I on the right track? Any suggestions?


How secure is a book derived key and what can be done to strenghten it?

If you have a manual encryption system where the keying is done by extracting a key from a book, a major weakness is that an adversary can search trough all existing books to find a perfect Match and thus the key. But isn't that very theoretical since not all books can be accessed by every one on the internet?   What can be done to strenghten such a book derived key?


Show that if $f$ is analytic then $g(z)=\overline{f(\overline{z})}$ is analytic and find its derivative

Let $f:\mathbb{C}\to\mathbb{C}$ be an analytic function. Show that $g(z)=\overline{f(\overline{z})}$ is analytic and find its derivative.   $f$ is analytic then C-R equations hold. Suppose $f=u+iv$.  Then $g(z)=u(x,-y)+i(-v(x,-y))$. We can observe that C-R equations hold for $g$ as well since if we set $\hat{u}(x,y):=u(x,-y)$ and $\hat{v}(x,y)=-v(x,-y)$ we get $$ \hat{u}_x=u_x=-v_y=-\hat{v}_y \\-\hat{u}_y=u_y=v_x=-v_x $$ But this is not enough for to show that $g$ is analytic.


Is there a performance difference between a for loop and a for-each loop?

What, if any, is the performance difference between the following two loops?  for (Object o: objectArrayList) {     o.DoSomething(); }   and   for (int i=0; i<objectArrayList.size(); i++) {     objectArrayList.get(i).DoSomething(); }


How to use different domains subdomains in WP multisite?

In my multisite I would like to use these domains and domains, how do I set it up?   site1.com  sub1.site1.com site2.org sub2.site2.org


Would it be considered good practice to match the lengths of UART's Tx/Rx traces?

I am assuming the answer would be yes since Tx/Rx pins are used to send data back and forth, or is it of such a low frequency that such thing is not required?


Is there a difference between these two SQL JOINS?

Let's assume we have these three Tables:      Sailors (sid, name, rating), Reserve (sid, bid, day) and Boat(bid,name,color)  I want to JOIN the Table Sailors with the Table Reserve. Are the following statements equivalent? Is someone more effective?  SELECT S.sid, S.name, R.bid   FROM Sailors as S,      Reserves as R    WHERE S.sid = R.sid   SELECT S.sid, S.name, R.bid    FROM Sailors as S INNER JOIN Reserves  as R  ON S.sid = R.sid   Thanks in advance!


C++: can you force the access to a private member of a class?

Basically I am using a library and I don't want to redefine its classes so I can't change the member I am interested in to Public. Can you force the compiler ?


Say I have the top mesh in the image. If I subdivide it, I'll have the second mesh in the image. But what I want is the third. It has vertical subdivisions, but not horizontal. Is there a way to do this?


Is it true that the $\lim_{n\to\infty}\frac{a_1b_n+a_2b_{n-1}+\ldots+a_nb_1}{n}=ab$?

I came across a question which went like this:  If $a_n\to a$ and $b_n\to b$, then prove or disprove the following: $$\lim_{n\to\infty}\frac{a_1b_n+a_2b_{n-1}+\ldots+a_nb_1}{n}=ab$$  Here's how I approached the problem (I tried to prove it cause I thought that it is true): We already have $a_n\rightarrow a$ and $b_n\rightarrow b$. Thus, $$\begin{align}\left|\frac{\sum_{i=1}^na_ib_{n-i+1}}{n}-ab\right|&=\left|\frac{\sum_{i=1}^na_ib_{n-i+1}-nab}{n}\right|\\ &=\left|\frac{\sum_{i=0}^n\left(a_ib_{n-i+1}-ab\right)}{n}\right|\\ &=\frac{1}{n}\left|\sum_{i=1}^n\left(a_ib_{n-i+1}-ab\right)\right|\\ &\leq\frac{1}{n}\sum_{i=1}^n\left|a_ib_{n-i+1}-ab\right|\\ &\leq\frac{1}{n}\sum_{i=1}^n\left|a_i\right|\left|b_{n-i+1}-b\right|+\frac{b}{n}\sum_{i=1}^n\left|a_i-a\right|\end{align}$$ Now as $a_n$ is convergent$\implies\left|a_n\right|\leq M$ for some $M\in\mathbb{R}$. Thus, $$\left|\frac{\sum_{i=1}^na_ib_{n-i+1}}{n}-ab\right|\leq\frac{M}{n}\sum_{i=1}^n\left|b_i-b\right|+\frac{b}{n}\sum_{i=1}^n\left|a_i-a\right|$$. Now I am stuck as to how can I show that this whole expression is $<\epsilon$. Any hints as well as alternative methods are totally welcome. NOTE:  might be a similar question only that it is a special case with $a=0$.


How to prove that $\neg((A\cap B)\cup (\neg A \cap C)) = (A\cap\neg B)\cup (\neg A\cap \neg C)$

How can I prove the following statements are equivalent using laws of set theory?  $\neg((A\cap B)\cup (\neg A \cap C)) = (A\cap\neg B)\cup (\neg A\cap \neg C)$  I managed to use De Morgans laws to simplify the first statement down to:  $(\neg A\cup\neg B)\cap (A \cup \neg C)$ but I have no idea where to go from here.


How did Sally from Oblivion destroy the Moon

How did Sally destroy the Moon in the 2013 movie Oblivion?


How to add an alias to a command in terminal?

By typing a manually specified command in terminal I want to execute some other command.  How could add an alias to a command? Can i do that with the help of the terminal or should I edit some kind of file?


When speaking of a group of people and referring to a body part of which there is only one (e.g. head, nose, mouth, etc.), do we use the singular or plural form? Which of the following is correct, or are both possible?  Our stomach is full.  Our stomachs are full.


Python: what difference between 'is' and '=='?

I'm trying next code:  x = 'asd' y = 'asd' z = input() #write here string 'asd'. For Python 2.x use raw_input() x == y # True. x is y # True. x == z # True. x is z # False.   Why we have false in last expression?


I noticed that my disk in my Linux ubuntu server is already full and one that's causing it is inside my /var/log folder.  I have these files inside my /var/log:    I don't know what files are these, but are these safe to delete?  There's a bunch of alternatives.log.x and other .gz files. Can i delete those?  Thanks.


Find out current working directory of a running process?

What command(s) can one use to find out the current working directory (CWD) of a running process? These would be commands you could use externally from the process.


Lets say we have a single plate that has a charge of $+Q$ on it. A plate with charge $-Q$ is infinite distance away. Will the plate with $+Q$ have a capacitance associated with it? Why or why not? I was thinking that because the distance between the plates is infinity, the capacitance is zero, but according to my TA, that is not the case. There is always some sort of "absolute" capacitance for the plate with $+Q$ (a capacitance will exist between the plate and air?). Can someone help me out in understanding this?


How do I get the current location of an iframe?

I have built a basic data entry application allowing users to browse external content in iframe and enter data quickly from the same page. One of the data variables is the URL. Ideally I would like to be able to load the iframes current url into a textbox with javascript. I realize now that this is not going to happen due to security issues.  Has anyone done anything on the server side? or know of any .Net browser in browser controls. The ultimate goal is to just give the user an easy method of extracting the url of the page they are viewing in the iframe It doesn't necessarily HAVE to be an iframe, a browser in the browser would be ideal.  Thanks, Adam


Show that the sequence is convergent to $(a_1a_2^2)^{1/3}$.

If $\{ a_n\}$ be a sequence of positive real numbers such that $$a_n=\sqrt{a_{n-1}a_{n-2}},n>2$$ then show that the sequence is convergent to $(a_1a_2^2)^{1/3}$.    How I proceed: Take square of $a_n$ so I get $a_n^2=a_{n-1}a_{n-2} \implies a_n^3=a_na_{n-1}a_{n-2}$. Then stuck. Please help.


natbib with superscript option does not handle optional parameter well

I am using natbib for citation like so:  \usepackage[super, comma, numbers, square, sort]{natbib}   With normal citations, e.g.   \cite{some-ref}    this works as expected. But when i try to pass an optional argument like so:  \cite[Page 2]{some-ref}   it comes out wrong. The reference-number is put into brackets with superscript, but the optional argument is put outside of the brackets like normal text, like if I would write   \cite{some-ref}Page 2   How can I fix this? I want to have the whole citation, including the optional argument as superscript.


Which HTTP/HTTPS www/no-www versions should be registered in Search Console when using Cloudflare Flexible SSL

I have a question about the use of Cloudflare Flexible SSL and the settings in Google Search Console.   Say I use Flexible SSL on my website example.com. I have wrote a redirect from http to https in my .htaccess so every request on http://example.com redirects to https://example.com.  What do I need to register on Search Console? Right now I have registered all four possible URLs, meaning http://example.com, https://example.com, http://www.example.com and https://www.example.com.


I just noticed something interesting: once I log in to any one Stack Exchange site, if I go to another Stack Exchange site where I have an account, I'll automatically get logged in without having to click "log in" and enter my OpenID. I see the "Welcome to Q&A..." banner pop up and then a second later, the page gets reloaded and I see my account information at the top. Is this a new feature of the SE network? (Or has it been around for a while and I just haven't been paying attention?)  EDIT: It doesn't seem to happen with Super User...


Number of real roots of $2 \cos\left(\frac{x^2+x}{6}\right)=2^x+2^{-x}$

Find the number of real roots of   $ \cos \,\left(\dfrac{x^2+x}{6}\right)= \dfrac{2^x+2^{-x}}{2}$  1) 0  2) 1  3) 2  4)  None of these  My guess is to approach it in graphical way. But equation seems little difficult.


Feature Selection for Regression Models in R

I’m trying to find a feature selection package in R that can be used for regression. Most of the packages implement their methods for classification using a factor or class for the response variable. In particular I’m interested if there’s something using random forest for that purpose. Also if someone knows some good paper in this field would be welcome.


Imagine a sphere of black holes surrounding a piece of space. Will this piece be separated from the rest of normal spacetime (at least for some time, till these black holes finally attracted themselves).  So, seen from the outside, we have a black hole, but with a non-singular interior.  Is this possible?


Statistics: Joint Moment Generating Function Question

I've got another moment generating function question. I've uploaded the question as a link.   Joint Moment Generating Question:   My Solution: Not exactly sure how to approach this one  Also just another clarification. If the  correlation between random variables X and Y is zero, are X and Y are independent? I do know that if Covariance(X,Y) = 0, X and Y are said to be uncorrelated. But how about for correlation?  Thank you so much for your help guys!! Much appreciated =)


In java world you have log4j and a a pretty decent logging framework, is there anything like that for C#/.NET?


What are the restrictions on the use of Slayer's Prey?

In the recent book Xanathar's Guide to Everything, there are some subclasses/archetypes added for Rangers, among them the  (p. 43), which gives some specific helpful features. Hunter's Sense  At 3rd level, you gain the ability to peer at a creature and magically discern how best to hurt it. As an action, choose one creature you can see within 60 feet of you. You immediately learn whether the creature has any damage immunities, resistances, or vulnerabilities and what they are. If the creature is hidden from divination magic, you sense that it has no damage immunities, resistances, or vulnerabilities. You can use this feature a number of times equal to your Wisdom modifier (minimum of once). You regain all expended uses of it when you finish a long rest.  The limitations on use are clearly spelled out. Slayer's Prey  Starting at 3rd level, you can focus your ire on one foe, increasing the harm you inflict on it. As a bonus action, you designate one creature you can see within 60 feet of you as the target of this feature. The first time each turn that you hit that target with a weapon attack, it takes an extra 1d6 damage from the weapon. This benefit lasts until you finish a short or long rest. It ends early if you designate a different creature.  So from this, I would interpret it as it being able to switch from creature to creature at will, but there is no guidance as to what happens if the creature under the mark dies, or if you can carry it (so to speak) from encounter to encounter. Is there a limitation on the use of Slayer's Prey in the wording that I am missing? Or is this a basically a multiple use feature? (i.e., you can designate any creature as a bonus action, with no limitations on uses per day)? The extra d6 seems a little overpowering at lower levels, and somewhat meh at higher levels. FWIW, the GM basically allowed it as multi-use for the session, and was going to also try to find clarification.


Identify a story about a detective with a psychic hand

I read this story back in the 1980s.  It was from an anthology on fantasy from a used book store so it was likely written the 1960s.  The main character had a psychic ability, basically an invisible hand and he could manipulate things about an arms length away.  In the end, he kills his enemy by squeezing his heart with his psychic hand.  I recall the detective lost his hand hunting asteroids and had to change his career.


Grub disappeared after looking at boot options

A few hours ago, I went in my ACER laptop boot options, for no particular reason. I did not change anything, but noticed that Windows 10 was first in the boot order list while Ubuntu was not there at all. I escaped, and thought Grub would show up... but it did not and Windows booted.   Since then, I've been unable to boot on Ubuntu. Windows automatically boots and Grub does not show up anymore.   In the boot menu, there is only Windows. I'm on UEFI and secure boot is enabled - it wont let me disabled it in the options.  Prior to that, everything used to work just fine. I'm confused!   EDIT : Problem fixed, see my answer.


Do Stack Overflow users ever have some sort of social events where they can meet and talk in person? If not, is there interest in such an event?  I thought it would be nice to meet people in real life.  I made a chat room for this question:


Using $\epsilon$-$\delta$ to show a property of a function

Using the definition of continuity and the $\epsilon$-$\delta$ definition of a limit, how would you proceed to show that the following statement holds true?  Let $f : \Bbb{R} \rightarrow \Bbb{R}$ be a continuos function at $x=0$, with the property that if $x\neq 0$ then $f(x)\geq 0$. Then $f(0) \geq 0$.  My attempt so far has been to assume that $f(0) \lt 0$, which means that $$f(0)=\lim_{x\to 0} f(x)\lt 0,$$ because of the continuity at the given point. Furthermore, I think this means that when $x$ approaches $0$ from both sides, at some point the value $f(x)\lt 0$, thus forming a contradiction.   I can't seem to see what to do afterwards. Is this a way of approaching the problem? And how will the $\epsilon-\delta$ definition come into play if my approach is usable?


Why are correlations acceptable in the small but considered "data dredging" in the large?

This question is going to be a bit more vague than I usually ask on StackExchange sites, but it keeps coming up in my life so I'm going to ask it.  Suppose I have a dataset of N datapoints that are each a vector of K values. Then for each pair of columns of the data I compute some association measure like correlation, and for every pair whose association measure exceeds some threshold I declare, "These fields are associated---something's going on here!"  Then somebody will ask "How big is K?" and I'll say, "K=100,000" and they'll dismiss the correlations as merely a result of "data dredging".  But if I'm making far fewer comparisons (say K=10) then people will be less likely to level that charge against my findings.  So my question is this: why are correlations acceptable in the small but not in the large? Why are the comparisons considered less valid when there are more of them? Shouldn't our inability to trust large numbers of comparisons mean we also shouldn't trust small numbers of comparisons?


When does an expired domain become available for others to register?

I'm trying to purchase a domain name that was registered and apparently already expired. This is its status:  Status: clientHold http://www.icann.org/epp#clientHold Status: clientTransferProhibited http://www.icann.org/epp#clientTransferProhibited Status: redemptionPeriod http://www.icann.org/epp#redemptionPeriod Updated Date: 14-oct-2015 Creation Date: 01-sep-2014 Expiration Date: 01-sep-2015   From what I'm seeing from ICANN policies, it should already be available to be registered by third parties, but maybe I'm missing something. When will it become available for me to register it?


Traveling through Schengen area with valid permit card but without a passport

I am a non-EU citizen with Czech residence permit (pink card).  I am applying for a visa (UK) and the visa center (in Czech Republic) will hold my passport during the process, so I won't have my passport for some time. At the same time, I have travel to Switzerland for business purposes. My Czech permit allows to do it, since Switzerland is in the Schengen area, but I won't have my passport with me.  What will happen if I am caught by border security (or Swiss police) without my passport (but with a valid permit card)? I will also have my internal national passport (but it is not officially recognized, afaik) and a scan of my international passport with me.  In my experience, nobody have ever checked my passport on Prague -> Switzerland flights, but I want to know what are the consequences if a random check happens.


One of the stated reasons for knowing assembler is that, on occasion, it can be employed to write code that will be more performant than writing that code in a higher-level language, C in particular.  However, I've also heard it stated many times that although that's not entirely false, the cases where assembler can actually be used to generate more performant code are both extremely rare and require expert knowledge of and experience with assembly.    This question doesn't even get into the fact that assembler instructions will be machine-specific and non-portable, or any of the other aspects of assembler.  There are plenty of good reasons for knowing assembly besides this one, of course, but this is meant to be a specific question soliciting examples and data, not an extended discourse on assembler versus higher-level languages.  Can anyone provide some specific examples of cases where assembly will be faster than well-written C code using a modern compiler, and can you support that claim with profiling evidence?  I am pretty confident these cases exist, but I really want to know exactly how esoteric these cases are, since it seems to be a point of some contention.


Printer Data Cables with *suspected* IC boards

I've one found of those printer data cables that have some kind of pair integrated circuit along them, one at each end just before the plugs, I was wondering if there is a less invasive way of determining the specs for them other than slicing their enclosure.  I'm sure it will be fine in doing so, and I know I'm over thinking this just a tad but I just feel uncomfortable with a pair of IC that isn't detected by windows, and if it were some kind of spying boom doogle it would probably have some kind spring/pressure based mechanism that wipes the microcontroller's programming or something of that nature  complete novice in this field apologies for any misuse of terminology and or incorrect terminology.


How to get a mission to continue the story?

I got Destiny and I did the first mission where the guy wakes up and has to get to his ship. Now I'm stuck in the tower. There are no mission notifications or anything. How can I get the next mission and start it?


I have a question on sudo -i and sudo -s on APPLE. When I use sudo -i, it will change to "root" this user. I use sudo -s and this has the similar situation but there is a "bash-3.2#" on my terminal. I don't know where it is and what it is meaning for. This is the first question.  I normally think it show as "mycomputername:~ myusername$". The first string is "mycomputername" and the second string is "myusername" which is also only one user on my computer. There is a weird scenario when I switch to "root" via "sudo -i". It shows up "googleapis:~ root#". I don't know why it looks like this. Why it shows up "googleapis"?


how to convert a string to a float and then use it in a conditional operation?

I'm trying to write my own bash script that detects if Debian's release version is less than 9.0  code:  VERSION=$(cat /etc/debian_version) echo $VERSION  if [ "$VERSION" -lt "9.0" ]; then     echo "Debian version is less than 9" else     echo "Debian version is greater than 9" fi   but the error i'm receiving is:     ./test.sh: line 4: [: 8.2: integer expression expected   basically, $VERSION is a string type, but it's 8.2. I'm trying to make it become 8.2, but as a float. so I can use <= on it.


How can I put an image/text/gif on top of an already existing gif?

I have added two gifs in my code and I am trying to add text on top of it, but it ends up being on top or the bottom of the gif. How can I add something on top of a gif?  I've tried adding text and positioning it on top of the gif using relative position and absolute but that does'nt work.   HTML:  <! DOCTYPE html>     <meta charset="utf-8">  <link href="taniaWebsite11.css" type="text/css" rel="stylesheet"> <title> </title>                 CSS:  img{ height:1000px; width:1000px;  }  body.mainpage12{ background-color:black; }


"This question is not available, it may have been deleted" when submitting a question on the Android app after losing internet connection

Upon typing out  on my Android device, I was greeted with the following screen when clicking to submit the question:    When clicking Cancel, I was taken back to the questions page with my question nowhere to be seen. Fortunately when checking here on my PC I could see the question, but if this had indeed failed to submit it offered me no way of getting back to the question I'd just typed out.  Could this be changed so that if the app thinks the question failed to submit it offers the ability to copy the content to the clipboard? I probably wouldn't have bothered to type it out again any time soon had it indeed failed to submit and been lost completely.


Number of cores displayed in System Monitor

Why does my System Monitor show that I have 32 CPUs when my lscpu command shows that I have 96 CPUs?  I believe that my System has 48 Cores which makes it 96 with Hyper-threading.


Which Doctors have enjoyed longest and shortest period of their lives?

As the title says, which incarnations of the Doctor lived longest and shortest? Here, I am not talking about age, but the period. For example, when The Master increased the age of The Doctor by 900 years, that would be counted as 1 year.


Is there a way to run a PC Steam game on my Mac

I just replaced my Macbook for an IMac. I saw that they released Splinter Cell Chaos Theory on Steam, complete with MP :-O . It is only for windows however. Is there a way I can run some sort of program or emulator to play this game? My over all computer knowledge is somewhat limited. You might have to break it down Barney Style. The game should not require  much power to run, it was an XBOX/PS2 game when it came out. Any help with this would be greatly appreciated.


#!/usr/bin/python  x = [0, 2, 1, 1, 1, 1, 3, 3, 5, 1, 1, 4, 1, 2, 1, 2, 2, 2, 1, 7, 2, 1, 0, 3, 1, 1, 2, 0, 1, 0, 1, 1]  y = [1 for z in x if z > 0]  #WANT TO DO #y = [1 for z in x if z > 0 else 0]   I want to do both an if statement and an else statement within a list comprehension in Python. How can I do this?   I figured out y = [int(bool(z)) for z in x], but i was wondering if you could do both an if and an else statement in a list comprehension.


Is a world with constant/decreasing entropy theoretically impossible?

We can imagine many changes to the laws of physics - you could scrap all of electromagnetism, gravity could be an inverse cubed law, even the first law of thermodynamics could hypothetically be broken - we've all imagined perpetual motion machines at one time or another.  However, the second law of thermodynamics seems somehow more 'emergent'. It just springs out of the nature of our universe - the effectively random movement of physical objects over time. Provided you have a Universe whose state is changing over time according to some set of laws, it seems like the second law must be upheld, things must gradually settle down into the state of greatest disorder.  What I'm particularly wondering is if you can prove in any sense (perhaps using methods from statistical mechanics)? Or is it possible to construct a set of laws (preferably similar to our own) which would give us a universe which could break the second law.


I am a little confused as to how we can convert from cycle notation to two row notation. say we have, $(3 1 2 4 5)(4 2 1 3)$, $3$ chooses $1$ but $2$ also chooses $1$ and the function has to be a bijection. How would I then express this in two row notation (note: I don't know if this example actually works but my point is how do I read this because in my eyes $1$ is being chosen twice).


Splitting and transposing table data using SQL Server

I have data in the following structure   ID   Sub_ID  123  '1;2;3'   I would like to create a table with the following structure  ID Sub_ID 123 1 123 2 123 3   Is there any way to process this task on a Microsoft SQL-Server?  THX Lazloo


How to fix "dpkg: error processing package systemd (--configure):

I recently upgraded from 16.04 to 18.04, and I think something went wrong with the upgrade. When I run sudo apt-get install -f, it tries to upgrade udev, but then I get repeated messages about "unsafe symlinks" and this error message:  dpkg: error processing package systemd (--configure):  installed systemd package post-installation script subprocess returned error exit status 1 Errors were encountered while processing:  systemd E: Sub-process /usr/bin/dpkg returned an error code (1)   I was getting a similar message about systemd-shim earlier, but managed to fix it. I also had a problem with incorrect /etc/apt/sources.list, but I think that's fixed as well.  I was getting various error messages during the upgrade process, and at the end I had to "destroy" something instead of finishing the upgrade properly (unfortunately I don't remember exactly what happened.) Any ideas as to what's going on?


I'm running an Ubuntu 18.04 server and was trying to disable every update and upgrade there is but am still not quite sure on what exactly to do. Ignoring the security aspect that comes with it, how do I disable automatic updates for Ubuntu 18.04, MySQL, Apache and PHP via command line?  As far as I know, MySQL Apache and PHP should not automatically update when I disable automatic updates / package list updating on Ubuntu, is that correct?  For Ubuntu, the only things I found were in /etc/apt/apt.conf.d/10periodic :  APT::Periodic::Update-Package-Lists "1"; APT::Periodic::Download-Upgradeable-Packages "0"; APT::Periodic::AutocleanInterval "0";   which I would set to 0.   APT::Periodic::Update-Package-Lists "1"; set to 0 basically makes it impossible for any package / software e.g. MySQL Apache and PHP to update, right?  And in /etc/apt/apt.conf.d/50unattended-upgrades :  Unattended-Upgrade::Allowed-Origins {           "${distro_id}:${distro_codename}";           "${distro_id}:${distro_codename}-security";           "${distro_id}ESM:${distro_codename}"; //        "${distro_id}:${distro_codename}-updates"; //        "${distro_id}:${distro_codename}-proposed"; //        "${distro_id}:${distro_codename}-backports"; };   In there, I would just comment out line 2-4.  Anything else I would need to do or are all automatic updates / upgrades disabled after this?


Where can I ask questions that are too stupid to be asked on StackOverflow?

Sometimes I get downvoted for basic programming questions and people tell me to read a textbook. What type of question is simply too basic for Stack Overflow, and is there a site in the network that would entertain these questions?


Why does community user vote to close a question?

was closed by community moderator. But according to  that only happens when the user was deleted before the question was closed, which is not the case. Because he must have gold badge to close the question right away, but in that case his name will be simply unlinked. It's not because the asker deleted his account either. And it's not an .  Why does that happen?


How to allow users to rotate a picture upon upload?

On my site, users are able to upload images one at a time as nodes of content type Picture.  The Picture content type uses the core (D7) image field.  Some of my users have pictures which are taken such that they need to be rotated 90 or 180 degrees.  These users do not have easy access to image editing software, so I'd like to allow users to rotate the image on the edit node screen.  After the image is saved, I want to apply an image style (that forces scaling and cropping, etc.)  I'm also using the  module to allow users to crop the image if necessary.  Is there a module for this, or some easy way to do it in code?  (I'm not a developer.)  I would prefer to have a solution where I can present users with a button to rotate the picture; I don't want to give them a full image editor.  If such a solution is impossible, is there an easy way to rotate the images on the back end (for admins)?  I'm happy to do it myself, as I have to check all the images anyway.


compare value from HashMap with a String

String keys = "3|PNSN--G";        System.out.println(keys);     System.out.println(test.get(keys));     if ("c"==test.get(keys))         System.out.println("Sucess");     else         System.out.println("Failed");        3|PNSN--G     c     Failed   Why i cant compare it? If "c" is a String and value is a String "c" why it fails?


How to prove $\mathbb{R}\times \mathbb{R}$ is equipotent (i.e. there is a 1-1 map between the two) to $\mathbb{R}$? The way to prove $\mathbb{N}\times \mathbb{N}$ is equipotent to is to $\mathbb{N}$ is to construct a function of two independent variables and one dependent variable, e.g. $g(m,n)=(m+n)^2+n$, and prove that it is bijective. How can we construct such a function for $\mathbb{R}\times \mathbb{R}\to\mathbb{R}$, or $\mathbb{C}\to\mathbb{R}$? It seems that we can use fractals to cover a two dimensional plane with a line. But what exactly are such fractals? And how can we write them with functional expression?


Ensure a table or figure is in the right (sub)section

First of all, related:    Here it is said how to fix a position to the exact place you position it in the latex document. I was wondering if it is also possible to float it within a \section or \subsection, but keep it fixed to that (sub)section. In other words: let it float within only a certain (sub)section and not the entire document, so I am certain table X will end up somewhere in section X and table Y will end up somewhere in section Y.   EDIT The question was already answered here:


Why won't my cp command copy whole directories?

I've tested the cp command, and it will only copy individual files. For example, I typed cp followed by the exact filename, then typed the directory and the file got copied. However, when I typed the directory and the destination directory, nothing on the computer changed. I thought cp was supposed to copy contents in the directories.  I've tried this multiple times.


My hostname is localhost, reported by hostname command, and terminal prompt root@localhost:~#.  How can i change it to mismis.com with mismis alias? and what is the proper configuration.  I confused after reading some articles on web.  My /etc/hosts:  127.0.0.1       localhost 127.0.1.1       srv345.myweb.com      srv345 178.162.231.61  janstone.mismis.com    janstone # The following lines are desirable for IPv6 capable hosts ::1     localhost ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters


Finding the distance between two guides in Photoshop

Is there any way, aside from looking at the rulers and measuring by eyesight, to find the precise distance between one guide line and another?


How can I prove that $(\dfrac{( n+1)}{2})^n$ is greater than $n!$ where $n$ is natural number greater than $1$?

How can I prove that $\left(\dfrac{ n+1}{2}\right)^n$ is greater than $n!$ where $n$ is natural number greater than $1$?  My work We know that $n^n >n!$ because $n!$ is the way for filling without any repetition and $n^n$ is the way of filling without any restriction. But here I can't find relation of inequality between $n^n$ and $\left(\dfrac{n+1}{2}\right)^n$. Can I prove it this way or some other way would help? Can you prove it by some other way than mathematical induction?


I am trying to implement template singleton pattern but I got the following error. How should I overcome this error?  Below is singleton_template.h  #include <iostream> #include <string> /* * Burada yapılan herşey ".h" dosyası içerinde olmalı */ template<typename T> class Singleton { private:    static T* _instance;    Singleton(const Singleton&);    Singleton & operator=(const Singleton& rhs);  protected:    Singleton();  public:    static T* getInstance()    {      if(!_instance)      _instance = new T;      return _instance;    }     void destroyInstance()    {        delete _instance;        _instance = NULL;    } };  template<typename T> T* Singleton<T>::_instance= NULL;   Here is the singleton_template.cpp  #include <iostream> #include <string> #include "singleton_template.h"  class GKM : public Singleton<GKM> { public:    GKM()   {     std::cout << "Single GKM created"<<std::endl;   }   virtual void initialize(){return;}  };  class Turnstile: public GKM  { public:   Turnstile(){std::cout << "Single turnstile created add: "<< this<<std::endl;}   virtual void initialize(){std::cout <<"Turnstile"<< std::endl;}  };  int main() {   GKM* trn= Turnstile::getInstance();   trn->initialize();   return 0; }   Here is what I get after a failed compilation:     /tmp/ccfD0Xgx.o: In function GKM::GKM():   singleton_template.cpp:(.text._ZN3GKMC2Ev[_ZN3GKMC5Ev]+0xd): undefined   reference to Singleton<GKM>::Singleton() collect2: error: ld   returned 1 exit status


Finding a distribution from the sum of two random variables in a joint trinomial distribution

Let X and Y have a trinomial distribution with join probability function:  $ f(x,y) = \frac{n!}{x!y!(n-x-y)!}p^x q^y (1-p-q)^{n-x-y}; x=0,1,...n, y=0,1,...n$  Let $T=X+Y$  I can't seem to figure out where to go exactly. Here's where I am at:  $\sum_{x=0}^{n} \frac{n!}{x!y!(n-x-y)!}p^x q^y (1-p-q)^{n-x-y}\mbox{ substitute in Y=T-X}$ $\sum_{x=0}^{n} \frac{n!}{x!(t-x)!(n-t)!}p^x q^{t-x} (1-p-q)^{n-t}$   I think I could I figure out the algebra.. if I could just see what to do with the summation. I know I have to involve a t somewhere, but I'm not sure. Maybe somebody could just show me how to set up my summation correctly with the substitution?


I am trying to draw an oriented regular polygon with TikZ/automata using the following code:  \begin{tikzpicture}[shorten >=0.5pt, node distance=1.2 and 1.5, on grid,auto,>=stealth'] \def \p {10}  \pgfmathsetmacro{\pp}{\p-1} \node[state,accepting] (0) at (2.5,0) {};  \foreach \s in {1,...,\pp} {   \node[state] (\s) at ({360/\p * (\s)}:\R) {}; }  \foreach \s in {1,...,\p} {    \pgfmathsetmacro{\ss}{\s-1}    \path[->] (\ss) edge (\s); } \end{tikzpicture}   After compiling, some the arcs are not departing from the center of the corresponding node. How can I accomplish this? (I tried to add the parameter anchor=center to each node but the result is the same).


How to disable the "sign in to wifi network" page?

How can I disable the page "sign in to wifi network" that appears when connected to a wifi network that requires login?  I dont want to disable wifi. I just dont want this page to appear. Is it possible?


How much space does Ubuntu automatically take when installing alongside Windows>

If I don't partition my drive before installing and I choose to install alongside Windows 10, how much space will Ubuntu automatically take?  If I do create a partition, how do I also create a swap partition for it?  Will it automatically create a swap partition?


sql> SELECT * FROM runners; +----+--------------+ | id | name         | +----+--------------+ |  1 | John Doe     | |  2 | Jane Doe     | |  3 | Alice Jones  | |  4 | Bobby Louis  | |  5 | Lisa Romero  | +----+--------------+  sql> SELECT * FROM races; +----+----------------+-----------+ | id | event          | winner_id | +----+----------------+-----------+ |  1 | 100 meter dash |  2        | |  2 | 500 meter dash |  3        | |  3 | cross-country  |  2        | |  4 | triathalon     |  NULL     | +----+----------------+-----------+   What will be the result of the query below?  SELECT * FROM runners WHERE id NOT IN (SELECT winner_id FROM races);   The above query will return nothing because the races table contain null winner_id. But what is the reason behind this?


index.php  <?php include("header.php"); ?>   header.php  <?php echo"Lägg Till"; ?>   result  L?gg Till   The document is utf8 within the head tags and all, it's a php thing, the problem only occurs when i get text from include, i cannot have ÅÄÖ in included php files , how do i make it work?


What's wrong with this "backwards" definition of limit?

Can anyone please give an example of why the following definition of $\displaystyle{\lim_{x \to a} f(x) =L}$ is NOT correct?:  $\forall$ $\delta >0$ $\exists$ $\epsilon>0$ such that if $0<|x-a|<\delta$ then $|f(x)-L|<\epsilon$  I've been trying to solve this for a while, and I think it would give me a greater understanding of why the limit definition is what it is, because this alternative definition seems quite logical and similar to the real one, yet it supposedly shouldn't work.


Can parallel lines meet?  There is a person that takes a calculus course with us, and every time we ask him for something he answers us with I'll do it when two parallel lines meet each other. So I decided to give him a proof of this so that he won't say it anymore (it is annoying).  I've heard that two parallel lines can meet each other at infinity, is this true?


How do I get Power Armor training in Fallout New Vegas?

I've found some power armor, but I can't use it yet without training. I assumed that the Brotherhood of Steel would train me, if they like me enough.  I've completed the Brotherhood of Steel quest series for the overseer (the original one, I did not overthrow him), but I did not get any Power Armor training. What do I have to do to be able to wear Power Armor?


Javascript - succinct way to assign another value to variable if first value is not truthy

I have a function that may return a value or may return null and I want to assign it to a variable. So at the moment I've got  someVar = (someFun())   ? someFun()   : "foo";   Is there a shorterer way of doing it, where I don't have to call the function twice, or add an extra variable like:  funResult = someFun(); someVar = (funResult)   ? funResult   : "foo";   Basically, something like:  someVar = someFun() | "foo"


A locally optimal strategy means globally optimal? Coin flipping

You can ﬂip the coin $100$ times, but instead of having a ﬁxed stake, you can freely choose the stake for each ﬂip, just before the ﬂip. You start out with $\$$$100$. After each ﬂip, if it comes up heads you win twice your stake (and your stake is returned), and if it comes up tails you lose your stake (if you start with $x$ and select a stake of $s$, then after the ﬂip you will either have $x−s$ or $x+2s$. You can never make your stake larger than your current balance.  My goal is to find an optimal strategy $(s_1, s_2, s_3, ..., s_{100})$ to maximize an expected profit. It turns out that the optimal strategy is $S=x$.  I understand that the expected balance after a single coin flip is:   $$\frac{x-s}{2} + \frac{x+2s}{2} = \frac{2x+s}{2}$$  which is maximized when $s = x$. To me, this makes me think that $S = x$ is a locally optimal choice, but is this sufficient to conclude that I should always take $S = x$ for every flip or was it just coincidence (that locally optimal choice leads to globally optimal solution)? I think the good analogy is a greedy algorithm (e.g the greedy algorithm makes a locally optimal choice to find a global optimum - this doesn't work most of the time).


I've recently started a sourdough starter culture (using equal parts water and spelt flour) and have used it in a sourdough bread recipe I got from the . I've halved the recipe in the article so that I am using 500g Brad Flour, 150g Starter, 10g Salt.  After following the instructions, I've found the dough to be a bit sticky and unmanageable to the extent that I had to add a significant amount of flour in order to make the dough workable. The dough seemed to be rising perfectly well and I baked the loaf (which turned out a bit doughy)  Is the ratio given in the recipe OK or am I doing something wrong - how can I make the dough more manageable? (e.g. giving the dough more time to rise)


Red Hat Linux has grub-md5-crypt for setting up a grub password. How to do the same in Ubuntu 13.10 ?


How much magnetic field will be required to levitate a human?

According to this video:     it should be possible to levitate humans because the water in our bodies is diamagnetic - but it is stated (at 1:14) "although the magnetic fields required would be enormous".  So I wonder: how strong of a magnetic field would you need to levitate a human (using only the diamagnetism of the water in our bodies)? And (maybe easier to do) - how strong was the field used to levitate the frog in the video?  There must be a way to compute the amount of magnetization that occurs, and how that results in a repulsive force; but I don't know where to begin. Any suggestions?


Magic wormhole install. Unmet dependencies. Depends on packages that is not going to be installed

I'm trying to stall magic wormhole on 18.04. But I get this error:  I tried to resolve it by installing those missing packages, but no go. Why does linux make it so difficult to figure out how to fix these problems.


Any good math calculators online to find inverse laplace transforms? Specifically $s\log\frac{s+4}{s-4}$

I think I have found the final answer $\left(4 \left[\frac{2t \cosh(4t) - \sinh(4t)}{t^2}\right]\right)$ but need to verify it.


It is possible to use do as an auxiliary verb to denote emphasis:     I do like ice cream   Is it also possible to use it when do is the main verb as well? E.g.:     I did do (it).      He does do (it).      I do do (it).   Are the sentences above acceptable? Do they sound unnatural?


Consider two sentences:     Smoking cigarette can cause cancer.   Smoking cigarette may cause cancer.   What is the difference between these two sentences?  If can is used then does it mean that it will surely cause cancer?


How can I verify that the second static method was invoked in the first static method?

How can I verify that the second static method was invoked within the first static method using the PowerMock framework?  public class A {     public static int firstMethod(String s) {         return secondMethod(s, 10);     }      public static int secondMethod(String s, Integer i){         return /*some expression*/;     } }   Update:  I haven't see yet any solution using the PowerMock framework. And definitely there are no acceptable answers for me in the .  Update2:  @Test public void test() {     PowerMockito.mockStatic(A.class);     Mockito.when(A.secondMethod(Mockito.anyString(), Mockito.anyInt())).thenReturn(1000);     A.firstMethod("test");     PowerMockito.verifyStatic(); }


Unused bibliography entries - how to check which entries were not used?

This question led to a new package:      While reading papers, I put those that I'd like to refer to or mention in customized .bib files (one .bib file for each paper). (Thanks to  it's pretty easy and straight forward - they call it "collections").  My intention is that all entries in the .bib file should be mentioned in the text.  How to check which bibliography entries I have not referred to ?


What ultimately determines the speed of electrical media

I have heard several myths about this.  Some have said "thicker wires mean faster speed" which I don't believe.  Others have said different voltages and others have said higher frequencies.  Take Coax for example.  Several years ago connections of 5mbit/sec were common, now today I am starting to see 100mbit/sec connections over the same physical medium of 5 years.  Same goes with twisted pair (cat5e vs cat6), one can now get 10Gbit/sec over copper.  DSL vs 56k.  Once again these are the same physical medium yet ADSL is sufficiently faster.  With that being said why are cable (coax) speeds always faster than DSL speeds (twisted pair)?  My question is essentially what determines the limits of speed of any particular physical medium


Just installed Kubuntu 16.04 last night, only to have it not include my Windows partition in GRUB. So I ran BootRepair and what happens next? My Windows partition comes back, but I now have duplicate menu items for it AND Kubuntu in GRUB. Typing sudo update-grub in the terminal didn't help as much as I thought it would either, tried that both before AND after running BootRepair.


I wrote this really nice app that works just fine in Linux.  It uses strptime(). Windows doesn't have this.  Is there a Windows alternative for this?  My coworker needs to use this app.  (I tried googling it already to no avail)


I have a layman's question:  $e^{i\pi} = -1$ ... euler's identity  and $e^{i\tau}$ = 1 where $\tau = 2\pi$  so if I assume that $e^x=y$ implies $ln(y)=x$, which it should, then  $ln(1) = i\tau$  but  $ln(1) = 0 \ne i\tau$  What am I doing wrong?


In java when we create a class singleton it create only one instance of that class per application, but rather than creating singleton class if we create all the methods and variables of that class static then also it will create only one instance of that static members. Then what is advantage of singleton  class over all static members of class?


How to manually get number of updates as displayed on login to terminal

I am wondering how, when on login to my terminal (Ubuntu 16) I see information like:  10 updates are available   6 updates are security updates   Where is this information retrieved from?  How can I get the same information from command line manually?  If this is a script that is run, where is it?


Are the icons used on the WMD editor on Stack Overflow going to be changed?

Are the icons used for the WMD editor shown on Stack Overflow going to be changed?  The reason I am asking is that the Hyperlink icon shown on the "Remove New User Restrictions" privilege page on Stack Exchange sites doesn't match with the icon used from the WMD editor on those sites.  This is what that privilege page shows on .        The icons used by the WMD editor on the same site are the following.


Trading out of mutual fund, into lower-cost ETF - is it worth it?

I've got a large amount of money (for me) in a US large cap index fund, with a 0.25% expense ratio.  I've recently gotten back into investing after a long hiatus, and am now putting most of my money into VOO for its ridiculously low expense ratio.  But my question is - what should I do with the money currently in the older index fund? I don't think it's in a bad spot, and the fees are super low, relatively speaking, so by my estimates I'm not really saving that much by moving that money into VOO, and indeed I'll pay capital gains on it.  But at 40 years old, I have another 20+ years of compounding to go before I'll start withdrawing from my investments. I feel like in this situation, I feel like the right idea is to just keep old money where it is since the expense ratio is reasonably low and invest new money into something cheaper, e.g. VOO.  But are there any other considerations I should think about here, considering my age, time horizon, etc.?


Here there is a "insightful"  about basic programming with 105 upvotes, and it has got 14 answers. But okay,  , so asking about the unfairness also gets 75 upvotes.  Unfortunately, I had asked a , which turned out to be similar to yet another question about  which has 1200 upvotes.  So, without batting any eyes, users are willing to keep upvoting a question which has enough upvotes, but if accidentally, there is a duplicate question, everybody loses their mind and downvotes it. Since, life is not fair, that is okay.  My question eventually got marked as a Duplicate. Since there is no value in that question, how do I delete it or at least mark it for deletion by moderators?  [[ Who knows which way this new question will go, I guess the fastest gun knows ]]


Is there a material that I could use to generate cap touch presses?

I want to automate some testing that uses captouch as the interface for the human user. I would love to use an Arduino or similar's GPIO to create the equivalent press and release events from a finger. Is there some material that can be used here such that it would cause a press event when I set the GPIO to high? I would like to avoid any mechanical solutions that involve moving things. Ideally, I would tape the material onto the place where the button is and run my fake human code on the Arduino.  Had a hard time wording that, hope it makes sense. Also, I'm pretty ignorant with the electronics for a captouch system given that I'm a software guy...be gentle :pray:


In a page, On dropdown select i need to get data in a table(table i should be able to edit)

I am new to Sharepoint. I am using Sharepoint Designer 2013. Need pointers/sample code to accomplish the below.  I have to 2 custom Lists like below. Ex:  State (Custom list1)  State AP UP MP   City (Custom list2)  City State Desc KNR AP  WL  UP NZB AP SRC MP HZB UP   I have to create a page, where I have to load dropdown values from 1st list. When I selected the value from dropdown, I should get all the selected dropdown value related data from 2nd list in a table/grid, where I have to edit the table and save.


Why do we not get shocked by neutral wire and how can it behave as it does?

I read some articles and watched videos regarding 1 phase and 3 phase AC. I later found out that for most home appliances we need 1 phase AC. Then I came to know about live and neutral wires. Few articles said neutral wire (blue) has 0 potential. And live wire (red) has high potential. Neutral wire is to return the current back to source. (I also read about earth wire. That was the thing that lead me to this question but I'll ask about that later) All these things gave me 3 doubts for now.  If neutral wire returns the current, the same which was in live/red wire, why doesn't it give shock?  Would it make any difference if you connect the bulb using 2 different methods as shown in image? (I have assumed a blub is connected this way. There are two points, one for in and one for out)  If current keeps changing its direction many times a second, that means current should keep flowing from red to blue, blue to red and continuously. How is it even possible to flow current from blue/neutral wire? Where would current come in blue wire? From Earth?   Okay these might seem too broad, but I believe these are very much related but I have separate doubts since I don't understand the concept fully.  PS: Simple and not very scientific language would be appreciated :)


A combinatorial question: Let $S = \{1,2,3,4\}$ and $X = \{f:S\rightarrow S | x<y \implies f(x)\leq f(y)\}.$ Find $|X|$.

Let $S = {1,2,3,4}$ and $X = \{f:S\rightarrow S \ | \ x<y \implies f(x)\leq f(y)\}.$ Find $|X|$.  The solution is $\binom{7}{3}$, and the explanation was using stars and bars. I don't see how it could possibly be connected to a stars and bars problem.  Can someone help me with this.


If someone answers a question, under tag discussion, then that answer is downvoted once, so he/she has (-1) on that answer now.  After some time someone upvotes the answer and now he/she has (0) votes on it with +8 reputation. Will that upvote count toward getting the bronze discussion tag, or since it's (0) then he/she won't get that upvote, won't be counted toward getting that tag?


How can I automate the workflow for producing multiple versions of a document?

Say you have two versions of the same LaTeX document.    For instance, you have one version of your lecture slides for actually delivering a lecture: as you're really not a big fan of the "wall of text", this version would be parsimonious in terms of text content, allowing the audience to listen to what you're talking  about instead of reading the slides, and giving graphical content centre stage.  Another version of those slides, made available to the audience after the lecture, for self-study, would be more self-contained and include a summary of what you said during that lecture along with the graphical content mentioned above.  Consider that you can toggle between the two versions by either changing a class option or by changing the value of some dedicated counter in your input file; something relatively simple to do "by hand".  To produce two different versions of the same document, my current workflow is   "manually" compile the first version, change the filename of the output produced (in order to prevent overwriting in step 4) make appropriate changes in my input file to switch to the second version, "manually" compile the second version.   However, this workflow is tedious and error-prone, especially when the number of different versions increases. I would like to automate it as much as possible. Is there a way to batch compile all the versions of my document, each getting a different output filename?  I guess that would involve modifying the input file at the command line (I'm on Mac OS X), but I don't know how to do that.  Do you have an automated workflow for compiling multiple versions of the same document? How do you do it?  Edit: I figured it out using  and  on , of which my question is a duplicate.


Are there data plans for travelers in the USA?

I intend to travel to the US for a month, and I would really like to use a lot of data traffic during the trip, for browsing, maps, Skype calls, etc. How can I do that? Should I buy a SIM? Do I have to order one in advance, or are data SIMs readily available in the airport? Is there any website that can show me competing options and maybe compare them?  Also, I guess SIMs are linked to one specific carrier. Does it matter which cellular carrier I choose, or do all have similar coverage and do all support GSM phones? Does it change from state to state? e.g. do some of the more states, like Hawaii, have limited coverage for some of the carriers?  In short I am clueless here, and would really appreciate any information about this.  EDIT: meanwhile I have found , seems very useful though I'm not sure how reliable or up-to-date this page is.


Using SQLite3 with Python 2.5, I'm trying to iterate through a list and pull the weight of an item from the database based on the item's name.  I tried using the "?" parameter substitution suggested to prevent SQL injections but it doesn't work. For example, when I use:  for item in self.inventory_names:     self.cursor.execute("SELECT weight FROM Equipment WHERE name = ?", item)     self.cursor.close()   I get the error:     sqlite3.ProgrammingError: Incorrect number of bindings supplied. The current statement uses 1, and there are 8 supplied.   I believe this is somehow caused by the initial creation of the database; the module I made that actually creates the DB does have 8 bindings.  cursor.execute("""CREATE TABLE Equipment      (id INTEGER PRIMARY KEY,      name TEXT,     price INTEGER,      weight REAL,      info TEXT,      ammo_cap INTEGER,      availability_west TEXT,     availability_east TEXT)""")   However, when I use the less-secure "%s" substitution for each item name, it works just fine. Like so:  for item in self.inventory_names:     self.cursor.execute("SELECT weight FROM Equipment WHERE name = '%s'" % item)     self.cursor.close()   I can't figure out why it thinks I have 8 bindins when I'm only calling one. How can I fix it?


How do I take a screenshot from a YouTube video?

My Prt Sc button is on the same button as my Home button. The Prt Sc is circled and under the word Home. I assume that you push Shift+Home to get Prt Sc to work. That is how it has worked in past iterations of Windows, my current version being Windows 7.  So, I press Shift+Home and open Paint, Photoshop and Word. I then press paste and nothing comes out. I've done it repeatedly with the same results.  I've looked up the process with Windows Help and it tells me to do exactly what I have done. In addition, somewhere in here, it was suggested to open Windows Media Player and take the screen print from there, which I have done, with the same results. I have also tried taking screen prints from VLC media player.  The version of Firefox I am using when I screen print from YouTube is 37.0.2. Any help I can receive is well appreciated. Thank you in advance.


What is the purpose of flagging a post or comment? What does it do?


I'm able to launch anbox.appmgr from a SSH session using: DISPLAY=:0 /snap/bin/anbox.appmgr. I'm also able to launch anbox.appmgr from a sh script: #!/bin/bash if ! pidof org.anbox.appmgr >/dev/null 2>&1;then DISPLAY=:0 /snap/bin/anbox.appmgr ;fi  But I can't figure out how to launch anbox.appmgr from crontab. I tried: * * * * * /bin/bash /home/eduardogoncalves/./startAnbox.sh * * * * * DISPLAY=:0 /bin/bash /home/eduardogoncalves/./startAnbox.sh * * * * * DISPLAY=:0 /snap/bin/anbox.appmgr * * * * * DISPLAY=:0 /usr/bin/snap run anbox.appmgr * * * * * su eduardogoncalves -c "DISPLAY=:0 /usr/bin/snap run anbox.appmgr"; * * * * * if ! pidof org.anbox.appmgr >/dev/null 2>&1;then DISPLAY=:0 /snap/bin/anbox.appmgr ;fi  but all without success. Can someone point me how to achieve this?


Where can we find frequently updated details about travel/entry restrictions due to Coronavirus (nCoV-19)?

Due to the outbreak of nCoV-19 (Novel Coronavirus) many Countries have imposed several entry restrictions. But these are quite confusing for a lot of people. Some countries allow transit through parts of China (like Shanghai) but some restrict transit even through Hong Kong/Macau. Philippines restricted passengers coming from Taiwan too, but I think that that was later changed.  Where can one find a list of such restrictions for all the countries, ideally a source that is updated frequently


How can we cover code in test class under Site.createPortalUser?

Our class code looks like this:       String userId = Site.createPortalUser(u, accountId, password);     if (userId != null) {          if (password != null && password.length() > 1) {             return Site.login(username, password, null);         }         else {             PageReference page = System.Page.SiteRegisterConfirm;             page.setRedirect(true);             return page;         }     }   Site.createPortalUser always returns false while running test class. How can we cover code under if(userId != null) ?


sizeof() operator returns different value for an array and pointer to an array

Below is a C program:    #include<stdio.h>  void func(int a[]) {   printf("%d\n",sizeof(a)); }  int main() {   int arr[10];   printf("%d\n",sizeof(arr));   func(arr);   return 0; }   Now the problem is that the sizeof() operator returns 40  when I use sizeof(arr) but 8 when I use sizeof(a). What is the reason for this behavior?


I am trying to read from rockyou wordlist and write all words that are >= 8 chars to a new file.  Here is the code -   def main():     with open("rockyou.txt", encoding="utf8") as in_file, open('rockout.txt', 'w') as out_file:         for line in in_file:             if len(line.rstrip()) < 8:                 continue             print(line, file = out_file, end = '')         print("done")  if __name__ == '__main__':     main()   Some words are not utf-8.  Traceback (most recent call last):   File "wpa_rock.py", line 10, in <module>     main()   File "wpa_rock.py", line 6, in main     print(line, file = out_file, end = '')   File "C:\Python\lib\encodings\cp1252.py", line 19, in encode     return codecs.charmap_encode(input,self.errors,encoding_table)[0] UnicodeEncodeError: 'charmap' codec can't encode character '\u0e45' in position 0: character maps to <undefined>  Update  def main(): with open("rockyou.txt", encoding="utf8") as in_file, open('rockout.txt', 'w', encoding="utf8") as out_file:     for line in in_file:         if len(line.rstrip()) < 8:             continue         out_file.write(line)     print("done")  if __name__ == '__main__':     main()```   Traceback (most recent call last):   File "wpa_rock.py", line 10, in <module>     main()   File "wpa_rock.py", line 3, in main     for line in in_file:   File "C:\Python\lib\codecs.py", line 321, in decode     (result, consumed) = self._buffer_decode(data, self.errors, final) UnicodeDecodeError: 'utf-8' codec can't decode byte 0xf1 in position 933: invali d continuation byte


Any legal/Microsoft way to make Windows 7 installation legal by purchasing a key for it

I searched a lot and there are resources which point to e-bay and others but all that is third party.  I would like to buy JUST THE KEY for Windows 7 NOT the media, so I can make the already working copy of Windows 7 legal/activated.  Reason for this is to save some money. I have the media just give me the key, and only charge me for the key.


Servo doesn't move when driven by a PIC micro controller

I have a  and a servo (for which I could not found any datasheet )  So I built this circuit :          – Schematic created using   The LED is for checking if a pulse is sent and the switch SW1 is for enabling the servo.  And I have written this program for the PIC:  #include <xc.h> #define _XTAL_FREQ 40000000 #pragma config WDTE=OFF , BOREN=OFF , PWRTE=ON , MCLRE=OFF , FOSC=INTRCIO  void main(){     TRISIO = 0b0000000;     GPIO = 0b000000;     int i;     while(1==1){              GPIO = 0b111111;             __delay_ms(1);             GPIO = 0b000000;             __delay_ms(19);          for(i=0;i<50;i++){          }              GPIO = 0b111111;             __delay_ms(2);             GPIO = 0b000000;             __delay_ms(18);          for(i=0;i<50;i++){          }     }  }   Here I tried to turn the servo arm any degrees forward and backward and the for loop is here to give time for the servo to act and _XTAL_FREQ is here to set its frequency.  I even tried to transfer the GPIO settings into the for loops and add an empty for loop after them.  When I run the circuit, I face critical problems:   When I press the switch, the servo reverses about 10 degree back and forward (every time it powers on even without any feedback connected). Then if it doesn't reach 360 degree, it turns 20 degrees by 20 degrees up to the end and then stops and emit sounds like click click for every pulse sent by the PIC. (I saw LED blinks). This is not what I want to implement. If I delete every loop in it (for and while loops) and only write this in main:  GPIO = 0b111111; __delay_ms(2); GPIO = 0b000000; __delay_ms(18);    The program loops on itself and the LED blinks. Why does it loop on itself?


Where does the character from this poster come from?

My fiance picked this poster up today because it looked cute, we aren't sure were this is from and wanted to know if anyone could tell us where this is from.


How do I install Mac OS X El Capitan on my other iMac?

I'm relatively new to Mac and I cannot for the life of me figure out why it is so complicated to download an OS installer, create a bootable disk and use it on another machine.  According to the , one must:     El Capitan downloads as a disk image. On a Mac that is compatible with   El Capitan, open the disk image and run the installer within, named   InstallMacOSX.pkg. It installs an app named Install OS X El Capitan   into your Applications folder. You will create the bootable installer   from this app, not from the disk image or .pkg installer.   I downloaded the 6 GB file. But when I run the installer, I get a message saying      This version of OS X 10.11 cannot be installed on this computer.   But I am not trying to install it on this computer! I want to install it on a different computer!  How do I just get the OS image so I can create the bootable drive to use in the other machine?  I really appreciate your advice!


I was trying to emulate Default Cube doing an old looking book, but when I tried to make the rounded part of the cover there is some problem: in the video the 2 selected edges converge in a different point. (What the result should look like)  (What is my result)  As you can see the edges in the example converge closer to the left part of the book, my first attempt is to resize the shape, but this doesn't make any improvement. Maybe is something stupid, but I don't know how to solve my problem


Can we overload MVC controller action methods?

I was trying to overload controller method or action I am able to write controller action and compile but still I am not getting result.     public ActionResult Contact()     {         ViewBag.Message = "Your contact page.";          return View();     }     public ActionResult Contact(string str)     {         ViewBag.Message = "Your contact page by overloaded method";          return View();     }   but still I am getting following Error Server Error in '/' Application


Can you cast and hold Produce Flame and then wield a weapon and shield?

The text of the  spell reads:      A flickering flame appears in your hand. The flame remains there for the duration and harms neither you nor your equipment. The flame sheds bright light in a 10-foot radius and dim light for an additional 10 feet. The spell ends if you dismiss it as an action or if you cast it again.   Emphasis mine. The druid in our party asked our DM if he is able to cast produce flame in a dark cave, then opt not to attack with it, and wield a shield and sword. The goal is to continue emitting light, since he doesn't have the light spell. He claims that since the flame does not harm his equipment, he is able to hold a shield or sword with the fiery hand with no problem.  Is this okay to do RAW, or are we missing something?  This is specifically not asking about casting spells with a sword in hand. He wants to draw his weapon after casting and holding the flames.  Related, but not the same question: , , .


How to unhide application crash reports in lubuntu?

I had lxappearance crash a few times when trying to install icon themes as described here:    The first few times there was crash report i could read, then it stopped appearing i think because the crash report window had pre checked the option to not display future reports from this app. How do I change that preference back to being able to see the reports?


I am still new in latex...I have tried many times to write this equation in latex, but no way...always error...any help, please.   My Regards.


Show that the sum of the next series is an irrational number $\sum_{1}^{\infty} \frac{1}{(n!)^2} $

Given:  $\sum_{1}^{\infty} \frac{1}{(n!)^2} $  development of the amount $1+ \frac{1}{4}+\frac{1}{36}+...$


Prove that the union of the following elementary chain is saturated

First, let's consider the definitions:  Let $\lambda$ be an ordinal. A model $M$ is $\lambda-$saturated if for all A⊂M, |A|<$\lambda$, every 1-type p in A (over $T(M)=\{φ \in L(A)-sent:M⊨φ\}$) is realized in M, i.e. there exists a∈M such that M⊨φ(a),$\forall \phi \in p$. A model $M$ is saturated if it is $|M|-$saturated.  If $\lambda$ is an ordinal, let $\lambda^+$ be the successor of $\lambda$. Im trying to solve the following question: Suppose that $M$ is a model of cardinality $\lambda$, a $\textbf{regular}$ cardinal, such that $M$ is the union of an elementary chain, $(M_{\beta})_{\beta<\lambda}$, i.e $M = \bigcup_{\beta<\lambda} M_{\beta}$, and $M_{\beta}$ is $\beta^+-$saturated for all $\beta$. Prove that $M$ is saturated. My attempt: Let $A⊂M$ with $|A|<\lambda$ and $p$ a $1-$type in $A$ over $T(M)$. For every $a \in A$, choose $i_a < \lambda$ in a way that $a \in M_{i_a}$. Now, if $I=\{i_a:a \in A\}$, then $|I|<|A|<\lambda$ and since $\lambda$ is regular, there exists $j<\lambda$ such that $i_a\leq j$ for all $a \in A$. Therefore, $A \subset M_j$. The only thing that remains to show is that $M_j$ is $\beta-$saturated for some $\beta>|A|$, knowing that it is $j^+-$saturated. I think that it can be done if $|I|=|A|$, since in this case $i_a < j^+$ for all $a \in A$, hence $|A|<j^+$. Is there a way to choose $i_a$ in order to $|I|=|A|$? Or there are another approach?


Differentiation operator and eigenvalues

Let $V = \{p(x) \in F[x] \ | \ \deg(p(x)) \le n\}$. Let $T : V \to V$ be given by differentiation, in essence $$T(p(x)) = p'(x)$$ It seems to me that the only eigenvalue that can exist is $\lambda =0$, since the given operator lowers the degree of any given polynomial and hence makes it impossible for a constant multiple of a polynomial to be equal to the polynomial's derivative. Is my claim correct?


Are there lockers or luggage storage facilities at the Bruxelles-Midi station?

I am travelling from Paris to Cologne with a one-day stopover in Brussels.  Where can I store luggage at the Bruxelles-Midi station?


How do I detect keystroke loggers in a reliable way?

I've always had a problem typing my passwords in on computers I don't trust (think non-technical friends computers) and although I can usually avoid doing it, there are times when I still need to use them. My main concern is having my passwords stolen by a keystroke logger.  So my question is - is there a reliable way to detect keystroke loggers?   I know of hardware keystroke loggers like  but I'm mostly interested in software based ones.


I am having a bit of problems with percentage changes.  Given $f\propto\frac{1}{l}$, and $l$ has a 25% increase ($l'=l*1.25$) then $f'$ = $f*\frac{1}{1.25}$.  However, this is equivalent to saying $f$ has a 25% decrease right? So, why is it not $f'=f*0.75$ instead?


SRV record does not work, doesn't redirect to another port

These are my SRV host details:  HOST: _http._tcp.ngxdev.com ANSWER: 0 29080 ngxdev.com   As you can see, if I enter a full link: http:// ngxdev.com:29080(Not allowed to post more than 1 link), it works, but  does not redirect to port 29080 as it should, redirects to port 80 instead.  Using name.com, config line:


Is there any method to close connection similar to mysql_close() for wpdb in WordPress? Is it not necessary to close connection for global wpdb?