Is there a formula to activate the hyperlinks in excel using a thousands of rows?

Hello guys I just want to ask if there's a formula to activate hyperlinks in excel. Let's say I have 10,000 rows in column D all the rows consists of URL. I know how to activate it using F2 command but I have 10,000 rows. How can I do that? Thanks.  This is the example link I have


Old kids book about boy who builds a spaceship to travel to mars

I can't remember when I read it - but likely the 70s. The young boy was so enamoured with travelling to the Mars that he built his own ship (which I think was box shaped) and flew there and came back.  That's all I remember. I'd like to get it for my kids now if anyone can remember it.


I own an old Asus P50IJ laptop .  CPU: Intel Core 2 Duo processor, 2.2 GHz ~ 2 GHz RAM: DDR2 800 MHz SDRAM, 2 x SO-DIMM sockets for expansion up to 4 GB SDRAM OS: Windows 7 preinstalled  Since I'm about to install an SSD to run the OS is it feasible to think about installing Ubuntu 20.04 on this old laptop?


In MSSQL TABLE I have 3 columns.  ID (IDENTITY), KeptValue(NVARCHAR), SPENT(MONEY).   I have multiple KeptValues that are duplicated. I need to delete all duplicates and keep 1. But I need to keep the one with the greatest spent. I have 2 views created. a list of the duplicated kept values VW_DUPLICATE1.


Does floor topology on R have a countable basis?

Floor topology on R : - Topology generated by basis containing half open intervals [a,b) where a < b are real numbers. Does it have a countable basis?


Constantly having a problem with my Home volume filling up. The problem is I don't know what to delete. Is there a utility that will search for files by size and allow easy deletion? On Ubuntu Mate 18.04.


What Easter eggs do the chat sites have?

According to , the SE chat sites may have individual Easter eggs, depending on the site. If you find them, please post. Because it's so easy to make this stuff up, a screenshot as proof would be nice. (Although Photoshop isn't that hard either...)


I've spent more time than I should trying to get my ray picking program working. I'm pretty convinced my math is solid with respect to line plane intersection, but I believe the problem lies with the changing of the mouse screen touch into 3D world space.  Heres my code:      public void passTouchEvents(MotionEvent e){           int[] viewport = {0,0,viewportWidth,viewportHeight};         float x = e.getX(), y = viewportHeight - e.getY();          float[] pos1 = new float[4];         float[] pos2 = new float[4];         GLU.gluUnProject(   x, y, 0.0f,                             mViewMatrix, 0,                             mProjectionMatrix, 0,                             viewport, 0,                             pos1, 0);           GLU.gluUnProject(   x, y, 1.0f,                             mViewMatrix, 0,                             mProjectionMatrix, 0,                             viewport, 0,                             pos2, 0);     }   Just as a reference I've tried transforming the coordinates 0,0,0 and got an offset.  It would be appreciated if you would answer using OpenGL ES 2.0 code.


Is it suitable to use 'etc.' in an academic paper?

I'm writing one of my first academic papers and I'm not sure whether etc. is too informal. Should I use et cetera instead?


How to negate a regex for pandas replace

In pandas I can search and replace all fields that contain the word fish, for example, using df.replace(r'.*fish.*', 'foo', regex = True).     But how do I search and replace all fields that don't contain the   word fish?   That is in my example replace all fields that don't contain the word fish with the word 'foo'.  For example, say the dataframe is  applefish pear water     afishfarm   I would like this to be transformed to  applefish foo foo       afishfarm


I have links on my webpage like this:   So whenever I put a ' after 88, I get the following error: Warning: mysql_fetch_row() expects parameter 1 to be resource, boolean given in ... line 588  So I read about mysql_real_escape_string(), but I'm getting the ID not posting and I have no clue how should I prevent getting this error.   function news() { $query = mysql_query("SELECT * FROM news WHERE id=".$_GET['id'].""); while($news = mysql_fetch_row($query))  {     ... } }


How to match URLs in Ruby 1.8.7 using Regex

I'm doing a project which requires me to match URLs . I'm horrible at regex. But i believe the structure goes as follows -    letters and symbols , except space that that can be repeated 1 to any number of times, immediately followed by a dot 0 or 1 times, followed by letters and symbols , except space, 1 to many times, followed by a dot " ." , followed by a list of valid extensions (like com ,org,in (will be specified here)) followed by a "/" 0 or 1 times  if 0, then immediately followed by space if 1 , then words and symbols except      how do I form the regex for this


"debconf: DbDriver "config": config.dat is locked by another process: Resource temporarily unavailable" while installing packages

I'm trying to install the flashybrid but when I enter the apt-get install flashybrid command, I get this error:  root@user-desktop:/home/user# apt-get install flashybrid Reading package lists... Done Building dependency tree Reading state information... Done flashybrid is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1 not fully installed or removed. After this operation, 0B of additional disk space will be used. debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable Setting up flashybrid (0.15+nmu2) ... debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable dpkg: error processing flashybrid (--configure): subprocess post-installation script returned error exit status 1 Errors were encountered while processing: flashybrid E: Sub-process /usr/bin/dpkg returned an error code (1)   I also tried this one to find what is already using that file:  root@user-desktop:/home/user# lsof | grep /var/cache/debconf/config.dat lsof: WARNING: can't stat() fuse.gvfs-fuse-daemon file system /home/user/.gvfs Output information may be incomplete. dpkg-prec 4672 root 4rW REG 8,6 39658 1697827 /var/cache/debconf/config.dat   But I don't know how to fix this.


Sort citations as they appear in the bibliography (biblatex)

According to the biblatex manual, the option sortcites = true makes sure that "citations are sorted according to the global sorting order of the bibliography" (§3.1.2.1). This is, however, not what I get (using the latest version of biblatex). As can be seen below, the order in the text citations is the opposite of the bibliography. How can I fix this?  \documentclass{article} \usepackage{filecontents} \usepackage[style=authoryear-comp,sortcites=true]{biblatex} \begin{filecontents}{\jobname.bib} @book{lennon1972a,     AUTHOR = "John Lennon",     TITLE = "Who did what in the Beatles",     YEAR = "1972"} @book{lennon1972b,     AUTHOR = "John Lennon",     TITLE = "This is why I was the best musician in the Beatles",     YEAR = "1972"} \end{filecontents} \addbibresource{\jobname.bib}  \begin{document} \cites{lennon1972a}{lennon1972b} \printbibliography \end{document}


What is the right SE site to ask about file conversion specifications?

What is the right SE site to ask this question of mine?    I asked this on Stack Overflow, but seeing that there has been no response (comment or answer) for more than 2 days, which is unusual in my experience with SE, I surmise that it might be because I've posted it on the wrong site.


Why does the windshield of my car freeze even if the outside temperature is above freezing?

Under what conditions does the windshield of a car freeze even if the outside temperature is above freezing?  It is not clear whether this is related to the question why bridges freeze with non-freezing outside temperatures (see related topic), as I did not see an explanation in terms of radiation there. It indeed seems that electromagnetic radiation is the culprit for windshields, which would predict that this phenomenon can only occur with an open sky. Does anybody know whether this is true?  And why does ice only form on top of the windshield and not on the metal surface of the car? Is this because heat is conducted much faster on the metal surface?


So there are two teams in Avengers: Endgame: Natasha (Black Widow) and Clint (Hawkeye)/Nebula and War Machine.   Yet Black Widow and Hawkeye were chosen for the mission to Vormir. So did Nebula know to send them since one loved one had to be sacrificed and she gathered that they both share a history or was it just a normal team separation?


How to prevent my friends from seeing my friends’ list on Facebook

I am wondering, is there a way that enables me to customize how my friends in my friend list see each other on Facebook?  There are some cases that make this feature so useful and necessary, for example:   You add a new girl as a friend and don't want for her to see your other girl friends in your friends’ list. You add your current manger and don't want for her/him to your ex manager in your friends’ list.


All the document in only one long and continuous page

Well, may be this is not really useful, but I've thought if it was possible to put all the document in one long page. I mean, if your document is going to be read in a computer, mix all the pages in a continuous page. If your document has 90 pages (A4), where each one is 21cm by 29.7cm the continuous document should be (more or less) one page which is 21cm by 90 · 29.7 = 2673cm. Is this possible? EDIT: Some things I would like to achieve:  The \newpage, \chapter{}, \part{}, etc. shouldn't go to a new page, they should only add more vertical space. The package pdfpages should add the pages continuously with almost no space between them. The titlepage, in this case, has a different color, so it could go alone in a basic A4 page (just to make things easier).  Question Is this possible?


Is there proof gravity bends space or is it just the most convenient explanation?

I have read this sentence in an :     The theory [of general relativity] holds that gravity is geometry: particles are deflected when they pass near a massive object not because they feel a force, said Einstein, but because space and time around the object are curved.   Do we have a physical evidence that this is in fact true? By evidence I mean stronger explanation than just , that dictates that bent curvature of space is more plausible/shorter/elegant explanation than let's say gravitational pull being mediated by graviton particle?   EDIT: I understand now that my question does not make the sense I thought it did. Gravity explained by a force between two objects manifests differently than gravity explained by curvature of space and we have measured the difference. Maybe the first part of my question may be of some interest - whether there are other indication of curved space - but I understand now it is the ONLY valid metaphor we have.


Does installing a deb file add to repository list?

For example I want to install Google Chrome via deb file. Will it be added to my repository list for apt-get update and apt-get upgrade?  If not, how would I go about updating it and other software installed through deb files?


I am confused in using this sentence.     "Code in SVN and Test case document is updated accordingly."   I am thinking of using are instead because "Code" here is a set of Source Code files and "Test case document" is a single document file. But are would contradict with "document" which is singular. So which form should I use?  Any help would be appreciated.


Math escape in listings and surround white space

I want to use the double right arrow for some Scala code in listings. I thought I'd use the mathescape option and $\Rightarrow$. However, this "eats" whitespace around it, e.g. if I have   foo  $\Rightarrow$  bar   only one space character is used in front and after the arrow, as if it were  foo $\Rightarrow$ bar   How do I enforce the whitespace? Could I embed the unicode character \u21D2 for the arrow instead of using mathescape?    EDIT: So with the comments I managed to produce a math escaped command that has a width of exactly three space characters in the verbatim font:  \newcommand{\ScalaRA}{{}\hspace{-0.04ex}\Rightarrow\hspace{-0.08ex}{}}   However, the problem of eating the white space is still there:  \begin{lstlisting} abc d     g     j a   d  $\ScalaRA$g  $\ScalaRA$j a   def$\ScalaRA$ghi$\ScalaRA$j \end{lstlisting}   In the second line, after using $\ScalaRA$ for the first time, subsequent whitespace is contracted: After the g character there are two spaces but it is rendered only as one space:    So going in an out of the math mode leaves some "garbage" behind somehow. How to clean this up so that all three lines are perfectly aligned and the two space characters after g in the second line are respected?


Kindly, if somebody can help me how to create a bootable iso image from CD/DVD (Windows DVD)  Thank you


Keyboard stops working on Ubuntu 16.04 (Xenial Xerus)

My keyboard stops working for no apparent reason.  After using Ubuntu for 2.5 years as a virtual machine on a Windows host () I finally took the plunge, reformatted my hard disk and built the system with Ubuntu yesterday. This morning I my keyboard stopped working.  I see many posts about Ubuntu and a USB keyboard or mouse ceasing to work randomly. They indicate that it is autosuspend turning off power to USB devices to save power, and when the USB device is not compatible in some, the USB does not 'wake-up' as it should.  I tried the suggestion posted in .  But no luck. I also tried another suggestion which was to boot without the keyboard and then plug it in once Ubuntu had started.  Here are some details:   I used the same Kinesis keyboard with Ubuntu as a virtual machine for the past two years, no problem. The Kinesis has macros and triggering a macro triggers the problem 100% of the time. However, it happens when I am just typing (no macros) as well. I tried the Kinesis on a laptop just now. This is a one-year-old  machine that I put Ubuntu 16.04 on two weeks ago. Using a Kinesis keyboard macro did not reproduce the problem.   Problem Machine   Dell XPS, 6 years old, desktop Installed Ubuntu 16.04 yesterday Using Kinesis Advantage USB keyboard Unplugging/re-plugging the keyboard has worked 9 out of 10 times Rebooting works as well I don't think it is a USB power problem as an LED on the keyboard stays lit and other USB devices keep working. I have both a USB and a Bluetooth mouse attached to the machine. Both keep working even when the Kinesis stops. I normally have a second regular Dell branded keyboard plugged in for non-Kinesis folks who need to use my computer. Earlier today this keyboard stopped working each time the Kinesis stopped working. However now, triggering the problem with a macro, the Dell keyboard keeps working.   The Kinesis, which I have had for 8 year now, has made it possible for me to keep keyboarding. If I can't resolve this I'll have to go back to Windows which would be a real bummer.  Any suggestions on things to try or ways to go about debugging this would be greatly appreciated.  I am digging into USB drivers, which on Linux I know nothing about. However, I have found that the laptop has both USB 2.0 and 3.0 ports. The desktop (with the problem) is USB 2.0 only. Still digging...


Changing font size of marker labels in pgfplots scatter plot

How can I change the font size of marker labels in a pgfplots scatter plot? I've tried  label style={font=\small} in \pgfplotsset as well as adding scatter/@pre marker code/.code={font=\small}, to no avail.   MWE follows:  \documentclass{article} \usepackage{tikz} \usepackage{pgfplots} \usepackage[active,tightpage]{preview} \PreviewEnvironment{tikzpicture} \begin{document} \begin{tikzpicture}  \begin{axis}[     xlabel=$a$,     ylabel=$b$ ] \addplot[blue,mark=*,mark options={fill=blue},nodes near coords,only marks,    point meta=explicit symbolic] table[meta=label] { x y label 100 150 1 200 180 2 }; \end{axis} \end{tikzpicture} \end{document}    Thanks!


Mods do not always exercise perfect judgement, how is a user supposed to deal with a bad close?


I saw that you could use the new portal to create an alias for your database instance.  I have already created an internal DNS to point to our Azure SQL instance but of course connecting to it wants username@randomname .  How can I make an alias for the "random server name" so it is more usable for my clients?  thanks


Is it possible to produce a context free grammar for Tikz path? node?

Even further, I would be happy to see a definition of the tikz language in the usual manner programming languages such as Java and Pascal are defined.   The reason I ask is that I keep getting mysterious error messages for the tiniest typos. Essentially, incorrect use of the underlying languages leads to a "crash" of the compiler. This crash sometimes gives useful error messages, but sometimes they are hard to decipher.


Studying when $P_n=(p_1\cdot p_2\cdots p_n)+1$ is a square number

Let $p_n$ be the $n$th prime number. I need to find under which conditions the number $$P_n=(p_1\cdot p_2\cdots p_n)+1$$ is a square number. So far I have seen that $$P_1 = 2+1 =3$$ $$P_2 = 2\cdot3+1 =7$$ $$P_3 = 2\cdot3\cdot5+1 =31$$ give all prime numbers, this is that $P_n$ is always a prime number, and so it can never be a square number. But I can not find the exact way to prove it. I though of trying something like the prove for the Euclidean Theorem  that states that there are infinite prime numbers but I can not figure it out. Thank you.


I tried to update Grub so I run:  sudo update-grub  Generating grub configuration file ... Warning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported.   What exactly this warning wants to be changed? (I upgraded from 12.04 to 14.04 before)  This is my /etc/default/grub file:  GRUB_DEFAULT="0" GRUB_HIDDEN_TIMEOUT="0" GRUB_HIDDEN_TIMEOUT_QUIET="true" GRUB_TIMEOUT="10" GRUB_DISTRIBUTOR="`lsb_release -i -s 2> /dev/null || echo Debian`" GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" GRUB_CMDLINE_LINUX=""


I have a list of taxonomy terms to make some categories on my website. When I click on one of them, the content appears, but I can't display the taxonomy term name. I can't find the right configuration in my view.        To display the result, I need to alter the page.html.twig template and the views template. I want to display the name of the term in the page--my_name.html.twig template.


How can I stop Wpf BeginAnimation from locking the image source?

I've been trying to get an animation sequence working for a game for Wpf. Being new at WPF, I didn't find a XAML answer that worked. I managed to piece together some C# code, and it worked but then I found I could not change the Image Source afterwards. I did many searches on the internet, tried things like changing the caching, but nothing had any effect.  In the code below, statement marked "This assignment ignored" is just that. No exception or other error, just stepping through it shows the assignment was not honored. I did find an answer while searching on a related topic (which I'll give in an answer post), but I wanted to post this in hopes of saving other developers a lot of frustration with this issue and how to make a WPF image animation of an explosion. The actual images don't matter, use whatever ones you want.  The XAML  <StackPanel Background="#333333">     <Button x:Name="boomButton" HorizontalAlignment="Center"                      FontSize="24" VerticalAlignment="Bottom" Click="boomButton_Click" >BOOM</Button>     <Button x:Name="resetButton" HorizontalAlignment="Center"                      FontSize="24" VerticalAlignment="Bottom" Click="resetButton_Click" >Reset</Button>      <Image x:Name="bmb" Source="Images\bomberbase.png" Stretch="None" /> </StackPanel>   C# Backend Code  public partial class MainWindow : Window {     public static BitmapImage mBoom1Img, mBoom2Img, mBoom3Img;     public static BitmapImage mBomberImg, mBlankImg;     public static BitmapImage mUnknownEnhancementImg, mAirfieldCraterImg;      public MainWindow()     {         InitializeComponent();          mBoom1Img = BitmapImageFromSource("Images/boom1.png");         mBoom2Img = BitmapImageFromSource("Images/boom2.png");         mBoom3Img = BitmapImageFromSource("Images/boom3.png");         mBomberImg = BitmapImageFromSource("Images/bomberbase.png");         mBlankImg = BitmapImageFromSource("Images/blank.png");         mUnknownEnhancementImg = BitmapImageFromSource("Images/unknownEnhancement.png");         mAirfieldCraterImg = BitmapImageFromSource("Images/airfieldCrater.png");     }      public static BitmapImage BitmapImageFromSource(string aRelPath)     {         BitmapImage bi3 = new BitmapImage();          bi3.BeginInit();         bi3.UriSource = new Uri(aRelPath, UriKind.Relative);         bi3.EndInit();         return bi3;     }       private void resetButton_Click(object sender, RoutedEventArgs e)     {         bmb.Source = mUnknownEnhancementImg;   // This assignment ignored     }      private void boomButton_Click(object sender, RoutedEventArgs e)     {         ObjectAnimationUsingKeyFrames animation = new ObjectAnimationUsingKeyFrames();         animation.BeginTime = TimeSpan.FromSeconds(0);         animation.Duration = new TimeSpan(0, 0, 0, 3, 0);          DiscreteObjectKeyFrame fbmb = new DiscreteObjectKeyFrame(mBomberImg, TimeSpan.FromMilliseconds(0));         animation.KeyFrames.Add(fbmb);          DiscreteObjectKeyFrame f1 = new DiscreteObjectKeyFrame(mBoom1Img, TimeSpan.FromMilliseconds(200));         animation.KeyFrames.Add(f1);         DiscreteObjectKeyFrame f2 = new DiscreteObjectKeyFrame(mBoom2Img, TimeSpan.FromMilliseconds(400));         animation.KeyFrames.Add(f2);         DiscreteObjectKeyFrame f3 = new DiscreteObjectKeyFrame(mBoom3Img, TimeSpan.FromMilliseconds(600));         animation.KeyFrames.Add(f3);         DiscreteObjectKeyFrame f4 = new DiscreteObjectKeyFrame(mBlankImg, TimeSpan.FromMilliseconds(1000));         animation.KeyFrames.Add(f4);          animation.Completed += new EventHandler(animation_Complete);         bmb.BeginAnimation(Image.SourceProperty, animation);     }      private void animation_Complete(object sender, EventArgs e)     {         // This unlocks the animation's hold on the property!         //bmb.BeginAnimation(Image.SourceProperty, null);          bmb.Source = mAirfieldCraterImg;   //  This assignment ignored     } }


Cannot boot from USB with ubuntu 14.04.1 LTS

Tried to boot live USB with Ubuntu 14.04.1 LTS. After selecting boot from USB and selecting Install Ubuntu it then goes back to the motherboard splash screen. Pressing F12 to select boot menu and doing it again will just repeat the process. The machine already has Windows 8.1 on it and has a Gigabyte Z77-D3H motherboard. Thanks.


Childrens fantasy, blind monk leading boy who can control the elements

This is a book I read as a child, so sometime in the 1980's  . It was actually a two part book series, both normal novel length. It was a swords and sorcery style setting.  Details are sketchy, but I'll give you what I can remember.  It centred around  a boy on a quest against some demon-like villain wizard type character. At some stage a girl was kidnapped and they were off to rescue her ( fairly generic stuff)  . I think the girl also had magic powers, healing I think.  This boy could control the weather or elements. He encounters a monk type character who ends up travelling with him and becomes a teacher of sorts. This monk is actually blind, but can still sense his surroundings, DareDevil style. ( I cannot remember if this was a magical ability or just something the monk had developed over time. ). I seem to remember this character had black, reptilian style eyes.  There may have been more people travelling with them I don't recall.  I recall the encounter with the main enemy took place on the top of a mountain, this mountain had the top taken off so was perfectly flat. ( I hope I'm not getting muddled with a different book with this detail)  The baddie know the boy could only control the elements if he was exposed to them, so ended up sealing the room he was fighting in so the boy had no contact with the outside. He won through by using a dagger or sword to make a crack in the floor through the protection, giving him enough of a connection with the outside to use his powers. I /think/ he died during this battle, and the girl they were rescuing brought him back to life. ( Or maybe she dies, and was brought back to life somehow)


say we have a fixed table T. Is there a unique normalized version of T, i.e., does the/a correct normalization, say up to 3NF produce a unique table up to some equivalence? Basically, I am trying to find out how many different correct ways of normalizing a table there are. Thanks.


Please require more reviewers on First Posts

On the one hand, I see very few posts in the review queue when I visit.  On the other hand, I see a lot of pretty awful first posts sitting on the front page.  This leads me to suspect that robo-reviewers are blowing through the queue.  Given how empty the queue is, could you please increase the number of people who have to check in before a post leaves the queue?  Of course, some honey-pot solution to detect and disable the auto-clickers would be even better.


Mac does not recognize iPhone when it is connected by USB

My iPhone fails to connect to my mac via USB charger. The USB port and the cable are working. System Information shows that "unknown device (...not been configured)". I don't know why this happens?


I'm attempting to install git with sudo apt-get install git and this is the error I get: E: Could not get lock /var/lib/dpkg/lock-frontend. It is held by process 4284 (aptd) N: Be aware that removing the lock file is not a solution and may break your system. E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?


The gravitational pull the Sun has on the Moon is roughly two times greater than the pull the Earth has on the Moon. If this is the case, why does the Sun's gravity not pull the Moon away from the Earth?


Prove that for $G = (V,E) $ $$ \chi(G) \chi(\overline{G}) \ge |V| $$ Please for some advices. Thanks in advance.


How to check if gparted is installed or not through terminal?

Simple Question, I want to check if a specific package = sp, say gparted is installed on Ubuntu 16.04 server.


How can I create a polygon pattern in Photoshop?

I have been thinking for quite a while how would i make it myself. The difficulty lies in randomness. I Could go on manually but can't help and feel that there is some better way to do it.  For example it was to be generated using some programming language then all i need to do is create mountains with varying hues and let the 3d light lit them.


How do we evaluate the sum:   \begin{equation*} 1+2+...+n \end{equation*}  I don't need the proof with the mathematical induction, but the technique to evaluate this series.


If $x^a$ is $x$ multiplied $a$ times, then how does $x^{-1}$ make sense?

What is the meaning of $x$ raised to any non-positive value? We know that $x^{-a} = \dfrac{1}{x^a}$ and $x^0 = 1$, but where does that come from? What is the proof? Why is this true? What about $x$ raised to a fraction, like say $\frac{1}{3}$? How do you multiply $x$ $\frac{1}{3}$ times?


Planning to integrate $\int_{0}^{\infty} \frac{\log^2(x)}{x^2 + 1} dx$ using complex analysis

This is just a plan-out.   I want to evaluate:  $$\int_{0}^{\infty} \frac{\log^2(x)}{x^2 + 1} dx$$   Using a keyhole contour a semi-circle, with base at the x-axis.   First I must pick a branch.  Since the logarithm is multivalued in that,   $$\log(e^{i2\pi}) = \log(e^{(2ki\pi) +  i2\pi})$$  We consider: $f(z)  = \displaystyle \frac{\log^2(z)}{z^2 + 1}$  But how should I pick a branch.  (1) What is a "Branch?"  (2) Should I pick a place where the $\log$ is continous. That is everywhere except $z=0$  So then my contour will be half-washer shape. with the opening in the middle:     Thanks


I am trying to download urls saved in these text files PendingCases01.txt  PendingCases03.txt PendingCases02.txt  I tried for f in *.txt;do aria2c -i "$f" -d "$f";done  Error:Failed to make the directory PendingCases01.txt.  As its reading the name of first text file and creates same named folder including extension. How I can discard extension .txt while it creates new directory same name as text files the urls  I am downloading from.


I've a simple bash script. PFB :  CWD=/cygdrive/c/Users/abhisek.samanta/Desktop/New_folder cd $CWD for i in `cat req_files.txt` do echo "file_found : $i">a.txt done   Note : req_files.txt is having a list of files which i need to find in this directory . If the files are found, it should list the name of the file which was found & print it in "a.txt".   The req_files.txt is having multiple files,but only the first filename is getting printed & not the rest of the files. Pl help.


How much money should the sponsor show to be granted visa to the UK?

I'm hoping to apply for the UK visa, but have been holding back because I'm worried I'll get refused (I'm Sri Lankan, refusal rate is high for us!).  I'm a student doing my Master's course in Russia. Almost each summer when I was doing my bachelor's degree (also in Russia) I traveled to many East-Asian countries like China, Japan, Singapore and Thailand.  This year I'd like to visit the UK (in winter because I got an internship during summer).  Since I'm a student, I only have about £450 in my own bank account. My mother will be sponsoring me. She has a fixed account with £5,000 and is hoping to spend £1800 out of it for my trip.   She'll be left with £3200. Her pension plus my father's salary is £300 per month and my father's fixed account deposit is £5000.  (My married sister who earns a £1000 per month takes care of utility bills in the house, because her husband earns more than enough).  I want to know whether they'll think this amount is okay for my mom to get by on after paying for my trip? I get free tickets each year through my sister (she works at an airline).  If they do, then will they accept fixed deposits?


Difference between ulimit, lsof, cat /proc/sys/fs/file-max

I've been getting java.io.IOException: Too many open files while running a Kafka instance and using one topic with 1000 partitions so I started investigating the file descriptors limits in my ec2 vm. I cannot understand which is exactly the limit for open files on a Centos 7 machine since all the following commands produce different results. The commands are:   ulimit -a: open files 1024 lsof | wc -l: 298280 cat /proc/sys/fs/file-max: 758881 (which is consistent with /proc/sys/fs/file-nr)   If the actual limit is the one the last command produces then I am well below it (lsof | wc -l: 298280). But if this is the case, the output of the ulimit command is quite unclear to me since I am well above the 1024 open files.   but are there all these seemingly "inconsistencies" between these commands?


What does velocity relative to CMB mean?

I've see some velocities  quoted as "relative to the cosmic microwave background"?  How is this different to measuring velocities relative to that old, discredited idea, the ether?


What is 60 and 90 in following?    As far as I know 60 is the score and 90 is number of posts in .  If it is so, I have observed that since last 4 to 5 days, I have received some upvotes for questions I have answered in  but I am not able to see any change in the count. Why is it so?


Find the lowest value within a custom range in an array

I have an array say numbers = [4,4,9,2,3] and I want to to find the lowest value within a custom range.  Range of index 2, I want the lowest value from [4, 4, 9].  so far, I have:  min(range(numbers[2))


add user role selection to registration form

I need to add a select box or something like that into registration form in order to let my users to select custom roles I have defined.


Let $a,b \in [0,1], a+b=1$ and let $\{u,v\}\subset\mathbb{R}$.   How can we prove that $$(au+bv)^2\leq au^2+bv^2?$$   Opening the brackets give me in the left side $(au+v-av)^2$, but I'm not think that's the right way to do that.  I don't find the triangle inequality very helpfull, too.  Thanks.


Conditional expection of gamma distribution on sum

I have a process which consists of a number of events and what is known is the timings between the events. What I'm trying to determine is a distribution that allows me to determine a likelyhood that a new sample fits the distibution.  The issue is mainly that if you have lots of samples you can approximate the result using a standard gaussian and use the mean and standard deviation. But if you only have a handful of samples, the gaussian does not accurately represent the situation.  From what I've read it is common to model waiting times using the gamma distribution. Looking at how the process evolves it looks like it matches well. The unknown is the scale parameter, since the shape parameter I think should be the number of samples. What I've worked out so far is that given the timings $X_1 ... X_N$ you can say:  $$ \sum_{n=1}^N X_n \sim \Gamma(N,\theta) $$  ($N$ is known and fixed)  However, $\theta$ is unknown, but the maximum likelihood parameter is the average of the $X_i$ (according to wikipedia anyway).   My question is, can I use this to estimate a distribution for $X_i$, that is, since the $X_i$ are independent:  $$ N X_i | \sum_n X_n \sim \Gamma(N, \tfrac{1}{N}\sum_n X_n) $$  Something else I've wondered about. Suppose I do have information about $\theta$, say a distribution. How can I incorporate this into the model?  Edit: Clarified that N is fixed.


Getting "can only post questions every 20 minutes" but did not post recently

Trying to post a question (on StackOverflow), and get the message:  Oops! Your question couldn't be submitted because:  users with less than 125 reputation can only post questions every 20 minutes; try again later.   I have not posted any questions within the last 20 minutes. Specifically I haven't posted a question since "nov 24 at 1:21" in 2009.


If a is less than 1 in absolute value, than n times a to the n'th power converges to zero

Prove that if $|a|<1$ then $$\lim_{n\to\infty}{n\cdot a^n}=0$$ Lopital's rule won't help here, and this problem appears in a book before lopital has been taught.  I noticed that: $$\frac{a_{n+1}}{a_n}=a\frac{n+1}{n}\to a$$  So, can I conclude that it behaves like a geometric series for large n, so it converges to zero?  *Other solution methods are welcome.


I have a torus that I want to project the earth onto, but the current shape of the UV can't be simply scaled into a square. Is it possible to deform this into a perfect grid-like square (I'm not worried about preserving area).


How to split long sed expression into multiple lines?

sed 's/[long1][long2]/[long3][long4]/' file.txt   I would like to split this command onto multiple lines - f.x. something like this:  sed 's/     [long1]     [long2]   /     [long3]     [long4]   /' file.txt   Using \ or separating strings didn't work.


"May I know your good name” is a typically Indian way of honouring another person by asking their name using an adjective like sweet, good, beautiful, et cetera. Of course there won’t ever be any bad or sour name (unless we feel it such) when asking.   If this manner of asking someone’s name is incorrect or inappropriate, then how could I make it sound more polite and amicable without negotiating the basic principles of English?


Shutdown from terminal without entering password?

I have desktop edition of Ubuntu.  I like the Terminal so that that I prefer to shutdown my computer with the shutdown command.  However when I type shutdown now it prompts me to enter my password.Is there any way I can shutdown my computer using this command without entering my password?


How to split a file up into many smaller files and then reconstruct them?

I need to upload a file which is about a GB to an online server to get to a friend. Now there seems to be a problem with my internet connection because if I try to upload a file more than 20MB then it just stops uploading and won't start again for some reason.  So I would like an application or script(s) (there may be the need for two, one which makes the files, and one which reconstructs them) which can do the following:   Split the file up into smaller files, where the max size for each file can be set by the user so that this can be used for other cases Is able to reconstruct the file at the other end and verify integrity by checking its SHA512SUM   I would prefer it not to compress anything. I am running Ubuntu GNOME 16.04.1 with GNOME 3.20. Is there a way of doing this?


Can I award a bounty to the asker who asked it?

I sometimes feel the need to reward the asker for posting a very useful and thoughtful question. Bounties are rewarded for answers, and not for questions. I can only upvote the question once, but if I'm ready to spare rep, is there any way I can reward the asker?


Let $(a_n)$ be a non-zero real sequence with $\left (\frac{a_{n+1}}{a_n} \right)$ bounded. How might we prove that $$\liminf_{n\to\infty} \, \frac{|a_{n+1}|}{|a_n|} \leq \liminf_{n\to\infty} \, |a_n|^{\frac{1}{n}}$$ I've tried a number of approaches, including stuff with the AM-GM inequality, but haven't quite been able to get it out. Thanks for the help.


Interrupted upgrade from 15.10 to 16.04, Ubuntu boots into black screen

What happened  I was working on my laptop while it upgraded from 15.10 to 16.04 (which I admit was a mistake) when suddenly the Unity overlay disappeared and the only thing on screen was the Firefox browser window. I switched to a new terminal, logged in and tried to run sudo service lightdm restart but instead of restarting correctly, the screen started turning on and off repeatedly, which freaked me out, so I physically turned off the PC.  Long story short: I forced a shutdown halfway through the Ubuntu upgrade.  Ever since, any attempts of logging in normally have been met with a solid black screen and the idle whirring of the CPU fan.  What I have tried  I have tried the recovery mode boot up, but no luck (The log does greet "Welcome to Ubuntu 16.04 LTS!"). I tried out each option that seemed useful:   dpkg goes through the packages as advertised, but strangely enough it always locks up on some Braille package until I do Ctrl+C, at which moment it spouts some error messages and then I think throws me into the normal boot. failsafeX results in a similar situation to the normal boot: a black void. fsck says the single partition I have is a-ok. grub seems to get a bunch of stuff. Don't know if it searches locally or fetches from the internet. network didn't work I think.   I tried following  but couldn't do the sudo part because the filesystem was mounted as readonly. So I ran fsck which mounts as RW and tried again.   This time, after running apt-get autoremove it went through many packages (Setting up foobar (X.Y.ZubuntuN) ...), sometimes installing packages, which I assume is the usual behavior. One thing to note though is it kept getting stuck several times, so I had to Ctrl+C it out of processing the current package. It finally ended on "Processing was halted because there were too many errors.".  While  seems to mention some of the graphics problems I've been experiencing... I have Intel HD Graphics, not Nvidia. I'll keep looking into it.


I have a page which contains a script tag which pulls in a survey form from JotForm. Basically placing a  tag in the HTML pulls in content from the 3rd party, which is a form. The code pulled in is a full page ie: contains html element which contains an iframe.  The problem is that there is a class called form-all which has a width set at 690 which does not fit in our site, it's too wide so cuts off.  I need to know how I can remove this width on the form-all class from my html code?  The structure would be something like:  <html> <!-- My html element //-->  ...  ...     <html> <!-- html element pulled in from 3rd party code, everything within is 3rd party //-->      <iframe>         <div class='form-all'>          </div>      </iframe>    </html>  </html>   How do I remove the width on form-all by placing code in my code which I control?  Thanks.


What is the correct sentence: “Who are we?” or “Who we are?”

I searched the Internet to find which of the following is correct:        Who are we?   Who we are?      And I found that both are used. What is the correct sentence?


The ring $ℤ/nℤ$ is a field if and only if $n$ is prime

Let $n \in ℕ$. Show that the ring $ℤ/nℤ$ is a field if and only if $n$   is prime.   Let $n$ prime. I need to show that if $\bar{a} \neq 0$ then $∃\bar b: \bar{a} \cdot \bar{b} = \bar{1}$. Any hints for this ?  Suppose $ℤ/nℤ$ is a field. Therefore: for every $\bar{a} \neq 0$ $∃\bar b: \bar{a}\cdot \bar{b}=1$. How can I show that $n$ must be prime ?


communicating with another computer using a crossover cable

I have two identical Dell E5580 laptops running Xenial.    I'm trying to pass data from one to another in an efficient way.    Both are on the same wireless subnet, but I figure a cross-over cable would be faster.    However, I've not been able to establish any communication using either the wifi network or the cross-over cable.   I've tried pinging one computer from another, ssh'ing and scp'ing but cannot make any kind of contact by any of these means between the two computers.    It makes no difference whether they are connected by cross-over cable or not.      Could somebody please suggest what I might try?   Thanks  As per @Buck_Crockett's request I'm reporting what happens when I ping one machine from another.    The first machine's IP is 192.168.1.210, the second's is 192.168.1.211.  When I ping the second from the first, I see:  PING 192.168.1.210 (192.168.1.210) 56(84) bytes of data   but nothing more.     When I ping the first from the second I see   PING 192.168.1.211 (192.168.1.211) 56(84) bytes of data   but nothing more.


Format a number to always have a sign and decimal separator

I want to format any number (integer or real) to a string representation which always has a sign (positive or negative) and a decimal separator, but no trailing zeroes.  Some samples:  3.14 => +3.14 12.00 => +12. -78.4 => -78.4 -3.00 => -3.   Is it possible with one of the default ToString() implementations, or do I need write this myself?


Use an induction argument to prove that for any natural number $n$, the interval $(n,n+1)$ does not contain any natural number.    I don't know where I could go with an induction argument. I was thinking of proving that if $s\in (n,n+1)$, where $s$ is a natural number, then $s-n$ is a natural number which lies in $(0,1)$, which is impossible as all natural numbers are bounded below by $1$.   However, this assumes that natural numbers are closed under addition. Also, this does not use induction.   Any pointers for this question?


I've extracted strings I'm interested in from another file and now have a list like this:  StringA StringB StringA StringA StringB StringC StringB   How can I extract the number of occurrences each string has using common command-line tools?  I would like to end up with a list like this:  StringA 3 StringB 3 StringC 1


In Dune are specifics given as to what the "Suk Imperial conditioning" of Dr Yueh actually is?

I have read the first five Dune novels and after the first I do not recall any further mention of Imperial conditioning. In the novels written since Frank Herbert's death, were any further references or details given about what this process actually involved and why it was considered virtually impossible to remove?


how to open system apps using OS in python?

I wanted to open apps like calculator, camera, and other apps using the python OS module how can I use the os.startfile() function to open apps like this?


The sum of array problem. there is a difference in the answers of that of the output and the answer of calc

public class Main {  public static void main(String[] args) {     float sum = 0.0f;     int i;     float[] sumarray = {1.0f, 2.9f, 64.8f ,23.4f};     for(i = 0 ; i < sumarray.length ; i++) {         sum += sumarray[i];     }     System.out.println(sum); }   The output coming is:  92.100006  But if we manually add the elements of the array: it comes out to be 92.1  How is this possible... Please explain in detail I have just started learning java


Meaning of: "No man is an island, entire of itself"

No man is an Island, entire of itself   From an excerpt by Francis Bacon (1561-1626).   What does the line mean? Does it count as a proverb?


Why we use Map reference type but HashMap constructor like in example:    Map<String,String> map = new HashMap<String,String>();


In the commercial it showed a group of kids playing as their Amiibos, so I bought an Amiibo resembling a DLC character, however I found out that I couldn't play as the Amiibo. I can play with/against them, but not as them. Isn't there a way to play as my Amiibo?


Does registring to events saves a class from bieng garbage collected?

If the only thing that ClassA does is to subscribe to events from ClassB -which is a long living class- like this  static void Main() {    new A(B); }  class ClassA {   public ClassA(ClassB b)   {      // subscribe to events of ClassB   } }   Does this make ClassA garbage collected?


Can I define template variables for a block?

I thought that I could define my own variables in the build method of my custom block, but it does not work. Here's an example block definition:  /** ... Provides a 'Blubb' block ... @Block ...*/ class Blubb extends BlockBase {    /**    * {@inheritdoc}    */   public function build() {     return array(       '#output' => 'Blubb',       'output' => 'Blubb'     );   }  }   I render the block in with this twig template:  Output: "{{ output }}"   And find that the output varialbe is empty. The template displays just:  Output: ""   Does Drupal not want me to use varialbes in block templates?  Edit: I'm using Drupal 8.


I am trying to align my words with icon. I tried the methods from this site:     My code:

<%= link_to item.title, item , id: "font-colour" %>

<%=  if item.description.length > 70                     item.description[0..70].gsub(/\s\w+\s*$/, '...')                 else                      item.description                 end         %>

           <%= link_to complete_item_path(item), id: "font-colour", method: :patch do %>              <% end %>
         <%= link_to item_path(item), id: "font-colour", method: :delete do %>                      <%end%>


How to play in a LAN world with shared account

Me and my sister are using the same account and we really want to play together in a "LAN world". I have changed the display name, but I am still using her account and I have searched this set up on YouTube and Internet. People says that's it worked to them.    But when I join her LAN world it says "connection lost. you logged from another location". Please guys, I really need help!


Let $f:[-1,1]\rightarrow \mathbb{R}$ be continuous with $f(0)=0$ and continuously differentiable in $]-1,1[$. Suppose that  $$|f'(x)|\leq |f(x)|,\;\mbox{ for all }x\in]-1,1[.$$  Prove that $f(x)=0$ for all $x\in[-1,1]$.  My idea is take one point (arbitrary) $x_0>0$ in $]-1,1[$, then using mean value theorem, exist $y_0\in[0,x_0]$ such that   $$|f(y_0)|\geq|f'(y_0)|=\frac{|f(x_0)-f(0)|}{|x_0-0|} \mbox{ then }|f(x_0)|\leq x_0|f(y_0)|,$$  So if $f(y_0)=0$ implies $f(x_0)=0$ and we ended. But is $f(y_0)\neq0$ then I can follow and obtain a decreasing sequence but I not sure that converge to zero.  Thank you by some hints.


Say that I have this line of code:  Action<int> square = number => Console.WriteLine(number * number);   Though I understand that it is handy to create a method on the fly, if you only need to call the lamda expression once, does it gain any perfomance by doing so?  In addition, let's say I do something more with the value before the WriteLine:  Action<int> square = number =>   {     number += 10;     Console.WriteLine(number * number); };   I could just solve this very simple by adding 10 to number and then do number * number without the lambda expression. Can anyone give me a good example/situation when to use this expression?


Unable to answer protected question despite having enough reputation

I was reading  last night. When I got to the bottom, where the answer button usually is, I saw the following message in its place:     protected by Won't Jun 13 '11 at 16:28      Thank you for your interest in this question. Because it has attracted   low-quality answers, posting an answer now requires 10 reputation on   this site.      Would you like to answer one of these unanswered questions instead?   I wasn't planning on answering it, but it did make me curious as I have 101 rep on the site. Is this a bug, or is there something I am missing?


Where does the quadratic formula come from?

Everywhere I look, the $ax^2+bx+c$ portion of the quadratic formula is listed as given.   Does anyone know where this comes from?  Edit  How can we prove that (x+y)^2 = ax^2+bx+c?


Mean and variance of a Beta distribution with $\alpha \ge 1$ or $\beta \ge 1$?

What conditions must satisfy the mean and variance of a Beta distribution so that the parameters $\alpha,\beta$ are not both less than 1?


Cannot write to any path with filename "aux"

I'm perplexed to receive an exception when trying to write to a path that has the filename "aux". Other filenames in the same and in different directories work perfectly and I never had this kind of trouble before.  To give you an idea, consider this test code:  Directory.CreateDirectory ("D:\\asdf"); // OK File.WriteAllText ("D:\\asdf\\aux_", ""); // OK try {     File.WriteAllText ("D:\\asdf\\aux.txt", ""); // fails } catch (ArgumentException ex) {     Console.WriteLine (ex); } try {     File.WriteAllText ("D:\\asdf\\aux", ""); // fails } catch (ArgumentException ex) {     Console.WriteLine (ex); } Console.WriteLine (string.Join ("\n", Directory.EnumerateFiles ("D:\\asdf")));   The final line prints that one file was created:  D:\asdf\aux_   Two equal exceptions are thrown:  System.ArgumentException: FileStream will not open Win32 devices such as disk partitions and tape drives. Avoid use of "\\.\" in the path.    at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)    at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)    at System.IO.StreamWriter.CreateFile(String path, Boolean append, Boolean checkHost)    at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize, Boolean checkHost)    at System.IO.File.InternalWriteAllText(String path, String contents, Encoding encoding, Boolean checkHost)    at Program.Main(String[] args) in C:\...\Program.cs:line 24   Replacing \\ with / did not change anything (and is nonstandard on Windows to my knowledge).  I'm aware aux had a special meaning a long time ago, but considering it only occurs in the filename (with or without an extension) in a subdirectory, it is not supposed to be related to that.


The Question: Determine all groups G such that $ \{ H=(g,g^2): g \in G \}$  is a subgroup of $ G\times G$   I am confused what the question is asking for. I assume there is some small finite number of groups that satisfy this property i.e groups with 4 or less elements.  Things I know:   The subgroup test states that if H is a subgroup then it must contain the identity element of G(say $e$) but since $e^2=e$ then by the criterion of H every cartesian product $G \times G$ contains $(e,e^2)$ Right? If $(g,g^2)$,$(h,h^2)$ $\in$ H then $(gh,(gh)^2)$ $\in$ H. Not sure how to proceed with this. And if $(g,g^2)$ $\in$ H then $(g^{-1},(g^2)^{-1})$ $\in$ H.   Any hints/clarifications would be appreciated.


This guy  says space is not empty..  It explains how space inside nucleus is Full of fields. Does it mean to say gluons are present everywhere, even outside nucleus?  Consider a region without any dust or photon.


Two contradictory ways to calculate $(e^{2\pi i})^i$?

As we know:  $$e^{i2π} = 1$$  so here's the first way that we can calculate the expression in the title:  $$(e^{i2π})^i = 1^i = 1$$  however, if before we simplify $e^{i2π}$ to $1$ we multiply the powers which we're allowed to do, we get a different result: $$(e^{i2π})^i = e^{ii2π} = e^{-2π} ≈ 0.18 $$  What's the explanation to this?


Waking closed lid macbooks using wireless

We have carts of MacBooks and MacBook Pros that students use and close the lid and put them back in cart when they are done.  They use wireless networking and don't have USB or displays connected.  I am wondering if there is any way we can wake the MacBook remotely using wireless (WoWLAN?).  We don't want to have the setting where MacBook doesn't sleep when lid is closed.  Is there any way we can wake them on and have them connect to our wireless when their lid is closed?  The remote management software we use couldn't work when they are in the cart overnight.


Automatic vertical alignment of a single float on a dedicated page

In my large latex document, I have some figures which take a considerable height of the page (80-95%). Latex puts each of these figures alone on a page, aligned on top. I would like to have each figure aligned vertically to center. Is that possible, and if so, how? :)


Why is gravitational potential energy negative, and what does that mean?

I usually think of gravitational potential energy as representing just what it sounds like:  the energy that we could potentially gain, using gravity.  However, the equation for it (derived by integrating Newton's law of gravitational force)...  $$PE_1 = -\frac{GMm}{r}$$  ..has me thrown for a loop, especially after .   If potential energy really meant what I thought it did, then it would always have to be non-negative... but this equation is always negative.  So what does "negative potential energy" mean!? If $KE + PE$ is always a constant, but PE is not only negative but becomes more negative as the particles attract, doesn't that mean the kinetic energy will become arbitrarily large?  Shouldn't this mean all particles increase to infinite KE before a collision? If we are near the surface of the earth, we can estimate PE as $$PE_2 = mgh$$ by treating Earth as a flat gravitational plane.  However, $h$ in this equation plays exactly the same role as $r$ in the first equation, doesn't it?   So why is $PE_1$ negative while $PE_2$ is positive?  Why does one increase with $h$ while the other increases inversely with $r$? Do they both represent the same "form" of energy?  Since $PE_2$ is just an approximation of $PE_1$, we should get nearly the same answer using either equation, if we were near Earth's surface and knew our distance to its center-of-mass.  However, the two equations give completely different answers!  What gives!?    Can anyone help clear up my confusion?


Is there an equivalent of jsfiddle for LaTeX?

Given that it's very useful to generate minimal reproducible examples when asking for help, it seems like a online LaTeX sandbox would be beneficial.  For those unaware,  and similar sites allow users to mock-up minimal reproducible examples of javascript code that is useful for debugging on sites like StackOverflow.


How did I change color scheme of command prompt?

Few years ago, I changed color scheme of command prompt. Now, I have forgotten how exactly I did this.   It's permanent. So, COLOR command is out of question. It's intact no matter from where I launch cmd. So, changing color from shortcut properties is out of question because I get the color scheme even when I launch cmd from Run or from original location. It doesn't let me override it by shortcut properties. And, this is the problem. I create a cmd shortcut and change its color scheme from properties. But, this isn't reflected even after reboot.   So, the only option I have left: Use the same method I used few years ago. How did I change cmd color?


Likelihood Ratio Test for Exponential Distribution with a Limited Parameter Space

Suppose that we are given an exponential distribution model with a pdf $f(x,\theta) = \theta^{-1}\exp(-x/\theta)$ with an iid sample $X_1, ..., X_n$, and we would like to test hypothesis $H_0 : \theta = 1$ and $H_1 : \theta > 1$. We shall investigate the limiting distribution of the likelihood test statistic $2n(l_n (\hat\theta) - l_n (1))$ where $l_n(\theta)$ is the log-likelihood function $\sum \log f(x,\theta$) and $\hat \theta$ is the MLE of $\theta$ in the parameter space. We shall investigate the asymptotic behavior of the test statistic.  Note that the parameter space is not the whole real line, so it does not create an open neighborhood around $H_0: \theta = 1$). Here is what I have discovered so far: we know that the MLE of exponential distribution is $\overline X_n$, the sample mean if we are allowed to take the whole parameter space. Using a similar argument, if the sample mean is greater than one, the same argument works. However, if it is smaller than or equal to one, the MLE is 1 (we can show it using a monotonicity argument). Hence, the test statistic becomes  $\begin{cases} 2n(\ln \overline X_n - (\overline X_n - 1)) && \text{if $\overline X_n > 1$} \\ 0 && \text{if $\overline X_n \leq 1$} \end{cases}$  we can use then a taylor expansion for the first case to show that it is indeed approximately equal to $n(\overline X_n - 1)^2$ that has a $\chi^2$-distribution asymptotically. However, how can we incorporate the case where $\overline X_n \leq 1$? If $H_1$ were $\theta \neq 1$ it would have been safe and sound. I guess the test becomes $\sum \overline X_n > k$ for some $k$, due to the zero part for the second case?


There is a train with 'N' cabins, a monkey is present in one of the cabins initially (which is unknown). Your goal is to catch the monkey, given you can open a cabin every minute and monkey would jump to either the immediate left or right cabin in that time. What is the strategy you use to catch the monkey surely?  N=1 => Trivial case  N=2,3 =>  Open the first cabin twice in case of N=2 and middle cabin twice when N=3. We can surely catch him in at most 2 trials.  First non-trivial case is when N=4 where monkey can just move between any two cabins and hence opening any cabin repeatedly doesn't guarantee that we can catch him, is it possible to find a strategy that works for all N?


Should questions by new users have to be approved before becoming generally visible?

Lately I've noticed that in some groups the quality of the questions have dropped significantly or are in general pretty low. A lot of these questions are closed, and the amount of closed questions are becoming rather annoying. Most of these questions have one thing in common; they are asked by new users that obviously have not read the available information on asking questions. Take a look at the facebook group for instance where in this specific moment of time 20% of the 50 most recent questions are marked as closed, and where all except 1 were asked by new users with a reputation of 1.  I'd like to see some kind of an approval system for questions asked by new users, or even for experienced users that have never asked a question before. A system where the first 3 questions or so have to be reviewed and approved by more experienced users before being published on the site. Once a user has at least 3 approved questions and an approval rating of at least 75%, the user's questions will no longer have to go through the approval system.  Is anything like this planned for the future?


Fixing sharp edges between GeoTIFF tiles?

I've downloaded a couple SRTM DEMS from  and when I load some of them into QGIS, there is a noticeable edge between 2 of the tiles (see image).     Why does it happen? These are both from the same datasource, why don't they match up? Is there a good way to correct for this in QGIS?


Difference between measurement, state and system in quantum mechanics

This question refers to the following point made in Susskind's book Quantum Mechanics- The Theoretical Minimum:     In the classical world, the relationship between the state of a system and the result of a measurement on that system is very straightforward. In fact, it’s trivial. The labels that describe a state (the position and momentum of a particle, for example) are the same labels that characterize measurements of that state. To put it another way, one can perform an experiment to determine the state of a system. In the quantum world, this is not true. States and measurements are two different things, and the relationship between them is subtle and nonintuitive.   I'm not sure I understand the last line since it seems to imply that states and measurements are not "different things" in the classical realm. Are both of them the "same" in the sense that they both refer to a point in the system's phase space?  Of course, any particular state would uniquely specify a measurement in classical mechanics and conversely a set of measurements would uniquely specify a state. Such a correspondence doesn't exist in quantum mechanics. So is that what the author means by "states and measurements are two different things"?  Finally, what does the author mean by "labels"? Do they simply refer to the values of the various degrees of freedom of the system?  Now, coming to the next part:     Attached to the electron is an extra degree of freedom called its spin. [...] We can and will abstract the idea of a spin, and forget that it is attached to an electron. The quantum spin is a system that can be studied in its own right.   Why is the spin being called a "system"? Isn't a system supposed to be something physical instead of a mathematical abstraction? (And it's defined as a degree of freedom in the first place- from what I understand, a degree of freedom is meant to characterize a physical system.)


Prove that $\varphi(p^k)=p^k-p^{k-1}$ for prime $p$

Let $p$ be a positive prime, and $k\in\mathbb{N}$. Prove that $\varphi(p^k)=p^k-p^{k-1}$ (Euler's totient)  I suppose maybe induction should be involved. But I'm having difficulty relating $p^k$'s prime factors to $p^{k-1}$ prime factors exactly. I suppose that for example, $p^2$'s factors are those that are multiples of $p$'s factors. But how do I know that the numbers bigger than $p$ that are factors of $p^2$ add with the factors of $p$ to equal $p$? Sorry, does that even make sense?


Role of Authoritative NS record in bind9 compared with Non-Authoritative NS record in Registrar

Whenever we register a new domain name from a Registrar, we need to tell them what is the nameserver by providing them the dns server IP address.   But in the same time in the zone file of our dns server (I will use bind9 in this case), we also add the RR like the following:  abc.net.    IN NS ns1.abc.net. abc.net.    IN NS ns2.abc.net.   which is the authoritative record.  1)So what is the purpose of having the authoritative record of NS in the zone file of abc.net, since when one trying to resolve let say www.abc.net, the TLD .net already tell us they are in ns1.abc.net and ns2.abc.net ?   2)Since from the delegation concept point of view, NS record only need to be stored in the parent of the zone, meaning root server NS tell us NS of .net, .net server NS tell us the NS of .abc.net and .abc.net NS resolve the dns query. so in order to resolve www.abc.net, there are only 3 set of NS IP address we need to know:   root server NS that tell us where is .net, .org, .uk, .it...etc. root server NS IP is store in bind9 named.ca .net NS that tell us where is .abc.net, .xyz.net, ...etc. .net NS IP is stored in root server NS record. .abc.net NS that tell us where is www.abc.net, mail.abc.net,...etc. .abc.net NS IP is stored in .net NS record.  so since we don't have any www.subdomain.abc.net, we shouldn't need to store any NS record for .subdomain.abc.net, isn't it ?   3)What will happen if I don't put the NS record of abc.net in my abc.net zone file ?   4)What if I have NS record in my zone file but not in the Registrar? which one will be the resolver take ?  There are a detail , but I still don't understand the meaning behind it.


Any way to connect 3 external displays to a 2018 Retina MacBook Air?

Just wondering if there's any docking solution that provides the possibility to connect to 3 external displays to the MacBook Air 2018, or if we're hardware limited by the iGPU here.


What is "about://(null) It's working!!!" on my iPad?

Screenshot today. It popped up about six times in a row.


UTM to WGS84 in QGIS 3.18 circle not round

I am using QGIS 3.18. I have a GeoJSON file with circles in UTM CRS. I exported it to WGS84 and my circles became not round, more like an ellipse. What is the problem?


Expected number of runs in a sequence of coin flips

A coin with heads probability $p$ is flipped $n$ times. A "run" is a maximal sequence of consecutive flips that are all the same. For example, the sequence HTHHHTTH with $n=8$ has five runs, namely H, T, HHH, TT,H. Show that the expected number of runs is  $$1+2(n-1)p(1-p).$$  I have tried to use some generating function on this but calculus got pretty messy and didn't work.


Evaluate command stored in Environment variable

A bash script I have limited or no ability to modify is using an environment variable like:  "${SERVER_ADDRESS}"   The actual SERVER_ADDRESS value can only be determined dynamically at runtime so I would like to set SERVER_ADDRESS to a curl command that looks up the IP. Something like:  SERVER_ADDRESS='curl -s http://lookup.api.com'   What makes this more complicated is that the actual lookup will only return a part of the necessary address, so what I really need is some kind of concatenation:  SERVER_ADDRESS='$(curl -s http://lookup.api.com).restofaddress.com'   This will mean that the curl command will be run and evaluated when the string is assigned to the environment variable, however, I need that evaluation to take place in the script when it's run.  I have tried every possible way of formatting the text in that environment variable so that the script with just "${SERVER_ADDRESS}" will end up with the correct value, but I'm stumped. Perhaps it's simply not possible without adding a little more sophistication to the receiving script.


Does geographic location matter where a website is hosted?

I'm starting a couple different websites, 1 is completely personal, and 1 is only going to be for a small group of people across the USA. I found a web hosting company that I like, but their only available server is in Europe.  My sites don't need to be indexed by any search engine.  I found  but not it didn't really answer my question. Would I be better finding a host that I didn't like as well in the USA, or using one that I liked in Europe?


Commutator of two normal subgroups with trivial intersections

So I tried looking everywhere but I'm really lost with this proof. I need to to show that:  Let $H$, $K$ be normal subgroups of a group $G$, satisfying $H\cap K = \{e\}$. Let $h\in H$, $k \in K$. (a) Prove that the commutator $w = hkh^{-1}k^{−1}$ satisfies $w \in H$ and $w \in K$. Then conclude that $w = e$ (b) Prove that $hk = kh$, for all $h \in H$, $k \in K$.


In an HTML table, the cellpadding and cellspacing can be set like this:  <table cellspacing="1" cellpadding="1">   How can the same be accomplished using CSS?


Truncated trivariate normal - conditional expectation

I am working on a paper in which I'd need to use the two following conditional expectations:   $E(X_{1}|a \leq X_{2} \leq b)$ $E(X_{1}|a \leq X_{2} \leq b, a \leq X_{3} \leq b)$   where $X_{1}, X_{2}, X_{3}$ come from a trivariate normal distribution and $a$ and $b$ are some real numbers ($X_{2}$ and $X_{3}$ have the same bounds).   I have checked several textbooks and references on the web, including those mentioned in previous related posts (e.g., Tallis 1961), but did not find anything relevant. Could anyone help me derive these conditional expectations, or else point me to any good reference(s) I may have missed?


What's the meaning of "would have been"?

"Who would've thought that working with you would have been a silver lining?" Actually, I don't quite understand the usage of "would have been"? What's the difference if I replace "would have been" with "was"?


I need to send a link to a CloudPage through SMS with an query param (www.example.com?id=XXXX), which the CloudPage will use to get value from a Data Extension and pre-fill some data to Contacts and ask for others.  This param value is different for each contact and the actual URL is too big, so I want to use Bitly to short this link. I can use AMPScript to create a , but this example is using V3 API, since it's going to be deactivated, I'm making it in V4.    The problem now it's I need to make an request through Bit.ly API with an JSON in request body, inside SMS message.  %%[   var @testID, @cloudpage, @link, @leadId, @bitlyPage, @contentType, @content,       @bitlyToken, @additionalHeaderName, @additionalHeaderValue, @output, @respheader   set @testID = 'XXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX'   set @bitlyToken = 'myToken'   set @bitlyPage = 'https://api-ssl.bitly.com/v4/bitlinks'   set @contentType = 'application/json'   set @additionalHeaderName = 'Authorization'   set @additionalHeaderValue = concat('Bearer ', @bitlyToken)     set @cloudpage = CloudPagesURL(1591,'id',@testID)   set @link = URLEncode(@cloudpage)    set @content = Stringfy({"long_url": @link}) ]%%    %%=HTTPPost2(@bitlyPage, @contentType, @content, true, @output,         @respheader, @additionalHeaderName, @additionalHeaderValue)=%%    Output: %%=v(@output)=%%   Header: %%=v(@respheader)=%%   When I try to run this in Preview and test, I get the following error:      There is an error in your email. Please contact your customer service representative. Error 1: Script SET Statement InvalidAn error occurred when attempting to resolve a script expression. See inner exception for detail. Script Expression: Stringfy MemberID: nnnnnnn JobID: 0 An unrecognized expression appears in a script block.   If I try without Stringfy, I get this error:     Error 1: Script SET Statement InvalidAn error occurred when attempting to resolve a script expression. See inner exception for detail.   How can I send this JSON data in body? or there is another way to make this Bitly link?


Logistic regression demonstration with one preditor

I got an assignment from which nothing is clear for me.  I have the following logistic regression formula:    and what I am struggling in understanding how to do is to the to prove that this equation is true for binary logistic regression with one continuous predictor.  What should I do? Should I plug inside some values and solve it? Moreover, I don't understand what does pie stands for, what does it denotate?


Are there any large private companies in the Star Trek universe?

We know there are small companies on earth like Picard's vineyard and Sisko's (Ben's dad) restaurant, but are there any large private companies that operate within Federation space like say a Procter and Gamble, FedEx, or Boeing size companies?  Private company means private company, not publicly traded stocks, etc. This question has nothing to do with the economic or monitary system or means of exchange. This has to do with any large private company that provides goods or services to others.


Is "have the same cardinality" a equivalence relation?

A relation is a subset of the Cartesian product of two sets, if "have the same cardinality", denoted as $R$, is a relation, then there must exist set $A, B$, such that $R \subset A \times B$. What are $A, B$ then? They cannot be "set of all sets", because there is no such set according to axiom of regularity (ZFC set theory).  Did I miss something?  Thanks.


I'm trying to prove the following:     Let $A\in \mathbb{C}^{n\times n}$ be a matrix with null trace; then $A$ is similar to a matrix $B$ such that $B_{jj}=0$ (i.e. it has zeroes on its diagonal).   Any ideas? Induction on $n$ sounded feasible but I wasn't able to put together anything.


What should be the order of the authors in a paper?

Should the first author be the one that worked the most? And then by the amount of work order (descending), but the last one the most-senior researcher?  Are there other ways? Which ones?  Does it vary from field to field? I've heard some areas or even some conferences always ask for alphabetical order. But then there are evaluation committees that count for how many first-author or last-author publications does a researcher have. Can someone provide exhaustive insight into how this is done across many fields?


I'm using an LM7805 regulator in my circuit to supply power for my microcontroller (Attiny 13) and another module.  I have to decrease 5V voltage to 3.3V for the microcontroller so I use two resistors (1k & 2k) to decrease the voltage from 5V to 3.3V but sometimes the microcontroller does not work well (noise occures in GPIO) I measure voltage between VCC and GND of the micro , It's about 3.0V It means I have a 0.3V voltage drop by the microcontroller  I want to know how can I calculate the maximum resistors value (minumum current) to supply the micro ? Of course we have a voltage drop with any value of resistors, but which paramater of the microcontroller tell us how much voltage drop is acceptable for it ? Is there any standard parameter for It ?


Database DML method executes twice in any record has been failed

I've been trying to leverage custom roll up functionality and found that Database methods is perfoming dml twice. First time it's inserting/updating all records and second time only ones that can be processed. Is it correct? I'm afraid that I'm missing important part in documentation     The optional allOrNone parameter specifies whether the operation allows partial success. If you specify false for this parameter and a record fails, the remainder of the DML operation can still succeed. This method returns a result object that can be used to verify which records succeeded, which failed, and why.   Since I've placed static boolean to check if trigger has been run, I'm loosing data.  If we create test based on the following    @isTest public class Test_accountTrigger {     @isTest     static void Test_saveResult() {         Account[] accts = new List<Account>{             new Account(Name='Account1'),             new Account()};         Database.SaveResult[] srList = Database.insert(accts, false);     } }   Given trigger will be executed twice  trigger accountTrigger on Account (before insert) {     system.debug('accountTrigger.sise: ' + trigger.new.size()); }   Debug  22:25:31.1 (362723328)|USER_DEBUG|[2]|DEBUG|accountTrigger.sise: 2 22:25:31.1 (498071498)|USER_DEBUG|[2]|DEBUG|accountTrigger.sise: 1   I'm trying to update multiple child records within ETL and inside Salesforce update correspondent Parent records with flag allOrNone set to false. If any of those fails I'm adding error to child record. Since I have static boolean check, my first attempt of updating parent records is reverted and second is never happened.


Weekend Celebrations or Weekend's Celebrations

Imagine a wedding invitation which ends with the following sentence:     To round off the weekend celebrations, please join us for lunch.   Would it be more, less, or equally correct to say:     To round off the weekend's celebrations, please join us for lunch.


Possible to get type of an aliased type in c#?

Type.GetType("System.String")   Is there a lookup for the aliases available somewhere?  Type.GetType("string")   returns null.


Every compact subset of Baire space $\omega^\omega$ has empty interior.

Here is the well-known proposition, I assumed that $K$ is compact subset of $\omega^\omega$ and it contains an open Set $N_s$, so $N_s$ is clopen and thus it is compact. If I can show $N_s$ can not be covered by a finite subcover, the solution is done, but I don’t know how to start, can you please help me?


what tricks are there to slice this sentence into my desired format?

How do I slice this   'Python is an interesting and useful language for numerical computing!'    to get   'Pto sa neetn n sfllnug o ueia optn!?    in Python?


How to prove that a sphere has the minimum gravitational potential energy for a given volume of uniformly dense material?

Planets are spherical (roughly) in shape because a spherical configuration gives the minimum gravitational potential energy.   How does one prove that the sphere is the shape that gives minimum gravitational potential energy for a volume of uniformly dense material?


Suppose that $ f $ is entire and that for each $ z $, either $ |f(z)| \leq 1 $ or $ |f^\prime (z) |\leq 1 $. Prove that $ f $ is a linear polynomial.

My question is in the title. I'm a little lost in how to solve this problem. There is a hint associated with the problem that states the following:   Use a line integral to show that $ |f(z)| \leq A + |z| $ where A = $\max\{1, |f(0)|\}$  Thanks for the help.


I've downloaded ubuntu-12.04.1-desktop-amd64.iso via Chrome. Once that was done, I wanted to burn it onto a CD but I can't find the .iso file.   When I opened the Downloads folder, the .iso extension is not there anymore, and it opens with WinRAR for unzipping. I tried unzipping and searching for any ISO files but no luck.   I'm trying to add Ubuntu onto VirtualBox on Windows 7 host OS. Please help.


I hear these words thrown around a lot but I don't understand what they mean in . Somebody told me to look it up in the standard but in the  there's no mention of "stack" or "heap", only stack unwinding which doesn't say what the stack is.   Do these concepts exist in C++?


WSOD with error when login as administration

I was working on website and suddenly noticed that a particular page had a error message and lost a lot of css styles.  When I went back to the back-end I saw a white page with following message and nothing else (no administration menu, no content overview, ...  Error message  Additional uncaught exception thrown while handling exception.  Original  PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away: SELECT s.uid, c.updated FROM {ctools_object_cache} c INNER JOIN {sessions} s ON c.sid = s.sid WHERE s.sid &lt;&gt; :session_id AND c.obj = :obj AND c.name = :name ORDER BY c.updated ASC; Array ( [:session_id] =&gt; HWv-9jPhNMHqjMdxRprJh-YmmBQc2y0jWXrbR_68TeA [:obj] =&gt; view [:name] =&gt; article_4pc ) in ctools_object_cache_test() (line 145 of /home/admin/domains/peace-in-the-city.be/public_html/sites/all/modules/ctools/includes/object-cache.inc).   Additional  PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away: INSERT INTO {watchdog} (uid, type, message, variables, severity, link, location, referer, hostname, timestamp) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3, :db_insert_placeholder_4, :db_insert_placeholder_5, :db_insert_placeholder_6, :db_insert_placeholder_7, :db_insert_placeholder_8, :db_insert_placeholder_9); Array ( [:db_insert_placeholder_0] =&gt; 1 [:db_insert_placeholder_1] =&gt; php [:db_insert_placeholder_2] =&gt; %type: !message in %function (line %line of %file). [:db_insert_placeholder_3] =&gt; a:6:{s:5:&quot;%type&quot;;s:12:&quot;PDOException&quot;;s:8:&quot;!message&quot;;s:382:&quot;SQLSTATE[HY000]: General error: 2006 MySQL server has gone away: SELECT s.uid, c.updated FROM {ctools_object_cache} c INNER JOIN {sessions} s ON c.sid = s.sid WHERE s.sid &amp;lt;&amp;gt; :session_id AND c.obj = :obj AND c.name = :name ORDER BY c.updated ASC; Array ( [:session_id] =&amp;gt; HWv-9jPhNMHqjMdxRprJh-YmmBQc2y0jWXrbR_68TeA [:obj] =&amp;gt; view [:name] =&amp;gt; article_4pc ) &quot;;s:9:&quot;%function&quot;;s:26:&quot;ctools_object_cache_test()&quot;;s:5:&quot;%file&quot;;s:103:&quot;/home/admin/domains/peace-in-the-city.be/public_html/sites/all/modules/ctools/includes/object-cache.inc&quot;;s:5:&quot;%line&quot;;i:145;s:14:&quot;severity_level&quot;;i:3;} [:db_insert_placeholder_4] =&gt; 3 [:db_insert_placeholder_5] =&gt; [:db_insert_placeholder_6] =&gt; http://peace-in-the-city.be/admin [:db_insert_placeholder_7] =&gt; [:db_insert_placeholder_8] =&gt; 178.118.99.54 [:db_insert_placeholder_9] =&gt; 1426611072 ) in dblog_watchdog() (line 160 of /home/admin/domains/peace-in-the-city.be/public_html/modules/dblog/dblog.module).   Uncaught exception thrown in session handler.  PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away: SELECT 1 AS expression FROM {sessions} sessions WHERE ( (sid = :db_condition_placeholder_0) AND (ssid = :db_condition_placeholder_1) ); Array ( [:db_condition_placeholder_0] =&gt; HWv-9jPhNMHqjMdxRprJh-YmmBQc2y0jWXrbR_68TeA [:db_condition_placeholder_1] =&gt; ) in _drupal_session_write() (line 209 of /home/admin/domains/peace-in-the-city.be/public_html/includes/session.inc).     I was able to login as another users without any problems. I flush caches and run cron and this have not solve my issue.  How can I troubleshoot this problem ?  You can find the .


User input a number such as 1234569775 of 10 digit. may on of the digit has a Value of X and this mean its equal to number 10  SO i write my code       Scanner in=new Scanner(System.in);     String a=in.next();     String arr[]=new String[10];     for (int i=0;i<arr.length;i++)     {         arr[i]=String.valueOf(a.charAt(i));     }     for (int i=0;i<arr.length;i++)     {         if (arr[i]=="X")         {             arr[i]="10";         }     }     System.out.println(Arrays.deepToString(arr)); }   but its the value of X does not change and I try to make a new array and does not make any change too last thing i want to change this String array all value in it to Integer so I can make any Mathematical operation on them So I want   Change value of X to 10 Change the array values to Integer   How can I do that in Java?


How can I change which question the current question is a duplicate of?

I would imagine this is a fairly common situation, but I haven't found it discussed:   I vote to close a question as a duplicate of a specific other question. The asker edits the question so that it's no longer a duplicate of the question I chose. I retract my vote. The edited question is a duplicate of a different question. I can't vote to close because I already voted and retracted.   If I know right away that the edited question is a duplicate of a different question, how can I switch the question that it's a duplicate of without retracting my vote?  There should be a way to this because otherwise I have to keep my vote for a question that the current question is not a duplicate of, or I have to retract my vote and lose the ability to vote that the question really is a duplicate (of some other question).   Is there a way to do this, and if not can we create a way to do it?  Example from today:  I voted to close  on Mi Yodeya as a duplicate. The question was then edited and I retracted my close vote. In the  (I can't guarantee how long it will still be there) I pointed out that it might be a duplicate of a different question, but I was unable to cast a close vote.


What happens during the interaction of electromagnetic forces when two objects touch each other?

What does exactly happen during the interaction of the electromagnetic forces when two objects touch each other?


Google is telling me no but most answers are "don't disable tabstops" or telling end users to use the tabindex property, so figured I'd ask... Being able to disable tabstops with CSS would really simplify a solution I'm working on.  Any nifty tricks out there?  I don't want to remove anything from the document flow - just obscure them from the keyboard, as they're already obscured from mouse-interactions (specifically I'm working on our modal dialogs).  They may or may not be visible in the background. I have a JS solution already - just seeing if there's a pure CSS way to do it. Clarifications: *tabindex -1 is what the existing JS solution is doing.  Just seeing if there's a way to do this via CSS, as CSS solutions are always preferable when possible. *It's an accessibility improvement to remove obscured items from the tabindex - like when you open the save as... dialog in word, and it keeps tabs from wandering across all the other menus, keeping you in what you specifically opened.  The modals are to facilitate the page's use, not something like an unprompted ad.


I have written a simple arithmetic logic in both C and JAVA. But C takes nearly 23.4s whereas JAVA takes around 4s to finish executing. This question is not based on how I calculate time which I suppose is already mentioned in the code. This is based on the execution.  C code is as follows.  #include<stdio.h> #include<time.h>  main() {     clock_t begin = clock();     long i, temp;     for(i = 0; i<10000000000; i++)         temp = i * 5;      printf("temp : %ld\n", temp);      clock_t end = clock();      printf("time : %lf\n", (double) (end - begin) / CLOCKS_PER_SEC); }   The output for C is   temp : 49999999995 time : 23.477688   JAVA code is as follows  public class Test {     public static void main(String[] args) {         long startTime = System.currentTimeMillis();         long num = 5, temp = 0;         for(long i = 0; i < 10000000000L; i++)             temp = num * i;          System.out.println(temp);         long endTime   = System.currentTimeMillis();         long totalTime = endTime - startTime;         System.out.println("Execution time : " + totalTime);     } }   The output for JAVA is   49999999995 Execution time : 4194   Am I missing something to interpret JAVA is more efficient than C


"either" or "neither" after "I don't like..."

Consider this fill-in-the-blank question:      I don't like _______ of the films. Both of them are boring.   Will the correct choice will be either OR neither? Why? I think the correct answer will be "either" but I am not sure.


Poor Dynamic Programming Implementation or HashMap Slow?

I've got two Fibonacci methods I'm testing out. Both should be linear. Either I don't understand memoization or HashMap lookups are slower than I thought.   I understand that the recursive function shouldn't be sped up a lot by the addition of DP, but since it's static it only needs to compute once (never falls out of scope). After the first execution, it retrieves the answer from the HashMap.   I'm doing this in preparation for implementing the O(log n) fibonacci function and benchmarking, but got detoured slightly when I saw this. (Even addition memoization to the iterative approach slows it down).   Please enlighten me, I'm feeling quite stupid at the moment.   Iterative Approach:  public static int linearIterativeFib(int x) {     if (x <= 2) {         return 1;     } else {         int prev = 0;         int result = 1;         for (int i = 2; i <= x; i++) {             int temp = result;             result += prev;             prev = temp;         }         return result;     }        }   Recursive Approach:  static Map<Integer, Integer> memo = new HashMap<Integer, Integer>();  public static int linearRecursiveFib(int x) {     if (x <= 2) {         return 1;     } else if (memo.containsKey(x)) {         return memo.get(x);     } else {         int result = linearRecursiveFib(x - 1)                  + linearRecursiveFib(x - 2);         memo.put(x, result);         return result;     } }   And a unit test:  @Test public void testSpeed() {     int input = 35;     long start = System.currentTimeMillis();     for (int i = 0; i < 10000000; i++) {         fib.linearIterativeFib(input);     }     System.out.println("Iterative approach took "              + (System.currentTimeMillis() - start) + "ms");      start = System.currentTimeMillis();     for (int i = 0; i < 10000000; i++) {         fib.linearRecursiveFib(input);     }     System.out.println("Recursive approach took "              + (System.currentTimeMillis() - start) + "ms"); }   Returns:  Iterative approach took 6ms Recursive approach took 132ms


How can I get my TripIt calendar to show up on Google Calendar?

I want to see my upcoming TripIt travel plans on my Google Calendar.  I thought I would just be able to subscribe to my TripIt ical feed from GCal, but it doesn't seem to work.  I got my ical feed from TripIt; it looks something like this:  webcal://www.tripit.com/feed/ical/private/**obscured private identifier**/tripit.ics   I then tried pasting that link into the 'Add By URL' option to add an external calendar to my Google Calendar.  No error is displayed, but no events appear on my calendar either.  I then tried changing webcal:// in the link to my TripIt feed to http:// but I got the same results.  Has anyone else successfully done this?  Am I missing something basic here?


I am studying statistics and I am wondering when it comes to standard error or a sampling if the calculation changes when there are weights added.   I have a weighted mean:  $$\mu_{w} = \dfrac{\sum_{i=1}^Nw_ix_i}{\sum_{i=1}^Nw_i}$$ and a weighted variance calculated by:  $$s^2_{w}=\dfrac{\sum_{i=1}^Nw_i}{(\sum_{i=1}^Nw_i)^2-\sum_{i=1}^Nw_i^2}\cdot \sum_{i=1}^N(x_i-\mu)^2$$  is the sampling error still calculated as  $$\text{SE}=\sqrt{\dfrac{s^2_{w}}{n}}$$


How to determine if refrigerated unopened cocktail sauce is still good?

I found two unopened bottles of cocktail sauce in the back of the fridge. I have no idea how old they are. One is Heinz "original". The label says "Best if used by date on cap", but there's nothing on the cap. The other one is some generic brand in a very similar bottle, with "Best by 4 12 20" on the cap. Is there a way of figuring out how old is the Heinz one? Is the other one still ok, even if it's not "best" any more?


In the Java Programming when we pass the all arguments from the varargs then how can i dispaly that argument value.. For example i saw a program something like this :  class var{    static void dis (int...num) {       System.out.println ("Number of Arguments = " + num.length);       for (int x : num)       System.out.println(x + " ");    }     public static void main (String args[]) {       dis();       dis(1, 2, 4, 6, 8, 10);       dis(12, 14, 16, 18, 20);    }     }   In the above program what action is performing by for(int x : num) .


How can you prove $(P\rightarrow Q)\lor(Q \rightarrow P)$ using natural deduction?

I am a Physics major interested in logic, but I cannot seem to find how to put the rules together for a proof. I am reading a book that uses a tree-style!


Abstract class with all concrete methods

Are there some practical programming situations for someone to declare a class abstract when all the methods in it are concrete?


I am following a Coursera course called "Introduction to Mathematical Thinking" by Keith Devlin. There is a lecture in the course by the name of Implication. In that video, while deriving the truth table for =>, few things were unclear to me.  Let's just say a $\Rightarrow$ b. If speaking of genuine implication, studying mathematical thinking implies my math improves. So, we are assuming already that "Studying mathematical thinking" = True. And by definition, "My math improves" = True. However, I take the condition where "My math improves" = False, makes the whole statement false. So, we have (T,T)=T; (T,F)=F. Now, in the lecture, what they do is take a condition a $\nRightarrow$ b. In the next line, they state an obvious statement, where they tell that for this statement to be True, even though a = True, nevertheless b = False. The next line, however, is the one that concerns me. They conclude that apart from the case (T,F) = T for a $\nRightarrow$ b, all other cases are False. But my concern is that I understand this conclusion for (T,T) case. But how can you say that for (F,T) and (F,F) in the case of a $\nRightarrow$ b????? (In the next line they say that a $\nRightarrow$ b = ~(a $\Rightarrow$ b). I understand that bit.)


This question may not apply to most people on Photo.SE, but my question is directed towards those who have an undergraduate degree in photography or a closely related field:   What experience as part of photography school do you feel you could not have acquired without having gone to school? Could you imagine an idea you were impressed upon in school that others who have not been to school for photography would have missed? Lastly, considering the ubiquity of photographic wisdom on the web, do you feel in hindsight formal school was a worthy investment?


Using some methods, when you create a copy of a table you lose indexes, PK, FK, etc. For example in SQL Server I can say:  select * into dbo.table2 from dbo.table1;   This is just a simple copy of the table; all of the indexes / constraints are missing. How can I copy a table structure (without using a backup)?  I am primarily looking to do this manually, but if that's not possible I'll accept any solution.


Query date in Google Sheets in format >date

I have this query   =QUERY( 'Monitor'!$A$4:$AB,  "select * WHERE " & IF(C2="Yes","A=1 ",IF(C2="No","A=0 ","(A=0 OR A=1) ")) &  "AND " & IF(ISBLANK(C3),,"D="&C3&" ") & "AND "& IF(ISBLANK(C4),"B IS NOT NULL ", "B="&C4&" ") & "AND " & IF(ISBLANK(C5),"F IS NOT NULL ","F> "&C5&" ") )   The last part refers to dates where   C5 = Date in format YYYY/MM/DD  F = Column with dates in same format  I want to get only the rows where the date is larger than that of cell C5.  I don't get an error back, I just get an empty range. I've checked if the other filters could be the reason but they're not.  Couldn't find answer here and do not want to use FILTER.  Any ideas?


when i used sed -n ,why this err about sed -n ' $j,4800p'

LINEnum=$(grep -nr "#32" IM_DlCtrlRef.txt | cut -d : -f 1) for j in $LINEnum do     echo $j     sed -n '$j,4800p'  IM_DlCtrlRef.txt >> IM_DlCtrlRef_bak     for insertl in {1..4}     do         cat zero.txt >> IM_DlCtrlRef_bak     done done


downgrade ubuntu 14.10 to ubuntu 14.04 or 12.04

Well i installed ubuntu 14.10 with gnome deskotp environment but during installation of opencv. I am having issues with libav as recent ubuntu uses api version 11 and I need api version 9 so i want to downgrade to ubuntu14.04 or better 12.04 is there any way to do so


Is there a GUI tool to log and view outgoing CURL requests from a Linux server?

I've seen several similar questions - but none that truly answer the question.  So here goes:  PROBLEM: A script is being run on one of our servers that is making outgoing post (and other) requests that we suspect is using CURL. It is attempting to find holes in other servers - in this case specifically in servers running WordPress, but there have been other requests.  QUESTION: Is there a GUI tool that can be used to monitor and view the source of these requests so that we can isolate the script and shut it down?  We are running an AWS instance, we do have Webmin available (if that's helpful) and this is a production machine that cannot be significantly slowed or have its normal traffic impeded.  Thanks to all, in advance, for the help!


How to deploy a flexipage with it activated as the Org Default?

When I have deployed via the Metadata API a flexipage that is the Org Default in the sandbox it does not get assigned as the Org Default in the target org. Is it possible to deploy the Org Default setting for the flexipage?


Too long question title in textbox possible

When asking a question the title textbox allows 300 characters max. But If I try to post such a long question title I get an error after hitting the post button:     title too long; maximum length 150   Could you please sync that?!


I'm making new theme with bootstrap, and having little trouble setting up content. Firstly content is set up like this:

         <?php the_content(); ?>

   The problem is I need two column layout, images that have width > height are col-sm-12 or 100%, and those that are width < height are col-sm-6 that is 50%. How can I add function like:  if ($w > $h) {     $class = "col-sm-12"; } else {     $class = "col-sm-6"; }   And also with adding those classes I have to nest columns so all images should be wrapped in .row div.   Any suggestions?  Edit  Images are from content editor, in posts, and solution above works but it gives me already set values like large=1024x1024, I want natural sizes of images. eg. If my image is 1920x1080 to return those values.


Is it possible to replace a photo with simple text, in case the link is wrong or the photo is no longer available?    <img id="CurrentPhoto" src="https://upload.wikimedia.org/wikipedia/commons/thumb/0/02/Stack_Overflow_logo.svg/1200px-Stack_Overflow_logo.svg.png" onerror="this.src='https://www.stackoverflowbusiness.com/hubfs/logo-so-white.png'" alt="">     With this code it is possible to replace the image in case of broken link. However, I wish I could insert text instead of the second photo. For example, make text "eg Stackoverflow" appear if the first photo is not available.  It's possible? Would any good little angel know how to help me?


how can I prove the value of correlation coefficient $r$ ranges between $-1$ and $1$?

What is the proof for the claim that the value of correlation coefficient $r$ ranges between $-1$ and $1$?


I often see misspelled words in titles and bodies of questions, only to see them spelled properly in the tags. I have to imagine that tags are always spelled right because it's hard to type arbitrary text into the tag box. I also have to imagine that sometimes autocorrect and spellcheck provided by browsers tend to turn programming terms and package names into English words. For example, see   Would it be possible to have some sort of spellchecker that compares text of titles (and maybe bodies) to known tags and offers some sort of correction (maybe red squiggles or something) when there's some statistical probability of a misspelling?  Since this would be using a site's tags, "magneto" would get corrected to "magento" on SO, while "magento" would get corrected to "magneto" on aviation.stackexchange.com.  In theory this could reduce a lot of stupid typos and prevent trivial edits just to fix the spelling of key words.  Note that this is not solving a problem that a user's browser can already solve because browsers ship with English dictionaries, not dictionaries of programming terms. In fact, it's potentially correcting a problem created by the browser (which might have already autocorrected "magento" to "magneto").