passing python variable (string) to bash command through echo pipe

I am having trouble passing a string in python (python variable) as input to a sequence alignment program (muscle) on the command line (bash). muscle can take stdin from the command line, e.g.;  ~# echo -e ">1\nATTTCTCT\n>2\nATTTCTCC" | muscle  MUSCLE v3.8.31 by Robert C. Edgar  http://www.drive5.com/muscle This software is donated to the public domain. Please cite: Edgar, R.C. Nucleic Acids Res 32(5), 1792-97.  - 2 seqs, max length 8, avg  length 8 00:00:00     22 MB(2%)  Iter   1  100.00%  K-mer dist pass 1 00:00:00     22 MB(2%)  Iter   1  100.00%  K-mer dist pass 2 00:00:00     23 MB(2%)  Iter   1  100.00%  Align node        00:00:00     23 MB(2%)  Iter   1  100.00%  Root alignment >1 ATTTCTCT >2 ATTTCTCC   It is this fasta alignment (the last 4 lines) that I am after - you can redirect the output of muscle (echo -e ">1\nATTTCTCT\n>2\nATTTCTCC" | muscle > out.file to get just the fasta alignment, which I need for downstream processing. BUt to get there, I have to pass 'muscle' the FASTA sequence string, which I think is best done via echo as above in bash.   So, the script takes two multiFASTA files and and pairs each FASTA sequence based on a list of ids for each file - this is working (though I realize it is perhaps not the most efficient way to go about it - I am new python user). Then I need to align each set in muscle before calculating distances/difference.   Here is what I have so far :   #! /env/python from pairwise_distances import K2Pdistance import pairwise_distances import subprocess from subprocess import call import os       fasta1=[''] for line in open('test1.fasta'):     if not line.startswith('>'):          fasta1.append(line.strip())  fasta2=[''] for line in open('test2.fasta'):     if not line.startswith('>'):          fasta2.append(line.strip())  for l1, l2 in zip(open('test1.list'), open ('test2.list')):  try:    a=fasta1[int(l1)]  except IndexError,e:      a="GGG"   try:    b=fasta2[int(l2)]  except (IndexError):    b="CCC"   temp_align=str(">1"+'\n'+a+'\n'+">2"+'\n'+b)    first=subprocess.check_output(['echo','-e',temp_align])  print first  subprocess.call(['bash','muscle'], stdin=first.stdout)  print second   #new=K2Pdistance(outfast1,outfast2)   #subprocess.Popen(['bash','muscle'], stdin=subprocess.check_output(['echo','-e',temp_align], stdout=subprocess.PIPE).std.out)`   The 'temp_align' variable is what I want to pass to muscle - it is the result of combining the appropriate fasta sequence from each multiFASTA file, for each loop over the ids/list, and is formatted like a FASTA file.   This issue is that I can echo the FASTA string, but I cant seem to "pipe" that via stdin to muscle... The main error I get is: AttributeError: 'str' object has no attribute 'stdout'.   ~#python Beta3.py  >1 ATCGACTACT >2 ATCGCGCTACT  Traceback (most recent call last):   File "Beta3.py", line 38, in <module>     subprocess.call(['bash','muscle'], stdin=first.stdout) AttributeError: 'str' object has no attribute 'stdout'   Can subprocess or other commandline modules take strings as stdin? IF not, I am not sure how I can echo and then pipe into muscle... Any other ideas would be much appreciated. I tried a few options from this thread   but no luck yet.  EDIT: Here are some example files:   ~# cat test1.fasta  >1 ATCGACTACT >2 ACTCAGTCA >3 TTCACAGGG ~# cat test2.fasta  >1 ATCGCGCTACT >2 GGCGTCAGTCA >3 TTCAACCCCAGGG ~# cat test1.list  1 2 3 ~# cat test2.list  1 3 2   EDIT 2: That previous post is related, but my question is about linking two bash commands starting with a python variable that is a string...and then, ideally, capturing the stdout of the second command back into a python variable... I dont quite see how to translate the answers on that post into a solution for my specific question...I guess I don;t fully understand what the poster was trying to do.


I tried to set up a root cron job to run a Bash script as root, to run at minute 7,37, every hour, every day of month, every month. This script is located in /usr/bin and named tunlrupdate.sh. It updates the DNS of Tunlr.  $ ls -l /usr/bin/tunlrupdate.sh  -rwxr-xr-x 1 root root 2133 Sep 24 15:42 /usr/bin/tunlrupdate.sh   This Bash script is available .  When invoked the script writes what's happening in a log located in /var/log/tunlr.log  To add this root cron job I used the standard for root's crontab  sudo crontab -e   And inserted these 2 lines at the end. I expect cron to run the script as root.  # check for updated Tunlr DNS every 30 minutes at the hour + 7 mn and hour + 37 mn 07,37 * * * * root /usr/bin/tunlrupdate.sh   A later command sudo crontab -l confirmed that the cron job has been inserted.  I did reboot Ubuntu and was checking in the log file if the cron job was launched properly. However there is nothing in the logfile /var/log/tunlr.log meaning the job was never successfully launched.  I did check that if I run the script from the command line  sudo /usr/bin/tunlrupdate.sh   then the logfile is updated accordingly.  Why is this cron job not running as planned in my system?  UPDATE 1 : All the proposed solutions so far do not work. I thank Olli for a CLI to list the system log sudo grep CRON /var/log/syslog. However I did get a CRON error  CRON[13092]: (root) CMD (  [ -x /usr/lib/php5/maxlifetime ] && [ -d /var/lib/php5 ] && find /var/lib/php5/ -depth -mindepth 1 -maxdepth 1 -type f -cmin +$(/usr/lib/php /maxlifetime) ! -execdir fuser -s {} 2>/dev/null \; -delete)   with the suggested PATH= insertion & use of absolute path from root for functions in the script or without this suggested solutions here. I still get this error.  After some searching I pinpointed the error in the file /usr/lib/php5/maxlifetime as is explained : Change #!/bin/sh -e --> #!/bin/sh -x  Then listing the CRON error log in my system  sudo grep CRON /var/log/syslog Feb 11 18:07:01 Marius-PC CRON[14067]: (root) CMD (root /usr/bin/tunlrupdate.sh) Feb 11 18:07:01 Marius-PC CRON[14066]: (root) MAIL (mailed 1 byte of output; but got status 0x00ff, #012)   I still don't get the bash script executing. This time no error is shown in the log. To get assurance this was not the content of the script I reduced the script to the following 3 lines:  #!/bin/bash LOGFILE=/var/log/tunlr.log echo $LOGFILE >> $LOGFILE   I still don't get the cron job through. Nothing is written in the log file. So even may be an empty script will not run in cron ? I don't get it. I am know trying a script reduced to these 2 lines:  #!/bin/bash exit 0   And still the same error log. The cron script does not go through ...


Unable to center vertically css-animated svg

Trying to create a zoom-out animation from center.  Can't get the svg to center vertically to save my life. Also would love to have it zoom out of browser-window width and not reset back to 100%.  <html> <head>   <style>    div {   display: flex;   justify-content: center;   align-items: center;   animation-name: example;   animation-duration: 0.5s;   animation-iteration-count: 1;   }    @keyframes example {     0%   {zoom: 250%}    33%  {zoom: 500%}     60%  {zoom: 750%}     80%  {zoom: 1000%}     100% {zoom: 1250%}   }   body {     background-color: #4D4D4D;   }   </style> </head> <body>   <div>     <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48" fill="#fff">     <path d="M0 0h48v48H0z" fill="none"/>     <path d="M24 4C12.95 4 4 12.95 4 24s8.95 20 20 20 20-8.95 20-20S35.05 4 24 4zm-4 29V15l12 9-12 9z"/>     </svg>   </div> </body> <html>


I formatted this two partitions of my microSD card and now I want to merge them.. How to do that?


How can I find the cheapest prepaid SIM card for a given country?

Next month I am traveling to country X, where I would need Y minutes of calls, Z text messages and most importantly Q megabytes of data. How can I find the cheapest/most reliable SIM card for my needs?


Git command to show which specific files are ignored by .gitignore

I am getting my feet wet with Git and have the following issue:  My project source tree:  / | +--src/ +----refs/ +----... | +--vendor/ +----...   I have code (currently MEF) in my vendor branch that I will compile there and then move the references into /src/refs which is where the project picks them up from.  My issue is that I have my .gitignore set to ignore *.dll and *.pdb.  I can do a git add -f bar.dll to force the addition of the ignored file which is ok, the problem is I can not figure out to list what files exist that are ignored.  I want to list the ignored files to make sure that I don't forget to add them.  I have read the man page on git ls-files and can not make it work. It seems to me that git ls-files --exclude-standard -i should do what I want.  What am I missing?


How to implement fisheye effect with a GLSL fragment shader

I would like to render my scene with a wide FOV and then apply a fisheye distortion via fragment shader. How would this shader best be implemented?  Update  I try to reproduce a fisheye effect similar to what can be seen through a lense like . My first try was to port the fragment shader explained in  because it seemed to be a good starting point:  #version 120  uniform sampler2D src;  float fov = 2.09;  void main(void) {     float z = sqrt(1 - gl_TexCoord[0].s * gl_TexCoord[0].s - gl_TexCoord[0].t * gl_TexCoord[0].t);     float a = 1.0 / (z * tan(fov * 0.5));     gl_FragColor = texture2D(src, (gl_TexCoord[0].st - 0.5) * 2.0 * a); }   unfortunately, the result looks like this:


Teleportation door to another world or time

There is a human settlement, and there seems to have been an alien invasion, but it's long over. I've read this in a German anthology, but am sure it's British or American. It begins with a man at home, a circular door pops up in his room. On the other side he finds strange, giant buildings and a giant empty pit. He finds some screen-device and makes it play back some imagery. This shows some alien lifeform in the pit. The images are so horrifying, that he almost goes mad and only after some time he barely recovers. He leaves the compound and finds a human settlement, with very healthy but somehow primitive people. They seem to worship him. He returns home by the teleporter door, picks up some books and returns to stay as their leader. I read this about 30 years ago, but I´m quite sure the story is from the fifties or sixties. Unique detail at the end: He grabs all the books about agriculture and leadership he can get his hands on and jumps back through the circular opening to the other end. He then learns, that a part of his book stack was cut in half by touching the rim of the circle, one of the ruined ones being Hitler´s Mein Kampf, which he then applauds as all for the better being ruined. I remember this especially, because that book is forbidden for sale in Germany, you can only get it legally for scholarly reasons at university or such places, and by this story I first learned that drivel seems to have been received elsewhere in the world as well and seemingly even recognized as a legitimate work of political literature, which I found appalling at the time but also fascinating. So maybe the story was from the fifties, if that book was still in circulation there at that time...


partitioning - How to create new partition through unused size without livecd

I do not have any drives, so I have to do without anything. What should I do?


How do I get rid of unused space on LVM2 PV?

I have a slight problem. After resizing my Ubuntu LVM2 Physical Volume from 250G to 72G, Gparted was able to let me click on the resize button on /dev/sda5     But when I apply the changes it gives me this error:    I want my final partition layout to look like this:


Advantage of switch over if-else statement

What's the best practice for using a switch statement vs using an if statement for 30 unsigned enumerations where about 10 have an expected action (that presently is the same action). Performance and space need to be considered but are not critical.  I've abstracted the snippet so don't hate me for the naming conventions.  switch statement:  // numError is an error enumeration type, with 0 being the non-error case // fire_special_event() is a stub method for the shared processing  switch (numError) {     case ERROR_01 :  // intentional fall-through   case ERROR_07 :  // intentional fall-through   case ERROR_0A :  // intentional fall-through   case ERROR_10 :  // intentional fall-through   case ERROR_15 :  // intentional fall-through   case ERROR_16 :  // intentional fall-through   case ERROR_20 :   {      fire_special_event();   }   break;    default:   {     // error codes that require no additional action   }   break;        }   if statement:  if ((ERROR_01 == numError)  ||     (ERROR_07 == numError)  ||     (ERROR_0A == numError)  ||      (ERROR_10 == numError)  ||     (ERROR_15 == numError)  ||     (ERROR_16 == numError)  ||     (ERROR_20 == numError)) {   fire_special_event(); }


How to apply css to Lightning:overlayLibrary

My objective is to control the width of the modal provided by lighting:overlayLibrary component. I am trying to do it by overriding the css applied to the slds-modal__container. I was hopeful this would be as easy as adding the override to the style page of the component that contains the modal and applying it at modal creation using the cssClass class param.  I have tried a few variations based on the following with no luck  the component  <component>   <lightning:overlayLibrary aura:id="theModal" />    </component>   the controller  ({   openModal:function(component){         var modalBody;         $A.createComponent("c:pseudoContent", {},                            function(content, status) {                                if (status === "SUCCESS") {                                    modalBody = content;                                    component.find('theModal').showCustomModal({                                        header: "Application Confirmation",                                        body: modalBody,                                         showCloseButton: true,                                        cssClass: "mymodal",                                        closeCallback: function() {                                            alert('You closed the alert!');                                        }                                    })                                 }                             });   }   })  and the sytle  .THIS .mymodal div.slds-modal__container{   width:90%;   max:width:90% }   This produces a page containing

     ...   </div
   but when I inspect the page the styles in the mymodal class are not being applied to the element, I guess it is a scope issue??   Is there a way to get control of the width of the modal?  Your help is appreciated!


Consequence of using electronics below operating temperature

I have a DSL modem with a minimum operating temperature of freezing. I might want to put it in an environment that tends to go below that for extended periods. It doesn't go very far below, like -10℃ (14℉), maybe more like -5℃ (23℉) at its coldest. So I want to know what could happen to this non-dirty-cheap bit of equipment if I do that.  My feeling is that you can't do much permanent damage to electronics with cold temperatures, but it might not work very well. Since it doesn't go far below freezing in this environment, it's also my feeling that the device will create it's own heat, which will eventually bring it up to its operating temperature. Since the only time the modem isn't operating is when I'm on vacation or the power is out, this will almost never be a problem.


Our six month old daughter cant sleep on her own , a loud scream is an indicator that she wants to sleep , if all other things are ruled out.We need to take her to the swing and sing to make her sleep or at times if this does not work then we need to take her on the chest and roam around in the room.  Hence my question is how to train an infant() to sleep on her own?


What's the closest thing to a server version of Fedora?

Fedora seems to bill itself as a client-only OS, in contrast to Ubuntu or SuSE which have both client and servers versions. What is the closest Linux distribution to Fedora that's usable as a server operating system? Or am I misunderstanding the situation with Fedora, and it's a perfectly viable option for using on services such as Linode?


Schema of separation and set of all sets

The schema of separation states (this is probably simplified) states that if $P$ is a property and $X$ is a set, then there exists a set $Y = \{ x \in X : P(x)\}$.  The notes I'm reading say that from this we can conclude that the set of all sets doesn't exist, by applying the schema of separation to the property $x \notin x$.  I'm not seeing how applying the schema of separation to that property shows it.  Can someone clarify this?


Softmax vs Sigmoid function in Logistic classifier?

What decides the choice of function ( Softmax vs Sigmoid ) in a Logistic classifier ?  Suppose there are 4 output classes . Each of the above function gives the probabilities of each class being the correct output . So which one to take for a classifier ?


I want to write some Persian text in Texstudio. Which package should I use? I've heard about xepersian but I don't know how to use it. Any help would be appreciated.  \documentclass{article}  \usepackage{xepersian}  \settextfont{XB Roya}  \begin{document}  سلام!  \end{document}


Some questions about functions of bounded variation: Jordan's theorem

I was trying to do some of these questions to check my understanding about the topic, but I'm not sure if they're correct. Here are my answers.   1) Suppose $f$ is continuous on $[0,1]$. Must there be a nondegenerate closed subinterval $[a,b]$ of $[0,1]$ for which the restriction of $f$ to $[a,b]$ is of bounded variation?   No, because $f(x)$ might be a constant function. In this case, $f(x)$ will not be the difference of two increasing functions...and so will not be of bounded variation.  2) Let $f$ be the Dirichlet function, the characteristic function of the rationals in $[0,1]$. Is $f$ of bounded variation on $[0,1]$?   No, because we cannot express it as the difference of two increasing functions.  3) Let $f$ be a step function on $[a,b]$. Find a formula for its total variation.  If we partition $[a,b]$ in such a way that for each $[x_{i-1}, x_i]$ (which is part of the partition), $x_{i-1}$ and $x_i$ each correspond to the midpoint of a step. I know this is not a formal answer, but I'm just trying to check my understanding.


I have forgot my administrator password in windows (xp) ,and tried verything how to restore it but no luck . the only thing i came up with is i have inserted another harddisk and installed on it winXp. and  started windows via this second HARDdISK 2 (xp) . and now i can browse the first Hardisk files . so my question is how to change or remove the file containg the password and where is it. i dont care if this file will be corrupted or removed i just want enter to this windows without password. thanks.


Am I missing something? I can find plenty of tusks, but I just don't know if I can make them into powder myself or do I have to find them for sale?


How to disable "recent files" folder in Nautilus?

When I turn off " record activity" in the privacy settings, my activities are still recorded in the "recent files" folder (even when I am using a truecrypt volume).  I haven't figured out a PERMANENT solution to this problem. It sucks to delete history via terminal manually and what happens if I forget?


We know that current is passed through a circuit if there is a potential difference across the two terminals of the conductor. But, in the case of a short circuit, we say that there is no potential difference between the two terminals and a large amount of current is passed through it. This is a violation of Ohm's law. Isn't it wrong to say that there is no potential difference between the terminals?


Anyone know a simple explanation why a Skype for Business user who is on a one-to-one video call cannot add another participant?  Nor can the other person on the video call?


If pointer is a address then what is a reference?

i'm new in C++.i am basically a C programmer.At present i'm learning about reference.It's very confusing.In C a pointer is the address of the variable and there is a difference b/w pointer and pointer variable.However many times pointer variable short-handed as pointer.  1.My question is that what is meant by reference then.In c++ are reference and address of variable means the same thing?If some one differentiate pointer from reference do he/she mean pointer variable and not pointer.They just written the pointer variable as pointer? If No then what is the difference b/w pointer and reference?   2.In C &a=b is illegal.But in C++ it is not.Why? please help as i am ver confused with it.I had searched about it but couldn't find the satisfactory answer.


What's the biggest number used as a counterexemple?

I'm looking for exemples of big numbers that are counterexemple of some interesting conjecture. Do you know conjectures that seemed to be true until a million (or many more) numbers where checked?


taskbar icon preview (and Alt+Tab icon preview) disappears quickly

OS: Win7 Pro x64 Laptop: Lenovo x240 Dock: Lenovo ThinkPad Basic Dock - Port Replicator  Monitor 1: AOC 21.5", E2243FW (VGA) Monitor 2: Lenovo 21.5", LS2223 (DVI)   Issue:  When hovering the cursor over any pinned/unpinned icon on my taskbar, the preview icon that pops up is quickly fading away (as quickly as it starts up, seemingly with the reverse animation as when it appears).  While holding Alt and pressing Tab to cycle through open applications, the window of icons will disappear (and if I continue to hold Alt and press Tab again, the window will reappear and will start me back at the first icon).  This problem will "randomly" not happen after rebooting and then will begin happening again.  Attempts to resolve:   Fully run the Windows and ThinkVantage System Updates Removed all unnecessary peripherals (keyboard, external CD drive, ect) Changed Visual Effects from "Let Windows choose what's best for my computer" to "Adjust for best performance", as well as Custom (all unchecked, and tried solely checking "Save taskbar thumbnail previews") Used one monitor at a time (tried both monitors separately). Lowered the resolution and refresh rate of each monitor. Removed all external monitors. Used the laptop completely removed from the dock and external peripherals Safemode   Comments:  I have seen some  that can extend  which, as you can imagine, I'm hoping to steer clear of having to make any changes like this. No other Windows 7 machines I've used have had this issue.  My guess is that an application isn't stealing Window's focus since I'm able to leave the Start menu up for an infinite amount of time without it minimizing.  Edit: I notice the amount of time icon previews stay visible varies - they could last 3 seconds, 5 seconds, 10 second, half a second, ect.


Running jar files without using Java command

In console running a jar file is normally done by java -jar application.jar  Is there a way to run jar files by executing ./application.jar? I'd like this behaviour for any jar file. I tried chmod +x application.jar but it won't work as it gives the following error: invalid file (bad magic number): Exec format error. Further, it would be specific to one application.


Is there a ready solution to typeset a diff file?

In a text about Git I want to typeset diffs similar to this visualization: .    Is there any ready-made solution to that, especially the coloring of the diff lines? (In other commits there may be even an additional highlighting of the actual changed part of a line with a different background color.  Of course I could 'roll my own' but don't want to reinvent the wheel.  (Searching for LaTeX and diff only seems to mathematical symbols or how to diff LaTeX documents ...)


Ubuntu server crashes on boot "end trace 3b4c21cd8473b17e"

System info:  Ubuntu 14.04 software RAID, no separate drive for OS  This is where the system crashes:  I am hoping for help recovering at least enough to copy the files off the system. Update: I feel like there are two answers to my problem; one is fixing the OS so that it will boot again and the second is copying the files off. As long as I can save my files I am happy.  I tried using the Advanced Options for Ubuntu to pick an older kernel and as far as I can tell this does not seem like it will work. I tried 20 or so older ones till I found one that would give me a different boot crash point but it still crashes. I can upload a screenshot if needed.  Second I looked at  This is giving me more questions then answers. They suggest to run commands but I am not sure where to run them. I tried it in what I think I can call the GRUB command line (hitting c while booting) and from Ubuntu installer disk using rescue broken system. I did not mount a drive. Both times I got an error.  Thinking just recovering the files must be a easier option I looked into using    I am thinking the reason I am getting stuck on these options is because it is a RAID. I am a little worried also that if I do this step wrong I might mess up my RAID making the problem worse. So I am assuming you will will need more information to help further but I am not sure what would help. Please let me know and I will gather the info. Do not see a way to put in my own answer to the question so adding it here. Solution: I booted up with KNOPPIX Linux Live CD in terminal type  SU mdadm --stop /dev/md0 mdadm --stop /dev/md1 mdadm --assemble --scan --force


Why both yellow and purple light could be made by a mix of red, green and blue?

We see the mix of red light and green light as yellow light (#FFFF00). The wavelength of yellow light lies between red and green.    But the wavelength of purple light lies outside of red and blue. Why can we also see the mix of red and blue as purple? Is it real ?


Sum or average of gradients in (mini) batch gradient decent?

When I implemented mini batch gradient decent, I just averaged the gradients of all examples in the training batch. However, I noticed that now the optimal learning rate is much higher than for online gradient decent. My intuition is that this is because the averaged gradient is less noisy and could thus be followed faster. So maybe it also makes sense just to sum up the gradients of a batch. The values can be positive and negative anyway.  I know it's just a constant factor that can be balanced using the learning rate. But I wonder which is the definition scientists have agreed on so that I can reproduce results from neural network papers.  Does one typically divide the summed gradients of a batch by the batch size?


What is the intended purpose of having a "Real Name" field in user profiles?

I've seen questions regarding  and , but this doesn't tell me why this field exists in the first place.  Do any internal processes use it, or are there any future plans for using it?


I have a question. I'm writing paper in two columns form, but I want to place my figure in centre of page instead of column. How can I do this? Thanks in advance.


#include <stdio.h> #include <conio.h> #include <math.h>    float t, delt = 0.004000,n;  printf("enter the value for t="); scanf("%f", &t); n = t/ delt; printf("n is %f",n); getch();   output: enter the value for t=1 n is 249.999985  I am expecting 250. What am I doing wrong??


I tar a folder on windows and untar on RHEL machine. ls -l shows a . in file mode and folders are in blue + yellow background.  [root@xt-storage-01 apache-tomcat-8.0.5]# ls -l total 120 drwxrwxrwx. 2 root root  4096 Jul 24 11:18 bin drwxrwxrwx. 2 root root  4096 Jul 24 11:18 conf drwxrwxrwx. 2 root root  4096 Jul 24 11:18 lib   what's the meaning of . at the end of file mode?


I'm creating a thesis using the Tufte style template. Obviously I have to change the cover that I would like to look like this:    How can I do?  EDIT  I tried this code:  \documentclass{scrreprt} \usepackage{graphicx} \begin{document} \begin{titlepage}     \begin{addmargin}[3cm]{0cm}          \begin{flushright}              Università degli Studi di Torino \\ Scuola di Scienze della Natura \\ Corso di Laurea Magistrale in Informatica              \hfill\includegraphics[width=4cm]{Unito-logo.png}\par              \vspace{3\baselineskip}              {\Huge Lorem ipsum dolor sit amet \\ consectetur adipiscing elit\par}              \vspace{6\baselineskip}              \textit{laureando}: \Large{Name Lastname}\\             \textit{relatore}: \Large{Name Lastname}\\             \textit{correlatrice}: \Large{Name Lastname}              \vspace*{\fill}              \par{2017--2018}          \end{flushright}      \end{addmargin} \end{titlepage} \end{document}   I'm quite satisfied but there are two problems:   the text laureanda is smaller than the others I would like the block of text (Università degli Studi di Torino \\ Scuola di Scienze della Natura \\ Corso di Laurea Magistrale in Informatica) to be placed near the logo The text 2017--2018 placed at the bottom of the page.


Different lists in list have same id in python

I understand that Python mutables like lists have different identities while "special situations" like certain strings and numbers will have the same IDs but I don't understand this situation:  >> a = [[0]*2]*2 >>> a [[0, 0], [0, 0]] >>> id(a[0]) 140387455550664 >>> id(a[1]) 140387455550664   Both [0,0] lists in the list a have the same ID  However, when I create a list like this, the IDs are different for each list element in that list  >>> b = [[0,0],[0,0]] >>> id(b[0]) 140387455550472 >>> id(b[1]) 140387456353480   I am using CPython/Python 3.6 on Ubuntu


Can we please add more other sites to the "off topic" choices, especially "programmers"

The most frequent off-topic site that I choose is DBA, but probably second most common is programmers. For me, the distinction between SO and programmers is clear, but I can understand why so many SO questions are off-topic and belong on programmers - which is all the more reason to add it to the quick-pick list of "other" sites.  Adding programmers to the "other sites" list would:   advertise its existence (lack of awareness that programmers exists is probably why questions hit SO) make its purpose better understood (the short description would be read more often) get selected enough times (for the right reasons) to warrant its inclusion  save me having to go via "flag", then "other" and type in "please migrate to programmers"   And why are there only 5 sites? If superuser is a choice, surely programmers should be too - they're about equidistant from SO IMHO  And why is TeX there? I rarely see questions about LaTex etc.


I have an app in /usr/local/AppDir/ called App.  I start this app from within the /usr/local/AppDir with the following command.  sudo ./App  How can I create a desktop shortcut that starts this app?


Showing that the Binary Icosahedral Group (given by a presentation) has order $120$.

Say we have a group generated by $a, b$, with the relations $(ab)^2=a^3=b^5$ (note that these are not necessarily equal to the identity). How do I show that the group has $120$ elements? Without having orders given to any of the generators, why can't there be infinitely many elements?    This problem is from Stillwell's "Mathematics and its History," after Section 22.8. I'm first asked to show that adding the relation that all $3$ equal the identity gives the icosahedral group, isomorphic to $A_5$, and then to show that this implies the group without that relation has at least $60$ elements. Then, a parenthetical after that problem says "Harder: Show that it in fact has $120$ elements".


I'm making a TextEditor like Notepad and I have to "highlight" keywords of a source code in diffrent colors and fonts. My ideea is to split the sourse code and store it in an array with push_back() method, but I don't really know how to do it.   I've tried some ideeas like strtok and isstringstream , but I don't get the result. I don't know exactly how to do that. Also , I have a problem with string and AnsiString , because I'm working in C++ Builder .   Please, if someone could help me.  Best regards.


Determine all functions satisfying $xf(y) + yf(x) = (x+y)f(x^2+y^2)$

I tried to prove that the only functions $f: \mathbb{N} \to \mathbb{N}$ satisfying  $$xf(y) + yf(x) = (x+y)f(x^2+y^2)$$  for all positive integers $(x, y)$ are constant functions.  I supposed that:  $$ \exists \; x \mbox{ such that } f(x) \neq f(1) \mbox{ and } \forall y \neq x, f(y) = f(1)$$  Then we have:  $$ xf(1) + yf(x) = (x+y)f(1) $$ $$ \implies yf(x) = yf(1) \implies f(x) = f(1)$$  I would like to know if this is correct, since I am not sure that the negation of my hypothesis implies that the function is constant.   Thank you!


Is it possible to redirect child process's stdout to another file in parent process?

A child process runs a bin file, which is provided by Qualcomm. The child process is invoked by my parent process, which is developed by me. When the child process is running, it always prints lots pieces of logs in shell command. So, am I able to redirect Qualcomm's outstream from stdout to another file in the parent process?  As you know, it's nearly impossible to push Qualcomm to update this bin file. Thanks a lot~


I'm developing a plugin. This plugin creating a new post type and displaying these posts in a custom template.  For example it's a event calendar plugin. This plugin creating a new post type 'event '. Users adding new events from wp - admin, like normal blog posts. And users creating a new page with 'Event Calendar ' page template.  But for enabling Event Calendar page template, users have to copy eventcalendar.php from plugin's dir to their template's dir.  Last step (copying file) is really hard for some users. Is it possible to call custom page template from plugin dir?


Does an SO account make sense if I never ask or answer?

I've been finding answers on SO for some years now.  However, I always found answers to my questions, so a quick look at SO was always enough. I never felt the need to create an account. Now after these years I thought "give something back", let's upvote good stuff and downvote bad stuff and comment maybe.  However, I can't write comments, I can't upvote, I can't downvote. I can ask questions, but they would be duplicates and give downvotes, bringing me even further from being able to do something. I could try to answer a question, but most of the questions I wouldn't know and the ones I can answer are answered so fast - I would seriously have to sit in front of the screen for hours and hunt for this stuff.  And I am NOT gonna do that. For me SO is a tool to get some work done, not some game to use up some hours of my life.  So, am I missing something or is this account thing really more for a game-like experience? I mean, can't you even answer or ask questions without such an account? I wouldn't need it at all then. Am I actually in the target group for accounts, the way I am using it, or should I just forget about it and go on?  PS Sorry if I may seem upset, but it felt like this to me:   SO: Hey I can help you! Do this and then that.   Me: Ok kewl, thx.   SO: You can also help me, by doing very small things.   Me: Nice, maybe later.   Me: Ok now, let's do it. I thought I owe you a little.   SO: Well I hope you brought lunch, we'll be out there all day.


JQUERY: How do I select an option by value?

<tfoot>     <select>         <option value="222"></option>         <option value="2222">2222</option>         <option value="zaza">zaza</option>     </select> </tfoot>   I tried that:   $('tfoot select').val('zaza');     $("tfoot select").val("zaza") <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>  <tfoot>     <select>         <option value="222"></option>         <option value="2222">2222</option>         <option value="zaza">zaza</option>     </select> </tfoot>     Any idea ?  Select = make it selected = trigger the change event


Show that the determinant of a matrix is nonzero

Suppose $u,v,w \in \mathbb{Q}$ with $u,v,w \neq 0$. Show that the determinant of the following matrix is nonzero. $$M = \begin{bmatrix} u & 2w & 2v \\ v & u & 2w \\ w & v & u \end{bmatrix}$$ Hint: Argue by contradiction, reduce to the case when $u,v,w$ are integers and use some number theory over $\mathbb{Z}$.  I know that the determinant is given by $$ \det M = u^{3} + 2v^{3} + 4w^{3} - 6 \,u\,v\,w $$ It is unclear to me how to utilize the hint. How to convert the problem over $\mathbb{Z}$?


Large delay when earning reputation back from deleted question

Whenever I do a question and it receives a large number of downvotes, I usually tend to delete them instead of editing, as I am nervous about losing my reputation. From my past experience with Stack Exchange, I always knew that deleting questions can get your reputation back.   Oddly enough, when you delete a question in hopes of earning your reputation back, it will take a long period of time to earn it back. Earning your reputation can take about several minutes to half an hour.  Should this issue with having to wait a long amount of time be fixed?


Can't use my login password for su - postgres in terminal

I set my password to ir****3 when installing Ubuntu, but when I try to use su - postgres on terminal and enter tge same password it shows authentication error: you are not a root user.  How can I fix this?


How to draw horizontal line within align and mhchem?

No matter what I do, I can't get the line to position properly. align* always wants to move it. and i can't use \noalignwithin \cee, or perhaps I'm not using it properly (beginner here)? Here's a MWE:  \documentclass{article} % [10] =10pt|11pt|12pt \usepackage[fleqn]{amsmath} % standard math package 1/3 \usepackage[version=3]{mhchem} % insert chem equations \usepackage[detect-none]{siunitx} % use proper si units \usepackage{cancel} %strike out text  \begin{document}   \begin{align*}     \cee{       \cancel{\mathrm{MgCl_{2(aq)}}} + \cancel{\mathrm{H_{2}O_{(l)}}} &-> MgO_{(s)} + \cancel{\mathrm{2HCl_{(aq)}}}       &\Delta H_r&=\SI{105.037}{\kJ\per\mole} \\        Mg_{(s)} + \cancel{\mathrm{2HCl_{(aq)}}} &-> \cancel{\mathrm{MgCl_{2(aq)}}} + \cancel{\mathrm{H_{2(g)}}}       &\Delta H_r&=\SI{-447.667}{\kJ\per\mole}\\         \cancel{\mathrm{H_{2(g)}}} + 1/2O2_{(g)} &-> \cancel{\mathrm{H_{2}O_{(l)}}}       &\Delta H_r&=\SI{-285.8}{\kJ\per\mole}  \\        \rule{6cm}{1pt} \\       Mg_{(s)} + 1/2O_{(g)} &-> MgO_{(s)}     }   \end{align*} \end{document}


Currently I am using HTC Desire A8181. Currently it is connected to some wifi for Internet. I need to use this device as a Wifi Hotspot to connect Multiple devices. Need Some one help to use Both Wifi and Wifi hotspot.


Is there analternate for unity in 14.04?

Is there a way to put unity at the bottom of the screen or is there an alternative to unity?


watching videos with VLC the bottom of the screen always flicker on Ubuntu 18.04.5 LTS

I'm using Ubuntu 18.04.5 LTS on my Laptop ASUS ZenBook UX433FN with NVIDIA MX150, when watching videos with VLC the bottom of the screen always flicker, how to fix this issue?


Is $\emptyset$ equal to $\{\emptyset\}$? I know an emptyset contains no elements.  So I feel like they would be equal. Can someone explain how they wouldn't be?


Was Wormtail the only Dark wizard sorted to Gryffindor?

In the HP universe, Gryffindor house is somewhat a metaphor of righteousness and morality. On the other hand, Slytherin house represents the dark side. However, there are a few exceptions on the Slytherin part such as Merlin, Professor Slughorn, Severus Snape etc. The only known Gryffindor Dark wizard (as far as I could find) is Peter Pettigrew. As Slytherin house is reputed to have produced more than one good wizard, were there any more Dark wizards (apart from Wormtail) who were sorted to Gryffindor house?  Edit:  Its  mentioned on Pottermore that Hufflepuff has had the fewest (meaning less than Gryffindor) Dark wizards.  The Hufflepuff welcome letter on Pottermore makes a claim about their dark wizard turnout:     However, it’s true that Hufflepuff is a bit lacking in one area. We’ve produced the fewest Dark wizards of any house in this school. Of course, you’d expect Slytherin to churn out evil-doers, seeing as they’ve never heard of fair play and prefer cheating over hard work any day, but even Gryffindor (the house we get on best with) has produced a few dodgy characters.    Now assume that Gryffindor has produced only one! So there's a contradiction, hence there was somebody else!


Why does python make mistake in basic arithmetic calculations?


Aligning icon and text horizontally with html and css

I am trying to align the icons and text within the boxes :  I can't seem to get the "Store Locator" and icon to align horizontally.  Can anyone please help me achieve this?  My html:

Phone

Live Chat

Email

         Store Locator <--- problem line


How to render ground reflections without rendering the ground?

I'd like to create a product shot like the following images for a client:   I'm relatively new to Blender, I don't know that much about render passes. What I would like to do is render the bottle, with the reflection with a transparent background. I do'nt know if this is possible, if its not, maybe there is another way to get this result. Please keep in mind that I'm new to this program.


The functional $I[w] = \int_U \frac{1}{2} |Dw|^2 - fw \, dx$ is weakly lower semicontinuous

I am studying calculus of variation, and I need to prove that  $I[w] = \int_U \frac{1}{2} |Dw|^2 - fw \, dx$ with $f \in L^2(U)$  is weakly lower semicontinuous on $H_0^1(U)$.  In classes, I only learned that     Assume L is bounded below, and in addition $L(p,z,x)$ is convex in $p$,    for each $z \in \mathbb{R}$, $x \in U$. Then $I[.]$ is weakly lower semicontinuous on $W^{1,q}(U)$, where $I[w] = \int_U L(Dw, w, x)$.   And I think my $L$ isn't bounded below.   I don't know how I can solve the problem.


Quickly delete all messages and comments by a given user in a Facebook group

I'm an admin for a group on Facebook. A user has recently requested that all his content be removed from the group (he is no longer welcome to post to the group so I can't tell him to just remove the posts himself).  Is there a quick way to delete all of his posts (and comments)? I can delete them one by one but it'd take me ages. He's already been banned from the group, but I still see his posts. (Is it just because I'm an admin?)


Why is quantum mechancis is not content with symmetric operators, but wants self-adjoint operators?

A symmetric operator has only real eigenvalues and different eigenvectors corresponding to different eigenvalues are orthogonal.   These are exactly what we want for a physical observable. I think this is the all required.   So why is quantum mechanics not satisfied with symmetric operators, but wants more?


Why is Punisher wearing a white prison suit in Daredevil S02?

In Episode 08 and 09 of Season 02, in Netflix's , we see Frank Castle (Punisher) in prison.  Why do all the other inmates, including Fisk, wear orange jumpsuits, while Frank Castle wears white?  I'm looking for an in-universe explanation (a red skull logo pops much better on white than it would on orange, so that makes sense as a meta, out-of-universe decision).


Is there a free beginner house in skyrim?

I'm looking for a beginner house to store unique items and other stuff, at level 1.


Compilation error using TCP on Arch Linux Arm

Running Arch Linux Arm on my Beagleboad xM I'm trying to set up a web server to listen for commands, however whenever I try to compile a program that requires "netinet/in.h" it outputs the following errors:  netTest.cpp:(.text+0x14c): undefined reference to `__cxa_end_cleanup' /tmp/ccaJk7mW.o:(.ARM.extab+0x0): undefined reference to `__gxx_personality_v0'   Am I missing something? Can you compile on ARM? Any help is greatly appreciated, thanks!


Update a piece of text to the last time Google Doc was update

I was wondering, is there a way to update a piece of text on the first page with the date and time of the last time the doc was edited?


How do I use grep while keeping the original text color?

For example, I have a output:  Hello, this is the output.   (let's say that for example hello is colored red, and the is colored green, and output is colored purple).  Now, let's say that this is the output of a command named x.  If I use this command, the output becomes white:  x | grep hello   I've read that one could use grep --color=always. However, this changes the color to highlight the result I searched for instead of keeping the original line colors.  I want to keep the original line colors. How do I use grep while keeping them?


Function $f(z)$ such that $|f(z)| > |z|$ for every $z\in\mathbb{C}, 1/f(z)$

$f(z)$ is a function such that $|f(z)| > |z|$ for all $z\in\mathbb{C}$  How would you prove the function $\frac{1}{f(z)}$ is bounded. I think you have to use the $|f(z)|\leq M$ but I'm not sure.


Proving that if $f(x)=x$ has no real solution then $f(f(x))=x$ has no real solution either

If $f:\mathbb{R} \to \mathbb{R}$ is a continuous function such that $f(x)=x$ has no real solution, then show that $f(f(x))=x$ has no real solution either.   Is the proof trivial as it seems or does it need an analytical approach?


Rename "favorite" questions to "subscribed" or "following"

In the light of the  to automatically notify the user of any changes to "favorited" questions, this term "favorite" is becoming less and less accurate.   (see the first comment).  In fact, they are pretty much equivalent now -- but I feel that the term "favorite" does not really accurately describe its most common use.  Personally, I don't "favorite" some questions purely because of the wording -- I may want to follow question X (e.g. if I have asked a question as a comment), but I don't want to imply that I think it is a good question, let alone a favourite of mine.  If this classification were renamed "followed" or "subscribed", I would be much more willing to temporarily click the little star in order to receive change notifications.  Alternatively, "favorite" questions and "followed" questions could be treated separately -- the former would go back to how they were before this new feature (users are rewarded, via badges, for the number of users who say they like the question), and the change notifications are moved to the new designation of "followed questions".  However, I'm not yet convinced that there needs to be a distinction between these two states; I'm interested in what others think.


how can I check if a date is before a specific date with javascript

I am new in javascript so please be patient with me. I have an html code in which I have an html date input. I want to check with javascript if this date is before a specific date. How can i achieve that? And can the check be done before the user submits the form?(I mean can the check be done by the time the user selects the date and not after he hits the submit button cause after the date input there are more inputs before the form ends)


Consider a single charge moving only under the influence of Magnetic Field $\vec{B}$. The charged particle moves in a circle and the work done by $\vec{B}$ is 0. Now consider a current element in a uniform magnetic field ($\vec{B`}$). Now the derivation of the expression of force results in the the equation $\vec{F} = i \vec{l} \times \vec{B}$ (for a uniform magnetic field) where $\vec{l}$ is the vector joing the ends of the current element. For simplicity, I will consider a straight conductor. When the two vectors are perpendicular, the current element experiences a net non-zero force which does not cause a torque and causes translational motion. Therefore, in this case the magnetic field does positive work.  How is this contradiction possible? Magnetic field, which did no work on a single charge, now does positive work when the current carrying elements clumped together in a conductor. Is there any implicit assumption in the whole process which causes this? Can someone please give a good explanation?


Prove that $| xy-\sqrt{(1-x^2)(1-y^2)}|\leq1$ where $|x|\leq1$ and $|y|\leq1$  I tried:  $x=\sin\alpha$ and $y=\cos\beta$  $\sqrt{(1-x^2)(1-y^2)}=\sqrt{\cos^2\alpha\sin^2\beta}$ but if I write $\sqrt{\cos^2\alpha\sin^2\beta}=\cos\alpha \sin\beta$, it's not true because  $\cos\alpha \sin\beta$ can be negative.   Can someone give me an idea?


When I run this code everything works as intended until the last line where I get the following error:  TypeError: unsupported operand type(s) for ** or pow(): 'str' and 'str'   If I'm understanding this correctly X and Y are being recognized as strings (literally the letters X and Y).  Not the variables representing the integer the user input.  So how do I get Python to see the user input and not the string?  My apologies for asking something so basic but I've searched around and haven't found an answer, or at least not one I understand.    print("Hello!") x = input("Please enter the number to be raised:") print("Confirmed.  We are going to raise", x) y = input("Please enter the power you want it raised to:") print("Confirmed.  Raising", x, "to the power of", y) print (x**y)


Attempting to understand Exercise 20 (pdf page 44) in :      The party animal problem corresponds to the network in g(3.14). The boss is angry and the worker has a headache - what is the probability  the worker has been to a party? All variables are binary and       $p(U =tr|P =tr,D=tr)=0.999$, $p(U =tr|P =fa,D=tr)=0.9$, $p(U =tr|P =tr,D=fa)=0.9$, $p(U =tr|P =fa,D=fa)=0.01$.       $\begin{matrix} & & D \\ & & \downarrow \\ P & \rightarrow & U \\ \downarrow & & \downarrow \\ (H) & & (A)\end{matrix} $   I'm unsure of how to solve this problem given only the above information, and help greatly appreciated. Can this even be solved with the information given in the question?


I have the following code:  import bge from bge import logic  def property(cont):         own = cont.owner      if 'Recoil_Level' in own and 'Section' in own:          level = own['Recoil_Level']         sec = own['Recoil_Section']      else:         print('Missing properties in object')         return      if (level >= 0) and (level <= 0.5):         own['Recoil_Section'] = 1      if (level > 0.5) and (level <= 2.9):         own['Recoil_Section'] = 2      if (level > 2.9) and (level <= 4.9):         own['Recoil_Section'] = 3      if (level > 4.9) and (level <= 9.9):         own['Recoil_Section'] = 4      if (level > 9.9) and (level <= 19.9):         own['Recoil_Section'] = 5      if (level > 19.9):         own['Recoil_Section'] = 6  cont = logic.getCurrentController()       property(cont)   Everytime I run this script, the console says the following "No module named 'bge'," why is this happening and how can I fix it? Any help is appreciated. Thanks!


How can I mirror the screen to a smart TV from Ubuntu ?


What method is best to take backups of your digital photos?

What method do you recommend to take secure backups of your photos?  I have used Carbonite.com for my family photos and videos - it is an online backup - just select folders to backup and the software takes care of the rest.  For my other photos (more than 2 terabytes) I use 4 external hard disks that I connect with USB once in a while and then store them at my parents' house.


Is there any explaination to homeopathies in modern biology sciences?

I'd like to know if there is any sort of explaination from rigurous biological arguments which could potentially explain how homeopathies could work?  I'm not talking about placebo effects (psychological) or "water memory" (purely hypothetic), but really about the immune system itself.  Usually, there is only 1, or a really insignifiant amount of toxins after the dillutions for the homeopathies. But does that mean that there is absolutely no effect on the organism, biologically talking? Or could there be some immune memory taking place here for example (ik it is usually in adaptative reaction with the lymphocytes, but does it happen with the white cells or other stuff)?  I'm just curious about it :), thanks!


Is casting the same thing as converting?

In Jesse Liberty's Learning C# book, he says "Objects of one type can be converted into objects of another type. This is called casting."  If you investigate the IL generated from the code below, you can clearly see that the casted assignment isn't doing the same thing as the converted assignment. In the former, you can see the boxing/unboxing occurring; in the latter you can see a call to a convert method.   I know in the end it may be just a silly  semantic difference--but is casting just another word for converting. I don't mean to be snarky, but I'm not interested in anyone's gut feeling on this--opinions don't count here! Can anyone point to a definitive reference that confirms or denies if casting and converting are the same thing?      object x;     int y;      x = 4;      y = ( int )x;      y = Convert.ToInt32( x );   Thank you  rp  Note added after Matt's comment about explicit/implicit:  I don't think implicit/explicit is the difference. In the code I posted, the change is explicit in both cases. An implicit conversion is what occurs when you assign a short to an int.  Note to Sklivvz:  I wanted confirmation that my suspicion of the looseness of Jesse Liberty's (otherwise usually lucid and clear) language was correct. I thought that Jesse Liberty was being a little loose with his language. I understand that casting is routed in object hierarchy--i.e., you can't cast from an integer to a string but you could cast from custom exception derived from System.Exception to a System.Exception.   It's interesting, though, that when you do try to cast from an int to a string the compiler tells you that it couldn't "convert" the value. Maybe Jesse is more correct than I thought!


Stop Photos.app from opening when any device is connected

I know there are thousands of iterations on this question, but I can't find one dealing with Photos.app from 10.10.3+.  I just want to stop it (or anything else) from opening ever. None of the answers I've found for Image Capture or iPhoto work anymore, as far as I can tell.  To be clear, I know I can go into Image Capture and change the setting per-device, but I am regularly plugging in random devices I've never used before, and I want to turn this behaviour off globally.  Is there a way to do this?


If I roll three dice at the same time, how many ways the sides can sum up to $13$?

If I rolled $3$ dice how many combinations are there that result in sum of dots appeared on those dice be $13$?


Not allowed to comment on high quality posts when reviewing?

I just failed a review audit for attempting to add a comment to a pretty good answer. (The intention was to ask a clarifying question.)  What's the etiquette for this? Are comments only supposed to be made if they are negative?


I have three functions:      $$f(x) = x+1 ,\; g(x) = x - 1 ,\; h(x) = 2x$$   I want to find $g\circ f$ such that $g(f(x))$, which equals $(x+1)-1=x$ but how?   I don't understand the steps.  Also, I want to find $h\circ f$ which equals $h(f(x)) = 2x-1$ but I dont know how to get that answer either.  Thanks


Where to ask Voice Recognition questions

I'm not even sure this is the right place to ask this question! Let alone where to ask any questions. As you can probably figure, I'm very new to the StackExchange family of sites, but I'm very eager to join in. I'm mainly interested in speech recognition and web development questions. I think I can figure out where the latter goes, but not so sure about the former. Any advice?  EDIT: I am mostly interested in creating custom scripts for Dragon v14 and Vocola, I am an endeavoring web developer and I use Dragon with my code editor, so questions on integrating direct recognition into my programming work would be normal, as would questions on working vbs scripts and scripts for vocola.  I'm not sure what example questions I could ask, I'm coming up kind of black right now sorry xd I might edit again later if need be when I think of some.


How to open Microsoft XPS document on OS X?

I got an XPS file from my teacher and I couldn't open it using my Mac. It should be a lecture presentation. Does anybody know how to open it?


Need align and equation to center with respect to nested items

I want my equation and align environments to center with respect to nested indents, but they only seem to center with respect to the full page width.  Here is some example code:  \documentclass[12pt]{amsart} \usepackage{geometry, amsthm} \geometry{letterpaper, margin=1in}  \begin{document}  \begin{enumerate}     \item First level     \begin{enumerate}         \item Second Level         \begin{enumerate}             \item Third level\\             \begin{center}                 $x<y$ % Centered inside nested items             \end{center}             \begin{equation*}                 x < y % Centered in whole page             \end{equation*}         \end{enumerate}     \end{enumerate} \end{enumerate}   \end{document}   This is the resulting document:    Placing the equation/align inside a center doesn't work.  How do I get the align and equation environments to center with respect to nested indents?


Why draw blood from veins rather than arteries? Is it more convenient or safer?


How hard do early-career academics in the United States work, really?

I'm finishing a PhD in Sweden this year and seeking a post-doc in the United States (atmospheric remote sensing).  It is clear that a job in academia is not a nine to five job; nor do I want it to be.  I often work late in the evening when I'm on a productive spur.  When an important dead-line is coming up, one needs to work harder, and there is no overtime paid.  I accept that.  However, no matter how much I'm interested in my research, I do enjoy and need a reasonable amount of spare time, too; relaxing on the weekends, occasionally a long weekend away, and sometimes a longer trip, such as three weeks in the wilderness.  Regarding the normal work ethos for early-career academics in the United States, I have a hard time judging what is normal and what is excessive.  Some examples:    warning post-docs that he expects all of the members of the group to work evenings and weekends. My apparent naïveté in believing that , despite Wikipedia  as a rest from work, or a hiatus, often lasting from two months to a year.  I was thinking of my friend, who spent a year between his PhD and his first post-doc travelling from France to Mongolia mostly on foot. Someone  I am not a good role model, but when I don't work on a Sunday, I count that as a vacation day.  having no employment-related benefits such as paid vacations, sick leave, or unemployment compensation. Question    We don't have such a work-ethos where I'm at.  I belief that working too hard risks stress and burn-out, and does not increase productivity in the long run, nor human well-being.  I want to do science.  Doing science makes me happy, but having time to relax while not doing science is important for me.  Does the selection of examples I gave above represent a normal situation in U.S. early-career academia?  Should I expect an attitude where asking for a 3-week holiday during the summer is considered as being not serious, or is the situation in practice usually not as bad as the examples above make it sound?  How hard to early-career academics in the United States work, really?


Can't install PECL on Xubuntu (unable to locate package)

I tried sudo apt-get install php-pecl, but I get this output:  Reading package lists... Done  Building dependency tree         Reading state information... Done  E: Unable to locate package php-pecl


Prove that if $ f $ is Riemann Integrable then it is bounded

I get the idea of how to do this proof, essentially I would choose a pathological partition $P$ such that it includes a point $ c \in P $ where $ f(c) \Delta_c - l \geq \epsilon$. However I'm stuck on how to make this work in a $ \delta,\epsilon $ proof. Suppose the contrary that $ f $ is Riemann Integrable but $ f $ is not bounded. It suffices I show $$ \exists \epsilon > 0, \forall \delta > 0\ \text{s.t}\ \exists P, m(P) < \delta\  \mathrm{but}\ |R(f,P) - l| \geq \epsilon $$  $ m(P) $ is the mesh of the partition $P$  Since $ f $ is not bounded, choose $ c $ such that $ f(c) > \frac{l + \epsilon}{\delta} $ and let $ c \in P $ Then I initially I had this: $$ |R(f,P) - l| = \left|\sum_{{s_j} \in P} f(s_j) \Delta_j - l\right| $$ $$ \geq \left|\sum_{{s_j} \in P} f(s_j) \delta - l\right|$$ $$ \geq \left|f(c) \delta - l\right|$$ $$ \geq \left|\frac{l + \epsilon}{\delta} \delta - l\right|$$ $$ = \epsilon $$ However, clearly the inequality here is nowhere near correct, since the difference is an absolute value. How would I go about this proof? (I'm following the Stephen Krantz, Real Analysis and Foundations Textbook)


In a longtable, I need the first column to display numbers based on an enumeration by references to labels. This means I can refer to the rows somewhere else in the text.  I imagined it would help to create a label and reference to that label in the same cell, but I keep getting 1-figures instead of an incrementing number.  Here's an example of what I have:  \documentclass[a4paper]{article} \usepackage{longtable} \begin{document}  \begin{longtable}{|l|l|}   \hline \textbf{Number} & \textbf{Title} \\ \hline \endfirsthead  \label{row:thefirst} \ref{row:thefirst} & First \\ \hline  \label{row:thesecond} \ref{row:thesecond} & Second \\ \hline  \label{row:thethird} \ref{row:thethird} & Third \\ \hline  \end{longtable}  \end{document}   I have tried changing the "row:" to something like "itm:" or "fig:", but nothing helps.  Perhaps, I need to put it in some context like when using \begin{figure}, but I am not sure how that would turn out when in a table cell.  Any suggestions? Thanks!


coding a command that involves running a class with param

I am coding this below functionality where I need to run a class which takes some parameters this will perform an action on the server that is given in the url ....  oracle.ucm.client.DownloadTool --ping --URL=abz.com --param1=abc --param=xyz   And this class is present in a jar which I have included in the build path.  Executing this manually through command line looks something like this:  bash$ java -classpath ".jar file location" abc.xyz.DownloadTool --ping --url=www.google.com --username=xyx --password=abc   Please let me know how to program this.


How do I bake multiple texture maps into 1 UV, In Blender Cycles?

Using:  Blender V2.79 Cycles Render Engine  After creating a complex interior scene consisting of 3 different texture types, each having 3 associated maps (Diffuse, Gloss, Normal) I noticed the texture and baking options will not successfully combine to create a texture for the exported mesh once I bring it into Unity 3D. The mesh is a single object with the different textures assigned to specified faces.  I've played around with a default cube mesh for testing purposes, using the same 3 textures split among the 6 sides, but have only been able to successfully pull over the color info by baking a diffuse map to my UV and saving the image. When using the other baking options, Blender does not successfully create a map for either my Glossy textures, nor my normal map. Even using the "Combined" baking option, I am provided a flat dull diffuse image for my mesh, no gloss or normal info is saved.  My Node process for textures is displayed here  Here is the result of baking my textures as a Normal  The result of adding other textures made from Blender's baking, results in flat gloss at best.  What can I do differently in Blender, to have my assigned UV Diffuse, Normal, and Gloss maps all appear in a single object in Unity?


As the title says, is there any way to run faster than the turret attack (the missile like thing) so that you can arrive spawn before the attack reaches you, and therefore can't kill you? You know, when you have low health, and you are targeted by the turret? Is there any item sets or things like that?


Solve $x^2-y!=2001$ over the positive integers. Can anyone give me hint for this question, I am quite new to diophantine equations so please excuse me .


Best way to run Whatsapp on a 32 bit Ubuntu in 2018 without having a smartphone?

I know there are multiple answers on this topic, but most of them are outdated (2015 or older), and suggest the use of either Genymotion or AndY, both not anymore being available for 32 bit Systems.  My own try was installing Oracle Virtual Box, and installing the latest x86-Android (android-x86-8.1-rc1.iso). It is stuck in the boot process, and I can only see the logo. I can't belive that I'm supposed to buy a new lap top to use software that essentially does not do mutch more than sending text messages.   My system is Ubuntu 14.04, I have 2 GB RAM and an Intel Dualcore CPU with 1.3 GHz frequency (Intel(R) Core(TM)2 Duo CPU     U7700). I don't own a smartphone.   Edit: This question is about 2018, not about 2015, and it's not about Whatsapp webapp (since as I've written, I don't own a smartphone). I'm asked to make an edit do clarify why this question is not a duplicate, this is it.


I'm applying to Computer Science PhD programs (subarea is Theory). Due to Covid, I think there are roughly 4 types of schools in terms of GRE General requirements:  Don't even send your score (they will be ignored) Optional (sometimes accompanied with "we expect most students won't have a GRE score" or "we perform a holistic review and you won't be at a disadvantage if you don't send") Not required but (encouraged)/(can help if application has weak sides) Required  My question is about the 2nd and the 3rd type. How do I decide if I should send them my scores for each type? Unfortunately they don't generally publish the average GRE scores either (some do). More specifically, my case is as follows. I'm applying to top 20 CS schools in the US, and I am an international student from a not-famous country and school. My GRE score is Quantitative:170/170 (96%), Verbal:161/170 (88%) and Analytical Writing: 5.0/6.0 (92%). If it matters, I'm particulary concerned about my verbal score and my GPA is 3.9+, my TOEFL score is strong (110+). Since I can't know if people generally took the GRE or not or if they're sending their scores, I can't decide whether to send. Would my score help me, hurt me or simply not affect me?


batch that change particular string on a .txt file

I have a example.txt witch contanins:  [DDRAWSINK] PlaybackDisp=0 Fullscreen=0 CurUsage=2 PlaybackRes=0 ForceRender=0 DV Output On=0 DV Preview VGA=0 DV Port=0   single lines can have only 1 alphanumerical value, for example  CurUsage can have only 2, or 3 or 0 or 9. Never 10 or -1 or 200  and this is the same for other elements (PlaybackDisp, ForceRender, DV Output On etc..)  they can only have a value between 0 and 9.  I would like change single value by a batch file, for example I need to assign to Fullscreen the "1" value instead of 0.  The batch have to recognize "Fullscreen" and change 0 ---> to 1  Is it possible? thanks


creating desktop icon for Arduino 1.6.7 in 14.04

Being a newbee with Ubuntu, I still struggle quite a lot with setting up desktop icons to my apps.  I am currently trying to setup a desktop icon to Arduino IDE and I don't know enough to properly set it up.  Here's the current setup.  I have installed Arduino-1.6.7 in a folder by that name in my home folder.  At present, the only way I can run it is to go to the terminal, CD to the  Arduino-1.6.7 folder and then run it with $ ./arduino.  This works but obviously, I would rather run it with a simple icon.    I have tried to use  method, but when I browse to /usr/share/applications, there is no icon for Arduino.  Thank you for being part of the village that raises this idiot.


I know this was asked and answered last year, but I didn't know if Ubuntu has since then added support for installing an ubuntu OS on an exFat HDD. Anyone know?


Error in resuming ubuntu related to pciehp_resume

I sometimes(not always) cannot resume my laptop after suspending. The following error is printed in the screen:     pciehp 0000:00:1c.1:pcie04: Device 0000:03:00.0 already exists at 0000:03:00, cannot hot-add    pciehp 0000:00:1c.1:pcie04: Cannot add device at 0000:03:00    Someobody mentioned this issue   but I haven't been able to find a solution: "Currently, pciehp_resume will call pciehp_enable_slot() to add  device if there is a device in the slot. But if the device was  present before suspend, it's no necessary to add again. Now in  such case, there is some uncomfortable message like above"  As far as I know, that device is Wireless card. While it is suspended, I didn't add/remove any cards. The only reason I could think of is that: the suspend phase didn't remove the Wireless card (but it is supposed to remove that card), so later on the resume phase would try to add this card, printing that uncomfortable message, not letting me to resume.  Is there a good solution for user like me? Or I should wait until someone fixes it in the kernel code?


There is a column containing following e.g. abcd/ef/g/hij. Characters between the / are dynamic not fix. I want to split in a select query the content into 4 separate new columns.  The already answered question is different, I want to split the content in a string seperated by / into new columns.


Linking: Sibilant with Other Sibilants (was + starting)

I read in an American Accent book that there is no break between sibilants adjoining each other between words. For example, this phrase:     I was starting to worry.   The words was + starting sound like [wəzstɑrt̬ɪŋ] with no break. Am I right? I marked the sibilant sounds with bold.  I used the schwa sound in was because it's a function word and we usually give stress to content words and reduce the function words. I also used the tapped T in the word started.


The binomial formula. how to show: $\Sigma_{k=0}^n k \binom{n}{k} = n2^{n-1}$

Does anyone know how to show that: $\Sigma_{k=0}^n k \binom{n}{k} = n2^{n-1}$?  I think we are suppose to use the binomial formula for that..  Thank you!


G is finite group. Need to proof that exists natural k that $g^k = e$

How do I prove that in a finite group G, for each element in G there is natural power (say $k$) which depends on g,such that $g^k=e$ ? I need to show the existence and the dependence on which $g$ I choose.  I tried write it that way, but I don't have any direction in the proof:   $$G\:=\:\left|n\right|\::\:G=\left\{e,\:g,\:g^2,\:...\:,\:g^{n-1}\right\}$$  Can anybody give me any direction of thinking ?


Neutron degeneracy pressure and the Schwarzschild radius

Does the Schwarzschild radius exist at the exact tipping point where neutron degeneracy pressure fails?  For example, consider a hypothetical neutron star that is being held up just below the limit of neutron degeneracy pressure. If the neutron star gains enough mass (assume a constant radius), it will collapse into a black hole. Does neutron degeneracy pressure fail at the exact point where the neutron star gains enough mass appropriate for the resultant black hole's Schwarzschild radius (where the escape velocity = c)? If so, why do these seemingly unrelated limits match?  Or... does the existing neutron star's radius exceed the resultant black hole's radius? In other words, does neutron degeneracy pressure fail, and as the the neutron star's radius decreases when collapsing, does it eventually reach a smaller (than in the previous scenario) Schwarzschild radius? If this is the case, what is the "in-between" state of matter as the neutron star collapses into a black hole?  Thank you!


How can I remove Milliseconds from the TimeSpan in C#?

I am new to c# and using windows forms. the result of this code is: 01:38:07.0093844 . Anyone knows how can I remove the millisecond part (0093844) from the result (ts) I want the result to look like this : 01:38:07 (H:mm:ss) without millisecond .  Please help .Thank you  string OldDateTime = "2016-03-02 13:00:00.597"; //old DateTime DateTime CurrentDateTime = DateTime.Now;  TimeSpan  ts = CurrentDateTime.Subtract(Convert.ToDateTime(OldDateTime)); //Difference  //result of ts = 01:38:07.0093844


The task is to check whether the first digit of no is zero or not?

My code is as follows:  import java.util.*;   import java.io.*;   public class Buffer {     public static void main(String args[]) throws Exception     {                     int T;         Scanner sc = new Scanner(System.in);         T = sc.nextInt();         while(T > 0)         {             InputStreamReader r = new InputStreamReader(System.in);                 BufferedReader br = new BufferedReader(r);                        String no = "";              no = br.readLine();              char ch = no.charAt(0);              if (ch == '0')             {                 System.out.println("YES");             }             else             {                 System.out.println("NO");             }             T--;         }                   }     }       Please help me with my code, what is wrong exactly?   I am getting the output:   Run Time Error Exception in thread "main"<br>       java.lang.NullPointerException  at Buffer.main


How to link a click event with an event that didn't upload yet

I have a sample  my JS code sample:  $('.owl-next, .owl-prev').on("click", function() {     alert("1"); });   There is a click event on two buttons, the problem is that these two div's configure consecutively, and the event I need doesn't work.   I need a suggestion how to make the click event on the two buttons work, even if the buttons appear later.   My javascript code uploads too quickly.


When a rotating body contracts what work causes the change in its rotational KE

The angular momentum will remain constant when a spread out rotating body contracts since no external torque is applied but the KE of rotation is found to be changed what causes this change? Assume the case for a skater rotating about himself and contracting his arms.


2018 Macbook Pro 3 Display Set Up - HOW?

New to the forum. I bought a Macbook Pro last year. It has 2 USBC ports. I'd like to set up a 3 monitor system for my home office.   Looking for the least amount of adapters and plugs. I am envisioning plugging my mac in while it's closed and having the display pop up on 3 screens side by side as extended displays and not mirror.   Is this possible? If so, what's the easiest adapter or docking station to pull this off? Also, anyone have suggestions on a 3 monitor holding stand and 3 monitors? I just use basic programs for work, so basic monitors will be fine. I do not watch videos.


How to start a application when system boots up?

I have an application which I was running by using  ./cmd from the directory where it is located. Now what I am looking for something by which the application starts automatically when my system boots up. I came across some suggestion saying write a script, do something in init.d, etc. But I am not able to reach a clear solution.  Request you kindly provide your valuable suggestion on same.


I am almost finishing Gilbert Strang's book "An introduction to linear algebra" (plus video lectures at MIT OCW). First and foremost, I would like to suggest this course for everyone. It has been incredibly illuminating.   I would like to continue studying linear algebra, with particular focus on different properties of matrices and the transition to more general linear spaces (I am a physicist so Hilbert spaces and etc. are of particular interest).   Does anyone have a a good recommendation of books/resources/etc.?


How can I keep the gnome-terminal open after a program closes?

I have the following shortcut which opens an SSH instance. How can I modify it so that when SSH closes, the terminal stays open?  [Desktop Entry] Terminal=true Type=Application Name[en_US]=ssh Icon=/logo_sprite.png Exec=gnome-terminal --geometry=... --window-with-profile=... --title=... -e 'bash -c "ssh -t -i ~/dsa.key cle@12.210.9.17 sudo -s"'


I'm trying to understand the SVM algorithm but not able to understand what weight vector and bias is ? Could anyone explain it in laymen terms.


I'm trying to use another class to return data from another class. This class will either return a password, or a key, depending on the arguments sent to the class.  This is the function in the class that returns the data:  public static String main(String args[]){         if (!args.equals(null)){             String gen = generatePassword(args[1]);             return gen;         }else{             String gen = generateRandomString();             return gen;         }     }   My error is:  Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException at me.GaryIsASloth.KeyGenerator.main(KeyGenerator.java:34)   With 34 referring to:  if (!args.equals(null)){   The arguments provided will either be "pass", following "true"/"false" which will tell the class whether to include special characters or not.  Or for the key the args will be null.  I had the class working perfectly when I had it working with the key, and then after modification it worked fine with the password too. However I can't get it to work with both, dependant on the arguments. I've tried null check and length check. What can I do?


I am creating worksheets and I would like to have multiple rows with 2 columns.  I would like the numbering to go horizontally, i.e.,   1. math problem              2. math problem 3. math problem              4. math problem 5. math problem              6. math problem 7. math problem              8. math problem   I am working in the article class (although I need this for the exam class as well) and have been playing around with array/tabular, minipage, and creating my own commands... I am still new at this, thank you for your patience.   \documentclass[twoside]{article} \usepackage{amsmath,amsfonts,amssymb,graphicx,mathtools,flexisym, array, multirow, tabularx, enumitem, multicol}  \newlist{mparts}{enumerate}{1} \setlist[mparts]{label*=(\arabic*)} \newcommand{\mpart}{\item}  \SetEnumitemKey{twocol}{   before=\raggedcolumns\begin{multicols}{2},   after=\end{multicols}}  \begin{document} \subsection{Finding Limits Analytically} When a function is defined and continuous at a value $x=a$, how can $\lim  \limits_{x\to a} f(x)$ be found analytically? \vspace{0.5in} \begin{mparts}[twocol]     \mpart $\lim \limits_{x\to 3} \dfrac{1}{2}x^2-2x+3$     \mpart $\lim \limits_{x\to 3} \dfrac{5x+2}{2x-3}$     \mpart $\lim \limits_{x\to 2^{-}} \dfrac{\sqrt{x+2}-1}{x+1}$     \mpart $\lim \limits_{\theta \to \frac{\pi}{2}} \sin{2\theta}$ \end{mparts} \end{document}   As you can see, the numbering goes vertically down as I add more problems.  While this is largely cosmetic, I'd like to know how to change it to look they way I'd prefer it to look.  I also don't know how to insert an image here.  But the format looks generally like this:  1. math problem          3. math problem 2. math problem          4. math problem   Many thanks!


Is it possible to calculate the spontaneous decay rate of an atom's (for sake of "simplicity" hydrogen) excited state in QED, if so how and if not why not?


message plus response probability problem

Suppose I need to send a message to someone. So that I will know the message was received, they send one back. Suppose there is a 10% chance that the message sent will get lost. Similarly, there is a 10% chance that the response will get lost. I know how long it takes for the round trip, so I know how long to wait before sending again (should no response come). Suppose I'm willing to try four attempts. What are the odds that all four attempts at sending the message will lose either the message sent or the response?


How to establish material and texture link via python script?

I just learned the below:  tl = bpy.context.scene.node_tree.links     Traceback (most recent call last):   File "<blender_console>", line 1, in <module> AttributeError: 'NoneType' object has no attribute 'links'


When are "and" and commas used in a list of adjectives? For example,   Poor little rich girl, or Poor, little and rich girl (or Poor, little, and rich girl)?


Why is the ROC curve two-dimensional instead of three-dimensional?

When I understand it correctly, a  curve composes of a lot of ratios of TPR and FPR. Each such ratio is gained, e.g., by scanning/investigating a parameter where the ratio is the result of the used classifier. In other words: I'm interested in how a classifier separates data points according to a frequency interval of 0-100 Hz. Hence I scan this frequency, record all the 101 ratios, put them into the plot and the ROC curve represents these datapoints, finally.  Wouldn't it be much more interesting when the frequency would be used as a third axis? Or is it implicit in the axis? But anyway, I think it would be easier to look at with a third axis?


Prove that the Cartesian product of the natural and rational numbers is countably infinite

Prove that $\mathbb{N}\times\mathbb{Q}$ is countably infinite. I understand that I somehow have to show that a bijection exists between $\mathbb{N}$ and $\mathbb{N}\times\mathbb{Q}$, I’m just struggling to see a way of labelling the set in such a way that no elements are missed.


Including "Chapter" before each section number in the ToC? (Article Class)

Basically, here's my MWE, and I need to include "Chapter" before every section title in the ToC (without changing anything else).      \documentclass[12pt]{article} \usepackage[utf8]{inputenc}  \usepackage[english]{babel} \usepackage[titles]{tocloft} \usepackage{titlesec} \usepackage{titletoc}  \addto\captionsenglish{ \renewcommand*\contentsname{\centerline{TABLE OF CONTENTS}}}  %\renewcommand{\thesection}{CHAPTER} %\renewcommand{\cftsecpresnum}{Chapter \thesection} \titleformat{\section}[display]% {\null\vskip1em\sffamily\bfseries\filcenter}{Chapter \thesection}{0em}{}[] \titlespacing*{\section}{0em}{1em}{1em}  \titlecontents{section} [1.5em] % ie, 1.5em (chapter) + 2.3em {} {\contentslabel{1em}} {\hspace*{-1.5em}} {\titlerule*[0.5pc]{.}\contentspage}  \begin{document} \newpage \tableofcontents \newpage  \section{Section One} \section{Section Two} Content \end{document}   The commented out code is what I've already tried. The first one just changes the number to "CHAPTER" and doesn't move the text in the ToC (so it just overlays on top of the name of the section), and if I include "\thesection" after "CHAPTER" it creates an infinite loop definition error. The second one causes no differences, and the code still compiles.  Thanks!


I heard that you can respawn the ender dragon but I don't know how. Can someone please tell me? I tried putting end crystals on the pillars but it did not work.


Showing $ \mathbb{P}\Big( \frac{\Pi - \lambda}{\sqrt{\lambda}}\leq x \Big) $

Let $\Pi$ be a random variable distributed by Poisson  distribution with parameter $\lambda>0.$ Need to show that $$ \mathbb{P}\Big( \frac{\Pi - \lambda}{\sqrt{\lambda}}\leq x \Big)  \rightarrow_{\lambda \to \infty}  \Phi(x)$$ for every  $x \in \mathbb{R}.$  I have no idea what to do and how to start. I know that Poisson random variable $exp(iat + \lambda(e^{ibt-1})$ maybe this is equal to $\Phi(t)$ but than what is $a$ and $b$?


Is RAID-0 noticeable in a programming environment?

I use my computer mainly for programming - Java, IntelliJ IDEA.. it's a bit of a slow IDE, especially on opening a project / loading up the IDE. I also use the eclipse compiler with it, but there are still some make operations that are slowish.  Would I feel a noticeable difference (core i7 desktop 32GB), if I installed 2 SSD in a RAID-0 configuration? Does anyone know the answer?  It's not really a question of the money, just seems stupid if I won't get any benefits.. if I will get some noticeable benefits then it would be interesting.


I copied Tomasz M. Trzeciak's code from  to draw a shaded sphere with parallels and meridians. Only the sphere was drawn - no parallels or meridians. When I changed the \tikzset(#1/.estyle to \tikzset(#1/.style in the LongitudePlane and LatitudePlane macros the lines were correctly drawn. I am running the latest version of OS X 10.9.3 and have the full Mac Latex install with the latest updates (as far as I can tell).


Proving the inverse of a matrix as a polynomial of matrices

Suppose $A$ is invertible $n\times n$ matrix. Show that $A^{-1}$ can be written as a polynomial of degree at most $n-1$, i.e.  $$A^{-1} = c_{n-1}A^{n-1} + \dots + \ c_{1}A + c_{0}I$$  Are there any tips on how may this proof be approached?


Is it possible to use TikZ shading with XeLaTeX?

When adding the second solution to , I initially tried to compile with XeLaTeX so that I could use fontspec. However, that didn't work, although compiling with LuaLaTeX did.  I've now managed to create an MnWE: there is a problem, it seems with my use of inner color and outer color with the XeTeX engine. The following example gives the expected output when compiled with pdfLaTeX or LuaLaTeX, but not XeLaTeX.  \documentclass[tikz, border=10pt, multi]{standalone}  \begin{document} \begin{tikzpicture}   \node [inner color=yellow, outer color=red] {Node}; \end{tikzpicture} \end{document}   Output with LuaLaTeX and pdfLaTeX:    Output with XeLaTeX:    Is it possible to use this kind of fill with XeLaTeX? If so, how? If not, is any engine-agnostic alternative available?


Is there any method for learning regularization parameter?

One of the hardest tasks in using machine learning methods is choosing the appropriate hyper-parameters of the model such as regularization parameter. As far as I know, this task is performed by a trial-and-error procedure, that is we try different values and select the ones which result in the better accuracies on the validation set.   I am curious to know is there any method for learning these parameters (especially regularization and learning rate parameters)? Can we simply use the backpropagation algorithm to find the appropriate values of these parameters based on the gradient descent?


Is there a formula to determine the size of decoupling capacitors?

I have used many decoupling capacitors in circuits and have seen them in many textbooks, but they never give an explanation about why they picked a certain size of capacitor.  Everyone seems to have a "rule" about the size that they picked up along the way.  But is there an actual formula that dictates what size of decoupling capacitor to use?  If not, are there some mathematics and physics that I could be pointed to to develop something more rigorous than a rule of thumb?  Many people have said that the size is not always critical, but I imagine there is a point at which changing the size would cause the circuit to fail or at least degrade.  I would like to know what this critical point is, determining the bare minimum case, etc.


I'm trying to prove that:   $$F\,\{f'(x)\} = -i\omega F(\omega) \qquad (1) $$  where $\, F(\omega) = F\,\{f(x)\}$  This is my procedure so far:   $$F\,\{f'(x)\} = \frac{1}{\sqrt{2\pi}} \int_{-\infty}^{\infty} f'(t)e^{i\omega t} dt$$  Integrating by parts I obtained:   $$=\frac{1}{\sqrt{2\pi}} \big[ \space f(t) e^{i\omega t} \space \big|_{-\infty}^{\infty} -  \int_{-\infty}^{\infty} i\omega f(t)e^{i\omega t} dt \space \big]$$  Now, in order to (1) to be true I need to get:  $$ f(t)e^{i\omega t} \space \big|_{-\infty}^{\infty} =0 \qquad (2)$$  I developed it and got the following:  $$ f(\infty)e^{i\omega \infty} - f(-\infty)e^{-i\omega \infty } = f(\infty)e^{i\omega \infty}  - 0= f(t)e^{i\omega \infty} $$  I undarstand that the second term is $0$, since f(t) must have a value to accomplish Dirichlet conditions (and $e^{-\infty} = 0$),  but I don't see how $ f(\infty)e^{i\omega \infty}$ is $0$.


What does it mean that image if formed in front of mirror

Today my teacher told me about plain mirror that distance of image formed(inside mirror) is same as distance of object. And clearly I can understand like the frame of mirror shown here is a door and someone exactly like me is standing away from me. But when it comes to concave mirror, I don't get it how do I understand that image is formed in front of mirror ?


complex functions which can be approximated by sequence of polynomials

For which among the following functions $f(z)$ defined on $G=\mathbb{C}\setminus\{0\}$ is there no sequence of polynomials approximating $f(z)$ uniformly on compact subsets of $G$ ?  1)$e^z$  2)$\frac{1}{z}$  3)$z^2$  4)$\frac{1}{z^2}$  here $e^z$ and $z^2$ are entire functions so can I say they can be approximated by sequence of polynomials ? I know Runge's theorem but not understanding how to apply it.


How to order the ORDER BY using the IN() mysql?

I need to order the results by how the values in IN() clause are set up, here is the example code.  SELECT nickname, age WHERE id IN(3, 1, 2) ORDER BY ?; <- this is where I need the results go back according to the IN() clause   This the result as of now, (using PHPmyadmin, not yet php coded).  nickname | age | true id of the row j        | 11  | 1 jj       | 22  | 2 jjj      | 33  | 3   The result that I need is:  nickname | age | true id of the row jjj      | 33  | 3 j        | 11  | 1 jj       | 22  | 2   Can I do this with using IN() clause? This is the only idea that I came up with so if you have any idea/s that I may try then please tell me.


Is there an adapter / Dock / hub with 2 display outputs?

Looking around I can only seem to find an adapter / dock that only has 1 hdmi output with usb,ethernet, etc.  Are there any adapters / Docks that have 2 display outputs? So then I can plug it into the macbook pro with thunderbolt 3 and output on 2 displays. without needing to   Is it not possible because of the power consumption or speeds?  Thanks!


WiFi problems (Atheros driver) with FreeBSD 11

With FreeBSD 10.3 my Atheros card worked fine and showed up as /dev/ath0. Now with FreeBSD 11 this is no longer the case, though the module is loaded and it seems the system recognizes the card:  root@igloo:~ # sysctl net.wlan.devices net.wlan.devices: ath0   Still, ath0 cannot be used:  root@igloo:~ # ifconfig wlan0 create wlandevice ath0 ifconfig: must specify a parent device (wlandev) when creating   What must I do to use the card?


Ring such that $x^4=x$ for all $x$ is commutative

Let $R$ be a ring such that $x^4=x$ for every $x\in R$. Is this ring commutative?


Appending items to a list of lists in python

I'm getting mad with list indexes, and can't explain what I'm doing wrong.  I have this piece of code in which I want to create a list of lists, each one containing values of the same circuit parameter (voltage, current etc..) that I'm reading from a csv file that looks like this:  Sample, V1, I1, V2, I2 0, 3, 0.01, 3, 0.02 1, 3, 0.01, 3, 0.03   And so on. What I want is to create a list that for example contains V1 and I1 (but I want to chose interactively) in the form [[V1], [I1]], so:  [[3,3], [0.01, 0.01]]   The code that I'm using is this:  plot_data = [[]]*len(positions)     for row in reader:     for place in range(len(positions)):         value = float(row[positions[place]])         plot_data[place].append(value)   plot_data is the list that contains all the values, while positions is a list with the indexes of the columns that I want to copy from the .csv file. The problem is that if I try the commands in the shell, seems to work, but if I run the script instead of appending each value to the proper sub-list, it appends all values to all lists, so I obtain 2 (or more) identical lists.


Is there a fast way I can clone a partition on to another drive using a sector by sector copy, instead of copying individual files?

I'm trying to transfer a 4 TB Time Machine backup from one USB 3 hard drive to another. I'm currently using SuperDuper to do it, and it's going to take upwards of two full days to perform the copy, if not longer.  That's significantly slower than the usual maximum speed for copying over USB 3, and I suspect that what's slowing things down is the overhead of copying each file individually, rather than just copying the raw data on the drive, sector by sector.  Given that I just need to duplicate a partition on to another drive:    Would it result in a usable partition if I did a sector-by-sector copy? Would that be faster than using SuperDuper? And if yes to both of the above, what are some methods I could use to do that?   I already tried using Disk Utility's restore feature to clone feature, but it got about 5% of the way in and then failed with a weird error about a drive being busy. So I don't think it's reliable enough, and it has no option for resuming where it left off. But that said, it did seem like it was going much faster, and if it didn't fail, it would've taken around 8 hours for it to finish.  edit: for posterity, the reason Disk Utility failed to copy the drive is because my destination drive was dying and loaded with bad sectors. Under normal circumstances it would probably work and be about as fast as dd. However I like Allan's answer the most because, in case something causes dd to stop mid-copy, you can restart it from where it left off.


Software/App for electronic research notebooks

I want to keep a research notebook for my computational "experiments". Basically, I should at least be able to write text and attach images like plots. Other nice features to have would be   linking to past experiments/pages latex equations uploading papers, or other urls being able to transfer data dating and version control open-source tool   I am already familiar with trello and tiddlywiki. Trello is good for attaching stuff and organising tasks, but I need a notebook where I attach a plot, write stuff around it, attach another below it. It doesn't have a paper or canvas. Tiddlywiki is a little painful for attaching pics and equations, the file bloats, it seems I am keeping a blog.  What is a good, free electronic notebook tool for research/lab work?


Area 51 layout breaks when zoomed to 90%

I tend to keep my Chrome zoomed to 90% (it gives me more real estate on my work monitor. When I do the layout on , it breaks (see the image below).      `


Suppose I have a DB2 database instance that manages a single database with 2 Schemas, say A and B What would be the benefits (if any) of having the instance instead manage 2 databases with one database containing Schema A and the other containing Schema B?


Is there Any Nomenclature for names of circuit components?

There are lot of components is circuit named in very different manner like voltage regulator - LM7905 etc. Do different companies name them differently.


I am looking for the best calculus book to use it to teach myself calculus. I have already had a bit of a search and these are what I have come up so far, But I have no idea which one is truly the best bet here and of more value in terms of being good at a self-study manner with lots of explanations and charts for every concepts and chapters. Here is the list i have so far:     James stewart calculus 7e Calculus -Richard A. Silverman The Calculus 7: Louis Leithold   Update: I am a Computer Science student and i need it for my courses and carrier, so please consider this in your answers. If there is any better book please mention it since i have no idea on these books. Thanks in advance


I want to disable the Super key, when I press Super nothing should happen.  I want to retain other shortcuts such as Super+Left though.  How can I do that?


Here is the code. This is as simple as can be. Why won't it center?  .msg {     width: 600px;     height: 200px;     margin-left: auto;     margin-right: auto;     margin-top: 100px;     font-size: 42px;     font-weight: bold; } </style>
This is not centered. Why not?


Is there a standard for public key encrypting and signing short messages?

Some systems, that operate over flaky bearers, need to send signed, encrypted messages that are entirely self contained - i.e. send a single 300 byte UDP rather than have a 10Kb, two-way, certificate conversation over TCP.  Assume the destination has a private key and already knows the source's public key, and the source has a private key and already knows the destination's public key.  Given this assumption, is there a standard for encrypting/signing a small, but arbitrary length, message?  (I'm well aware of the dangers of rolling my own encryption scheme.)  Would there be a minimum ciphertext size that is related to the public key size?  (I'm thinking plain PKI encryption for plaintexts shorter than the key, and a PKI encrypted AES key for longer plaintexts.)


What do you say when you don't know someone's gender?

For example, I want to refer to someone on the internet, but I don't know this person's gender. Which personal-pronoun do I use? (as article I mean he, she, it, etc)


Make bounty Custom Message dialog box draggable

When placing a bounty, the Custom Message dialog box pops up, and is sometimes directly over the question.  There are times when writing the message that I want to refer to the question, but the box is not draggable.  Could we please make the Bounty Custom Message dialog box draggable?  Flagging Dialog    Bounty Dialog    (Images courtesy of )


I have seen in a few books a style for theorems of the form    So what I want ideally is a the theorem title at the top and then the whole theorem enclosed in a box. The shadow is not needed but would also be nice to have. Would anyone know how to produce this?


How can I be notified of updates for apps that I do not have installed?

What is the best way to be notified of an apps' update that is not installed on my phone? Is there a site place such as the Play store, Playboard, Aptoide or elsewhere that I can get an rss feed, email or another way of notification?  For example, I do not have Google Camera installed, but I may want to install it when a new feature I'm looking for has been added to it.  I am aware of the defunct app, "Changelog Droid" which is no longer maintained since January 2014. "The app is currently not maintained. There is an (unlikely to be fixed) issue with paid apps. Please don't contact me in this regard." So an alternative solution beyond that would be greatly appreciated.


MS Access database was corrupted and in one table few rows was duplicated. They are absolutely same and there isn't any unique field between duplicates, even primary keys. Because of this, primary key was reseted from this table after repairing database. Now I can only know rows that were duplicated:  select * from tablename where id in( select id from tablename group by id having count (*) > 1)   To designate primary key I must delete one of two duplicates, but don't know how.