Exclude TeX.SE question titles from MathJax parsing in Hot Network Questions

Recently, the TeX.SE question  got onto the Hot Network Questions list.  Like many questions on TeX.SE, it contains some TeX markup in its title.  Unfortunately, on , this markup gets parsed and rendered as math:    I propose that either:   the entire Hot Network Questions sidebar should be excluded from MathJax parsing by styling it with the tex2jax_ignore class, or at least, any hot questions from TeX.SE should be so excluded from MathJax parsing.   Or I suppose we could always implement , which asks for all questions with TeX in the title to be excluded from Hot Network Questions entirely.  That might be throwing out the baby with the bathwater, though.    Ps. This issue is partially masked by , which causes MathJax not to be rendered in many elements that are hidden by default and revealed using jQuery .show(), such as all but the first five questions in the Hot Network Questions sidebar.  The  user script contains a generic fix for that bug, so users who have it installed will see this issue more frequently, but it occurs even without SOUP whenever a question with TeX markup in the title happens to show up among the top five hot questions that are always visible by default.


How does gravity increase (or, at least, not-decrease) entropy?

I'm a total physics n00b (i.e. I only know the physics as taught in IT grades, and don't remember much of it), and was talking about entropy (initially, not with the physical implications). My friend talked about entropy and gravity and was not sure about the fact that entropy decreases with gravitationally bound systems.  , but "apparently proving" that gravity decreases it. Finally, in the final link where he will show the prove that gravitational systems do not decrease entropy, it shows this text:     So, you're wondering why gravity doesn't violate the 2nd law of thermodynamics, even though the entropy of a gas cloud decreases as it shrinks under its own gravitational pull? The answer is simple, but I'll just give you a hint. We've already seen that as it shrinks, it loses energy. The energy has to go somewhere. Where does it go? If you figure that out, you'll see that the total entropy is not actually decreasing - it's just leaving the gas cloud and going somehere else!   My question is: No, actually I cannot figure if out. Can someone help me to figure it out? (yes, perhaps it's a very simple answer but no, still don't get it).


How to uninstall VirtualBox from debian package?

I installed VirtualBox by downloading the .deb file directly from their , however, turns out I won't actually need that program and I have no idea on how to uninstall it. I found a couple solutions that suggested sudo apt-get remove --purge virtualbox but that doesn't work since I didn't install it from apt, upon running whereis virtualbox I get the following directories: /usr/bin/virtualbox  /usr/lib/virtualbox  /usr/share/virtualbox  Do I just delete everything from those directories or what do I do to properly uninstall the program?


App crashes showing nullPointerException

I was trying to make a basic intent from one activity to another but it crashes as soon as the button "next is clicked ".      package com.example.aditya.myapplication;      import android.content.Intent;     import android.support.v7.app.AppCompatActivity;     import android.os.Bundle;     import android.view.View;     import android.widget.Button;      public class MainActivity extends AppCompatActivity {         private Button next;         @Override         protected void onCreate(Bundle savedInstanceState)          {             super.onCreate(savedInstanceState);             setContentView(R.layout.activity_main);             next = (Button) findViewById(R.id.toNextActivity1);             next.setOnClickListener(new View.OnClickListener() {                 @Override                 public void onClick(View v) {                     Intent i = new Intent(v.getContext(), qu1.class);                     startActivity(i);                 }             });         }     }   That's the java code . the activity_main.xml is this  <ImageView     android:id="@+id/hello"     android:layout_height="wrap_content"     android:layout_width="wrap_content"     android:src="@mipmap/ic_launcher"     android:scaleType="center"     android:layout_marginTop="104dp"     android:layout_alignParentTop="true"     android:layout_centerHorizontal="true"> </ImageView>  <Button     android:id="@+id/toNextActivity1"     android:layout_width="wrap_content"     android:layout_height="wrap_content"     android:background="@color/colorAccent"     android:text="Play "     android:layout_marginBottom="79dp"     android:layout_alignParentBottom="true"     android:layout_toRightOf="@id/hello"     android:layout_toEndOf="@id/hello" />   Logcat  java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.aditya.myapplication/com.example.aditya.myapplication.qu1}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.view.View.setOnClickListener(android.view.View$OnClickListener)' on a null object reference


What is the maximum size of 2 dimensional array that we can use in c++ programming?

I tried using 10^6 by 10^6 array ,it is giving me segmentation fault


Interpreting the coefficients when a ln10 transformed DV is predicted by a mixture of ln10 transformed, dummy (0 & 1 coded), and continuous IVs

I have a multiple regression equation that reads as follows: ln10(DV) = 0.437 + 0.394(ln10(IV_1)) + 0.061(IV_2) - 0.145(IV_3) I performed the ln10 transformations for the DV and for IV_1 to get around heavy skewness in the original data. The ln10 transformed data is normally distributed. IV_2 is a principal component (which hasn't been transformed) IV_3 is a variable that represents 0 = "disagree" and 1 = "agree" The ln10 transformation helped me to perform the regression but I'm now struggling to interpret what this means in practical terms, all help appreciated! (The model is significant, but has a fairly modest R^2 of .33)


least value of $\lfloor \frac{a+b}{c}\rfloor+\lfloor \frac{c+b}{a}\rfloor+\lfloor \frac{a+c}{b}\rfloor$

If $a,b ,c>0$ . Then least value of $$\bigg\lfloor \frac{a+b}{c}\bigg\rfloor+\bigg\lfloor \frac{c+b}{a}\bigg\rfloor+\bigg\lfloor \frac{a+c}{b}\bigg\rfloor$$   Where $\lfloor x\rfloor$ is floor function of $x$  Plan  Using $$x-1< \lfloor x\rfloor\leq x$$  $$\frac{a+b}{c}-1< \bigg\lfloor \frac{a+b}{c}\bigg\rfloor \leq   \frac{a+b}{c}$$  $$\frac{b+c}{a}-1< \bigg\lfloor \frac{b+c}{a}\bigg\rfloor \leq\frac{b+c}{a}$$  $$\frac{c+a}{b}-1< \bigg\lfloor\frac{c+a}{b}\bigg\rfloor \leq \frac{c+a}{b}$$  How do i solve it Help me please


How to find out my Galaxy Nexus' version? (maguro, toro or toroplus)

I have a Galaxy Nexus phone.   I want to install JellyBean manually, but I don't know which one of  I should download. How do I know if my phone is maguro, toro or toroplus?


How can I make hash key lookup case-insensitive?

Evidently hash keys are compared in a case-sensitive manner.  $ perl -e '%hash = ( FOO => 1 ); printf "%s\n", ( exists $hash{foo} ) ? "Yes" : "No";' No  $ perl -e '%hash = ( FOO => 1 ); printf "%s\n", ( exists $hash{FOO} ) ? "Yes" : "No";' Yes   Is there a setting to change that for the current script?


I'm trying to get a two tiered pricing structure into my store. Essentially I need every product to have two prices. There's the main price but there's also a secondary price that get's triggered if the customer has more than 14 products in their cart. I can't do an across the board discount, it has to be specific prices per product.  Say product one has a main price of $20 but a hidden secondary price of $15 and product two has a main price of $50 but a hidden secondary price of $30. This will be defined on the product itself. It's all arbitrary pricing set for every product.  I figured out how to set a rule where 14 products will trigger it but I can't work out how to add a secondary price to a product then activate that price.


I hope this is not too complex a question and is simple as in: is there a statistical point, like damage taken vs given, when someone can take Roshan?  I understand this gets complicated by other factors like evasion, but assuming things like that aren't factoring in, when can one Rosh alone?


"... unchecked or unsafe operations" generic container class

I want to make a generic container class that can contain one object of some other class. I thought this might be a reasonable approach:   class Container <T> {     private T thing;      public void Store(T obj) {         thing = obj;     }      public T ReturnIt() {         return thing;     } }   When I try this together with let's say a Book class, I get the following error message:  "Note: GenericContainer.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details."  Could it be that the public T ReturnIt() { return thing; } is the cause of the error, and is this the wrong way to go about returning object that is contained in the Container-class?  I did not get any further information when I tried to compile it with -Xlint:unchecked.  What do I make of the error message?    Code that caused the error:  class GenericContainer {      public static void main(String[] args) {         Container BookStorage = new Container <Book>();         Book thejavabook = new Book("The Java book");            BookStorage.Store(thejavabook);     }        }  class Book {     private String title;     Book(String title) {         this.title = title;     } }  class Container <T> {     private T thing;      public void Store(T obj) {         thing = obj;     }      public T ReturnIt() {         return thing;     } }


How to get image name from URL in javascript

var URLS = ['https://www.vsss.co.in/Admin/uploads/722661/bb.jpg','https://www.vsss.co.in/Admin/uploads/755153/scs.jpg','https://www.vsss.co.in/Admin/uploads/704543/1606.jpg'] URLS.forEach(function(element){     var image_name = element.replace("https://www.vsss.co.in/Admin/uploads/722661/", "");     console.log(image_name); });       Anyone can please help me How can I get image name and extension of the image from URL. I tried but I statically typed URL when 722661 is dynamically generated serial How can I solve this issue?


change tikz node color from frame to frame

I am trying to change a node color of Tikz node with only option as:  \documentclass[10pt,xcolor=dvipsnames,xcolor=table]{beamer} \usepackage{tikz} \usetikzlibrary{positioning,arrows} \usetikzlibrary{decorations.pathmorphing} \usetikzlibrary{decorations.markings} \begin{document} \begin{frame}     \centering     \begin{tikzpicture}[sibling distance=12em, level distance=3em,         every node/.style = {shape=rectangle, rounded corners,           draw, align=center, font=\footnotesize,     top color=Red, bottom color=Red, color=white}]]     \node {Foo}     child {node{Bar1}}     \only<1>{child {node{Bar2}}     \only<2>{child[top color=Blue] {node{Bar2}}       child {node{bar21}}     child {node{bar22}}};   \end{tikzpicture}  \end{frame} \end{document}   This works fine when no only thing is involved, but with only, its giving error:  Runaway argument? \centering \begin {tikzpicture}[sibling distance=12em, level distance\ETC. ! File ended while scanning use of \frame. <inserted text>                  \par  <*> mwe.tex   What I am doing wrong here? Please help.


How to force Google search to only return English results?

I'm in France and trying to use Google in English only. My Google settings are set to English everywhere:    I've also clicked on the link "use google.com" but when I do a search, it still shows some results in French, and I suspect the results are somehow tweaked for a French audience, which means some important English ones might be missing.    Is there any way to force it to really use only English (except for using a VPN or proxy server)?


How to add a blank line in a blockquote?

I'd like to do know how to do the following:     Blockquote A   blank line that's not part of either block, visually distinguishing two different blockquotes     Blockquote B   Experiments  Without adding a text in between it looks like:     Blockquote A      Blockquote B   I tried separating them by adding a line, like so:     Blockquote A            Blockquote B   But visually, I think this is misleading because it can imply that the quotes are from the same source (when they aren't per se). So I prefer to show a blank line between the blockquotes.   Research  I've found a related question: . But these answers don't address what I want to do,  I can't seem to find the way to do this seemingly simple trick. I've already looked into the , but I might be overlooking it. Any help is much appreciated!


I keep getting a NullPointerException in ListView

I'm getting a NullPointerException when I run my application:  LogCat     java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.View android.view.View.findViewById(int)' on a null object reference at org.example.km.json3.Helper.SwipeListAdapter.getView(SwipeListAdapter.java:52)   The class is given below :  public class SwipeListAdapter extends BaseAdapter {      private Activity activity;     private LayoutInflater layoutInflater;     private List<StockDetails> listStockDetails;       public SwipeListAdapter(Activity activity, List<StockDetails> listStockDetails) {         this.activity = activity;         this.listStockDetails = listStockDetails;      }      @Override     public int getCount(){         return listStockDetails.size();     }     @Override     public Object getItem(int position) {         return listStockDetails.get(position);     }      @Override     public long getItemId(int position) {         return position;     }      @Override     public View getView(int position, View convertView, ViewGroup parent) {          if(layoutInflater == null) {             layoutInflater = (LayoutInflater) activity.getSystemService(Context.LAYOUT_INFLATER_SERVICE);         }          if(convertView == null){             layoutInflater.inflate(R.layout.list_row, null);         } //This is the line number : 52              TextView txtStockId = (TextView) convertView.findViewById(R.id.txtStockId);             TextView txtStockTag = (TextView) convertView.findViewById(R.id.txtStockTag);             TextView txtStockExchange = (TextView) convertView.findViewById(R.id.txtStockExchange);             TextView txtStockRate = (TextView) convertView.findViewById(R.id.txtStockRate);             TextView txtStockChange = (TextView) convertView.findViewById(R.id.txtStockChange);             TextView txtStockChangePercent = (TextView) convertView.findViewById(R.id.txtStockChangePercent);             TextView txtStockPreviousClosing = (TextView) convertView.findViewById(R.id.txtStockPreviousClosing);              txtStockId.setText(listStockDetails.get(position).id);             txtStockTag.setText(listStockDetails.get(position).t);             txtStockExchange.setText(listStockDetails.get(position).e);             txtStockRate.setText(listStockDetails.get(position).l);             txtStockChange.setText(listStockDetails.get(position).c);             txtStockChangePercent.setText(listStockDetails.get(position).cp);             txtStockPreviousClosing.setText(listStockDetails.get(position).pcls_fix);          return convertView;     } }


Would a Java foreach loop get a list each iteration

Say I have a dataObject, who has a getChildren() function which returns a collection, but for whatever reason is a slow process that I want to avoid. I then want to iterate over said collection. For the sake of this getChildren() will return an empty collection when it has no children, not null.  Can I get away with doing:  for(dataObject child : parent.getChildren()){ ... }   or is that going to call getChildren() each loop, meaning that to avoid that costly call each time, I need to instead do:  Collection<dataObject> children = parent.getChildren(); for(dataObject child : children){ ... }   This could also cause problems if I the parent returns a different collection, for instance if a child was added/removed, and I was wanting to look at a snapshot of the children at that moment (let's gloss over other issues with that).  I suspect that the first version is indeed fine, as the for loop would get an iterator for the collection when it starts and just refer to that iterator, but it's something I've never confirmed.


Is there a software on Ubuntu equal to Disk Drill on Windows

I tried to recover my home folder, it was stored on it's own partition and I removed it by a mistake but no problem, I had a back up. Although I wanted to try to restore it so I used dd to create an image. By using sudo tsk_recover -e /xxx/image.img /xxx/tsk/I got 1000 files back but with "Disk Drill" on Windows I got the whole 40.000 files in great quality. My question is what did I wrong or is there something equal to Disk Drill on Linux?


Windows 7 task bar at autohide, make it totally disapear?

My desktop look is empty so all I have is a nice wallpaper. My Windows taskbar has the "Taskbar Appearance" setting to "Auto-hide the taskbar". Although hidden, it leaves a thin top layer so you can still see it a bit, and where the pinned shortcuts are. Is it possible to totally have it hidden without a trace? This is a serious question. It really bugs m.


GUI to BROWSE network without specifying remote servers

Its 2018, I'm using Kubuntu 18.1 cosmic, looking for a GUI to BROWSE network (CIFS) shares on other machines. I'm running a linux desktop machine, (not a server) and don't want to run, or install a samba server. I am told that I don't need to run a samba server in order to access shares on another machine. The problem that I have is browsing the network from LINUX machines. Programs that I find require you to identify the remote server, I'm looking for something like network neighbourhood, which can find shares on other machines that I don't specify.


Is it possible to install multiple instances of the same delphi service application?

I have a service application built in Delphi that works great.  It does exactly what I want it to do and all is happy.  All is fine until I want to run two (or more) instances of that service on a single machine.  Since the service name is hard coded into the program (via the Name property of the service), I can only install the service once on any given computer.  If I try to modify the Name property at run-time, the service does not respond unless the Name property is set to the same thing that was set during design time.  I have done a workaround for this where I have all of the code that is not interacting directly with the service control manager encapsulated out into separate unit(s).  Then I write a separate Delphi project for each instance that I want of the service that has just enough code to launch itself and start running the main code.  This method is, in my opinion, ugly and is certainly inefficient.  It works okay for two instances, but then we need a third and a fourth and ...  Is there any way that I can modify my code so that I have just one Delphi project that can install and run itself as multiple service instances with some simple run-time input (e.g. command line flag)?  Or perhaps a broader question: Is there a "right way" to accomplish goal?


Is the screw for attaching tripod heads to tripods standardized?

I was gifted a tripod creatively named: PT-TPM665-C  I am quite happy with it but the head can be frustrating to work with. It feels more geared towards videography rather than photography and needs some fighting to get into desired angle. I am thinking a ball-head will be great upgrade for it.  The problem is, I am a noobie and have no knowlage of different tripod mounting systems. From what I can tell it's a 1/4"ish screw.  Is it a standard size? Does this mount size have a name?


Get the latest build of Windows in S Mode

I just purchased a Microsoft Surface Go. It comes in "S-Mode" which means I can't install anything on it without going through the Microsoft Store. Now I am trying to install a software and I can't because it requires Windows 10 version 18362.0 or higher and I am in version 17763.914. I ran Windows Update twice and restarted the device but it didn't upgraded the Windows build number.  Are there any way to upgrade to the latest build of Windows in S Mode or am I stuck to wait and hope Microsoft pushes me an update one day ?


Scan the classpath for classes with custom annotation

For example if I have annotation @MyOwnAnnotation and have these classes in my classpath, so that I could scan classpath possibly with some kind of filter (example. scan only packages starting with my.own.app.*)  and get list of all classes with annotation @MyOwnAnnotation? I'm using guice as injection framework and I don't use Spring.


I’m trying to render jewelry in rose gold. Just wondering if anyone knows a way or a color hex to achieve a look similar to the below image. Thank you for your time!


python mktime(.timetuple()) returns different results in mac and linux

I noticed time.mktime(.timetuple()) returned different time on mac and linux(ubuntu). Why this?  date = ['2016-07-01', '2016-07-05']  xdata = [datetime.datetime.strptime(str(s), "%Y-%m-%d") for s in date] xdata = [time.mktime(s.timetuple()) * 1000 for s in xdata] print xdata  # ----mac-- >> [1467356400000.0, 1467702000000.0]  #-----linux--- >> [1467345600000.0, 1467691200000.0]   How to return in UTC?


Is stopping Ubuntu at HP Compaq PC by pressing shortly the computer power button OK?

When my Ubuntu 12.04 installed on the old HP PC Compact refused the 'Shut down'/'Restart' command as a result of e.g. unsaved files in gedit and stopped running the system menu (my  formulation before July 2015 stated misleadingly 'freezed'), I briefly press the power button at the computer case, as I was used to in Windows. This will bring up a dialog Ubuntu "Shut Down" and it works like if I clicked on the "Shut Down" system menu. (This is probably set in the "setup" BIOS.) Until now, I have not observed any problems resulting from the procedure. Is the procedure OK generally? (I use it with a particular old hardware that is not certified for Ubuntu.)


Why not automatically award the bounty to an explicitly accepted answer?

I've read the FAQ, the blog post announcing the decoupling of bounty from answer accepting, and many of the questions here relating to bounty, but I still haven't figured out why this bounty system works so non-intuitively.  Here's what happened recently:   I asked a question on StackOverflow Having received no answers, I added a bounty. Someone provided an answer. I accepted an answer   Why would I not expect that in my accepting of that answer that my bounty would automatically be awarded? Luckily, the answerer notified me that the bounty would expire and only give him half (!?).  I understand that:   Others can now offer bounty on a question they didn't ask – it makes sense that bounty would have to be manually in those cases. Bounty can be auto-awarded when it expires.   However, I don't understand why with what seems like the most common scenario, we wouldn't auto-award the bounty to the answerer of the actual accepted answer. What is the purpose of making it more difficult to do what is obviously intended?  Note: I didn't notice  or maybe just didn't realize that the bounty system had changed since I had last used it. This popup should make it clear that "you haven't awarded your bounty to this answer" which is not intuitively obvious, which should lead us to question why awarding the bounty is a separate step.


Asymmetric format preserving encryption?

I would like to encrypt a string asymmetrically.  I would like the ciphertext to be as short as as plaintext. (or shorter)  I've read about format preserving encryption functions - are there asymmetric variants of them?


find the number of sequences of length $n$ over $\{0,1,2,3,4\}$ in which the difference between any two consecutive members is $1$ or $-1$

Question:  Find the number of series of length-$n$ over $\{0,1,2,3,4\}$ where the difference between any two consecutive members is $1$ or $-1$  Below are my workings. I'm stuck because I don't understand how I can make the recursion.  Let $a_n$ be the number of $n$-length series. Let $a_n^k$ be the number of $n$-length series such that the first element is $k$. We have that $a_n=a_n^0+a_n^1+a_n^2+a_n^3+a_n^4$ If the series starts with $0$, then the next element must be $1$, and we have that $a_n^0=a_{n-1}^1$ If the series starts with $1$, then the next element must be $2$ or $0$, and we have that $a_n^1=a^2_{n-1}+a^0_{n-1}$ If the series starts with $2$, then the next element must be $3$ or $1$, and we have that $a_n^2=a^3_{n-1}+a^1_{n-1}$  There is an similar answer to this but not in the same way that my college requires.


Can't find command, although it is in the PATH

I just  git on CentOS 6.8. When I run the command git from a bash-shell, I get the following error message:  -bash: /usr/bin/git: Bestand of map bestaat niet   Sorry, Dutch installation. Meaning: "File or folder doesn't exist". Git is installed.  When I run /usr/local/bin/git --version, I get the following output:  /usr/local/bin/git: /usr/local/lib/libz.so.1: no version information available (required by /usr/local/bin/git) git version 2.5.3   (not sure if the libz message is a problem).  which git points to /usr/local/bin/git, so that's fine too. echo $PATH returns /usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin. I've looked for aliases and other clues in .bash_profile, .bashrc and /etc/bashrc, but nothing...  How can I run git with just entering the command git?


How do I boot from USB on Ubuntu 16.10 with grub2?

Want to shrink my windows partition and then increase the size of my Ubuntu one. I could not find a clear answer already, so I'm asking this.


Solve for the equation $y^3=x^3+8x^2-6x+8$ for positive integers x and y.  My attempt- $$y^3=x^3+8x^2-6x+8$$             $$\implies y^3-x^3=8x^2-6x+8$$             $$\implies (y-x)(y^2+x^2+xy)=8x^2-6x+8$$  Now if we are able to factorise $8x^2-6x+8$ then we can compare LHS with RHS.Am I on the right track?Please help.


What is the difference between pluripotent and totipotent cells?

Both develop into specialized cells.Then how are they different?


I have a problem with cross-referencing a table in my appendix. Somehow, the table is appearing as "Table I" when it is created, but when I try to cross-reference it later in the appendix, it is being referenced as "Table A" (see code and resulting pdf below). Has anyone else experienced this problem before? Any suggestions would be appreciated. \documentclass[prx,aps,epsfig,twocolumn]{revtex4}  \usepackage[colorlinks, citecolor=blue, linkcolor=blue, linktocpage]{hyperref} \usepackage{graphicx}  % needed for figures \usepackage{dcolumn}   % needed for some tables  \begin{document}  \begin{appendix}  \section{Section Title}  \begin{table}[tbp!] \label{tab:example} \caption{caption here} \begin{tabular}{|c|c|c|} \hline  \textbf{column 1} &  \textbf{column 2} & \textbf{column 3} \\ \hline a & b & c \\ \hline d & e & f \\ \hline g & h & i \\ \hline \end{tabular} \end{table}  Let's try to reference Table \ref{tab:example}. Why does it appear as "Table A" instead of "Table I"?????  \end{appendix}  \end{document}


Why is Facebook missing from the list of ways to share a page in Safari?  That option used to exist before the latest update.  When I'm directed to the extensions box Facebook is not there.


I'm doing some animation and when I try to render the animation it doesn't show the anything, but it does show it in render-view mode in the 3D Viewport.  I've tried turning sequencing off, nothing.  This is my viewport


How to append comma seperated values to url as search params using history.pushsate. with use of , RFC 3986, specifies that URI path components should not contain unencoded reserved characters and comma is one of those reserved characters. .   code  window.history.pushState('new', 'inventory', '/new');  Desired result  https://www.test.com/new?Year=2020,2019&Pricerange=10001-20000,20001-30000,30001-40000&Mileagerange=1001-2000,2001-3000&Bodystyle=4dr%20Car,Convertible   Data i wanted to append  {   "year": [     "2017",     "2018"   ],   "model": [     "Escape",     "Edge"   ],   "mileage": [     "1-1000"   ],   "bodyStyle": [     "Convertible",     "4dr Car",     "2dr Car"   ],   "priceRange": [     "$20,000-$30,000",     "$30,000-$40,000"   ] }


CLI: How to set a folder's permissions the same as existing adjacent folders?

I know how to set permissions etc, but rather than:   Check permissions of one existing folder; and Note them down somewhere; and Use a command to set the permissions of an adjacent folder to the ones I've noted down   I want to run a command to set permissions of [folder 313] exactly the same as [folder 128].  Ideally, I would be able to set more than one, such that I can set the permissions of [folder 313], [folder 179], [folder 54], and [folder 226] simultaneously with the same permissions as [folder 128].


A function inside a function constructor in JavaScript

Suppose I have this code:  function Graph() {   this.vertices = [];   this.edges = []; }  Graph.prototype = {   addVertex: function(v){     this.vertices.push(v);   } };   Is it possible to add the addVertex property name inside function Graph() and thus eliminate the second part of this code altogether (from where Graph.prototype = begins)? I've tried this but it doesn't work:  function Graph() {   this.vertices = [];   this.edges = [];   addVertex = function(v){     this.vertices.push(v);   }; }


How to create a swap partition (no free space left)

I've installed Ubuntu on one partition which utilizes all disk space (if we're ignoring the NFTS partitions). I forgot to define a swap partition.   How do I make a swap partition after installation? I need to "borrow" from the current one. I defined the current partition as logical and not primary. Is that a problem? Should/Can I change it?   Thanks!


How to prove this sequence tends to zero

Suppose $a_n>0$,$\sum a_n$ converges, $\{na_n\}_{\Bbb N}$ is monotonic, prove   $$\lim na_n\ln n=0$$   My attempt so far has shown that $\{na_n\}$ is decresing: otherwise, $na_n\ge a_1\implies a_n\ge\frac{a_1}{n}\implies \sum a_n=+\infty$ which contradicts the convergence of $\sum a_n$.  My friend has got a bit further: $(n+1)a_{n+1}< na_n\implies \frac{a_{n+1}}{a_n}<\frac{n}{n+1}$. He then let $$b_n:=\frac{a_n}{\frac{1}{n\ln n}}$$ and therefore $$\frac{b_{n+1}}{b_n}=\frac{a_{n+1}}{a_n}\cdot\frac{(n+1)\ln(n+1)}{n\ln n}<\frac{\ln(n+1)}{\ln n}$$ However he can't prove the monotony of $b_n$ because the RHS of the inequality is too weak. In fact it only shows $\limsup \frac{b_{n+1}}{b_n}\le 1$, which is not effective here. And I can't come up with a stronger version, either.  Can you help me? Any direct help or hint will be appreciated. Thanks!


Chat text entry box invisible in Android Chrome Beta (67)

The only issue I can see is the text entry box: there's just a blank space where the it should be. It's actually still there, though, just invisible. If I tap it, the keyboard comes up and I can type, but I can't see the text I've entered either.    I can only reproduce this in Android Chrome Beta (67.0.3396.29), and this is on a Pixel 2. Everything's fine in default Android Chrome (66.0.3359.126).


New users page - reputation sorting incorrect

The sorting on the new users page appears to be incorrect - if it goes from left to right then top to bottom (which appears to be the case for most users), then in some cases the sorting is incorrect.  See image:


how to convert a timestamp into a date format in a custom module

I created a custom module and printed this outcome in .csv.  Name,Event,Email,Timestamp Ea Iustum Jus,Fifa,example@asdf.wer,1573924224   How do I convert the timestamp in a date format?  I tried with $select->addField('c','created',"DATE_FORMAT(FROM_UNIXTIME(created), '%d.%m.%Y %H:%i'"); and $select->addField('c', 'created', date('m-d-Y',$select));.  This is the complete code in mymodulecontroller.php.  /**  * @file  * Contains \Drupal\mymodulelist\Controller\ReportController.  * - it works but timestamp needs be converted to human readable date ??  * - $select->addField('c', 'created');  */ namespace Drupal\mymodulelist\Controller;  use Drupal\Core\Controller\ControllerBase; use Drupal\Core\Database\Database; use Symfony\Component\HttpFoundation\Response;  /**  * Controller for mymodule List Report in .CSV  */ class DownloadCSVController extends ControllerBase {   /**    * Gets all mymodules List for all nodes.    *    * @return array    */   protected function load() {     $select = Database::getConnection()->select('mymodulelist', 'r');       // Join the users table, so we can get the entry creator's username.     $select->join('users_field_data', 'u', 'r.uid = u.uid');       // Join the node table, so we can get the event's name.     $select->join('node_field_data', 'n', 'r.nid = n.nid');     // Select these specific fields for the output.     $select->join('mymodulelist', 'r', 'r.mail = r.mail');     // Select these specific fields for the output.     $select->join('mymodulelist', 'c', 'r.created = c.created');     // Select these specific fields for the output.     $select->addField('n', 'title');     $select->addField('u', 'name', 'username');     $select->addField('r', 'mail');     // how to create a date format from unix timestamp to d-m-Y for the field created ??      $select->addField('c', 'created');     // I tried this 2 options     // 1. $select->addField('c', 'created',"DATE_FORMAT(FROM_UNIXTIME(created), '%d.%m.%Y %H:%i'");     // 2. $select->addField('c', 'created', date('m-d-Y',$select));     $entries = $select->execute()->fetchAll(\PDO::FETCH_ASSOC);     return $entries;   } }


Prove the series $\sum_{n=1}^{\infty} \frac{1}{n^2}\cos(n x)= \frac{\pi^2}{6}-\frac{\pi x}{2}+\frac{x^2}{4}$

Prove: $$\sum_{n=1}^{\infty} \frac{1}{n^2}\cos(n x)= \frac{\pi^2}{6}-\frac{\pi x}{2}+\frac{x^2}{4}$$ for $0\le x\le 2 \pi$  I've found the result in 1.443  I.S. Gradshteyn and I.M. Ryzhik's book. But I need the proof.


The add comment link and comment box overlaps bounty box

The following you could have seen in  (sorry, I've commented there, so you won't see it anymore) in Chrome 35.0.1916.153 m (current version). Notice how the add comment link overlaps the bounty box:    The same you can observe with a comment box on other sites, e.g. at this time in :    Could you shift it a bit down ?  It seems that it happens on more than just Stack Overflow (maybe all sites ?).


Ubuntu 17.10 GNOME ctrl + shift + v in terminal triggers language change

I use Ctrl+Shift to change keyboard layout and Ctrl+Shift+v in terminal. It never was a problem with Unity but now Ctrl+Shift immediately changes language so that I can't use it for other shortcuts. Is there a way to solve this for GNOME without changing those shortcuts?


Can anybody help me with the following: I want to insert a PDF page into my Latex-file, however after I accomplish that, the header is not shown on that page that I have integrated. Is there any possibility to make the header visible? I used the package pdfpages.  Here is my code:  \documentclass[12pt,oneside,a4paper]{article} \usepackage{amsmath, amssymb, graphicx, pgfplots, tikz, booktabs, tabularx, float, pgfplotstable, fancyhdr, subfigure, pdfpages} \allowdisplaybreaks \usepackage[font=small,labelfont=bf,labelsep=colon]{caption} \special{papersize=210mm,297mm} \usepackage[left=40mm, top=30mm, right=20mm, bottom=20mm, headsep=12.5mm, headheight=3mm]{geometry} \pagestyle{fancy} \renewcommand{\headrulewidth}{0.0pt} \lhead{} \chead{} \rhead{\makebox[0pt][r]{Here is my header}        \hspace*{1.66667em}        \thepage} \lfoot{} \cfoot{} \rfoot{} \usepackage{setspace}\onehalfspacing \setstretch{1.3} \begin{document} Text \includepdf[pages={1}]{name_of_integrated_file.pdf} \end{document}   Thanks for the help!


Why doesn't \pagestyle{empty} work on the first page of a chapter?

Here's a minimal case of the problem:  \documentclass{book}  \pagestyle{empty}  \begin{document}  \chapter{The first}  This page has a page number\ldots  \newpage  \ldots but not this one.  \end{document}   I've surmised (by removing it) that the problem has something to do with the \chapter line.  But what caused this issue and how do I correct it?


Which is grammatically correct?  I can only do so much in this time.  or  I can do only so much in this time.


The identity cannot be a commutator in a Banach algebra?

The Wikipedia article on  claims, without a proof or reference, that there does not exist a (unital) Banach algebra $B$ and elements $x, y \in B$ such that $xy - yx = 1$. This is surprising to me, but maybe the proof is straightforward; anyone have a proof and/or a reference?   More generally, I would have naively thought that I could embed any ring into a Banach algebra. I guess there are actually serious restrictions to doing this; are these issues discussed anywhere?


Is it right to use 'The' before a language, Like the Japanese, the Hindi?


Like in Peace Walker, you eventually have your own mech and it is suggested that you deploy it for combat. What isn't clear is how. Even after finishing the main story there doesn't seem to be an option to add Battle Gear to any of your combat deployment teams.  What do you have to do to deploy Battle Gear?


Why can we always assume that $Gen$ algorithm choose key uniformly?

Disclaimer: This is exercise 2.1 in Katz-Lindell book.  Given a (symmetric) encryption scheme $\Pi=(Gen,Enc,Dec)$ where $Gen$ takes the security parameter $1^n$ as input and generates a key $k$ of length $n$.  Usually we simply assume that $Gen$ chooses key uniformly from $\{0,1\}^n$ but this is not always the case.  Given $Gen$, how would you construct a new generation algorithm $Gen'$ that indeed outputs $k$ uniformly at random?


I made a scene where a grenade bounces in and rolls across the floor, except the issue is when I render it the location changes slightly. I am running blender 2.78 with supported features only. I have turned all modifiers off and restarted blender. The problem still persists. Can anyone help me out? Note: I made the animation by baking a physics simulation to key frames. The room was also made by archimesh. (I have tried disabling archimesh in the user preferences but it didn't change anything) In the viewport it looks like this:  In the render it looks like this:  Notice in the bottom right that the grenade has not changed locations. To my eye it looks like the grenade is in the same place, but the floor has changed locations. But either way, I do not know why this is happening. Thanks!


Use of Past Simple vs Past perfect in sentences with since

Ann admitted that she hadn't seen her parents since she left London.    Is the above sentence OK or do I have to write      Ann admitted that she hadn't seen her parents since she had left London.


I have created a brute-force password cracker in Java, however, the while loop does not end when it finds the correct password

Below is the source for the program. However when I run the program and use a password, for example "x", it will show "x" in the list of guessed passwords but it wont realize that "x" is the correct answer. I put in a if-else loop to break the while loop when the correct password is found, but it still doesn't stop. Any advice? Thanks in advance.  import java.util.*; import java.io.*; class pwcracker { public static void main (String[] args) {     Scanner scan = new Scanner( System.in );     Random rand = new Random();    Runtime.getRuntime().availableProcessors();    String pw, choices, guess;     long tries;     int j, length;      System.out.println("Enter a password that is up to 5 chars and contains no numbers: ");     pw = "" + scan.nextLine();     length = pw.length();      choices = "abcdefghijklmnopqrstuvwxyz";     tries = 0;     guess = "";      System.out.println("Your pw is: " + pw);     System.out.println("The length of your pw is: " + length);    System.out.println("for TEST- Guess: " + guess + "pw :"+pw);     if (guess !=  pw){    while  (guess !=  pw)      {          j = 0;         guess = "";          while ( j < length )         {             guess = guess + choices.charAt( rand.nextInt ( choices.length() ) );             j = j + 1;          if (guess == pw)      {        System.out.println("Match found, ending loop..");        break;      }          }                 System.out.println("2 Guess: " + guess + " pw :"+pw);       //this is for me to view the actual guesses         tries = tries + 1;                           }   }     System.out.println("Here is your password: " + guess);     System.out.println("It took " + tries + " tries to guess it."); } }


Is there a captureNetworkTraffic implementation in Selenium 2 via webdriver?

If yes, how is it called, or where can I find more info about it? (I'm not talking about using WebDriverBackend.)  If not, what alternatives are there?


I have a form with a date field.   I select a date using a jquery datepicker. The format is mm/dd/yyyy.  The date inserts into the db like 0000-00-00.  When I use die($startdate); This outputs the correct date in the correct format when uncommented.   db type: date   Code:  $startdate = date('Y-m-d', strtotime($_POST['startdate']));   //die($startdate); //<--outputs the correct date in the correct format when uncommented.    try {   $stmt = $db->prepare('INSERT INTO table (firstname,lastname,startdate) VALUES (:firstname, :lastname, :startdate)');   $stmt->execute(array(     ':firstname' => $_POST['firstname'],     ':lastname' => $_POST['lastname'],     ':startdate' => $_POST['startdate'],     ));    }   I also tried   $startdate = date('Y-m-d', strtotime($_POST['startdate']));    in the try{} but doesn't work either.    What am I doing wrong?   This is to John Conde.  I believe it's quite simple on how this is different and why it's not a duplicate.  If you didn't notice there was an "ERROR" in my code.  I needed help finding the issue. Marc found it and now it works.  I still wonder why this is so difficult to understand.


How will old M42 lenses work on a Nikon camera?

I wanted to get some cheap old lenses to use on my Nikon DX DSLR (D3100).  However, Nikon has one of the greatest flange distances of all manufacturers, which means that most lenses I can buy (M42 mount, etc) will not focus to infinity. I saw some adapters with correction lens to allow infinity focus, but also read they worsen picture quality.  Has anyone here used this kind of setup? (M42 cheapo old lens + adapter to Nikon with/without infinity focus correction lens)  If so, what can I be expecting, quality-wise? I read M42 lenses are not that bad, and I only have DX lenses, so I would not be expecting heavenly performance. Basically, I'd like a nice big tele lens (300mm+) and the ability to focus it to infinity.  Example pictures would be awesome, and particularly I'd like to hear some interesting opinions complemented by example photos of the setup I'm talking about — a picture is worth a thousand words.


I would like my mesh to achieve similar shape (helmet) like this:    The mesh:  I know my mesh is far away from look like what I want, but I'm kinda newbie so I'm trying the best with what I got.  Without subsurf (just for let you know how it looks without it):    Base mesh with subsurf:      How can I get rid of those weird and ugly lines or achieve similar form?  Thank you for helping guys!, got something similar @Manu Järvinen , @Leander, @miceterminator


weak sequential continuity of linear operators

Suppose I have a weakly sequentially continuous linear operator T between two normed linear spaces X and Y (i.e. $x_n \stackrel {w}{\rightharpoonup} x$ in $X$ $\Rightarrow$ $T(x_n) \stackrel {w}{\rightharpoonup} T(x)$ in $Y$). Does this imply that my operator T must be bounded?


How do we find a fraction with whose decimal expansion has a given repeating pattern?

We know $\frac{1}{81}$ gives us $0.\overline{0123456790}$  How do we create a recurrent decimal with the property of repeating:  $0.\overline{0123456789}$  a) Is there a method to construct such a number?  b) Is there a solution?  c) Is the solution in $\mathbb{Q}$?  According with this Wikipedia page:  One could get this number by applying this series. Supppose:  $M=123456789$, $x=10^{10}$, then $0.\overline{0123456789}= \frac{M}{x}\cdot$ $\sum$ ${(10^{-9})}^k$ $=\frac{M}{x}\cdot\frac{1}{1-10^{-9}}$ $=\frac{M}{9999999990}$  Unless my calculator is crazy, this is giving me $0.012345679$, not the expected number. Although the example of wikipedia works fine with $0.\overline{123}$.  Some help I got from mathoverflow site was that the equation is: $\frac{M}{1-10^{-10}}$. Well, that does not work either.  So, just to get rid of the gnome calculator rounding problem, running a simple program written in C with very large precision (long double) I get this result:  #include <stdio.h>  int main(void) {   long double b;   b=123456789.0/9999999990.0;   printf("%.40Lf\n", b);  }   Result: $0.0123456789123456787266031042804570461158$  Maybe it is still a matter of rounding problem, but I doubt that...  Please someone?  Thanks!  Beco  Edited:  Thanks for the answers. After understanding the problem I realize that long double is not sufficient. (float is 7 digits:32 bits, double is 15 digits:64 bits and long double is 19 digits:80 bits - although the compiler align the memory to 128 bits)  Using the wrong program above I should get $0.0\overline{123456789}$ instead of $0.\overline{0123456789}$. Using the denominator as $9999999999$ I must get the correct answer. So I tried to teach my computer how to divide:  #include <stdio.h> int main(void) {     int i;     long int n, d, q, r;     n=123456789;     d=9999999999;     printf("0,");     n*=10;     while(i<100)     {         if(n<d)         {             n*=10;             printf("0");             i++;             continue;         }         q=n/d;         r=n%d;         printf("%ld", q);         if(!r)             break;         n=n-q*d;         n*=10;         i++;     }     printf("\n"); }


Why `\pdfstrcmp` shows unrecongnized command in texstudio?

I have used this \pdfstrcmp as in the following to set the different   \makeatletter \newcommand{\setappendix}{Appendix~\thechapter} \newcommand{\setchapter}{Chapter~\thechapter~}  \titleformat{\chapter}[display]{\sffamily\huge\bfseries \color{sec}}{}{0.5ex} % {\ifnum\pdfstrcmp{\@currenvir}{appendices}=0     \setappendix     \else     \setchapter     \fi      \filleft \\%      \titlerule[1pt]     \vspace{1ex}%     #1\filleft\\     \vspace{1ex}%     \titlerule[3pt]}    \makeatother   But I dont know for what reason, though it gives the desire output, it gives me the following popup in texstudio unrecongnized command.    Shall I ignore the popup?  If I dont, will it create any issues?  I am running pdflatex with Miktex 2.9 in Windows 10 machine (and using biber as backend with biblatex).  MWE:  \documentclass[oneside]{book}  \usepackage[explicit]{titlesec} \usepackage[titletoc]{appendix}  \makeatletter \newcommand{\setappendix}{Appendix~\thechapter} \newcommand{\setchapter}{Chapter~\thechapter~}  \titleformat{\chapter}[display]{\sffamily\huge\bfseries}{}{0.5ex} % {\ifnum\pdfstrcmp{\@currenvir}{appendices}=0     \setappendix     \else     \setchapter     \fi      \filleft \\%     \titlerule[1pt]     \vspace{1ex}%     #1\filleft\\     \vspace{1ex}%     \titlerule[3pt]}  \makeatother  \begin{document}  \chapter{This is usual Chapter}  \begin{appendices} \chapter{This is appendix} \end{appendices}   \end{document}


I am sending tamil text from a form to php script but php is not recognize that.  Html Code  <form action="insert_into_db.php" method="post">   <textarea name="message" class="form-control message-box" rows="5" id="comment" placeholder="enter your message here"></textarea>  </form>   PHP code in insert_into_db.php  <?php $message = $_POST['message']; echo $message;   User Input :- இந்த டெமோ செய்தி உள்ளது  Output :- à®‡à®¨à¯à®¤ à®Ÿà¯†à®®à¯‡à®¾ à®šà¯†à®¯à¯à®¤à®¿ à®‰à®³à¯à®³à®¤à¯  expected output :- இந்த டெமோ செய்தி உள்ளது  Please help me Thanks in advance


I create the rules to iptables. But, when I restart the computer, the rules don't work! How to save the rules on Ubuntu ?    The was problem solved!  do:  After of the write the commands iptables, do:   1. sudo su  2. iptables-save > /etc/iptables.rules  3. In /etc/network/if-pre-up.d/iptables,put:   #!/bin/sh  iptables-restore < /etc/iptables.rules  exit 0   4. After, in /etc/network/if-post-down.d/iptables,put:  #!/bin/sh  iptables-save -c > /etc/iptables.rules  if [ -f /etc/iptables.rules ]; then  iptables-restore < /etc/iptables.rules  fi  exit 0  5. After, give permission to the scripts:  sudo chmod +x /etc/network/if-post-down.d/iptables  sudo chmod +x /etc/network/if-pre-up.d/iptables   More information:  Good luck!


Rename files numerically (date/time order)

I have 200 files in a folder. I downloaded them in a certain order -- often only a few seconds apart. I would like to append a number to the beginning of each of the files.  So the first file I downloaded (the oldest one) would need to change from name.txt to 001_name.txt.  All the way up to the last file (most recently downloaded) changing from name.txt to 200_name.txt.  How can I do it using the command-line?


Trouble finding the solution of $\int_0^{\pi/2}\sin^mx\cdot\cos^nx\,dx$ from the recurrence relation

Prove   \begin{align} & \int_0^{\pi/2}\sin^mx \cos^nx\,dx \\[12pt] = {} & \begin{cases}\dfrac{[(m-1)(m-3)\cdots][(n-1)(n-3)\cdots]}{(m+n)(m+n-2)\cdots}\cdot\dfrac{\pi}{2} & m,n\text{ even integers}\\[10pt] \dfrac{[(m-1)(m-3)\cdots][(n-1)(n-3)\cdots]}{(m+n)(m+n-2)\cdots} & \text{elsewhere} \end{cases} \end{align}   My Attempt $$ I_{m,n}=\int_0^{\pi/2}\sin^mx\cdot\cos^n x\,dx=\int_0^{\pi/2}\sin^{m-1}x \cos^nx \sin x \, dx\\ \int\cos^nx\cdot \sin x\,dx=\dfrac{-\cos^{n+1}x}{n+1}+K\\ I_{m,n}=\bigg[\sin^{m-1}x\cdot \dfrac{-\cos^{n+1}x}{n+1}\bigg]_0^{\pi/2}-(m-1)\int_0^{\pi/2}\sin^{m-2}x\cdot \cos x\cdot \dfrac{-\cos^{n+1}x}{n+1}\,dx\\ =0+\frac{m-1}{n+1}\int_0^{\pi/2}\cos^nx\cdot\sin^{m-2}x(1-\sin^2x)\cdot dx\\ =\frac{m-1}{n+1}\int_0^{\pi/2}\cos^nx\cdot\sin^{m-2}x\,dx-\frac{m-1}{n+1}\int_0^{\pi/2}\cos^nx\cdot\sin^{m}x\,dx\\ I_{m,n}=\frac{m-1}{n+1}\cdot I_{m-2,n}-\frac{m-1}{n+1}\cdot I_{m,n}\implies \color{blue}{\boxed{I_{m,n}=\frac{m-1}{m+n}\cdot I_{m-2,n}}} $$ case 1: $m,n$ even: $$ I_{m,n}=\frac{(m-1)(m-3)\cdots 1}{(m+n)(m+n-2)\cdots 2}\cdot I_{0,n}\\ I_{0,n}=\int_0^{\pi/2}\cos^nx.dx=\frac{(n-1)(n-3)...1}{n(n-2)...2}.\frac{\pi}{2}\quad;\text{ since $n$ is even}\\ I_{m,n}=\frac{(m-1)(m-3)\cdots 1}{(m+n)(m+n-2)\cdots 2} \cdot \frac{(n-1)(n-3)...2}{n(n-2)...2}.\frac{\pi}{2}\\ =\frac{[(m-1)(m-3)\cdots 1][(n-1)(n-3)...2]}{[(m+n)(m+n-2)\cdots 2]\color{red}{[n(n-2)...2]}}.\frac{\pi}{2} $$    Why am I not getting the solution given in my reference, more precisely, why do I get the additional term, marked in red, in the final solution ?  How do I reach the final solution from the recurrence relation ?  Similar question is asked before in , but it does not seem to get the same recurrence relation as in my attempt.  Note: I am having trouble proceeding from the recurrence relation, post mentioned below are attempts to derive the recurrence relation, which does not address the problem, that i have already derived it in my attempt.


With $a,\ b,\ m,\ n\in \mathbb{Z}$. Show that if ${\rm gcd}(m,n)=1$, then ${\rm gcd}(ma+nb,mn)={\rm gcd}(a,n){\rm gcd}(b,m)$

I don't really know how to prove this, i suppose it must have something to do with the definition of greatest common divisor and Bézout's identity.  I looked at some other questions here and thought that i had to get to gcd(ma+nb,mn)=1 and that gcd(a,n)gcd(b,m)=1 too, but i'm not sure.


How do I compute $\int_{|z|=r} x \, dz$ by use of a parameter?

How do I compute  $$\int_{|z|=r} x \, dz$$  by use of a parameter?


How do I see the ID of a content type record?

Using Entity Reference, I'm able to create a Field in a Content Type (Person) which references another Content Type (Story). When I go to input link data, I see a list of Title(s) of Story(ies).  How do I know that I have the right story? There are many crime fiction stories with the same title.  Is there a way to expose the Content Type record ID?


Remove completed reminders in OS X and iOS

I run the latest versions of OS X and iOS. Is there a way to mass-delete all completed reminders in both iOS and OS X? I’ve looked but can't seem to find a way so far.


using string variable to call a function in python

Searched through stack but did not find a answer I could implement in my code. I have a 'machine' supplied string variable -- no user input -- and need to call a function by the same name.  For example:  def add(x, y):     return x + y   the code that calls on the function:  num = function(x, y) ## where function is machine supplied string variable                        (i.e. add, subtract, multiply, divide, etc.)   Using the 'raw' variable, function, receives str object not callable. How do I call the fxn given the string input?


Adobe Illustrator: I've created a silhouette and need to fill one of the two paths with text, how do I do that?

I drew a silhouette (a moving dog), turned them into paths, and did compound path > expand to be able to fill the inside with the text I want. Because part of the legs cross over, it is actually two paths - the outline, and the second part of the outline that cuts out the space where the legs cross over. I need the text to all stay readable and not get cut off. How can I make this happen? I've tried excluding and minus front, but it makes it so I can't fill the path with text. ( You can see the two middle toes touching, this is how my art is. So the area here is cut out, and I do not want text to go there) Thank you!


What is the meaning of operator // when checking palindrome number in python

So i got this code to check if a number is a palindrome and it works fine but i got a question on the usage of some operator in the while loop. The operator // that is used between the original variable and integer 10. What is it doing to the original p value , is it dividing or? Here is the code am using def test_palindrome(p):     o=p#store the original value of p in some variable     reversed_number=0#declare reversed_number and init to zero     while(p>0):         rem=p%10#Get the remainder of argument and ten         reversed_number=reversed_number*10+rem         p=p//10#This is the operator whose function is in question, am not sure if its dividing     if(reversed_number==o):#do comparison with original input and return          print(f"{o} is a palindrome")     else:         print(f"{o} is not a palindrome") test_palindrome(number)


As a matter of fact Im quite new to Ubuntu and spent the last 2 hours finding a possibility/adjustment to "Shut Down" my Laptop when i close it ??  Maybe someone can help me with my little problem.  Greetings


I am a programmer, i have a old laptop with the same configuration as below: cpu Core 2 duo Intel T5870 2GHz, Ram 1GB. Can i use Ubuntu version for my work ? Thanks for help!


How to factor numbers that are the product of two primes

What are techniques to factor numbers that are the product of two prime numbers? For example, how would we factor $262417$ to get $397\cdot 661$? Would we have to guess that factorization or is there an easier way?


line of mathematicians guess their own hat color out of c colors

There is a common problem in which a long line of N mathematicians are each given a hat that is either red or blue.  They cannot see their own hat but can see all in front of time and can hear any response. They must state their own hat color from the back of the line forwards and no information may be passed besides their guess.  They may have a planning session in advance.  What is the maximum number of correct guesses can they guarantee?  The answer is (look away if you don't know) $N-1$.  If, instead of 2 colored hats, we use $c$ different colored hats, how many can we guarantee?  Assuming $N>>c$  I believe the answer to be $N-c+1$ and have confirmed this for $c=2, 3$, and $4$.  I believe this should be simple to prove by using the concept of "$x$ formulas allow you to solve for $x$ variables" but I am not well versed enough in pure mathematics to answer this.


Can I configure bash to execute "clear" before every command typed in the console?

I would like to configure bash to execute clear command every time I type some command in the terminal (before executing my command). How can I do that?  I'm using Debian Linux.


Mobile web should have different design for iOS and Android?

I've been developing a new hybrid app and as a web-app it is supported in both android and iPhone phones which can be seen here:    The question is: due to people being used to a certain mobile app behaviour in their platform(iOs/Android) should I still consider customising the UX for each, and if so how?


Google Search Console fetch and render says CSS, fonts and images are "Temporarily unreachable"

I have requested that Google index (Fetch and render in Search Console) my website on 4th August 2018 but still it didn't get indexed and it is stating that some scripts, style sheets, fonts and images can’t be reached temporarily. Can anyone give me solution on how to solve this issue?


how to encrypt password before writing to txt file and decrypt when needed to use it

i am storing the connection string provided by the user at setup time to a txt file  its a website  by setup i mean first access of the admin to the site  well  its working  but i need some code which can encrypt the password text and store to file so any one having access to the system can not understand the passward,  also please show decrpytion   thank u


Double-blind review with four references in a row?

I've read a lot of answers here about double-blind reviews and thesis or single articles.  My problem comes from having four self-references in my article. I feel that if I include them all, could be very easy to infer that this is the fifth one (It's a 4-year granted project and I have been collaborating in a number of software components inside a bigger architecture, now it's the time to use them all to interact with other applications) . But if I ommit some of them, I could end being accused of self-plagiarism. The other articles have been published in the proceedings of conferences that didn't require double-blind reviews, this is the first submission I make to a conference that asks for it (Maybe because of being CORE A) Also not worthless to mention that I'm going to send it as a short paper, so actually it'd be very helpful to cite rather than to repeat past texts.  What should I do?


Where does the image come from? How do I change my profile picture, or avatar? How do I change my profile picture on all SE sites at once? How can I use different avatars on different SE sites? How do avatars work? How do the SE sites know when I changed my Gravatar? Why do SE sites show a different Gravatar identicon than other sites where I use the same email address? How can I use a Gravatar image after logging in to facebook.stackoverflow.com? I changed my picture but am still seeing the old one    See also:


How do I fix "no public keys available" errors?

When I download updates or installing new software I get these warnings that I have no public keys. This just appeared one day and I didn't remove/add something to create this.     Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 16126D3A3E5C1192   I have tried: sudo apt-key update and it worked for some keys, but others are still missing, I need to add them.  I need help with adding the new keys and the address to all the keys. Those that aren't in Ubuntu and launchpad.


Trying to install TP Link AC 600 Archer T2UH

I have followed the instructions given here:  Currently using version 4.13.0-36-generic kernel    However the problem is when i get to make command i get the error   In function ‘memcpy’,     inlined from ‘rt_ioctl_iwaplist’ at /home/dev/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux/../../os/linux/sta_ioctl.c:696:2: ./include/linux/string.h:305:4: error: call to ‘__read_overflow2’ declared with attribute error: detected read beyond size of object passed as 2nd parameter     __read_overflow2();   I found  as a potential solution:     [...] I guess that Arch (and maybe other distros too) use different (more pedantic) options to build the kernel and its modules, helping us to find programming mistakes. I am not sure whether this is correct, but you can try this (and please report back whether it worked):      In os/linux/sta_ioctl.c:549, replace addr[0] with struct sockaddr so the line looks like this  memcpy(extra, addr, i*sizeof(struct sockaddr));       instead of  memcpy(extra, addr, i*sizeof(addr[0]));    I applied this solution (changed the lines) but the problem still remains.  Anyone know how to fix this?


Heathrow overnight layover - transit visa?

I know this has been asked multiple times, but I am unable to get answer for my case for transiting through London - Heathrow International (LHR). I am not sure if, I would be crossing the border control as mentioned on their official site. I also checked with Finnair and they are also not sure.   I read at lot of places that terminal is closed at night so you need to get out, I don't see any official information related to this.   Also I don't plan to leave the airport, I would just to be inside till the next flight. I am mostly concerned about the return flight where there is an overnight layover.    Final question:  I seem to fulfill all the transit visa exemption criteria except below one, where I feel ambiguity in second part, does it mean same day before midnight or next day before midnight.    "have a confirmed onward flight that leaves on the day you arrive or before midnight on the day after you arrive"   Origin: Canada / Destination: India  Arrives: 06:25am (day1) - T5 / layover: ~04h / Departs: 10:20am (day1) - T3  Origin: India / Destination: Canada  Arrives: 20:40pm (day1) - T3 / layover: ~15h / Departs: 11:40am (day2) - T5    Added more details: - So I believe I don't need a transit visa. Thanks folks for your help.  Transiting without a visa  You might be eligible for ‘transit without visa’ if:  o   you arrive and depart by air Yes  o   have a confirmed onward flight that leaves on the day you arrive or before midnight on the day after you arrive Yes  o   have the right documents for your destination (eg a visa for that country) Yes  One of the following must also apply:  o   you’re travelling to (or on part of a reasonable journey to) Australia, Canada, New Zealand or the USA and have a valid visa for that country Yes


Two hard drives, Two Operating systems on single computer

I have two hard drives on my computer; one with windows 7 which I want to keep, and one empty formatted with ntfs which I want to install Ubuntu. What file system do I put on the empty ntfs system and how do I set the partitioning/boot menu on Ubuntu to install and use both systems?


Can vacuum fluctuations change the position of an electron?

According to QFT, virtual electron-positron pairs are created everywhere in the space, and more frequently near electric charges. Suppose that one such a pair is created in the proximity of an electron. Is it possible for the initial electron to annihilate with the created positron, leaving behind the created electron?  If so, the position of the created electron would not be the same as the initial electron, so this effect would change the position of the electron we observe in that region of the space, creating some kind of uncertainty in position. Is there any quantitative measure of such an uncertainty in position due to vacuum fluctuations?


Can I deduct a contribution to an IRA if I also contribute to a 401(k) in the same tax year?

Can I deduct a contribution to a traditional IRA if I am also contributing to a 401(k) in the same tax year?


How to restrict areas to specific types of prisoners

So, here we have how my new prison currently looks. However, I ran into issues when it comes to keeping the prisoners to where they belong.  I have 3 cell blocks, the grey ones are currently open to min sec and med sec while i placed all the max sec into another block. I've built them a seperate canteen, a yard, common room, laundry and placed a shower head into each cell. I didn't want to build all these classrooms, chapels and so on just for the max secs, so I want them to be able to leave their block to enter them. But for some reason, the max secs can walk around the prison freely since I don't have a chance to restrict them to specific areas. I've tried to create small areas and make them minsec only or medsec only, but i need both, min and med, to be able to pass through those areas.  Basically, in the image, you can see where the max secs should be able to go, but not further. How can I do that?


I want to have the query result look like this:  Product Desc     Site 1     Site 2     Site 3     Site 4  Product A        100        200        300        400 Product B         50         60         70         80   My table looks like this  Site ProductCode Amount  1    A            10.00 1    B            20.00 2    B            30.00 3    A            40.00 3    A            50.00 4    B            60.00 4    B            70.00   How will I build my sql query?


Does choosing the "Replace Windows 7 with Ubuntu" delete my drive data?

Quote from here:      Allocate drive space      Use the checkboxes to choose whether you'd like to Install Ubuntu   alongside another operating system, delete your existing operating   system and replace it with Ubuntu, or — if you're an advanced user —   choose the 'Something else' option.   Question: does choosing the second option "Replace Windows 7 with Ubuntu" delete my drive & drive data also, or does it only delete the C drive?


Trying to remap my left SUPER key (also called WINDOWS key) to left or right CONTROL key, with xkg

I've tried to read and understand this:   As a test, since my layout is "Polish, programmer" in the /usr/share/X11/xkb/symbols/pl file I played with remapping the 'q' character to 'x', and it worked just fine.  But what I want, is to remap LWIN (Left Super) to Left Control.   So I tried this: I started editing /usr/share/X11/xkb/symbols/pc file, assuming this is the 'root' of all the other files. Commented out this line:  //key <LWIN> {  [ Super_L       ]   };   and added this one:  key <LWIN> {    [ Control_L     ]   };   and rebooted PC, with no success. I.e. LWIN + C, doesn't copy selected text in text editors to clipboard, instead it just produces the 'c' letter. In the terminal instead of stopping current programm it also just produces the 'c' letter.  Here is my config file:   When I try the xev command and then press the Left Control Key, I see this:  KeyPress event, serial 40, synthetic NO, window 0x5a00001,     root 0x7e, subw 0x0, time 1053321, (374,-259), root:(374,545),     state 0x0, keycode 133 (keysym 0xffe3, Control_L), same_screen YES,     XKeysymToKeycode returns keycode: 37     XLookupString gives 0 bytes:      XmbLookupString gives 0 bytes:      XFilterEvent returns: False  KeyRelease event, serial 40, synthetic NO, window 0x5a00001,     root 0x7e, subw 0x0, time 1053425, (374,-259), root:(374,545),     state 0x0, keycode 133 (keysym 0xffe3, Control_L), same_screen YES,     XKeysymToKeycode returns keycode: 37     XLookupString gives 0 bytes:      XFilterEvent returns: False   BTW. Ask ubuntu suggests me two links to similar questions, but they are old, and suggest using xmodmap, and afaik it's no longer correct answer on Ubuntu >= 16.04 (Xenial) and this is precisely the version I have.  BTW2. I would really like to avoid using apps like Xbindkeys, considering there is a built in solution, which I guess I almost understand, and already spent some time on trying to understand it.


Error Installling an OS in Virtual Box in Ubuntu

While I am trying to install Kali-Linux on Virtual Box in Ubuntu I am getting this error.  Failed to open a session for the virtual machine Kali-Linux-1.1.0. VT-x is disabled in the BIOS. (VERR_VMX_MSR_VMXON_DISABLED).   Can anyone help me to sort out this error?


Most modern motorized vehicles are capable of both forward and reverse motion.  In the Star Trek universe, can an unmodified warp drive also be used to move backwards?  I realize that pretty much every ship we've seen has its navigational deflector (that is, the force field generator that pushes space dust and small debris away from the path of the ship) installed at the front of the vessel.  But ; it doesn't make it impossible.  Safety issues aside, is there any technical or engineering reason why warp drives cannot operate in reverse?  If not, have we ever observed a ship warping backwards, perhaps to escape from a dire emergency?  Or have we perhaps observed ships with an extra navigational deflector mounted on the rear?  I'm interested primarily in the canonical TNG-era continuity (including the DS9 and Voyager series), with preference given to evidence from the shows and movies themselves, or alternatively to reliable print sources such as the show's Writers'/Directors' Guide and the Technical Manual.  If this issue is absolutely never discussed in those sources, then an answer based on other Trek series/movies/continuities/canons would be acceptable.


I'm rendering JSON dates that look like this: /Date(1185336000000)/ and I'm trying to convert them to a ("mmmm d, yyyy")-type format.  I tried a if...includes() and then a format() method, but they didn't work (bad syntax) and they disabled already rendered data.    JS snippet:  import firmData from '../JSON/firmDir.json';  function loadBio() {  let dateOfHire = firmData.d.results.map(function(val) {       // if (val.hiredate === null || undefined) return " ";       let newDate = val.hiredate;       if (newDate.includes('000')) {            newDate.format("mmmm d, yyyy");       }     return val.hiredate  })  $("#hireDate-id").append(dateOfHire);  }  loadBio()   JSON snippet:  {   "d": {     "results": [       {        "hiredate": "/Date(1185336000000)/",        ...


What determines color -- wavelength or frequency?

What determines the color of light -- is it the wavelength of the light or the frequency?  (i.e. If you put light through a medium other than air, in order to keep its color the same, which one would you need to keep constant: the wavelength or the frequency?)


when i am changing the case owner for more than 10 records in the case list it is throwing the error : Apex trigger LFIQTriggerForCaseChanges caused an unexpected exception, contact your administrator: LFIQTriggerForCaseChanges: System.LimitException: Too many future calls: 11  I believe we have to do some changes in Trigger. Can you please help?  Trigger :   trigger LFIQTriggerForCaseChanges on Case (after insert,after update) {     /** WK URLs. **/       //String TDGStagingURL = 'link';    //String TDGProductionURL = 'link';     for(Case listCases: Trigger.New)     {         List<Case> caseDetail= [SELECT User_ID__c,Account.Name, CaseNumber,ClosedDate,CreatedDate,CST__c,Description,Origin,Priority,Product__c,Status,Subject,Type,Owner.Name FROM Case where CaseNumber =: listCases.CaseNumber];         for(Case c: caseDetail)         {             List<User> salesidDetail = [SELECT  OW_Employee_ID__c,Name FROM User WHERE Id IN (SELECT OwnerId FROM Case where CaseNumber =: c.CaseNumber)];             if(salesidDetail.size() > 0) {             LFIQNotifyCase.main(salesidDetail[0].OW_Employee_ID__c,c.Account.Name,c.CaseNumber,c.ClosedDate,c.CreatedDate,c.CST__c,c.Description,c.Origin,c.Priority,c.Product__c,c.Status,c.Subject,c.Type,c.Owner.Name,WKProductionURL);             LFIQNotifyCase.main(salesidDetail[0].OW_Employee_ID__c,c.Account.Name,c.CaseNumber,c.ClosedDate,c.CreatedDate,c.CST__c,c.Description,c.Origin,c.Priority,c.Product__c,c.Status,c.Subject,c.Type,c.Owner.Name,WKStagingURL);            }          }     } }   LFIQNotifyCase class :  //Notify LFIQ webservices on changes to CASES object  public class LFIQNotifyCase  {       public static boolean isApexTest = false;      @Future(callout=true)      public static void main(String SFId,String Name,String CaseNumber,DateTime ClosedDate,DateTime CreatedDate,String CSTID,String Description,String Origin,String Priority,String ProductName,String Status,String Subject,String Type,String OwnerName,String ServiceURL)     {          try {                  String result = 'error';                  HttpRequest req = new HttpRequest();                 HttpResponse res = new HttpResponse();                 Http http = new Http();                 req.setEndpoint(ServiceURL + '/InsertSFNotification?UserId='+ (SFId !=null?SFId:'0')+'&ACCOUNT_NAME=' + (Name !=null?Name.replace(' ','%20'): Name) + '&CASENUMBER=' + CaseNumber + '&CLOSEDDATE=' + (ClosedDate !=null?ClosedDate.format('yyyy-MM-dd'): null) + '&CREATEDATE=' + (CreatedDate !=null?CreatedDate.format('yyyy-MM-dd'): null)  + '&CSTID=' + CSTID + '&DESCRIPTION=' + (Description !=null?Description.replace(' ', '%20'): Description) + '&ORIGIN=' + (Origin !=null?Origin.replace(' ', '%20'): Origin) + '&PRIORITY=' + (Priority !=null?Priority.replace(' ', '%20'): Priority) + '&PRODUCT=' + (ProductName !=null?ProductName.replace(' ', '%20'): ProductName) + '&STATUS=' + (Status !=null?Status.replace(' ', '%20'): Status) + '&SUBJECT=' + (Subject !=null?Subject.replace(' ','%20'): Subject) + '&TYPE=' + (Type !=null?Type.replace(' ', '%20') : Type) + '&OWNERNAME=' + (OwnerName !=null?OwnerName.replace(' ', '%20'): OwnerName));                                req.setMethod('POST');                 req.setHeader('Content-Length','0');                  req.setCompressed(false);                  if(!isApexTest) {                    res = http.send(req);                 }              }              catch(System.CalloutException e)              {                 System.debug('Error Calling LFIQ Webservice (' +  ServiceURL + ') : '+ e);                 //System.debug(res.toString());             }       } }


$f: Y\to X^+$ defined by $f(y)= \begin{cases} y & \text{if}\ y\in X\\ \infty & \text{else} \end{cases}$ is continuous

I have this exercise where we let $Y$ be a Hausdorff space, and $X\subseteq Y$ an open subspace. We have to assume that X is locally compact. We let $X^+$ denote the one-point compactification of X, and let $\infty$ denote the unique point in $X^+\backslash X$. Define $f: Y\to X^+$ by: $$f(y)= \begin{cases} y & \text{if}\ y\in X\\ \infty & \text{else}  \end{cases}$$ Show that f is continuous. I am thinking that I have to show that for all open subsets $U\subseteq X^+$ the inverse image $f^{-1}(U)$ is an open subset of Y. The way I am thinking I can show that $f^{-1}(U)$ is an open subset of Y is by showing that $Y\backslash f^{-1}(U)$ is closed. But I am confused about how to do so.


$K \subset \mathbb{R}^n$ is compact iff it is closed and bounded

I want to prove $\Leftarrow$.  I just need one more step, now. If I find a compact set that contains K, then it will finish the proof. Rudin take a k-cell to do that, but before it he proves that every k-cell is compact, and I think I can take a more simple compact to do this step. I has thinked in the closed ball, but don't know how to prove that it is compact. Can anyone help me to find this set, if it really exists? Thanks.


You know a counterexample for:     Let $R$ be a commutative ring ($1\neq{0}$). If $a\in{R}$ is irreducible then $(a)$ is prime.   Thanks.


Windows 10 non-persistent installation (live ISO)

We've got a Windows 10 installation running in an environment where it can occasionally lose power and restart. However, this sometimes leads to corruption of files.  I've had a look at Windows "To-Go" but this seems to be persistent. And I've also checked out virtualisation, but that would require us to run a non-persistent Windows 10, in another Windows 10 environment.  Is it possible to install Windows 10 as a "non-persistent live CD"? So that a user will have a seemingly fresh Windows 10, but doesn't require to re-install it at each startup?


someone can tell me what is the best downloader in ubuntu? (same IDM is best) !!


Assuming I'm not playing as Assault and the most harmfull thing I can do is throw a grenade or hit it with K-Bullets (not a good option as I'd be seen), how do I survive to a tank?  Side note: hiding inside a building is not an option


In a = [1, 2] and b = [1, 2], a == b is True and a is b is False but could someone please explain how a == [1, 2] returns True


How can I permenently change the priority of a process?

How can I change the priority process permanently. When I an opening the application again, it has its own new pid(Process ID) and is set back to normal priority of 0 niceness, so how can I change the priority permanently other than starting everytime with the command?


New? Buttons on "Users" page behave differently than each other

I don't remember seeing these buttons before... I'm pretty sure the "Users" page used to look like the other tabs with the options being in a row with red underlines to highlight which tab is active on the page.  Now there are buttons but for some reason, the "reputation", "new users", and "moderators" all hover highlight in dark blue, making the text difficult to read while "voters" and "editors" don't.    I'm guessing this is a fragment of the responsive design, as it does resemble the user pages on Stack Overflow. It's worth noting that this seems to have been rolled out to every site that I've checked, not only Meta Stack Exchange but the odd hover color only appears here (as far as I can tell).    So, I did some more poking around this morning and I realized that the reason that "reputation", "new users" and "moderators" have a different hover highlighting is because they're visited. Not quite sure how I missed this but it might help in determining how to fix it.  This is global across all sites with the buttons. Here's the page on M&TV:    As you can see, I've tested this by clicking on the "editors" and "moderators" tabs, which have dark circles around them after being "visited" but the other three do not because I haven't clicked on them. "Editors" is darker grey because it's the tab that's currently active.


I am trying to balance underbraces in the equation below, how can I ensure that both underbraces at the same depth?  \begin{equation} y = \underbrace{ \left [ x^2 + r^2 (a^2+\frac{a^{0.3}}{b}) \right]}_\text{growth rate} \times  \underbrace{ C_0}_\text{initial} \end{equation}


Turning off Google search results indirection

In Google search results, in Firefox or Chrome, I get URLs that go through Google and not directly to the target site. For example, at     the first result is     I don't really care that Google is tracking what I click, and I don't really care about the extra indirection when I click on a result (though both are concerns). But I find it annoying that I can't copy-paste a result by simply right-clicking on a link and choosing “copy link address” (I want to get the real result, not Google's redirection to it).  I want to have the direct URL , at least for copy-paste purposes, in Firefox and Chrome.  Google's behavior changed several times:   When I asked this question, in a browser without Javascript, you got direct URLs in results: . The indirection was added via Javascript. Some time later, Google changed to provide indirect results in all browsers. Since 2012-09-04, it seems that:   In a browser without JS, the HTML still contains indirect results. In a browser with JS support (at least in recent Firefox and Chrome), the HTML contains a direct result in the href attribute, but there is an onmousedown attribute that invokes the  which does rewrite the link. You see the direct link when you hover, but you get an indirect link like the one above when you click or copy-paste.


Is there a program that could analyze the "real" resolution of an image?

Let's take image A: 2560*1920 pixel image in perfect focus. Sharp as a razor. That's 5 Mpix.  Let's take image B: image A resized to 5120*3840. It's now a 20 Mpix file, but there's no new data in the image, so - using common sense - it's still just a 5 Mpix file, just "bloated".  Theoretically, one should be able gradually to reduce image B's dimensions until reasonable sharpness is detected (bringing it as close to image A as possible, although without actually comparing them at this point), and thus derive the image's "true" megapixel count: the size below which imagery is starting to lose its details.  This value could easily be used to determine the usefulness of a photo - if I shoot it slightly out of focus, I can still print it in a smaller size, and no-one will notice. Or, it could help with assessing lens or sensor quality - if a 24 Mpix camera is unable to capture an image with more than "true" 8 Mpix, then something isn't right.  So, cutting to the chase: is there a software program that does just that? Or am I doomed to writing my own?    From a comment by the OP to one of the answers:     I need to measure how much detail is my positive transparency scanner really getting, before I scan a collection of about 2000 old slides and consider it digitized. If I set it to optical 19200 dpi or something, and it keeps producing images with detail lost, equal to, say, a 5 Mpix camera, then I'll know it's bad.   This is the actual problem the question wants to solve. Everything above is about one perceived solution to that root problem.


Off-topic option should include all Stack Exchange sites

Possible Duplicate:             At the moment, when you vote to close a question when it's off-topic, you can only vote to move it to one of these sites:  meta.stackoverflow.com   serverfault.com   superuser.com   webmasters.stackexchange.com   programmers.stackexchange.com     But sometimes the question is really a good one, but it would fit some other Stack Exchange site. And new users rarely know the difference. For example:  http://codereview.stackexchange.com   http://math.stackexchange.com http://scicomp.stackexchange.com http://cstheory.stackexchange.com http://android.stackexchange.com http://webapps.stackexchange.com   Anyway, I think giving the whole range of Stack Exchange sites in the off-topic option will help reduce the load on Stack Overflow and direct people to right sites.


Find the least value of $\dfrac {3a}{b+c} + \dfrac{4b}{a+c}+ \dfrac{5c}{a+b}$ for positive $a, b, c$.    I tried using the Cauchy-Schwarz inequality, but could not proceed after a bad equation which couldn't be further solved .


Show bounded and convex function on $\mathbb R$ is constant

How can we show that a bounded and convex function on $\mathbb R$ is constant? Derivatives are of no use since the function does not have to differentiable. I saw an answer here I think a while ago but did not understand it at all.  Since derivatives are useless, we would have to use the definition and somehow show that the function lies between two values which are equal to each other. But I am unable to progress any further.


For the longest time I have been instructed to put on 100nF decoupling capacitors between the VCC and GND pins whenever I lay out a board involving an MCU. I could not find the exact reason as to why they are needed. However, after some research online I did find a few reasons for their use. Below I explain the main reason, as I understand it, why decoupling capacitors are needed. I would like some feedback and would also like to know if this explaination is satisfactory or not.   Consider a pin of an MCU which has a single LED connected to it through a resistor. Lets say that the pin toggles from low to high, that is it turns the LED on. Now with the LED on, it will draw current which the MCU will have to provide. In return, the MCU draws more current (i.e power) from the power supply i.e. its VCC and GND pins. However, a sudden current draw by the power pins causes a voltage drop across the resistance of the power traces. Since the power supply is slow as compared to the microcontroller, it senses the drop in voltage after a little time and then changes the voltage back to its constant value again ( since it is to behave as a constant voltage source). That is where the decoupling capacitors come in. Whenever the MCU draws in a current pulse, the capacitor makes sure that the voltage across the power pins remain essentially constant till the power supply voltage stabilizes again.  That is all I have understood. Now I do not know how to calculate the exact value of the decoupling capacitor but have been told that 100nF or any value in that neighbourhood is pretty safe to use.  I am waiting for your comments.


What is the difference between a partial likelihood, profile likelihood and marginal likelihood?

I see these terms being used and I keep getting them mixed up. Is there a simple explanation of the differences between them?


Material that shows only shadows in rendering

In Blender Cycles, can a material be formatted so that, when rendering, it ONLY shows the shadows that were cast upon it by objects? This could be used when using a 360° HDRI as world background, to have an object appear to cast shadows on the background.  As an example, in the picture the plane is added to give the cube a shadow. Unfortunately the entire plane keeps showing up in the rendering. I would like to render the cube and the shadow ONLY, as to generate the impression that the cube is sitting on the road deck. Making the material of the plane (but not the shadow) invisible/transparent would do the job. The question is, how?


getting off at connecting city but let luggage go to final destination

I want to drop off my luggage at the connecting city for final destination which is my home. My luggage is already tagged for final destination at my original destination. All i have to do is drop off the luggage at the drop off site outside of customs. Someone will pick the luggage for me at the final destination.  Do I need to check in and let airline know or not bother checking in and let my luggage go to final destination since it is already tagged for final destination.  Will the airline pull my luggage out if they find out I did not check in? or will they know?  Connecting time is about 3 hours. I do not need a refund And this is the last stop.


How do I remove duplicate items from an array in Perl?

I have an array in Perl:  my @my_array = ("one","two","three","two","three");   How do I remove the duplicates from the array?


Can't access UEFI or boot to Windows 10 after installing Ubuntu 16 LTS

I bought a new dell laptop a couple of months ago that's running Windows 10. I did not install a password. I had heard about the secure boot and disabled it through the UEFI (F12 on startup).   I wanted an app (Microsoft now has an app store) but they make you get a Microsoft account. A few days later I shut down the machine and upon restart, it asked me for a password.   I knew that I could get into the machine and see the files (my passwords are in a text file on my windows desktop) if I installed Ubuntu.   I tried to see the files from the "Try Ubuntu" but  they weren't accessible, so I made a small partition and installed Ubuntu. That's when I first heard about fast boot. Ubuntu installed OK. I have the grub menu that shows both Ubuntu and Win 10.   When I try to boot to Windows 10 I get a pixelated screen and it will not boot.  I also can't access UEFI by hitting F12. My guess is I needed to disable the fast boot in Windows before I installed Ubuntu, but it's too late now.   Is there a way I can turn off grub or disable that feature from within Ubuntu?    I can't access the UEFI to get to the boot menu and it's stuck on booting from the HDD so I can't boot from a CD or USB.   I only need to get into Windows one time to turn off the hibernation/fast boot but can't find a way.   Any help you can give will be greatly appreciated!


Question about logical implication $P\to Q$

Having come across mathematical logic, a question suddenly came into my mind. We commonly know that the truth value of $P\to Q$ given as:  $\begin{matrix} P&Q&P \Rightarrow Q \\ T&T&T\\ T&F&F\\ F&T&T\\ F&F&T \end{matrix}$  I do not understand how $P\to Q$ holds when P is false. For example, let me propose a statement:  Let $n$ be a nonzero real number.  P: $n$ is a rational number  Q: $n\cdot0=k$, where $k$ is a nonzero real number.  We obviously know that Q is a false statement. Hence, I omit the case when Q is true. $\begin{matrix} P&Q&P\Rightarrow Q \\ T&F&F\\ F&F&T \end{matrix}$  P True: $n$ is a rational number;  P False: $n$ is not a rational number; $n$ is an irrational number.  How is it that $P\to Q$ holds true when P is false?


“Those girls, who serve in the restaurant are very enthusiastic.”   I’m from vietnam and my teacher said that relative clause which have demonstratives such as ‘this’,’that’,’these’,’those’ requires comma like the sentence above. Is that true ?      “Those girls who serve in the restaurant are very enthusiastic.”   Is this sentence whithout comma grammatically wrong? I would be grateful if someone can help me make it clear.


For landscape photography in potentially harsh climates, are traditional twist-action tripod legs preferable to quick-release?

I'm a relatively new landscape photographer and long-time user of a tripod with quick-release plastic clasps on the legs (I've owned this specific tripod base for around 10 years).  On a recent trip, I spent some time at landscape photography hotspots, where I had a chance to meet and chat with other photographers at scenes. While it didn't come up in conversation at the time, I noticed that most of the other photographers (essentially, all of them) used twist-action tripod legs -- the common older design where leg segments are released or locked in place using a screw threaded lengthwise along the leg.  Is there a reason this kind of leg release action is so popular among (at least) landscape photographers? Is it more robust against harsh environments, or less prone to e.g. locking up after a dip in a cold river (which was a problem that did affect my quick-release clamps after ice formed up on them)?  All I'm sure of is that they have the drawback of being slower to set up.


What infinity is greater than the continuum? Show with an example

The diagonal argument establishes that the continuum is greater than countable infinity. What is an example of the next infinity (or any greater infinity) and how can it be shown that there is no 1:1 correspondence with the continuum?


Can Blender save Rendered image periodically

I usually render still images with very high samples(1000-5000) in cycles render engine.I leave this rendering on my desktop PC overnight. I was wondering if there is a feature/addon that can save the rendered image every 100 samples or every 30 mins or something of the sort. So that when I wake up in the morning and there was a power outage during the middle of the render, I still have a render close to the quality I wanted rather than none.


Independence of multivariate random variables

Let $X=(X_1,X_2,...,X_n)$ be an independent multivariate random variable, i.e. $$ F_X(x_1, x_2,...,x_n)=\prod_{i=1}^{n}F_{X_i}(x_i) $$ This implies that if we take 2 components $X_i, X_j$, these are independent as well: $$ F_{(X_i, X_j)}(x,y)=F_{X_i}(x) \cdot F_{X_j}(y) $$ I need to prove that the reverse statement is not true, i.e this is false: $$ F_{(X_i, X_j)}(x,y)=F_{X_i}(x) \cdot F_{X_j}(y) \implies F_X(x_1, x_2,...,x_n)=\prod_{i=1}^{n}F_{X_i}(x_i) $$  A theoretical proof or a counter-example are both acceptable. Thanks, András


The sum of a finite number of rational numbers is of course a rational number, but the sum of an infinite number of rational numbers might be an irrational number.  Can someone give me some intuition why this sum might be irrational?  I just "don't feel it."


Medium with refractive index less than unity?

What I really can't understand, What are the properties of a medium with ? how does it affect light rays which fall on them?


How to find the equation of a line, tangent to a circle, that passes through a given external point

I am given the equation of a circle: $(x + 2)^2 + (y + 7)^2 = 25$. The radius is $5$. Center of the circle: $(-2, -7)$.  Two lines tangent to this circle pass through point $(4, -3)$, which is outside of said circle. How would I go about finding one of the equations of the lines tangent to the circle?  I haven't started calculus, so I ask for advice fitting for someone starting a topic like this.


Can a Syrian citizen get a US visa after the current administration revoked the travel ban?

Has the travel ban been fully revoked formcitzens of Syria and others? Is it possible to apply for a Visitor visa if you are a syrian Citizen? I know the odds are slim when it comes to getting one but can one still apply?


There was once a Far Side cartoon in which a black hole had opened in someone's living room and was sucking the furniture, people, pets, etc to the middle of the room.  It was a funny picture, but could it happen? If  and , couldn't a black hole be created in a lab somehow and continue to exist there? If so, what would happen over time? Would the whole planet necessarily be drawn in, or might the hole be kept stable?


Force refresh (re-scan) wireless networks from command line?

How can I force Windows to re-scan for available wireless networks from the command line?  (i.e. I'm looking for the command-line equivalent of pressing F5 on the GUI.)


A formula for the $n$th term of a sequence

Find a formula for the $n$th term of the sequence   $$1,2,2,3,3,3,4,4,4,4,\ldots.$$   Let $x_n$ denote the $n$th term of the sequence. If $$1+2+\cdots+m < n \leq 1+2+\cdots+m+(m+1)$$ then $x_n = m+1$. Is this a formula or not?


Do I need a Visa for a Schengen train trip with stop-over in other Schengen countries?

I am an Indian citizen with a US green card. I am going on a study abroad trip to London and I know I need a visa for that. However, I do plan to take a trip to Germany to visit my relatives via train (EuroStar and the ICE). I know the trains have stopovers in either Paris or Brussels but I am unsure of what the visa requirements will be for these countries, especially for France and Belgium since I would just be switching trains. I assume I would need a German visa as well.   What kind of permission do I need for traveling through these countries?


Interpreting transformed dependent and independent variables

How would I interpret a transformed dependent variable (4th root) with some of its predictor variables transformed as well? In our study, we transformed our dependent variable to 4th root, $Y^\frac{1}{4}$, and one of our predictor variables to $\ln(X)$. How would I interpret that?


So i have to prove if $f(z_1)=f(z_2)$ then $z_1=z_2$ .  I tried substituting $z=x+yi$ i also tried proving their differences in absolute value are zero.None of this work .Im sure im missing a property or something that will make this very easy. I also tried making the first part of the eq belonging is $R$  so the  second part of the eq must have imaginary part  zero. I just dont get to the result i want.


How to use merge windows unallocated space into Ubuntu using GParted?

I deleted my dual boot Windows part from GParted. Now this unallocated space of the windows, I want merge them into sda5. But I don't know how to do this. Have seen many post regarding this like drag to left to give the space but while trying to do this using Resize/move, that it's max size is already 600 GB so I can't merge that 300 GB into it. I think I'm doing it wrong. What is the right way to do this?


Does the shell go through all the directories in PATH every time?

If the shell is unable to find an executable in the directories mentioned in the PATH environment variable. Does it store this information somewhere to make the subsequent calls faster or it again searches all the directories?


how to find the unique smallest topology?

I  have come  across  to  the following question :   Let  $\mathscr{T}_\alpha$  be a family  of  topologies    on  $ X$ .  Show  that   there  is   a  unique  smallest   topology   on  $X$    containing   all   the  collections   $\mathscr{T}_\alpha$ , and  a  unique    largest   topology   contained   in  all  $\mathscr{T}_\alpha$.   I think  that  the unique smallest  topology  equals  the union  of  all  the $\mathscr{T}_\alpha's$, and the unique largest  topology  contained  in  all  $\mathscr{T}_\alpha$  equals  the  intersection of all  the $\mathscr{T}_\alpha's$ .


I am trying to show that every open set can be written as a union of closed sets. I really have no idea where to start with this proof, does anyone have any suggestion?  Thanks !


Laptop with ubuntu 18.04 gets into flight mode when i close the lid

The laptop is an msi gs65 stealth 8sg. I recently installed ubuntu 18.04 and when I close the lid or get in suspend mode the laptop gets into flight mode. I have to do a restart to switch it off.  Any suggestion on how to fix it?  Thanks!


Methods to quantify if the sum of two variables is close to a constant

In my data set, each individual has two properties, a and b. It seems that a + b is close to 10. Which statistic method could I use to test if this is true?   I really appreciate your help!   Person a   b     1   2   8     2   2   9     3   3   7     4   2   8     5   4   6     6   2   8     7   4   6     8   2   9     9   2   8     10  5   5


How to find the maximum diagonal length inside a dodecahedron?

I am trying to find the maximum length of a diagonal inside a dodecahedron with a side length of $2.319914107\times10^{89}$ meters.  I am not sure if any other information than that is needed, if it is I probably have it and will give it, but if you could help that would be great.  I am really just trying to find the distance between opposite vertices.


Paged posts - how to use numbers and next/previous links?

I want wp_link_pages (mutli-page posts) to display the page numbers, the word "previous" before those numbers, and a "next" after those numbers.  It would look like this:  Prev 1, 2, 3, 4 Next  I'm attempting to do this without a plugin.  Here's what I've tried so far, but it isn't working, it is only displaying numbers.  <?php wp_link_pages(array(     'before' => 'Pages',      'after'  => '',     'next_or_number'=>'number',     'previouspagelink' => 'previous',     'nextpagelink'=> 'Next' )); ?>