Getting a Python Error with OpenLayers in QGIS 2.18.15

So I just recently converted to QGIS from pen and paper, and it was all fine until I opened some layers and tried to use OpenLayers for a Google Satellite view. A yellow bar appeared at the top of the screen saying "Python error: An error has occurred while executing Python code: See message log (Python Error) for more details."  Here is the log:  Traceback (most recent call last):   File "C:/Users/brana/.qgis2/python/plugins\openlayers_plugin\weblayers\weblayer.py", line 100, in addLayer     self._addLayerCallback(self)   File "C:/Users/brana/.qgis2/python/plugins\openlayers_plugin\openlayers_plugin.py", line 182, in addLayer     self.setMapCrs(coordRefSys)   File "C:/Users/brana/.qgis2/python/plugins\openlayers_plugin\openlayers_plugin.py", line 231, in setMapCrs     extMap = coordTrans.transform(extMap, QgsCoordinateTransform.ForwardTransform) QgsCsException: forward transform of (110051.440661, 34780.826688) PROJ.4:  +proj=longlat +datum=WGS84 +no_defs +ellps=WGS84 +towgs84=0,0,0 +to  +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs Error: latitude or longitude exceeded limits   As you can see, the error code says "latitude or longitude exceeded limits," but even when I zoom in to a reasonable scale (1:2500) I still get the error.  Any fixes?  I am completely new to QGIS and really only know the basic functionality.


is there any plan to update the  from version 0.17.0 to version 0.20.0? (I'm new here. Sorry if this is the wrong place to ask) Background:  Our software is based on OpenSC. Due to an unknown problem, OpenSC 0.17.0 does not work for us. However, OpenSC 0.20.0 works just fine. Our customer wants to stick to using Ubuntu 18.04 LTS, so updating to Ubuntu 20.04 LTS is not an option  Thanks in advance, Felix


Using for loop to avoid ConcurrentModificationException in multi threaded environment

I understand that similar questions have been asked before.  I just have an additional question.  I have inherited code that is like the following.  It is looping over a list using Iterator.  The loop does not appear to make any changes to the List.  The exception happens with a call to next() method.  This is Eclipse RCP code. It is possible that another thread might be modifying the list.  for (Iterator iter = mylist.iterator(); iter.hasNext();) {     MyItem myItem = (MyItem) iter.next();  // ConcurrentModificationException happens here     .     .     . }   I tried putting the code in a synchronized block but that did not resolve it. But when I change it to a regular for loop, I do not get the exception.  int list_size = myList.size(); for (int i = 0; i < list_size; i++) {     MyItem myItem = (MyItem) myList.get(i);     .     .     . }   Even though I am not getting an exception here, is it possible that the list can still get modified by another thread while the above for loop is in progress?  If so what are my alternatives? If I place the for loop in a synchronized block, would it guarantee that the list would not be modified while the loop is in progress?


What happened to the dwarves in Erebor during Lord of the Ring?

I know Moria was retaken by Balrog, but what happened to Erebor?


So I was tasked with creating a function "transitions" that takes as input a value of type std_logic of arbitrary length. The returned value should be an integer that records the number of transitions (0 → 1, or 1 → 0) as you scan the binary bit pattern from left to right (or right to left). For example, the value 0110010011 would return 5; the value 001 would return 1. In my simulation, I need to display the first 100 ns, with t2, t4, t6 and t8 all shown as either signed or unsigned decimal and data displayed as binary.  Here's what I came up with but keep received an error having to do with going out of my index range in the loop I created. How would I go about limiting the loop to clear the error?  library IEEE; use IEEE.STD_LOGIC_1164.ALL; use IEEE.STD_LOGIC_UNSIGNED.ALL;  entity TransitionFunction is end TransitionFunction;  architecture Behavioral of TransitionFunction is    function transition(signal data: in std_logic_vector) return integer is      variable count: integer := 0;   begin     for i in data'range loop       if data(i) /= data(i+1) then         count := count + 1;       end if;     end loop;     return count;   end transition;    signal data: std_logic_vector(7 downto 0):="01111100";   signal t8, t6, t4, t2: integer; begin    tt:   process   begin     wait for 10 ns;     data <= data+1;   end process tt;    t8 <= transition(data);   t6 <= transition(data(5 downto 0));   t4 <= transition(data(3 downto 0));   t2 <= transition(data(1 downto 0));   end Behavioral;   Error message:


How can I align text in a text area vertically, in Illustrator?

how can I align some text in any text area vertically? so I can align a label vertically and Horizontally in any text area, as if i align the text in a table cell.


Reply-to autocomplete is blocking Enter from submitting the comment

We can submit comments by pressing the Enter key. Great, I'm always using it and guess many others as well, rarely clicking the button.  When we type @ followed by a letter (or when there's a commentator with display name starting with unicode character) the autocomplete  box pops up, suggesting possible users to choose from. Excellent and very useful, we can even stick with the keyboard and press tab to select. Pressing any other key then close the list and all is good in the world, especially when the @ reply is in the beginning of the comment.  But, if we want to have the @ reply at the end of the comment, or coming back to change the name then want to submit the comment... we press Enter and nothing happens. Pressing again, still nothing. Third time, using more force... still no icecream and no comment. The focus is on the autocomplete list!  The only way to have our beloved Enter work again is close the autocomplete list and this can be done only by pressing other key then backspacing it. Not even tab will close it, just select a name, and Esc  won't do any good either.  What I suggest is that Enter will close the autocomplete list, if open, with or without selecting it doesn't really matter.


What is the intuition behind the cross product?

I've researched lots of places and still cannot wrap my head around the cross product.   The closest thing I have to an understanding  of the cross product is that its a measure of how orthogonal two vectors are.  But there are still lots of things about the cross product I dont understand.  Why do we make the product vector perpendicular to the plane formed by the multiplying vectors? How does that relate to the determinant of a 3x3 matrix?  I get that this is a very vague and general question, but If someone could help me understand why the cross product is defined the way it is and whats its meaning, or refer me to a good source, which again, I've tried reading several explanations, that would be highly appreciated. I'm happy to clear up anything that is unclear about my question


Handling circular entity references with Migrate

I am using  on a Drupal 6 to Drupal 7 migration right now.  I have three types: type1, type2, type3.  Each of the three types has a entityreference field on it, which is configured to be able to point to all three types.  This means that there can be circular references, and when a particular node is being migrated, the destination node may not exist yet and could potentially be any of the three types.  My migration class looks like this:  class MyNodeMigration extends DrupalNode6Migration {   public function __construct(array $arguments) {     parent::__construct($arguments);      $this->addFieldMapping('field_legacy_nid', 'nid');      $this->addFieldMapping('field_the_reference', 'field_the_reference')       ->sourceMigration(array('type1', 'type2', 'type3');   } }  $node_arguments = array(   array(     'class_name' => 'MyNodeMigration',     'description' => 'type1',     'machine_name' => 'type1',     'source_type' => 'type1',     'destination_type' => 'type1',     'dependencies' => array('roles', 'users'),   ),    array(     'class_name' => 'MyNodeMigration',     'description' => 'type2',     'machine_name' => 'type2',     'source_type' => 'type2',     'destination_type' => 'type2',     'dependencies' => array('roles', 'users'),   ),    array(     'class_name' => 'MyNodeMigration',     'description' => 'type3',     'machine_name' => 'type3',     'source_type' => 'type3',     'destination_type' => 'type3',     'dependencies' => array('roles', 'users'),   ), );  $common_node_arguments = $common_arguments + array(   'user_migration' => 'users', );  foreach ($node_arguments as $arguments) {   $arguments = array_merge_recursive($arguments, $common_node_arguments);    Migration::registerMigration($arguments['class_name'], $arguments['machine_name'], $arguments); }   When I run the migrations, most nodes are fine, but I get a decent amount of Stubs (*) created.  Some of the destination nodes have the entityreference pointing to these Stub nodes.  The source nodes are fine.  What I have uncovered is that the bundle on the destination nodes that are being made as stubs are incorrect, and look like they are all type1.  A node of the proper type does end up being created, but it never gets set as the entityreference target.  Another way to explain this is that I end up with   node: nid=123, type=type1 node: nid=234, type=type1, field_the_reference=123 node: nid=345, type=type2   where it should be   node: nid=234, type=type1, field_the_reference=345 node: nid=345, type=type2   How do I handle this situation?  (*): a "Stub" in the context of this question here refers to a node which is created for the purpose of being a reference target, but does not get its data initially. The term is used throughout the Migrate documentation and source code.


How to fetch HTML in C or C++? with Sockets. Can you give me a Example code pls?  NOTE - I originally closed this, but reopened.  To the poster - Please see:    and


Book recommendation: Introduction to astrophysical hydrodynamics

I have a PhD in Fluid Dynamics and I would like to have a taste of how the concepts and methods of this field are currently used in Astrophysics research.   Would you have a book recommendation for me? Note that I don't have a solid background in Astrophysics; hence, it would be great that the book contains a comprehensive introduction to this field as well (if such a book does exist).


Since \sout  does not work in math mode, what can I use instead?  I don't want the diagonal strikeout like with cancelf


Removing space between float and paragraph latex

How to remove the gap or reduce the gap between figure and paragraphs? Thanks


What type of differential equation is $f'(x) = f(x/2)$ and how do you solve it?

I have the following different equation $$f'(x) = f(x/2)$$ with $f(0)=10$. What type of DE is this, and how would you solve it? It seems $f(x)$ is likely to be some relative of $e^x$, since $f'(x) = f(x)$, which is close, but I don't even know what that type of DE is called with that $f(x/2)$ feature, so I'm not having any luck searching for a tutorial. The best candidate I've found was a "delay differential equation", but that seems more suited to $f(x-3)$ than $f(x/2)$.


Is it possible to get worse model after optimization?

I am trying recently to optimize models but for some reason, whenever I try to run the optimization the model score in the end is worse than before, so I believe I do something wrong. in order to optimize my model I define param grid and than fit with the train data and then according to the results run again with nre parameters, e.g- #ROUND 1 param_grid={     'max_depth': [3,4,5],     'learning_rate':[0.1,0.01,0.05],     'gamma': [0,0.25,1.0],     'reg_lambda':[0,1.0,10.0],     'scale_pos_weight':[1,3,5] }  grid_search = GridSearchCV(estimator = clf_xgb, param_grid = param_grid,                            cv = 3, n_jobs = -1, verbose = 2) grid_search.fit(X_train,y_train) grid_search.best_params_  >>>.....   (and now based on the result changing the params...) after this step I choose the best hyperparameters and run the model; clf_xgb=xgb.XGBClassifier(seed=42,                          objective='binary:logistic',                          gamma=0,                          learn_rate=0.7,                          max_depth=6,                          reg_lambda=0.8,                          scale_pos_weight=1,                          subsample=0.9,                          cilsample_bytree=0.5)  clf_xgb.fit(X_train,            y_train,            verbose=True,            early_stopping_rounds=10,            eval_metric='aucpr',            eval_set=[(X_test,y_test)])  The problem is that when I check the model score clf_xgb.score(X_test,y_test)  I always get lower score than what I got before the optimization which makes me suspect that I'm missing something in the way doing it/basic principle in this process. Is it possible that after running the optimization my score won't get better (and even worse?) ? Where is my mistake? Are there other parameters that could influence or improve my model?


What's the computational complexity or RSA? One can assume it's O(prime length^2) it you consider multiplication by column, but speed tests slightly differ on slow operations with private key and differ a lot on public key. Why?  > openssl speed rsa1024 rsa2048 rsa4096                    sign    verify    sign/s verify/s rsa 1024 bits 0.002544s 0.000124s    393.1   8049.2 rsa 2048 bits 0.017023s 0.000467s     58.7   2140.7 rsa 4096 bits 0.121189s 0.001824s      8.3    548.2


What is the inverse of the following function?

What is the inverse function of $ y=x^3+x$? thanks


How to find all the available packages (and executables) that can fulfill an "alternative"?

By "alternatives" I mean (for the most part; see exception below) the "roles" corresponding to the files under /var/lib/dpkg/alternatives.    These roles include  awk desktop-background editor global-assembly-cache-tool haskell-compiler infobrowser java w www-browser x-window-manager zsh   among many others.  The one exception I have in mind is the role display-manager (aka login-manager), which, AFAICT, is not represented under /var/lib/dpkg/alternatives, but I'm very much interested in.  Given one of these roles, let's call it foo, I want to know all the available1 packages that can play foo, or, said more precisely, that provide an executable that can play foo.  Of course, I want to know both the package and the path to the relevant executable, since the latter is not always obvious from the former; e.g. for the role x-window-manager, one such package is fluxbox, while the "relevant executable" is /usr/bin/startfluxbox, and not /usr/bin/fluxbox.    (At least for the roles under /var/lib/dpkg/alternatives, packages providing such roles must be packaged in such a way that the alternatives manager can properly recognize them; that's my understanding, anyway.  If so, I'm hoping that there is some automatic way to identify all the packages that provide a particular role.)    1 Available, that is, through the sources specified in my /etc/apt/sources* config.


Installing Ubuntu / Windows to two separate hard drives

So I have installed Ubuntu to a 1 TB hard drive.(I have a laptop) I want to install Windows 7 to another 500 Gb hard drive and be able to switch out between the two hard drives. Is this possible? Will this cause a fuss with GRUB / Windows bootloader? Does having only one HDD slot in my laptop affect this? Help appreciated.


Would this house rule on initiating combat be balanced?

My question is similar to , but about the opposite situation. The author of that question assumes the enemies are aware of the party; in those cases, I prefer to use initiative as normal. I am focused on the opposite situation: the party has managed to ambush the entire group of enemies. If enemies did not notice the party, the party has time to set-up and choose whoever should start combat.  Very often my party comes up with interesting traps and ways to initiate combat. The problem is that in 5th edition, once the combat is initiated, everyone rolls initiative and the combat goes from there. Specifically, my issue happens when an entire group surprises the other. Here's an example:  The party is all hidden in the shadows. 3 ogres lurk in the campfire in front, and have not noticed the PCs. The plan is simple. Wizard opens the combat with Faerie Fire, and all the martials will have advantage on their attacks. A single round, at most two, should be enough to wipe these Ogres. What actually happens depends on initiative: everyone rolls initiative, Wizard is last. Ogres are surprised. Rogue and Fighter either move in to attack without advantage (and are possibly hit by Faerie Fire), or ready a single attack for after the Wizard has cast his spell. Ogres do nothing, since surprised. Wizard is last, and when Faerie Fire is actually cast, the damage output of this surprise attack is sub-par. If Wizard came first on initiative, the whole plan would be perfect.  The worst part of this is that there isn't even a justification for this happening this way. On a stand-off, initiative represents reflexes, and it works well. But here, it doesn't seem to make sense that, if all players are waiting for the Wizard to do something, that they will be hindered (no multi-attack, no off-hand attack, etc) if, for some reason, the Wizard rolls low. Narratively, they could just go "hang on, seems like the Wizard is distracted, lets remain hidden, and re-roll initiative". Initiative is an abstract concept, and during the actual combat, I'm fine with how it works, just not for this combat initiation against a surprised group.  My House Rule: When a group attacks a surprised group of enemies, everyone rolls initiative as normal. For the first round only, the attacking group selects an initiator to act before the highest initiative attacker, initiating combat. This initiator will not act in its actual initiative position on the first round, but will do so on following rounds. Example: Ogres have initiative 25, 20 and 15. Wizard has 5, Rogue has 17, Fighter has 22. With this rule, Ogre acts first, does nothing due to surprise, stops being surprised. Wizards is next, acting as combat initiator for the party, playing before the fighter in this round. Fighter is next, then Ogre (surprised), Rogue, and Ogre (surprised). In the following round, the order is Ogre, Fighter, Ogre, Rogue, Ogre, and finally the Wizard.  It is a simple change. The group initiating combat, because they have the upper edge and time to prepare, chooses a person to go first in the first round. After that, everything else is exactly as before. If it happened that this person actually had the highest initiative check, nothing would be different from normal. Thoughts on this rule? Would it imbalance things, or can it be taken advantage of somehow? I think it is a decent way to join narration, planning, and mechanic execution. It helps those parties relying on Assassin Rogues or on AoE initiators.


Justifying the integral identity “$\int \mathrm{e}^{cx} \sin bx\, \mathrm{d}x = \frac{\mathrm{e}^{cx}}{b^2 + c^2}(c \sin bx - b \cos bx)$”

I suck at integrals. , it says that $$\int \mathrm{e}^{cx} \sin bx \,\mathrm{d}x = \frac{\mathrm{e}^{cx}}{b^2 + c^2}(c \sin bx - b \cos bx),$$ which is easy to check – but how could I have derived that?


Can anyone explain why this code not work, pls!! Thanks you so much!  #include <stdio.h>  void changer(char * tp) {     int i=0;     tp[0]='b'; }  int main(void) {     char *st="aaab";     changer(st);     printf("%s",st); }


Specifying rails version to use when creating a new application

I have two versions of rails (2.1.0 and 2.2.2) installed in my computer.  When I create a  new application, is it possible to specify that I want to use the older (2.1.0) version?


Proving $\lim_{n\to\infty} a^{\frac{1}{n}}=1$ by definition of limit

given a sequence $a_n=a^{\frac{1}{n}}$ for $n\in\mathbb{N}^*$, $a\in\mathbb{R},a>1$ then proof that $\lim\limits_{n\to+\infty}a_n=1$ by definition.   proof:  given $a_n=a^{\frac{1}{n}}$ for $a\in\mathbb{R},a>1$.  for $n\in\mathbb{N}^*,n+1>n\Rightarrow \frac{1}{n+1}<\frac{1}{n}$ and because $a>1$ we gets $a^{\frac{1}{n+1}}<a^{\frac{1}{n}}$, since $\frac{1}{n+1}>0$, then $1=a^{0}<a^{\frac{1}{n+1}}<a^{\frac{1}{n}}\Rightarrow 1<a_{n+1}<a_{n}$.  then we proof that $\lim\limits_{n\to+\infty}a_n=1$ we need to show that $\forall\epsilon>0,\exists N,\forall n>N,|a_n-1|<\epsilon$  then for $\epsilon>0$, choose $N=\frac{1}{\log_a(\epsilon+1)}$, since $a>1$ we gets that $$\forall n>N,1<a^{\frac{1}{n}}<a^\frac{1}{N}\Rightarrow0<a^{\frac{1}{n}}-1<a^{\frac{1}{N}}-1\Rightarrow |a^{\frac{1}{n}}-1|<|a^{\frac{1}{N}}-1|=|a^{\log_a(\epsilon+1)}-1|=|\epsilon+1-1|=\epsilon\Rightarrow |a^{\frac{1}{n}}-1|<\epsilon$$  wich implies that $\lim\limits_{n\to+\infty}a_n=1\square$  my proof to the limit is correct?


What do you do with the SQL Agent Jobs when the HA environment switches between primary and secondary? Do they just let the jobs on the secondary fail and create log entries when it can't access the database?


How to attach to a tmux session after deleting it's session file?

tmux keeps track of active sessions in a file, on my system this is in /tmp/tmux-1000/default. Recently I manually cleared everything in the /tmp directory, removing this session file.  Normally, you can use tmux attach to reattach to a session. Active sessions can be listed using tmux ls. Because this file is gone, tmux doesn't know about any active sessions:    $ tmux attach no sessions     $ tmux ls error connecting to /tmp/tmux-1000/default (No such file or directory)   Using top I can verify tmux is still running, along with the applications I had opened in that session.  How can I reattach to this session, after I've removed the session file?


Many times a precise definition of something in physics is not available but yet there exist some rough definitions that guide us through. I need the same rough (if not precise) definition of physical laws. The reason being that we would consider $\mathbf a= \frac {d \mathbf v}{dt}$ as a mere definition but $\mathbf F =m \mathbf a$ as a law (as it is called as Newton's second law of motion). But to me it seem to be more inclined towards being as definitions rather than laws. I mean contrasting Newton's laws of motion to the law of conservation of energy (momentum, etc) it seem to be an attempt to define forces ( though I might be wrong at this (but I don't know reason for such)).   So what is the definition of a physical law that can encapsulated it's entirety?


I know about , but from all indications it is all about computer hardware.   Is there any Stack Exchange site where I can ask questions about problems on my phone?


Problems booting the 16.04 live from USB stick

I downloaded the 16.04.1 amd64.iso file and made a bootable usb stick using the program available in my Ubuntu 12.04 desktop.  But when I try to boot from that pendrive comes an error the prevent it from booting.  It says:  Missing parameter in cofiguration file. Keyword: path gfxboot.c32: not a COM32R image boot:    And the last two lines are replicating and replicating, on and on...  Anybody can tell me wich configuration file I must correct and how?  Thank you. Gil  {UPDATE} I used a Virtual Machine with the 16.04 installed and made my bootable usb stick from there and it is working very fine! Thank you every one! Gil


Find the last two nonzero digits of $700^{2^{88}}$. I tried approach this problem with modular arithmetic but haven't got much development. Any insights?


A fatal error has been detected by the Java Runtime Environment. EXCEPTION_ACCESS_VIOLATION

The below error I get after I run my stand alone application developed in JAVA. Please help  # A fatal error has been detected by the Java Runtime Environment: #  EXCEPTION_PRIV_INSTRUCTION (0xc0000096) at pc=0x04730008, pid=1872, tid=2248 # JRE version: 6.0_30-b12 # Java VM: Java HotSpot(TM) Client VM (20.5-b03 mixed mode, sharing windows-x86 ) # Problematic frame: # C  0x04730008 # If you would like to submit a bug report, please visit: #   http://java.sun.com/webapps/bugreport/crash.jsp # The crash happened outside the Java Virtual Machine in native code. # See problematic frame for where to report the bug.   I get this error after I run my stand alone application developed in JAVA.  Please help


How can I prevent iPhoto from opening everytime I plug my iPad/iPhone?

How can I prevent iPhoto/Photos/Image Capture from launching everytime I plug in my iPad/iPhone?


Currently my list of figures looks like this List of Figures      Figures 1 ........................x      Figures 2.........................x  How to make like this? List of Figures  Figures 1 ........................x  Figures 2.........................x  Thank you  My code is:  \documentclass[a4paper,12pt,openleft]{book} \begin{document}  \tableofcontents \listoffigures  \chapter{chapter 1} \begin{figure}[h] \centering \includegraphics{images.png} \caption[Figure~\ref{fig:fig1}]{caption} \label{fig1} \end{figure}  \chapter{chapter 2} \begin{figure}[h] \centering \includegraphics{images2.png} \caption[Figure~\ref{fig:fig2}]{caption2} \label{fig2} \end{figure} \end{document}


How can you prove that the normal equations: $(X^TX)\beta = X^TY$ have one or more solutions without the assumption that X is invertible?  My only guess is that it has something to do with generalized inverse, but I am totally lost.


I am playing Skyrim Dragon-Born DLC on a PC. I have a bounty, but I can't hand myself in -- I just get attacked.  It stated that I attacked somebody at a shrine by accident, but after that I didn't commit any crimes.  It's weird how I get attacked instead of them talking to me. It seems like there is no way to get rid of the bounty.  I have tried on many occasions to hand myself into a different place from where I originally committed the crime.


What is the difference between self and $this in php?

What is the difference between $this and self? When should we use each of them?


Ubuntu 14.04 LTS showing 'version message write failed' message while booting

The following lines are getting displayed while Ubuntu is booting.  [   27.981086] mei_me 0000:00:16.0: irq 60 for MSI/MSI-X [   27.985007] mei_me 0000:00:16.0: version message write failed: ret = -5 [   27.985071] mei_me 0000:00:16.0: hbm_start failed ret = -5 [   27.985123] mei_me 0000:00:16.0: reset failed [   27.985166] mei_me 0000:00:16.0: link layer initialization failed. [   27.985224] mei_me 0000:00:16.0: init hw failure. [   27.987404] mei_me 0000:00:16.0: initialization failed.   I've been using it for around 4-5 months now and this is the first time I got this message. I'm able to log in and everything seems to be working fine. But this error message is bugging me.  Is there a way to fix this.  I'm using Ubuntu 14.04 LTS.  Thanks in advance.    UPDATE #1  Added blacklist mei to /etc/modprobe.d/blacklist.conf but the error is still being displayed on boot.


Open terminal on startup and run command

Very simple question, I'm new to Linux  I have a command run on startup (Elementary OS) command is:  /home/zachary/Documents/Server108/Server108.sh   When I turn my laptop on the command runs in the background, and this is great, but I can't issue a "Stop" command because the terminal never opens. So, my question is this;  How do I force the terminal to open, run the script and then stay open? Do I need to add a line to the .sh file, or add arguments to the startup command?


missing minus sign in R code using latex

I'm using lstlisting to include my R code in my LaTeX, however, the minus sign after < is not appearing in the compiled file.  \usepackage{listings} \begin{document}  \begin{lstlisting} [language=R]  n<- c(10, 15, 20, 35) w <- c(300, 500, 700,100) i <- c(1, 1, 2, 2)  j <- c(1, 2, 1, 2)  beta <- c(1, 1)  for (iter in 1:20) {  alpha <- sqrt(tapply(w*n^2/beta[j], i, sum)/                tapply(w*beta[j], i, sum))  beta <- sqrt(tapply(w*n^2/alpha[i], j, sum)/               tapply(w*alpha[i], j, sum))}  alpha        1        2  11.41714 24.63072    beta         1         2  0.8229245 1.3470172  \end{lstlisting} \end{document}


I've been working on a 301 redirect for a dynamic URL for the past couple days and have really been struggling.  I am looking to redirect example.com/?feed=podcast to example.com/feed/podcast        Here is my current .htaccess file:  RewriteEngine on  RewriteCond %{HTTP_HOST} ^example\.com$ [OR] RewriteCond %{HTTP_HOST} ^www\.example\.com$ RewriteRule ^feed$ "http\:\/\/example\.com\/feed\/podcast" [R=301,L]  # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule>  # END WordPress   I am trying to add a redirect for a dynamic URL. I have been able to get this to work:  RewriteCond %{QUERY_STRING} ^pizza$ RewriteRule ^$ http://www.example.com/feed/podcast? [R=301,L]   But I can't get this to work:  RewriteCond %{QUERY_STRING} ^feed=podcast$ RewriteRule ^$ http://www.example.com/feed/podcast? [R=301,L]   It ends up redirecting back to example.com  Any help would be much appreciated!


Add georeferenced png layer to map automatically

Using ArcGIS Desktop v10.2 with an Advanced level license we have georeferenced our engineering drawings in PNG format. Next we have created a polygon layer for every single drawing to see the Area of Interest depicted in the drawing. Is there an automated way to bring individual PNG layers by clicking on their respective polygon?  I want a simpler way to add the georeferenced PNG into the map without having to use the classic "add layer" tool, where a user has to find the respective layer in their location on the network.


Evolutionary chronology - if any, which species have evolved in the last 100 years

I heared somewhere, I cannot remember where, that there has not been an evolution observed in our lifetime. In life science class, right at the start, we was doing the usual MRSGREN (how to tell if something is a living organism), and the tutor said that you can also tell something is a living organism if it evolves. So I asked if there has been an observed evolution in our lifetime. She said that there had been many but could not recite any off the top of her head, so the next week she handed me a piece of paper with 8 or so websites that aparrently corroborated her claim. I have not got the paper anymore but I recall there been on there the peppered moth or something. So I set out to look for a chronological list of evolution but could not find an authoritative one. I could only find something on wikipedia that indicated that species have been dying out for the past thousand years, but nothing saying that any have evolved.


When in Journey Builder what is the difference between journey data and contact data?

I am creating a JB with an engagement split. What is the difference between Contact Data and Journey Data. ie what will I see listed in the two groupings. If I choose the journey data will this only be as up to date as the time that the data entered the Journey?


Can anyone tell me what a "harmonic quadruple" is?  I had a problem in Australian mathematical Olympiad paper. The solution uses something like harmonic quadruple to prove that two sides are parallel.  So can this concept be used to prove the following?     $O$ is the point inside triangle $ABC$. The lines joining the three vertices $A$, $B$, $C$ to $O$ cut the opposite sides in $K$,$L$ and $M$ respectively. A line through $M$ parallel to $KL$ cuts the line $BC$ at $V$ and $AK$ at $W$. Prove that $VM=MW$.


How to get intuition in topology concerning the definitions?

Most topology texts go on directly to give definition of topology, then they give some examples and that's it, like they directly tell you right     Let $X$ be a set and let $τ$ be a family of subsets of $X$. Then $τ$ is called a topology on $X$ if:         Both the empty set and $X$ are elements of $τ$   Any union of elements of $τ$ is an element of $τ$   Any intersection of finitely many elements of $τ$ is an element of $τ$      But why did we define it this way? What's the intuition?   Does anyone know a good text on topology which gives the intution behind the concepts, ...etc ?


Tool to easily select a pixel on screen and get color and absolute coordinates

I am looking for a tool that lets me select any pixel on the screen and get its RGB color and absolute (x, y) location.  I have used tools on Windows that show a large magnified square with a crosshair letting me easily select the pixel I want and get its details.  Is there anything like this for ubuntu?


I read a book when I was young, it was about space alien cats. I believe the title was Quzzles, but I really don't know. The book was stolen from me before I was finished. I don't know much else about it.


How strict is the Decree for the Reasonable Restriction of Underage Sorcery?

In the first book Hermione mentions that she has tried a few spells, before ever arriving at Hogwarts, Sorcerer's Stone, Ch 6:     I've tried a few spells just for practice and it's all worked for me.   Clearly she didn't get into trouble for that. In the second book after Dobby performs a Hover Charm Harry receives a letter from the Ministry of Magic, in Ch 2:     We have received intelligence that a Hover Charm was used at your place of       residence this evening at twelve minutes past nine.      As you know, underage wizards are not permitted to perform spells outside school,       and further spellwork on your part may lead to expulsion from said school (Decree for       the Reasonable Restriction of Underage Socery, 1875, Paragraph C).        We would also ask you to remember that any magical activity that risks notice by        members of the non-magical community (Muggles) is a serious offense under section 13       of the International Confederation of Warlocks' Statute of Secrecy.   In the fifth book (Order of the Phoenix) Ch 2 Harry receives a letter after saving Dudley from the Dementors:     We have received intelligence that you performed the Patronus Charm at twenty-       three minutes past nine this evening in a Muggle-inhabited area in the presence of a        Muggle.      The severity of this breach of the Decree for the Reasonable Restriction of        Underage Sorcery has resulted in your expulsion from Hogwarts School of Witchcraft        and Wizardry. Ministry representatives will be calling at your place of residence        shortly to destroy your wand.      As you have already received an official warning for a previous offense under        section 13 of the International Confederation of Wizards' Statute of Secrecy, we        regret to inform you that your presence is required at a disciplinary hearing at        the Ministry of Magic at 9 A.M. on August 12th.   Students appear to use magic outside of Hogwarts, without getting in trouble, except for Harry Potter. In the movies the violations are even worse, with Hermione repairing Harry's glasses, Harry casting Lumos Maxima repeatedly in his bedroom.   What is the level of severity (or complexity) of spell which will generate the notice of the Ministry of Magic?


What is an intuitive synonym for an "implementation" of an idea?

I am trying to build a website/community around 3 types of content;  Problems (I get sunburnt and really hot in summer) Ideas (A hat with a built-in fan that protects you from the sun and keeps you cool at the same time) Implementation (Here's a link to an online store that sells solar-powered hats with fans)  The notion that Problems can spawn ideas to solve them is intuitive to me (and hopefully to the user), but I'm struggling to find a better word for the implementation (ie. the tangible thing that makes the idea happen). Note that this concept doesn't have to be a product as in the example above, it could be Here's a schematic I came up with for building a hat with a fan built into it. For context, this is for  designed to foster innovation and collaboration, so understanding by a wide range of speakers is essential. I think the word "Implementation" is not intuitive, as it won't be clear to the user that an implementation follows from an idea. Some synonyms I've considered myself are;  Product - the implementation may not be something that is actually sold or marketed, it could be something as simple as life-hacks. Solution - I'm concerned this might imply that "Solutions" are the thing that follows from "Problems", whereas that's already used by the concept of an "Idea" Outcome - too vague and doesn't intuitively follow as the implementation of an "idea".  What's a better synonym for "Implementation" here?


If a continuous function between locally compact Hausdorff spaces is proper (i.e. preimages of compact sets are compact), then it is also closed. How to prove it?


The difference between $F(a)$ and $F[a]$ when considering fields

When we talk about fields, what is the difference between $F(a)$ and $F[a]$? I have usually understood that $F[a]$ stands for polynomials over the field $F$ whereas $F(a)$ stands for $F(a)=\{c_{1}+c_{2}\cdot a: c_1,c_2 \in F\}$? Am I correct here or is there anything else that I should take into consideration as well?


How to Automatically copy keyframe from one object to other with one step

I am struggling about a week figuring out how to do this. For example i have 5 objects, for the object1 I put visibility on 1 frame and invisible on 2 frame. then i need all other objects to have the same keyframes but with the 1 framestep from previous 1-frame we see object 1, 2-frame we see object 2 and further.


Is there any benefit to Monte Carlo simulation when probability can be directly calculated?

Is there any reason why an MC simulation may still be preferred? In particular is there any benefits for posterior inference?


What are the irreducible representations of a direct sum of Lie Algebras?

If I have two semisimple Lie algebras $\mathfrak{g}$ and $\mathfrak{h}$, then I have read that the irreducible representations of $\mathfrak{g} \oplus \mathfrak{h}$ are precisely the tensor products of the irreducible representations of $\mathfrak{g}$ and $\mathfrak{h}$.  Why is this the case?  My question is two-fold.  First, if $V$ and $W$ are irreps of $\mathfrak{g}$ and $\mathfrak{h}$ respectively, then why is $V \otimes W$ an irrep of $\mathfrak{g} \oplus \mathfrak{h}$?  And second, if $U$ is an irrep of $\mathfrak{g} \oplus \mathfrak{h}$, then how can I decompose it into a tensor product $V \otimes W$ such that $V$, $W$ are irreps of $\mathfrak{g}$, $\mathfrak{h}$ respectively.


Do I really have to walk to hatch my egg?

Is walking the only option to hatch eggs? Will they also hatch if I drive by car, train or bycicle?


How can I see the list of my own answers only for bounty questions?

Is there a possible way to search my own answers that are posted only for bounty questions (whether or not they currently have a bounty on them)?


What can I use to detect pinpoint location (inches) outdoors?

I am getting back in to EE after some time so please excuse my ignorance. I am looking for a way to detect pinpoint location outdoors to navigate a robot for a project with my sons. Is there a low cost way to triangulate or use GPS? I am looking for down to the inch precision. Also I do not care if I need to place some transmitters in different locations to give the device a reference.  This is for a robotic lawnmower. I have a 2 acre yard and my house is near the middle with several trees as obstacles.     Two of my three boys (14yrs, 11yrs, 5rys old) brought up the idea so the real goal of this project is to spend time with them and pique their interest in EE & CE.  With that said cost is a factor but I do not care if we work on it for the next 2 years and spend a little along and along.  Here are my current plans    Include a Windows PC on board so I can code against the sensors.  Microsoft Connect on board to help with obstacle detection (reason for Windows PC) Include a USB GPS for general location Include camera just for the fun of it   In 2 years if I have some money in it that is okay but I do not want to start with a crazy expensive GPS.  Thanks to everyone who has help me!!!!


Annotation on a pdf : copyable, moveable, and including LaTeX maths

My need: As a teacher, regularly I need to annotate a pdf document of around hundreds of pages of maths. I need to be able to write maths myself in these annotations. Annotations tend to be "always the same" that is with around twenty to thirty annotations cover 90% of the needs. Therefore I build a list of annotations on a separate pdf, from which I select, paste and move around afterwards on the main pdf.  The present (unsatisfactory) solution: I create a list of pdfcomments in a separate document and paste, move and possibly edit them in the pdf pages.  Problems:   not all pdf reader render the comments, but I can cope with that by selecting the reader to be used I cannot write comments containing maths. I don't understand why, despite being in LaTeX, the math signs/operations are not taken into account. I use an HTML page that translate Latex to Unicode to cope with that but it is not satisfactory: long and for instance \frac{}{} is not well rendered.   (Some) PDF readers are capable of copying and moving comments around to find their place (through PDFcomment) . It is possible to have PDF comments including LaTeX math expression.  Question: Is there a way to mix both capabilities in the same comment ? LaTeX package(s) would be great or any other way is welcomed.


Find the minimal polynomial of $\sqrt2 + \sqrt3 $ over $\mathbb Q$

I have no idea how to do this.  To find the minimal polynomial of say $\sqrt2 + \sqrt3$, we need to find the monic polynomial $p \in \mathbb Q$ (correct if I am wrong but monic polynomial is when the coefficient of the highest degree term is $1$) of the smallest possible degree such that $\sqrt2 + \sqrt3$ is a root of $p$.  If we let $u=\sqrt2 + \sqrt3$ then $u ^2 = 5+ 2 \sqrt6 \iff u^2 - 5 = 2 \sqrt6 $, then $(u^2 - 5)^2=24 \iff u^4 -10u^2 +1=0$  All I did was keep squaring until all of the irrational terms go away. But what next? Am I doing this correctly and what do we do next if I am?


java.lang.NullPointerException: Cannot read the array length because "" is null

I am working on a JDA Discord Bot and everytime I run it, I get this exception. java.lang.NullPointerException: Cannot read the array length because "<local3>" is null     at com.houseofkraft.handler.CommandHandler.scanIndex(CommandHandler.java:42)     at com.houseofkraft.core.DiscordBot.<init>(DiscordBot.java:68)     at com.houseofkraft.Stratos.main(Stratos.java:13)  I was attempting to make a basic Command Handler and here is the code for it:  public void scanIndex(Index index) throws IOException, InvalidLevelException {         String[] commandList = index.indexClass;          for (String classPath : commandList) {             if (classPath.startsWith("com.houseofkraft")) {                  String[] classPathSplit = classPath.split("\\.");                 String commandName = classPathSplit[classPathSplit.length-1].toLowerCase();                  commandPaths.put(commandName, classPath);                 DiscordBot.logger.log("Added " + commandName + " / " + classPath + " to path.", Logger.DEBUG);             }         }     }  Index.java: package com.houseofkraft.command;  public class Index {     public String[] indexClass;      public String[] getIndexClass() {         return indexClass;     }      public Index() {         String[] indexClass = {                 "com.houseofkraft.command.Ping",                 "com.houseofkraft.command.Test"         };     } }  I'm not exactly sure why it causes the Exception. Thanks! EDIT: Here is my DiscordBot Code     public DiscordBot() throws IOException, ParseException, LoginException, InvalidLevelException {         try {             if ((boolean) config.get("writeLogToFile")) {                 logger = new Logger(config.get("logFilePath").toString());             } else {                 logger = new Logger();             }              logger.debug = debug;              info("Stratos V1");             info("Copyright (c) 2021 houseofkraft");              info("Indexing commands...");             // Add the Commands from the Index             commandHandler.scanIndex(new Index()); // here is the part that I call             info("Done.");              info("Connecting to Discord Instance...");             jda = JDABuilder.createDefault(config.get("token").toString()).addEventListeners(new EventHandler(commandHandler)).build();              if (jda != null) {                 info("Connection Successful!");             }          } catch (Exception e) {             e.printStackTrace();         }     } }


If $f,g$ are analytic in the unit disk, and $|f|^2+|g|^2=1$, then $f,g$ constant.

I need to prove that if $f,g$ are analytic in the unit disk, and $|f|^2+|g|^2=1$ for all $z$ in the unit disk, then $f,g$ are constant.  This is an exercise question so it should not be very hard, but I don't know where to start. Any hint is appreciated.


my database give ana null object reference in sqllite android. how can i solve this _____

java.lang.NullPointerException: Attempt to invoke virtual method 'long com.example.carpetcatalog.DataBaza.insertYec_product(com.example.carpetcatalog.Models.YecProductForDB)' on a null object reference at com.example.carpetcatalog.MainActivity$4.onResponse(MainActivity.java:374)  public void networkCallbackForProduct() {         Call<List<Yec_product>> productresponse = ApiClient.getRetrofit().create(ApiInterFace.class).getproductfromAPI();         productresponse.enqueue(new Callback<List<Yec_product>>() {             @Override             public void onResponse(Call<List<Yec_product>> call, Response<List<Yec_product>> response) {                 if (!response.isSuccessful()) {                     Toast.makeText(MainActivity.this, response.code(), Toast.LENGTH_SHORT).show();                 }                 List<Yec_product> productList = response.body();                 for (Yec_product product : productList) {                     YecProductForDB yecProductForDB = new YecProductForDB(product.getId(), product.getCode(), product.getName(), product.getImage_url(), product.getPrice(), product.getQuality_id(), product.getRoom_id(), product.getChanged());                   long natija=dataBaza.insertYec_product(yecProductForDB);                   if (natija==-1){                       Toast.makeText(MainActivity.this, "error insert baza product", Toast.LENGTH_SHORT).show();                     finish();                   }                  }             }              @Override             public void onFailure(Call<List<Yec_product>> call, Throwable t) {                 Toast.makeText(MainActivity.this, "error" + t.getMessage(), Toast.LENGTH_SHORT).show();             }         });      }  Database classs*******************************


I dont use this particular computer often (sometimes go a month without use) but recently it keeps randomly rebooting, at ANY time.  Sometimes it will reboot multiple times before it even posts. Sometimes it reboots just after posting. Sometimes I can login (to XP) and it runs fine for a few minutes then just reboots. Occastionally, it doesnt reboot at all. One thing that is consistent, it doesnt turn OFF it, it always reboots.  It's really hard to test since I never know when its going to reboot. I tried moving the DIMMs to a different bank but that hasnt worked. The case fan and lights dont flicker/stop.  Whats the most likely component to be failing?   MoBo: Gigabyte GA-EP43C PSU: EVO Labs 500w Memory: 2x2Gb DDR2 CPU: Intel E7300 GPU: NVIDIA GeForce GTX650


I need to draw two tangent circles with their common tangent. I drew the first circle centered at C radius CA, the tangent AB. Now I need to find the position of the center for the second circle on the perpendicular to AB. The radius of the circle in question is r=AB^2/(4*AC). The working code is: \documentclass{article} \usepackage{tikz,tkz-euclide} \usetikzlibrary{calc} \usetkzobj{all} \begin{document} \begin{tikzpicture}       \tkzDefPoints{0/0/A, 0/4/C, 5/0/B} \draw (A)--(B); \draw let  \p1 = ($ (B) - (A) $), \p2 = ($ (C) - (A) $), \n1 = {veclen(\x1,\y1)}, %\n1=AB \n2 = {veclen(\x2,\y2)}, %\n2=AC \n3 = {100*\n1/(4*\n2)} %r=100AB/4AC in (C) circle[radius=\n2]  (B) circle[radius=\n3]; \tkzLabelPoint[below](A){$A$} \tkzLabelPoint[below](B){$B$} \tkzLabelPoint[below](C){$C$} \end{tikzpicture} \end{document}  It gives this:  the problem is that number 100 in the code that is supposed to be switched into \n1. But for   \n3 = {\n1*\n1/(4*\n2)} %r=AB^2/4AC  it just doesnt work and says: ! Dimension too large. <recently read> \pgfmath@x  l.14 \n3 = {\n1*\n1/(4*\n2)}                     I can't work with sizes bigger than about 19 feet. Continue and I'll use the largest value I can.  How to fix it and what is the problem? Thanks to everyone.


Looking for short story about human outpost on alien world with dangerous native animals/insects

Read this years ago (From 50's or 60's?) in Analog about a fortified compound/outpost on an alien world where the humans were in an escalating (and failing) arms race agains the local animal/insect population.  The natives became more deadly as the humans tried to develop better defenses.  One member of the outpost crashes in another area of the planet, expecting instant death, but finds the locals there non-threatening as they were only reacting to the violence of the outpost.  Looking for title and author.


Few months ago i Ordered for a Grey Card,they came in 3 numbers one card is Fully dark grey,second one is Light Grey,one is Like dull white,i read about Grey Cards and there uses for white Balance, to get correct colors I mean true natural colors in a photograph.what is confusing me is which one should i use and if all are worthy.why they differ in different shades of grey..so i am Little bit confused with the word,that the correct exposure should have 18% grey tone.i know that camera cannot see colors RGB and it can measure light white and black or lets say shadows all the coloring work is done by the Processor inside the camera...i hope now my question is understood.


Why do all fields in a QFT transform like *irreducible* representations of some group?

Emphasis is on the irreducible. I get what's special about them. But is there some principle that I'm missing, that says it can only be irreducible representations? Or is it just 'more beautiful' and usually the first thing people tried?   Whenever I'm reading about some GUT ($SU(5)$, $SO(10)$, you name it) people usually consider some irreducible rep as a candidate field. Also, the SM Lagrangian is constructed in this way. (Here, experimental evidence of course suggests it.)


I have some devices with an RS232-connection (e.g. a beamer, a TTL-to-RS232-adapter for my NanoPI R1 described , etc). No i have found a RS232 to VGA adapter:    Now i wonder, if I would have this adapter-cable and would connect it to my NanoPI and plugin the right-plug in a VGA-monitor: What would I actually see? Would I really see the screen of the NanoPI (or the screen-output of whatever device which is connected)?


GUI install Visual Studio Code .deb file in Ubuntu 20.04 keeps loading forever

Whenever I try to install any .deb file using GUI in Ubuntu 20.04 it just keeps loading forever in the Ubuntu Software tab. When I open the Software app after searching for "vscode" in it, it keeps loading forever the same way as in the below screen animation.


I'm releasing a game soon and thinking about adding some simple anti-piracy techniques.   It's an offline adventure game but I'm thinking of doing a quick background check on startup for updates if the user is connected online.  Since it'd connect to the game site to check this, maybe there's some anti-piracy check I can do at the same time?  I don't want anything that'd annoy the user, and I'm not too bothered about completely removing the ability to pirate it because that'd be fighting a losing battle. I just want something that'd deter casual pirates.  Any ideas?


Option clash between TikZ, psplot, geometry, and hyperref

I know someone who is working on a LaTeX document requiring pst-plot, geometry, and hyperref, and I recently gifted him some TikZ improvements of diagrams that didn't seem to be working out for him.   However, TikZ is clashing with the other packages, hyperref being the most critical. How does one circumnavigate around such an obstacle without sacrificing much?  Edit: Minimal example:  \documentclass[z,11pt]{amsart} \usepackage{pst-plot} \input xy \xyoption{all} \usepackage{mathptmx,tikz} \usetikzlibrary{matrix,arrows} \begin{document} Test \end{document}   The error produced seems to be  /usr/local/texlive/2013/texmf-dist/tex/generic/pgf/frontendlayer/tikz/tikz.code .tex:19: No room for a new \dimen . \ch@ck ...\else \errmessage {No room for a new #3}                                                    \fi  l.19 \newdimen\tikz@lastxsaved


Why do the magnetic poles of the Earth get reversed?

It has been confirmed that the magnetic poles of the Earth get reversed , but why should they get reversed in the first place ?  Also, why is their pattern of reversal so arbitrary ?


I have set no paging files from the virtual memory settings, I noticed that my PC’s performance became bad and slow. Is there a way to restore these files or download some?


Let’s say I see a great piece of artwork on InPrnt or DeviantArt (for simplicity, let’s say it is pixel art with a fairly simple palette of colors) and I think it is so great that I want to copy the colors used to create my own image. Assuming the subject/purpose of my work is completely unrelated to the original piece and the only aspect of the original which I draw from are the colors, can I legally publish my illustrations/pieces made with this palette  (copied exactly) online or send them to be reviewed by a game developer/website designer/etc.?


Is $\phi(n) + \sigma(n) \geq 2n$ always true?

Suppose $\phi$ is Euler totient function and $\sigma$ is divisor sum. Is $\phi(n) + \sigma(n) \geq 2n$ true for every natural $n$?   I manually checked the inequality for all numbers between $1$ and $20$ - and it holds on them. I do not know, however, how to prove this fact in general.  Also, it is not hard to see, that for prime $p$, $\phi(n) + \sigma(n) = 2n$. That means, that if a counterexample exists, it has to be composite.  Any help will be appreciated.


Is there a list of all the magazines including pictures of them?

I'm trying to figure out which magazines I'm missing. They have different covers so they are obviously able to be identified separately. I want to know if there is a list that shows a picture or description of which magazines can be found where. This way I can compare that list to what I have already.  The wiki pages only have text descriptions of the locations, not the magazines themselves. Which means I have to rely on memory or guess and check work which would take longer than I'd like.


Question:  Prove that for every tree $T$ and every integer $g$ there exists a graph $G$ without cycles of length up to $g$ and such that every two-coloring of the edges of $G$ contains a monochromatic copy of $T$.  Thoughts: I saw something similar here , but besides the $\mathrm{girth}(G)=g$, I couldn't find a way to connect the information into a start for a proof. Any Hints?  (This is similar to this  which has no answer)  added after trying to solve using hints in comment:  I have this idea for a proof - Want to verify I got this right as it still seems difficult. I'll use facts 1-4 from here  .    From fact 2 we have that exists a graph $G_{g,k}: \delta(G_{g,k})\ge k=|V(T)|$. From fact 3 we have that $G_{g,k}$ has a sub-graph H s.t $\delta (H)\ge\frac {|E(G)|}{|V(G)|}\ge k (***)$. From fact 1 we have that $H$ contains a copy of T. From fact 4 (pigeonhole) we have that $\frac {|E(G)|}{|V(G)|} \ge \frac {|E(H)|}{|V(G)|} \ge \frac{|E(G)|}{2|V(G)|}$ or $\frac {|E(G)|}{|V(G)|} \ge \frac {|E(G\setminus H)|}{|V(G)|} \ge \frac{|E(G)|}{2|V(G)|}$ A 2-coloring may be viewed as a partition of G to H (Blue) and H-complement (Red) therefore H or H-complement contains a copy of T - so we have G which has the required girth and it contains a monochromatic copy of T.   The only problem I have now is how to justify the (***) move.


Why don't most life forms show uniqueness in progeny?

I guess everyone must have observed this. Dogs, cats, and most of all insects (including mosquitoes) appear more or less the same.  Why is there so little variation in their offspring, unlike humans, where you rarely find two humans showing even a little resemblence.  Is it the large size of the human genome that allows infinite combination of traits? (seems unlikely, as even small flies like drosophila melanogaster have somewhat large genomes, but show very little variation).


How to find out what process a system tray icon corresponds to?

Is there any way to find out what process created a given icon in the system tray? A new icon has appeared that I don't recognize and I would like to find out what process spawned it.


How to getting this value of dynamically-added checkboxes into a hidden content?

I am working on this demo. How can I get the value of $(this) or even checked element when dynamically adding some checkboxes to a hidden content like bootstrap modal?    $('#exampleModal').on('show.bs.modal', function(e) {    for (var i = 0; i < 3; i++) {     $('.modal-body').append('<input type="radio" name="addOD" value="item' + i + '" />');   } })  $('input:radio[name=addOD]').on('click', function() {   console.log($(this).val());   var val = $('input:radio[name=lenseopttype]:checked').val();   console.log(val); }); <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">      <button type="button" class="btn btn-primary" data-toggle="modal" data-target="#exampleModal">   Launch demo modal </button>

Modal title
         <button type="button" class="close" data-dismiss="modal" aria-label="Close">           &times;         </button>

         <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>         <button type="button" class="btn btn-primary">Save changes</button>


I have some back-up slides at the end of my presentation, which are accessed by means of hyperlinks. For this reason, I would like to "stop" the scrolling of the slides (done by clicking PageUp / Page Down or rotating the mouse wheel ) at my last "actual" slide, preventig me to show the accessory slides by mistake  during the presentation. Is this possible somehow ? I am not sure whether I made myself clear or not ...  MWE:  \documentclass{beamer} \begin{document}  \begin{frame}[label=mainBody] txt 1  \hyperlink{accessorySlide}{\beamerbutton{jump to accessory slide}} \end{frame}  \begin{frame} txt 2  \end{frame}  \begin{frame} Thank you \end{frame}  \begin{frame}[label=accessorySlide] accessory information  \hyperlink{mainBody}{\beamerbutton{jump back to main body}} \end{frame}   \end{document}   I'd like, when in presentation mode, not to be possible to scroll beyond the "thank you" slide


Which configuration management tool has the best Windows support?

Of the major configuration management tools such as puppet, chef, salt, ansible, etc... which package has the best support for Windows server operating system?


Is an option missing in the new off-topic reasons?

I really like the new option structure when flagging - I have in particular missed the "Minimal understanding" option. However, I think that one option is missing. If we look at , it has many issues. I ended up flagging it as too broad, but I would think that it is simply, well, just off-topic. So that's where I started. Hmm:  It isn't about general computing hardware/software. It certainly isn't about code problems. It could be about not demonstrating a minimal understanding of the problem - but suggesting this guy should elaborate on what he did to try to change his birthday doesn't seem right. It isn't about server and networking. It isn't really asking for recommendations. It certainly doesn't belong anywhere else on SE.  In this case, as mentioned, I flagged as too broad even though VLQ might also have been appropriate. However, if we assume that the question only contained the first sentence, and was actually well-formed, but totally off-topic such as:  How can I change my birthdate in Facebook? I looked in the FAQ and tried  but now it is locked and I cannot change it anymore.  Isn't that off-topic? Would “Minimal understanding” really be the proper selection here? As far as I can see, I can't just select “off-topic”, but have to select one of the above options. Or should those kind of posts go directly to mods every time? Edit:  of what I believe is just off-topic, but doesn't apply to any of the options given in the off-topic dialog, and which hence has to go by the mods. Edit 2:  - which I personally flagged not as OT, but as unclear. As official OT it is still a prime example where none of the generic options apply. The question (with the title included) says:  It is possible to play the DRM formatted song in Custom player like AVAudioPlayer and MPMoviePlayer [on hold] I have tried to play directly in the AVAudioPlayer or MPMoviePlayer, but the song isn't playing.  to which the SO official response is:  You may be able to get help on Super User.  Seriously? We really want him to ask this question at Super User? Edit 3: And  that I ended up flagging as unclear - although I'd say it is a prime, generic off-topic question. From Al Everetts comment below:


Newbie here.   Im trying to learn Python and work with datasets, ive kinda got thrown into the deep end at work. The language is clearly very powerful but very different to anything else ive experienced before.   I need some clarity / help / explanation on the following please.  Partial Algo code  history = data.history(context.stock_list, fields="price", bar_count=300, frequency="1d") hs = h.iloc[-20:] p = h.iloc[-1]   What is Difference Between 3 Variables Shown?  hs1 = history.iloc[:20]    hs2 = history.iloc[20:] hs3 = history.iloc[-20]   history creates a data sets of 4 asset prices, as can be seen from image under "additional info"  Ive researched and learned data iloc is a    However what I do not understand is the [:20], [20:], [-20] indexes(?) attached to iloc function in the 3 example variables shown above  Questions   hs1 = history.iloc[:20],  According to my research following  on pandas dataframe hs1 = history.iloc[:20] singles out deletes the first 20 columns within the dataframe, is this correct? hs2 = history.iloc[:20]  What is difference to above variable? hs3 = history.iloc[-20] Why a minus - and no : inside the index?   Additional Info  History variable creates dataset of 3 assets    Hope this makes sense, please comment if you need any additional info any help and advice much appreciated.


AWS instance not connecting after running `chmod` command

I ran a chmod 777 command on my instance and after that I closed my terminal.  Since then I haven't been able to connect putty or WinScp.  What could be the problem and how can I fix it?


Car return / relocation services in the USA?

When people rent cars one-way, the car rental company needs to return the car.  In countries such as Sweden, Norway, Australia, New Zealand, those cars are listed online and people can rent the car very cheaply or for free, provided that they move it from A to B within a specified time and don't make big detours.  Is there any such service in the USA?


A "maximal" ideal of zero divisors is prime.

A commutative ring $R$. The set $\Sigma$ consists of all ideals in which every element is a zero-divisor. Clearly $\Sigma$ has a maximal element $M$. I want to prove that $M$ is a prime ideal of $R$. (Atiyah & MacDonald Ex.1.14)  Here is my idea: suppose that $M$ is not prime. Choose $a, b\in R-M$ such that $ab=m\in M$, and argue that $(M\cup {a})$ is an ideal consisting of zero-divisors. But how to prove this? I have no idea.


Keep text as a block and horizontal fill


Say I harvest crop as a hobby on my land, and it's less than an acre. What's the tax on the crop income? In California.


Complete Installation Guide for Android SDK / ADT Bundle on Ubuntu

What all needs to be done to install Android SDK / ADT Bundle on Ubuntu?  Each of the steps in the answer was found on some different forum as I encountered obstacles getting started with my Android SDK and posted questions in appropriate forums thereafter. So I thought this would be useful in that it is a one stop solution available, in case one ever needs to re-install Ubuntu and install the Android SDK / ADT Bundle from scratch!


How to completely disable auto-save and versions in Mac OS X Lion?

I hate the automatic saving and versioning in Mac OS X Lion.  Is there a way to completely turn it off?  (This has been asked before , but the answer and the linked article are completely wrong, so I thought I'd try again.)


Can $n - 1$ divide $n$, where $n$ is a positive, composite integer?

If $n$ is a positive and composite integer, can I prove that $n - 1$ does not divide $n$ for all $n$?  If not, can you give me a counter example?    I was trying to prove it by contradiction, but I was just running in a vicious circle.   Any hint or solution please?


C# Multiple abstract class composition design

I'm preparing in Monogame a little game engine, where I would want to have something like gameObject composed from DrawableObject And ClickHandler(i.e:  public class GameObject : DrawableObject, ClickHandler   Problem is - C# doesn't support multiple inheritance, I would need to use interface. I've made DrawableObject and ClickHandler abstract classes, so they can have some functionality already implemented.   public abstract class ClickHandler {     public class NullClick : ClickHandler     {         public override void Click(Point mousePos)         {             Debug.Print("Clicked on: " + mousePos + ". NullClickHandler assigned");         }     }     private readonly byte _handlerId;      public static readonly NullClick NullClickHandler = new NullClick();     private ClickHandler() {}     public ClickHandler(ref ClickMap clickMap)     {         _handlerId = clickMap.registerNewClickHandler(this);     }      public abstract void Click(Point mousePos);      void unregisterHandler(ref ClickMap clickMap)     {         clickMap.releaseHandler(_handlerId);     } }  class DrawableObject {     Texture2D texture;     public Rectangle position;      public DrawableObject()     {         position = Rectangle.Empty;     }      void Load(ref GraphicsDevice graphics)     {         using (var stream = TitleContainer.OpenStream("Content/placeholder.jpg"))         {             texture = Texture2D.FromStream(graphics, stream);             position.Width = texture.Width;             position.Height = texture.Height;         }     }     void Draw(){} //here is going to be some default implementation }   Any tips how I could redesign this to be able to implement it? I would like to not have to move whole implementation to every class in which i derive this as interface.


java netbeans, why is my if statement always returning false

I have this code and my if statement always returns false even though I entered the right inputs.      boolean z = false;     String x, y;      Scanner cin = new Scanner(System.in);      System.out.println("enter x");     x = cin.nextLine();      System.out.println("enter y");     y = cin.nextLine();      if(x == "x" || y == "y") {         z = true;     }      System.out.println(z);     if (z) {         System.out.println("successful");     }


Calculating and interpreting effect sizes for interaction terms

Can an effect size be calculated for an interaction effect in general and more specifically using the F-statistic and its associated degrees of freedom?  If yes, should this be done and what is the appropriate interpretation of the effect size given the nature of interaction effects?  Initially, I assumed the answer is "no." However, a quick Google search turned up statements about computing effect sizes for interaction terms.  Any assistance in clarifying this issue will be greatly appreciated!


Novel about alien species made of gas rings?

I read a novel where several enemy alien species were stranded together on an interdicted planet.  They had to recycle everything and keep hidden. By "keep hidden" I mean make sure there is no evidence of their presence visible from space. They recycled everything and lived in camouflaged dwellings.  The younger generation was building a mixed culture community until the older home species showed up.  One of the alien races had a body made of rings or donuts of gases that mixed to express itself. Members of this species could be taken over and controlled by rings transferred from another member of the species.  The book may be 20 years old or more.


php date time seems does not work properly

I'm now inserting a date/time data into my date/time field in the database. I have tried many techniques such as:   $date = date("d M Y");  $date = date("d M Y", mktime());  $date = getdate();  $date = date("d M Y", strtotime('now'));   and also this function: date_default_timezone_set('Asia/Bangkok');  but it still does not get the datetime.  This is my sql statement:  $sql = "INSERT INTO ".TABLE_CONTENT."(`title`, `detail`, `crdate`, `modate`, `crby`, moby, isdel) VALUES('".$title."', '".$detail."', '".$crdate."', '".$modate."', '".$crby."', '".$moby."', $isdel)";   After performing the query I got only the 0000-00-00 00:00:00 in my database.  Any help or suggestion would be very appreciated.  Thanks


If $f$ continuous and $f(x^2) = f(x)$, then $f$ is a const

Problem: Given $f:[0,1] \rightarrow \mathbb{R}$ ($f$ continuous ) and $f(x^2) = f(x)$ $\forall x \in [0,1]$. Show that function $f$ is a const.


As an avid reviewer (but also internet user at large), I typically have a tab open for a site's review queue, but it's mildly annoying to have to constantly go over to that tab and constantly F5 to check if there are any new review items.  Ideally, I'd like to have the /review page auto-refresh counts, and display the new values live as they come in. For example, a new Suggested Edit is available, the number for Suggested Edits should instantly jump up.  In the same vein, if I'm not on the Review tab, a little notification counter, like on Chat, should be present, counting up for each new review item added since I've last visited the tab:    Again, like chat, this number should dismiss when I visit the tab and check on what's going on. Perhaps, if at all possible, a desktop notification could also come up on a new Review item, provided I've enabled that feature.  While this isn't a big (or really, important) change, it would still be a nice quality-of-life improvement and let frequent reviewers respond more quickly to things happening in the queues.


I have deleted the ubuntu partition from my laptop and restarted the machine. Now i am getting grub rescue error as :  error : no such partition Entering rescue mode. grub rescue> _  I have installed ubuntu dual boot with windows 7.  How to get Windows 7 back? Please assist.


I forgot how exactly the rule in English is called where you can omit the usual possessive case 's and s' if we're speaking about a row of nouns and instead just put them in front of each other (with the main noun ahead of the dependent ones).   Let's look at this example:     The redesign of units   It's a process of taking models of the old units and redesigning them to increase their quality / fix issues - gaming.  Using possessive case we can shorten it and put is as:     Units' redesign   Using the rule I mentioned in the first sentence, we can omit the s':     Units redesign   However, as far as I understand, in this case we can also omit the plural form of the word units as in this form it looks unclear whether we're talking about one unit or multiple units (which is fine):     Unit redesign   On the other hand, if we're to list the units that are about to get redesigned, can we keep that last form? I.e.     Changelog:      Unit redesign - unit 01, unit 02, unit 03   Or should it be units redesign or even unit redesigns?  Update: this isn't merely about the apostrophe rule, it's about it being omitted in certain cases too.


Is there any field of characteristic two that is not $\mathbb{Z}/2\mathbb{Z}$?  That is, if a field is of characteristic 2, then does this field have to be $\{0,1\}$?


Is char* myString or char *myString considered best practice? My professor consistently uses char* myString and this seems to be less confusing than char *myString, but I've also seen many developers put the * with the string


Is there an inner product on $\mathcal{C}(\Bbb R,\Bbb R)$?

Is there an inner product on the vector space of continuous real functions $\mathcal{C}(\Bbb R,\Bbb R)$ ? If so what is it and if not why ?


apt install froze when uninstalling virtualbox

I am trying to remove Virtualbox, and when I do, the terminal freezes and won't continue processing. These are the last lines before the freezing:   -------- Uninstall Beginning --------   Module:  virtualbox   Version: 5.2.10 Kernel:  4.15.0-23-generic (x86_64)  -------------------------------------   Status: This module version was INACTIVE for this kernel.  depmod........   DKMS: uninstall completed.   ------------------------------   Deleting module version: 5.2.10   completely from the DKMS tree.  ------------------------------   Done.   Loading new virtualbox-5.2.10 DKMS files...   Building for 4.15.0-23-generic   Building initial module for 4.15.0-23-generic   And when I press Ctrl + Z, the process is stopped, but I am forced to run:  sudo dpkg --configure -a   And when I do, the problem returns to the same original point. Any guess on how to resolve it? Thanks in advance


Why do games install existing components each time I install a game?

When I install a game why does the installer also install DirectX, C++ libraries or .NET components that I already have?. Are these different versions or extensions? Or is is because the game installers are unable to find out what I already have installed?


What is the difference between pure blood and mudblood?

I don't see why people care whether someone is muggle-born or not. Does it make any difference? Please illuminate me, I don't understand.


I'm hoping someone knows how to solve this issue. I'm on windows 10, the latest version of blender, rendering a scene in cycles, and in the viewport everything looks good. But when I hit f12 to render, about half the objects are missing. The camera icon in the outliner is active for all objects, the missing objects are all in different collections (some are in collections with objects that don't disappear in the final render) , and the ray visibility in the options panel is active for each object. The issue persists in Eevee as well. Clearing animation data (why was that even there in the first place? i didnt create any animations) and applying location data solved the issue for a couple of the objects, but not all of them. Not sure why that would work on some but not all. Any ideas? Dont delete my post like last time for not having "enough details" I gave literally every detail could.  Im trying to get help here I can't share screenshots or the file unfortunately, as this is for an NDA work project. What's going on? Thanks in advance!


How can be avoided error SINGLE_EMAIL_LIMIT_EXCEEDED Email limit exceeded if need to send email to one single user?

I have been looking for some time looking for a way how can error SINGLE_EMAIL_LIMIT_EXCEEDED Email limit exceeded be avoided if I need to send one simple email to one single user, for example, myself.  15 Email invocations limit on Developer Edition is a very small number, and it is usually quickly exceeded. Using Workflow Email Alerts may help to send more emails but still it is limited.


$S$ is a subring of an integral domain $R$ which is finitely generated algebra over $S$, Jac(S)=0 implies Jac(R)=0

This is a problem in Atiyah Macdonald Commutative Algebra.(Problem 5.22) $S$ is a subring of an inregral domain $R$. $R$ is finitely generated $S$ algebra. If Jacobson radical of $S$ is 0, then Jacobson radical of $R$ is 0.  I followed the hint provided the book as following.   The purpose is to show for each element of $R$, there is a maximal ideal of $R$ avoiding it. Pick a $0\neq v\in R$. Since we have injective maps $S\to R$ and $R\to R_v$, we embed $S$ in $R_v$ as a subring and this $R_v$ is finitely generated as well over $S$.   It is clear that there is $0\neq s\in A$ such that we can extend ring homomorphism $\phi:S\to\Omega$ to $\tilde{\phi}:R_v\to\Omega$ where $\Omega$ is some algebraically closed field. Here $\Omega$ is chosen to be the algebraically closed field of $S/m$ where $s\not\in m$ as jacobson radical of $S$ is 0. It is clear that $v$ under the map $R_v\to\Omega$ is not zero or we will have $1$ being sent to $0$.   However, I am stucked at showing $Ker(R_v\to\Omega)\subset R_v$ is maximal ideal since this will lead to $Ker(R_v\to\Omega)\cap B$ is maximal. It is not even clear that this will be maximal. However, I can show if $R$'s jacobson radical is trivial, $R[x]$'s is trivial. I also noticed that quotient and localization do not commute with infinite intersection. What should I do at this point?


Proof by contradiction, status of initial assumption after the proof is complete.

First of all I'd like to say that I have looked for the answers to my specific question and have not found it in the existing topics.  The question is fairly simple. Say, we need to  prove statement P by the method of contradiction. Assuming that $\lnot P$ holds, using the list of statements proven earlier to hold or derived by us during the proof, we arrive to P being $true$.  $$\lnot P  \to A_1 \to\ ... \ \to A_n \to P$$ $$\lnot P  \to  P \iff \lnot(\lnot P) \lor P \iff P $$  We can therefore add P to the list of our proven statements, because it was derived. Most of the proofs contain something in the lines of "the obtained contradiction proves that our initial assumption ($\lnot P$) was wrong and so $P$ holds".  What I don't understand is, if the initial assumption ($\lnot P$) is thus proven to be false, then why can we be sure that anything derived from it holds (in particular, that P holds)? On the other hand, if it cannot be derived then the assumption ($\lnot P$) can in fact be true.   Can someone explain why this type of argument cannot be used?


How does one use a class from a default package in Java?

I am taking the course titled Computer Science: Programming with a purpose. The course instructs us to use the stdlib.jar that they have provided for the same. I have followed the instructions to add the .jar file to the list of dependencies in the project structure. I am using the IntelliJ IDE.   When I use the import StdOut statement, it says Class 'StdOut' is in the default package. When I try using StdOut.printf("Hello World");, I get the error that says Cannot resolve symbol 'StdOut'.  What should I do?


Can anyone explain why the MWE below is bad? When I compile it, there is no footline on the first page!?!  I use the <+> and <+-> in order to not having to explicitly having to specify the various overlays.  \documentclass{beamer} \usepackage[T1]{fontenc} \usepackage{fix-cm} \usetheme{Copenhagen} \author{Author} \institute{Department} \title{Title} \begin{document} \begin{frame}   \frametitle{Frame title}    \begin{onlyenv}<+>     Overlay 1, just one   \end{onlyenv}    \begin{onlyenv}<+->     Overlay 2      \onslide<+->      more text   \end{onlyenv} \end{frame} \end{document}


Let $f:[0;1]\to\mathbb R$ be continiously differentiable  and $ f(0)=0$.   Prove that $\int\limits_0^1 |f(x)|^2\, dx\leq \dfrac{1}{2}\int\limits_0^1 |f'(x)|^2\, dx.$


Nautilus bookmarks are missing since upgrade to 13.04

My bookmarks are not shown anymore after upgrading to 13.04 Raring ringtails and I can't add any new bookmarks. The function is not shown and the shortcut Ctrl+D isn't working either. Is this functionality just gone for some reason (as the split screen with F3) or is there something wrong with my upgrade?  Thanks for any hints.


Symmetric strategy for 100 prisoners and a light bulb problem

Remark: The problem is the , but without the usual probabilistic frame (the ogre chooses as he pleases). Also, the strategy is symmetric and the dwarves don't have a sense of time. The link above does not give a solution for these hypothesis.  In more detail, the problem goes as follows: $100$ immortal dwarves are captured by an immortal ogre in order for him to play a game. The dwarves are in separate cells and never communicate, and each day the ogre chooses arbitrarily one dwarf and brings him to a room with a lightbulb which is either on or off. The dwarf can leave it as it is or switch it.  On the first day, the dwarve decide on a strategy, and the lightbulb is off.  The dwarves are able to go out if one day one of them can say that all $100$ dwarves have been taken to the lightbulb (and be right about it).     Two important hypothesis:         the choice of the ogre is arbitrary (not random, arbitrary), but the game isn't unfair so he promises that he plans to take each dwarf an infinite number of times to the lightbulb room,   the dwarves have no sense of time (so in particular they cannot know how many dwarves went to the room before them, or if the ogre took them to the room several times in a row). Equivalently, we could say the ogre takes a dwarf to the room whenever he wants.      $ $  Question: before the game, all $100$ dwarves meet one (last?) time to decide on a strategy.    A. Can they find  a winning strategy? B. [Contains hint for 1...] Can they find a winning symmetric strategy (i.e. each dwarf has the same action policy) ?     I don't have an answer for B. I am putting this question here since I think some (very simple) combinatorics may be needed to find a proof for a symmetric strategy.  Here is my answer for A: one of the dwarf is chosen as a 'leader': only him can switch on the light, and only him can speak to the ogre. So each time he switches it on (or not if it is already) and count the number of times he switched it on. All $99$ other dwarves can only switch the light off once if they find it on (and then do nothing more). Once the leader has switched the light on $100$ times (it is off at the beginning), he tells the ogre that all dwarves have seen the lightbulb. Using the fact that after any number of days, the ogre will still bring each dwarf again in the room, it is easy to show that the dwarves will win.


I am trying to use a MERGE statement to insert or delete rows from a table, but I only want to act on a subset of those rows. The documentation for MERGE has a pretty strongly worded warning:     It is important to specify only the columns from the target table that are used for matching purposes. That is, specify columns from the target table that are compared to the corresponding column of the source table. Do not attempt to improve query performance by filtering out rows in the target table in the ON clause, such as by specifying AND NOT target_table.column_x = value. Doing so may return unexpected and incorrect results.   but this is exactly what it appears I have to do to make my MERGE work.  The data I have is a standard many-to-many join table of items to categories (e.g. which items are included in which categories) like so:  CategoryId   ItemId ==========   ====== 1            1 1            2 1            3 2            1 2            3 3            5 3            6 4            5   What I need to do is to effectively replace all rows in a specific category with a new list of items. My initial attempt to do this looks like this:  MERGE INTO CategoryItem AS TARGET USING (   SELECT ItemId FROM SomeExternalDataSource WHERE CategoryId = 2 ) AS SOURCE ON SOURCE.ItemId = TARGET.ItemId AND TARGET.CategoryId = 2 WHEN NOT MATCHED BY TARGET THEN     INSERT ( CategoryId, ItemId )     VALUES ( 2, ItemId ) WHEN NOT MATCHED BY SOURCE AND TARGET.CategoryId = 2 THEN     DELETE ;   This appears to be working in my tests, but I am doing exactly what MSDN explicitly warns me not to do. This makes me concerned that I will run into unexpected problems later on, but I cannot see any other way to make my MERGE only affect rows with the specific field value (CategoryId = 2) and ignore rows from other categories.  Is there a "more correct" way to achieve this same result? And what are the "unexpected or incorrect results" that MSDN is warning me about?


mv: missing destination file operand when special characters are involved

This one's silly. I saved my vim session with :Obsess -S Session.vim instead of :Obsess Session.vim, so now I have a -S/ Session.vim file in my project and can't open it with vim as the following is thrown  $ vim \-S\ Session.vim  VIM - Vi IMproved 8.2 (2019 Dec 12, compiled May 23 2020 22:02:57) Garbage after option argument: "-S Session.vim"   Attempting to mv or cp the session file results in similar errors  $ mv \-S\ Session.vim Session.vim   mv: missing destination file operand after 'Session.vim' Try 'mv --help' for more information.   $ mv '"-S Session.vim"' Session.vim  mv: cannot stat '"-S Session.vim"': No such file or directory   $ cp \-S\ Session.vim Session.vim                                                                                cp: missing destination file operand after 'Session.vim'                                                                                Try 'cp --help' for more information.


I am dual-booting with Windows 10 + Ubuntu. The problem is that if Windows' Fast Startup is on, Ubuntu won't load. If it is off, it will take Windows some 7 minutes to start next time. So it is faster for me to turn it off on, because I use them in periods usually.   I would like to have a batch file that will toggle the fast startup on/off.   Is this possible?


How can I sync my Outlook calendar with my Android phone calendar?

I have Galaxy Europa GT-I5500 Android phone with me.  The problem I am facing is I am able to Sync my Contacts and Notes with my Outlook 2007, but I am not able to sync my my phone calendar with Outlook 2007.   I'd appreciate if anyone can help me with the problem I am facing.


How to adapt this table to fit the page ?

How to resize this table in case if it is very long to fit the page ?  Original question here:      \documentclass{article}     \usepackage{tabularx}     \usepackage{amsmath}     \usepackage[table]{xcolor}     \usepackage{tabularx, multirow, makecell, rotating} %     \usepackage{enumitem}          \begin{document}         \begin{center}     \bfseries \settowidth\rotheadsize{List of Abbreviation/accronym} \begin{tabularx}{\linewidth}{|c|>{\centering\arraybackslash}X|}     \hline \cellcolor{gray!30} Abbreviation & \cellcolor{gray!30} Explanation     \\     \hline \multirow[b]{2}{*}{USA}                & \cellcolor{blue!30}  United state of america  \rule[-1em]{0pt}{2.5em} \\     \cline{2-2} %   &  %   \rule[-1em]{0pt}{2.5em} \\ %    \cline{2-2}     &    \rule[-1em]{0pt}{2.5em} \\     \hline         \multirow[b]{2}{*}{NY}                &  \cellcolor{blue!30} New york   \rule[-1em]{0pt}{2.5em} \\     \cline{2-2} %   &  %   \rule[-1em]{0pt}{2.5em} \\ %    \cline{2-2}     &     \rule[-1em]{0pt}{2.5em} \\     \hline \end{tabularx}     \end{center}     \end{document}


How to aggregate repeating fields into seperate colums

following situation, pos/neg_text are repeating: This is my feedback table: id  text-id    pos_text         neg_text       cat_id 1   1          nice people      null           21  2   1          nice people      null           24  3   1          nice people      null           27  4   1          null             cold room      36 5   1          null             cold room      37  I would like to bring all these data into a single row like: id  text-id    pos_text         neg_text       pos_cat_id       neg_cat_id 1   1          nice people      cold room      "21,24,27"       "36,37"     How should my SQL query look like? I am implementing an algorithm with TypeScript in my middleware to solve this problem, and maybe there are DB-specialists can solve that much more elegant with a simple SQL-Query. Using SQL Server 2008


JFileChooser.showSaveDialog(...) - how to set suggested file name

The JFileChooser seems to be missing afeature: a way to suggest the file name when saving a file (the thing that usually gets selected so that it would get replaced when user starts typing).  Is there a way around this?


installing Grub on btrfs : No space left on device

I'm trying to repair grub after a Win10 install. Here's the content of my disk:  Disk /dev/sda: 465.8 GiB, 500107862016 bytes, 976773168 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0xc4476e04  Device     Boot     Start       End   Sectors   Size Id Type /dev/sda1            2048    206847    204800   100M  7 HPFS/NTFS/exFAT /dev/sda2  *       206848 566209347 566002500 269.9G  7 HPFS/NTFS/exFAT /dev/sda3       566210560 567169023    958464   468M 27 Hidden NTFS WinRE /dev/sda4       567171072 976773167 409602096 195.3G  5 Extended /dev/sda5       567173120 976773119 409600000 195.3G 83 Linux   sda2 contain wind10 and sda5 a btrfs volume (no encryption, no compression)  I had no luck with boot-repair, so I followed the instructions here:   Boot with a Linux LiveCD sudo mount -t btrfs -o subvol=@ /dev/sda5 /mnt sudo mount --bind /dev /mnt/dev sudo mount --bind /dev/pts /mnt/dev/pts sudo mount --bind /proc /mnt/proc sudo mount --bind /sys /mnt/sys sudo chroot /mnt grub-install /dev/sda   Here I get the following eror:  Installing for i386-pc platform. grub-install: error: cannot open `/boot/grub/i386-pc/hello.mod': No space left on device.   sda5 has 56GB of free space. What is going on and how can I fix my system? Thanks  Edit : more informations  df Filesystem     1K-blocks      Used Available Use% Mounted on /dev/sda5      204800000 149884472         0 100% / udev            12307620         0  12307620   0% /dev  df -i Filesystem      Inodes IUsed   IFree IUse% Mounted on /dev/sda5            0     0       0     - / udev           3076905   777 3076128    1% /dev


Why is "No new release found" when upgrading from a LTS to the next?

I'm following the , but on launching the upgrade tool I get this response:  Checking for a new ubuntu release No new release found   Am I doing something wrong? Is there a workaround?


I am using the IEEE style in my bibliography with biblatex. Unfortunately, I use the same authors with "et al." several times. In some cases, LaTeX then replaces the author field in the pdf with a horizontal line (in the article reference type), but not for every authors I use multiple times. Does someone have ideas what I can do?


Make all possible n length permutations from n lists of integers (of possibly unequal length)

Example:  list1 = [0,1,2] list2 = [0,1] list3 = [0,1,2,3]   Then the permutations would be:  0,0,0 0,0,1 0,0,2 0,0,3 0,1,0 0,1,1 0,1,2 0,1,3 1,0,0 1,0,1 1,0,2 1,0,3 1,1,0 1,1,1 1,1,2 1,1,3   ...and so on with 3 x 2 x 4  = 24 permutations.  The number of lists is not necessarily 3 (they can be any number, n) and the order matters so 0,0,1 is not the same as 0,1,0.  I understand I might have to use itertools somehow, but not sure how to approach this. I can't just make three nested loops since the number of lists varies.  This is a variation of , but the number of lists varies and order matters.  I appreciate any help or hint. Thanks.


When posting an HTTPS url like https://stackoverflow.com/..., it does not onebox in chat. For example:


Proof: A connected metric space which contains more than 1 point is never countable.

This is an exercise in Munkres's book of topology.      If $X$ is a connected metric space and there are at least two points in $X$, then $X$ is not countable.    I have attempted to find the proof by constructing a chain of non-empty closed sets, say $K(i+1)$ belongs to $K(i)$, and $x_i$ lies out side $K_i$. But I failed to show that the intersection of all the $K_i$'s should not be empty because $X$ is not necessarily compact.


I'm trying to make a pistol with a hammer thingy on the back. I've been struggling to make the back perfectly aligned like the red line in the 3rd image. Any help would be appreciated.


Add a BadgeTypeId to the Badges table on SEDE

When trying to derive badge statistics on  it would be helpful if there was an identifier (say BadgeTypeId) that would mark the badge as being   Bronze badge Silver badge Gold badge Bronze tag badge Silver tag badge Gold tag badge   Motivation: A while back (not reproducible anymore) we had an {epic} tag on . With the  having only a Name field to identify it, it wasn't easy to discern between the regular  and the bronze/silver/gold {epic} tag badge.  I can see that, in the long run, some sites might be more affected than others where there could exist an overlap between the tag names and badge names.  springs to mind where TV shows or movies might have titles similar to some badges.   requests the addition of badge class. This post requests something more: class and type (tag/regular).


Possibilities of splitting Notepad++ into more than 2 windows

I would like to open 4 Notepad++ windows at once, in the same pannel. Currently, I am only able to split it into two, and would like to know if there is a plugin that enables 4 views at at same time, or 3.   thanks


How to fully install Ubuntu on a USB flashdrive?

i tried some guides on youtube how to do it,and after installation and booting to ubuntu , a few moments later Ubuntu frozes . I use a Sandisk 128gb ssd flashdrive as a disk for the installed ubuntu. Any guide please ? Thanks


Is it better to have an ErrorDocument 404 redirect back to the homepage or a standard 404 error page?

We run an ecommerce site that was setup by a third party ecommerce software provider, basic shop with product pages, basket and checkout.  The third party vendor set up the htaccess file so that if a non-existent URL is enetered it redirects to the homepage instead of a 404 error being generated.  This results in google webmaster reporting duplicate titles and descriptions for pages that no longer exist.  I think that it would be better for a dedicated 404 error page to be displayed rather than redirecting back to the homepage  So is it better to have a website redirect a 404 to the homepage than have a dedicated 404 page instead?


ubuntu 14.04 connect to a wifi network using command line

I have installed Ubuntu 14.04 server and I need to connect to my WiFi network. How can I connect to my WiFi network using only the command line.


Write a lambda or anonymous function that accepts an out parameter

I have a delegate defined in my code:  public bool delegate CutoffDateDelegate( out DateTime cutoffDate );   I would like to create delegate and initialize with a lambda or anonymous function, but neither of these compiled.  CutoffDateDelegate del1 = dt => { dt = DateTime.Now; return true; } CutoffDateDelegate del2 = delegate( out dt ) { dt = DateTime.Now; return true; }   Is there way to do this?


What is the best way to convert seconds into (Hour:Minutes:Seconds:Milliseconds) time?  Let's say I have 80 seconds, are there any specialized classes/techniques in .NET that would allow me to convert those 80 seconds into (00h:00m:00s:00ms) format like to DateTime or something?


Shortest code to calculate list min/max in .NET

I'd like something like  int minIndex = list.FindMin(delegate (MyClass a, MyClass b) {returns a.CompareTo(b);});   Is there a builtin way to do this in .NET?


What topics should I develop complete concepts in before I begin the derivation of GR?

I had just been trying to understand GR but i just cannot understand where some of the formula of field came from. Apparently all those initial formula are from Newtonian physics so please anyone could recommend me the topics and even better if there are books which consist of the derivation of the formula of the Newtonian gravitational fields which is used in the derivation of GR.


Is "this Monday" or "next Monday" the correct way to refer to the very next Monday in the future?

Possible Duplicate:          When I refer to the very next Monday that will occur in the future, I say "next Monday". Some colleagues refer to it as "this Monday", with "next Monday" meaning the second Monday which will occur in the future (I would refer to that as "Monday week", "this Monday" to me would mean the most recent Monday in the past).  Are these both acceptable usages, or is one more correct than the other?


I know I'm not supposed to use subsubsections, but I have this hierarchical structure that I need to describe so I have to use them. I want to define a subsubsection page that looks like the picture, basically Section Title/Subsection title - Subsubsection title. I've played with the section title to generate the image. How can I achieve that result?    \documentclass{beamer} \usetheme[sectionpage=none, progressbar=frametitle, numbering=fraction]{metropolis}  \begin{document} \section{Section Title} \subsection{Subsection Title - Subsubsection title} \subsubsection{Subsubsection title} \frame{\subsectionpage} %ideally I'd have a \subsubsectionpage command \end{document}


Implementing i18n string translation in a custom module?

I have a custom module I've built which essentially acts as a repository of custom CTools keywords that users can arbitrarily define. The issue I'm facing is I need to be able to translate these user-defined strings, so I think I need to implement string translation using the i18n_string module.  I have never worked with translation or localization before, so I'm a bit lost with regards to going about how to implement this. I think I'm on the right path with i18n_string though. Can someone experienced with i18n provide examples that I can look at so I can learn the proper way to implement this?