I'm thinking of installing a motion detector inside an existing recessed fixture over my front door in order to illuminate the stairs and door lock at night. Home Depot sells a small sensor that can be installed between the socket and bulb but nobody has been able to tell me if the frosted glass cover will block the sensor.

Can any one help? I purchased a solar powered PIR security light, with the intention of putting it inside my kitchen window. The PIR would be inside the window, but this does not work.  When I go outside to activate the light, it does not work. When I go inside to run my hand across the sensor, it works.  Will a PIR unit penetrate glass, or am I barking up the wrong tree?


I need to merge two javascript object and set it to my global object. I'm using "Object.assign" method but it doesn't work.It works right when it called first time. But I need to merge each time my new object to the global object. But it doesnt work more first time ,it makes my global just same as last object.Do you know any other way to make it ? Thanks in advance :/  Javscript codes :      //global object     Admin.bufferCreateJSON={};      Admin.createBufferJSON=function(){         var B_name=$("#B_name").val();         var B_description=$("#B_description").val();         var B_bufferType=$("#bufferTypeSelect").val();            var bufferData={};          var common = {'name': B_name,'description': B_description};         bufferData=Object.assign(bufferData, common);         var bufferType={ 'bufferType[id]': B_bufferType}         //following codes works right         bufferData=Object.assign(bufferData, bufferType);          //Admin.bufferCreateJSON is my global variable          // But when I want to merge it to my global variable it doesnt work         Admin.bufferCreateJSON=Object.assign(Admin.bufferCreateJSON, bufferData);         //shows me just last one          console.log(Admin.bufferCreateJSON);      }

I need to be able to merge two (very simple) JavaScript objects at runtime.  For example I'd like to:  var obj1 = { food: 'pizza', car: 'ford' } var obj2 = { animal: 'dog' }  obj1.merge(obj2);  //obj1 now has three properties: food, car, and animal   Does anyone have a script for this or know of a built in way to do this?  I do not need recursion, and I do not need to merge functions, just methods on flat objects.


I remember watching a children's animated movie several years ago, but I do not remember much.  I do remember it involved a man who got trapped in a fantasy world somehow, dragons that needed to eat certain rocks in order to breathe fire, and the man defeats the villain by rapidly yelling the names of branches of science that end in "-ology."

I'm looking for an animation (more likely a film not a series) that I watched as a kid, watched early 90's I'm sure it contained a book loving male main character (wears glasses might have even had an amulet) who gets pulled into a fantasy via a magic book  Setting with dragons and an evil wizard, I remember it being on TV as I never had it on VHS.  Same sort of animation technique as visionaries or thundercats.  Thanks.


When Banner transforms into Hulk there's usually some shirt-shedding involved, as  demonstrates. Watches, shoes, belts etc. are similarly ripped off. Yet Hulk always seems to be able to keep his shorts, no matter how much he expands.  Obviously, I can appreciate the pragmatic, out-of-universe reason why the comic creators and the film-makers wouldn't want a starkers Hulk running about. Is there any in-universe explanation for why Hulk rips everything apart from his shorts?  Answers from either the films or the comics are fine (though I confess I'm not at all familiar with the latter).

I guess I can live with the fact that the  changes size drastically when he transforms, but why does his shirt rip off and not his pants?  I think that we need a little better answer than "it keeps us tied to the fact that inside he's still human".


says the answer is $1$.  says it's undefined.         I saw an argument made for $0^0$ being $1$, on , along the lines of: if you want the binomial theorem to work for real numbers (in the form $(a + 0)^n$ where $a \in \mathbb{R}$), then you should accept that $0^0 = 1.$

Could someone provide me with a good explanation of why $0^0=1$?  My train of thought:  $x>0$  $0^x=0^{x-0}=0^x/0^0$, so  $0^0=0^x/0^x=\,?$  Possible answers:   $0^0\cdot0^x=1\cdot0^0$, so $0^0=1$ $0^0=0^x/0^x=0/0$, which is undefined   PS. I've read the  on mathforum.org, but it isn't clear to me.


Here is a simplified version of the code I am trying to write:  template<typename Derived> class StateMachine { public:   void SetState(Derived::State s) {     static_cast<Derived*>(this)->TransitionTo(s);   } };  class MyFSM : public StateMachine<MyFSM> { public:   enum class State {     State1,     State2,     State3   };   void TransitionTo(State s) {     _state = s;   } private:   State _state = State::State1;   };   I'm using c++11 with clang. The error I get here is 10:17: error: missing 'typename' prior to dependent type name 'Derived::State' for the declaration of SetState. I've also tried adding typename Derived::State DerivedState; and then using DerivedState instead of Derived::State, but then I get error: unknown type name 'DerivedState'.  More confusing still, I tried typedef typename Derived::State DerivedState; and then I get the error: error: no type named 'State' in 'MyFSM'. my last try was typedef enum class Derived::State DerivedState; and then I get the most confusing error of all: error: no enum named 'State' in 'MyFSM'.  I'm out of my depth with templates here and would welcome any help understanding this! Also, there may be a better pattern to use here. The main thing I'm going for is that the StateMachine class has some common functionality and then there are a bunch of different state machines, each with their own state and transition function. I have another way of doing it that requires passing in this to SetState (when called from within MyFSM, which is a simplified version of what I'm doing), but that's ugly for it's own reason. I'd love to avoid this tempalted class thing, but my main goal is making the derived classes as easy to write and understand as possible.

In templates, where and why do I have to put typename and template on dependent names? What exactly are dependent names anyway?    I have the following code:  template <typename T, typename Tail> // Tail will be a UnionNode too. struct UnionNode : public Tail {     // ...     template<typename U> struct inUnion {         // Q: where to add typename/template here?         typedef Tail::inUnion<U> dummy;      };     template< > struct inUnion<T> {     }; }; template <typename T> // For the last node Tn. struct UnionNode<T, void> {     // ...     template<typename U> struct inUnion {         char fail[ -2 + (sizeof(U)%2) ]; // Cannot be instantiated for any U     };     template< > struct inUnion<T> {     }; };   The problem I have is in the typedef Tail::inUnion<U> dummy line. I'm fairly certain that inUnion is a dependent name, and VC++ is quite right in choking on it. I also know that I should be able to add template somewhere to tell the compiler that inUnion is a template-id. But where exactly? And should it then assume that inUnion is a class template, i.e. inUnion<U> names a type and not a function?


I have an outline that has 3 curved "segments". Actually it's all connected edges. I want to fill them with a grid that has one "pole", so it's like of 1/8 sphere but irregular. SketchUp has a plugin called Curviloft which is very smart and handles grids like this one. It can also do stuff like Blender Grid Fill tool. I want to achieve the same result in Blender but Grid Fill tool does not help. I know there are addons like Smart Fill and Curve to Mesh. I haven't tried them yet. Perhaps this is the way, but they are both paid, so I want to ask first. Would you have any suggestions for me? Thank you  Blend file:

I have a triangular space I want to fill with Grid Fill. The two long sides have each 33 vertices. So connecting them should give the vertical edges of the grid. The short side (on the left) has seven vertices. There should be 7 horizontal grid edges radiating to these vertices from the triangle point. How can I make Grid Fill do this?


Microsoft is offering free upgrades to Windows 10 for certain users. Currently I am running a Ubuntu/ Windows 8.1 dual boot set up on my laptop.   I rarely boot into Windows but just to keep up to date with what is going on there I would like to keep it. What can I expect when opting to upgrade to Windows 10? My suspicion is that the least it will do is make sure there is the Windows boot loader installed and there is only one option to boot.   With Win 10 being released today I wonder if anyone has gone through the upgrade path and would like to share his findings? What can I expect to happen?

I have dual booted my laptop with windows 8.1 and Ubuntu 15.04. Windows came as a OEM with the laptop so I didn't delete it as I paid for it and I am not using it though. I want to know if I do the free upgrade to Windows 10 will it destroy my Ubuntu partitions? or will  it mess up anything in the boot files or grub?


A single word which sums up the option of AM/PM or morning/afternoon.

In a day, we have different names for different times of it. For example, morning, afternoon, night, evening, noon.  I need a hypernym for them all. What word should I use?


If G is an abelian finite group, and H is a subgroup of G, How can I prove that G/H is isomorphic to another subgroup N of G?.

Let $G$ be a finite abelian group, and let $K$ be a subgroup of $G$. Does $G$ necessarily have a subgroup $H$ such that $H\cong G/K$ and $H\cap K=\langle 0\rangle$?  I'm not sure where to start.


I have headphones with differential input and impedance of 8 ohms. I need to drive this headphone with some DAC with built in headphone driver (Currently I have chosen ADAU1772). DAC's datasheet mentions that the minimum impedance of headphones it supports is 16 ohms. Can I increase impedance of my headphones so that I can drive them through this chip? What will happen if I drive this 8 ohm headphone through a chip supporting minimum impedance of 16 Ohms?

I have stereo differential (meaning each left and right speaker have 2 wires) headphones. The specs say that impedance of headphones is 8 ohms. I need to drive this headphones with a dac with built-in headphone driver.    All the dac chips i have searched (from analog devices(adau1772) and asahi kasei(ak4373) )  which can drive differential left and right channels have mentioned in datasheets that this chip can drive 16,24 and 32 ohm headphones. I cant find a dac or audio codec which says it can drive 8 ohm headphones. My questions are : 1) can i be wrong in understanding the specs of differential stereo headphones? Can two 8 ohm speakers add up impedance to 16 ohms? 2) if we assume that headphones impedance is 8 ohms, what will happen if I drive this headphones with chip whose datasheet says it supports minimum headphones impedance of 16 ohms? 3) can you suggest any dac or audio codec chip which can drive 8 ohm differential headphones?


since many years i'm trying to figure out that what does 'this' do in c#.net  e.g.  private string personName;  public Person(string name) {   this.personName = name; }  public override string ToString() {   return this.personName; }   }

I was curious about how other people use the this keyword. I tend to use it in constructors, but I may also use it throughout the class in other methods. Some examples:  In a constructor:  public Light(Vector v) {     this.dir = new Vector(v); }   Elsewhere  public void SomeMethod() {     Vector vec = new Vector();     double d = (vec * vec) - (this.radius * this.radius); }


I had recently watched Air and I couldn't understand what did the little girl and boy mean to show? I searched about it but couldn't find any answer. What are winged beings and why did people kept them in prison? What do the little boy and girl mean?

About the anime version of Air:  Some sources on the net state that Kanna's curses were broken, and her next reincarnation would be a happy one.  Some say that the pair of children playing on the beach were the reincarnations of Misuzu-Kanna / Yukito-Ryūya.  What is the canonical explanation of this ending? Did the curses really get lifted? Please include sources in your answer.


Got an ArrayList like that. Wanna find how many values are repeated: Example: person:4 times , girl:4 times  public ArrayList<String> new_contains_all= new ArrayList<>();   ...  [[laying, beautiful, brushing, group, young, head, bed, close, couple, female, teeth, white, indoor, pair, holding, sunglasses, stuffed, wearing, posing, dress, person, hair, standing, looking, girl, red, playing, made, top, woman, lady, hat, clothing, goggles, people],      [person, hair, young, shirt, looking, phone, girl, white, glasses, food, sunglasses, wearing, woman, hat], [blue, beautiful, person, cake, standing, young, shirt, black, female, board, girl, white, photo, holding, ready, wearing, top, posing, woman, lady, smiling, clothing, dress, suitcase], [street, clock, light, stop, sign, red, text, sitting,      man, photo, traffic], [blue, person, young, looking, phone, sitting, female, girl, photo, computer, using, red, laptop, holding, glasses, food, sunglasses, wearing, top, woman, lady, hat]]   Notify that the Array have 5 elements inside.  Already tried this, that should be working for simple ArrayList but with more than 1 string per element its creepy, i know the solution must implement another bucle inside key, but so tired for today :/ maybe someone blinks my mind :P  List<String> l = new_contains_all; Set<String> s = new HashSet<String>(l); for (String key : s) {     int count = Collections.frequency(l, key);     if (count > 1)         System.out.println("Found '" + key + "' " + count + " times."+"key: "+key.toString()+"l: "+l.toString()); }

I have an ArrayList, a Collection class of Java, as follows:  ArrayList<String> animals = new ArrayList<String>(); animals.add("bat"); animals.add("owl"); animals.add("bat"); animals.add("bat");   As you can see, the animals ArrayList consists of 3 bat elements and one owl element. I was wondering if there is any API in the Collection framework that returns the number of bat occurrences or if there is another way to determine the number of occurrences.  I found that Google's Collection Multiset does have an API that returns the total number of occurrences of an element. But that is compatible only with JDK 1.5. Our product is currently in JDK 1.6, so I cannot use it.


Prove that for all $n∈ \mathbb N$, if $n^2=4q+r$ for $q,r ∈ \mathbb Z$ with $0≤r<4$, then $r = 0$ or $r = 1$.   The only way I can think is prove that $4|n^2$ or $4|n^2-1$ is true by induction. However it seems not a good idea by this way. Can anyone help?

This is a question from the free Harvard online abstract algebra .  I'm posting my solutions here to get some feedback on them.  For a fuller explanation, see  post.  This problem is from assignment 6.  The notes from this lecture can be found .     a) Prove that the square $a^2$ of an integer $a$ is congruent to 0 or 1 modulo 4.   b) What are the possible values of $a^2$ modulo 8?   a) Let $a$ be an integer. Then $a=4q+r, 0\leq r<4$ with $\bar{a}=\bar{r}$.  Then we have $a^2=a\cdot a=(4q+r)^2=16q^2+8qr+r^2=4(4q^2+2qr)+r^2, 0\leq r^2<4$ with $\bar{a^2}=\bar{r^2}$.  So then the possible values for $r$ with $r^2<4$ are 0,1.  Then $\bar{a^2}=\bar{0}$ or $\bar{1}$.  b) Let $a$ be an integer. Then $a=8q+r, 0\leq r<8$ with $\bar{a}=\bar{r}$.  Then we have $a^2=a\cdot a=(8q+r)^2=64q^2+16qr+r^2=8(8q^2+2qr)+r^2, 0\leq r^2<8$ with $\bar{a^2}=\bar{r^2}$.  So then the possible values for $r$ with $r^2<8$ are 0,1,and 2.  Then $\bar{a^2}=\bar{0}$, $\bar{1}$ or $\bar{4}$.  Again, I welcome any critique of my reasoning and/or my style as well as alternative solutions to the problem.  Thanks.


On a PHP project, in which header is imported trough PHP, special characters such as "ñ" or "á" do not appear.  Database is correctly encoded as UTF8-general-ci, and these characters display correctly inside the database. The issue is that when showing them on the site, all special characters look like this (it shoul be Germán Álvarez):    Is this because of importing head trough PHP (as seen abobe), instead of placing it directly on each PHP file? How can I solve this?  Header import code:  ......  <html>  <?php     include("../modules/head.php"); ?>      <body>    ......   Code inside file modules/head.php:  <head>     <meta charset="UTF-8" />     <meta http-equiv="Content-Type" content="text/html; charset=utf-8">      <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">      <meta name="viewport" content="width=device-width, initial-scale=1.0">      <title>Waisap | Sistema de mensajería interactivo </title>     <meta name="description" content="-----" />     <meta name="keywords" content="" />     <meta name="author" content="-----" />     <link rel="shortcut icon" href="../img/basics/favicon.ico">     <link rel="stylesheet" type="text/css" href="../css/style.css" />     <script src="../js/modernizr.custom.js"></script>     <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>  </head>

I'm setting up a new server and want to support UTF-8 fully in my web application. I have tried this in the past on existing servers and always seem to end up having to fall back to ISO-8859-1.  Where exactly do I need to set the encoding/charsets? I'm aware that I need to configure Apache, MySQL, and PHP to do this — is there some standard checklist I can follow, or perhaps troubleshoot where the mismatches occur?  This is for a new Linux server, running MySQL 5, PHP, 5 and Apache 2.


So I was told by an IT guy a while back that if I wanted to run Ubuntu without the risk of messing with my existing Windows computer and all of its files, I could simply install and run it off of an external hard drive.  I have been searching for ages for an up-to-date and proper tutorial on how to do this, but have not been successful. I am trying to essentially run Ubuntu on the external hard drive as if it was a persistent USB that I can boot from when plugged in. I have had no success making a persistent USB, so I don't even have much of anything to go off of on my own.  Can anyone help?

OS: Windows 7. I want install Linux Ubuntu on portable external Hard Drive USB 2.0. I read a variety of methods, but I'm confused by contradictory advices and methods. Actually, installing Ubuntu on anything other than clean PC looks much more complicated than installing Windows. I need to have Ubuntu package + Python 2.7 + C compiler installed. My external hard drive is partially filled, I need to keep all files.   Will Ubuntu run entirely on external hardrive, without writing anythinhg to Windows system folders and to registry?  Can anyone post detailed guide how install Ubuntu on external hard drive?


Is a spell cast using a  observable, in the sense that you could  it? Or is it essentially same as if you cast a spell using something like a Sorcerer's Subtle Spell metamagic, or some other means of hiding or not needing the components of the spell? Does it maybe even depend on the type of spell, ie. if the spell effect is observable, it could be counterspelled, but not if there is no visible effect? Relevant snippet from the ring description:  While wearing this ring, you can cast any spell stored in it. The spell uses the slot level, spell save DC, spell attack bonus, and spellcasting ability of the original caster, but is otherwise treated as if you cast the spell.

Some magic items allow you to cast spells using them, even if you are normally unable to cast such spells, such as the Wand of Magic Missiles or the Helm of Telepathy.  When you cast a spell with such a magic item, can you be visibly seen to be casting the spell? This is relevant to    Whether or not the spell can be Counterspelled Whether it is obvious to observers that any magic has occurred, if it's a spell like Detect Thoughts that has no visible effect after being cast.


I do not have any file. I want to know each and every point how to set sabon as default font style in LaTeX  I want to use sabon but now  I am at zero point.  \documentclass{article} \usepackage{polyglossia} \usepackage{fontspec}   \usepackage{fontspec} \setromanfont{Times New Roman}   \setsansfont{Arial}   \setmonofont[Color={0019D4}]{Courier New}   \begin{document} hkjhkjh  \end{document}

So I downloaded a template for a CV. It uses XeLaTeX. I would like to change the font but I lost hope to find myself how I am supposed to do that. My OS is Windows 7. Here is a functional code that uses the original font Fontin. I downloaded it to make it work, and I would like to use something else (and something that uses accents (I speak french) !)  \documentclass[a4paper,10pt]{article} % Default font size and paper size \usepackage{graphicx} \usepackage{caption} \usepackage{subcaption} \usepackage{textpos} \usepackage{fontspec} % For loading fonts \defaultfontfeatures{Mapping=tex-text} \setmainfont[SmallCapsFont = Fontin SmallCaps]{Fontin}  \usepackage{xunicode,xltxtra,url,parskip} % Formatting packages  \usepackage[usenames,dvipsnames]{xcolor} % Required for specifying custom colors  \usepackage[big]{layaureo}   \usepackage{hyperref} % Required for adding links   and customizing them \definecolor{linkcolour}{rgb}{0,0.2,0.6} % Link color \hypersetup{colorlinks,breaklinks,urlcolor=linkcolour,linkcolor=linkcolour} % Set link colors throughout the document  \usepackage{titlesec} % Used to customize the \section command \titleformat{\section}{\Large\raggedright}{}{0em}{} % Text formatting of sections \titlespacing{\section}{0pt}{2pt}{2pt} % Spacing around sections \usepackage{vmargin} \usepackage{fullpage}  \begin{document} \setmarginsrb{25mm}{0mm}{30mm}{0mm}{1cm}{5mm}{1mm}{10mm} \pagestyle{empty} % Removes page numbering  \font\fb=''[cmr10]'' % Change the font of the \LaTeX command under the skills section  \par{\Huge TacTac \textsc{TicToc} - OncheOnche \bigskip\par}  \par{\Huge \hspace{8mm}  huehuehue \bigskip\par}  \section{Données personnelles} \begin{textblock}{.9}(0,0) \rule{97mm}{0.09mm} \end{textblock} \begin{tabular}{rl} \textsc{Date de naissance:} & 01 brumeneige 3030 \\ \textsc{Adresse:} & Somewhere, sometimes \\ \textsc{Téléphone:} & +123456789\\ \textsc{Email:} & what about \end{tabular}   \section{Objectifs}\titlerule  I met a traveler from an antic land who said : Two vast and trunkless legs of stone stand in the desert... \\  %---------------------------------------------------------------------------------------- %   EDUCATION %-------------------------------------------------------------------------------                      ---------    \end{document}   I believe the problem comes from the lines  \defaultfontfeatures{Mapping=tex-text} \setmainfont[SmallCapsFont = Fontin SmallCaps]{Fontin}   But I don't know what I must change, where does the compiler look for the fonts... I saw other questions that look like mine, but all used Linux. I also saw that there could be some problems with fonts using spaces in their name (seriously...?)... Anyway. Someone got an idea ?


In Windows XP, I see that there are many copies of a process called scvhost.exe, some running as local services, some other as network services and yet some other owned by the system. One of this copies is using up to 50% of the processor (I'm using Windows XP as a Guest OS in VirtualBox with two cores, Host OS is Debian 7), and every time it runs starts throwing high temp alerts. To stop the warnings, I frequently kill the process, and the problem goes away.  So, my questions are:   What is this svchost.exe process? Why are there so many copies running? Is it a good idea to kill the process? (Windows seems to work just normally with or without that "cpu-hungry" svchost.exe process running) Can I, somehow, tweak the configuration to stop this "rogue" copy of the process?   I will appreciate any help.

On all Windows machines there seem to be a number of svchost.exe processes running. What do this processes do and why are so many running?


I have a polygon layer with multiple sectors, I created for each one a pie chart. My problem is some of thoses pies are not displayed, but when I zoom I find them. I would be pleased if you tell me how to have them all displayed.

Is there a way to locate diagrams and move them wherever you want in QGIS 1.7.4/ 1.8.0? I created a pie chart under the tab "diagram". I can mark those diagrams with a green box and move them via the label-tool, but they won't change their position in the end. When I create diagrams with the "diagram overlay" tab they cannot even be marked.  Also, what is the difference between "diagram" and "diagram overlay"?


A simple question has led to much confusion via searching for the correct way to obtain the answer: Individual 1: mean = 20, standard deviation = 3, number of measures = 80; Individual 2: mean = 25, standard deviation = 5, number of measures = 120; Individual 3: mean = 22, standard deviation = 7, number of measures = 20; Individual 4: mean = 18, standard deviation = 4, number of measures = 67; Individual 5: mean = 28, standard deviation = 3, number of measures = 92 Mean of all individuals = (20 + 25 + 22 + 18 + 28) / 5 = 22.6, is this correct? standard deviation of all individuals = ???, how do I calculate this?? Thank you.

Say there are $m+n$ elements split into two groups ($m$ and $n$). The variance of the first group is $\sigma_m^2$ and the variance of the second group is $\sigma^2_n$. The elements themselves are assumed to be unknown but I know the means $\mu_m$ and $\mu_n$.  Is there a way to calculate the combined variance $\sigma^2_{(m+n)}$?   The variance doesn't have to be unbiased so denominator is $(m+n)$ and not $(m+n-1)$.


I know how to make a basic bpy.types.Panel, but how do I add these sub panels?

I have an add-on with rather a lot of UI options and am trying to find a way to clean it up so that not all the options need to be shown at once. I've noticed that some of the default tools have foldout sections, but I can't figure out what UI component I need to use to get the same behaviour.  Here is an example of what I'm talking about, showing the Color Picker panel open, but Color Palette and Options panels folded up. Is there a simple UI component I can use to emulate the behaviour and visual style of this in my add-on?


In tutorials for Ubuntu scripting I see as first line of a script either #!/bin/bash or #!/usr/bin/env bash. What is the difference between those?

In scripts, first line should specify the path to interpreter. But on different servers Linux, Unix, or BSD this path could be different.  What is more preferable?  #!/usr/bin/env bash    or  #!/bin/bash


XGE pg 164, Scatter     You teleport each affected target to an unoccupied space that you can see within 120 feet of you. That space must be on the ground or on a floor.   Water  You're on a boat and cast scatter on someone else on the boat.  If the water is less than 120 feet deep and you are looking over the side of the boat, could you teleport them to the bottom?  Lava  You're on an active volcano next to a pool of lava.  Can you scatter them into the lava?  You technically can't see the ground under it, so if you can send someone underwater could you not do it with lava?  Or does lava count as ground since you can technically walk on it (assuming we're using real lava not action movie lava)?  Ice  You're next to a frozen lake.  Can you scatter someone under the ice?

The spell Maximilian's Earthen Grasp describes compacted soil rising from the ground. This could be interepreted that compacted soil needs to come from "actual" ground containing dirt. (And this is how some folks in my one gaming group interpreted it.)     "You choose a 5-foot-square unoccupied space on the ground that you   can see within range. A Medium hand made from compacted soil rises   there and reaches for one creature you can see within 5 feet of it."   (, p 20)   However, other spells, like Tenser's Floating Disk refer to "the ground," where that could be any solid surface beneath you, be it the cave floor, a building's floor, or the actual ground - or at least that was the general consensus in .  The spell Move Earth (PH, p. 263) which specifically affects soil, uses the terms "terrain" and "dirt" - not "ground."   Does the ground simply mean whatever solid surface the characters and monsters are standing on?


Using Proof By Induction I am trying to prove the following:  $n^2 = \sum_{i=1} ^{n} (2i-1) $ for all $n\geq 1$  Here is my solutions so Far:  Base Case: $n=1, LHS: 2(1)-1 = 1, RHS = 1^2 = 1, True$  Induction Hypothesis:  Assume true for $n=k$  $k^2 =\sum_{i=1} ^{k} (2i-1) $ for some $k\geq 1$   Induction Step: Should be True for $n=k+1$  $(k+1)^2 =\sum_{i=1} ^{k+1} (2i-1) $ for some $k\geq 1$   However here is where I get stuck

Prove that for all integers $n$, $n \geq 1$,   $$1 + 3 + 5 + \cdots + (2n - 1) = n\cdot n$$   How would I go about proving this?


If $ a, b , c $ are distinct positive integers satisfying the inequality $ ab + bc + ca \ge 107$. Then what would be the least value of $\left(a^3 + b^3 + c^3 -3abc\right)$ So I basically tried doing two things, first one being applying AM > GM, but I could not because some terms would be negative. The second try was that I simplified $a^3 + b^3 + c^3 -3abc $ into $ \left(a+b+c\right) \left(a^2 + b^2 + c^2 -ab- bc- ca\right)$  but was stuck in finding the minimum  values of $ (a+b+c )$. Is there any specific way to solve this problem?

Is $a,b,c$ are three different positive integers such that :  $$ ab+bc+ca\geq 107 $$  Then what is the minimum value of $a^3+b^3+c^3-3abc$.  I expanded this expression to $(a+b+c)((a+b+c)^2-3(ab+bc+ca))$ and tried to find the minimum value of $(a+b+c)$ by AM-GM inequalities but the problem is that the minimum value occurs at scenario where $a=b=c$, which is ommitted by assumptions of this question. I'd appreciate some help.


I know how to map a single key to a command using the gconf settings.  I also know how to map a single key to another key ('F1' -> 'CTRL') using Xmodmap.  My question is how can I map a single key such as 'F1' to a multi-key operation such at 'Ctrl+C'.  I am basically trying to set up a single key to simulate copy.  I can think of two ways to possibly do this:   Map single key to multiple keys so that when the single key is pressed it is essentially pressing 'Ctrl+C' Use gconf settings to execute the copy "command" upon the single key press.  I am not sure if there is a "command" to copy text.

I know how to map a single key to a command using the gconf settings. I also know how to map a single key to another key (F1 -> ctrl) using Xmodmap. My question is how can I map a single key such as F1 to a multi-key operation such at ctrl+c. I am basically trying to set up a single key to simulate copy. I can think of two ways to possibly do this:   Map single key to multiple keys so that when the single key is pressed it is essentially pressing ctrl+c. Use gconf settings to execute the copy “command” upon the single key press. I am not sure if there is a “command” to copy text.


I'm trying to find patterns in a large dataset using the neuralnet package.  My data file looks something like this (30,204,447 rows) :  id.company,EPS.or.Sales,FQ.or.FY,fiscal,date,value  000001,EPS,FY,2001,20020201,-5.520000 000001,SAL,FQ,2000,20020401,70.300003 000001,SAL,FY,2001,20020325,49.200001 000002,EPS,FQ,2008,20071009,-4.000000 000002,SAL,FY,2008,20071009,1.400000   I have split this initial file into four new files for annual/quarterly sales/EPS and it is on those files that I want to use neural networks to see if I can use the variables id.company, fiscal and date in the case below to predict the annual sales results.  To do so, I have written the following code:  dataset <- read.table("fy_sal_data.txt",header=T, sep="\t") #my file doesn't actually use comas as separators  #extract training set and testing set trainset <- dataset[1:1000, ] testset <- dataset[1001:2000, ]  #building the NN ann <- neuralnet(value ~ id.company + fiscal + date, trainset, hidden = 3,              lifesign="minimal", threshold=0.01)  #testing the output temp_test <- subset(testset, select=c("id.company", "fiscal", "date")) ann.results <- compute(ann, temp_test)  #display the results cleanoutput <- cbind(testset$value, as.data.frame(ann.results$net.result)) colnames(cleanoutput) <- c("Expected Output", "NN Output")  head(cleanoutput, 30)   Now my problem is that the compute function returns a constant answer no matter the inputs of the testing set.       Expected Output   NN Output 1001     2006.500000 1417.796651 1002     2009.000000 1417.796651 1003     2006.500000 1417.796651 1004     2002.500000 1417.796651     I am very new to R and its neural networks packages but I have found online that some of the reasons for such results can be either:   an insufficient number of training examples (here I'm using a thousand ones but I've also tried using a million rows and the results were the same, only it took 4h to train)  or an error in the formula.   I am sure I'm doing something wrong but I can't seem to figure out what.

I'm training a neural network but the training loss doesn't decrease. How can I fix this?  I'm not asking about overfitting or regularization. I'm asking about how to solve the problem where my network's performance doesn't improve on the training set.    This question is intentionally general so that other questions about how to train a neural network can be closed as a duplicate of this one, with the attitude that "if you give a man a fish you feed him for a day, but if you teach a man to fish, you can feed him for the rest of his life." See this Meta thread for a discussion:   If your neural network does not generalize well, see:


For a little idea of what the project is, I'm trying to make a markup language that compiles to HTML/CSS. I plan on formatting links like this: @(link mask)[(link url)], and I want to find all occurrences of this and get both the link mask and the link url.  I tried using this code for it:  re.search("@(.*)\[(.*)\]", string)   But it started at the beginning of the first instance, and ended at the end of the last instance of a link. Any ideas how I can have it find all of them, in a list or something?

I have this gigantic ugly string: J0000000: Transaction A0001401 started on 8/22/2008 9:49:29 AM J0000010: Project name: E:\foo.pf J0000011: Job name: MBiek Direct Mail Test J0000020: Document 1 - Completed successfully  I'm trying to extract pieces from it using regex. In this case, I want to grab everything after Project Name up to the part where it says J0000011: (the 11 is going to be a different number every time). Here's the regex I've been playing with: Project name:\s+(.*)\s+J[0-9]{7}:  The problem is that it doesn't stop until it hits the J0000020: at the end. How do I make the regex stop at the first occurrence of J[0-9]{7}?


If you sample one case many times.  $$ X \sim N(\mu, \sigma)$$  If you sample n cases many times.  $$ \bar{X} \sim N\left(\mu, \frac{\sigma}{\sqrt{n}}\right) $$  If you know that $\sigma$ is at least $1.5$ then to ensure that 99.7% of the time your $\bar{X}$ is off of $\mu$ by less than 0.1 you need to ensure that the standard deviation of your sample distribution is off only by 0.1 scaled down so $3\frac{\sigma}{\sqrt{n}} = \frac{0.1}{\sigma}$ and $ n = \left(\frac{3\sigma^2}{0.1} \right)^2 $ or that your sample size is at least 4557. If you only need to be off by less than 1 than you should have about 46 samples.  It seems to me that for many cases the rule of 30 is much too small. Am I missing something here?

I have read/heard many times that the sample size of at least 30 units is considered as "large sample" (normality assumptions of means usually approximately holds due to the CLT, ...).  Therefore, in my experiments, I usually generate samples of 30 units. Can you please give me some reference which should be cited when using sample size 30?


I don't understand why pentaprisms are needed to reflect light from the image up through the viewfinder. When I read why it is used, the explanation seems to indicate that it ensures the light coming up is reflected out the viewfinder at 90 degrees. But wouldn't a 45-degree flat mirror accomplish the same thing?

In an SLR, the light bouncing off the mirror goes through a pentamirror or pentaprism before being reflected to the viewfinder. However, it seems to me that it would be possible to project an image to the viewfinder simply by using two mirrors, the upper one at a complementary angle to the lower one, much like a simple periscope.   Such a system might have benefits in terms of light transmission, as the light is only reflecting off 2 surfaces instead of 5, leading to a brighter viewfinder. This is such an obvious thing that I feel I must have misunderstood the purpose of the pentamirror/pentaprism.  Can anyone elaborate on why exactly such a complex path of reflecting surfaces is needed in an SLR?


There are verbs that, when paired with certain adverbs, can have a distinctly different meaning.  For example,     I looked up the word in the dictionary.   The phrase looked up functions as a verb with a distinct meaning than looked in a sentence like     I looked ridiculous.   In all of these two-word verb examples I can think of, they become a single word when used as a noun or adjective:     The software performs millions of lookups per second.   Is there a term for these verb+adverb pairs, and, if so, what is it?  Additional examples:  back up, run off, hang out  Once upon a time, I though these were called verbals, but that was wrong.  The term verb phrase is not quite right either; a verb phrase generally encompasses additional modifiers, objects, etc.

In the sentences below, “bill” and “hill” are both nouns.    He ran up a big hill. He ran up a big bill.   Can someone explain how one distinguishes whether “up” is a preposition or a part of a phrasal verb?


I'm modeling a ribbon out of a curve to put on a present model.  I'm using the extrude feature to form the actual ribbon.    The issue, is that the curve is tilted the wrong way.    How can I rotate the direction of the curve extrusion by 90 degrees?

Is there an easy way to control how the extruded width of a curve object is oriented, for example like this     or this     The curve in the images above has only two control points, and I got the effect by rotating one of the points. However, for a curve with lots of control points it would be somewhat difficult or at least tedious to achieve this. Is there a simpler way?


I need some clarity on the hyper-v virtualization strategy coming from ESXi 4.x.  Purpose: A VM for Sql Server 2012 w/ SP1 A VM for Sql Server 2014 CPT1    Hardware: Poweredge T100 8GB RAM, 2 SSDs JBOD and a 2TB 7200 WD backup drive. This is lab hardware for learning.  Problem: I am confused as to what the "free" Hyper-V server is for.   My understanding is that it will be the Host OS and the Guest OS will be 2012 Standard. Is this correct?

This is a  about Licensing.    Questions on licensing are off-topic on Server Fault.  If your question has been closed as a duplicate of this question, then this is because we want to help you understand why licence questions are off topic rather than just telling you "it just is". In all likelihood, this question will not address your question directly, it was not meant to.    I have a question regarding software licensing. Can the Server Fault community please help with the following:   How many licenses do I need? Is this licensing configuration valid? What CALs do I need to be properly licensed? Can I run this product in a virtual environment? Can I downgrade this product to an earlier version? Am I entitled to feature X with license Y?


for (char c : str.toCharArray()) {         if (!Character.isDigit(c)) {             return false;         }     }   Dont understand what mean condition of foor loop. How write this part of code in If/else form. Thank you.

Consider:  List<String> someList = new ArrayList<String>(); // add "monkey", "donkey", "skeleton key" to someList     for (String item : someList) {     System.out.println(item); }   What would the equivalent for loop look like without using the for each syntax?


I have a feeling the setuid bit, the nosuid mount option, sudo, and su are all related given their names.  But how do they relate to one another?  Are some of them used in conjunction?   If they are not, then why are their names so similar?

I've never really got how chmod worked up until today. I followed a tutorial that explained a big deal to me.   For example, I've read that you've got three different permission groups:   owner (u) group (g) everyone (o)   Based on these three groups, I now know that:   If the file is owned by the user, the user permissions determine the access. If the group of the file is the same as the user's group, the group permission determine the access. If the user is not the file owner, and is not in the group, then the other permission is used.   I've also learned that you've got the following permissions:   read (r) write (w) execute (x)   I created a directory to test my newly acquired knowledge:  mkdir test   Then I did some tests:  chmod u+rwx test/ # drwx------ chmod g+rx test/ # drwxr-x--- chmod u-x test/ # drw-r-x---   After fooling around for some time I think I finally got the hang of chmod and the way you set permission using this command.    But...  I still have a few questions:   What does the d at the start stand for? What's the name and use of the containing slot and what other values can it hold? How can I set and unset it? What is the value for this d? (As you only have 7=4+2+1 7=4+2+1 7=4+2+1) Why do people sometimes use 0777 instead of 777 to set their permissions?   But as I shouldn't be asking multiple questions, I'll try to ask it in one question.  In UNIX based system such as all Linux distributions, concerning the permissions, what does the first part (d) stand for and what's the use for this part of the permissions?


Is it possible that the [Large Hadron Collider],with a possible slight change in speed ( disrupt the gravity of Earth?

Are there experiments that are banned from being done at the LHC because they are too dangerous?


Example:  1345  One thousand three hundred and forty five.

Is there a way to convert a number to a string (Apex code, formula field ..)  For example: 5200 > cinq milles deux cents


sudo apt-get install vim Reading package lists... Done Building dependency tree        Reading state information... Done Package vim is a virtual package provided by:   vim-nox 2:7.4.052-1ubuntu3   vim-gtk 2:7.4.052-1ubuntu3   vim-athena 2:7.4.052-1ubuntu3 You should explicitly select one to install.  E: Package 'vim' has no installation candidate

How do I get to the Universe Repository in supported versions of Ubuntu?


By the sequence $(x_n)_{n\in\Bbb{N}}$, define a new sequence $(t_n)_{n\in\Bbb{N}}$ such that $t_n:=\frac {x_1+x_2+...+x_n}{n}$. If $\lim_{n\rightarrow\infty}t_n=\omega$, how can I show that $\lim_{t\rightarrow\infty}x_n=\omega$? Original post had ``If $\lim_{n\rightarrow\infty}x_n=\omega$, ..."

I have this problem I'm working on. Hints are much appreciated (I don't want complete proof):  In a normed vector space, if $ x_n \longrightarrow x $ then  $ z_n = \frac{x_1 + \dots +x_n}{n} \longrightarrow x $   I've been trying adding and subtracting inside the norm... but I don't seem to get anywhere.  Thanks!


Does something like: #compiler=XeLaTeX% \NeedsTeXFormat{LaTeX2e}% \documentclass{<class name>}% ...  exist for compilation with TeXworks on a Windows platform? Just a minor tweak that would save clicks.

I want the typesetting engine of my tex file be "XeLaTex" by default.   I can do this by changing the engine in a console, however, I am wondering how I can do such a work by adding some code to my tex file.   Lets say we have an online tex compiler and we have no choice to select the typesetting engine manually and we want to add some codes to our tex file to make it clear for the compiler which engine to use.  Edit:  It is worth pointing out that I use TexWorks editor, however I also want my code to work properly for (TeX Live 2013/W32TeX) that is for the Springer Editorial Manager system.  Thanks


For example in the rhyme "" the end of each verse is linked to the next. Would these just be called puns? Or is there a more specific name when they are used in this way. Example:  Miss Susie had a steamboat, the steamboat had a bell. Miss Susie went to heaven and the steamboat went to Hell– - O, operator, please give me number nine...  The first verse ends with "Hell" which is merged into "Hello" in the next.

Is there a name for when one phrase ends with a word that starts the next phrase. For instance:     life is a peach and cream   Or     sunscreen in the eye for detail   Or (from Dave Eggers' Heartbreaking Work of Staggering Genius)     JFKFC


How can I set the default terminal used in Unity?  I would like to use the Ctrl+Alt+T hotkey to start a non-default terminal. The default terminal is gnome-terminal.   Where can I change the default terminal value?

GNOME Terminal shows up in several places:   launchers which start terminal commands the Launch Terminal keyboard shortcut the menu items added by nautilus-open-terminal   Does each of these explicitly specify GNOME Terminal, or is there some centralized setting they reference?  I have checked for:   A setting in System Settings ▸ System Info ▸ Default Applications An analog of  or  An environment variable containing gnome-terminal. This one actually looks hopeful:  $ env | grep gnome-terminal COLORTERM=gnome-terminal   but I'm not sure where to go with it.   If such a setting exists, my goal is to change it to use a different terminal emulator by default.


I lost 2 reputation points because a question was removed. I didn't asked that question. So these are my guesses:  1.-I gave an answer to that question. 2.-I edited that question. 3.-I upvoted that question.    But I can't remember. Its not the only one. I have got this like 3 times total. The reputation help page doesn't say anything about it   What is the reason? and someone should totally add that to that help page :)

On Stack Exchange, users may gain a certain level of reputation.  What does reputation do? How can a user gain or lose reputation?   See also   in the Help Center  - Maximum amount of votes a user can use in a day and reputation requirements to vote.  - How to get an exact overview of the actions that got you your reputation.  - A full list of all privileges granted at each reputation level on all sites.


My win 7 ultimate computer has been professionally hijacked and configured to limit local access, windows, tools, etc. I cannot change their settings to take back control of my home computer.   They use accounts above Admin so as to lock me out to change them.  Services are added that I don't need, password protected with their accounts and dependencies are changed so if you can turn off a service the hijack depends on it will turn off other services you must have.  They also grey out the ability to change some of the services. So you cannot remove their account or turn it off.  The network is hijacked and encrypted and sent usually ip v6 sometimes through my ip4 port.  If you delete the network settings it has to reboot and if you reboot it goes back to the hijack settings.   Is there a script that could put win 7 ult back in my control and delete the services that a stand alone home computer not a client or server computer or on any group need that would prevent this hijack.  A script that could put all settings and services back to original default and delete any startup or autorun scripts that could reconfigure the system would help.  Ideally a script to set the system for use as a home computer will ALL of the un-needed services uninstalled or locked off.  Anyone have any such configuration script that would free my computer?

What should I do if my Windows computer seems to be infected with a virus or malware?  What are the symptoms of an infection? What should I do after noticing an infection? What can I do to get rid of it? how to prevent from infection by malware?   This question comes up frequently, and the suggested solutions are usually the same. This community wiki is an attempt to serve as the definitive, most comprehensive answer possible. Feel free to add your contributions via edits.


I've had a set of new EggBeater 3 pedals for 1 month and the left pedal is rusted. I don't understand why only one of the pedals is rusted and the other is not. Is this common and is there something in particular I should do about it?

So I did a couple of wet rides last month, and I guess I didn't dry the pedals as well as I should have.  I have Crank Brothers Eggbeater pedals, and I noticed a bit of surface rust on them that I'd like to remove.  What are my options, considering that I can't really disassemble the pedals, and they have a large number of surfaces that are hard to get to?


So I was trying to log into a server in SSH when all of a sudden it shows "password:." I try to type something where the password goes but whenever I press the keys nothing shows up. No words or letters or numbers.

When I'm about to install a program in the terminal it wants the password:  [sudo] password for xxx:   But when I start to type my password nothing happens. What should I do?


I reinstalled my computer and I did a back up of the Outlook pst data files. Now I installed Outlook and added my email account. I told it to use the existing data file.   Then it started to download the messages. It downloaded the same messages from the server again!  I use POP3 but I have set it to keep the messages on the server, because I have multiple computers so I need to access the messages everywhere. I don't want to use IMAP, because then it requires an Internet connection to get the emails.  How to get it working?

Essentially I have a client who is on hosted exchange and have decided to use POP3 to download the mail (I don't know why they don't use .OST's but anyway), they rebuilt the machine and backed up their .PST file. Now their Outlook was configured to keep mail downloaded on the server for 14days.  Essentially their current PST is fairly complex, many folders and sub folders and so on. So what is the best way to handle it really - create a new Outlook profile on the rebuilt machine and download the mail via POP into a new .PST then just recreate the folders in the new pst and drag and drop the mail via attaching the backed up .pst, recreating the folders etc?  But is their an easier way to do this, maybe pointing the new account to use the original PST, but then that would download all the mail again from the server to that .PST file.  Any ideas on the best way to handle POP3 account rebuilds from scratch when you have a backed up PST?


Ordinarily I draw graphs in tikz with:  \begin{tikzpicture}     \Vertex[x=1,y=1]{x1}     \Vertex[x=2,y=1]{x2}     \Vertex[x=3,y=1]{x3}     \Vertex[x=4,y=1]{x4}     \Vertex[x=5,y=1]{x5}     \Edge(x1)(x2)     \Edge(x2)(x3)     \Edge(x3)(x4)     \Edge(x4)(x5) \end{tikzpicture}   Now I want to draw a factor graph, where the vertices are squares instead of circles.  This is the only difference.  I can't, however, find out how.  How do I?

I'm using these settings for most vertices:  \GraphInit[vstyle=Classic] \tikzset{VertexStyle/.append style = {minimum size = 5pt, inner sep = 0pt}}   But I'd like to have one or two vertices of my graph be hollow with a thick outer edge. I'm very confused about what options can be used in \Vertex, which ones can go in \SetUpVertex, for which I have to use \tikzset, etc. What's the best option here?


I'm reading "a brief history of time" and he states "the speed of light should be the same whatever the speed of the source, and this has been confirmed," (24). Why is it not increased if it has an initial velocity- if you shine your headlights while driving versus while parked, should it not be greater? I'm supposing it has to do with there being no absolute space/position, but I may be wrong.

The title says it all.  If I was on a bus at 60 km/h, and I started walking on the bus at a steady pace of 5 km/h, then I'd technically be moving at 65 km/h, right?  So my son posed me an interesting question today: since light travels as fast as anything can go, what if I shined light when moving in a car?  How should I answer his question?


Any way to launch the Ubuntu file manager from the command line. Like you would launch say Visual code with code .?

When I work in terminal, sometimes I want to open the current directory in a GUI file manager. And then to click the items in the window to run the application. How can I do this?


I have an Italian passport, currently residing in the UK with my wife, who only has a South African passport & UK Residence card.  We are planning on going to Spain for a week, however I have been told by a couple of people that my wife does not need a visa, we just need to travel together with an original marriage certificate in hand.  However I have also been told that we do need to get a visa.  Can anyone clarify this for me please?

I am a holder of a Russian passport and my husband is a Polish citizen. We both live and work in the UK. I have received my family member of EEA national card, good for 5 years. We would like to travel to Poland together. On the website of the Polish embassy it clearly states that if we are traveling together, I do not require a visa, however in the embassy they were sure that I do need a visa. Could anyone please clarify?


I took a look at my profiles and found that my profiles at  and  both say that I have not participated in any tags yet, although I do have answers with upvotes on both of these sites.  Looking around, I found plenty of   whose profiles' have the same problem. On the other hand, my profile at StackOverflow does show top tags (although I only have zero score questions/answers there). Is this a bug, or is there some other documented reason that I can't seem to find with a google search?

Top [tag]s doesn't show anything for some users  This is true on several users pages on [dba.se] but the reason for it to show on some pages and not others is unclear. Thoughts?


Why isn't the sky violet? Is there any physical reason why the sky isn't perceived to be violet or is it all in our cones?

I realise the question of why this sky is blue is considered reasonably often here, one way or another.  You can take that knowledge as given.  What I'm wondering is, given that the spectrum of Rayleigh scattering goes like $\omega^4$, why is the sky not purple, rather than blue?    I think this is a reasonable question because  (or, strictly, violet or indigo) in rainbows, so why not across the whole sky if that's the strongest part of the spectrum?  There are two possible lines of argument I've  and I'm not sure which (if not both) is correct.  Firstly, the Sun's thermal emission peaks in the visible range, so we do actually receive less purple than blue. Secondly, the receptor's in our eye are balanced so that we are most sensitive to (roughly) .  Our eyes are simply less sensitive to the purple light than to the blue.


Could you please help me analyze the meaning of this sentence?  If the order of Western historicism is disturbed in the colonial state of emergency, even more deeply disturbed is the social and psychic representation of the human subject. For the very nature of humanity becomes estranged in the colonial condition and from that “naked declivity” it emerges, not as an assertion of will nor as an evocation of freedom, but as an enigmatic questioning.  The source is "" by Homi K. Bhabha (1994) I am not sure what the meaning of "for" is in this sentence. I was also wondering what subjects "it" refers to.

I am not a native speaker. On a previous question of mine, I thanked for an answer by saying:     So the phrase is not an idiom, since it is applied in its literal sense.   I consciously chose since over because, because — well, I like that usage of since, even though I know that some (native speakers) don't like it. Nonetheless, that choice got me thinking for a while, and it occurred to me that I even could have used more alternatives, namely as or for, without changing the meaning.   So, on a general note, here are the alternatives:        Statement A (is true), because statement B (is true).   Statement A (is true), since statement B (is true).   Statement A (is true), as statement B (is true).   Statement A (is true), for statement B (is true).      Are these completely interchangeable? Or interchangeable in certain situations? Or can you point out any (not-so-)subtle differences between any of them? Are there even more synonyms?


I switched back from Ubuntu 13.10 to 12.04 and i noticed that many apps are way behind their stable releases in the 12.04 repository/software center, like Gimp and Texmaker, and i wonder why that is the case.  What does LTS really stand for when the software center has many outdated apps?

What are the differences between an Ubuntu Long Term Support release (LTS) and a normal release?


I am investigating the slicing of a string with the following code: s='abcdefgh' print(len(s)) print(s[-1:-9:-1]) print(s[-8])  whose output is: 8 hgfedcba a  Why when printing reverse we need to slice till -9 while the last character i.e 'a' at -8?

I need a good explanation (references are a plus) on Python's slice notation.   To me, this notation needs a bit of picking up.   It looks extremely powerful, but I haven't quite got my head around it.


is there another way on getting the current url in mvc same in the code in window.location.href, so that i can manage the content?,   Problem     i have a url  that i want   to get address value. my problem is, when i tried to get the url by doing Request in controller,   only the  will get, querystring is also empty.   My Codes:  public string Data() {     var url = Request.Url;     var addr = url.IndexOf('#') > -1 ? url.Substring(url.IndexOf('#'),url.Length): "";     return addr; }   any suggestion will be accepted, thank again in advance

I know on client side (javascript) you can use windows.location.hash but could not find anyway to access from the server side. I'm using asp.net.


Unable to use Gparted on 17.10. I have already tried "sudo xauth merge $HOME/.Xauthority" and with gksu and gksudo. Gksudo has another issue in Ubuntu 17.10. I am unable to enter password in the prompt that appears.

I installed Ubuntu 17.10. Now I am having trouble with gksu:  $ gksu -dg synaptic No ask_pass set, using default! xauth: /tmp/libgksu-HgUjgQ/.Xauthority STARTUP_ID: gksu/synaptic/8760-0-alex-XPS-15-9530_TIME4974977 cmd[0]: /usr/bin/sudo cmd[1]: -H cmd[2]: -S cmd[3]: -p cmd[4]: GNOME_SUDO_PASS cmd[5]: -u cmd[6]: root cmd[7]: -- cmd[8]: synaptic buffer: -GNOME_SUDO_PASS- brute force GNOME_SUDO_PASS ended... Yeah, we're in... Unable to init server: Could not connect: Connection refused (synaptic:8767): Gtk-WARNING **: cannot open display: :1 xauth: /tmp/libgksu-HgUjgQ/.Xauthority xauth_env: (null) dir: /tmp/libgksu-HgUjgQ   If I don't use -g, the password dialog is disabled. So looks like a problem with creating a tty for root.  Any advice?


I will be staying in Krabi on 29 October 2017. My flight from Krabi airport is at 8.00 am on 30 October 2017. I have to be at the airport at least by 7.00 am. Please advise me the cheapest and most efficient transport to the airport. (I will be only carrying a backpack).

I am in krabi Thailand now and tomorrow is my flight  at 2100 to Jakarta.  I am only 1 person and always travel like a backpacker. I would like to ask 1 question here:  What is the most cheapest way to reach krabi airport from krabi town in Thailand ?  I am not interested in taxi and shuttle buses.


The PHB states that a trident deals d6 piercing damage (d8 with two hands) and spear deals d6 piercing damage (d8 with two hands).  Trident can be thrown 20'-60' and spear can be thrown 20'-60'.  Trident weighs 4lb and spear weighs 3lb (more can be carried).  Spear costs 1gp and trident costs five times more (more can be bought).  So speaking logically one would not choose a trident over 5 spears. In my campaign never have I seen a man with a trident.

First, let's take a look at the Spear (D&D 5e Player’s Handbook p. 149):  Spear (Simple Melee Weapon) Cost: 1 gp Weight: 3lbs Damage: 1d6 piercing Properties: Thrown (range 20/60), Versatile (1d8)  I ask this because, when you check the Trident (D&D 5e Player’s Handbook p. 149)...  Trident (Martial Melee Weapon) Cost: 5 gp Weight: 4lbs Damage: 1d6 piercing Properties: Thrown (range 20/60), Versatile (1d8)  It does the same thing, but it's more expensive and heavier. So... Is there any reason for you to use a Trident instead of a Spear? I mean mechanically speaking, of course. Because everybody knows that tridents are way cooler.


Find the sum of the following inﬁnite series:  $$\frac{1}{5}-\frac{1.4}{5.10}+\frac{1.4.7}{5.10.15}- ...$$    stuck on this problem.seek your help

How to find the sum of the following series $$\frac{1}{5} - \frac{1\cdot 4}{5\cdot 10} + \frac{1\cdot 4\cdot 7}{5\cdot 10\cdot 15} - \dots\,.?$$  I have no idea. I have written the general term and tested its convergence by Gauss' test for convergence, but they are neither the question nor the answer.


I'm trying to set bedwars up on my server using command blocks, which I'm a little new to. I want a command block that is Repeating, Always active to /execute when a member of Red team dies, for example. But how do I make it so that it would only target that player and not every member of Red team? I thought I might be able to use @s, but I'm not sure.

Can you use the /testfor command in minecraft 1.8 to find out if a player has died ?  I need it for my map, where 2 players (Only) are pitted against eachother. I want it so that when one of them dies, it will detect the death and declare the victor.


Is it better to use tikz or asymptote Any comparison available  Can asymptote code be added directly to a Latex book/letter/article along with tikz

I want to compare TikZ and Asymptote for their abilities in 2D & 3D functional plot and other general purpose, simple drawings.   What are the strong aspects of TikZ over Asymptote?


I'd like to blame the English of course, but if there is an individual culprit that would also be satisfying. As an example of such an individual culprit, the American, T.S. Kuhn, coined the equally inappropriate "paradigm shift", according to :     Word Origin   C20: coined by T.S. Kuhn (1922–96), US philosopher of science    is a       Jocular reference to "the Atlantic Ocean" [that] dates from 1640s.   Is this the first use of pond in this sense? Was the first use "jocular"?    This question has been said to be a duplicate of , but that question, and the answers, focus on why the phrase "across the pond" was used, rather than on the origin of "the pond" (not "across the pond"). Also, that question, and so the answers, did not focus on the origin of the phrase, even if the answers did dally with the origin. Note that the  tag was added to that question more than a year after most of the responses; the one later response did not treat the origin of the phrase.

Why do we use the phrase  to refer to the opposite side of the Atlantic Ocean? Considering the size of the Atlantic Ocean is vast, is it suggesting the ocean is only a small hindrance? Considering that in the modern world it has become easier to communicate and travel?


Looking for the name and author of this story. The premise is that interstellar space travel is really simple, with one (unspecified) insight. So, many alien races have space travel, but minimal technology. Here on Earth we missed the insight, so built up tremendous technology and, in particular, weapons, without getting interstellar travel. One alien species invades Earth, using their primitive weapons (if I remember correctly, Molotov cocktails were the most powerful weapon they had), and their primitive, leaky starships. They get decimated by Earth's weapons, and the parting comment is that it wouldn't have been so bad if they hadn't looked like cuddly teddy bears.

I read a short story (I think, but it might have been a novel), where most races discover a very easy way to travel faster than light at a certain point in their technological development.   What I remember:   The guys in wooden ships bounced around subjugating the people without FTL travel. Earth had never figured out the FTL, and so had poured its effort in a different path, achieving present day technology. The aliens were freaking out about handing the humans FTL travel. The story was told from the point of view of the aliens. I read it in the last 10 years, but there is no telling how old it actually was, although I do remember them mentioning F-18s or F-14s.


I have already added the tag , but it is also suggesting I add the tag :    Could it grey it out, or hide it, if I have already added a synonym please?  Also, can there be a space between suggested tags: and the tag, like this:     suggested tags:    not what it is now:     suggested tags:

I was composing a question about Postgres on Stack Overflow, and had tagged the question with "postgres". The tag suggester, seeing that my question was about PostgreSQL, dutifully informed me that I ought to add "postgresql" as a tag as well.    But Postgres and PostgreSQL are the same thing! And the tag suggestion engine should know that, because "postgres" and "postgresql" are synonyms.   This seems like a (very minor) bug, or at least undesirable behavior - the tag suggester shouldn't suggest synonyms of tags you've already used.


I and my friend has Ubuntu. I want to get a software from his lap to my lap. How can I copy the software? Note: I couldn't download the software from net as the software is no longer available.

My ubuntu laptop is customised with all the programs and themes of my choise,can i transfer these software to another computer running ubuntu and install them there via usb drive.


Google recently made a change to how files are shared in Google Drive according to this article.  When this change first came about you could still access the "move to my drive" feature by the obscure shift + z shortcut. It seems now however that this shortcut ALSO only offers the option of creating a link, just a dragging the item to "my drive" does now. Was this a loop hole that Google decided to remove or have they hid the feature behind yet another obscure keyboard shortcut? I apologize that the screenshot is in swedish, but the button now says "Add shortcut" where it previously said "Add" (as in "Add to my drive")

Obviously, shared with me folders are visible on the Google Drive web, but I cannot find them on my local Google File Stream. One suggestion online was to create a shortcut on my own Google Drive, but it didn't work. Any idea?


I would like to cut videos using ffmpeg for machine learning.   How can I ensure that if I cut (for example) 1s of video @25fps this will provide exactly 25 frames of synchronized audio and video?  I have seen that ffmpeg looks for keyframes at time of cutting, picking the nearest one. I had troubles as it was generating negative timestamps and filling the end of the cut video with copied frames.   I understand that metadata does not display real fps and so on.  So what would be the pipeline to obtain precise cuts with the exact amount of frames aligned with the audio stream?   Thaanks

I'm trying to use ffmpeg to cut video files at precise times. The ffmpeg help shows an option -timecode_frame_start to specify the starting frame but I am unable to get this command to work. The resulting video always starts at the beginning of the original video. Here's an example of the command I'm running:  ffmpeg -i input.mpg -acodec copy -vcodec copy -timecode_frame_start 200 -vframes 210 -n ouput.mpg   I've moved the timecode_frame_start option before and after the other options with no change in results. Is there an additional option I need to specify? I've tried various file formats, mkv, avi, mp4, and it doesn't appear the problem is codec related. Here is one file I've tried:    Am I missing something?


I have a list of strings that I want to format into a list of dates, before getting the max date time.  The list looks like:  StrList = ['date_range Date Posted: Thu, 08 11 2018 12:12:55 GMT',  'date_range Date Posted: Thu, 08 11 2018 10:53:49 GMT',  'date_range Date Posted: Thu, 08 11 2018 09:55:08 GMT',  'date_range Date Posted: Wed, 07 11 2018 14:23:56 GMT',  'date_range Date Posted: Wed, 07 11 2018 14:23:12 GMT',  'date_range Date Posted: Wed, 07 11 2018 09:07:47 GMT',  'date_range Date Posted: Tue, 06 11 2018 11:44:51 GMT',  'date_range Date Posted: Mon, 05 11 2018 16:17:51 GMT',  'date_range Date Posted: Mon, 05 11 2018 14:07:41 GMT',  'date_range Date Posted: Mon, 05 11 2018 14:03:19 GMT',  'date_range Date Posted: Mon, 05 11 2018 13:07:10 GMT',  'date_range Date Posted: Mon, 05 11 2018 13:05:56 GMT',  'date_range Date Posted: Mon, 05 11 2018 11:41:31 GMT']   I want to get a list that contains only the extracted date and time part of each list element and then subsequently find the maximum of the date times of all the elements.  E.g. Desired output:   DateList = ['08-11-2018 12:12:55',  '08-11-2018 10:53:49 GMT',  '08-11-2018 09:55:08 GMT',  '07-11-2018 14:23:56 GMT',  '07-11-2018 14:23:12 GMT',  '07-11-2018 09:07:47 GMT',  '06-11-2018 11:44:51 GMT',  '05-11-2018 16:17:51 GMT',  '05-11-2018 14:07:41 GMT',  '05-11-2018 14:03:19 GMT',  '05-11-2018 13:07:10 GMT',  '05-11-2018 13:05:56 GMT',  '05-11-2018 11:41:31 GMT']   Then the final step will be to get the maximum date time which in this case will be:  MaxDate = 08-11-2018 12:12:55   Any help will be appreciated.

I've got a huge list of date-times like this as strings:  Jun 1 2005  1:33PM Aug 28 1999 12:00AM   I'm going to be shoving these back into proper datetime fields in a database so I need to magic them into real datetime objects.   This is going through Django's ORM so I can't use SQL to do the conversion on insert.


I'm trying to fight viruses on extremely badly-infected machines. These are Windows 8 machines running 10-20 processes that need to be forced to quit.  Unfortunately, because the viruses auto-execute at login, they force the machine into 'not responding' so frequently that almost all interaction with the UI (such as task manager) is impossible.  I know I can use taskkill via Command Prompt to kill a single process, forcefully. I can even make it kill multiple iterations of the same executable.  But what I want is something that can kill ALL running processes, except those which are essential to Windows (E.g. the ones that say 'Access is Denied' when you try to force them to quit)  Any ideas would be very welcome.

What should I do if my Windows computer seems to be infected with a virus or malware?  What are the symptoms of an infection? What should I do after noticing an infection? What can I do to get rid of it? how to prevent from infection by malware?   This question comes up frequently, and the suggested solutions are usually the same. This community wiki is an attempt to serve as the definitive, most comprehensive answer possible. Feel free to add your contributions via edits.


I am trying to replace an attribute of one raster dataset, which generalizes the data over that area, with a collection of attributes from another raster which cover the same area, but provide more specific information.    Is there a way to clip out one attribute of a raster, and replace that section with the attributes of another?

I want to reclassify landcover image manually with respect to online imagery. I am looking for a software/plugin/script to manually select raster pixels using polygon selection tool and could be able to enter new value.  I have Arcgis with spatial analyst license.


tldr; If some forms of matter change the that light travels through that it (like refraction in water or glass), does that mean the speed of causality is going slower through that matter?  I've heard that light travels at the speed of causality.  1) I believe that in a vacuum, if an even occurs at a space some distance away and it takes light some time to travel to you from that point, there's no way for that event to influence you before that time.  2) Certain forms of matter change the that light travels through it.  Question) If you were not in a vacuum and the time it took light to travel to you had to arrive at a later time (through that non-vacuum material), would that mean that minimum time of influence also changes? Or is my understanding of 1) incorrect?

Time dilation, increase in mass, Lorentz contraction calcs all involve velocity of light in vacuum. But in optical media light slows down. So what of relativity calcs in media? Do we ever need to adjust the speed of light?


I like arranging my windows in specific layouts but whenever my monitors go to sleep/turn off Windows10 rearranges my windows automatically.   Is there some way to make Windows10 think those monitors are plugged in even when they are powered off?  I understand that this may result in me not being able to get to my other windows easily if my monitor is off, but that's acceptable to me.

I have 2 monitors connected to a NVIDIA GeForce GTX 660:   Left is 1920x1080 via DVI (Samsung SyncMaster 2443BW) Right is 2560x1440 via DisplayPort and is set to Primary (Samsung SyncMaster SA850)   I often leave my computer running overnight (working on long render job, doing backups, etc) so I only power off my monitors manually. However, if I power off the primary monitor, it is disabled completely as if it were unplugged from the graphics card (i.e. icons are moved, open apps are moved and resized to fit on the new primary monitor). If I switch from DP to a DVI cable, this does not occur. It seems to be an issue when using DisplayPort.  Is there a way to disable the monitor from being disabled completely in Windows when I power it off physically?   I have found no relevant settings in either Windows Display settings, nor the NVIDIA control panel software.  Edit #1: I'm using an .  Edit #2: Here is a screenshot of my NVIDIA Control Panel v7.2.710.0:   Edit #3: Here are screenshots of my Monitor configuration:    Clicking on Advanced settings reveals a Generic PnP monitor running at 59 Hz? 60 Hz is the only other option available.    Here is my secondary monitor which is connected via DVI:    Edit #4: If I open the "Screen Resolution" configuration panel and power the monitor off (via the power switch), this is what is shown:    It looks like I disconnected the monitor from the video card.


What if we modify the experiment such that both twins have a spaceship and they both do exactly the same thing on time they agreed up front? They accelerate for 1 day the opposite direction. Then they stop accelerating and drift away from each other for 10 years (in their local time) near c. Then they simultaneously decelerate and do the same thing in reverse: accelerate backwards, drift towards each other for some years then at the same time (by their pre-agreed timing) decelerate to meet again in the middle. If they execute the above in a perfectly symmetrical manner then the acceleration phases will be identical for both of them and they should age the same way during accelerations so we can concentrate on the non-accelerating phases of their journey. And then the twin paradox is back again. From each others frame the other will be younger but they will meet in the end... What is the resolution of this modified paradox?

Two twin sisters synchronize their watches and simultaneously (from the earth frame) depart earth in different directions. Following a predetermined flight plan, each sister accelerates identically to 99.9%c and then returns home at the same time (again in the earth frame). The observers on earth see each twin as having aged identically, as the symmetry of the problem dictates. Each twin however should see the other as having aged... What gives?


I was building an android app and i was using Date class in my project to get the current date. I formatted the date with simpledateformatter and displayed it like dd-mm-yyyy (i.e. day month year) .  Now i also want to get the time in format of hh:MM:ss a (hours minutes seconds AM/PM)   As i was using date's instance i saw that it displays date and time also ( in default format). So i tried to fetch time from the date's instance.(let's say d is date class instance). I also found getTime() method of date class and performed d.getTime() but it returned me a long (which is duration from some fixed time from past to current time). Now i want time in desired format but this getTime() method is giving me long.  May you provide me some way on how to process this long value to get the desired format of time out of it. For example , d.getTime() return me some value( say 11233) and i want in format like this (11:33:22).

How to format correctly according to the device configuration date and time when having a year, month, day, hour and minute?


I want to generate these lines:  GREATER(x,y)=true             =false   If i itemize it i get :  GREATER(x,y)=true =false

I am often writing quick statements in which I would like the following lines to continue underneath the end of the first.  Is there a quick way to do this (requires arrays?)  this is the first sentence:                            continue here                            and here too


I have a photo in jpeg format that I am unable to reduce from 110 KB to 45kb. What software can do this?

I have 2,300+ pictures that I want to transfer to my phone but on their original size they take up a lot of space (6.44gb) I would like to trim is down to without sacrificing quality or resolution. I know it can be done under linux with something like pgncrush. I currently have access to a windows system and all the files are on jpeg format.  How do I do it?


I recently installed Ubuntu on my home PC. How do I connect to my employer's network via remote desktop like I used to do when I ran XP?

I'm looking for an application similar to teamviewer to install on ubuntu 10.10. I know that the teamviewer's staff has released a version for ubuntu, but I'd like to use something completely open. Someone can help me?


I finally found a Squirtle and caught it, but then the app froze and I lost it.  However, my Pokedex still shows a picture of a Squirtle, but I don't actually have it. This isn't the first time this has happened to me, is there anything I can do to recover the Pokemon that this happened to? Any way I can fix this? Just an annoying bug?

Sometimes when attempting to capture a Pokémon, the mon will be wiggling in the ball and the app will disconnect from servers (for mobile connection reasons or whatever), and I'll be left staring at a ball containing Schrodinger's Pokémon. I'll sigh at the loss (or in the case of a 500CP Pinsir, scream in agony), and reload the game.  I thought maybe encounters in general couldn't handle disconnecting well, but sometimes immediately after a Pokémon broke free of a ball, the little icon in the upper left would appear, the game would stall for a bit, but it would recover.   Is there anything I can do to avoid this? Should I be waiting it out, instead of reloading?  (and before anyone says it, yes I have filed a bug report)


I've just read  which essentially says that when I set up DNS for example.com, the root record can't be a CNAME, it has to be an A record.  My question is, why?   I'm sure the clever people who designed DNS didn't make arbitary restrictions for no reason, but I don't see what we gain by requring root domains to be A records. I would love to just point my example.com domain to someserver.somewebhost.example and forget about it, but I can't.  Please enlighten me, billpg.

This is a  about CNAMEs at the apices (or roots) of zones   It's relatively common knowledge that CNAME records at the apex of a domain are a taboo practice.  Example: example.com. IN CNAME ithurts.example.net.  In a best case scenario nameserver software might refuse to load the configuration, and in the worst case it might accept this configuration and invalidate the configuration for example.com.  Recently I had a webhosting company pass instructions to a business unit that we needed to CNAME the apex of our domain to a new record. Knowing that this would be a suicide config when fed to BIND, I advised them that we would not be able to comply and that this was bunk advice in general. The webhosting company took the stance that it is not outright forbidden by standard defining RFCs and that their software supports it. If we could not CNAME the apex, their advice was to have no apex record at all and they would not provide a redirecting webserver. ...What?  Most of us know that  insists that A CNAME record is not allowed to coexist with any other data., but let's be honest with ourselves here, that RFC is only Informational. The closest I know to verbiage that forbids the practice is from :     If a CNAME RR is present at a node, no other data should be   present; this ensures that the data for a canonical name and its aliases   cannot be different.   Unfortunately I've been in the industry long enough to know that "should not" is not the same as "must not", and that's enough rope for most software designers to hang themselves with. Knowing that anything short of a concise link to a slam dunk would be a waste of my time, I ended up letting the company get away with a scolding for recommending configurations that could break commonly used software without proper disclosure.  This brings us to the Q&A. For once I'd like us to get really technical about the insanity of apex CNAMEs, and not skirt around the issue like we usually do when someone posts on the subject.  is off limits, as are any other Informational RFC applicable here that I didn't think of. Let's shut this baby down.


Prove for any vectors $\mathbf{a}$ and $\mathbf{b}$  (i) $|\mathbf{a}—\mathbf{b}|\ge|\mathbf{a}|—|\mathbf{b}|$  (ii) $|\mathbf{a} — \mathbf{b}|\ge |\mathbf{b}| — |\mathbf{a}|$  (iii) Deduce that $|\mathbf{a} — \mathbf{b}|\ge |\ |\mathbf{a}| — |\mathbf{b}|\ |$  I have drawn parallelograms for (i) and (ii) so I know what $|\mathbf{a} — \mathbf{b}|$ looks like but I cannot prove them.   I cannot even fathom out what (iii) means.

I've seen the full proof of the Triangle Inequality  \begin{equation*} |x+y|\le|x|+|y|.  \end{equation*} However, I haven't seen the proof of the reverse triangle inequality:  \begin{equation*} ||x|-|y||\le|x-y|. \end{equation*} Would you please prove this using only the Triangle Inequality above?  Thank you very much.


Whenever I enable the "Intel Speedstep technology" in the BIOS power configuration, I can hear noise when operating the laptop. The noise is sometimes a clicking noise in idle-mode or a buzzing noise (similar to the noise when reading from a spinning disk) when doing low work tasks (scrolling, moving the cursor, ...). I don't know if the noise is present when doing high work tasks, as that turns on the CPU fan, which is otherwise off.  When turning off the Speedstep technology, the noise is far less pronounced, but still barely noticeable in a silent room.  I could find another report that links high pitched noise with intel CPU power configuration:  Though, that report does not include any causes for the noise and presents only a workaround.

So, this question has been bugging me a lot, I used to have a few lovely little toys (well, not so much toys as a pentium pro and a really old Intel 80386DX microprocessor) What I noticed is that when the CPU's are under load they generate a most delicious noise which reminded me of when I used those computers for actual things (the 80386 had DOS 6.2 at one time and I ran a small unix server on it a few years later, the pentium ran windows 95 and then later windows 98+ and even later I somehow barely got xp running on it), I almost dare say it's nostalgia.  Anyway, that noise made me curious, what causes it? My first hypothesis for this rumbling/humming sound is the fan, so I tried removing every last fan, the noise didn't stop, it was actually easier to hear when the whirring of the fans wasn't there, I then spent hours testing each piece of hardware and came to the conclusion that the CPU itself was making the noise and then decided that I was happy with my conclusion for then, I recently remembered it and I got curious as to what generates it.  I don't own those machines anymore (alas I had to get rid of them due to moving) but I have observed that newer CPU's make the same noise, just a lot fainter and more subtle, so I do think it has something to do with the underlying architecture.  Anyway, before my rambling carries off too far... What causes the noise and is there any correct terminology for it? These questions are derived from a few hours on google and getting nothing but people asking silly questions such as "Why is my hdd ticking?" or "Why is my CPU producing a high pitch noise?" (the latter is closer but not what I am looking for as the noise is low pitch and quite distinct, if you've heard it you should know what I'm talking about)  I want to know this for a couple of reasons, curiosity is one but I also want to utilize this sound effect in a project of mine.  Now, some of you may point out that CPU's have no movable parts and are thus incapable of generating noise, then what could possible causes be? I tried removing everything redundant from those machines and the sound prevailed, the only things I didn't remove or replace was the mobo's and the cpu's themselves (because finding such old hardware proved harder than expected. oh and this part is what really sparked my curiosity as to what was generating the sound as the fans were silent when just powered on, and the machine kept making noise without them (I ran them at short 1 minute intervals))


I am using the following command to make my UniFi Controller instance available at  instead of .  sudo iptables -t nat -I PREROUTING -p tcp --dport 443 -j REDIRECT --to-ports 8443   I want this setting to survive a restart. I've tried to add this line (prepended with @reboot) to my crontab file but it doesn't seem to take. Can anyone tell me what I'm doing wrong? Here's my crontab entry:  @reboot /sbin/iptables -t nat -I PREROUTING -p tcp --dport 443 -j REDIRECT --to-ports 8443   Edit: I am running Ubuntu 18.04.3 (in response to comment below)  Solved: I needed a blank line at the bottom of my crontab file.

Often, crontab scripts are not executed on schedule or as expected. There are numerous reasons for that:   wrong crontab notation permissions problem environment variables   This community wiki aims to aggregate the top reasons for crontab scripts not being executed as expected. Write each reason in a separate answer.  Please include one reason per answer - details about why it's not executed - and fix(es) for that one reason.  Please write only cron-specific issues, e.g. commands that execute as expected from the shell but execute erroneously by cron.


If you ought to choose a Phd program in scientific/engineering field: a top 10 university without good supervisor and almost self-guiding or a top 200 with expert in the field?

In terms of judging a doctoral program--and possibly also relevant for postdoc-ships(?)--which is the more important consideration, who your advisor is or the institution at which you study?  Obviously both are important, but when it comes down to it, which should weigh more heavily?  For example:  Professor Alpha is a premiere name in the field, but he's set up at Southern State University, an otherwise middling school. Perhaps he's there because he's a big fish in a small pond and gets carte blanche and limitless resources to do what he wants. His graduate students are thus treated similarly.  On the other hand, Professor Beta is a new, unproven professor at Top University, a world-renowned, leading institution. He personally may not have the resources and freedom as Professor Alpha, but he's at an institution whose name carries weight. Therefore the school certainly has the capacity for the same, if not more, resources, but access for Professor Beta's grad students will be more limited as they must be shared with other professors' groups.  Assuming all else is equally appealing (funding, location, research topics, etc), which offer do you choose, or which program would you hold in higher regard?  (The situation doesn't have to be so stark as like Harvard vs. Middle-Of-Nowhere University, but it makes the point clearer.)


I don't know why I'm getting   > ! Missing $ inserted. <inserted text>                  $ l.11 m^        *(E) := \inf_P m(P)   My code  \documentclass[border=1pt, convert={outext=.png}]{standalone} \usepackage{amsfonts} \usepackage{mathtools} \usepackage{amsmath,esint} \usepackage{amssymb} \usepackage{siunitx} \usepackage{braket} \usepackage[utf8]{inputenc} \begin{document} \begin{equation*} m^*(E) := \inf_P m(P) \end{equation*} \end{document}

I was surprised to find that standalone package can not compile a document with an equation:  \documentclass{standalone} \begin{document} \begin{equation} % not working! F(V, T) = E(V) + D(T) \end{equation} \end{document}   Is there an option or some workaround that allows this? The current error is something like:   ! Missing $ inserted.   in line 4. (The idea of course is that the including (main) document can just \input the standalone without knowing if is going to be an equation or something else)


I've try make a kendama animation, when make the rope I want the endpoints of this rope to connect two meshes while following their movement and swinging looks realistic. I think use bone wasn't a good choice, pls tell me how would you do this animation if it were you, thanks!

I'm trying to simulate a rope (that later might get pulled on the ends*) that interacts with some obstacles. So far I created a plane as the floor and a cube as an obstacle, and activated "collision" in the physics menu for both of them.   *(In the end the goal is simulating a .)  For modelling the rope, I tried using a long cylinder with enough subdivisions, and activate "cloth" in the physics menu. This resulted in the cylinder collapsing like a sleeve of a sweater, but I would like the cross section to remain roughly circular. Is there a way to directly avoid this?   Another approach I tried now was just using a a line made up of vertices and edges (with the idea of later adding modifiers to give it a thickness), but this just fell through all the collision objects as it has no faces. Is there good way to do this?


This is my runner class: @RunWith(CucumberWithSerenity.class) @CucumberOptions(features = "src/test/resources/features/"     ,glue={"stepdefs"}     ,dryRun=false     ,monochrome=true     ,plugin = {pretty})  public class Runner { }  I don't have any issue with running using mvn. I don't get any step undefined error. This is only eclipse issue where it can't recognize the step def. I am using eclipse Version: 2020-12. I have converted my project to cucumber project as well. Please assist me if i am missing anything? Do i need to add any other jars?  However i added this below dependency as well:         <dependency>           <groupId>io.cucumber</groupId>           <artifactId>gherkin</artifactId>           <version>3.2.0</version>         </dependency>  Still no luck.

The cucumber feature file has all steps highlighted in yellow and warning is shown as step does not have matching glue code, When I try to run the project as maven test, I am getting null pointer exception for all steps. [Feature[Steps  Test Runner class: package com.vtiger.CucumberFramework.testRunner;  import org.junit.runner.RunWith;  import io.cucumber.junit.Cucumber; import io.cucumber.junit.CucumberOptions;  @RunWith(Cucumber.class) @CucumberOptions(                 features = "classpath:features",                 glue = {"com.vtiger.CucumberFramework.stepDefinitions","com.vtiger.CucumberFramework.testRunner"},                  plugin = { "pretty","html:target/cucumber-reports/cucumber-pretty",                             "json:target/cucumber-reports/CucumberTestReport.json",                            "rerun:target/cucumber-reports/rerun.txt" },                 monochrome = true)  public class TestRunner {  }


In Ubuntu when you right click on a window, you get the option to keep it 'Always on Top'. This is incredibly useful sometimes when I want a window to take up the whole desktop (e.g. Internet Browser) but still want to see the information from another smaller window (e.g. A video/film). Using the Windows 7 snap to edge feature is very useful and I use it a lot but its not always what you want.  I find it annoying how some programs in Windows such as Media Player and Task Manager for example have Always on Top options and everything else doesnt. There must be some software to fix this.  An example of the feature in Ubuntu:

Some applications do not have the functionality like Task Manager's "Always on top" feature.  Is there a way around this?


I want to use overlay in this case:  \documentclass{beamer} \usepackage{amsmath,enumerate,amssymb}  \begin{document} \begin{frame}{Is this a fraction or a ratio?}     \centering     \resizebox{0.8\textwidth}{!}{         \only<1>{$3:4$}         \only<2>{$12:16$}         \only<3>{$\frac{1}{2}$}         \only<4>{$\frac{2}{1}$}         \only<5>{$\frac{2.5}{10}$}         \only<6>{$\frac{10}{2.5}$}         \only<7>{$1.2:1.6$}         \only<8>{0.75}         } \end{frame} \end{document}   Why are the numbers in each slide shifting to the right after each frame?

I see that the code in many packages and examples contains percent signs % at the end of (many) lines. What are they used for? Do they affect the parsing of those lines?


I've seen these answers:    However, I want a little more detail on a legend that I've heard that if the new university is offering you start-up funds, then you can buy back your old stuff using the start-up funds at fair prices for used equipment. How does this get negotiated? Does this ever actually happen in practice, or is it a myth?  My lab has a lot off stuff that I've acquired over several years. Some of it I bought with start-up, some I bought with external grant funds, and some I bought with (eek!) my personal money. There are numerous things that I scavenged from other labs. Some of the stuff in my lab is old and somewhat broken (a laptop with a glitchy screen). If I were to get a position at another university, how does this stuff get sorted out?   I'm working at a US university and the new university would be in the US or Canada.

I am on the faculty of a large American university, and I have bought a lot of equipment (laptops, tablets, batteries, etc.) for research purposes using a startup package.  I will be leaving for a new university in September, and I am wondering what, in practice, will happen to this equipment.  Obviously, it is the property of the university and I'm going to leave it all there, but is someone going to come through with a clipboard and make sure it's all there?  Do these kinds of things usually just get sent off to surplus sales?  How about the students of mine who will still be at the old university?


My mom has a flight to Seattle from New Delhi tomorrow via Virgin Atlantic and has a long layover at Heathrow airport terminal 3 (19 hours). Will it be possible for her to sleep at one of the attached hotels or sleeping pods? I'm getting conflicting information with some sources saying she'll need a visa even to get to the hotels attached to the terminal and others saying that if she has a valid onward visa to the US and flight the next day, she will be able to use the hotels.

Is there a website or some other way to find out if I need a transit visa for a short stop in the UK on my way somewhere else? Ideally this should give me the answer for all nationalities, and take into account any other visas I may have.


I wanted to update my Google Chrome and I tried various methods which I found on the internet. But nothing worked and I got the following error: Error: Opening the cache(E:Malformed entry 1 in the list file /etc/apt/sources.list.d/google.list(URI), E:The list of sources could not be read.)   This usually means that the installed packages have unmet dependencies. I am not sure if I ask properly. Can you help me solve this issue?

I have unistalled and reinstalled the Ubuntu Software Center as per info I found in a similar thread and I got the same response about line 91 or something like that.  I just tried to upload a screen shot but since I'm new it won't allow me to.  I also can not figure out how to cut and paste anything so I have to hand type what the error screen says, both when I attempt to open the software center and nothing happens, when I try to enter commands into the terminal to uninstall, reinstall, whatever I get the same following:  COULD NOT INTITIALIZE THE PACKAGE INFORMATION An unresolvable problem occured while initializing the package information Please report t:his bug against the 'update-manager' package and include the following error message: 'E: Malformed line 91 in source list/etc/apt/sources.list (dist parse)  E: The list of sources could not be read.,  E: The package list of status file could not be parsed or opened.   How do I report bugs?  What can be done about this.  I have searched and everything everyone says to do leads me back to the same line error message.  So, I don't know how to get to line 91 in the source list; to tell you what it says. Sorry, I'm really new to this. That is what I need is to find out how to get there and fix what it says. I would really like to NOT have to re partition my hard drive and start from scratch, so I'm really looking forward to getting this problem solved. I need to be able to install new software.