Image doesn't stay in the center when resizing windows

I am trying to keep my banner+navbar in the center, but whenever I resize the window, the right side collapses while the left doesn't move. This results in the image+banner to be on the right side of the screen, while there is still a margin on the left. How am I able to collapse both margins equally when I resize the window so that the image+banner are able to stay in the center.  Below is my code  index
   <?php include("navigation.html");?>
   Nav    div.box {   position: relative;   margin: 0;   padding: 0;   height: auto;   width: 52%;   left: 25%;   min-width: 999px;   background-color: #555555;   z-index: -1; }  body, html {   margin: 0px;   padding: 0px; }  ul.parent {   margin: 0;   padding: 0;   border: 0;   list-style-type: none; }  div.image1 {   float: left;   height: auto; }  img.imageHome {   width: 100%;   height: auto;   position: relative; }  div.navi {   list-style-type: none;   position: absolute;   display: flex;   float: left; }

      edit: jsfiddle:


Should reputation for questions vs answers depend on site?

There's a Stack Exchange website that provides a lot of value to me, but they are at a situation which, in my opinion, the 5:10 reputation ratio is not fair because providing an answer is much more difficult than asking a good question.     Moreover, specific tags are even less populated by answerers and perhaps getting more reputation would motivate them. Maybe it would be a good idea to let the website administrators tune the number of reputation that people get rewarded for a question upvote in proportion to bonus for getting an answer upvoted?


The repository 'cdrom://Ubuntu 18.04 LTS Bionic Beaver - Release amd64 (20180426) bionic Release' does not have a Release file. The CD is on an usbstick downloaded from Ubuntu. Now how do I manage to uptdate my system to 20.04?


I have a table structured like this:  CREATE TABLE [TESTTABLE] (     [ID] [int] IDENTITY(1,1) NOT NULL,     [DateField] [datetime] NULL,     [StringField] [varchar](50),     [IntField] [int] NULL,     [BitField] [bit] NULL )   I execute the following code:  BEGIN     INSERT INTO TESTTABLE (IntField, BitField, StringField, DateField)     VALUES ('1', 1, 'hello', {ts '2009-04-03 15:41:27.378'});       SELECT SCOPE_IDENTITY()   END   And then   select * from testtable with (NOLOCK)   and my result shows:  2009-04-03 15:41:27.*377*   for the DateField column.  Any ideas why I seem to be losing a millisecond??


How can be solved the equation $x^3+x-1=y^2$ in positive integers?    I know this equation defines an elliptic curve, but this seems to be a non-elementary way to solve this question. Is there a more elementary solution?   By the way I found three solutions: $(1,1), (2,3)$ and $(13,47)$. Is this related to the law group property of elliptic curves? Thanks for further answers.


I was making some tests on my android phone and I accidentally deleted the launcher from the system partition and I forgot to copy the new one to the system partition again, and the phone doesn't show anything, just the status bar and I can't enter or run anything.   I tryed to send the launcher's apk using bluetooth, but neither other android phone nor windows 8.1 can't send any file to the phone, even if the phone is paired with both devices.  Is there any way to run the Play Store to install the launcher or to install the launcher from the SD card?  Thanks a lot.


How would I export information produced from script onto a text file

Scripting novice here.  I have created a script which can show you the ip address of the website which has been entered.  My script:  #! /bin/bash  echo "Enter web address : " read address  echo "Entered web address : $address" nslookup "$address"   Script in use:  Enter web address : google.com  Server:     127.0.1.1 Address:    127.0.1.1#53  Non-authoritative answer: Name:   google.com Address: 216.58.206.46   How would I then export that information into a text file?  Thanks


Origin/Usage of "[word] is a [number] dollar word"

I've often been wondering where the phrase in the title comes from - I always picture it as coming from an early television era game show, but more likely it has to do with pricing of telegrams or news paper advertisements?  In particular, I'd like to know if there is a more subtle meaning to the numerical value being used; at least, moreso than "higher value means more sophisticated."  From memory, I've seen it used (at least) with 0.10$, 2$, 3$, 4$, 5$ and 10$. Which values are commonly used to indicate what? Would a native speaker intuitively spot someone who's just making up numbers (e.g. "8$ word")?  I've searched ELU and found a few usages, but no discussion about it:


I'm looking for several ways to prove that $\int_{0}^{\infty }\sin(x)x^mdx=\cos(\frac{\pi m}{2})\Gamma (m+1)$

I'm looking for several ways to prove that $$\int_{0}^{\infty }\sin(x)x^mdx=\cos\left(\frac{\pi m}{2}\right)\Gamma (m+1)$$  for $-2< Re(m)< 0$


I've played through GTA V offline a couple times, but I can't seem to get enough money to buy the Los Santos Golf Club, which is $150,000,000 according to the .  The question I want to ask is; does anybody know how I can get more money? I've swam past the crashed plane and gotten the briefcase (see below), but collecting that briefcase is around $25,000, if I remember correctly. I feel like the briefcase is more for a little spending money, something you can carry around and not have to worry about losing, if you get killed.    I want to make as much money as possible, and buying the second most expensive property, The Tivoli Cinema, which costs $30,000,000, is the most efficient, I think. That will still take me a lot of time, though.  Anybody know a way which I can get $150,000,000 in less than 24 hours?


gcc/g++ 10 is installed but I can not use it on Ubuntu 20.04.2 LTS

I used the information here  to install gcc/g++ 10 on Ubuntu 20 and when I try to do it again: sudo apt install g++-10  Reading package lists... Done Building dependency tree        Reading state information... Done g++-10 is already the newest version (10.2.0-5ubuntu1~20.04). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.  but when I ask for the version: g++ --version  g++ (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0 Copyright (C) 2019 Free Software Foundation, Inc. This is free software; see the source for copying conditions.  There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  Why is that and how can I fix it? Update However when I try: g++-10 --version  g++-10 (Ubuntu 10.2.0-5ubuntu1~20.04) 10.2.0 Copyright (C) 2020 Free Software Foundation, Inc. This is free software; see the source for copying conditions.  There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  It seems like g++10 is installed and usable under the name g++-10 but how can I make it the default g++ compiler?


There are two pages in my website with the same content; only the URL's are different: www.websitename.com and www.websitename.com/default.html. Someone suggested that I should add canonical tags to avoid them being considered as duplicate content.  Where should I add canonical tags and why?


man -k . | fzf -e --tiebreak=begin | awk '{print $1}' | xargs man -Tpdf | zathura - # searches for a man page and then outputs it as pdf to zathura  This command lets the user choose a man page, and then displays the page.  It works great, other than zathura starting blank while it waits for the user to make their selection, which leads to zathura getting input.  It is really annoying having to change focus from zathura back to the terminal and then back to zathura. I am fairly new to scripting so I thought that there might be a way around this that I just don't know about. Preferably not ifne.


Hello I have a top down survival game where you shoot bad guys(green squares). The player can collide with certain tiles and so can the mobs but I want the mobs to go around the tile if there is a path and not juts look in the direction of the player. How could I do this. Here is my mob class, collision class and block class  public class collision {   public static boolean iscolliding(Point p,block b){     return b.contains(p);  }   }  public class block extends Rectangle { private static final long serialVersionUID = 1L;  public static int blocksize = 40; private int id;  private Image i;  public static Rectangle r = new Rectangle(Comp.mx, Comp.my, 1, 1);  public static boolean c = false;   public block(int x, int y, int id) {     setBounds(x, y, blocksize, blocksize);     this.id = id; }  public void render(Graphics g) {     g.setColor(Color.green);      if (id == 0) {         ImageIcon i62 = new ImageIcon("res/tiles/air.png");         i = i62.getImage();         g.drawImage(i, x - play.camx, y - play.camy, null);      }     if (id == 1) {         ImageIcon i62 = new ImageIcon("res/tiles/dirt.png");         i = i62.getImage();         g.drawImage(i, x - play.camx, y - play.camy, null);      }     if (id == 2) {         ImageIcon i62 = new ImageIcon("res/tiles/roots.png");         i = i62.getImage();         g.drawImage(i, x - play.camx, y - play.camy, null);      }     if (id == 3) {         ImageIcon i62 = new ImageIcon("res/tiles/hellgrasses/hellsoil.png");         i = i62.getImage();         g.drawImage(i, x - play.camx, y - play.camy, null);      }           }   public void setID(int id) {     this.id = id; }  public int getID() {     return id; }   }  public class blob {  public double x,y;  public boolean dead;  public Rectangle r = new Rectangle((int)x, (int)y,20,20);  public boolean canmove;  public blob (int x, int y){     this.x = x;     this.y = y; }  public void tick(){     r = new Rectangle((int)x- play.camx, (int)y-play.camy,20,20);      if(!play.isPaused){         if(x > play.p.x+ play.camx){         x-=.2;         }         if(x < play.p.x+ play.camx){         x+=.2;         }         if(y > play.p.y+ play.camy){         y-=.2;         }         if(y <  play.p.y+ play.camy){             y+=.2;         }          if(r.intersects(play.p.r)){             play.p.health-=1;         }     }      if(dead){         if(new Random().nextInt(100) >= 95){             play.hp.add(new healthPack((int)x,(int)y));         }     } }  public void render(Graphics g){     g.setColor(Color.green);     g.fillRect((int)x - play.camx, (int)y -play.camy, 20, 20);     g.setColor(Color.red);     g.drawRect((int)r.x , (int)r.y, 20, 20); }   }  if you need any other info just leave a comment


I have a GeoTiff that has been supplied to me with non square pixels (I suspect due to reprojection to lat lon at some point). However the next step in my processing chain requires a Arc ASCII grid as input and so I need square pixels.   To save me trying to guess the original projection can any one tell me how to use GDAL to resample my image so the pixels become square?


How to interpret OR (odds ratio) decimals? Are they percentages?  OR with probabilities $p_1,p_2$ for two events is  $$\frac{\frac{p_1}{1-p_1}}{\frac{p_2}{1-p_2}}$$  Like if one gets an OR of, say, $2.25$, then does this mean that the nominator event is 225% more likely than the denominator event? What does "odds" mean?


The string I am searching for begins and ends with a wildcard character

How can I select only values that start and end with square brackets? I have written LIKE '[%]'  but it does not return anything. How can I work around this?


Two simple C# Inheritance methods result in different output

The following code gives different outputs.  Can anyone explain why?  The code is displayed below.  The result set is shown underneath it. I have compiled the code on Enterprise VS 2015, Update 2. I run it on Win7.  Please notice that I am using shadowing (hiding) in both examples.  This question doesn't concern the use of shadowing vs overriding.  The question asks "Why does shadowing result in two different outputs?"  Here is the code that compiles and runs and gives different results for the two different methods of calling the objects:    using System;  namespace InheritanceApplication {     internal class FooBarParent     {         public void Display()         {             Console.WriteLine("FooBarParent::Display");         }     }      internal class FooBarSon : FooBarParent     {         public new void Display()         {             Console.WriteLine("FooBarSon::Display");         }     }      internal class FooBarDaughter : FooBarParent     {         public new void Display()         {             Console.WriteLine("FooBarDaughter::Display");         }     }      internal class Example     {         public static void Main()         {             GoodBar();             FooBar();         }          public static void GoodBar()         {             Console.WriteLine("Example::Goodbar ...");              var fooBarParent = new FooBarParent();             fooBarParent.Display();              var fooBarSon = new FooBarSon();             fooBarSon.Display();              var fooBarDaughter = new FooBarDaughter();             fooBarDaughter.Display();         }          public static void FooBar()         {             Console.WriteLine();             Console.WriteLine("Example::Foobar ...");              var fooBarFamily = new FooBarParent();             fooBarFamily.Display();              fooBarFamily = new FooBarSon();             fooBarFamily.Display();              fooBarFamily = new FooBarDaughter();             fooBarFamily.Display();         }     } }     Here is the result set:    Example::Goodbar ... FooBarParent::Display FooBarSon::Display FooBarDaughter::Display  Example::Foobar ... FooBarParent::Display FooBarParent::Display FooBarParent::Display


Parallelize Bash script with maximum number of processes

Lets say I have a loop in Bash:  for foo in `some-command` do    do-something $foo done   do-something is cpu bound and I have a nice shiny 4 core processor. I'd like to be able to run up to 4 do-something's at once.  The naive approach seems to be:  for foo in `some-command` do    do-something $foo & done   This will run all do-somethings at once, but there are a couple downsides, mainly that do-something may also have some significant I/O which performing all at once might slow down a bit. The other problem is that this code block returns immediately, so no way to do other work when all the do-somethings are finished.  How would you write this loop so there are always X do-somethings running at once?


Get MAC address of a network access point

How can I find out what the MAC address (BSSID) of the wireless access point I'm connected to is?


How to stretch a time series to any length, n, without padding?

What algorithms are most suitable if I want to strect a time series to a certain length, n. I dont want to just pad the time series with values at the beginning or end, I want the pattern of the data to be followed but with values added anywhere within the time series to make it length n. For example if i have a time series of 4 values: {1, 5, 7, 4} and want to stretch it to 7 values then it would change to: {1, 3, 5, 6, 7, 5.5, 4} and if it was strecthed to 6 values it would still follow the same pattern of the data so it might be something like:  {1, 3.5, 5 ,7, 5, 4 } - (this isnt mathematically correct but i hope you get the point)  I would also want this to be applied to a time series that contains x, y, z coordinates eg {x1, y1, z1, x2, y2, z2, ... xn, yn, zn} with the same type of strecthing applied but it takes into account the x, y and z values being related.  Edit: The x, y and z values are the coordinates of a person that is being tracked. So the time series is tracking the movement and actions of a person in a room. For example the person could be running, walking, and moving thoughout the room and the x,y,z coordinates of the person as they are doing that is being tracked.


How much load can a (wood) board support, if it is supported only at the ends?

How much load can a board support, if it is supported only at the ends?  At the moment my specific problem is hanging a tire swing between two trees, and depending on which trees I choose they could be 10, 12, or 14 feet apart (center to center).  If I securely attach a 2x4 to the trees and hang the swing from the middle, would it be at risk of breaking from 2 children playing on it (so I'd guess around 300lbs max with them bouncing and jumping onto it)  But my bigger question is the general case: how do you calculate (or where do you look up) what kind of loads can be supported by the wood in question?  (other examples would be a 1x10 shelf with supports 24" apart, or 1/2" plywood on a 2' x 4' frame).  I'm not an engineer (well, software, but that doesn't count here), but I can do simple math (linear algebra, trig, calculus) and have a basic understanding of physics.


I changed my Windows 7 system to Ubuntu (20.04.2 LTS) this week mainly to have a speedy system for my works (React, node, etc). But, now am finding my system even slower to process basic things, like opening a Firefox! I have tried to update my software, but that didn't made any changes.  These are my system configuration now, it's a bit old, but i think it have enough power to run Ubuntu smoothly. Does anyone have any clue on what might be causing the slowness? should i try a re-installation? If there's no way, i will have to go back Windows again! Right now, even booting up is slower than Windows!


I ask this question in the context of investing in "ethical" companies, as someone I know wants to do in order to support them. My understanding is that when you buy stock, you're just exchanging ownership of the company, and not actually helping the company by giving them money (unless it's an IPO or new stock has been issued).  In what ways directly (if any) or indirectly, do you help a company by buying into them?


Solutions of $\arctan x = 1 - x$. Proofs?

In this question, we examine the equation $\arctan x = 1 - x$. You may assume without proof that $\arctan x$ is continuous on $R$.  a) Prove that there is a solution to the equation in the interval $(0,1)$. [Hint: IVT] b) Prove that there can't be a second solution in R. [Hint: Use a proof by contradiction using Rolle's Theorem]


Existence of surjection implies existence of injection?

Let $A$ and $B$ be sets. If there exists a surjection $f : A \to B$ then there exists an injection $g : B \to A$.   Proof: given $b \in B$ select an element $a \in f^{-1}(b)$. Denote this element by $g(b)$. Then $g(b) \in f^{-1}(b)$ so that $f(g(b)) = b$. Consequently $g(b_1) = g(b_2)$ implies $f(g(b_1)) = f(g(b_2))$ so that $b_1 = b_2$. We conclude $g$ is an injection. QED  Is the axiom of choice required to make this argument rigorous?


Factorial Mixed ANOVA Unequal Gender Ratio

For my thesis I'm doing a factorial Mixed ANOVA in which I look at gender differences. As it's a mixed ANOVA, everyone goes through the same conditions. The problem however is that I have 10 men and 26 women in my sample. Therefore the groups that I compare when looking at gender, aren't equal. I was wondering if there was a specific test I could do to calculate how problematic this difference in gender ratio is and if there is a test I could do to make up for this discrepancy?


I am working on web development since a long time and I love to see visual studio in Ubuntu.  I will use it as html editor and html5 web development. It has also a great php development extension.   Have anyone find a way to install it on Ubuntu - I hope


Books covering how to conduct a meta-anlysis

I would like to know if anyone could recommend a book that deals more with the practical issues around conducting a meta-analysis?  Thanking you in advance  Andrew Vitiello


Does Exchange support plussed users (e.g. myname+spam@example.com) or a similar mechanism?

Sendmail supports a feature called 'plussed users'. Once enabled, emails sent to   myname+spam@example.com, myname+sometopic@example.com and myname+anything@example.com   are automatically delivered just like mails to myname@example.com. There is no need to register or set up these 'plus suffixes'. The user can just use them and set up client-side filtering rules on his own.  Does Exchange support a similar mechanism? If so, how to enable it?  Note that I don't want answers about other means of filtering, e.g. spam/junk filtering, server-side or client-side rules, email aliases/addresses that are configured explicitly and so on.


How much of your p-value do you report in a publication?

I know this will vary from journal to journal, but I'm working on my first publication and have had little guidance, so any personal experiences would be helpful to me.  When you present your p-values for highly significant data, where do you stop? For example, I have some p-values that are equal to 7 * 10^(-14) (or 7E-14, or 0.00000000000007). In this situation, where do you make the cut-off? Would you just say p < 0.00001? If so, an additional question arises - if I have two tests that are highly significant but are different from each other, say one has p = 2*10^(-10) and the other is p = 5*10^(-30), are they both reported as p < 0.0001 (or whatever the cut-off is)? Does it matter that one is so much smaller (and therefore more significant) than the other?


How do I remove directories that begin with a dot after my server was infected?

My server had been infected and the attacker spread a bunch of .5randomletters folders around my file system, with malicious code inside of them. I want to search for all the folders that begin with a dot, review them and then remove them.  How can I do that?


How is the circle that fits beneath two adjacent circles related?

This is hard to search and probably easy to solve, but I keep finding articles about intersecting circles, and that is not what I'm after. I don't know what to tag this under, so if you know how to classify this better, please do.     I'd like to know how the red circle's radius is related to the radii of the larger circles, and why.


Is there a way to have Firefox automatically save images in My Pictures rather than Downloads?

What I like about pretty much all versions of Internet Explorer is that it knows to save images in your Mt Pictures folder all other file types in Downloads.  I'd like Firefox to behave the same way as, right now, it saves every download in Downloads.  Is there a way to configure Firefox to do this?


I was considering whether or not to buy Dishonored, and watching gameplay of it on Youtube, when a thought popped into my head: is Dishonored free-roam? Can you go anywhere you want, similarly to Fallout or The Elder Scrolls?


Proving that $\sum\limits_{k=0}^{n} {{m+k} \choose{k}} = { m+n+1 \choose n }$

I've been trying to prove this problem for awhile now, as preparation for a test, could anyone provide a solution I could follow?     $$\sum\limits_{k=0}^{n} {{m+k} \choose{k}} = { m+n+1 \choose n }$$   for all nonnegative integers m and n.   Any help will be appreciated.


I purchased a Corned Beef Brisket from the store and forgot to put it in the refrigerator. It was sealed. The package was cool in the morning. Is it safe to still use?


Proving an inequality using relationships between means

Given three positive numbers a, b, c  with the constraint:  $a+b+c=1$  prove the inequality   $\sqrt{{ab}\over{c+ab}}+\sqrt{{ac}\over{b+ac}}+\sqrt{{bc}\over{a+bc}}\le{3\over2}$


How to call a website from pc using a non registered domain name?

Usually When you ping a website (e.g Google.com) it replies with a specific Ip My question is: Is there anyway where you can call a website and replies with an IP you have set manaually like 1.2.3.4  meaning if I ping google.com from my pc it will reply with 1.2.3.4


Excel function that evaluates a string as if it were a formula?

Suppose I have a text string like "11+5" or even "=11+5" stored in a cell. Is there a function in Excel that will allow me to actually evaluate that string as if it were a formula?  This would be helpful for another project where I would like to be able to write 'dynamic' formulas in Excel.


Trying to put a footnote in subsection title:  \subsection{Effect of Lateral Confinement on SW Band Structure\footnote{Parts of this sub--section are based on \citet{Venkat2013}}}   produces the following error:  Argument of \@sect has an extra } ...section are based on \citet{Venkat2013}}}   I am using:   \documentclass[paper=A4, fontsize=12, toc=listof, toc=index, toc=bib]{scrreprt}   Please advise.


Reviewers had differing opinion on my manuscript

I sent a manuscript for publication last month and I just got it back with major revision. There were two reviewers who peer-reviewed the manuscript and both seem to have different opinions regarding the content. One reviewer asked me to omit a graph as he/she deemed it to be useless and didn't add to study narrative while another one commented on improving the graph. They also have different views on sample size of my experiment. One of them though our sample size was small while another one agreed on sample size with only improvement on statistical analysis conducted. They also had divided views on study design. One of them thought our study design was flawed and we should go back to the lab to perform additional tests while another reviewer thought our study design was okay with only missing statistical analysis.  How should I approach this?


adding additional RAM without reinstalling windows

I bought a laptop with 4GB RAM. Im planning to upgrade it to 8GB later (not in a short time) but i dont want to waste my time in reinstalling windows (if possible).  So, i think i will install windows 64bit for now, with a hope that i dont have to reinstall my windows when i upgrade my RAM to 8GB.  My questions are :   Is it possible? Is it good to have 64bit windows running on 4GB RAM?Does having 64bit on 4GB RAM effect laptop's performance?   Thanks for your help :D


WiFi not working on ubuntu 12.04 dell 3521

I have installed Ubuntu 12.04 alongside Windows 8 on my Dell Inspiron 3521 15R. Wifi is working perfectly fine on windows 8 but its not working on Ubuntu 12.04, rather its not even getting detected.  I have tried installing backports by   sudo apt-get linux-backports-modules-cw-3.6-precise-generic   This didn't work. I have tried installing almost everything, but still not working.  Result of : lspci  00:00.0 Host bridge: Intel Corporation Ivy Bridge DRAM Controller (rev 09) 00:01.0 PCI bridge: Intel Corporation Ivy Bridge PCI Express Root Port (rev 09) 00:02.0 VGA compatible controller: Intel Corporation Ivy Bridge Graphics Controller (rev 09) 00:14.0 USB controller: Intel Corporation Panther Point USB xHCI Host Controller (rev 04) 00:16.0 Communication controller: Intel Corporation Panther Point MEI Controller #1 (rev 04) 00:1a.0 USB controller: Intel Corporation Panther Point USB Enhanced Host Controller #2 (rev 04) 00:1b.0 Audio device: Intel Corporation Panther Point High Definition Audio Controller (rev 04) 00:1c.0 PCI bridge: Intel Corporation Panther Point PCI Express Root Port 1 (rev c4) 00:1c.1 PCI bridge: Intel Corporation Panther Point PCI Express Root Port 2 (rev c4) 00:1d.0 USB controller: Intel Corporation Panther Point USB Enhanced Host Controller #1 (rev 04) 00:1f.0 ISA bridge: Intel Corporation Panther Point LPC Controller (rev 04) 00:1f.2 SATA controller: Intel Corporation Panther Point 6 port SATA Controller [AHCI mode] (rev 04) 00:1f.3 SMBus: Intel Corporation Panther Point SMBus Controller (rev 04) 01:00.0 VGA compatible controller: Advanced Micro Devices [AMD] nee ATI Device 6601 07:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8101E/RTL8102E PCI Express Fast Ethernet controller (rev 05) 08:00.0 Network controller: Atheros Communications Inc. Device 0036 (rev 01)   Result of: lsusb  Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 001 Device 003: ID 0cf3:0036 Atheros Communications, Inc.  Bus 001 Device 004: ID 0bda:0129 Realtek Semiconductor Corp.  Bus 001 Device 005: ID 0c45:64ad Microdia    Result of : rfkill list  0: hci0: Bluetooth Soft blocked: no Hard blocked: no


I got confusion with naming lists.  What should I use when I want to say "smthng list".   Contact list or contactS list  Audition list or auditionS list  class list or classES list (class like math class or physics). I know that there is other way to say with "List of something", but I need correct 1st variant. I use it in naming variables (programming).


Natural Deduction - How to define literals?

I'm currently working on the following question:  "At least one of Plato and Democritus believed in the theory of forms. Plato believed in the theory of forms only if he was not an atomist, and Democritus was an atomist only if he did not believe in the theory of forms. Democritus was an atomist. Prove, using Natural Deduction, that Plato was not an atomist"  I have been working for quite some time to take the information and turn it into a set of literals and statements I can work with.  So far, I have got $P \lor D$,  $P \Rightarrow \lnot a$,  $D \Rightarrow A$,  $D = A$  However, I cannot seem to make these prove the statement using natural deduction, any hints?


Is there a way to vertically align text with an image in the CSS content property (chrome)?

I would like to vertically align text next to an image in a before pseudo-element. The way it's working now is that my image is displayed to the left of my text, but both the image and text sit on the same baseline. I tried using vertical-align, but it didn't work. I think the issue is that content is treating both the image and text as one block element.   * {   margin: 0;   padding: 0; }  body {   background-color: #000000; }  header {   background-color: #202830;   color: #ffffff;   width: 100%; }  header::before {   align-items: center;   background-color: #581845;   color: #E88968;   justify-content: center;   content: url("https://stackoverflow.com/favicon.ico") " This is some text";   display: flex;   height: 72px;   width: 100%; }  p {   padding: 16px; }
This is my header
      In the snippet, you can see that "This is some text" is aligned with the baseline of the image. I want it to be centered with the image. Update: This code works in Firefox 82.0.3 (32-bit) on Windows 10, but does not work in Chrome 86.0.4240.198 (64-bit) on Windows 10 or Edge 87.0.664.47 (64-bit) on Windows 10.


Verify the following relationship: $\nabla \cdot (a \times b) = b \cdot \nabla \times a - a \cdot \nabla \times b $

Verify the vector identity:  $\nabla \cdot (a  \times b) = b \cdot \nabla \times a - a \cdot \nabla \times b $  Given that:  $a = (R_a, S_a, T_a)$, $b = (R_b, S_b, T_b)$ and $\nabla = (\frac{\partial} {\partial x},\frac{\partial} {\partial y},\frac{\partial} {\partial z} )$.  Where $R_i, S_i, T_i$ have continuous partial derivatives.   I attempted it on paper but cannot get it to work. Can anyone show me how this is done?  My working:  LHS:  $\nabla \cdot (a  \times b) = \frac{\partial}{\partial x}(S_a T_b - S_b T_a) + \frac{\partial}{\partial y}(T_a R_b - R_a T_b) + \frac{\partial}{\partial z}(R_a S_b - R_b S_a)  $  RHS:  $\nabla \times a = (\frac{\partial}{\partial y} T_a - \frac{\partial}{\partial z} S_a)\hat i - (\frac{\partial}{\partial x} T_a - \frac{\partial}{\partial z} R_a)\hat j + (\frac{\partial}{\partial x} S_a - \frac{\partial}{\partial y} R_a)\hat k$  $b \cdot (\nabla \times a) = R_b(\frac{\partial}{\partial y} T_a - \frac{\partial}{\partial z} S_a) - S_b(\frac{\partial}{\partial x} T_a - \frac{\partial}{\partial z} R_a) + T_b(\frac{\partial}{\partial x} S_a - \frac{\partial}{\partial y} R_a)$  Now I computed the other part of the RHS as well however I can't see how I would be able to maninipulate it into the LHS.  Anyone have any idea?


Create a file if it does not exist and the open it using python

I am trying to write a program that creates a file (if it doesn't exists yet) and then writes a text in it. My code looks like             with open(("test_program/files/{}.txt").format("houses"), 'w+') as f:                 w = csv.writer(f)                 w.writerow([('This is the file with houses')])  But I get the error FileNotFoundError: [Errno 2] No such file or directory: 'test_program/files/houses.txt'  I am using python 3.6


Is Fashionable hat for all questions during winter bash in all sites?

The title is basically my question. Is Fashionable for views on all questions asked during Winter Bash on all sites or on just one site?  It has an explanation of:     get over 9,000 combined total views on all questions that you asked during Winter Bash   But that doesn't get me anywhere with what I am asking.


nginx use $server_name on ssl_certificate path

How I can use a variable name in file path ?  ssl_certificate /home/ec2-user/.certificados/$server_name.crt; ssl_certificate_key /home/ec2-user/.certificados/$server_name.key;


The following M(not)WE works without the importation of babel. How can I fix this ? \documentclass{article}  \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc}  \usepackage{tkz-tab} \usetikzlibrary{calc} \usepackage[french]{babel,varioref}  \newcommand\commentthis[3]{     \coordinate (M) at ($(#1)!.5!(#2)$);      \path         (M.east) +(.75,0) node[right,blue]{#3}     ; }   \begin{document}  \begin{tikzpicture}     \tkzTabInit[         espcl = 1.5,     ]{         $x$                         /1,         Signe de\\ $-x+3$           /1.5     }{%          $-1$, $+1$     }      \tkzTabLine { z , + , z }     \commentthis{T21}{T22}{TEST} \end{tikzpicture}  \end{document}  In the log there is : LaTeX Font Info:    External font `cmex10' loaded for size (Font)              <7> on input line 69. LaTeX Font Info:    External font `cmex10' loaded for size (Font)              <5> on input line 69.  ./tab-sign-deco.tex:77: Package tikz Error: + or - expected.  See the tikz package documentation for explanation. Type  H <return>  for immediate help.  ...                                                                                l.77     \signline{T21}{T22}{$3$}                                   ?  ./tab-sign-deco.tex:77: Emergency stop.  ...                                                                                l.77     \signline{T21}{T22}{$3$}                                   End of file on the terminal!


HTML text input allow only numeric input

Is there a quick way to set an HTML text input (<input type=text />) to only allow numeric keystrokes (plus '.')?


DOS of Van Hove singularity in 2D square lattice tight binding model

For the simplest example, 2D square lattice tight binding model gives the energy band as $$\varepsilon_k=-2t(\cos k_x+\cos k_y) \, .$$ We know that $\mathbf{k}=(0,\pi)$ and related momentum points are saddle points which give $|\nabla_k \varepsilon_k|=0$ and thus some kind of singularity in density of state (DOS) since $$\rho(\varepsilon)\propto \int_{\varepsilon=\text{const}} \frac{d S}{|\nabla_k \varepsilon_k|} \, .$$ How can I get the $\ln$ divergence for DOS near $\varepsilon=0$? Should I only care about those singularity points and omit the integral from normal parts and do Taylor expansion near those saddle points?   Moreover, why are points like $(\pi/2,-\pi/2)$ or $(2\pi/3,-\pi/3)$ not called Van Hove points when those points are also lie in the $\varepsilon=0$ line and give $|\nabla_k \varepsilon_k|=0$?


Can we make a force which can oppose earth gravity?

If we are standing on earth, then some force (gravity of earth) is pulling us down. Can't we make a force which can oppose gravity? Can't we make an object of zero mass?


Query 4.5 million record postgresql database quickly

I have a SQL Server database with 4.5 million records. I reproduced the same database with the exact same 4.5 million records in a PostgreSQL database.  When querying the SQL Server database, I am using FTS which returns data sub 1 second which is great. The problem is, when using the Postgresql without FTS, it is obviously extremely slow (25 - 45 seconds if not longer). I am struggling to find out what is the best PostgreSQL FTS equivalent?  API is .net core c# using Entity framework core.  Data is a list of companies. So a typical search might 'Kelly Construction' and I'd expect the API / DB to return results where company name column contains or is 'like' 'kelly construction'.


How can I do 64 bit division on linux kernel?

I want the do the following code on linux kernel (32 bit processor):  #define UQ64 long long int #define UI32 long int  UQ64 qTimeStamp; UQ64 qSeconds; UI32 uTimeStampRes;  qTimeStamp = num1; uTimeStampRes = num2;  // 64 division ! qSeconds = qTimeStamp / uTimeStampRes;   There is an algorithm to calculate the 64 division ? Thanks.


How can I make a bubbly foam for coffee?

So I tried making a cup of coffee, the liquid still looks like tea but I'll mess around with settings to make it look like one (of course, tips would be really helpful). But I'm more concerned on how could I make foam for the top layer (white foam) look bubbly and not smooth?


Unable to access Favourite tagged items in stack exchange Android app

I have tagged many questions as favourite. But I did not find any option to access those questions from Android app. Is there any way to get this?


Evaluate $$\int \frac{2-3x}{2+3x}\sqrt\frac{1+x}{1-x}d x$$ What substitution should I use ? $\sqrt\frac{1+x}{1-x}$ suggests $x=cos2\theta $ but its not useful in $\frac{2-3x}{2+3x}$


stab(S) is isomorphic to $ S_k \times S_{n-k} $

Show that the group $S_n$ (right) acts on the set of subsets of $\{1,2,\ldots n\}$ by $\rho(S,\sigma)=S\sigma$. Show that there are $n+1$ orbits, one for each possible value of $|S|$. Show that if $|S|=k$ then $\mathrm{Stab}(S)\cong S_k\times S_{n-k}$.  I have shown that there are n+1 orbits but now I am stuck with the last bit. my initial thought is that if I let $S =\{1,2,3,...,k\}$ then $\mathrm{Stab}(S)$ would involve $(1)(2)(3)...(k)$ i.e. mapping to itself and then $k+1$ to $n$ mapped in any ways ($S_{n-k}$) I feel like $\mathrm{Stab}$ is isomorphic to $S_{n-k}$ what am I misunderstanding here? How would I prove the last part? Thanks a lot


Should I use "c" or 'c' for single characters when working with strings?

A very simple question. Does it have anything to do with performance? Something else?  System.out.println('c'); System.out.println("c");   Which, why?  System.out.println("Letter: " + "c"); System.out.println("Letter: " + 'c');   Which, why?


Since last update markdown rendering doesnt work

I'm using the android official app, and sine I have updated it two hours ago, the markdown of the questions/answers is not properly renderized (Well doesn't tenderize at all).


getting a color value of a specific point on screen

How can I get a color of a specific point on screen with Apple Script?  I would give the point in pixels such as {120,400}. Should I use an external app and "tell" it to find color value of some point or does Apple scripts come with this functionality? It would be the best for my needs not to launch another app.


I killed Grelod and bought a house but I never got the letter from Constance? Why?


Someone whose sole aim is to make another person’s life difficult

What are some good words that have the meaning of doing something only to make another’s life difficult?   My ex is suing me for my car. He bought it for me and now wants it back.  I am in a different relationship happily married and he wants to hurt me any way he can. He’s a narcissistic jerk and we have court tomorrow for the car, so I’m looking for a word or word to describe the way he is being.


Proof using pumping lemma that $\{0^n1^m0^{nm} ∣ m,n \ge0 \}$ is not context-free

How can I prove that the language $L = \{0^n1^m0^{nm} ∣m,n \ge 0 \}$ is not context-free using the pumping lemma


what obvious issue am i missing in this sample? append()

what am i missing here? it's storing every variable as the same card.  generate the 'cards' in nested loops, i use a commented out print statement to verify the values are legit one step above appending them to a list, yet when I look at the list later, every 'card' is the same card -the last card made-  def PrintCard(i):     print i.suit,i.value  class CardClass():     value = 0     face = ""     suit = 0     slot = 0     onoff = 0  card = [] decks = 1 x = 1 suits = [0,1,2,3] values = [2,3,4,5,6,7,8,9,10,10,10,10,11] n = CardClass() for d in range(decks):         for s in suits:         n.suit = s         for v in values:             n.value = v             "print s,v, n.suit,n.value"             card.append(n)   for i in range(len(card)):     PrintCard(card[i])


How to stack/insert line breaks between minimization arguments beneath the min symbol?

I tried $\min_{x \in \mathbb{R}^m, \\ y \in \mathbb{R}^n}$ but \\ doesn't create a line-break in this setting


It seems like "A European" is the correct one but why ?   Is this a general rule about Capitalized words?


Knowing that for any set of real numbers $x,y,z$, such that $x+y+z = 1$ the inequality $x^2+y^2+z^2 \ge \frac{1}{3}$ holds.   I spent a lot of time trying to solve this and, having consulted some books, I came to this:  $$2x^2+2y^2+2z^2 \ge 2xy + 2xz + 2yz$$ $$2xy+2yz+2xz = 1-(x^2+y^2+z^2) $$ $$2x^2+2y^2+2z^2 \ge 1 - x^2 -y^2 - z^2 $$ $$x^2+y^2+z^2 \ge \frac{1}{3}$$ But this method is very unintuitive to me and I don't think this is the best way to solve this. Any remarks and hints will be most appreciated.


"There is no set containing everything"?

I was reading  question regarding codomains, and I found something interesting in User134824's answer:  "On the other hand, owing to the set-theoretic fact that "there is no set containing everything," it's not possible to pick a single universal codomain for functions."  Why is it impossible to have a set containing everything? Why can't we define $U=\mathbb{R} \cup \mathbb{C} \cup ....$(all possible sets)?  P.S. This is a soft-question, so I am looking for intuitive, non-technical answers; I do not know any set theory


Current Guide on Safely Selecting from MySQL using PHP

I am sure this is already out there, but can anyone recommend the correct way to safely select data from MySQL database using PHP? I am using mysqli prepared statements, but wasn't sure if there is anything else I should be doing to make it safer.


Similar to  question , let $H_n$ be the $n^{th}$ harmonic number,  $$ H_n = \sum_{i=1}^{n} \frac{1}{i}$$  Is there a similar method to calculate the following?:  $$\sum_{i=1}^{n}iH_i$$


Is there a search equivalent to "NOT IN"?

I would like to obtain posts that are NOT IN the search results of an initial search, working similarly to the manner in which NOT IN is used in SQL.  Currently, the search can only return all the posts that I don't want to identify, not the results I want to identify.  The reason I want this feature is to help clean up a beta Stack Exchange site.


Worked in 2015, got paid in 2016. How do I report my 2015 salary without W-2?

My employer didn't send me W-2 for December 2015. In fact, he told me that I wasn't on payroll for the two months(Dec/Jan) I worked for them so I am not sure whether he will be able to generate W-2 for me or not. I am wondering should I call IRS and inform them about the same, and probably they will call the employer? Or should I report my December 2015 earnings as Miscellaneous and report to IRS while filing taxes? Or what other options do I have? I am a non resident alien on F-1 Visa. My employer also has not paid me full salary as promised, which I am discussing with him.  Also, I got paid by check in January month for my December payment, so I am wondering does this apply for 2015 tax filing as I got paid in January 2016?


The smartdiagram package appears to have a default convention that an arrow in a circular diagram takes the colour of the destination block. Is there a way to choose instead the colour of the source block as the colour of the arrow. For instance, in this example  \documentclass{article} \usepackage{tikz} \usepackage{smartdiagram} \begin{document} \smartdiagramset{set color list={red!50,orange!50,green!50}} \smartdiagram[circular diagram:clockwise]{Red,Orange,Green} \end{document}   I want the arrow from "Red" to "Orange" to be red instead of orange. In other words, I want to advance all arrow colours one step clockwise.  Is there a single key or other simple option to do this? If there isn't might I suggest it through this forum please?


Finding $P$ in $A = P^{-1}JP$ (Jordan Form)

I'm having a lot of trouble understanding the process of finding a basis for the Jordan canonical form (the "algorithm"). My textbook (Friedberg 4E) isn't very clear, and I can't seem to find anything online.   If we consider the example $A$ = $\begin{bmatrix}6 & -2 & -1\\3 & 1 & -1\\2 & -1 & 2\end{bmatrix}$, we get the characteristic polynomial $p(t)$ = ($3 - t$)$^3$.  I understand the process of finding the matrix $J$ in $A = P^{-1}JP$, but I just can't seem to grasp finding $P$. Any clarification/explanation on the steps to do so would be incredibly helpful. Thank you.


How to avoid multiple joins on the same table (it has 200 columns to hold IDs. Another table has a mapping of IDs to values)

I have a table Checklist with the following columns  ChkId, Q1_ID, Comment1, Checked1, Q2_ID, Comment2, Checked2, ... Q200_ID...  I have a table Questions with the following columns  Q_ID, Prompt  How do I replace Checklist.Q#_ID with the matching Questions.Prompt without joining them up to 200 times? Is there an elegant solution?


Show that $3p^2=q^2$ implies $3|p$ and $3|q$

This is a problem from "" (specifically, exercise set 2 #9), which is one of my math texts. Please note that this isn't homework, but I would still appreciate hints rather than a complete answer.  The problem reads as follows:     If 3p2 = q2, where $p,q \in \mathbb{Z}$, show that 3 is a common divisor of p and q.   I am able to show that 3 divides q, simply by rearranging for p2 and showing that  $$p^2 \in \mathbb{Z} \Rightarrow q^2/3 \in \mathbb{Z} \Rightarrow 3|q$$  However, I'm not sure how to show that 3 divides p.    Edit:  Moron left a comment below in which I was prompted to apply the solution to this question as a proof of $\sqrt{3}$'s irrationality. Here's what I came up with...  [incorrect solution...]  ...is this correct?  Edit:  The correct solution is provided in the comments below by Bill Dubuque.


Did Merope's love potion have anything to do with the fact that Voldemort doesn't love?

So I was reading through this list:   And it happens to state:     Voldemort cannot love due to being conceived under the effects of a   love potion.   Now, I'm pretty sure that's not canon. I can't find a source for this in that site. But now that it mentions it, I can't help but stop wondering how did they reach that conclusion at all.  Is there anything canon that might suggest that statement? About how a love potion on Voldemort's father happened to affect his own ability to love?


Can you sort one column lexicographically while simultaneously sorting the next column numerically?

I've got two columns of data I need to sort: the first column(A) needs to be sorted lexicographically and for any rows which then contain the same column A string, I need them to be sorted numerically according to what's in the second column(B).   I was thinking    'sort -f' , but that would make a '12' in column B come before a '2'.   Edit: Accidentally typed column in place of row.


Current limiting resistor: where is it best to put it

I'm fairly new to this and I was wondering if it makes a difference if I put the current limiting resistor of a LED on the cathode or on the anode.  Any "best practice" and why?  Thanks!


Supervisor: no such file or directory even though it is there

I am trying to start supervisor service supervisor start, as root, but it gives me     env: /etc/init.d/supervisor: No such file or directory    Yet, I can clearly see that file exists:     [root@master vagrant]# ls -l /etc/init.d/                    total 256      -rwxr-xr-x. 1 root root  2062 Oct 17  2014 atd   -rwxr-xr-x. 1 root root  3378 Jun 22  2012 auditd   -rwxr-xr-x. 1 root root  2826 Nov 23  2013 crond   -rw-r--r--. 1 root root 18586 Oct 10  2013 functions   -rwxr-xr-x. 1 root root  5866 Oct 10  2013 halt   -rwxr-xr-x. 1 root root 10804 Nov 23  2013 ip6tables   -rwxr-xr-x. 1 root root 10688 Nov 23  2013 iptables   -rwxr-xr-x. 1 root root   652 Oct 10  2013 killall   -r-xr-xr-x. 1 root root  2134 Nov 23  2013 lvm2-lvmetad   -r-xr-xr-x. 1 root root  2665 Nov 23  2013 lvm2-monitor   -rwxr-xr-x. 1 root root  2989 Oct 10  2013 netconsole   -rwxr-xr-x. 1 root root  5428 Oct 10  2013 netfs   -rwxr-xr-x. 1 root root  6334 Oct 10  2013 network   -rwxr-xr-x. 1 root root  6364 Nov 22  2013 nfs   -rwxr-xr-x. 1 root root  3526 Nov 22  2013 nfslock   -rwxr-xr-x. 1 root root  3852 Dec  3  2011 postfix   -rwxr-xr-x. 1 root root  5383 Mar 30 08:29 postgresql   -rwxr-xr-x. 1 root root  1513 Sep 17  2013 rdisc   -rwxr-xr-x. 1 root root  1822 Nov 22  2013 restorecond   -rwxr-xr-x. 1 root root  2073 Feb 22  2013 rpcbind   -rwxr-xr-x. 1 root root  2518 Nov 22  2013 rpcgssd   -rwxr-xr-x. 1 root root  2305 Nov 22  2013 rpcidmapd   -rwxr-xr-x. 1 root root  2464 Nov 22  2013 rpcsvcgssd   -rwxr-xr-x. 1 root root  2011 Aug 15  2013 rsyslog   -rwxr-xr-x. 1 root root  3085 May 11 21:07 salt-master   -rwxr-xr-x. 1 root root  3332 May 11 21:07 salt-minion   -rwxr-xr-x. 1 root root  1698 Nov 22  2013 sandbox   -rwxr-xr-x. 1 root root  2056 Feb 27 15:57 saslauthd   -rwxr-xr-x. 1 root root   647 Oct 10  2013 single   -rwxr-xr-x. 1 root root  4534 Nov 22  2013 sshd   -rwxr-xr-x. 1 root root  1345 Jun 11 10:20 supervisor   -rwxr-xr-x. 1 root root  2294 Nov 22  2013 udev-post   -rwxr-xr-x. 1 root root 15634 Mar  7  2014 vboxadd   -rwxr-xr-x. 1 root root  5378 Mar  7  2014 vboxadd-service   -rwxr-xr-x. 1 root root 20887 Mar  7  2014 vboxadd-x11   And it contains some script, as expected.  What am I doing wrong?


Does a symmetric matrix with main diagonal zero is classified into a separate type of its own? And does it have a particular name?

I have a symmetric matrix as shown below  $$\begin{pmatrix} 0&2&1&4&3 \\ 2&0&1&2&1 \\ 1&1&0&3&2 \\4&2&3&0&1 \\ 3&1&2&1&0\end{pmatrix}$$   Does this matrix belong to a particular type?     I am CS student and not familiar with types of matrices. I am researching to know the particular matrix type since I have a huge collection of matrices similar to this one. By knowing the type of matrix, maybe I can go through its properties and work around easier ways to process data efficiently. I am working on a research project in Data Mining. Please help.  P.S.: Only the diagonal elements are zero. Non diagonal elements are positive.


File deleting problems after Android v4.4.2 upgrade?

Phone:  Samsung Galaxy S3 Carrier:  AT&T (US) Upgrade Path:  v4.2 to v4.4.2  Is anyone else noticing SD card file deleting issues after the upgrade to Android v4.4.2?  I use CoolReader to view files stored to  my SD card and continually delete them and add new ones.  After the updgrade, CoolReader and Astro File Manager are unable to delete files.  In fact, with Astro, the system popup appears with "Deleting..." and stays up until I cancel it.  Only connecting to a PC with USB and opening the folders there has allowed me to delete files.  Any suggestions on settings or anything else to correct this?  Thanks! Bill


Short story where the alien possesses people, switching between 1st and 3rd person narrative

I read a short story years ago, however, I don't recall the title and I'd like to read it again.  The story involved a creature or alien telling the story from a first person perspective, how he sits and waits and is all alone, until either astronauts or space marines show up.   The story then shifts to a third person narrative of the astronauts/marines as one by one they're possessed by this thing, causing the eventual in-fighting and murder of each crew member.  In the end, the creature ends up back in his pit, waiting.


Why using AES in ECB (Electronic Code Book) mode a bad idea? is CTR mode better? Given only these two can be used for parallelization.


What is the exact shape of the universe? I know of the balloon analogy, and the bread with raisins in it. These clarify some points, like how the universe can have no centre, and how it can expand equally everywhere in all directions. But they also raise some questions, like if you are on the surface of a balloon and travel in 1 direction, you will eventually return to your starting point, is it possible our universe have this feature?  If it has, or had, would this be a symmetry of sorts ($\psi(x)=\psi(x+R)$), and as such have a conserved quantity associated with it (by Noether)? Assuming "small curled up dimensions" wouldn't these dimensions have this type of symmetry, what are the associated conserved quantities? Is it known exactly what the geometrical shape of the universe is? (on a large scale) (I am not talking about only the observable universe). How does one define the "size" of a dimension, is this scale only applicable to curled up ones? Is it possible to describe to a layman the shape of the universe without resorting to inept analogies?


What is the idiom for "as anyone can see" or "clearly"?

I keep wanting to say "the handwriting on the wall," but that's not correct. The place I'm trying to use it is, "Alice likes Bob, Carol likes Bob, Alice thinks Bob likes her, but Bob dates Carol, and so as anyone can see, Bob did not like Alice."  What is the appropriate idiom here?


In case of a charged plane metal plate can you explain by Coulomb's law how E is the same for all points around the plate?

From Gauss's law we find that E in any point near an infinite charged metal plate is:  $$E = \frac{\sigma\epsilon_0}{2}$$  which indicates that $E$ is same for any distance, but it seems weird and untrue from the concept of Coulomb's law. If distance from the plate is decreased a charged particle should feel more force on it. Can you please explain?


How to catch a function call from class name in Javascript?

There is a bootstrap theme and very loaded with js, CSS and html. I try to learn what function triggered by a <li> tags hover event. I have only a working sample and a lot of js and CSS files. Any browser plugin or console technique you can suggest? I have no clue where is the class filter of <li> or which function deal with it.


Is $\mathbb{Q}_p$ isomorphic to a subfield of $\mathbb{C}$ for some prime number $p$?

Is there a prime number $p$, such that $\mathbb{Q}_p$ is isomorphic to a subfield of $\mathbb{C}$?


How many complements are in "I ask you to clean the room"?

How many complements are needed in the below sentence?     "I ask you to clean the room."   This sentence above has one complement or two complements?


The recent  about a new supermassive virus being discovered got me thinking about how we define viruses as non-living organisms whilst they are bigger than bacteria, and much more complex than we first gave them credit for.   What biological differences between viruses and cellular organisms have made viruses be deemed non-living?


Find the matrix of $\langle f, g \rangle = \displaystyle\int_0^1 f(t) g(t) \, \mathrm dt$ with respect to the basis $\{1,t,\dots,t^n\}$

Let $V$ be the vector space over $\mathbb{R}$ consisting of all polynomials of degree $\leqslant n$. If $f,g\in V$, let $$\langle f,g \rangle = \int_\limits{0}^{1}f(t)g(t)dt$$ Find the matrix of this scalar product with respect to the basis $\{1,t,\dots,t^n\}$.  What does it mean to find a matrix of the scalar product? Thanks in advance!


I recently downloaded Ubuntu 12.04 LTS on a flashdrive to try Linux out and installed the file and used the universal USB installer to install that file onto my flashdrive. After changing the boot sequence on my laptop, I got a screen asking me for what language I wanted so I clicked English, but after that it just gave be a black screen and I can type stuff on it. I rebooted my laptop and I got the black screen again, not the Ubuntu interface.  Am I doing anything wrong here while trying to boot up from my flashdrive, because I really want to give Linux a try!  Any help would be appreciated on this!  Edit: The question that my question appears to be similar to asks for where to get the ISO file, not why I'm getting a black screen every time I boot up from my pendrive. I have the iso downloaded from unetbootin on my flashdrive and my boot sequence changed in my bios settings, but every time I boot up ubuntu, I get a purple screen and then I get a black screen and I can type words, numbers, etc on it.


Looking for manga about reincarnated boy, abandoned by parents for lack of skills, and becomes a young adventurer named Larucu

I'm looking for a manga and just can't remember the name of it. It's about a boy who was killed in his (today's modern) world but he wasn't supposed to die, but another "evil" god intervened in his life. God sends him to another world to reincarnate with some abilities as an apology. He ends up reincarnating as a kid, like a 6-10 year old boy. The evil god had interfered again, making it so he arrived in the body after his parents had abandoned him for not having any skills show up at the ceremony kids go through that shows that. He ends up going to the adventurer's guild and becoming an adventurer, befriending a middle-aged who works there who has a scar on his face and so most people don't approach him. Larucu (what the boy calls himself) learns magic and ends up becoming friends with a lot of high-positioned people, like the king. I don't think this series was finished yet.


Unable to partition Disk in Ubuntu 13.04

I have been using win 7 but recently i had this desire of installing Ubuntu, so I tried installing it alongside Windows but due to having dynamic volumes I was unable to install it. Therefore, I formatted the whole system and installed Ubuntu 13.04.  Now the problem is when I was installing Ubuntu , it didn't ask for disk partitioning and just installed. So now when I installed GParted in Ubuntu, I got this result.    So now firstly I need to know what this means?? Please answer comparing with Windows because I am new to Ubuntu.   And secondly, can I partition this space into volumes like we have in Windows?  Sorry if I have been not clear....  Would be thankful for any views...  Thanks a lot in advance.


Is there a way to sort unanswered "my tag" questions by date, newest first?

How do I sort questions in the "my tags" tab of the Unanswered section of Stack Overflow by date, with the newest first?  Or, at least, how can I show only interesting tags, ordered by date, newest first?


What changes after peer review but prior to final submission are acceptable for a conference paper?

Suppose I write a paper and submit it to a conference. The paper gets some weak rejects and weak accepts and lots of criticism, but the conference is not that prestigious, so they accept it anyway.  Obviously, if I agree with the reviews, I will want to change the paper (which is in part what the reviews are for). But how far can I go with these changes? If the paper is computer science, for instance, I may easily run additional experiments, or slightly change the setup and re-run the existing experiments. If I submit the paper with these results, I will basically be publishing experiments that have not, in their current form, been peer-reviewed.  At what point do changes to a submitted paper post peer review become unacceptable?


How to help players settle down and focus?

We have a weekly game in the evenings; however, we often don't start playing for a few hours after we get together, if at all. This has been exacerbated recently by other events with the same people being scheduled for the few hours prior to the game; last week we barely managed to struggle through a five-minute scene over the course of 8 hours we'd scheduled for gaming! Since we rather enjoy our "social hour" just before the game, what can we do to signal a definite switch to "Game time is now!"  (It's a World of Darkness game, if that helps; not settling down to play seriously takes away from the horror aspect significantly)


Proof of K-Means convergence in finite iterations

I was asked to prove why having a finite amount of site to cluster assignments eventually leads to convergence.  In the Lloyd version of K-means, we minimize the distortion measure at every iteration until convergence. Graphically, I understand this as having the centroids and sites more compact until no new cluster memberships are reassigned. I understand that K-means achieves local minima via an EM approach on cluster centroids. I fail to see how the amount of site to cluster assignments ensure convergence.   $r_{nk} = 1$ when the $n^{th}$ site is in the $k^{th}$ cluster,            0 otherwise.


Is it  possible to only install the security updates.  If this is possible it needs to be done on several servers and ubuntu virtual machines (Manually in command line) .   I already tried a few solutions but nothing worked out for me. The goal is that by running a script of some sort to sort the security updates together and then update only the security updates.   It isn't possible to install them automatic because the servers and the virtual machines have great impact on the company.   Btw I am a noob on linux / ubuntu . Tried (sudo apt-get upgrade but this only upgrade the existing software , Tried this with no result apt-get -s dist-upgrade | grep "^Inst" | grep -i securi | awk -F " " {'print $2'} | xargs apt-get install , Also tried this sudo sh -c 'grep ^deb /etc/apt/sources.list |grep securi >> /etc/apt/sources.security.repos.only.list' with no result. The only option i see left i manualy download the updates and then sort them out. I already saw that article . sudo sh -c 'apt-get -o Dir::Etc::sourcelist="secsrc.list" \ -o Dir::Etc::sourceparts="-" update && \ apt-get --assume-no upgrade' . Maybe there is a possibility to workt together with this the command abbove ? So that i only need to download the security updates , and becouse it is a company servers i cant just shutdown rest of the reposotory .


Road condition B6 From Mbeya to Tabora. How long should it take to drive in a 4x4

I want to drive from Johannesburg South Africa to Kigali Rwanda in August 2015.  One leg of the route is concerning me.  I see the distance from Mbeya to Tabora in Tanzania is 560km along the B 6 and Google says it should take just over seven hours to complete.  My question is does anybody know what the road condition is like and is the 7 hour odd estimate correct?  We will be two or three landcruisers.


Voting on Meta is not just for (dis)agreement. Update the help center to reflect this

Voting on Meta is a bit of a two-headed beast. In addition to the regular meaning of votes as on other sites, the votes on Meta are sometimes also cast to express agreement or disagreement.   In the old FAQ the alternate meaning was explained using the qualifier "often". That is, voting on Meta is often used to express agreement/disagreement. I personally already thought that was a bit much, given that most of my votes were regular votes. Many times Meta questions . But well, I could live with that explanation.   In the new help center however it is stated that "Votes on meta are generally used to express agreement or disagreement with a particular idea, rather than indicating the quality of research or factual correctness of a post".   I personally think that's taking it slightly too far. Perhaps it's just me, but I'd like to the help-center to reflect that while voting works as it does on other sites, it does have an alternate meaning. And yes, that might happen regularly, but with the way it's phrased now it seems that all votes are cast in agreement/disagreement. And I don't think that's the case. We now have a situation in which all downvotes are explained away with a "ah, voting is different". And I often end up thinking "No it's not".  Perhaps the beginning of that section could be changed to something like:     Voting on Meta is sometimes different      While this is a meta site, we do appreciate a clearly formulated and   well-researched question. As is the case on the main sites, questions   which fall short in this regard might receive downvotes,    while excellent questions might be upvoted.      Voting on Meta does sometimes have an alternative meaning however.   They can be used to express agreement....etc.   Of course this is merely an example to get the point across. Thoughts? Perhaps you have an alternative formulation? Or am I completely off-base and are all votes merely cast in agreement/disagreement and should I get with the plan?


Proving that either $2^n-1 $ or $ 2^n+1$ is not prime

Not sure what approach to take with this:  Prove that at least $2^n-1 $ or $ 2^n+1$ is composite $\forall$ $n>2$


Can we have a user preference for ISO standard date format for all dates/times?

I'd really like a user option to show all dates as yyyy-mm-dd HH:mm after the 2 day mark. I find the existing non-standard semi-verbose American Mon DD 'YY style date to be ugly and difficult to parse.  I am not asking for anything complicated here, just a simple user option to show the date and time in the international ISO 8601 format across the board. Since it's already in the tooltip everywhere, it should be a simple change to optionally show it in the page body for those users who want it.  Secondarily, if it's not too difficult, I'd very preferably like to see date & times in my local time, rather than the UTC time as is currently shown used. It seems to make much more sense to me for see a question "asked 2014-02-04 10:19" as being my local time - I don't know what UTC is without using a converter (in this the before-2-days "asked 6 hours ago" is quite good).  (Re-raising this feature-request at the explicit behest of moderator Anna Lear; please don't close as a duplicate).


Compiling error after taking code to different files

I was wondering if anyone of you could answer the question I am currently facing at. When i put my code into the compiler first, without putting some pieces in different files, everything went right. But when I started to take the code apart, it won't assemble. The code within one file looked like this: #include<iostream>  class CObject{     public:       void init(void);       template <typename T, typename... Ts>       void init(T text, Ts... text1); };  void CObject::init(void){   std::cout << "No parameter left" << std::endl; }  template <typename T, typename... Ts> void CObject::init(T text, Ts... text1){   std::cout << text << std::endl;   init(text1...); }  int main() {   CObject o;   o.init("A", "variable", "amount", "of", "parameters", "should", "be", "allowed", "in", "this ", "function");     return 0; }  And the code put in different files like this: main.cpp: #include "CObject.hpp"  int main() {   CObject o;   o.init("A", "variable", "amount", "of", "parameters", "should", "be", "allowed", "in", "this ", "function");     return 0; }  CObject.hpp: #ifndef COBJECT_HPP #define COBJECT_HPP  class CObject{     public:       void init(void);       template <typename T, typename... Ts>       void init(T text, Ts... text1); };  #endif  CObject.cpp: #include<iostream> #include "CObject.hpp"  void CObject::init(void){   std::cout << "No parameter left" << std::endl; }  template <typename T, typename... Ts> void CObject::init(T text, Ts... text1){   std::cout << text << std::endl;   init(text1...); }  After typing in this command in the console, g++ *.cpp -o main.exe  the compiler sayed that: /usr/bin/ld: /tmp/cc5aW6eZ.o: in function `main': main.cpp:(.text+0x76): undefined reference to `void CObject::init<char const*, char const*, char const*, char const*, char const*, char const*, char const*, char const*, char const*, char const*, char const*>(char const*, char const*, char const*, char const*, char const*, char const*, char const*, char const*, char const*, char const*, char const*)' collect2: error: ld returned 1 exit status  Since I am fairly new to C++, i do not know if this is just a problem how I used the compiler or if this happens because I wrote my code wrong. Any help is appreciated.


What is the difference between the standard representants of $\mathbb Z/q\mathbb Z$?

The symbol $\mathbb Z/q\mathbb Z$ (given that $q$ is prime) represents the prime field $\mathbb Z_q$. Basically, the elements of this field are represented by $\{0, 1, \dots, q-1\}$, let's call this the "normal representation". However, in lattice based crypto, the elements of the field are represented by $\{-(q-1)/2, \dots, (q-1)/2\}$, let's call this the "lattice representation". What is the difference between these two representations? Why is the second one used in lattice crypto? Would it work if the normal representation was used instead? I would also be very grateful if someone could show an example of how $\mathbb Z_7$'s elements $\{0, 1, 2, \dots, 6\}$ are mapped into the other representation.


I am trying to add a Python script in a toolbox to discover the number of records of some shp files stored in a folder.  I wonder that the script works pretty good as stand-alone in the Python command line of ArcMap; but it returns an error when imported in a toolbox.  From the stand-alone script I changed only the workspace as arcpy.GetParameterAsText(0).  I am aware that the point should be somehow WHERE to print the results (I learned in the geoprocessing results(?)), as there is no command line; and I also tried to use AddMessage instruction instead of 'print', but unsuccessfully. This is the script imported in the toolbox:  >>> import arcpy #define workspace arcpy.env.workspace = arcpy.GetParameterAsText(0) #create a list of objects to loop through FC = arcpy.ListFeatureClasses() #loop throw every object for SingleFC in FC: #call function  count = arcpy.GetCount_management(SingleFC) #print results  print('{} has {} records'.format(SingleFC, count[0]))


Why am I getting this null pointer exception?

I keep getting a null pointer exception and I am not sure why. I looked at what causes this error but I still can't figure it out. I think after this error it may not be right but I can fix that after but first I have to fix this. This is the error I am getting:   ----jGRASP exec: java PostOfficeTester Exception in thread "main" java.lang.NullPointerException at PostOffice.retrieveMsg(PostOffice.java:33) at PostOffice.placeLetter(PostOffice.java:17) at PostOfficeTester.main(PostOfficeTester.java:11)  ----jGRASP wedge: exit code for process is 1. ----jGRASP: operation complete.   Here is code:  public class PostOfficeTester{ public static void main(String[] args) {   PostOffice branch = new PostOffice(5);   branch.retrieveMsg(5);   branch.placeLetter(new Letter("Arnold", "I'll be back!"),5);   branch.placeLetter(new Letter("Spock", "Live long and prosper."),4);   branch.placeLetter(new Letter("Kirk", "KHAAAAAN!"),4);   branch.retrieveMsg(4);   branch.retrieveMsg(2);   branch.retrieveMsg(-1);   branch.placeLetter(new Letter("Harry", "Make my day!"),0);   branch.placeLetter(new Letter("Ellie", "Thanks for the adventure! Now go have another one!"), 1);   branch.placeLetter(new Letter("Buzz", "To infinity... and beyond!"), 3);   branch.findSender("Kirk");   branch.findSender("Ellie"); }  }   public class PostOffice {   private Letter pobox[];   public PostOffice(int size){     pobox = new Letter[size];  }   public boolean placeLetter(Letter mail, int boxNum){     if(boxNum>=pobox.length || (!(retrieveMsg(boxNum).equals("Empty!")))){          return false;     }     else{        return true;     }  }   public String retrieveMsg(int boxNum){     if(boxNum>=pobox.length){        return "Box does not exist!";     }      else if(pobox[boxNum].equals("")){            return "Empty!";     }      else{        return pobox[boxNum].getMsg();     }       }   public Letter findSender(String name){     for(int i = 0; i<pobox.length; i++){        if(name.equals(pobox[i].getSender())){           return pobox[i];        }      }      return null;            }    }    public class Letter {     private String sender;    private String message;     public Letter(String name, String text){       sender = name;       message = text;    }     public String getSender(){       return sender;    }     public String getMsg(){       return message;     }   }


Fiber from $S^1$ to $\mathbb{R} P^1$ that does not admit a section.

Consider the map $q:S^1 \to \mathbb{R} P^1$ given by $v \mapsto \mathbb{R} v$. I want to show that this map does not admit sections. I've previously shown that $S^1$ is diffeomorphic to $\mathbb{R} P^1$ but this doesnt seem to be of much help. I've also shown that $TS^1$ is trivial, however I don't see how to use this. My only idea is that such a section wouldn't be well defined since it could go to either antipidal points when composing with $q$. Any hint or help with this would be amazing!


Automatically protect questions with three or more low-rep-user deleted answers

There are a few "automatically protect questions" requests out there, but I'd like to add another twist.  I'd like to request that questions that have three or more deleted answers by users with <50 rep be automatically protected.  The reasoning behind this is that we have lots and lots of "not an answer" flags in the mod queue.  But we cannot protect a question from the mod queue, so we have to open each answer, evaluate if the question needs protecting, then protect it.    This process takes a long time, and can definitely be automated, as the only thing you really need to check is how many new users are posting non-answers or are spamming their awful products.


My machine is not booting properly. How do I troubleshoot?

I have a Lenovo x120e that is not booting properly.  When I turn it on, it just opens to a blank screen.  The machine is running Ubuntu 10.04.  Main Details: I shut the lid of the computer while it was running, and then opened it later and noticed that I couldn't get out of suspend / hibernate mode.  I subsequently powered it down by holding the power button.  Now when I turn it back on, it just opens to a blank black screen, as if it is still in suspend / hibernate.  Other Details: The 10.04 operating system (A) was installed while this HD was in another laptop.  Since I moved the HD into this machine, I have been booting another OS (B), and never updated drivers in A to work with this machine.  (Does this matter for this particular situation / problem?)    What I have tried so far: I found the REISUB method  but I don't have a SysReq button.  What are my next steps to troubleshoot / solve?


The question is simple enough: How can I make the following output of my counter (\themycounter) say 6?  \documentclass{article} \newcounter{mycounter} \newcommand{\myitem}{\refstepcounter{mycounter}} \begin{document} I have some reason to tally up some items here\myitem \myitem \myitem. But how many items are there in total in this document? Are there {\themycounter} items? Surely there are more since I am tallying up some more items now\myitem \myitem \myitem. \end{document}   I'm quite confident that the answer doesn't need to be as complicated as the one given in  (which is why I'm taking the liberty to ask here).


Quick way to see how many people helped across all SE sites

Is there a quick way to see how many people I've helped ("reached") across all SE sites?


Past participles in the English language usually end with -ed, but slain is one exception. Why can't we have just slayed rather than that and slain, too? And why can't slain be its very own verb?


Count dates between two HTML Date input fields real time

I'm making simple application for record internal leaves of my office. with this application I have to provide users to two HTML date fields for select start leave date and end leave date. At the same time I need to calculate how many days have in between user's selection also this count may exclude the weekdays. To do this i tried to use simple javascript with one of date fields onchange event but it's not working   this is the complete code with HTML I have tried        <form action='reqprocess.php' method='post'>             <input type="date" name="datepicker" class='form-control' id="startd" required/>
             <input type="date" name="datepicker2" class='form-control' id="endd"required />
             <input type="text" name='leavehmd' class='form-control' id="lhmd"/>
             <input type='submit' value='Apply' class='btn btn-primary' /> </form>               But when sect second date, on-change function not works and Input field suppose to fill with counted dates not populated. How can I fix this ?  or how can I achieve this via methods like ajax or jquery


Find a set of polynomials whose common zero set is $\{(3 + 2i, -i), (0, 1 - 4i)\}$ in $\mathbb{C}^2.$

Find a set of polynomials $\{P_1, \dots, P_n\},$ all of whose   coefficients are complex numbers, whose common zero set is $\{(3 + 2i,  -i), (0, 1 - 4i)\}$ in $\mathbb{C}^2.$   When there's only one point, such as $\{(3 + 2i, -i)\},$ the answer is easy enough. We can use something like $P_1 = x - (3+2i)$ and $P_2 = y - (-i),$ and the zero sets of these polynomials will intersect in the given point. I tried something similar in the stated problem, but $P_1 = x - (3+2i), P_2 = y - (-i), P_3 = x - 0,$ and $P_4 = y - (1 - 4i)$ would have an empty common zero set.   I also tried $P_1 = (x - (3+2i))(x - 0)$ and $P_2 = (y - (-i))(y - (1 - 4i)),$ but this would have a common zero set that is too large: $$\{(3 + 2i,-i), (3 + 2i, 1 - 4i), (0, -i), (0, 1 - 4i)\}.$$  If we were working over $\mathbb{R}^2$ and looking for a common zero set that is a finite set of points, such as $\{(1, 2), (0, 5)\},$ then I would use $$P_1 = ((x-1)^2 + (y-2)^2)((x-0)^2 + (y-5)^2).$$ This works because $(x-1)^2$ and $(y-2)^2$ must be non-negative, so the only solution to $(x-1)^2 + (y-2)^2 = 0$ is $(1, 2).$ Something like this wouldn't work in $\mathbb{C}^2$ since we can't claim that $(x-1)^2$ must be non-negative.  So I've tried a few things and feel I am close, but I don't quite have the solution. While my question is for a specific set of points, I'm looking for a method that can be generalized to any finite set of points in $\mathbb{C}^2.$


Hide and Show button not working after appending

I have a simple method to hide and show. I tried to use the live() function and even this method is not working. I want to append the
 and with every
 there should be a hide and show button. Also, the
 should hide when I click on hide.     $(document).ready(function() {   var max_fields = 20; //maximum input boxes allowed   var wrapper = $(".input_fields_wrap"); //Fields wrapper   var add_button = $(".add_field_button"); //Add button ID   var x = 1; //initlal text box count      $(add_button).click(function() { //on add input button click     if (x <= max_fields) { //max input box allowed       x++; //text box increment       $(wrapper).append('
<input type="text" name="mytext[]"/><button onclick class="hide_field">Hide</button><button onclick class="show_field">show</button>
');     }   }); });  $("#myclass").on("click", ".hide_field", function() {   $(this).hide(); });  $("#myclass").on("click", ".show_field", function() {   $(this).show(); });
   <button class="add_field_button">Add Comment</button>

<input type="text" name="mytext[]">


A while back, I read a fantasy book about a boy who ends up in another world inhabited by a people called the Sidhe (I think). He got there while visiting an old man at night, but something spooked him and he ran into the garden, where he went through a portal. He was taken in by three witches, until he went his own way. I also seem to remember he could either talk to horses or transform into one. I think the main storyline was that the Sidhe world and the ordinary world were getting too close to each other. Its all very vague.  It was not written by Feist, Asimov, Prachett, Jordan, Tolkien. I read it back in the early 2000's, but I don't know if that was when it was published. I believe it was part of a series, as I seem to remember part two took place in the "normal" world. I also seem to remember the protagonist (boy) was either part Sidhe/part human, or had at least a connection to them.


when i invoke threadExecutor  method large  number     fun startAnimation(): Unit {      sPool.scheduleAtFixedRate(taskQu, 0, 1000, TimeUnit.MILLISECONDS)        }   it will cause this error prompt , sPool is java ThreadExecutors  val sPool = Executors.newScheduledThreadPool(2)!!  and taskQuis async timer task    val taskQu = object : TimerTask() {     override fun run() {          uihandler.obtainMessage().sendToTarget()      } }   i got this prompt  java.lang.OutOfMemoryError: pthread_create (1040KB stack) failed: Try again                                                                       at java.lang.Thread.nativeCreate(Native Method)                                                                       at java.lang.Thread.start(Thread.java:1063)                                                                       at java.util.concurrent.ThreadPoolExecutor.addWorker(ThreadPoolExecutor.java:921)                                                                       at java.util.concurrent.ThreadPoolExecutor.ensurePrestart(ThreadPoolExecutor.java:1556)                                                                       at java.util.concurrent.ScheduledThreadPoolExecutor.delayedExecute(ScheduledThreadPoolExecutor.java:310)                                                                       at java.util.concurrent.ScheduledThreadPoolExecutor.scheduleAtFixedRate(ScheduledThreadPoolExecutor.java:567)   so , where this problem about this issue  emerge?


Why is $\log(f(z))$ entire if $f(z)\ne0$ and $f$ is entire?

Let $f:\mathbb{C}\to\mathbb{C}\setminus\{0\}$ be an entire function. Why is $\log(f(z))$ entire?   I don't understand the answer because if we have log with any branch $B=\{Re^{i\theta}:R\geq0\}$, (and assume we choose for example the principal branch, $\theta=0$), then it may be that $f(z_0)\in B$ for some $z_0\ne0$ and then $\log(f(z_0))$ is not defined.


I'm looking for some interesting applications of ultrafilters and also everything of interest involving ultrafilters. Do you know some applications or interesting things involving ultrafilters?  I'm at the beginning, so I'd prefer some applications that also a beginner could read.


What's the proper way to check a checkbox by variable value?

So I'm trying to check a box by value that's equal to the variable but I can't get to work.  Here's a fiddle:   It checks all the boxes if I set it to .val(checkboxValue).prop("checked", "checked");  I tried .val() == checkboxValue.prop("checked", "checked"); but that doesn't work


I want to use some yeast mutants to conduct gene functional analysis, and the gene was isolated from plants. Can anybody give me some information regarding the websites or agencies from which I can purchase the yeast mutants?


Block communities from "Hot Network Questions"

Give the option to users to not see questions from some communities on the "Hot Network Questions" tab.


How to use the new render pass API for an external renderer?

I am developing an addon for an external renderer and want to register custom render passes. Last time I implemented this feature I had to resort to images because Blender only had hardcoded render passes.  Nowadays the RenderEngine class offers several methods that seem to allow the registration of custom passes:        However, I could not find any explanation or examples of how to use these methods. Looking at the Cycles source code also did not help much.   Cycles implements the update_render_passes method:   But I could not find out how or when this method is ever called.  When I implement this method in my addon, it is never called. In this implementation, it uses the register_pass method:    Where I currently am  I have managed to add a custom pass with the following code, which is currently executed in the constructor of my RenderEngine implementation:  self.add_pass("Samplecount", 1, "X")  It shows up in the image editor:    Problems/Questions   The custom pass is always available in the image editor dropdown, even if it is not used in the current rendering It seems there is no method to remove or unregister a custom pass - how does Cycles do this? The custom pass does not show up in the compositor:


Could someone help me with how the following is calculated:  What is the probability of rolling a die seven times and getting at least one six?  My instinct told me it would be $1/6+\cdots + 1/6$ but this ends up being $7/6$.


Why so many files relating to grub (/etc/grub.d/, /etc/default/grub, /boot/grub2/grub.cfg)? What is the purpose of each?

I have seen that grub2 configuration files exist in so many different locations.    /etc/grub.d /etc/default/grub /boot/grub2/grub.cfg   Can anyone tell me the purpose of each directory/file?


I'm trying to parse out some data from an MRSS feed using SimpleXML then create JSON with that data.  Here's what I'm trying, it does output JSON but the formatting looks bad and given all the [{"0":" before every element, I'm sure I'm doing something wrong:   <?php session_start(); $html = ""; $url = "http://feeds.nascar.com/feeds/video?command=search_videos&media_delivery=http&custom_fields=adtitle%2cfranchise&page_size=100&sort_by=PUBLISH_DATE:DESC&token=217e0d96-bd4a-4451-88ec-404debfaf425&any=franchise:%20Preview%20Show&any=franchise:%20Weekend%20Top%205&any=franchise:Up%20to%20Speed&any=franchise:Press%20Pass&any=franchise:Sprint%20Cup%20Practice%20Clips&any=franchise:Sprint%20Cup%20Highlights&any=franchise:Sprint%20Cup%20Final%20Laps&any=franchise:Sprint%20Cup%20Victory%20Lane&any=franchise:Sprint%20Cup%20Post%20Race%20Reactions&any=franchise:All%20Access&any=franchise:Nationwide%20Series%20Qualifying%20Clips&any=franchise:Nationwide%20Series%20Highlights&any=franchise:Nationwide%20Series%20Final%20Laps&any=franchise:Nationwide%20Series%20Victory%20Lane&any=franchise:Nationwide%20Series%20Post%20Race%20Reactions&any=franchise:Truck%20Series%20Qualifying%20Clips&any=franchise:Truck%20Series%20Highlights&any=franchise:Truck%20Series%20Final%20Laps&any=franchise:Truck%20Series%20Victory%20Lane&any=franchise:Truck%20Series%20Post%20Race%20Reactions&output=mrss"; $xml = simplexml_load_file($url); $namespaces = $xml->getNamespaces(true); // get namespaces  for($i = 0; $i < 50; $i++){ // will return the 50 most recent videos    $title = $xml->channel->item[$i]->video;   $link = $xml->channel->item[$i]->link;   $title = $xml->channel->item[$i]->title;   $pubDate = $xml->channel->item[$i]->pubDate;   $description = $xml->channel->item[$i]->description;   $titleid = $xml->channel->item[$i]->children($namespaces['bc'])->titleid;   $m_attrs = $xml->channel->item[$i]->children($namespaces['media'])->content[0]->attributes(); $VideoFileURL = $m_attrs["url"];  $arr = array($title, $description, $VideoFileURL);  $json_string = json_encode($arr, 128);  echo json_encode($arr, 128); }  ?>   I've tried to both   $json_string = json_encode($arr, 128)   and   $json_string = json_encode($arr, JSON_PRETTY_PRINT)   "128" seems to print out better than "JSON_PRETTY_PRINT"  Any ideas? I'm sure it's obvious, but I'm a newbie with PHP. Thanks!


Can't disable Enhanced Security Configuration after upgrading to IE9

I disabled ESC in Server Manager on 2008 R2, originally just for Administrators but have tried to disable it for users and Administrators to try and solve this problem. Despite it being completely disabled I keep getting warnings as though it were still enabled.  You can see  I have it disable in my config and  is an example of the warning that I continually get, despite ESC being apparently disabled.  What changed in IE9 as far as the ESC goes that I can't disable it?


2D coordinates after shifting, scaling and rotation

Suppose that there are $N=4$ points ($A,B,C,D$) on a 2D space. Connect the four points, and then form a quadrilateral $Q$. After unknown linear transformation (shifting, scaling and rotation), we obtian a new quadrilateral $Q'$. If we know the new coordinates of $Q'$, namely   $A'=(x'_1,y'_1),B'=(x'_2,y'_2),C'=(x'_3,y'_3),D'=(x'_4,y'_4).$  Also we know the coordinates of $A,B,C$  $A=(x_1,y_1),B=(x_2,y_2),C=(x_3,y_3).$  The points $A,B,C$ are not colinear.   Question: How to obtain the coordinates of point $D$?  Generally, if $N=100$, what's the solution?   Similarly, we konw the coordinates of $Q'=\{(x'_1,y'_1),(x'_2,y'_2),...,(x'_{100},y'_{100})\}$, and the non-colinear three points $A=(x_1,y_1),B=(x_2,y_2),C=(x_3,y_3).$    To make the question be more interesting, I further consider that even after a rigid transformation, it is unlikely that the known points will precisely align, since the pratical measurements used to localize the points are likely to have errors.  I also found a solution, named coordinate system registration:     The approach is given by solving the follwing optimization problem  $(t,s,R)=\arg\min\limits_{t,s,R}\sum\limits_i^N\Vert Q''_i-Q'_i\Vert^2$,   s.t.   $Q'_i=sRQ_i+t$  where $Q''$ represents the one obtained by measurement$, s$ the scaling operation, $R$ the rotation, and $t$ the shift. The link above gives the close-formed solution of $s,Q,t$.   Share with someone with interest!


What is the difference between ubuntu-18.04-server and ubuntu-18.04-live-server?

On the  there is a download link for ubuntu-18.04-live-server-amd64.iso, and on the  there is a download link for ubuntu-18.04-server-amd64.iso. Before 18.04, there is only a server version. What is the difference between these 2 images?


I have got Schengen visa -spain and due to travel June first week . This is a single entry business visa and I am traveling to Madrid for business meetings.After the visa is secured I was thinking of flying to Paris from Madrid and spend two days there before returning from Paris CDG to Muscat Oman ( visa issued by Spanish embassy muscat )Does it cause any problem traveling to Paris with as I have not mentioned in visa application to spain embassy of my travel plan to Paris? I am concerned if there could be trouble in Madrid airport immigration on arrival as my return ticket is from Paris not from Madrid as visa application was for business not tourist purpose.Visa valid for Estados Schengen , visa type : C single entry , duration of stay :15 days , remarks : VIS Estancia. Under remarks it is written indomeest.I have travelled to spain and Germany earlier but have not changed my travel plans after getting visa to travel to another Schengen state. Please advise.


YA book involving a planet with dragons and double-K in people's names

I remember reading, in the 80s, an English-language teen-SF novel involving two teen protagonists (1 male, 1 female) on a planet (not Earth) that might have had some history of slavery (or inter-caste strife) and had dragons. Almost every character had a double KK in their name, though that might have been a caste marker.  That's literally all I remember, except that the author might have been female. (My head keeps suggesting Marion Zimmer Bradley, but I'm pretty sure it's not her.) If I read it in the 1980s, it was almost certainly written in the 1970s or 1980s.


It's possible to run Ubuntu straight from a USB stick and use the same stick as HDD?

I want to install Ubuntu on a usb stick and run the OS from it and also use the same usb as main drive, like everything i install it's kept on there so then I'm able to run like "my user" on another computer. It's possible?


How do I make a bootable USB from Windows?

I've downloaded the daily Ubuntu 12.04 iso.  I currently have windows 7 x64 operating system installed.  How can I make a bootable usb from the Ubuntu iso?


How can I use Bash syntax in Makefile targets?

I often find  syntax very helpful, e.g. process substitution like in diff <(sort file1) <(sort file2).  Is it possible to use such Bash commands in a Makefile? I'm thinking of something like this:  file-differences:     diff <(sort file1) <(sort file2) > $@   In my GNU Make 3.80 this will give an error since it uses the shell instead of bash to execute the commands.


What is the actual mechanism behind the reflection of various colored light by material of different color?

When light (composed of photons with different frequency and wavelength) falls on a material, some of it gets absorbed and some get reflected depending upon the color of the material on which it strikes. And the material reflects the light of its own color only, thereby absorbing all the other colored light. So, my questions are:  How would a photon with certain wavelength (say 400 nm) decide to get reflected after striking the material of red color?   What is the actual mechanism behind the reflection of various colored light by the material of different color?


$\dfrac1a+\dfrac1b=\dfrac1c$, $a, b, c \in \mathbb{N}$ with no common factor, find all solutions

Given $\dfrac1a+\dfrac1b=\dfrac1c$, where $a, b, c \in \mathbb{N}$ with no common factor, find all solutions.   Actually, you can think this question as a follow up of this . Today, I saw this question and thought whether such numbers really exits! And quickly I found some solutions: $(2,2,1), (3, 6, 2),$ $(4, 12, 3),$ $ (5, 20, 4),$ $(6, 30, 5), (7, 42, 6), (8, 56, 7), (9, 72, 8) \ldots$ (see my comments). Clearly, $(n+1, $ $n(n+1),$ $n)$ for $n \in \mathbb{N}$ is a solution. Interestingly these are the only solutions I found.  (Irrelevant after paw88789's comment) So, my question is: Is $(n+1, $ $n(n+1),$ $n)$ for $n \in \mathbb{N}$ the characterization of the above problem?  Update After paw88789's answer, I realize that there are solutions of other form also. So, I get back to my original question:     Find all solutions to the above problem.


See what apps and data are taking up space in iOS, without iTunes?

Is there a way i can see what apps and data are taking up space on my iPhone 8, running 12.4.1.   I know if i plug my phone into iTunes i can get a report on this, but wondered if its possible without iTunes ?


How can we differ LEFT OUTER JOIN vs Left Join

What is the difference between Left Join and Left Outer Join?


Both thermal energy and air are propagated through vibration of particles so why sound does not heat up the air e.g loud musical instrument  does not generate much heat ?


When would you use the different git merge strategies?

From the man page on git-merge, there are a number of merge strategies you can use.     resolve -  This can only resolve two heads (i.e. the current branch and another branch you pulled from) using 3-way merge algorithm. It tries to carefully detect criss-cross merge ambiguities and is considered generally safe and fast. recursive -  This can only resolve two heads using 3-way merge algorithm. When there are more than one common ancestors that can be used for 3-way merge, it creates a merged tree of the common ancestors and uses that as the reference tree for the 3-way merge. This has been reported to result in fewer merge conflicts without causing mis-merges by tests done on actual merge commits taken from Linux 2.6 kernel development history. Additionally this can detect and handle merges involving renames. This is the default merge strategy when pulling or merging one branch. octopus -  This resolves more than two-head case, but refuses to do complex merge that needs manual resolution. It is primarily meant to be used for bundling topic branch heads together. This is the default merge strategy when pulling or merging more than one branches. ours -  This resolves any number of heads, but the result of the merge is always the current branch head. It is meant to be used to supersede old development history of side branches. subtree -  This is a modified recursive strategy. When merging trees A and B, if B corresponds to a subtree of A, B is first adjusted to match the tree structure of A, instead of reading the trees at the same level. This adjustment is also done to the common ancestor tree.   When should I specify something different than the default?  What scenarios are each best for?


I want to add a remove button in my clone element for some purposes.  HTML
add

           <input type="text" value="" name="other" placeholder="Description" />           <input class="short3 theAmount" type="text" value="" name="other_amount" placeholder="Amount" />

   jquery


Broken icons in Windows when doing a search

Whenever I perform a search in Windows, I get broken icons for some apps. They mostly seem to be Windows store apps (calculator, calendar, mail, camera).  Anyone knows how to fix this?


Trying to identify a short sci-fi story about a human that is "resurrected" by malignant aliens

I'm trying to locate a short sci-fi story I read years ago about a human that is "resurrected" by an arrogant and malignant alien species that discovers him in a "museum" on an earth where the inhabitants, though very advanced, had been wasted by a close encounter (I believe) with a neutron star. He is the third or fourth human they "reconstruct" and it turns out that he is an advanced mentalist, disappearing at the moment of his "resurrection". He outwits the aliens and eventually tricks them into plunging their ship into the sun in order (they think) to prevent him from finding out where they come from. Any suggestions?