I recently ran the iTunes 10 installer in Wine and everything seemed to go well. Then, when I tried to run it, it would constantly crash/and the appearance would be glitchy. After looking at the Wine website, it turns out that iTunes 10 has a 'garbage' rating of Wine compatability.  Now I'm trying to remove/uninstall iTunes, QuickTime, and the other applications that come default with installing iTunes (such as Bonjour, etc.). However, when I run the 'uninstaller' that wine provides for the programs, it instead executes what appears to actually be the original installer! I've tried deleting all the configuration/data files in my Wine's file-system, but to no avail.  Any help is greatly appreciated!  Edit1: After re-running the uninstall process and then rebooting, the program (iTunes 10) still remained installed.


increase LCD screen resolution in Windows 7 beyond its native resolution

In Windows XP, I could use any resolution bigger than the lcd's natural resolution very easily by disabling, "hide resolutions monitor cannot display" option buried in Device Manager. On Windows 7, I have been unable to find something similar.


A Windows equivalent of the Unix tail command

I'm looking for the equivalent of the Unix 'tail' command that will allow me to watch the output of a log file while it is being written to.


How to get this washed out look in lightroom

How to get this low contrast washed flared look for portraits in lightroom


Definition of prime ideals: inclusive or exclusive "or"? with example

The definition I'm working with: Let $R$ be a ring and $P$ be an ideal. Then for any $a,b\in R$, $ab\in P\implies a\in P$ or $b\in P$. We call $P$ a prime ideal. I'm guess that the "or" here is exclusive because if it was inclusive, then there would be a contradiction in the case of $R=\mathbb{Z}$. I'm wondering is there a more abstract example of a prime ideal that uses the inclusive "or"? Edit: the contradiction is that assume $(6)$ is a prime ideal. But $2,3 \notin (6)$ so $(6)$ is not prime.


Where should I ask a beginner question about Git/GitHub

I'm planning an open source project where I want to create several projects which extends each other. But I want the option to change a common base class which should be merged with its parent project but only that shared files the extensions without common files should be independent.  This are some basics questions, but where should I ask that?


Cannot boot from USB disk with "not a COM32R image" error

After installing 11.10 on my Dell Studo 15 (Model 1557) laptop, it started to overheat. Recently it even shutdown twice saying that critical temperature has reached even when I was just idling (not even a single program was open except for Firefox). After learning that it is a problem with 3.0.0 kernel I decided to roll back to 10.04 LTS. I have downloaded the most recent   from ubuntu.com and created a live USB using startup disk creator in 11.10.  But when I am trying to boot from USB I am getting the following error  vesamenu.c32: not a COM32R image   I have installed ubuntu from usb stick a couple of dozen times before this and I think it is not a problem with my hardware. Please tell me what to do.


What are Arguments in Python Class Inheritance used for?

When browsing the source code for the django_filters library, I found a class declaration syntax that I've never seen before: inheritance with arguments. I could not find an explanation in the official python class .  Here is the , snippet below:  class FilterSet(BaseFilterSet, metaclass=FilterSetMetaclass):     pass   what does metaclass=FilterSetMetaclass in the class definition do?


Regex match all strings except one with a certain word

I'm using this for iOS shortcuts, not sure what language that is.   I have text like this  Begin (random characters) a word (random characters) End   This is repeated multiple times.  Begin and End are always the start and finish of the string.  I'm wanting to match every Begin to End group of text that doesn't contain "a word" that I know.   Example:  Begin dghugcdfhnbcd foo sdfyhnvdsd End Begin sdhhnvdsgg bar drykjbcds End   Match the one that doesn't have foo.  I thought this was working but got feedback that it was not.  Begin((?!foo).)*End   Thank you for any help.


Formula $\sum_{k=0} ^n \binom{n}{k}\cdot k^2 $

I'm looking to generalize this to a formula with only n. I have figured out that $\sum_{k=0} ^n \binom{n}{k}\cdot k = n \cdot 2^{n-1}$ but I'm not quite sure how to leverage this to find this formula


#raidctl - Operation not support with volume of this level

I am having problem to create a RAID volume on the internal disks of a Sun Server (Sunf Fire V440)  When I type the below command raidctl -f -c -r 5 c1t0d0 c1t1d0 c1t2d0 c1t3d0  it displaysOperation not support with volume of this level. My controller is "LSI_1030"  Help me out please


I was making a minecraft rig Timys rig v7 and when I went to render it only this rendered. it renders in blender mode to. but the sword and lighting is ugly as heck


Would the Animate Objects spell end an ongoing spell affecting the targeted object(s)?

Example:  can only be cast at a manufactured metal object, and has a duration of "Concentration, up to 1 minute". If the targeted metal object is in contact with a creature, the caster can use a bonus action on subsequent turns to cause damage with it.  turns objects into construct-type creatures. What happens when Animate Objects is cast on a heated shield? Does the shield cool off? Can the first caster use their bonus action to deal damage?  In general, does Animate Objects end ongoing spells, curses, or effects affecting the targeted object(s)? Do those effects come back when Animate Objects ends?


Google sheets split multi-line cell into new rows (+ duplicate surrounding row entries)

I'm compiling a database of business address info, including key staff for each business. The Google spreadsheet I've inherited for this project includes a column for 'key staff' (in column B), with multiple key staff names listed in the same cell, separated by line breaks (ie CHAR(10) ). There is one business per row. The number of lines in the 'key staff' cell varies row-by-row.  My initial sheet looks like this:    I need to do the following to optimize this sheet:   split each multi-line ‘key staff’ cell so each key staff name appears on its own row. This requires that new row/s be inserted beneath the original row. duplicate the data from all other cells on the original row (i.e. from columns A & C:E), so that each new row contains the full data for each business I need an automated process - I'll have about 1000 businesses to process so can't do this with any manual steps   The sheet should then look like this:    Using =TRANSPOSE(SPLIT(B1,CHAR(10))) obviously only goes part of the way - it doesn’t insert new rows and doesn’t duplicate the surrounding column entries. All help gratefully accepted!


I stumbled upon  answer, it has an edit by  ''.  This was  (bold is added):     You access the the property in the wrong way.   But , is a background process right, at least it claims it is on it's profile:       Hi, I'm not really a person.      I'm a background process that helps keep this site clean!   Pretty nice edit for a bot right?  Or wasn't it a bot?


i have a 18 pound turkey can i brine it for 35 hours in a wet brine?

help me please i’m already brining my turkey im 13 trying to cook this turkey. the brine has a small scoop of sugar, some bay leaves, peppercorns, and a few slices of lemon can i keep bring it until thanksgiving or will it affect the texture and taste and ruin my turkey. and how long should i cook it i was thinking 4 maybe 4 1/2 hours but give me some advice please


Can my Dell Inspiron 3443 laptop run ubuntu 16.04?

I have a Dell Inspiron 3443 laptop on which I want to install ubuntu 16.04 LTS. The laptop meets all the specs required for the OS, but on the official Dell support page, it is said to support only windows (7,8.1,10) and ubuntu 14.04, 12.04. I wonder if my laptop truly doesn't support the OS, or it is just that the page was not updated to include the 16.04 version. Note that I bought this computer in February 2016, and at this time ubuntu 16.04 wasn't around.


how to show more entries than the default 16 in zsh?

This is my ~/.zsh/.zshrc -  /home/shirish/.zsh> cat .zshrc # Lines configured by zsh-newuser-install HISTFILE=~/.zsh//.histfile HISTSIZE=10000 SAVEHIST=100000 setopt inc_append_history autocd nomatch notify share_history bindkey -e # End of lines configured by zsh-newuser-install  # display how long all tasks over 10 seconds take export REPORTTIME=10  # The following lines were added by compinstall zstyle :compinstall filename '/home/shirish/.zsh//.zshrc'  autoload -Uz compinit promptinit compinit promptinit # End of lines added by compinstall  #from https://unix.stackexchange.com/questions/332732/removing-strange-characters-from-a-zsh-prompt  export LC_ALL=en_IN.UTF-8 export LANG=en_IN.UTF-8 export LANGUAGE=en_IN.UTF-8  #from https://unix.stackexchange.com/questions/332888/how-to-have-a-longer-xterm-title-in-zsh  autoload -Uz add-zsh-hook  function xterm_title_precmd () {     print -Pn '\e]2;%n@%m %1~\a' }  function xterm_title_preexec () {     print -Pn '\e]2;%n@%m %~ %# '     print -n "${(q)1}\a" }  if [[ "$TERM" == (screen*|xterm*|rxvt*) ]]; then     add-zsh-hook -Uz precmd xterm_title_precmd     add-zsh-hook -Uz preexec xterm_title_preexec fi   prompt bigfade   Now if I try to get history output I get only 16 entries in history from .zsh. What if I want to see all the entries. For some reason it saves/shows only 16, the rest either seem not to be recorded  I do have multiple tabs of the same shell. I dunno if it's a bug or something more that I need to add.


I have an issue which could be a bug, but before reporting it, I want to make sure I'm not doing something wrong.  When watching a movie with VLC on fullscreen, approximately in 10 minutes the screen goes blank. This happens despite having the "Inhibit the power management daemon during playback" option checked. This even happens when I go to the Ubuntu's system settings > Brightness and Lock and set the "Turn screen off when inactive for: " to "Never". (actually, no matter what value I set it to, the screen always goes blank after 10 minutes or so).  The only way I managed to disable the screen blanking is using the command line utility xset: xset -dpms and xset s off (it's possible only one of these is necessary).  Now, one thing that could possibly cause this is that I removed both gnome-screensaver and xscreensaver packages, because I'm not using screensaver. I only use the power-management to blank the screen (I assume it's different thing than screensaver, but I might be wrong). When no VLC us running, the screen blanking works normally even without those packages. That is, the screen goes blank after whatever timeout I set in the Brightness and Lock settings. Only when VLC is playng (and possibly only when in fullscreen), this issue occurs.  So my question is: Is this a bug in VLC (or elsewhere in Ubuntu), or should I install back gnome-screensaver and/or xscreensaver to make it work correctly again?  I have Ubuntu 12.04.


Coalescence of /t/ and /r/ in 'train', 'tram', 'traffic' etc

Could we say that when saying the 'tr' in words like 'train', 'tram' etc, that the /t/ and /r/ often coalesce to make a sound which is more similar to 'tchr'?  I myself definitely do this, but I have not found it documented in any text books that I've read, tho' I'm sure I haven't read them all!  All thoughts/comments much appreciated.  Bob  PS. Apparently "Creating the new tag 'coalesence' requires at least '300 reputation." ...in case anyone is wondering why on earth I didn't tag this post properly.


I am having trouble opening the  client after I have already installed it. I am using . I have installed Steam directly from their website. When I try to open steam, it says: Steam needs to install these additional packages: libgl1-mesa-dri:i386, libgl1:i386, libc6:i386  and asks for my password. I put it in, but now it says: .......... Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package libgl1-mesa-dri:i386 E: Unable to locate package libgl1:i386 E: Unable to locate package libc6:i386 Press return to continue:  I press the return key, it starts running, but then it stops loading and a window pops up that says:  You are missing the following 32-bit libraries, and Steam may not run: libc.so.6  What should I do? I just started using Ubuntu this past week.


How do I go about showing $0 \leq \frac{2x}{\pi} \leq \sin x $ for $x\in[0,\pi/2]$?  I am completely stuck where to start.  Many thanks.  (I see it is a step in the proof of Jordan's lemma, but I'm not interested in this, and the proofs I find do not explain this actual step, ta).


How to run VLC as command line command in windows

When I try to use VLC in command line in Windows, it opens up the VLC GUI. So is there a way I can use it as command line command instead?


Recursively renaming .foo files based on name of accompanying .bar file in multiple folders in Windows 7?

I've just finished creating SHA1 hashes for each album in my MP3 collection using Corz Checksum. It left a .hash file in each folder, as desired. (Each folder is an album.)   However, the hash files it generated all have the name of the folder, for example      The Beatles - 1966 - Revolver.hash    I would like to automatically rename all of these .hash files to match the name of the .m3u playlist file which every folder also contains.  For example the presence of      00 - Revolver.m3u   should cause the hash file to be renamed to      00 - Revolver.hash    Does anyone know of a way to do this with a command line? I'm hoping to find something similar to this:


Ways to prove $ \int_0^\pi dx \frac{\sin^2(n x)}{\sin^2 x} = n\pi$

In how many ways can we prove the following theorem?     $$I(n):= \int_0^\pi dx \frac{\sin^2(n x)}{\sin^2 x} = n\pi$$   Here $n$ is a nonnegative integer.   The proof I found is by considering $I(n+1)-I(n)$, which can be reduced to $$ g(n):= \int_0^\pi dx \frac{\sin(2 n x) \cos x}{\sin x}. $$ I then proved that $g(n)=g(n+1)$, whence $g(n) = g(1) = \pi$. This completes the proof. I was wondering if there is a more direct way to prove it. By 'direct' I mean without deriving auxiliary recursions.


Error when Views are named before the onCreate() method has run

When running this code the application crashes instantly.      Error: java.lang.RuntimeException: Unable to instantiate activity   ComponentInfo{(...).MainActivity}: java.lang.NullPointerException:   Attempt to invoke virtual method 'android.view.Window$Callback   android.view.Window.getCallback()' on a null object reference   Through research I was able to find out the cause of the crash is likely to be that I name two Views before the onCreate() method has run. I could name these Views within the onCreate() method and the following listeners but then the Views cannot be public, so they would be independent from each other which would prevent my App from working as intended. Does someone have any idea on how to prevent this problem without making these Views independent from each other?  MainActivity.java:  public class MainActivity extends AppCompatActivity {     public ConstraintLayout constraintLayout = (ConstraintLayout) findViewById(R.id.constraint_layout0);     LayoutInflater inflater = getLayoutInflater();     public View rectimage3 = inflater.inflate(R.layout.my_rectview, constraintLayout, false);      @Override     protected void onCreate(Bundle savedInstanceState) {         super.onCreate(savedInstanceState);         setContentView(R.layout.activity_main);          final ImageView rectimage = (ImageView) findViewById(R.id.rectimage);          //set Listeners         rectimage.setOnTouchListener(new MySecOnTouchListener());         rectimage3.setOnTouchListener(new MyOnTouchListener());         constraintLayout.setOnDragListener(new MyDragListener());     }      //OnTouchListener of the first Rect     private final class MySecOnTouchListener implements View.OnTouchListener {         public boolean onTouch(View sview, MotionEvent motionEvent){             int action = motionEvent.getAction();             if(action == MotionEvent.ACTION_DOWN);                 rectimage3.setVisibility(View.VISIBLE);                 constraintLayout.addView(rectimage3);                  ClipData data = ClipData.newPlainText("", "");                 View.DragShadowBuilder shadowBuilder = new View.DragShadowBuilder(rectimage3);                 rectimage3.startDrag(data, shadowBuilder, rectimage3, 0);                 rectimage3.setVisibility(View.INVISIBLE);                 return true;             } else{                 return false;             }         }     }      //OnTouchListener of the movable Rects     private final class MyOnTouchListener implements View.OnTouchListener {         public boolean onTouch(View view, MotionEvent motionEvent){             int action = motionEvent.getAction();             if (action == MotionEvent.ACTION_DOWN) {                 ClipData data = ClipData.newPlainText("", "");                 View.DragShadowBuilder shadowBuilder = new View.DragShadowBuilder(view);                 view.startDrag(data, shadowBuilder, view, 0);                 view.setVisibility(View.INVISIBLE);                 return true;             } else {                 return false;             }         }     }      //OnDragListener of the Layout     class MyDragListener implements View.OnDragListener{         @Override         public boolean onDrag(View v, DragEvent event) {             View view = (View) event.getLocalState();              switch (event.getAction()) {                 case DragEvent.ACTION_DRAG_STARTED:                     view.setVisibility(View.VISIBLE);                     break;                 case DragEvent.ACTION_DRAG_LOCATION:                     view.setX(event.getX()-(view.getWidth()/2));                     view.setY(event.getY()-(view.getHeight()/2));                     break;                 case DragEvent.ACTION_DROP:                     break;             }             return true;         }     } }


An Inequality with complex numbers and $1/\pi$

Let $\displaystyle \{z_1,z_2, \ldots, z_n\}$ be $n$ complex numbers such that: $\displaystyle \sum\limits_{k=1}^n|z_k| = 1$  Then we have to show that, there is a subset $S$ of $\{1,2,\ldots,n\}$, such that, $\displaystyle \left|\sum\limits_{k \in S} z_k \right| \ge \frac{1}{\pi}$.  Owing to the symmetry of the expression its easy to see: $$\displaystyle \left|\sum\limits_{k \in S} z_k \right| \ge \frac{1}{4}$$ Since, $1 = \sum\limits_{k=1}^{n} |z_k| \le \sum\limits_{\mathfrak{Re}(z) \ge 0} |\mathfrak{Re} (z_k)|+\sum\limits_{\mathfrak{Re}(z) < 0} |\mathfrak{Re} (z_k)|+\sum\limits_{\mathfrak{Im}(z) \ge 0} |\mathfrak{Im} (z_k)|+\sum\limits_{\mathfrak{Im}(z) < 0} |\mathfrak{Im} (z_k)|$, one of the four summations on the RHS must exceed the others, say wlog it is $\mathfrak{Re}(z) \ge 0$,   then, $\left|\sum\limits_{\mathfrak{Re}(z_k) \ge 0} z_k \right| \ge \left|\sum\limits_{\mathfrak{Re}(z_k) \ge 0} \mathfrak{Re}(z_k) \right| \ge \frac{1}{4}$.  (1) But how do we reach the lower bound $\displaystyle \frac{1}{\pi}$ ?  If we remove the homogeneity condition, we are required to prove, $\displaystyle \left|\sum\limits_{k \in S} z_k \right| \ge \frac{1}{\pi}\sum\limits_{k=1}^n|z_k|$ for a subset $S$ of $\{1,2,\ldots,n\}$.   (2) How do we determine if $1/\pi$ is the best constant here ?


A Tetration is defined as $${^{n}a} = \underbrace{a^{a^{\cdot^{\cdot^{a}}}}}_n$$ or, by a recursion function, $${^{n}a} := \begin{cases} 1 &\text{if }n=0 \\ a^{\left[^{(n-1)}a\right]} &\text{if }n>0 \end{cases} $$ That is, iterated exponentiation (like exponentiation is iterated multiplication). Exponentiation can be expressed as $e^{n\ln a}$   Is there a like way to express Tetrations? That is, a way to calculate for both negative and decimal Tetrations?


How to fix compilation errors that mention "stray ‘\342’" and "stray ‘\200’"?

I wrote this program:  #include<stdio.h> int main() { printf(“Hello World\n”); return 0; }   I saved it as first.c and tried to compile but receiving this problem I have installed even gcc compiler too.  $ gcc first.c -o first1 first.c: In function ‘main’: first.c:4:1: error: stray ‘\342’ in program first.c:4:1: error: stray ‘\200’ in program first.c:4:1: error: stray ‘\234’ in program first.c:4:11: error: ‘Hello’ undeclared (first use in this function) first.c:4:11: note: each undeclared identifier is reported only once for each function  it appears in first.c:4:17: error: expected ‘)’ before ‘World’ first.c:4:17: error: stray ‘\’ in program first.c:4:17: error: stray ‘\342’ in program first.c:4:17: error: stray ‘\200’ in program first.c:4:17: error: stray ‘\235’ in program   How can I fix this problem?


What to plug in first to usb charger when charging: wall outlet or cell phone and why?

I asked this question on Physics StackExchange but was advised to ask it here. When I charge me cell phone or notebook or whatever device what should I plug in first? Should I at first plug in usb charger to the AC wall outlet and only then to the cell phone or vice versa? What are the precise physical arguments for this? And are there any differencies at all? I think it is safer to plug in wall outlet first because of peak charge. Can someone give me a technical explanation? Thanks in advance.


Will magnifying light make it more powerful?

I know there is a physics law that says a light magnification can't be more hot than the light source itself, but can it be brighter at the least?


How to install Ubuntu on a laptop with Windows 10

I want to install Ubuntu and remove Windows 10 , but when you restart the PC does not read the Ubuntu installer that is on a bootable USB.


Minecraft: Is there a way to activate command blocks even if you're not within range?

I'm trying to create a unique skywars in vanilla minecraft by using command blocks, but the (clone) command I'm using to reset the map will only activate when someone is within range.  For example if I use the command (setblock x y z redstone_block) to run the clone command, I have to be within a certain distance for the clone to actually do its intended job.  For a normal map, "spawn chunks" would work, but I have made my skywars in the end so the players would immediately fall to their deaths.     Is there a way to activate the command after the game is finished and no one is still near the command blocks?


Is there any useful purpose for directories with permissions -w-?

Being aware of  I wonder whether there is any useful purpose for write-only directories, i.e. directories with permissions -w-.  Any directory-"writing" operation I know of (such as creat, mkdir, link, unlink, symlink, rename) fails with permissions -w- but works perfectly with permissions -wx.


We know, the rockets in space use Newton's 3rd law to increase their velocity and hence move. What I don't understand is how it is possible in space aka vacuum-state without air? From what I know, Joule's "Free Expansion of Gas" says that free-expansion compresses the gas and is therefore "affected" by vacuum so it can't make the rocket move as the gas will have zero press/force. Could someone please explain me how rockets do really work and the above-mentioned statement?   Actually, please have a look at this site:   Not: The site appears to include some conspiracy theory thingummies, but made me wonder anyway.


With respect to the methods in sun.misc.Unsafe operating on boolean values, what is the size of a boolean data read or written to and from memory?

What is the size of boolean read or written, to and from memory, by the methods in Unsafe like Unsafe.putBoolean, Unsafe.getBoolean, etc?


"element identification techniques" or "techniques of element identification"

I don't know how this phenomenon is called.  Simply put, I can either put the noun to the end and place it's properties before, or I can use "of". What is the difference, is some form more formal and suitable for academic writing?


Why does the atmosphere rotate along with the earth?

I was reading somewhere about a really cheap way of travelling: using balloons to get ourselves away from the surface of the earth. The idea held that because the earth rotates, we should be able to land in a different place after some time. As we all know, this doesn't happen.  Someone said that the reason why this doesn't happen is because the atmosphere (air, clouds etc.) also revolves around the earth (with the same angular velocity as the earth's rotation). Since we are also part of the atmosphere, our position doesn't change relatively.  Well, I'm not convinced with that answer. Why does the atmosphere rotate along with earth?  Gravitational force is towards the centre of the earth, but I don't see how it's making the atmosphere rotate.


How can I fix the color of blue photos using settings from "good" photos?

Imagine how photos with a bad blue filter look. I can recolor those pictures with the color filters from any image manipulation program like gimp.  Now my question is: can I "grab" the right settings from a "good" picture and apply these colors to the pictures that have that blue filter.


Regular expression for contents of parenthesis in Racket

How can I get contents of parenthesis in Racket? Contents may have more parenthesis. I tried:  (regexp-match #rx"((.*))" "(check)")   But the output has "(check)" three times rather than one:  '("(check)" "(check)" "(check)")   And I want only "check" and not "(check)".  Edit: for nested parenthesis, the inner block should be returned. Hence (a (1 2) c) should return "a (1 2) c".


How to label using just numbers from start of text field?

In ArcMAP 10.2, I am trying to format the labels on my map.   If the label is   1402 Bowie Road  But  I want only to display numbers:  1402   What is the expression to create this?


I am trying to run a rather simple code using tikz and a pgf library. My simple code is  \documentclass{book} \usepackage[explicit]{titlesec} \usepackage{fourier} \usepackage{tikz} \usepackage{epigraph} \usepgflibrary{qrr.shapes.openrectangle}  \begin{document}      This is a test document  \end{document}   This code was copied from Gonzalo Medina's answer in . When I run this code I get the error     '!Package pgf Error: I did not find the pgf library qrr.shapes.openrectangle'.   I am using TeXLive-2014 (actually I installed it yesterday) but nonetheless I updated all packages just in case, but that didn't seem to help.  Any idea how to use this specific library and why it cannot be found in the texmf trees?


Set two primary keys but reset the second primary key for each first primary key value - SQL Server

I am trying to make a comment section for products. I am setting two primary keys, the CommentID and the ProductID for the Comments table. But what I want to do with the primary keys is as follows: for each ProductID, the CommentID should start counting from the beginning. So for ProductID = 1, the CommentID should start from 1 and be incremented, for ProductID = 2, the CommentID should also start from 1 and be incremented, and so on. Same time the ProductID is the foreign key that points on Product table.  Can someone guide me how to archive that, is it a good practice or does a better workaround exist except making two primary keys?  Thank you!


Short story about aliens who invade Earth and are baffled by the climate

I'm trying to identify a short story I read within the last two years about aliens who invade Earth while the Cold War is occurring.  They are baffled by the strange white stuff that falls from the sky and freezes them, the moving winds in the tropics that destroy their bases and other aspects of climate.  The aliens focus their attack on the United States, but all Earth unites to fight them off, being ultimately unsuccessful.  The aliens build their base on an uninhabited island to sign a treaty with Earth, where it is agreed that Martians will inhabit the Earth for the six months each year where it's not snow season or hurricane season.  It is revealed at the very end that the uninhabited island the aliens have built their base on is      Krakatoa.   The story is told primarily from the alien war general's point of view, and may have been a Baen story.  (Even though I read it in the last two years, I got the impression that it was a lot older - publish date probably sometime in the last millenium).


What font is used in this document ? It looks like CM but CM is lighter than this font?


Word for the possibility of being many things at once

I'm searching for a term describing the possibility of an entity to be seen many different things at the same time. The general concept of being able to categorize an entity into several context-dependent abstractions.  A car is not only a car, but can be:   A vehicle A toy A risk A pollutant A Faraday's cage A source of taxation A trap A tool A weapon   Words that does not capture the proper meaning:   A car is flexible. A car is adaptable. A car is versatile.   Words that might work   Multifaceted Multi-sided   I need a general noun for describing this property in a ontological context   Multifacetedness (Does not sound natural) Multi-sidedness (Even less natural)   Let's try some sentences  You could be anything you want, [multifacetedness] is universal.  We are not allowing [multifacetedness] in this game, you can only be one thing at a time.  Philosophers all agree, [multifacetedness] is fundamental in how we perceive and make sense of the world.  Is there a better word for this?


As seen in the above image, in my Stack Overflow account, +2 reputation is not showing in "Exact Different between "Content-Provider" and "SQLite Database"" question, but there should be +2 reputation highlighted.  I dont know why +2 reputation is not showing up.


Past Progressive vs Past Perfect Progressive in the sentence below

Do both sentences (below) have the same meaning?  He was doing landscape work before he was hired by the taxi company. He had been doing landscape work before he was hired by the taxi company.


I'm having an error while trying to install polynom package

First, I use TeXstudio and I have MikTeX 2.9.    I tried to make TeXstudio automatically install it but it gives me an error saying it cannot find polynom.sty. At this point I go around the internet trying to find a solution and I find it. In a few words, I have to install the package manually by first downloading the files from CTAN, which I did, and then open the two files .dtx and .ins with my editor and compile them, which I did but that gives me this error:    Could not start Default Compiler:PdfLaTeX:   pdflatex.exe -synctex=1 -interaction=nonstopmode "polynom".tex.     I also ended up with a texput.txt saying this:    This is pdfTeX, Version 3.14159265-2.6-1.40.16 (MiKTeX 2.9) (preloaded format=pdflatex 2016.4.15)  28 MAR 2017 15:30   entering extended mode   **polynom.tex  ! Emergency stop.   <*> polynom.tex  *** (job aborted, file error in nonstop mode)   Here is how much of TeX's memory you used:   2 strings out of 493634   17 string characters out of 3141299   52604 words of memory out of 3000000   3491 multiletter control sequences out of 15000+200000   3640 words of font info for 14 fonts, out of 3000000 for 9000   1025 hyphenation exceptions out of 8191   0i,0n,0p,1b,6s stack positions out of 5000i,500n,10000p,200000b,50000s !  ==> Fatal error occurred, no output PDF file produced!   I don't really understand what's the problem. Can someone help me?


jQuery setTimeout / delay in loop + mouseenter

I'm trying to achieve my dream in drawing useless bullshit. But after learning jQuery in 10 minutes, I ran into the problem that the delay function does not work as it should.      So, I have 500 black small divs with class "luls". The idea is that when you hover over them with a mouse, they light up in a random color, and after a certain time they take back the black color. BUT they NOT.    Take a .  $(document).ready(function() {     $( ".luls" ).each(function(index) {         $(this).mouseenter(function() {             // It's just a random color function, do not focus on it.                            var hue = 'rgb(' + (Math.floor((256-199)*Math.random()) + 200) + ',' + (Math.floor((256-199)*Math.random()) + 200) + ',' + (Math.floor((256-199)*Math.random()) + 200) + ')';             $(this).css("background-color", hue);         });         setTimeout(function() {             $(this).css('background-color', 'black');         }, 1000);     }); });   I tried to use delay() and setTimeout, even mouseover, but it does not work. Need your help.


Why don't the nuclei have an electric dipole moment?

Until yesterday I thought they have. Googling a little bit around the measured values, I've found nothing.  As I've heard on the , the nuclei don't have an EDM. Although it would be possible by the symmetry violations of the weak interaction, it doesn't happen.  But I am asking not for the EDM due to weak asymmetry. I am asking for the lack of the EDM due to the asymmetric charge distribution in them.  Nuclei have a lot of elementary particles, interacting in quite complex ways (strong, EM and weakly). Why should the charges be distributed in them always to a 0 EDM? What is the mechanism, or what is the reason, to zero out any EDM in them?


I was debating with one of my collegues on OpenLayers v/s Leaflet. I made a point that OpenLayers is much better API if we wish to build a project, where you need direct connectivity to the Geoserver and PostGIS.  Then I found , which looks pretty new but has the features of connectivity with the Geoserver and PostGIS.  So my project details are as follows,   Use the map interface to fetch Feature Info Create a customized tool that takes the lat/lon from user as to where he/she clicks on the map and then fetches the Climate Data from the raster (which is handled by a py script on the server) Allows user to upload excel, which is sent to the py script, which returns a GeoJSON, which creates Vector Features on the map Allow user to create vector polygons, which will fetch the Features it intersects from the WFS Layer. Fetches Layer from the PostGIS Datastore on GeoServer and displays the layers on the map.   So now I am confused on which is better and why using OpenLayers over Leaflet makes more sense or not?


Trouble with testing IllegalArgumentException

I am having trouble with passing tests for my IllegalArgumentException. When no object is passed into my method, the IllegalArgumentException will not happen. public double distanceTo(Point otherPoint) {     int x = (otherPoint.x - this.x);     int y = (otherPoint.y - this.y);     double xDbl = Math.pow(x, 2);     double yDbl = Math.pow(y, 2);     if (otherPoint!=null) {         return Math.hypot(xDbl,yDbl);     } else {         throw new IllegalArgumentException("No value for otherPoint object");     } }


Showing a Normal and a Chi square are independent

Student's t distribution is defined as the ratio of a standard normally distributed random variable and the square root of a Chi-square distributed random variable divided by its degrees of freedom, given that they are independent. In formulas one can write $\frac{Z}{\sqrt \frac{U}{df}}$, where $Z$ is $N(0,1)$ and $U$ is $\chi^2_{df}$.   In showing that this statement is true, I arrived at the point in which I have $\frac{(n-1)S^2}{\sigma^2}\sim\chi^2_{n-1}$ and $\frac{\bar{X}-\mu}{\frac{\sigma}{\sqrt n}}\sim N(0,1)$. Then, following the definition, we would have that  \begin{gather} \frac{\frac{\bar{X}-\mu}{\frac{\sigma}{\sqrt n}}}{\sqrt\frac{\frac{(n-1)S^2}{\sigma^2}}{n-1}} \end{gather}  is distributed as a $t_{n-1}$. But I am stuck at how to prove than this two random variables are independent between them.We covered a result about independence in the case of two Chi-square random variables and I thought of seeing the standard Normal as the square of a Chi-square random variable but I am afraid of it being mathematically sacrilegious.  Do you have any hint?


Pass An Instantiated System.Type as a Type Parameter for a Generic Class

The title is kind of obscure. What I want to know is if this is possible:  string typeName = <read type name from somwhere>; Type myType = Type.GetType(typeName);  MyGenericClass<myType> myGenericClass = new MyGenericClass<myType>();   Obviously, MyGenericClass is described as:  public class MyGenericClass<T>   Right now, the compiler complains that 'The type or namespace 'myType' could not be found." There has got to be a way to do this.


Why is it so difficult to pull an immersed mug out of the water?

Suppose I put a mug in the water and then tilt it so that the water gets inside. It then floats due to buoyant force. But if I try to pull it out then a lot of force is needed. That's due to suction? What exactly happens at the moment when the force I apply is enough to pull the mug out? And what causes the loud pop sound when that happens?


Do you know the cafe down the street? I always go there after work. You should drop by/in someday.   Can both "by" and "in" be used here? Is there a difference between them? Which one is more natural?


C# how to detect which keyboard is pressed?

I am trying to detect which keyboard is pressed in a console application when there are more than one keyboard inputs. if there are two keyboards like laptops default keyboard and wireless keyboard is attached in my case if I press any key on any keyboard it shows this.key is press but I need this.key from this keyboard is pressed  in this code, it detects only the key  public class Program {     public static void Main()     {          ConsoleKeyInfo keyinfo;         do         {             keyinfo = Console.ReadKey();             Console.WriteLine(keyinfo.Key + " was pressed" + );         }         while (keyinfo.Key != ConsoleKey.X);     } }


Is it possible to use the minecraft /setblock command in a random place?

I'm trying to make a command to give you a stick with knockback 50000 that uses the TNT yeeter mod for yeet sound and im using the /scoreboard objectives add block (random location) command_block{command:...}stat.useItem.minecraft.carrot_on_a_stick but i don't know how i can set a random location. Does anyone know how I can do this? Also please point out any mistakes there may be. :)


so i just started learning this subject. i undestand the basics of it but can't seem to understand how to prove a curtain claim on it.  for example i received a question as homework that i would really appreaciate it if someone could help me with it, please explain it step by step:   $A \subset \mathbb R$ has an upper bound. $B = \{ -a \mid a \in A\}$   prove that $B$ has a lower bound and that $\inf B = -\sup A$.  please help.. thank you.


Attempting to install PHP 5.6 on Ubuntu 14.04

I am attempting to install PHP 5.6 on Ubuntu 14.04. I have tried a whole raft of different things and none of them work. To start with I have tried to download via this repo:  sudo add-apt-repository ppa:ondrej/php5-5.6  Followed by:  sudo apt install php5  As most of the Google results I can find tell me to do, but when I check php -v I find I am still on 5.9.9, which is no use for what I need.  I have also tried:  sudo apt install php5.6  As I have seen listed elsewhere, but I just get a message saying the repository does not exist.  I have also tried installing using this repository:   sudo add-apt-repository ppa:ondrej/php5  As listed in this question:   But the repository doesn't appear to exist any more.  I have also tried installing PHP 5.6.10 and 5.6.12 from tarballs, but I can't seem to get the installation instructions contained within the tarballs to work, and running either make or make install from within the directory that contains Makefile.frag, Makefile.gov etc does nothing.  Is there another way to install the required version of PHP, or can anyone perhaps give me instructions on how to install either of the above tarballs now I have unzipped and untarred them? I found a guide suggesting to find the 'dbase' folder but this does not appear to exist with these particular versions of PHP.  I have also tried installing PHP 7.0 but have found this doesn't work with the Laravel repository I need to work with (I have also tried using Vagrant Homestead to install the right version of PHP, but this has produced other issues on my system).  I have attempted to run   ./configure make make install   In the root directory the tarball has untarred to, but although the ./configure seems to work fine, when I run make I see:     make: *** No targets specified and no makefile found. Stop.   I have already tried running:  sudo apt-get install libapache2-mod-php5.6   As per the answer to the linked to similar question marked as possible duplicate of mine. Which results in this output:  Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package libapache2-mod-php5.6 E: Couldn't find any package by regex 'libapache2-mod-php5.6'"   Even after adding this repository:  sudo add-apt-repository ppa:ondrej/apache2


Play/Pause option for iTunes instead of global media for TouchBar

I have always liked my play/pause button to always affect my iTunes music and never any other application.  Since before macOS High Sierra, the media keys on the function bar always used to control iTunes. This was great as it allowed me to have full control over my music. that is, play music; find a YouTube video, pause music, start YouTube video. That YouTube video would then end then I would be able to play my music again.  Now since High Sierra, that doesn't happen. If I have a YouTube video up, it controls that instead of my music. This means that I have to open up iTunes, then click the play button and go back to Safari. I fixed this by using BetterTouchTool to reprogram the function buttons to bring back the pre High Sierra functionality.  Today, with the TouchBar, I am back with the same issue. Yes, I can use BetterTouchTool but now that requires two clicks. One to activate the BTT controller strips and another to press the play/pause button.  Is it posible to have a global button in the TouchBar controls strip that controls iTunes only?


Is there a option to search within manpages?


Automatically add ProductB once productA is manually added to Opportunity

I was trying to accomplish this through a trigger, but its not really working. Is there a way to get this done through Process Builder? If so, what is that process?  I'm trying to have ProductB being added to the opportunity automatically once ProductA is manually added to the opportunity.  Also, is there a way to have the $ amount of ProductB being 0.5% of ProductA?  Trigger that I have so far:  trigger Attempt1 on OpportunityLineItem (after insert) { List<OpportunityLineItem> oliList = new List<OpportunityLineItem>();  for( OpportunityLineItem item: [SELECT  OpportunityId,                                          Name                                  FROM    OpportunityLineItem                                 WHERE   Id = :Trigger.new AND                                          Name = 'NAME OF PRODUCTA'])  {   oliList.add(new OpportunityLineItem(     OpportunityId = item.OpportunityId,      PricebookEntryId ='01uA000000QPDldEAt',     Quantity = 1,     UnitPrice = 25)   );  }  Insert oliList; }


Crossing out an unmarked expired US Visa in my Indian Passport

Is it fine to strike off Expired US Visas in an old Indian Passport? I have some US Visas which the consulate itself has marked CWOP[Cancelled Without Prejudice], while some of them as old as 2015 expiry are not marked off. This creates confusion sometimes at the airlines when they take time to find the valid(unexpired Visa). This is in a Expired Indian Passport with one Valid Visa. I have a new Passport which is never used as the old one just expired.


what is the value of Rin? (different problem)

I calculated voltage at Vx. How to know the input impedance? V- is at virtual gnd. Will it be Ra+(Rb||R1).  My question of input impedance seeing from node Vs is right or should we consider only from node Vx. I’m trying to intuitively understand opamps.


regular expression find all the http within [test](http://)

I have tried hrs for this regex and couldn't sort it out, and seek for some help.  /\[.*\]\((https?:\/\/(?:www\.|(?!www))[^\s\.]+\.[^\s]{2,}|www\.[^\s]+\.[^\s]{2,})/g   Here is the link to my regex page     I try to pick out all the links in the sentence and example like this  [link](http://test.com), but it keep select both links all together


I'm trying to convert a double to a string in Swift and experiencing a significant loss in precision. Here's my code:      var myDouble : Double = 23.00      myDouble = myDouble / 100      var myString : String = String(format: "%.20f", myDouble)      println(myString)   expected result: 0.23000000000000000000  actual result: 0.23000000000000000999  Any idea what's going on?  Thanks! Mike


I am writing a file to hdfs using java using the following code:      import java.io.BufferedInputStream; import java.io.FileInputStream; import java.io.InputStream; import java.io.OutputStream; import java.net.URI;  import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.fs.FileSystem; import org.apache.hadoop.fs.Path; import org.apache.hadoop.io.IOUtils;   public class WriteInrix {     public static void main(String[] args) throws Exception {          //Source file in the local file system         String localSrc = args[0];         //Destination file in HDFS         String dst = args[1];          //Input stream for the file in local file system to be written to HDFS         InputStream in = new BufferedInputStream(new FileInputStream(localSrc));          //Get configuration of Hadoop system         Configuration conf = new Configuration();         System.out.println("Connecting to -- "+conf.get("fs.defaultFS"));          //Destination file in HDFS         FileSystem fs = FileSystem.get(URI.create(dst), conf);         OutputStream out = fs.create(new Path(dst));          //Copy file from local to HDFS         IOUtils.copyBytes(in, out, 4096, true);          System.out.println(dst + " copied to HDFS");          } }   But I am getting the following exception     Exception in thread "main" java.lang.NoClassDefFoundError:   org/apache/hadoop/fs/   FSDataOutputStream           at java.lang.Class.getDeclaredMethods0(Native Method)           at java.lang.Class.privateGetDeclaredMethods(Class.java:2625)           at java.lang.Class.getMethod0(Class.java:2866)           at java.lang.Class.getMethod(Class.java:1676)           at sun.launcher.LauncherHelper.getMainMethod(LauncherHelper.java:494)           at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:486)   Caused by: java.lang.ClassNotFoundException:   org.apache.hadoop.fs.FSDataOutputSt   ream           at java.net.URLClassLoader$1.run(URLClassLoader.java:366)           at java.net.URLClassLoader$1.run(URLClassLoader.java:355)           at java.security.AccessController.doPrivileged(Native Method)           at java.net.URLClassLoader.findClass(URLClassLoader.java:354)           at java.lang.ClassLoader.loadClass(ClassLoader.java:425)           at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)           at java.lang.ClassLoader.loadClass(ClassLoader.java:358)           ... 6 more   Why I am getting the exception? I just copied the source code from the


Workaround for missing rm -I option on OSX?

I'd like to do this, on OSX:  alias rm="rm -I"   In GNU rm, this means that rm will prompt if it's recursive or if it's deleting three or more files, but not if it's just deleting one or two files. However, OSX (Mavericks) rm doesn't support this.  Is there a workaround so that rm will prompt, once, when deleting several files, but won't prompt for single files, or for every single file in mass deletes?


remove double quotes from string using javascript

I need to replace double quotes from string, in this case string declare to the variable like below  var string = "false";   I need convert like this,  var str = false;   because I need boolean value.  This is I have already tried,  var string= data.creditAllowed; var str= string.replace(/"/g, '\\"');   but I have get like this,  str = "false";


how many times in average do I have to roll a dice to get a 1?

I've read that the answer to such a problem is the inverse probability. So here getting a one has probably 1/6, so the number of tries you would be expected to run in order to get a 1 is 6.  I'm not sure I understand this.


How can I detect if a browser is blocking a popup?

Occasionally, I've come across a webpage that tries to pop open a new window (for user input, or something important), but the popup blocker prevents this from happening.  What methods can the calling window use to make sure the new window launched properly?


I've recently installed Ubuntu 20.04.1 LTS on a external SSD, which I've attached to my laptop (Dell XPS 13) and boot from at the grub menu. Everything works as expected, apart from the WiFi. Under Settings > Network there's no WiFi options at all, nothing even indicating an error (just VPN options). I don't know where to start in getting this working. Also, if it's relevant, I've disabled fast start-up because I heard this causes problems. I'm running a dual boot with Windows. I've tried the top solution posted , but this had no effect. I saw  about how to debug WiFi issues and ran the suggested script. The readout from the script is . I have no idea how to debug something like this and don't know where to start trying to interpret the readout from the script. If someone is able to point me in the direction of the error of show me how to debug this that would be much appreciated.


How to remove linux mint useless login screen?

I've managed to remove password on login but can't remove this useless screen, so every time I boot up I have to press the "Log in" button to bypass it:    Following on from a comment suggestion I've tried the solutions listed at  but nothing has changed. I edited lightdm.conf file to include autologin-enable=true which wasn't there, and nothing has changed  Perhaps it's because I'm running Linux Mint 19 Tara, Cinnamon 3.8.7 whereas the suggested duplicate is for Mint 18. I don't know.


Protected Question does not show Add an Answer button

This question is protected. To answer it, I must have at least 10 reputation.        Ignoring the association bonus of 100, I should .  Yet, the Android app does not show the blue "Add an Answer" button at the bottom. The app also does not show the protection status.  If I view the question in the desktop or mobile browser (and I'm signed in), I can add an answer there.


How can I get my view inside of an object so I can edit the inside in edit mode? For example, you create a block, but you want to edit how it looks inside (like a house), how can I do that?


`\iffmode` fails for first token in matrix cells

\iffmode seems to fail for the first token in every matrix cell. Here is a minimal working example.  \documentclass[margin=5mm]{standalone} \usepackage{mathtools}  \newcommand{\foo}{%     \ifmmode A%     \else B%     \fi% }  \begin{document}     \foo\foo\foo\     $     \begin{matrix}     \foo\foo\foo& x\foo\\     \foo&x\\     \end{matrix}     $ \end{document}   What I expect it to output is this    Yet, it outputs this    How should I solve this problem?


My Ubuntu cloud server has left only 900MB of disk space.   I'll just empty the directory /tmp and wondering if there is any other location to clean up.


Suppose now we are trying to explain to students who do not know complex numbers, how do we distinguish $i$ and $-i$ to them? They will object that they both squared to $-1$ and thus they are indistinguishable. Is there a way of explaining this in an elementary way without go into introductory things in complex analysis?


I need a A substitue for Bash aliases (something that behaves basically like an alias but isn't an alias).  The reason I need such a substitute is because scripts cannot utilize aliases. That is to say --- an alias works fine when I execute it manually in Bash, but it fails to work when runned as part of a script. The solution I know of is to put the aliases in a temporary file but I don't want that approach.  Is there any substitute / similar command-shortcut I could utilize, some "next generation alias" (to give a metaphor) that will behave just like an alias but will also be naturally accessible for scripts (after its file was sourced)?


Why can't I see the bottom of my F3 thing in minecraft

When I press F3 it only shows chunk-relative and up. How do I get the bottom back?


Is it correct to say the Neural Networks are an alternative way of performing Maximum Likelihood Estimation? if not, why?

We often say that minimizing the (negative) cross-entropy error is the same as maximizing the likelihood. So can we say that NN are just an alternative way of performing Maximum Likelihood Estimation? if not, why?


Windows 7 product key does not work on Windows 10

I just did a fresh Window 10 installation from .iso files on the computer I was running Windows 7 on before. I have the original Windows 7 DVD's, with a valid key that I was using before.  Now I tried to enter the key of my Windows 7 DVD, but Windows 10 says it's not valid.  As far as I knew we were able to use those Win 7 keys on Win 10. What is wrong?


Bug: Can't answer protected question if received Association Bonus, earned 10+ rep and have less than 111 rep now

I have association bonus on superuser.com. After that I've started a bounty worst of 50 rep and earned more than 10 rep. Now I have 89 rep (38 of which is earned at superuser which is more than 10) but still not able to answer protected questions.  So, currently new user with 10 rep can answer protected question and I with 89 (38) rep can't.   How does it work now: after registration on new Stack Exchange site you get 101 rep Association Bonus and are able to answer protected questions only when you have 111+ rep on that site. How should it work: after registration on new stackexchange site you get 101 rep Association Bonus and are able to answer protected questions only when you have earned 10+ rep on that site.


At least in KiCad, the footprints of through-hole pin headers have one squared annular “ring”, the other ones are round:    What does the square indicate?  (Also I’m wondering if there is perhaps a convention of connecting GND to it.)


Is Unity going to be replaced by GNOME 3 or is it a hint of a new GNOME fork?

I recently heard of the disinvestment in Unity 8 by Canonical and that they are looking at Gnome Project. Does it means that Unity will be phased out Ubuntu totally or is a indication of yet another GNOME fork??


How can I flip over the values in my raster legend

I want to flip over the values in my legend so that I have Low : 0 at the top, and High : 199998 at the bottom. I have manually edited the text in the table of contents, however this doesn't change the data values, they remain the same. I have gone to the symbology properties to try and edit the labels, but when I try to edit the  in  'labelling' it reverts back to the original value when I go to change the next value.


Safe Temperature for GPU and CPU while gaming in laptop

I currently have the ASUS ROG GL553VE. and while gaming, i usually open up ROG gaming center and Real temp. what i noticed is that my GPU usually gets 84C and my CPU's get about 75-89C. is that kinda normal? i am playing with a cooling pad too. i ask other people about this problem, and some said that its not normal since its too hot, and some said that it is normal since gaming laptop really does get hot when playing.


How can we assume that reaching the speed of light slows down time?

How can we assume that gaining the speed of light slows down time?


how to fix a illustrator .jpeg file from being blurry?

I am making my son's birthday invitation on illustrator. It looks perfectly fine until I save it for web so it will be a .jpeg so I can print it. Once it is a .jpeg it looks blurry. I am planing to print this like a photo. I have made things like this before just never ran in to a problem like this. How do I fix this so when they are printed it, it will be clear?  Just scared they will come out blurry when I print.


Tikz: Drawing Riemann zeta function on Complex Plane

I'm trying to draw the Riemann zeta function in the complex plane using LaTeX (with TikZ). I want to fill the convergent section of the graph with dashed lines or with color. I'm having a hard time trying to mimic the following sketch with LaTeX:  Would anyone be willing to tell me how, or provide me with some reference?


I am about to receive a considerable(for me, anyway) amount of money- about $100k- and really have no idea what to do with it to make it grow even larger.  Of course I want to pay off credit card debt($6k), and student loans($40k). I would also like to set aside an 'Emergency Fund,' donate to one or two causes I support, and travel(not extravagently, just see everything this world has to offer).  What do I do with the rest, say about $40k? I'm a freelancer, so some sort of financial security is important to me. Also, I'm VERY interested in safe(is there such a thing?) ways to make this small wealth grow into larger sums.  ETA: I am young, just graduated college. I have no desires to ever own a home, or any other large, time and money consuming item. And it's not that I want to necessarily do anything with the money. I just want it to grow so that I can stabilize and brighten my future, I just don't know how to do that.


How to tell if two matrices are similar?

Two n-by-n matrices A and B are called similar if $$      \! B = P^{-1} A P $$ for some invertible n-by-n matrix P.      Similar matrices share many properties:         Rank   Determinant   Trace   Eigenvalues (though the eigenvectors will in general be different)   Characteristic polynomial   Minimal polynomial (among the other similarity invariants in the Smith normal form)   Elementary divisors      Given two square matrices A and B, how would you tell if they are similar?   Constructing a $P$ in the definition seems difficult even if we know they are similar, does it? Not to mention, use this way to tell if they are similar. Are there some properties of similar matrices that can characterize similar matrices?   Thanks!


Visit to US before F1 using the Visa Waiver Program

I am going to start a phd at the US with an F1 visa. University told me that I could enter the US only 30 days before the date on I-20. Since English is not my first language (and this would be a big change in my life) I would like to go there by June.  The thing is that I have an European passport with a valid ESTA. My plan would be to arrive with this passport, stay 4-6 weeks , go to Canada for a short vacation (maybe flight maybe by land) and come back to the USA with F1 visa.  I have two questions about this:  1) is this possible?   2) If yes, how could I justify knowing I will lose my come-back flight during my first entry? (I would purchase round trip because one-way are too expensive, probably with less than 90 days difference)


the active button border is so thin I can barely see it (see attached image). Is there a way to change this to a thicker border or to a fully colored active button?


Accidentally deleted my /etc/init.d folder from system

I know this is really bad, but I have accidentally deleted the init.d folder from my system. I am using VMWare player to load Ubuntu 14.04 LTS. Now my system is not starting properly. I don't have CD to boot from.  Can anyone tell me how to get this folder back by any means?


Is there such thing as a case-weighted PCA?

Say I have 300 samples from a population containing two groups, A and B, and data for several variables. I have 150 from Group A and 150 from Group B. However, I know that Group A makes up roughly 20% of the population and group B makes up 80% and the two groups differ on the variables in question.  Is there a way to weight the PCA by cases to make it more representative of the population?  Would it be enough to just to do a weighted standardization?


What are the rules for moderator re-appointment after suspension?

It seems to be Stack Exchange's policy, that moderators are elected for life and can also be reinstated when they wish to continue their duties after stepping down. ().  I have now heard of/seen two cases of moderators stepping down from one site in good terms and later getting suspended (on their or any other site).  There is a general rule that a user must not have been suspended for a year before nominating as a candidate in any moderator election ().  How do these rules play together? If a moderator left their position under good terms and then later got suspended, can they request their privileges back?


How to represent rows as column from details table?

I work on SQL Server 2012 and I have an issue: I can't represent rows as columns. I need to represent code type from details table to display as column with values of count parts from details table, join between master and details by plid. Every plid have a group of code type so instead of represent code type as rows, I will represent it as columns. Columns will have header as code type and content column will be count parts. How to do that? create table #master  (  zplid int,  zplidname  nvarchar(50)  )  insert into #master(zplid,zplidname)   values  (4124,'tetanium'),  (4125,'FilmCapacitor'),  (4145,'CeramicCapacitor'),  (4170,'Holetransistor'),  (4190,'resistor')   create table #details  (  zplid int,  CodeType  int,  CountParts int  )  insert into #details(zplid,CodeType,CountParts)   values  (4124,9089,9011),  (4124,7498,7000),  (4125,9089,2000),  (4125,7498,1000),  (4145,9089,3000),  (4145,7498,8500),  (4170,9089,7600),  (4170,7498,6600),  (4190,9089,9001),  (4190,7498,9003)  Result:


Methods of Computing the Inverse of Y Mod X

I was wondering what methods exist for computing the inverse of Y mod X? Of these, which is the most efficient (time-wise)? I am aware of the Extended Euclidean Algorithm already, just curious what else is out there. Additionally, do we have a discrete derivative for the inverse of Y mod X? Thanks!


Are all continuous one one functions differentiable?

I was reading about one one functions and found out that they cannot have maxima or minima except at endpoints of domain. So their derivative , if it exists,  must not change it sign , i.e. , the function should be either strictly increasing or strictly decreasing. From this I've a feeling that all continuous one one functions must be differentiable . Is this true?


Padding a number in a filename to a fixed length

I have a directory of files such as:  file.1.png file.2.png … file.10.png … file.1000.png file.1001.png …   How can I pad the number to 4 digits? It should end up like this:  file.0001.png file.0002.png … file.0010.png … file.1000.png file.1001.png …


I have a list of objectsList<Batch> batchesList new List<Batch>();with fields  string orderNo and int lineNo   I print "orderNo-lineNo"  I want to sort it by orderNo then lineNo. The problem I have is that using linq's sort(), this will sort as a string, thus 11AG131-13 would actually come before 11AG131-2  batchesList.Sort((x, y) => (x.orderNo + x.lineNo).CompareTo(y.orderNo + y.lineNo));   Thanks for help


Keyboard switching, multiple languages, define keyboard sequence for each

I am using Ubuntu 14.04 and have defined 4 languages. I am currently using left alt-shift to switch between them.   I would like though to define a specific key sequence for each one of the languages (in windows this is possible). For example, press Ctrl+1 for English, Ctrl+2 for Spanish, Ctrl+3 for German, etc.   Anybody knows a way to do that?


I can't make my string entireFileText test to see if it is the same as Email.  I think I'm missing something...  if(entireFileText == Email) {                         JOptionPane.showMessageDialog(frame, "Welcome back!", "Confirmation", JOptionPane.INFORMATION_MESSAGE);                         }else{                             System.out.println("oops");                         }


In what circumstances does Mithral Armor count as one weight category less, and when does it not?

counts as one armor weight category less (heavy, medium, light) for "purposes of movement and other limitations... which are left unspecified.   An example of where this might come up: Armor Crystals; which can only be put on certain weight categories of armors.   What other circumstances will cause this problem, and which way does this interaction fall?


Can I skip Mass Effect 1 and go to Mass Effect 2

I have mass effect 1 on the Xbox 360, recently got myself a high end gaming PC and have been looking at the three game collection.  Have been told that the second one is much better than the first, question is:  Can i skip playing number 1 and just go straight to 2? Is there a major plot line etc that carries over and I will be sitting there scratching my head? Generally speaking I like to play a game from the start, but after six attempts on the Xbox I hate it. Is it different on the PC?  I know 2 - 3 the save games can carry over?


Number of bits for tag, index, and block in a direct-mapped cache

Suppose you have a 64-byte cache on a system with 16-bit memory addresses.  If the cache is direct-mapped and it has 10 bytes of tag overhead in total, how many bits are used for the tag, index, and block offset within the 16-bit memory address?  I found this in the textbook Computer Organization and Design by Patterson and Hennessy, and I was hoping someone could work through it for me.  In particular, I'm curious as to what "10 bytes of tag overhead" is and how it effects what the solution is.  How are the tag, index, and block offset generally found given some cache design?


"This post was deleted and cannot be edited" on audit

On a recent review audit on SU, I clicked "Edit" and was greeted with the plain text "This post was deleted and cannot be edited". It wasn't in a popup box or anything; the actual page consisted of just that text, with no formatting (as though it were the only content of the HTML page). This makes it really obvious I'm dealing with an audit.


How to send text to Notepad in C#/Win32?

I'm trying to use SendMessage to Notepad, so that I can insert written text without making Notepad the active window.  I have done something like this in the past using SendText, but that required giving Notepad focus.  Now, first I'm retrieving the Windows handle:  Process[] processes = Process.GetProcessesByName("notepad"); Console.WriteLine(processes[0].MainWindowHandle.ToString());   I've confirmed it's the right handle for Notepad, the same shown within Windows Task Manager.  [DllImport("User32.dll", EntryPoint = "SendMessage")] public static extern int SendMessage(int hWnd, int Msg, int wParam, int lParam);   From here, I haven't been able to get SendMessage to work in all my experimentation.  Am I going in the wrong direction?


Incomprehensible substance: information traveling faster than light?

Say I'm holding a rod composed of an incomprehensible solid, and this solid rod is 1 light second long. Then say I poke you with the rod and at the same time I flash a light on you. If light is the universal speed limit, then you should see the light before you feel the annoying poke. But if the rod is incompressible, where is the delay?


How do I left-align entries in a matrix with \begin{matrix}?

I'd like to left align the -1 entry in the following matrix so that the 1s line up. Is there a way to get matrices to ignore signs in that way?  \begin{matrix}     1 & 1  \\     1 & -1 \\ \end{matrix}   Using \flushright{-1} doesn't seem to work.


Does Salesforce block emails from being sent by Apex unit test methods?  I have a test which passes and the SendEmailResult is a success yet I do not get the email.


Why does a remote car key work when held to your head/body?

I was trying to unlock my car with a keyfob, but I was out of range. A friend of mine said that I have to hold the transmitter next to my head. It worked, so I tried the following later that day:   Walked away from the car until I was out of range Put key next to my head (it worked) Put key on my chest (it worked) Put key on my leg (didn't work)   So first I thought it has to do with height of the transmitter. But I am out of range if I use the key at the same height as my head but not right next to my head. Same applies when my key is at the same height as my chest. So it has nothing to do with height (as it appears).  Then I thought, my body is acting like an antenna, but how is that possible if I am holding the key? Why would it only amplify the signal if I hold it against my head and not if I simply hold it into my hand?  .


Do Brits often use 'blag' where Americans use 'chutzpa' (for an extreme degree of impudence, gall)?

The word "chutzpa" (pronounced "HOOTS-pah") took root in American English towards the end of the Nineteenth Century. Originally Aramaic (don't hold me to it: I don't know whether Jesus used it; I doubt it: it's a pretty tacky word, if you ask me), it somehow sneaked into Yiddish prior to landing in the States.  It means - well ... An extreme degree of impudence; gall; ballsy obnoxiousness; in-your-face impertinence; aplomb and confidence - all at the same time. A conversation involving chutzpa would go something like this:  "You owe me twenty bucks." "Excuse me?" "You heard me. Pay up." "But I don't even know you." "Before you married your wife, she and I went out on a date, and she borrowed a twenty from me, and never paid me back." "I've been married for twenty years." "So what? Come on, let's not drag this out. Make with the twenty."  You get the gist. Chutzpa is very useful in a con, long or short, and invaluable in big business, or so people who are more familiar with such matters than myself have assured me on numerous occasions.  Some years ago I read an article in a magazine that was back then regarded as reputable by people who subscribed to it (I didn't - I don't believe in reputable magazines). The author of the article compared American and British English, and mentioned, very much in passing, that the Brits said "blag" instead of "chutzpa."  I don't know. Do they? Do you?


$ [x,y]=y, [y,z]=z, [z,x]=x$ implies $x=y=z=e$ in a group

This is a question about commutators. I'm reading Lang's Algebra, and in the section about free groups, Lang asserts that in a group $G$, if $x,y,z\in G$ satisfies $$ [x,y]=y, [y,z]=z, [z,x]=x$$ where $[x,y]=xyx^{-1}y^{-1}$ is the commutator of $x$ and $y$, then we must have $x=y=z=e$.  How does this hold? From the above relations, we obtain $xy=y^2x, yz=z^2y, zx=x^2z$, but I can't see how to proceed next


Should I keep my laptop plugged in as much as possible?

I know there's already some feeds on this but I just can't get one straight answer. Everybody says different things.  I have an Asus laptop with a Lithium-polymer.  I do game a lot so what's your opinion.  I want my battery life to last, so wouldn't keeping it plugged in as much as possible do this?  This would minimize the cycles, and I know my laptop cannot overcharge the battery as it only charges up to 97%.  I know overheating is the main factor and I will try to keep that under control.  I guess I have all the information but just want confirmation that keeping my laptop plugged in won't damage the battery.


a very basic definition cannot be found in most abstract algebra books

I am looking for a precise definition of what is meant by an "algebra".  The reason is that I want to compare the difference between an "algebra" and other algebraic structures, i.e. a group, ring, field etc.  I have found the definitions of the others in books, while I haven't been able to find the definition of an algebra, surprisingly.  The only thing I found is in Folland's book on real analysis, p.21:     "An algebra of sets on some nonempty set $X$ is a nonempty collection   $\mathcal{A}$ of subsets of $X$ that is closed under finite unions and   complements..."   I hope someone can help.


how to change the dimensions of a histogram depicted by plt.hist() as figsize is not an argument

I am trying to plot a histogram with a series using numpy array.   n,bins,patch = plt.hist(ser,bins=10, color='green', alpha=0.8, label='Value', edgecolor='orange', linewidth=2) plt.legend() plt.ylabel('No of bags', size='x-large') plt.xlabel('Money in US $', size= 'x-large')    IT is working well but the size is spo small. I tried using olt.hist(figsize=(8,8)) but it throws error as expected.  How can I increase the size of my histogram figure?


Relation between logistic regression and logistic distribution

When we are using logistic regression, we can get the probability that $y$ belongs to class $1$ as follows: $P(y=1|x;\theta)=\frac{1}{1+\exp(-\theta^Tx)}$. PDF of a  is given as follows: $f(x)=\frac{\exp(-x)}{(1+\exp(-x))^2}$ and this is a continuous distribution. Here are my questions:  Conditional distribution of $y|x$ is logistic distribution. Is this right? Or is it a categorical distribution? PDF at a single point is zero. So how can we get probabilities in logistic regression if it is a continuous distribution? As a side question, what is it we get when we evaluate a PDF at a single point? For example, in scipy.stats, norm().pdf(3) returns a value, what is it?


A Google Doc was published and I would like to know how many unique viewers have accessed the document.  Ideally, unique anonymous views would tallied each time a unique IP address accesses the doc.


How to remove strict RSA key checking in SSH and what's the problem here?

I have a Linux server that whenever I connect it shows me the message that changed the SSH host key:     $ ssh root@host1   @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@   @    WARNING: REMOTE HOST   IDENTIFICATION HAS CHANGED!     @   @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@   IT IS POSSIBLE THAT SOMEONE IS DOING   SOMETHING NASTY! Someone could be   eavesdropping on you right now   (man-in-the-middle attack)! It is also   possible that the RSA host key has   just been changed. The fingerprint for   the RSA key sent by the remote host is   93:a2:1b:1c:5f:3e:68:47:bf:79:56:52:f0:ec:03:6b.   Please contact your system   administrator. Add correct host key in   /home/emerson/.ssh/known_hosts to get   rid of this message. Offending key in   /home/emerson/.ssh/known_hosts:377      RSA host key for host1 has changed and   you have requested strict checking.   Host key verification failed.   It keeps me for a very few seconds logged in and then it closes the connection.     host1:~/.ssh # Read from remote host host1: Connection reset by peer   Connection to host1 closed.   Does anyone know what's happening and what I could do to solve this problem?


If a visitor stays less than 90 days in France, the visitor plans to stay 77 days, how soon can this visitor return to France?? Is it the required 90 day time frame, then the visitor can return, or is it 77 days, etc???


Let $n$ be a positive integer. Then $$ \sum_{d|n} \phi(d) = n$$  Where $\phi$ is the euler totient function.  The first step in a proof of this is to define a set $S_d$, for each divisor $d$ of $n$; $S_d={\{1 \leq a \leq n : gcd(a,n) = d}\}$.  It then states that it is "obvious" that $\sum_{d|n} |S_d| = n$, however this isn't remotely obvious to me?  Could anyone explain it to me please?  This has been flagged for a duplicate but the duplicate question doesn’t specifically tackle the step in the proof that is troubling me.


Which generation are the descendants of the marriage of persons from different generation (e.g. person and her uncle see e.g. Pedigree of Alfonso XII of Spain here ) classified to?


Can multiple Thorncaster Slivers grant multiple copies of the same ability?

If I have two s, does their effect stack? That is, do the other slivers I have get the "1 damage" ability twice?  If not, why? What rule makes it so they can't have the ability twice?  If I had a different card with same ability would they get it twice? What if the different card had a slightly different wording? Or caused 2 damage instead of 1?   In what situations would a creature be allowed to have two copies of the same ability (if ever)?


Shell script "apachectl restart" password automation

In a shell/bash script (I use it for vagrant provision), I configure apache2 server and then restart it. But since I use a key file for https, apache asks for a password. How can I automate this and tell the script my password. Could this be done with something like this?  sudo apachectl restart <<< "mypassword"   (Set aside any security issues: this is only for development and vagrant is insecure by default)  P.S. I really don't want to install any additional software, since script should be as lean as possible.


Extreme cursor delay with Acer Aspire E15 on Ubuntu 16.04

Occasionally my laptop will enter a state where the cursor starts lagging so bad that it's unusable.  Oddly during this state, everything other than the cursor is still completely responsive.  I.e. anything that only involves the keyboard (opening a terminal, typing, etc) is unaffected.  Once it enters this state, on successive reboots and shutdowns it re-enters this state within seconds.  However, if I shutdown and leave it alone for a few minutes, it does not immediately re-enter this state.  Based on search results for "acer aspire ubuntu freeze" I have tried setting the intel_idle_max_cstate field in grub to 0, 1, and 2, but this did not seem to help.  To be clear - I am not experiencing any crashes, the system is completely responsive except for the cursor is delayed to the point where it would take several seconds to go from one edge of the screen to the other.


Add multiple domain/IPs to SPF record to support google and third part senders

We are using Google Apps as email provider and have added following SPF record for our domain  v=spf1 a mx ptr include:_spf.google.com -all   We also use LivePerson as a support system and when they send email on our behalf from using our domain it fails sometime.  So how can I add their IPs to our SPF record too  mails01.liveperson.net 70.42.153.203 mails02.liveperson.net 70.42.153.232 mails03.liveperson.net 70.42.153.233 mails04.liveperson.net 70.42.153.234 maile01.liveperson.net 70.42.153.211   We get following error      e-mail delivery failed for site 62197336, id=mailTicket   "\"LTK121620451004X\" \"380116582\" \"Acknowledge\" \"1\"",   to=xyz@gmail.com, error=550-5.7.1 Unauthenticated email from   abc.com is not accepted due to domain's 550-5.7.1 DMARC policy.   Please contact administrator of abc.com domain if 550-5.7.1 this   was a legitimate mail. Please visit 550-5.7.1     to learn about DMARC 550   5.7.1 initiative.


I'm trying to setup a ajax call with JS but without building a drupal form. Basically it will trigger when the user clicks a specific class element on the page. I've looked through the documentation but it seems to only be talking about ajax with drupal forms. Is this the only way to setup a ajax callback? I will link my code below. The code itself works when I click my element. I get hello world. But i'm trying to figure out how to setup a drupal js ajax callback but it keeps saying I need to make a form. (function ($, Drupal) {     Drupal.behaviors.modals = {     attach: function (context, settings) {       $('#ajax-dashboard-display--erc360_academic_institution_dashboard', context).each(function () {         // Create HTML markup         let container = document.createElement('div');         container.setAttribute('class', 'dashboard-container-modals');         let modal = document.createElement('div');         modal.setAttribute('class', 'dashboard-modal');         container.appendChild(modal);         let image = document.createElement('div');         image.setAttribute('class', 'document-modal-img');         modal.appendChild(image);         let status = document.createElement('div');         status.setAttribute('class', 'document-modal-status activitycircle activitycirclegreen');         modal.appendChild(status);         let myTarget = document.getElementById('ajax-dashboard-display--erc360_academic_institution_dashboard');         myTarget.appendChild(container);         $(".dashboard-modal").animate({right: '-100px'},800);          $('.document-modal-status').click(function(){           alert("hello world");         })           });     }   }; })(jQuery, Drupal);


Add a "Right-click on a .WAV file, Convert to MP3" extension to Explorer

I created a key in the Windows registry:  HKEY_CLASSES_ROOT\*\Shell\Convert to MP3\command   with:  "D:\tools\ffmpeg.exe" -i "%1" -acodec libmp3lame -vn -ar 44100 -ac 2 -ab 256k "%1.mp3"   It works, except that the filename is not exactly what I want:  Input: test.wav, Output: test.wav.mp3   whereas I'd like the output filename to be test.mp3.  I also tried with:  "D:\tools\ffmpeg.exe" ... "%~n1.mp3"   , but it doesn't work: the output is %~n1.mp3 then!  How to remove the original extension like this, and replace by .mp3?  PS: I'm looking for a solution without involving a .bat file, but only the registry. If not possible, it's ok to use a bat file.


I want to rename the number 1->picture (32) with python not the number 2->picture with the (3745), can someone help me with that ?


Read access to /data/data/com.android.chrome/app_chrome/profile on a Nexus 10

How's this for a catch 22 - I would like to make a copy of the full folder structure starting at the path above. I have explored:   Finding ways to move the app onto the internet data storage (SD card equivalent), before realising that it would likely still leave the app data in the protected /data directory Looking for ways to root the device, without wiping the storage, as I have read is possible for a few other mobile devices (Nexus 7 for one) "Temporary rooting" the device - This looks to be most promising, but I cannot find how to do this for the Nexus 10   In my desperation, have also tried to export the Chrome for Android history (least preferable solution), but:   Chrome for Android provides no way of saving chrome://history The Google based sync is missing many pages, even whole days of pages, when viewing in Portable Chrome on the desktop The press-and-hold clicking of individual links on chrome://history page, would take too long. chrome:history doesn't display the full URL's, so the screenshots (Power + Volume down, concurrently) I took are only semi-useful   Then there is the open tabs:   chrome:sessions, chrome:tasks present a "Web page not found" error, which I presume means that they are not available on the Android version.   Does anyone have something else for me to try??  EDIT:  After   that there is already a , I would like to change this question to ask if there is any way to mount the back file adb backup produces, instead of having to recover it to a like device, in order to work with the files contained with the archive.


Help with creating a Workflow that will allow calculated field to display combination of Dropdown Field & SharePoint Generated ID as a Doc ID#

I need to create a workflow to make my process work correctly due to the order in which items are processing causing the calculated field not to update correctly, but I am struggling with creating one in SharePoint Designer.  Currently when adding a new item the field does not display the SharePoint Generated ID from the calculation.  I currently have the calculated field set to create a Doc ID# using a dropdown field (Dept ID) and the SharePoint Generated ID field.  =[Dept ID]&"-"&ID  Any help on creating this would be greatly appreciated as I have not created a workflow in Designer before so I am a little lost. Thanks!


Why arsin function has range $[-\pi/2,\pi/2]$

While studying in P.75 of  it tells we have to restrict our domain before finding the inverse.But I can't get why we choose $[-\pi/2,\pi/2]$?Why can't we choose $[\pi/2,3\pi/2]$ where the function arcsin is invertible on this interval?


How can I password protect my hard-drive completely?

I have a password for my Windows OS, so if my computer is stolen (hopefully) the thief will not be able to start up the operating system. But one can easily remove the hard drive and access the files as external drive.  How can I prevent this?


I am writing about some leadership stuff, and I am trying to say that I am leading the 14-15 year old boys. How do I correctly use year-olds as in, "I was the adviser to the 14-15 year-olds."  Thanks in advance


How can I trim a face thats overlapping another face?

I imported a 2D draw from autocad. When I exturded the edges, I realized that the faces are overlapping and not even. How can I cut the faces "b" and "c" from "a" face as you can see at the pic.  And same like that, how can I trim an edge from another edge? Thank you for your help.


How can I determine File System from Windows?

When I enter a USB drive on Windows I if it doesn't have a partition that is recognised by Windows and tools such as Disk Management say "No Media" or File System Unknown.  On Linux I can use tools like fdisk to confirm what kind of file system is present. What options are there to do this on Windows?


Is there a quick way to set the origin to the "bottom centre"?

From my experience, it seems that a lot of times when I scaling an object, I would want the bottom of the object stays as it is. For example, think about scaling a lamp on a desk. If I scale the lamp, I would want the lamp to stay on the desk, not going below the desk.   I know the origin decides that, so the origin needs to be at the bottom centre (that is, centre in the X and Y axes, but the lowest in the Z axis). But in the Object -> Set Origin, there is only "Origin to Centre of Mass". I have searched Google and found ways like selecting the bottom face, move the cursor there and then setting origin there, but that seems cumbersome, especially if I have to do it over and over again. Isn't there an easier way? Like "Origin to Bottom Centre of Mass" menu?


The following bash does not print out var text, which is confusing to me. How to print the value of text?  text=D echo -e 'A\nB\nC' | while read aline; do text=$aline  done echo $text   the printout is D, but I want to print value C.


I found this problem at an elementary school festival and I've spent the last 30min making no progress whatsoever. I have a suspicion that the solution involves cleverly adding a line to the diagram, but can't find anything useful. Could somebody kindly provide a hint as to how to proceed?    (The question is to find $x$ and $y$)


It seems like the opening movie always starts up and won't let me cancel it until it has played for about 10 seconds.  Is that because it takes the game that long to load regardless?  Is there a way to turn off the movie?


MSVCP120.dll and MSVCR120.dll are missing

I don't know how that happened. I was installing Battlefield 1 and now I can't even start Origin. I am getting "MSVCP120.dll is missing from your computer" (same for MSVCR120.dll).   I have installed  for x86 and x64 but I'm still getting this message.   What am I missing?


What would happen if you used a dead person's hair in Polyjuice Potion?

Polyjuice Potion is changing based on someone's current physical state. It shows tattoos (or lack of) and such from DH when Ron changed to Harry.     "I knew Ginny was lying about that tattoo,” said Ron, looking down at his bare chest.    What would happen if someone used hair of a dead person, taken from their body after death, and drank the potion? Would they die as well?


External Users access and Block IP range for Internet facing site for SP Online and AZURE (On-Prem)

We have SharePoint 2013 Environment License E1 with P2 and need assistance of below question  1) In our application, we want to provide access to External users they don't have license, Is it possible In SharePoint Online?  It would be really good if anyone provide any pointers/suggestions on this


how to find the memory usage of ArrayList in java?

suppose I have an ArrayList of 10k employee objects.  how do i find  total memory size of ArrayList?  how do i calculate the usage of ArrayList?


Save and Load different Mac OS Desktop Arrangements

I switch workplaces quite regularly (e.g. from 34" to 24" monitors to solely using my MB Pro) and thus I would like to store and load my desktop arrangements in a simple way. For example, I would like to load arrangement A when I work on a 34" display and load arrangement B on a 24" monitor. With "arrangements" I mean the number of desktops created and the distribution of applications to those individual desktops. Is that possible through Apple software or third-party apps? I run Mac OS 10.15 on a MB Pro 16" 2019.  PS: The suggestion in this post does not help me as it does not allow me to store & load different desktop setups but rather assign applications to monitors:


Completeness of sequence of reals with finitely many nonzero terms

Let $S$ be the set of all sequences $x=\{x_n\}$ of real numbers such that only a finite number of the $x_n$ are nonzero. Define $d(x,y)=\max|x_n-y_n|$. Is the space complete?   Completeness means that any Cauchy sequence converges to a point in the space. Suppose we have a sequence $\{\textbf{a}_i\}_{i=0}^\infty$, where $\textbf{a}_i=(a_{i1},a_{i2},\ldots)$. Since $\{\textbf{a}_i\}$ is Cauchy, for any fixed $k$, the real sequence $a_{1k},a_{2k},\ldots$ is also Cauchy, hence converges to a real number $b_i$. I'm not sure, however, whether the sequence $\{\textbf{a}_i\}$ converges to the sequence $\textbf{b}=(b_1,b_2,\ldots)$, or whether the sequence $\textbf{b}$ belongs to $S$.


How can I read a file on my server and return the content as a string?

I want to make a function to read a csv file in my html folder and return the content of the file as a String, if possible only using basic js


How do I add icons next to the nodes in a WPF TreeView?

I have a WPF TreeView with just 1 level of items.  The TreeView is data bound to an ObservableCollection of strings.  How can I ensure that the same icon appears to the left of each node in the TreeView?


Unexpected result of very simple uv unwrap

Why would a cuboid with seams as shown unwrap as a cube? I eventually found one tutorial example of a cuboid rather than a cube being unwrapped. Its result as illustrated in the article was as expected but in 20 attempts I could only reproduce it once. All the other attempts with different seams, different unwraps, renders etc produced a cube's unwrap.


How to give a value of 0 in a raster only in a certain area?

I want to give the value of 0 in this raster but only in the area within the polygon. So the final outcome is the same raster file but with 0 values in that area How can I do that?


Before I am told, I want to clarify that I searched first, and I don't believe this to be a repost. I understand the formula in terms of how to apply it, and I've seen graphical representations and everything. I get that we are finding where the tangent line has a root, then choosing a new $f(x)$ at that point and finding the root of its tangent line, effectively closing the distance between x and the root r.   What I do not understand, is what $\frac{f(x)}{f'(x)}$ is actually doing. I know it can be used to find the root x, as it is derived from $y=mx+b$, but how is dividing $f(x)$ by its derivative getting me the root? Why does this work? My intuition is telling me (before I actually tried it) that I was getting some y value, then seeing how many times the slope goes into it; but this would give me the $x$ coordinate, wouldn't it? I can use it, but it's not clicking as to why, and I'd like to fix that so I can actually understand what is going on.


Raw notation doesn't give the desired outcome

I'm trying to use Python's raw notation to find a pattern that includes special characters with no success.  When using the 'r' notation to ignore the special characters nothing is found - see the example below:  Problematic Code  import re pattern = re.compile(r"testing+101@gmail.com") sentence = '___dsdtesting+101@gmail.comaaa___'  result = re.search(pattern, sentence).group()  print(result)   The above code will not find the pattern and return     AttributeError: 'NoneType' object has no attribute 'group'   Working Code  When escaping the '+' with '\' it works as expected:  import re pattern = re.compile("testing\+101@gmail.com") sentence = '___dsdtesting+101@gmail.comaaa___'  result = re.search(pattern, sentence).group()  print(result)   The above code will return the desired outcome of "testing+101@gmail.com".  Am I using the raw notation wrong? What's going on?  TO CLARIFY: I am not interested in escaping with the '\', rather I want to use the raw notation.


MSSQL - Insert Into adding data into the middle of the table?

A bit of a random one here... I've got a basic table that I'm using for temporary data inserts - and for that reason, I don't need or want a unique ID - however, I'm seeing odd behaviour! (or it feels odd to me at least) If I insert data into the table, and then immediately run a select statement on the same table (no ordering going on) - the new row ends up in the middle of the results - how / why ? This isn't a problem for me - I don't particularly care how it orders the data for this particular table (and I'm aware we could add a unique column, PK etc, autoinc identifier etc to handle this situation) - but it's just something I've never seen before - I'm convinced that on the hundreds of occasions I've done this previously, new data always ends up at the bottom of the list! - Am I going mad? is this normal? is there a way to always insert data to the end ? Thanks Chris


I've seen other related questions concerning this issue, but I can't figure it out. QGIS doesn't show me Google Layers from the OpenLayers Plugin, and the following message comes out:   This page was unable to display a Google Maps element. Please contact the site administrator. If you are the administrator of this site, please check the JavaScript console or check the following page for troubleshooting:   My knowledge on QGIS is pretty basic.


I want to make user to enter his choice and repeat the program untill he press an N on keyboard in java

So far my code is like this in Java. I tried it in C and I used a FFLUSH() function to do this. Is there any such function in Java that can do this?  /**  *   */ package UserInput;  import java.util.Scanner;  /**  * @author ypava  *  */ public class UserInput {      private static Scanner s,p5,q5,p4,q4,p3,q3,p2,q2,p,q,ch;      //static float a,b,c;      /**      * @param args      */     public static void main(String[] args) {         // TODO Auto-generated method stub           //float a,b,c;          int choice;          String Rch;         do{         System.out.println("\t\t\t Menu");         System.out.println("\t 1.Addition");         System.out.println("\t 2.Subtraction");         System.out.println("\t 3.Multiplication");         System.out.println("\t 4.Division");         System.out.println("\t 5.Modulus");         System.out.println("");         System.out.println("Please Enter Your Choice");         s = new Scanner(System.in);         choice=s.nextInt();           switch(choice)         {         case 1:         {             System.out.println("Enter the Values of a & b");             p5 = new Scanner(System.in);             float a=p5.nextFloat();             q5 = new Scanner(System.in);             float b= q5.nextFloat();             float c=a+b;             System.out.println("The Sum is: \t" +c);             break;          }         case 2:         {             System.out.println("Enter the Values of a & b");             p4 = new Scanner(System.in);             float a=p4.nextFloat();             q4 = new Scanner(System.in);             float b= q4.nextFloat();             float c=a-b;             System.out.println("The Difference is: \t" +c);             break;         }         case 3:         {             System.out.println("Enter the Values of a & b");             p3 = new Scanner(System.in);             float a=p3.nextFloat();             q3 = new Scanner(System.in);             float b= q3.nextFloat();             float c=a*b;             System.out.println("The Multiplication is: \t" +c);             break;         }         case 4:         {             System.out.println("Enter the Values of a & b");             p2 = new Scanner(System.in);             float a=p2.nextFloat();             q2 = new Scanner(System.in);             float b= q2.nextFloat();             float c=a/b;             System.out.println("The Division is: \t" +c);             break;         }         case 5:         {             System.out.println("Enter the Values of a & b");             p = new Scanner(System.in);             float a=p.nextFloat();             q = new Scanner(System.in);             float b= q.nextFloat();             float c=a%b;             System.out.println("The Modulus is: \t" +c);             break;         }         default:            System.out.println("Wrong Option Entered");            break;          }          System.out.println("Do you Want to Perform any other operation Y/N");         ch = new Scanner(System.in);          Rch=ch.nextLine();           }while(Rch=="Y"|| Rch=="y");       }  }


Windows10 - Change name on 'users' folder

I have a simple question, how can I change name 'Develop' to some other name? You can see an example below:


The phrase running short of something means when you don't have enough of something, but I want to mention how much of something I am running short of for example I want to buy a pair of shoes the price was around 100$ but I found out that I had only 90$ so needed 10$ now how would I describe it using running short of? "I am running short by 10$ or "I am running short of 10$.