Does Sentinel's opportunity attack trigger when I shove someone?

Alright, so me and my pal are working through making a 5e fighty Cleric. He wants to take the Sentinel and Shield Master feats. Sentinel and Shield Master's relevant parts read:  Sentinel  You have mastered techniques to take advantage of every drop in any enemy's guard, gaining the following benefits:    Creatures within 5 feet of you provoke opportunity attacks from you even if they take the Disengage action before leaving your reach.    Shield Master  You use shields not just for protection but also for offense. You gain the following benefits while you are wielding a shield:    If you take the Attack action on your turn, you can use a bonus action to try to shove a creature within 5 feet of you with your shield.   Shoving allows you to make a Strength (Athletics) Check versus either their Strength (Athletics) or Dexterity (Acrobatics) check, and if you succeed you can either knock the target prone or push them 5 feet away. So my buddy came up with the idea of using the Shield Master's Bonus Action to shove a creature during the Attack Action, and then taking an Opportunity Attack from the Sentinel Feat, since they left his reach (he is wielding a sword, in case that matters here). So the so the question is: Can the Shove Action provoke Opportunity Attacks as described by the Sentinel Feat? It just occurred to me that perhaps the Shield Master portion isn't important for the question, but perhaps it is relevant. Sentinel does describe Opportunity Attacks in a slightly different way than they are described on page 195 of the PHB.


How to embed fonts in EPS images with PDFLatex of WinEDT

I am using WinEdt version 9.0. I am using following packages among others:  \usepackage{epsfig} \usepackage{epstopdf}   However, when I run TeX -> PDF -> PDFLaTex the resulting PDF does not embed fonts in .eps figures. I found that ps2pdf will embed the fonts and set the recommended switches in Options -> ExecutionModes -> ps2pdf, but TeX -> PDF -> ps2pdf is grayed out and I cannot use it.


Android app crashes when I click menu button

So everything loads fine in the app until I click the menu button then it kills the app instead of displaying information. There is no syntax errors but I do get the below run-time error  java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.ListView.setAdapter(android.widget.ListAdapter)' on a null object reference         at burt.example.com.MenuItemList.onViewCreated(MenuItemList.java:48)   The code for the class I have the warning on is below  package burt.example.com;   import android.app.Activity; import android.os.Bundle; import android.support.annotation.NonNull; import android.support.annotation.Nullable; import android.support.v4.app.Fragment; import android.support.v4.app.FragmentTransaction; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.AdapterView; import android.widget.ListView;  import java.util.List;   /**  * A simple {@link Fragment} subclass.  */ public class MenuItemList extends Fragment {      public List<Item> items = itemDataProvider.items;     public static final String ITEM_ID = "ITEM_ID";       public MenuItemList() {         // Required empty public constructor     }       @Override     public View onCreateView(LayoutInflater inflater, ViewGroup container,                              Bundle savedInstanceState) {         // Inflate the layout for this fragment         return inflater.inflate(R.layout.fragment_menu_item_list, container, false);     }      @Override     public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState) {         super.onViewCreated(view, savedInstanceState);          ItemAdapter itemAdapter = new ItemAdapter(view.getContext(), R.layout.single_menu_item, items);          ListView listView = view.findViewById(R.id.item_list);          listView.setAdapter(itemAdapter);          listView.setOnItemClickListener(new AdapterView.OnItemClickListener() {             @Override             public void onItemClick(AdapterView<?> parent, View view, int position, long id) {                 Item item = items.get(position);                 getActivity().getIntent().putExtra(ITEM_ID, item.getId());                  FragmentTransaction transaction = getFragmentManager().beginTransaction();                  transaction.replace(R.id.item_detail_container, new MenuItemDetail());                 transaction.addToBackStack(null);                 transaction.commit();              }         });     }   }  fragment_menu_item_list  <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"     xmlns:tools="http://schemas.android.com/tools"     android:layout_width="match_parent"     android:layout_height="match_parent"     tools:context=".MenuItemList" >      <ListView         android:layout_width="match_parent"         android:layout_height="match_parent"         android:layout_alignParentStart="true"         android:layout_alignParentLeft="true"         android:layout_alignParentTop="true"         android:layout_marginStart="0dp"         android:layout_marginLeft="0dp"         android:layout_marginTop="0dp" /> </RelativeLayout>


I have asked more than 100 questions on SO. The problem with asking so many questions is that it's sometimes very hard to navigate to the question I want.  Is there any way to improve the interface further?


Show $P\{\xi_1+\dots+\xi_n=1\}=(\sum_{i=1}^n \lambda_i)\Delta + O(\Delta^2)$ (Shiryaev's Probability page 44)

I am trying to do the following exercise:  Let $\xi_i,\dots, \xi_n$ be independent Bernoulli random variables such that $$ P\{\xi_i=0\}=1-\lambda_i \Delta\\ P\{\xi_i=1\}=\lambda_i \Delta $$ where $\Delta$ is a small number, $\Delta>0,\lambda_i>0$.  Show that $$ P\{\xi_1+\dots+\xi_n=1\}=(\sum_{i=1}^n\lambda_i)\Delta + O(\Delta^2) $$    I already wrote out (as already shown in part of @Marcin Malogrosz answer): $$ P\{\xi_1+\dots+\xi_n) = \sum_i \lambda_i \Delta \prod_{i\neq j} (1-\lambda_j\Delta) \\ \Bigl|\sum_i \lambda_i \Delta \prod_{i\neq j} (1-\lambda_j\Delta) - \sum_i \lambda_i \Delta\Bigr| = \sum_i \lambda_i \Delta \Bigl(1-\prod_{i\neq j} (1-\lambda_j\Delta) \Bigr) $$ But I am stuck here    I am able to show a simplified version with $P\{\xi_i=1\}=\lambda_i\Delta=\lambda\Delta$ (when the $n$ random variables are also identical) as following: $$ P\{\xi_1+\dots+\xi_n=1\}=\sum_i \lambda\Delta (1-\lambda\Delta)^{n-1} $$ using Taylor approximation when $\Delta$ is close to $0$ as $$ \lambda\Delta(1-\lambda\Delta)^{n-1}\Bigr|_{\Delta=0}+\frac{\Delta}{1!}\Bigl\{\lambda(1-\lambda\Delta)^{n-1}-\lambda^2\Delta^2(n-1)(1-\lambda\Delta)^{n-2}\Bigl\}\Bigr|_{\Delta=0} + O(\Delta^2)\\ =\lambda\Delta+O(\Delta^2) $$ and then sum over $i$.    My problem is to show:  $$ \Bigl(1-\prod_{i\neq j} (1-\lambda_j\Delta) \Bigr)=O(\Delta) $$  Thank you in advance


how to get the text from button and use it with if()

It must display "Correct" when the button text = "de" but when I click the button it says wrong but my button text is "de". Why (if) statement does not work despite of the button text is "de"?  public void bot1(View v) {     Button choice1 = (Button) findViewById(R.id.button1);      if(choice1.getText() == "de")         Toast.makeText(this, "Correct", Toast.LENGTH_SHORT).show();     else        Toast.makeText(this, "Wrong", Toast.LENGTH_SHORT).show(); }


How to export/save a layer composition to GeoTiff?

I want to export/save a QGIS composition of raster/vector layers to a GEOTIFF or ECW raster with high resolution (20 000 * 20 000 Pixel).


How to specify number of decimal places in node near coords?

Is there a way to specify that node near coords labels should use 1 rather than 2 decimal places? For example, in the code below, Singapore is printed with 8.1 (correct), but Niger is printed with 46.12 (wrong) when I want it instead to be 46.1 (correct).  \documentclass{standalone}  \usepackage{pgfplots} \pgfplotsset{compat=1.12}  \begin{document} \begin{tikzpicture} \begin{axis}[     xlabel={Birth rate (births/1,000 population)},     symbolic y coords={Niger,United States,Singapore},     ytick=data,     xbar,     nodes near coords, nodes near coords align={horizontal}]    \addplot coordinates {     (46.12,Niger)     (13.42,United States)     (8.10,Singapore)   };  \end{axis} \end{tikzpicture} \end{document}


Broken package problem while installing open source AMD ATI drivers in 14.04

After purging the fglrx* packages, I tried this -  ankit@ubuntu:~$ sudo apt-get install --reinstall xserver-xorg-core libgl1-mesa-glx:i386 libgl1-mesa-dri:i386 libgl1-mesa-glx:amd64 libgl1-mesa-dri:amd64 Reading package lists... Done Building dependency tree        Reading state information... Done Reinstallation of libgl1-mesa-glx is not possible, it cannot be downloaded. Reinstallation of libgl1-mesa-glx:i386 is not possible, it cannot be downloaded. Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:  libgl1-mesa-dri:i386 : Depends: libdrm-intel1:i386 (>= 2.4.48) but it is not going to be installed                         Depends: libdrm-nouveau2:i386 (>= 2.4.38) but it is not going to be installed                         Depends: libdrm-radeon1:i386 (>= 2.4.31) but it is not going to be installed E: Unable to correct problems, you have held broken packages.   Any solution around this?


Trying to get Schrodinger's equation to format better.  The first term is  -\dfrac{\hslash^2}{2m} \, \dfrac{\mathrm{d}^2 \psi}{\mathrm{d} x^2}   However, because of the exponent in the denominator, the second fraction prints lower than the first one, and looks unbalanced.  Is there a way to drop the baseline for the exponent of the first fraction so they line up?  Also, this is in beamer, if that adds other complexity to the issue


uniformly convergence on compact metric space

Let $K$ be a compact metric space. Let $\{f_n\}_{n=1}^\infty$ be a sequence of continuous functions on $K$ such that $f_n$ converges to a function $f$ pointwise on $K$.   on Walt. Rudin's book Principles of mathematical analysis, 7.13, if we assume   (1). $f$ is continuous;   (2). $f_n(x)\geq f_{n+1}(x)$ for all $x\in K$ and all $n$;   then it is proved that $f_n$ converges to $f$ uniformly on $K$.   Is there counterexample satisfying (1) but not (2)? And satisfying (2) but not (1)?


What does placing a @ in front of a C# variable name do?

I've been working with some C# legacy code and I've been seeing a lot of @ symbols in front of variable names. What does this signify or do?  Currently I'm seeing it a lot in front of variables with common names that aren't reserved. E.g.:  MyProcedure(@step.LoadInstanceId, @step.ResultCode, @step.StatusCode);   Given that step isn't a reserved word, is there any reason that they should be escaped?


A few days ago I was using the Google iOS app (not Chrome, but the specific "Google" app that you can download in the App Store) to go to shady website in an attempt to stream a movie online. Stupid, I know. I didn't download anything, and I didn't think I clicked on anything, but I started getting a prompt to call a number. As far as I could tell, it wasn't any of the obviously fake ones that tell you to call a number because your phone is compromised or anything. It looked like the legit prompt that pops up when you click on a number in iOS where it has "Call 808-xxx-xxxx" on the top row and "Cancel" on the bottom row at the bottom of your screen. This is the prompt that comes up if you click on a number in any app. Anyways, it popped up a thousand times and stopped when I killed the app. How does that exploit work? Did the webpage just trick my phone into thinking I clicked on a number a few dozen times? Is there any chance I got a virus from the website? Things have seemed fine since. Is there any way to tell if you have a virus aside from just the normal weird symptoms?


RAM with Same Type but different Memory Clocks?

I have a  1 GB DDR2 667 MHz RAM   installed into my system   can i use  2 GB DDR2 800 MHz RAM   along with the existing RAM   is there any problem if i use both in different slots simultaneously  or  shall i remove the previous RAM.


Initialize List with some count of elements

let's say I have a simple List<bool>. I want to initialize it and add e.g 100 elements to it. To do so, I can do:  var myList = new List<bool>();  for (int i = 0; i < 100; i++) {     myList.Add(false); }   but it's not the most elegant approach. Is there any built-in method to simplify it ? I don't want any loops, just for curiosity


How do I draw the graph of inequalities in the coordinate plane?

I want to graph the following inequalities (done in desmos) in latex. I need the code.


Apex novice - need help with test class (trigger works great in sandbox)

I get this error message when I try to deoploy via change set:       "Code Coverage Failure The following triggers have 0% code coverage. Each trigger must have at least 1% code coverage. PullProjectNoOpportunity –"   I thought writing the trigger was the hard part... hah! This trigger populates a lookup field on a child object based on user input into another field on the child object.   Trigger:  trigger PullProjectNoOpportunity on SAP_Sales_Order__c (before update) {     Set<String> codes = new Set<String>();     for (SAP_Sales_Order__c o : trigger.new) codes.add(o.SAP_Project_NO__c);      Map<String, Opportunity> pronumOpportunities = new Map<String, Opportunity>();     for (Opportunity a : [SELECT Cilioproject__c FROM Opportunity WHERE Cilioproject__c IN :codes]) {         pronumOpportunities.put(a.Cilioproject__c, a);     }      for (SAP_Sales_Order__c o : Trigger.new) {         Opportunity pronumOpportunity = pronumOpportunities.get(o.SAP_Project_NO__c);         Id parentId = (pronumOpportunity == null) ? null : pronumOpportunity.Id;         o.project__c = parentId;     } }   I'm following some tutorials on apex, and I thought i just have to create a record that will cause the trigger to fire, so I wrote this for the test class:  @isTest private class testPullProjectNoOpportunity {     static testMethod void validateLookupPopulation() {         SAP_Sales_Order__c SO = new SAP_Sales_Order__c(name='9999999');         SO.SAP_Project_No__c = '30157';         insert SO;       } }   But, the test class doesn't test my trigger. I'm thinking that I need to have some code in the test class that evaluates whether the trigger works, but I'm in over my head. Any comments or pointers would be greatly appreciated  EDIT 1: I made the change suggested below so the test class now reads:  @isTest private class testPullProjectNoOpportunity {     static testMethod void validateLookupPopulation() {         SAP_Sales_Order__c SO = new SAP_Sales_Order__c(name='9999999');         insert SO;          SO.SAP_Project_No__c = '30157';         update SO;     } }   But it's still not testing when i try to deploy.


Getting command-not-found working under zsh

I'm trying to get the command-not-found feature under Ubuntu to work under zsh, without luck:  ➜  ~  pdfunite zsh: command not found: pdfunite ➜  ~  bash u@ub:~$ pdfunite The program 'pdfunite' is currently not installed.  You can install it by typing: sudo apt-get install poppler-utils   Does anyone know if there is a package available that also supports zsh?  Thank you.


SQL Server - trying to format a table, maybe with PIVOT

So I've got this table  Email                     Username ------------------------- ------------------------- a@a.com                   a1                        a@a.com                   a2                        a@a.com                   a3                        a@a.com                   a4                        b@b.com                   b1                        b@b.com                   b2                        b@b.com                   b3                        b@b.com                   b4                        c@c.com                   c1                        c@c.com                   c2                        c@c.com                   c3                        c@c.com                   c4                         (12 row(s) affected)   But I want each e-mail address to appear once, then all associated Usernames to be listed after it, if that's possible..  Any help whatsoever is appreciated,  Cheers.  Edit  Ok, so apparently, all the usernames will come under one column, all concatenated together, sounds kinda dumb, but that's what I've been asked for.  The output I want would be  Email                     Username ------------------------- ------------------------- a@a.com                   a1, a2, a3, a4 b@b.com                   b1, b2, b3, b4  c@c.com                   c1, c2, c3, c4  d@d.com                   d1, d2, d3, d4


Creating a byte array from a string of hex in C

I've searched Stackoverflow, and there are many answers - but not to the exact problem that I'm seeing (using gcc on macOS, if that makes a difference - Mac specific suggestions won't do though because I need this to be cross platform).  I know how to convert a string to Hex into a buffer - or, at least, I thought I did.  I do it like this:  unsigned char* buffer_from_hexstring(char* string) {     unsigned char* HexBuffer = (unsigned char *)malloc( (strlen(string) / 2) * sizeof(unsigned char) );      for (size_t count = 0; count < strlen(string); count++) {         sscanf(string, "%2hhx", &HexBuffer[count]);         string += 2;     }      return HexBuffer; }   I call my function as follows:  int main(int argc, char *argv[]) {     char* hexstring = "beefcafebeefcafebeefcafe";      unsigned char* buffer = buffer_from_hexstring(hexstring);      printf("Result: ");     for(size_t count = 0; count < (sizeof(buffer) * sizeof(*buffer)); count++) {         printf("%02x", buffer[count]);     }      free(buffer); }   And the result that I get is beefcafebeefcafe. I'm missing a beefcafe.  In fact, whatever I do I only get 16bytes back - which is no useful if I want to convert more bytes.  I'm sure that it's an obvious error - but I can't see it.  Can you?


The Amazon is huge, but that doesn't mean the oneboxes need to be

Recently, . Therefore, one of our illustrious members sought out an Amazon link to a clock that would solve all of animuson's needs. And this happened:    It's huge. Like, screen-shatteringly huge. It even prompted :     Why are Amazon one-boxes so huge? Someone write up a feature request to decrease their size. Sheesh. - animuson   ... and :     why are amazon products one boxed in the first place? - jmac   Therefore, we should decrease the size of these helpful thingys. Please?


To prove that if $(S, d)$ is a metric space, $p \in S$ and $X_n$ are random variables on a probability space $(\Omega, A, P)$ such that the law of $X_n$ converges weakly to $δ_p$, then $X_n \to p$ in probability.  Here $\delta_p(S) = \begin{cases} 1 & \text{if } p \in S \\ 0 & \text{otherwise} \end{cases}$.  Require some hints to proceed with the problem.


Continuous maps to $S^n$ without antipodal pairs are homotopic

Let $S^n$ denote the unit sphere in the Euclidean space $\Bbb R^{n+1}$, $X$ a topological space, $f,g:X\to S^n$ are both continuous and there doesn't exist $x\in X$ such that $f(x)=-g(x)$, show that $f,g$ are homotopic.    I haven't been able to construct any rigorous proof so far, but I do feel it is geometrically easy. My intuition is, for any $x\in X$, we just need to connect $f(x)$ and $g(x)$ in the following way: suppose $f(x)=(a,h_1),a\in\Bbb R^n, h_1\in \Bbb R$ and $g(x)=(b,h_2)$ similarly, if $h_2\ne -1$, then for $b$ obviously there exists a unique "longitude" passing through it, and for $h_1$ there is also a unique "latitude" through it (of course, here we better interpret $S^n$ as "spanned" from $S^{n-1}$ with the additional $(n+1)$-th dimension being the "height"). Then denoting by $p$ the point where the lattitude and longitude meet, we can simply find a path $\gamma$ on $S^n$ which first connects $f(x)$ to $p$ latitudinally, then $p$ to $g(x)$ longitudinally. Moreover, to determine the explicit homotopy $H(x,t)$, we can split the time domain into $[0,1/2],[1/2,1]$, the first part to be spent on the latitudinal trip and the second the longitudinal one. This entire idea seems quite workable for me.   When I'm trying to formalise this idea into a rigorous proof, it becomes quite messy to deal with the case  $h_2=-1$, where we can't guarantee a unique longitude through $g(x)$. Of coure one can always find a longtitude through $g(x)$, but without uniqueness, it would be very troublesome to define a general rule to find one longtitude for each $g(x)$ in a consistent pattern, or in other words, if we allow loose choice of longitude for any special $g(x)$, the resulting "homotopy" might well fall apart due to discontinuity.   So my question is, how to neatly apply the "no antipodal pair" condition to get around this flaw and make the entire idea workable again?


How to create my own webapp unity integration?

I'm trying to create some webapps to use with Firefox. I got an tutorial from Canonical () and I didn't understand one thing, maybe someone could help me.  I have to run the following script in Web Console:  // ==UserScript== // @name          tumblr-unity-integration // @include       https://tumblr.com/dashboard // @version       @VERSION@ // @author        WebApps Team // @require       utils.js // ==/UserScript==  window.Unity = external.getUnityObject(1.0);  Unity.init({ name: "Tumblr",             iconUrl: "icon://Tumblr",             onInit: null });   Everything is fine, it created the icon launcher and work with alt+tab. That enough for me by now, but, if I close the windows, the launcher icon that I created before stop working (I mean, it open the site, but doesn't work like other webapp and doesn't show in alt+tab too). Maybe I have to run this script automatically every time I enter on that site (In this example, Tumblr). How can I do that?  Thanks,


"I'll always remember this rule as if I had just learned it"   Do you consider this sentence grammatically correct?  The main clause refers to the future, so I guess that the Past Simple would convey the same meaning and would at the same time be grammatical. Nonetheless, the choice of the appropriate tense is problematic here. Which one would you go for, and why?


I have a small server which I use for testing and programming. Currently it runs Debian 9.4 stretch with 4.14.0-0.bpo.3-amd64 kernel.  Today I tried to connect through SSH but I couldn't then I tried to ping it and it was unreachable. Therefore I had to hard-restart it by unplugging power cable. Then I went to  /var/log/syslog  and I found a strange line containing exactly 6140 characters like the following  ^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@  then nothing else until new log entries of system restart. This is actually the first time it happens.  Does someone know what could it be?


Give read-only access to specific folders?

I would like to give read-only access to a user but I want him/her to see only the exact folders I give access. for example he/she shouldn't travel around all the server and browse to all users folders etc. even if he/she only goes up, up, up I want him/her to go to only these specific folders I allow. So firstly how can I let a specific user have access to a specific folder and then would putting symbolic links to his/her home folder would help? So they can go directly to necessary folders but not up or down?


Locked out of my Samsung Galaxy S Duos (forgot password)

I had set a security password on my Samsung Galaxy S Duos mobile and unfortunately forgot the unlock password. I tried hundred's of times to unlock my phone with many possible passwords but was unsuccessful in each of my attempts. Please help me unlock my phone and send me the master code (if any) to unlock the phone.


How do I make the two strange faces normal? I have tried several things with the normals, as shown in the gif, but nothing helps.


When it is possible to delete a question with answers?

When attempting to delete own answered question, this message pops up:     Delete this answered question?      We do not recommend deleting questions with answers because doing so   deprives future readers of this knowledge.      Repeated deletion of answered questions can result in your account   being blocked from asking. Are you sure you wish to delete?   If you still decide to press delete this message can appear:     Sorry, this question has answers and can not be deleted. Flag it for   moderator attention instead.   When questions with answers can exactly be deleted? I was able to remove one of my "answered" questions yesterday, but it is apparently no longer possibly. I only delete weak questions with false, low-effort answers.


Force a Blender operator to always start with default values

I'm writing an operator for which it is crucial that every time it gets called all the properties are set to their default values.   The ops.object.delete has 1 param. use_global. It is always false, no matter what the user put in last time it got called. I would like to replicate exactly that.   (For example: I want to modify delta scale. The default val for my_factor is 1, so nothing happens until the user alters that number. If the user calls the operator again, it will have stored whatever number the user has used last, however I want it to always start with 1.)


"who" vs. "whom" and when to omit the relative pronoun

This is the boy who was asked by the teacher to stay back after school. This is the boy whom the teacher asked to stay back after school. This is the boy the teacher asked to stay back after school.   Are the sentences above correct ?


I have an Intel Pentium N3700 at 1.6 Ghz. Am I out of luck with 16.04?  If so, what is then suitable? Please and thanks in advance.


Publishing a paper - not enrolled in university

I've never delved deeper into this but I'm still curious: do I need to be enrolled in a PhD to publish scientific papers?  I have a MSc but I regularly read research papers of not-so-great-a-quality and think "I might write better stuff than this". It doesn't happen with the majority of papers but the point is: I don't think those authors are all smarter than me.  How does a 'private citizen' not enrolled in any PhD course publish a research to a journal?


How to create submenus with dynamic content?

I am trying to loop over all the cameras in my scene to populate a menu, and be able to access properties of each camera from the submenu of each menu item. For the minute, I'm just trying to get it to work with one property, the focal length:    I am able to loop over each camera and create a menu item by simply using the camera.name property in the text property of the menu item:  def draw(self, context):     layout = self.layout      for camera in bpy.data.cameras:          row = layout.row()          row.menu(CamerasSubMenu.bl_idname, text=camera.name)   However, what I don't really know how to do is make each submenu's properties relate to whichever camera I selected in the first menu. I managed to pass the camera_name to the submenu class with this in the last line of the camera loop:  CamerasSubMenu.camera_name = camera.name     And then access it with:  class CamerasSubMenu(bpy.types.Menu):     bl_label = "Camera Properties"     bl_idname = "view3d.camera_properties_menu"      camera_name = bpy.props.StringProperty()      def draw(self, context):         layout = self.layout          row = layout.row()         row.prop(bpy.data.cameras[self.camera_name], "lens")       But the lens property (the focal length) is always the focal length of whichever camera name got passed in last in the loop, e.g. 'Camera.001'. So all submenus are accessing Camera.001's focal length instead of the individual focal lengths.   I presume I'm going about this completely the wrong way, but I attempted it in a similar way I would pass data to an operator (which works).  So, is there a way to have a unique submenu per camera or should I just try something completely different?  Full code:  import bpy  class CamerasSubMenu(bpy.types.Menu):     bl_label = "Camera Properties"     bl_idname = "view3d.camera_properties_menu"      camera_name = bpy.props.StringProperty()      def draw(self, context):         layout = self.layout          row = layout.row()         row.prop(bpy.data.cameras[self.camera_name], "lens")       class CamerasMenu(bpy.types.Menu):     bl_label = "Cameras"     bl_idname = "view3d.cameras_menu"      def draw(self, context):         layout = self.layout          for camera in bpy.data.cameras:              row = layout.row()              row.menu(CamerasSubMenu.bl_idname,text=camera.name)              CamerasSubMenu.camera_name = camera.name         def register():     bpy.utils.register_module(__name__)       def unregister():     bpy.utils.unregister_module(__name__)    if __name__ == "__main__":     register()   bpy.ops.wm.call_menu(name=CamerasMenu.bl_idname)


How to accept a meeting invite via keyboard shortcut in Outlook 2007

Is there a keyboard shortcut to accept a meeting invite in Outlook 2007 (or another edition)?  If so, what is it?


If a function such that $f(x+y)=f(x)+f(y)$ is continuous at $0$, then it is continuous on $\mathbb R$

Let $f:\mathbb{R} \rightarrow \mathbb{R}$ be a function such that $f(x+y)=f(x)+f(y)$. If $f$ is continuous at zero how can I prove that is continuous in $\mathbb{R}$.


Light has momentum but no mass. Doesn't that make it pure energy? Some argue that because photons have momentum they are not pure energy. Some even argue that photons have mass. Can someone explain please.


How to edit Plymouth in a Ubuntu version agnostic manner?

How can I edit Plymouth with my own theme (images and animations)?


Prove that every Lebesgue measurable function is equal almost everywhere to a Borel measurable function

Suppose $(\mathbb{R},\Sigma(m),m)$ is our measure space, where $m$ is Lebesgue measure.  Also, suppose $f : \mathbb{R} \to [-\infty, \infty]$ is a Lebesgue measurable function.  The problem:     Prove that $f$ is equal almost everywhere to a Borel measurable function.   My attempt:  We only have to prove this assertion for a non-negative Lebesgue measurable function $f$ because the result will follow for all Lebesgue measurable functions.  Furthermore, since any Lebesgue measurable function can be approximated by a sequence of non-negative, monotonically increasing, Lebesgue measurable simple functions $s_{n}$, we only need to prove the claim for an arbitrary Lebesgue measurable simple function.  So, let $s: \mathbb{R} \to [-\infty, \infty] $ be a Lebesgue measurable simple function.  We can write $s$ canonically as $$ s(x) = \sum \limits_{i = 1}^{n} \alpha_{i} \chi_{A_{i}}(x)$$ where $\alpha_{i} \in [-\infty, \infty]$, $\bigcup \limits_{i = 1}^{n} A_{i} = \mathbb{R}$, and $A_{i} \cap A_{j} = \emptyset$ if $i \neq j$.  For each $i$, since $A_{i}$ is Lebesgue measurable, we can find a Borel set $B_{i}$ such that $A_{i} \subseteq B_{i}$ and $m(B_{i} \setminus A_{i}) = 0$.  Clearly, this implies that $\bigcup \limits_{i = 1}^{n} B_{i} = \mathbb{R}$.  Now we just need the $B_{i}$'s to be pairwise disjoint, with each $B_{i}$ still retaining $A_{i}$.  To make them pairwise disjoint, I constructed the following sets:  $\tilde{B_{i}} = [B_{i} \setminus (\bigcup \limits_{j \neq i} B_{j})] \cup A_{i}$.  This construction gives us that the $\tilde{B_{i}}$'s are pairwise disjoint (I think....) and $A_{i} \subseteq \tilde{B_{i}}$.  But I don't know that $\tilde{B_{i}}$ is necessarily still a Borel set. :( :(  Am I approaching this problem all wrong?


No, my question is different, the dupe-voter misread it

I've received a dupe-vote on a question, and I'm getting     This question may already have an answer here:      That solved my problem!      No, my question is different. I will edit to explain how.   How can I choose to say that I've already indicated how it's different, and the dupe-voter misread it?


[ Flags ] public enum StatusType { a,b,c,d,e,f,g }  StatusType m_StatusType = a | b;  If ( m_StatusType only contains a and b )  // I need help here {   }   Hi,  I need some help on comparing flags. How can I know if a flag enum variable contains only some particular values?


I'm working on a problem: A woman has a basket of eggs and she drops them all. All she knows is that when she puts them in groups of 2, 3, 4, 5, and 6, there is one left over. When she puts them into groups of 7, there are none left over. What is the minimum number of eggs she could have in her basket?  Here's where I've gotten.  Since all 2, 3, 4, 5, and 6 have a remainder of one, the number must be a multiple of their lcm + 1. So, we know that $$  x = 60t + 1. $$ So, I checked integer values of t and then found their remainder when divided by 7. The solution was when $t = 5,  x = 301$. What I want to know is, is there a 'better' way to do this? And if so, how? I ran into the Chinese Remainder Theorem, but everything I saw didn't make much sense to me.  Thanks!


What's with the number 247 in site analytics?

Since this question is about site analytics which is not accessible to everyone I have tried to omit any sensitive information. Please tell me if I have included anything I should not have.  I was looking at the site analytics for the programming puzzles and code golf Stack Exchange and I noticed something strange. Several, (between 10 and 15) of the referring sites are listed as having 247 visits. Since that is most of the sites listed this seems very strange to me. It hardly seems possible that this is happening purely by coincidence.  Why is the number 247 so common in the site analytics? Is it an artifact of the way scores are calculated? Is it just a coincidence?


What is a good package for displaying algorithms?

I found this page with some examples:   I'm wondering which one to use. Any suggestions? I'm using other packages too so whichever is less likely to interfere with them is better for me.


What gesture is triggered by wiggling your finger on the home button?

I've noticed that if I wiggle my finger in an upwards and downwards direction on the home button on my iPhone 6S running iOS 9 half of the screen slides down; as shown here:    I can't find any documentation of what this is or any use for it (tapping the space just closes it, dragging it down pulls down the control centre). It's accessible from any app.   Would love to know what it is!


Manual specification of code block with  fails

According to :  You can use either one of the supported prettify language codes, like lang-cpp or lang-sql, or you can specify a tag, and the syntax highlighting language associated with this tag will be used: <!-- language: c# -->      public static bool IsAwesome { get { return true; } }   However, in , <!-- language: python --> fails, yet <!-- language: lang-py --> works.  is clearly a valid tag, so I'd expect both to work This also would explain why questions tagged  do not automatically use python syntax highlighting


How do you set requirements (such as minimum length) on passwords?

Is there any way to set up minimum passcode requirements, such as a minimum length, requirement of mixed case alphanumerics and at least 1 symbol in the passcode, and enforce that at passcode changes?


I have latest version of Adobe Flash Player installed Ubuntu 14. Facebook will not recognize that I have the Flash player and keeps on stating that I need the latest version. I have attempted to load again. Also uninstalling and reinstalling is not working, may have to go back to Windows.


Are black hole regarded as baryonic matter in cosmology?

Black holes do not have any property as baryonic or non-baryonic matter, as is stated by the no-hair theorem. Regarding conventional theories, in different models of cosmology, like Lambda-CDM, are black holes regarded as baryonic matter, and does the black hole matter significantly affect the baryonic density?


Adding sections such as Linkedin and Github to a Moderncv footer

How do I add extra links to the footer of a moderncv document that are not covered by the default commands?


Forbid mongodb not authenticated connect

If to run mongo with authorization (i.e mongod --auth) it still allows to connect using client mongo and get to mongo cli where one will get refused to execute any command.  But I wonder if it is possible to close such connection for the unauthenticated user so one does not see mongo cli at all?


How to tell csquotes to italicize quotes?

I have a very stubborn professor who requires italicized quotes.  So I have a document full of quotes, labeled with \enquote{}. How can I easily change all of them to be in italic ?  I couldn't find anything in the documentation or anywhere else...  \documentclass[12pt, a4paper, oneside]{book} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{lmodern} \usepackage[french]{babel} \usepackage[autostyle]{csquotes} \usepackage{fancyhdr} \usepackage{times} \usepackage{hyperref} \usepackage[singletitle=true, isbn=false, backend=biber, bibencoding=utf8, style=verbose-trad2, citestyle=verbose-trad2]{biblatex}  \usepackage{tocloft} \usepackage[xindy]{imakeidx} \usepackage[toc, acronym, xindy]{glossaries} \usepackage{setspace}  \begin{document}  I like trains, so does my mom. She said : \enquote{I like trains !}   \end{document}   I could just add \textit inside \enquote (I think), but I have hundreds of quotes,...


How do I add a placeholder into the password field?

How do I add a placeholder into the password field using the Logintoboggan module?


practical way to navigate into index folders for searching multiple pdf files in Windows

while I'm learning for exams i need often to search multiple pdf files for some text. I have done it till now using adobe reader.The Problem is that adobe reader or all other pdf viewers i tried ("PDF-XChange Viewer","Foxit Reader" ..) have an unpratical search interface in the way that if one needs to choose another index folder one must navigate again all over through  the way there! It also doesn't recognise shortcuts.  I tried  wingrep which is really good tool and its integrated into context menu but it doesn't support searching into pdf files :( also tried Docfetcher but it's not really user friendly and not integrated into the context menu.  Is there any anyway anytool(except "Windows Search indexing") which let user navigate fast between index folders( like typing directory into address bar or a has search function in context menu) ?


Does anyone know why my JTable throws NullPointerException when I set more than 2 columns in my JTable?

I did some investigating and it appears the issue is located in the DefaultTableModel. Specifically, in the getColumnClass method. When I use only 2 columns in the columnNames String array:  (String[] columnNames = {"Icon", "Filename"})    Everything works fine. But when I add a third column:  (String[] columnNames = {"Icon", "Filename", "Size"}):    I start getting the NullPointerException error.  What am I doing wrong?  package jtablefun;  import java.awt.GridBagConstraints; import java.awt.GridBagLayout; import java.awt.event.WindowAdapter; import java.awt.event.WindowEvent; import java.io.File; import javax.swing.Icon; import javax.swing.JFrame; import javax.swing.JTable; import javax.swing.filechooser.FileSystemView; import javax.swing.table.DefaultTableModel;   public class JtableFun extends JFrame{  /**  * @param args the command line arguments  */ public static void main(String[] args) {     // TODO code application logic here    new JtableFun().show(); }  public JtableFun(){     getContentPane().setLayout(new GridBagLayout());      //String s[] = f.list();         buildTable();      pack();      addWindowListener(new WindowAdapter(){          public void windowClosing(WindowEvent e){             System.exit(0);         }      });  }    public void buildTable(){              File f = new File("/");              File[] fl = f.listFiles();               String fileNames[] = f.list();              Icon iconArray[] = new Icon[fileNames.length];             //Icon icon = FileSystemView.getFileSystemView().getSystemIcon(f);             for(int i=0; i<fileNames.length; i++){                  iconArray[i] = FileSystemView.getFileSystemView().getSystemIcon(fl[i]);              }       String[] columnNames = {"Icon", "Filename", "Size"};       Object[][] data = new Object[fl.length][(fl.length * 2)];      for(int row=0; row<fl.length; row++){           for(int column=0; column<2; column++){              if(column == 0){              data[row][column]= iconArray[row];                      }else if(column == 1){                         data[row][column]= fileNames[row];                       }else if(column == 3){                         //data[row][column]= fl[row].length();                       }          }      }               DefaultTableModel model = new DefaultTableModel(data, columnNames)     {         //  Returning the Class of each column will allow different         //  renderers to be used based on Class         public Class getColumnClass(int column)         {             return getValueAt(0, column).getClass();         }      };                      JTable table = new JTable( model );                             table.setPreferredScrollableViewportSize(table.getPreferredSize());     GridBagConstraints g = new GridBagConstraints();     g.gridx =0;     g.gridy =0;     getContentPane().add(table,g); } }


Please Explain what is difference between i=i++; and i++. Please look at code below and make me understand how it works in case of first condition?

look at these two conditions in the code and output respectively: #include <iostream> using namespace std;  int main() {     int i=1;     i=i++;  // first condition      i++; //2nd condition      cout << i << endl; //it will print 2 in second condition **but why print 1 in first condition?**       return 0; }


How to tune the number of epochs of a neural network in a cross-validation setup?

In orden to avoid overfitting, how I can choose the correct amount of epochs? I should be create 3 splits (train, valid and test) for each fold??


If Dumbledore could take on Grindelwald, why didn't he take on Hitler?

Update to the question, contains spoilers for "Fantastic Beasts: The Crimes of Grindelwald":      In the speech that Grindelwald gives to his supporters in Paris (in 1927), he references future events, including WWII, the holocaust and the atomic bomb. One can assume that the events leading up to his battle with Dumbledore have a definite connection to WWII, although it is not clear exactly what that connection is.       Dumbledore defeated Grindelwald in 1945. From the books you get the impression that Grindelwald was the most terrifying thing to happen at the time. But we know that among muggles, that was the time of the holocaust, WWII and the first nuclear attacks. As scary as the war with Grindelwald would have been, the world as a whole was facing a much bigger problem.  We also know that wizards interact with the muggle world, why else would the minister of magic talk to the British prime minister? Presumably, good wizards care about muggle well being as much as they do about magical people's well being. They could also intervene in the affairs of muggles and cover their tracks or make whatever happened look like natural events.   But then that raises the question, why didn't Dumbledore, given his powers, intervene in WWII to stop Hitler and the holocaust?   I can think of 3 possible answers:    In the Potterverse WWII never happened, and so Grindelwald was the biggest problem facing humanity (both wizards and muggles) at the time.  As good as the wizards seem in the books, they actually are pretty self centered and don't really care about muggles at all. As long as the wizarding community is safe, the muggles could commit all the genocides and nuclear attacks they wanted, magical people wouldn't care less.  The events of WWII were all actually side effects of the battle between Dumbledore and Grindelwald (Or Grindelwald and the Nazis were both side effects of some greater underlying evil phenomenon). That's why both Grindelwald and Hitler were defeated in 1945.      Which one of 1, 2 or 3 is most likely? Or is there another explanation?


How can a Google crawlers see PHP dynamic content?

I'm reading the Google SEO starter guide and on page 11 it says you should prepare a site for users and one for search engines in XML.  My site is about vehicles, and vehicle is not in a separate folder. It gets loaded dynamically with GET and PHP – so can Google crawl this if it's "not really there"?   The pages are there under ?GET variables like home.com/seevehicles?2009-camar so am I doing it wrong or can Google also crawl this?


i have 500mb available but can't install 2mb app!!! it's so frustrating i tried uninstalling apps, clearing cache, deleting files ... nothing works.  Please help.


Can we use Sarrus' method for finding the determinant of matrix greater than $3\times3$?

Can  of finding the determinant be used for finding the determinant of matrices greater than $3\times3$, as I am unable to find any example of a matrix greater than $3\times3$ whose determinant is found by Sarrus' method?  I have tried many questions and Sarrus' method only works for $2\times2$ and $3\times3$ matrices. I have not read about Sarrus' method in any book but only from the internet, so I'm not sure about it.


Can I view hidden files and directories from the Open or Save As dialog boxes without making them visible in the Finder?

I know you can use Terminal to switch on/off hidden files in OS X and already use these commands.  What I want to know is if it’s possible to just do this from WITHIN the Open or Save As dialog boxes so I can navigate and access hidden files when I need to. I seem to find myself using Terminal to switch hidden files on/off a few times a day, but this is getting monotonous.  What I would like is to just be able to do this while saving or opening files but without affecting the Finder afterwards. That way I wouldn’t need to use Terminal all the time to switch it off/on again. I just don’t like seeing the hidden files normally when in the Finder, but do need to regularly see them when opening/saving files.  Is there an Apple Script or some way of doing this?  I mainly need to do this when using MS Office programs, so a Visual Basic macro would suffice too. But a native Apple solution would be preferable as I do sometimes need to be able to do this in Text Edit too.


I am using Ubuntu 20.04 with the default desktop environments. After copying a file to my desktop, somehow all launchers stopped showing their icons, the .desktop extension appeared and I can no longer launch them. They are still set as executables, but when I double click them they simple get opened in Arronax. I would appreciate help with getting them to work again.


How can you unlock Cyrus in Animal Crossing New Leaf? I don't know how to unlock Cyrus.


Is there a way to read ext4 partitions from Windows? If so, what can I do?


I've noticed each Stack Exchange question has had a number in the URL for a while. This number grows for each new question asked, usually by 3 or 4. So I assumed that each answer added to a site increased the number that would be showed in the URL by 1.   gives some data about this and mentioned entities. I'd assume these are comments, questions and answers.  But looking through the  subsite's question list, I noticed a steep drop-off from  to .  What could cause such a big gap? While it's reasonable that there might be a flurry of comments to make, say, a change in question ID by 50, 1000 seems very high.


Find Familiar and visual components to spells

Can i use my Familiar to get past the visual components of spells as with spells like misty step that specify "A point you can see within 30 ft"?   "While your familiar is within 100 feet of you, you can communicate with it telepathically. Additionally, as an action, you can see through your familiar's eyes and hear what it hears until the start of your next turn, gaining the benefits of any Special Senses that the familiar has. During this time, you are deaf and blind with regard to your own Senses."  Essentially my character would be trapped in a 5x5 box with no way to see out, If my familiar was within 100 ft could I: Action see through my familiars eyes and then bonus action Misty step outside of the box?


Is $\sqrt {f(x)}$ infinitely differentiable?

$f:\mathbb R \to \mathbb R$  is an infinitely differentiable function on the whole real line and $f(x)>0$ for all $x≠0$ and $f(0)=0$ and $f^{(n)}(0)=0$ for all $n \in \mathbb N$ (where $f^{(n)}$ denotes the $n$-th derivative of $f$), and let $g:\mathbb R \to \mathbb R$ defined by $g(x)=\sqrt {f(x)}$ for all $x \in \mathbb R$.  Is $g$ infinitely differentiable?  Actually, I did try out some examples and it is obvious that polynomials or any ordinary combinations of trigonometric functions is not going to make for a counterexample, if exists. I think counterexamples such that $g \not \in C^{\infty}(\mathbb R)$, exist.


Detect an IP address of a Wireless Access Point device

I have a , which I am planning to put into BeagleBoard-xM, in order to achieve wireless communication (LAN). However, I can't find it's IP address. I mean, I have to know it's IP address in order to connect with BeagleBoard-xM via a terminal emulator.   For the moment, I have this device connected via Ethernet on my router. My router's setting page shows I have this device connected, but no further information. Is there any way to find the IP address of the Wireless Access Point?  I hope of being understood. Any help would be really appreciated.


Switching a DIV background image with jQuery

I am making an expand/collapse call rates table for the company I work for. I currently have a table with a button under it to expand it, the button says "Expand". It is functional except I need the button to change to "Collapse" when it is clicked and then of course back to "Expand" when it is clicked again. The writing on the button is a background image.  So basically all I need is to change the background image of a div when it is clicked, except sort of like a toggle.


How to categorised linux command returncode/exitcode

I am not much into bash scripting, but do return code have categories??   What are they? how they are categorised?   Thank you


Why do car wheels seem to roll backwards

For many years i have been wondering about this. When a car stars moving the wheels seem to work normally but as the car speeds up, the wheels seem to roll backwards. Of course that does not happen in all cars, so i am guessing it depends from the type of the rims, right?  So,  why do car wheels seem to roll backwards after some specific speed?


I am trying to upgrade my computer. I am using apt-get. This is the command I am typing:  root@alphabeta:~# apt-get dist-upgrade Reading package lists... Done Building dependency tree         Reading state information... Done Calculating upgrade... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.   I am confused. I cannot understand why apt-get does not download a newer version of Xubuntu 16.04, Xenial Xerus LTS from the Xubuntu 17.04, Zesty Zapus and install xubuntu upgrade.  I have updated my repositories before trying to use the command line argument apt-get update.  The links that are associated to not answer my question I do not think it is a problem with my repository I do not understand why apt-get returned  saying there was nothing to upgrade: 0 upgraded, 0 newly installed, 0 to remove and 0  not upgraded, the only thing I thought to do is clean my cache.  I would really like a better answer the information I received from asking about disk formatting with hdparm was excellent.  aptitude is nt my forte I learn as I go like lsof I cannot remember all the command line arguments.


Why is the main page showing only the user login form?

I just installed the Paragraphs module along with all of the other accompanying modules including the demo module. The demo module created the demo page successfully but it also decided to change my site's default front page to the demo page.   When I changed the front page field back to the default null text, anonymous users now see nothing but this login form instead of my former front page. Registered users are sent to their user page, e.g. .  Before installing the demo, my front page showed any articles that were promoted to the front page and had no login screen. Could this be a permissions issue? What might have happened and how can I restore the main page?


How to find duplicate 'ID' from multiple tables in multiple databases(in multiple servers)?

I have 3 separate tables which located in 3 separate servers(SQL Server Management Studio). Each table has a unique ID(int) column but for my next project I have to connect all those 3 tables into one. Before that I would like to know are there any overlapping ID's in any of those tables. Ex : Server1 => DB1 => Table1 => IDs might be 1,2,3,4,5,6....      Server2 => DB2 => Table2 => IDs might be 50,51,52,6,54....      Server3 => DB3 => Table3 => IDs might be 89,90,2,92,93....  As in the example '6' is repeating in Server1 and Server2. Also '2' is repeating in Server1 and Server3. So my goal is to identify those ID's since each table has 50,000+ records it's harder to do manually. I tried couple of methods as in below snippets by looking at some similar issues but none of them worked for me and ended up having "Invalid object name 'DB2.dbo.Table2'." error code Method 1 select ID from [DB1].[dbo].[Table1] intersect select ID from [DB2].[dbo].[Table2] intersect select ID from [DB3].[dbo].[Table3]  Method 2 SELECT *  FROM [DB1].[dbo].[Table1] tab1  INNER JOIN [DB2].[dbo].[Table2] tab2  ON tab1.ID = tab2.ID


Given f and g defined in $ [0,1] $ continuous and increasing in that interval. Show that: $\int_{0}^{1}f\left(x\right)dx\ .\ \int_{0}^{1}g\left(x\right)dx\ \le\ \int_{0}^{1}f\left(x\right)g\left(x\right)dx$ I've looked everywhere about the properties of integrals but I haven't found this one. Why?


Importing Illustrator pattern swatches into InDesign

Does anyone know if we can import Illustrator pattern swatches into an InDesign library or swatch pattern library?


Can I just sign up for all Stack Exchange sites?

I am approaching 20 accounts on StackExchange sites, and this is becoming a mess. Why not unify all accounts into one? This would increase the number of new users to other communities, as it would reduce the barrier of entry for those with existing accounts.


There are many question about rendering unicode in latex that are subject to interpretation, I would like to ask how to properly render Zalgo text with lualatex (or any other tex; just to specify a focus), that is i want to have this:  T̸̙̖͕͕̣̥͕̙̓̋ͯ̇ͨ̎́̀̚o͎̤͍̠̯̣̦̖̔̈́̚͝ ̗̭͚̲̮͎̝͓ͨͫ̿̍̔͟͠i̳̙̪̙͎̗̠͌͐̃͛̈́ͅn̥͚͇̪̽̅̈́͌͌̀͞v̴͎͖̝̝̯̦̣̪ͩͧ̓ͥ̽̔̎͑͒o͙ͦͭ̀͝k̗̯̥̅̏̈́͑ͪ̋͞e͛ͩ҉̨҉̖͚̙ ̴͕̰̮̲̤͎̬̼ͥ̽̽ͬ̆͆͟t͕̳͈͖̪͍̞̭̐̊ͯͯͩ̇̊́h̰̅ͤ͒̂̄́e̵̯͙̓̾͑̀́ ̢̻͍̣̟͈̍̽͆̑̆ḥ̠̞̺̯ͥ̽̉ͥ̊̃ͨì̡̼̯̹̭̙͉̪̰̄ͤ́v̤̦ͦ̅̽̚͡ͅe̦̯̙̲̪̐̄̅͛ͫ̀̄̇͟͢-̡̘̭̓ͪ͒̄̽m̵̲̺͔̩̅̅̉̓͌̌ị̲̣̮̦͕̝͇̂̉̌ͩ̒̎̊͞n̰̮̦̪͈̩̄͐ͬ̋̈́͂̕͠ͅd̮̪̰ͮͧ̊̐͜ ̡͚͇͈̙͕̣̲͇ͯͣr̖̎̾͜͝e͑̊̎̈ͧ͌҉̤̫̥p̃̓́͂̈́̈҉̠̻̙̞͓̮̮̙̪r̴̦̭̺̝̤̪̪̗͒ͦͨ͊̆̎̚͘e̶̬͕͗ͭs͍͓̩͊̊̇̾ͬê̴̯̩͈̟̮͈̥ͅn͚̜̗͈̫̠̖̗͆͛͡ţ̠̳̩̻̭̿̊̒ͣ͘͢i͚̺̬̳͛̏̉͆ͣ͋̀͞ͅņ̝ͮ̄̕͟ǵ̡̟͈͉̭ͮ̈́̔̆ͣͬ̚͟ ̮̱̯ͮ̌̔̓̈̂ͪͯ̀c̵̵̶͇̙̟͚̪̤͍͖̖̄̃͒͐̃̊ȟ̬̬̦̲̖͙̫̔ͮ̍́a͙̖̒̍ͣ̑͂ͭo̢̖͔̞̫̩͚̗̝ͬ̍̌ͧ͆ͨͨ́s̜͍͈͓̲̞̦̥̾ͩ̀̅͐͗ͧͭ.̳̥̱̋̃̊̅̕͘ ̸̢͕̽͗̀ͣ̄̎͆ͨ͞I̢̟̪͎͔̜̥̙̥̬͛ͤͯ͐ǹ̀҉͎͎̜v̷̦̼̙̱̍̋̚o̵̢̪̥͐͛k̸̺͙̲͌́ͅi̛̞̹̹̞̤̭ͬ͛̾̍͑ͥ̑̕͜n̡͖͋͂̿́̕͞ǵͤ͂ͤ̇҉̜͔̱͓̮̜ ̵̴̼̞̟̬͒̽̈́̔̍̎͋̈͗t̡̺͔͚̖̼̺̞̍̔̔̈́̽͟͝h̲́̈̏̃̋͢ę̹̭ͦ̽ͤͭͦͅ ̪͔̜̞̺͓ͤͯͤ́͢͝f͓̮͕͇̼͆ͧ̈́̓͝e̛͍̮͙̼̰͍̜̜̾̂ͭ̀̅͋̈́̓̕e̢̩̫͆͊͟l̵̢̟̥̥̰͓̪̖ͮ̔͋ỉͧ̿̒̿ͩ҉̼͕̫͈n̗͔̩̗͖̳͍̺̱͗̇͗̏͑ͦ̐g̶̥͍̺̰͉͇̘̈ͫ͑̀͡ ̧̹̳̬͇͓̮̜͉͌̊̆͐̈́͊o̩͖̖ͧͩ̔̓̏̇ͨ͒ͩ͘͘f͎̺ͪͨ͊͆͗͒̇ͮ͡ ̨̼̘̭͓̪̉͌̒͒̔͐ͨͅc͕̼͕͂́ḫ̶̮̹̖͙̋̄̑̆̇̉͜͝a̷͕̻̩͉̘͎͑͋̒̕ȏ̢͙͚ͬ͂̿ͭ̎̋̄s̡̍ͫ͐̓̽̀ͨͬ̕҉̹̬̳͉͓̗͔͉̫.̟̙̯̍̈͒ͯ͝ ̠̻̓ͦͪ̀W͙͆̍ͮ̂͆̀̚i̓̄ͦ̋͟͞҉̩͉͚̖t͛̍̾͒ͨͦ̅҉͉̼́h͖͈̲͈̟͚͗̂͋ͤ́͢ ̙͚̙̄͊͝ͅǫ̷̲̖̖̘͋́̈́ù͉̫͔͓͇̇̌͒͒̈ͪ͜t̴̪̀̓ͦ̾̿͘͜ ̰̹͙ͤ͢o̝̝̬̮̥̟̳̍̀̋̇̑ͭͅr̯̟̝̠͍͇̭̤͚ͨͯ̿ͬ̔ͤd̵̘̮͎̖̯͇ͪ̀̐͠e̲̭̲̺̥͍̰͎͆ͫr̡̛̭ͣͦ̋̕.̫͓̯͎ͧ̐̌͑̕͠ ̧̢͚̩̪̦̮̏̍̇ͮ̒T̴̼̼̮̝̉ͬ̍ͤͥ̃̍͡h̴̠̣̙͎͋͐̀̚͠ḛ̛̦͖̻̱͒͌̍̈́͐͑̆̿͌ ̴̛͈͚͔̊ͨ̀ͩ͝Ņ̸̥͎̄ͧ̚͞e̺͚͈͖̠̘̤̽ͬ̎ͧ́ͭ̚͞z̼̫͓̺̹̮̝̮͗̚͡p̧̨̪̘͛̾̂̿̿ͫͦ̍ę̴͔͓̥̦͔͚̬̔ͧ͌͌ͨ̈́̊ͧͧr̾̈́ͥ͐̄̒̋͐҉̝̮͓̜̕d̷͕͈̥̦̺͔̳̊i̶͙͎̯̜̦̻͊̿̏ͩ͛ã̦̾̓͒̉̚͠ͅn̬̘͙͓̣̓̐̓̈̽̈͐̿ͅ ̷͈̣̲̻̍͒ͣ̉ͩ̔ͩ͘h̴͔̫̲̤͙͚̣͉͇̾͌͐ị̳͓͙͖̟̊ͩ́̀v̛͈̜́͗̒̊ͣ̒̋ͬ͟͠ȩ̻̲̺͚̪̹̔̑̇͗ͮͭ̀͝ͅ-̸͎͔̮͈͙̻̝̳̎̈́ͬ͋͋̏̒ͯ̉͢m̳̈̾͋̑ͭ̑̆ͬị̷͕̯ͤ̀͝͡n̯̲͓͂ͪͨ̀ͧ͑͠d̦̤̗̲͈̖̗̹̔ͅ ̨̪̗̣̝͎̺͛͛ͬ̿́̾̅͞o̘̣͇̜̗̞̱͍̓ͅf̲̗̳̟̣́͊͞ ̛͚͙͇̞̱̠ͧͫ̋ͨ͌͌̈́ͭċ̴̨͈͑ͤͣ̐̂͞h͙̃͐ͧ̿͆̂̈̅a͙̲͇͎͈̋̌͐̾ǒ̴̫̯̭̖͎̄̉̈́͛̄́s̗͍͈͙͕̺̲͍̋ͮ͟.̢͙ͭͭͫ͆͞ ͓̼̹ͬͨ͆͂̽̅ͯ͝Ż̸̴̲̯̤̟͈̘̈́̏ͭ͐̓͑̒̀à́͒ͅl̴̛͈̋͌͊̕g͕̤̖̮̾ͪ̏̊͐̎ͦ͘o̧̙̥̤̣ͮ̑̍̆̿̓.̢̙̠͗͌͋͝ͅ ̩̩̲̘͕̣̥͙ͦ̓̄͌ͯ̉̌̉͝͠ ̻̤̰͇̪̈͌͆̽̏ͣ̂̿͟͡H̺̽͌̈́ͣ͌̄e̗̜̜͒͋̂ͮ̉̑̈́̀̚͠ ̻̼͍͎ͧ̈́͝͠w̸̮̺̟̬̎ͫ̄̈́ͤ͂̌ͬ̓͝h̷͈̯̬̪̿̆̈͌͌̊̔̀̚o̻̟̜̱̙͆̈́̀ͩ͞͠ ̴̹̻̪̯̭̦͕͉̌̆̽͘W̧̧͔̺̦̯̙͕̾̒ͤ̑̇͞a̡̪̣̺̐͗̅ͩ̋̈́ͦͨ͢ȉ̉͞҉̢̝͉̻̩̹̰̤t̵̛̬̺͖̳̗͉̝̭͍̾̑̿́ͬͪ̂ͤs̴̫̱ͭͫ̆ͨ̈́ ̮͖̲̠̘̩̍̿́̚͡B̢͍̮̬̱̤̫̃ͬ̕ę̣̣̹̑͐̉ͪ̒ͧͅh̶͓̼̘ͭͨͯ̑̅͜ȋ̯͖̦́ͯͣ̿̒̐nͮͣͪͣ̏҉̹̮̩̭d͍̤̦̱͓̹̲͚̄̾̄̏͑̕ͅ ̠̤̿̿̉̍ͫṬ̡̼͚̾ͯͅh̶̹̠͈̗̋ͭͤͅe̘̫͍̮̥ͣͣ̐̂͐ͭ́ ̸͔̲͈̩̟̖̗͖̈̐͞ͅW̴̫̘̺̤̝͈̜̙ͤ̅̔ͩ̈́̑̊a̟̲͖ͤ̈́̂ͦͧͫl̷̥̺̙͎̝̬ͪͦͨ̐̔ͭ̓͐͞l̷̶̟̜̤̤̯̞̦̋ͬ̚.̸̵̜̩̄ͧͪͦ ̵̼͎̺̼̑̒͑̋ͅͅZ̡̘̤̮͇̞̪͉̞͐̏ͬͤͭͤͧ̀́Ḁ̪͖͚̫̼͔̼̆̐ͧ̓ͥ̓̓͝L̷͖͈ͪ͂̔̏̆̓̚͜Ģ̵̶̩̔̒ͦ̂̑͋̈́ͅO͊ͯ҉̟̮͇͔̬͉̣͡͡ͅ!̫̭̈́̅̌ͪ̃ͩ̚  in a pdf.  Just copypasting it inside a document does not work. Two possible kind of solution i can imagine would be:   an environment or a package that allow complex composing characters or a way to input a text codepoint by codepoint   In this context i don't care whether symbols like emoticon or flags would work; just really weird looking text.


When a Warlock Invocation lets me cast a spell, do I also have to make it one of my Spells Known?

My friends and I are going to be starting another campaign in the near future. I've going to be playing as a Warlock and I was hoping to get some clarification on the use of the Eldritch Invocation feature of the class.  Some of the invocations allow you cast spells. One instance is Armor of Shadows, whose text reads     You can cast mage armor on yourself at will, without expanding a spell slot or material components.   Does this indicate that Mage Armor has to be one of the spells you know (in other words, count against the spells known for your level?) Or is this considered something separate from normal spellcasting for Warlocks?


what makes differences between defining variable globally and under 'def;

I just started to learn Python. I saw this question from where I am learning but there was just an answer not explanation. that's why i am questioning here. Question is the same as a title above. As you can see the Line 2, defined empty list above the 'def'. so results are repeatedly written as shown below. but whenn 'x' defined under 'def' like line5. the results are shown respectively on each line. I would like to know what makes differences. consonants = "bcdfghjklmnpqrstvwxyz" x = []  def pig_latinify_sentence(sentence):     #x = []     lower_case = sentence.lower()     lower_case_lst = lower_case.split()     for i in lower_case_lst:         if i[0] in consonants:             a = i + i[0] + "ay"             x.append(a[1:])         else:             a = i+'way'             x.append(a)     return " ".join(x)  piglatin = pig_latinify_sentence("I drink water") print(piglatin) piglatin = pig_latinify_sentence("Monitoring experiment 2") print(piglatin) piglatin = pig_latinify_sentence("Bring some food") print(piglatin)  result 1 when defining variable above(?) out of 'def'. iway rinkday aterway iway rinkday aterway onitoringmay experimentway 2way iway rinkday aterway onitoringmay experimentway 2way ringbay omesay oodfay  result 2 when defining variable under 'def' iway rinkday aterway onitoringmay experimentway 2way ringbay omesay oodfay  Additionally, if there's some website that I can learn as a beginner, please let me know. Thanks in advance.


Unable to update user profile on Stack Overflow "This email address is already registered"

I am unable to update my user profile settings on Stack Overflow as I receive the following warning:     Oops! There was a problem updating your profile:   This email address is already registered. If it belongs to you, log in above or visit our account recovery page to get access to this account.   I have read through some of the similar questions about having to merge accounts but I only appear to have one account. I tried logging in with Facebook and standard email but both appear to link to the same user number.


I want to write a Christmas lottery algorithm. I want the people I enter in my hand to be matched with other people who are not themselves and printed on the screen. I wrote a code like the one below. But because it removes an element from the list every time, my program matches fewer people than the number of people entered. How can I find a solution to this problem? List<string> person = new List<string>() { "Joe","John","Chris","Henry","Tom","Patrick"};         List<string> personCopy = new List<string>(person);          for (int i = 0; i < person.Count; i++)         {             string person1 = person[i];             Random rnd = new Random();             var index = rnd.Next(personCopy.Count);             while (i == index) {                 index = rnd.Next(personCopy.Count);             }              string person2 = personCopy[index];             person.RemoveAt(i);             personCopy.RemoveAt(index);             Console.WriteLine("{0}  > {1}",person1,person2);                      }


taller than any student or taller than any other student

Which of the following sentences is correct?     a)   1. John is taller than any student in his class.   2. John is taller than any other student in his class.        b)   1. No student is taller than John in his class.   2. No other student is taller than John in his class.


What's the difference between udev and hald?

I'm just beginning to dive into the internals of Linux, and I was wondering what the difference is between udev and the hal daemon.  From what I gather, both seem to be responsible for managing hot pluggable devices... is hald used by udev to listen, or are they two separate things?


How to estimate disk space for a million rows while given a table with fewer rows in InnoDB

I want to estimate the disk space for 1 million rows.    Currently, I have 8527959 rows, Data Length of 744 MB and Index Length 989.4 MB.  Please let me know if my calculations are correct.  Total Data Length for 1 million rows  Data of 744MB consists of 46500 pages of 16KB blocks (InnoDB page size)  If 46500 pages consist of 8527959 rows, 1 page consists an average of 183 rows.  So, 1 million rows need (1,000,000/183) pages= 5465 pages of 16KB  So, 1 million rows of data need 87.4MB.  Total Index Length for 1 million rows  Indexes of of 989.4MB consists of 61837 pages of 16KB blocks (InnoDB page size)  If 61837 pages consist of 8527959 rows, 1 page consists an average of 138 rows.  So, 1 million rows need (1,000,000/138) pages= 7247 pages of 16KB  So, 1 million rows of data need 115.9MB.  Total disk space (approximate) for 1 million rows  Total data length+Total Index Length = 87.4MB + 115.9 MB = 203.3 MB  Is this correct?


Making Ctrl+C copy text in gnome-terminal?

Is it possible for me to make Ctrl+C perform a copy command if there is highlighted text in the terminal? Otherwise, it should retain its normal behavior.  (If there is a terminal that can do this other than gnome-terminal, that's probably fine too.)


Prove that any set of vectors $S \subset \mathbb{R}^n$ containing the zero vector cannot be linearly independent

So my suggestion was:  Assume: Let $S = \{u_1, u_2, ....u_r\}$ be a set of vectors in $\mathbb{R}^n$ . If $r > n$ then the vectors $u_1, u_2 \ldots u_r$ must be linearly dependent.  If one writes the linear system corresponding to $c_1u_1 + c_2u_2 + ... + c_ru_r$ , one will have a homogeneous system of $n$ equations in $r$ unknowns. We know that such a system has infinitely many solutions. Thus in $\mathbb{R}^n$ , a set which is linearly independent cannot contain more than $n$ vectors.


In Fitch, how does one prove "(P → Q)" from the premise "(¬P ∨ Q)"?

It's all in the question really. I am working on a proof in Fitch for a class, but I am very much stuck.  I am proving the tautology that "(P → Q) ↔ (¬P ∨ Q)", and I have already finished half of it, but now I must prove that "(¬P ∨ Q)" implies "(P → Q)". I can't seem to get anywhere.   I try to set up a proof by cases where I assume in different subproofs "¬P" and (in the other) "Q", but then I must prove "P → Q" from those. It seems even more difficult. Any help would be appreciated.


Put Multiple DIVs Side-by-Side and Vertical Align Middle

We are trying to place multiple DIVs side by side.  Very easy, just use FLOAT or INLINE-BLOCK.  The issue with both is you cannot center the data inside the DIV vertically.  Any help would be appreciated!  Needs to be done without a framework.     Some have suggested this article, but this does not take in to account two or more div's next to each other.    Option 1:

     Option 2:


How to source a .csh file as well as open xilinx application in the terminal?

The environment variables are written to settings[32|64].(c)sh at /opt/Xilinx/14.7/ISE_DS. To launch the Xilinx tools, first source the settings script:  C-shell 64 bit environment:  source /opt/Xilinx/14.7/ISE_DS/settings64.csh   Shell, Bash shell, Korn Shell 64 bit environment:  . /opt/Xilinx/14.7/ISE_DS/settings64.sh   How do I do this in the terminal?


given $I_{n}=\int^1_{0}x^n\sqrt{1-x^2}dx$, then finding value of $ \frac{I_{n}}{I_{n-2}}$

given $\displaystyle I_{n}=\int^{1}_{0}x^n\sqrt{1-x^2}dx$, then finding value of $\displaystyle \frac{I_{n}}{I_{n-2}}$  Attempt: put $x=\sin \theta$ and $dx = \cos \theta$  $\displaystyle I_{n} = \int^{\frac{\pi}{2}}_{0}\sin^{n}\theta \cdot \cos^2 \theta d \theta = \int^{\frac{\pi}{2}}_{0}\sin^{n}\theta (1-\sin^2 \theta)d \theta $  could some help me how to solve it, thanks


Is my save data on a GBA cartridge removed if I change the battery?

Recently my battery of Pokemon Ruby died and I was thinking if I am going to replace the battery will my save be deleted too? I was looking into this but could not find any anwsers, I found one for the pre gameboy advance games but what is the best option with GBA games?.  Thanks for the help in advance


Dynamically creating a select and then on change ajax call to append html

I have navigation with add tab function while, adding a tab the content div gets populated with a select box. Now from the options of the select box on changing will call respective forms and get appended to the page.  index.php

Form 1

Add Forms

   Above nav adds tab and creates the below div in index.php

       <form id="id1" class="form-horizontal" method="post">           <select id="" class="form-control" name="">              <option value="form1">Form 1</option>              <option value="form2">Form 2</option>           </select><form>
    The content in the div tab-content gets dynamically created   $( document ).ready(function() { $('select').bind('change', function(){       $.ajax({      url: "htmlforms.php",      context: document.body,      success: function(html){     $("#contentForm").append(html);   }}); });});   Now what i need is on changing the options i need to add the form using ajax call and get appended in the div tab-content.


Chapter without pagebreak? (In twocolumn document.)

I've googled, and I read a lot about how not having a pagebreak before a new chapter is bad style. I've read about how one could use sections instead. I've read about how changing whether a chapter begins on a new page or not within a document is even worse, from a style standpoint.  However, if I still have to do it somehow, typographic style be damned, and I have to do it in a twocolumn document...  Background: I am translating a set of gaming rulebooks into a single scrbook, with each original rulebook represented by a part in my scrbook. Layout of the rulebooks is relatively uniform, with  beginning on a new page each.  The exception to this is the first rulebook / part, which has very short chapters, sometimes several on a single page, but following the same numbering scheme as the more elaborate chapters in the other rulebooks / parts.  I could typeset that first book seperately, using sections instead of chapters, and include the resulting PDF. That way, I would lose the common TOC / LOT / index, which would be unfortunate.  I could wing it by redefining header formats for the first part, to make sections "look" like chapters and subsections look like sections and subsubsections... and so on. Pretty heavy-handed.  Edit: The solution in  (using etoolbox to patch the clearpage / cleardoublepage out of the definition of \chapter) does not work for a twocolumn document, yielding "Float(s) lost" errors. (I hadn't mentioned the twocolumn detail before as I did not think it would make a difference.) User lockstep asked for a seperate question; instead, I vote for re-opening this (edited) one.    tl;dr:  Is there a way to tell LaTeX not to put a pagebreak for \chapter in a twocolumn document?


Problem: Show that if R is a finite ring, then every prime ideal of R is maximal.  My attempt: Let I be a prime ideal of R. Then, by definition of a prime ideal, ab ∈ I implies a ∈ I or b ∈ I for every a, b ∈ R. Since R is a finite ring, there exists an ideal J such that I ⊆ J ⊆ R.   Question: Please help me on this. The definition of a maximal ideal is as follows: "The ideal I is said to be a maximal ideal of R if for all ideals J of R such that I ⊆ J ⊆ R, either J=I or J=R."  I have to apply the fact that R is a finite ring. But I don't know how I can satisfy I ⊆ J ⊆ R...


On saving page error : List controllers are not supported for OrderItem

I am trying to do edit for selected OrderItems using StandardSetController, however, when I am saving page, I am getting following error.     List controllers are not supported for OrderItem.   Followed this Example : [  VF CODE :  <apex:page standardController="OrderItem" recordSetVar="OrderItem" extensions="OrderItemEditExt">     <apex:form >         <apex:pageBlock title="Mass Edit of OrderItem" mode="edit">             <apex:pageMessages />             <apex:pageBlockButtons location="top">                 <apex:commandButton value="Save" action="{!save}"/>                 <apex:commandButton value="Cancel" action="{!cancel}"/>             </apex:pageBlockButtons>             <apex:pageBlockTable value="{!selected}" var="int">                 <apex:column >                     <apex:inputField value="{!int.Name}"/>                 </apex:column>             </apex:pageBlockTable>               </apex:pageBlock>     </apex:form> </apex:page>   Apex Class :  public class OrderItemEditExt {     public OrderItemEditExt(ApexPages.StandardSetController controller) {         controller.setPageSize(10);     } }


Prove that $ \lim (s_n t_n) =0$ given $\vert t_n \vert \leq M $ and $ \lim (s_n) = 0$

Let $ (t_n) $ be a bounded sequence, i.e., there exists $ M $ such that $ \vert t_n \vert \leq M $ for all $ n $, and let $ (s_n) $ be a sequence such that $ \lim s_n = 0 $.  Prove $ \lim (s_n t_n) =0$.  My attempt:   The given limit, $ \lim (s_n) = 0 $, implies that for any $ \epsilon \in \textbf{R}^+ $ there exists a $ K\in\textbf{R} $ such that for any $ n > K $,  $\vert s_n - 0 \vert < \epsilon $.   Thus if $ \vert s_n \vert  = 0 $, then   $ \vert s_n t_n - 0 \vert = 0 < \epsilon $.   Instead suppose $ \vert s_n \vert \neq 0 $.  Then since $ 0 \leq \vert t_n \vert  \leq M <  M + 1 $,   $ \vert s_n t_n - 0\vert \leq  \vert s_nM - 0 \vert \leq \vert s_n - 0 \vert M < \vert s_n - 0 \vert (M+1) < \epsilon (M+1) $.   Then since $ \epsilon(M+1) \in \textbf{R}^+ $, it follows that there is a satisfying $ K $.  As this exhausts the cases, $ \lim (s_n t_n) =0$.   Is this proof correct? What are some other ways of proving this?  Thanks!


How to uninstall a package installed from snapcraft?

I used this command line  sudo snap install pwgen-tyhicks   to install pwgen but I can't findout how to use it. So I want to uninstall it. How to  uninstall it?


zsh is in /usr/bin, but also in /bin, what is the difference?

The /etc/shells says it has zsh installed in /bin/zsh, but also in /usr/bin/zsh.  brgr@envy17:~$ cat /etc/shells  # /etc/shells: valid login shells /bin/sh /bin/dash /bin/bash /bin/rbash /usr/bin/tmux /usr/bin/screen /bin/zsh        <-- /usr/bin/zsh    <--   Now, the  suggests me to use the one from /usr/bin/.  My question is: why? What is the difference between these two and why is bash for example only intalled at one path (/bin/bash)?


I was looking at some different files in /proc, and observed some strange behavior. So, first of all, we know that symlinks [point to names, not files][1]. And when creating a symlink, I can both create a link to a file that doesn't exist, and I can create a link to a file and delete the file, as follows: $ touch foo $ touch bar $ ln -s foo link1 $ ln -s bar link2 $ ln -s doesnotexist link3 $ rm bar $ ls -l  gives lrwxrwxrwx 1 root root  0 Apr 30 15:05 foo lrwxrwxrwx 1 root root  3 Apr 30 15:05 link1 -> foo lrwxrwxrwx 1 root root  3 Apr 30 15:05 link2 -> bar lrwxrwxrwx 1 root root 12 Apr 30 15:05 link2 -> doesnotexist  albeit, with some funny coloring. However, when I go to the /proc interface things (not surprisingly) get weird. Let's say that I create my own program, called myprog. I call it, have it run in the background, and then find the pid. When checking the exe link, it shows my program. $ cd /proc/3762 $ ls -la  Gives the following (sorry, also not surprising) ... lrwxrwxrwx 1 root root  0 Apr 30 15:11 exe -> /home/user/myprog ...  However, what's actually interesting, is that when I move the file, the symlink follows it: $ mv ~/myprog ~/other $ ls -la ... lrwxrwxrwx 1 root root  3 Apr 30 15:05 exe -> /home/user/other ...  What? Why did the symlink follow that file? I tried deleting the file, and in some cases got a .nfsXXX file that I couldn't remove, but in other cases, get a exe -> /dir/to/prog (deleted). Is there a way to force a symlink to track a file, rather than a path? Or, as I presume, is it some built in behavior to the procfs? If so, is that documented somewhere?


material preview is not showing any colors and just being gray

I recently downloaded blender 2.91.0 I did a little lightsaber and, when I go to material preview, it just becomes all grayed out, and when I add a new material the color of the material doesn't change screenshot:


How to vertical center floating elements with height in percentage?

I have a bunch of .item(s) that are floating left. Each of these elements have 12.5% defined in height.  How do I vertically center these elements to a 100% parent height div?  I've tried with the "classic" top: 50%, transform: translateY(-50%) approach, but noone of the floating elements appear (they render with 0px height).

 ...etc

   CSS  .centered-container {   position: absolute;   top: 0;   left: 0;   width: 100%;   height: 100%; }  .centered {   position: absolute;   top: 50%;   transform: translateY(-50%);   width: 100%;   border: 1px solid red; }  .item {   float: left;   width: calc(100% / 4);   height: 12.5%;   background-color: green;   z-index: 99999;    &:nth-child(2n)   {     background-color: brown;   }   &:nth-child(3n)   {     background-color: yellow;   } }


What drives Ferengi to work so hard for money given that the technology required in a post-scarcity society is available?

Given the availability of replicators, why are Ferengis so hard up for money? What drives them to continue to work so hard for money when they don't have to?   When it comes to humans, many would retire once they have enough money. Financial freedom and early retirement is a dream for almost all humans I know today.


history/log of command-lines executed to launch processes(pid)

Given a certain PID, is it possible to discover what command-line executed this process?   top, atop, ps provide real time informations, I'm looking for something whereby I can look the past, because I've seen a process taking many resources of the machine, I've killed it, but now I want to know more about it


Does a bijective function $f:\Bbb{R^n}\rightarrow\Bbb{R} , n\in\Bbb{N}/\{1\}$ exist?

I have noticed that in order to describe 3-dimensional space you need at least three variables in every Koordinate-System. My question is whether it is possible to assign every single point in n-dimensional space a unique number - in other words whether any bijective function $f:\Bbb{R^n}\rightarrow\Bbb{R} , n\in\Bbb{N}/\{1\}$ exists. If $f$ does exist - what would it look like - and if it doesnt - how would you prove it?


Ubuntu 12.04 repeatedly freezes (have experienced thrice in one hour)

I am having this problem from the time. I have installed Ubuntu 12.04. It is installed inside Windows, I don't know if the problem is related to that.  I am experiencing this sudden freezing/hanging, especially when I am using Firefox. When it freezes no Ctrl + Alt + F1  will work and no Ctrl + SysRq works. This is becoming a very bad problem for me.  Please help me solve this. I believe if I keep on directly restarting the computer, my computer may get damaged any time.


Would this be the correct way to add a timer switch to an existing fan with thermostat?

We have an existing 120V AC exhaust fan wired to simple inline attic fan style thermostat.  We would like to add a timer switch so the fan could be manually turned on as needed.  Would this be the correct way to add a timer switch?    This is the sort of timer switch we are looking to add:


How long human can survive with just drinking water everyday

Can humans live without eating food, just by drinking water?  How long can we survive just by drinking water everyday?


Hypothesis testing with the geometric distribution for dummies

I'm new to stats and I need some help. Can anybody tell me, in the most "beginner friendly" way, how to perform hypothesis testing with a geometric distribution for 2 samples? please take into account that, until a month ago, Statistics for me was mean, mode and std dev...


Finite order of an element $f(g)$ of a homomorphism $f$

Let $G$ and $K$ be groups and $f:G\rightarrow K$ be a group   homomorphism. Suppose $g\in G$ has finite order $n$. Prove that   $\mathrm{ord}(f(g))$ is finite and divides $n$.   How can I fix this proof?  We know $g^n=e$. Since $f$ is a homomorphism, then $[f(g)]^n = f(g^n)=f(e)=e$. Let $k\mid n$ and $j\mid n$. Then we can choose the smallest $k$ such that $[f(g)^k]^j=[f(g)]^n$. Thus, $\mathrm{ord}(f(g))=k$ where $k\mid n$.  This logic seems shaky. How can I improve it? Thanks!


How to make a video responsive using the Media:vimeo and Media:youtube modules?  I read somewhere to add some css:  .file-video-vimeo{   padding-top:56.25%; /*16:9 aspect ratio*/   position:relative; }  .media-vimeo-video{   position:absolute;   top:0;   left:0;   right:0;   bottom:0; }   ..and to set both width and height to 100% in the video display settings.  However, this does not work for me, it does not show full width of its container.  I see in my page html that for the vimeo player, vp-player-layout js-playerLayout  has   left: 40px;     right: 40px;     top: 0px;     bottom: 0px;   Why is this? This causes the video not to be the full width.


Reading from a file(.dat) doing calculations then outputting into a new file

I need to read the marks.dat file and output that file onto the screen.  marks.dat  23468555 88 55 67 55223344 45 90 78 32321111 67 89 73 77001234 79 59 99 21324354 62 84 88 40450765 34 45 56 26726826 93 69 71 30917823 57 65 80 54277888 87 77 55  The 8-digit number represents the student number and the following 3 2-digit numbers represent the assignment marks, calculate the average of the 3 that contributes 40% of the year mark, find the highest mark that contributes 60% of the year mark, then output the student number, followed by the average, followed by the year mark, i.e  yearmark.dat  23468555 70.00 80.80  The average and year mark should be of type double and display only 2 digits after the decimal, then output to the file and display the contents on the screen.  The problem I have is that trying to output the double of the 8-digit number outputs 234686e+007, however if its int, it then outputs correctly.  Would also like to see how you would tackle this problem.  Would you try to create an array to insert the contents of the file, was thinking 2-d, first student number then the marks in the second dimension?


Two files with same coordinate systems should overlap but don't

I'm a complete beginner and I have been trying to solve this problem for hours now without success. I know there are other questions like this one and I've tried to apply the answers to my problem, but just don't seem to be working. So I have a TIFF file which is a map of my country and a shapefile which contains coordinates. Both files are in the same coordinate system - MGI 1901 Slovene National Grid, but they just don't overlap in ArcMap. I tried Project and Define projection tools to try and change the coordinate system of the shapefile with my coordinates, but nothing works. If it helps - in QGIS they overlap perfectly without any kind of manipulation beforehand. Does anyone have any idea of what else I can try?


A few minutes ago, while trying to post a question on , I was shown the dreaded error "You can only post once every 40 minutes"    According to , my last post for any Stack Exchange site was made  on Ask Different, while my last post on UX was from .    My only activity within the last four hours has been submitting two edits to existing posts, and accepting an answer on Anime & Manga.  Why am I being rate-limited when my last post was 15 hours ago?    Edit: I tried re-submitting my post on UX just after submitting this post on Meta SE. Strangely enough, Despite posting on Meta SE a few minutes prior, my post went through this time.  This leads me to believe there is some related issue here where posts on my high-rep account don't count towards the limit, but posts by different users on the same IP address do count.


How to switch between low latency and generic kernels?

I have installed a low latency kernel to help Ardour's performance while recording audio. On boot-up, it appears I can select which 'version' of Ubuntu I want; the two choices are 'Ubuntu' and 'Ubuntu low-latency'. However, when I run uname -r with either one, I get 3.14.0-031400-lowlatency.   Why the separate boot up options if 'Ubuntu' is the same as 'Ubuntu low-latency'? Is there a way to actually boot-up with the generic kernel? Is there a reason to, or are there drawbacks from using the low latency kernel while doing my day-to-day tasks?


I have a question. If I am quoting a quote which has square brackets in it already, but I want to add square brackets because there are spelling mistakes so I want to add "[sic]". Do I just add it to the quote or do I change the square brackets in the quote?


yellow screen issue with Dell Latitude 5498

I have newest Latitude 5490 with 8th gen i7 and 16gb of RAM.  The screen of my laptop is little bit yellowish in comparison to my previous laptop (Latitude 5480).  I have updated all the drivers and tried all the conventional methods available on YouTube like :   setting different RGB in color management I have tried selecting sRGB2.1 profile. changing color setting in Intel Graphic control like contrast , hue options.   but none worked.  can anyone help me please.


What actually happens when an Amiibo levels up and what causes it to level up?


I am trying to add linebreaks in my table cell but found that LyX doesn't allow me to. How can I insert a newline inside a table cell?


Animated film about a society's offering for gods

I watched this film on Cartoon Network India sometime between 2005-10.   The society, situated amidst a jungle of sorts, has a recurring ritual to offer their produce to the god(s). It is very taxing on them but still they decide to do it due to fear of divine vengeance.   A teen girl refuses to accept it as a way of life and questions the whole enterprise. The rest of the story, IIRC, is about the tumultuous fight of girl vs god. There might even be human sacrifice involved but I'm not sure about that. The whole thing was CGI, no traditional animation. I recall a fight between the girl and a giant basilisk(?) near the end.  I looked up programming of CN India and other CN channels as well on Wikipedia and this movie failed to show up. Since I watched the Hindi dub, I'm not sure what the original language of the film was.   It'd be great if somebody could help me remember what it was.


What exactly is the difference between a parametric and non-parametric model?

I am confused with the definition of non-parametric model after reading this link  and .   Originally I thought "parametric vs non-parametric" means if we have distribution assumptions on the model (similar to parametric or non-parametric hypothesis testing). But both of the resources claim "parametric vs non-parametric" can be determined by if number of parameters in the model is depending on number of rows in the data matrix.  For kernel density estimation (non-parametric) such a definition can be applied. But under this definition how can a neural network be a non-parametric model, as the number of parameters in the model is depending on the neural network structure and not on the number of rows in the data matrix?  What exactly is the difference between parametric and a non-parametric model?


Undefined refference using inheritance and templates in C++

I can't make this code to compile due to an undefined reference error. The classes were more complex, but I took out the rest and its still not compiling.  I believe the problem is when trying to create a class based on a template, with new and my implementation class of that template... I really appreciate any help, cause I've lost like two hours with this.  Here is the code.  /*   the main.cpp file */      int main() {         // this is the line that triggers the error: "undefined reference to `ListaImp<int>::ListaImp()"         TADLista<int> * list = new ListaImp<int>;  // this is the one        list->Vacia();        return 0;     }     /* TEMPLATE CLASS */  #ifndef TADLISTA_H_ #define TADLISTA_H_  template<class T> class TADLista {   public:     virtual ~TADLista(){}     virtual void Vacia()=0; };   #endif /* TADLISTA_H_ */     /*  CLASS LISTAIMP  */   #ifndef LISTAIMP_H_  #define LISTAIMP_H_   #include "TADLista.h"   template<class T>  class ListaImp: public TADLista<T> {     public:      ListaImp();     ~ListaImp();      void Vacia();  }; #endif /* LISTAIMP_H_ */   /* THE CPP FILE */  #include "ListaImp.h"  #define NULL 0  template<class T> ListaImp<T>::ListaImp() {}  template<class T> ListaImp<T>::~ListaImp() {}  template <class T> void ListaImp<T>::Vacia(){return true;}


Missing Numbers in Bibliography using TikzPoster

When printing references in a block only the first reference number is printed, whereas all subsequent citations are printed without their number. (MWE below)  This seems to be exactly the same problem as in the following question, which was resolved a few years ago:   The problem at the time was traced back to a center environment somewhere in TikzPoster. I think the problematic environment was removed in later versions. Unfortunately, I don't know where to look this up myself. Does anyone know if they recently changed it back to include the center environment? Everything worked fine for me during another project earlier this year.  I would be very happy if someone could suggest a workaround to fix this. Or if it's only a problem for me, help me figure out where things go wrong.  The following MWE for me reproduces the error described above (using backend=biber and compiling with LuaLaTex)  \documentclass{tikzposter}  \usepackage[backend=biber,style=numeric]{biblatex} \addbibresource{biblatex-examples.bib}  \begin{document}  \block{Block 1}{     Lorem ipsum \cite{ctan,companion} and \cite{aristotle:physics} }  \block{References}{     \printbibliography[heading=none] }  \end{document}


Where should I save my image files for LaTeX?

In order to insert an image in LaTeX, I do as follows, but I get an error telling that the file 'me.jpg' is not found.  Where should I save my image files to do this?   \documentclass{article} \usepackage{graphicx} \begin{document} \begin{figure}[h]    \centering   \includegraphics[width=0.2\textwidth]{me.jpg}   \caption{Some figure} \end{figure} \end{document}


Past participle after noun: "proposed cost" vs. "cost proposed"

I have the following two examples:        Our proposed cost is expensive.   Our cost proposed is expensive.      Is there any difference between them? Or is the second sentence wrong?


"Black marker" effect in the text (sanitization used to hide passwords in code example)

I wonder if there is any LaTeX library that allows me to obtain a sanitization "black marker" effect in order to conceal omissis information, like for example a secret code in an URL or a password in a code listing.  Please have a look at this to get the idea of what I wish to obtain:  and   Any ideas?


If so what is the new maximum size of a boot(blueray) cd? Please explain the differences between boot cds and boot blueray cds if possible.  If this is not possible please explain why.


Gre sub math score is low...Should I send to schools that strongly recommend ?

I got pretty bad Gre sub score,which is 51%. I am applying a couple of graduate programs in math, but most of them are masters. So should I send my Gre sub score to those who strongly recommend it ?(but not required) My other information:I come from a pretty good public schools, but not famous for math, GPA is 3.67, two REUs, and I guess my three letters are good.   Thanks !


How to combine two objects? Blending a face into an apple?

I'm trying to add two objects together, one being a face and the other being an apple. I have it all lined up so I can put them together but I can't edit more than one object at once to do so. Is there any way I can edit these both at the same time or combine them into the same object?


how do you make the top of a cylinder round and the bottom a hexagon

i was trying to make the glass shown in the picture but i dont know how to make the top of a cylinder round and the bottom a hexagon, can someone provide me a solution?


How to install Blender from the official website

I installed Blender from official Ubuntu repository but its version is always behind the version available from the official Blender website.  I'm aware that I can launch the program within the downloaded folder, but i want to replace the install version with a new version downloaded from the website?   It must be present in the unity launcher.  I'm also aware of the available PPA's that are available, however I just want to install Blender manually.  Thanks in advance


Prove that $(\Bbb{R},+)$ is isomorphic to $(\Bbb{C},+)$.   I don't know how to proceed in this question. On doing a customary internet search, I found that this can be proven using Axiom of Choice. Does there not exist an explicit isomorphism?


I read a book or series of books around 1992, and these are the things I can remember   if it's a single book it is very long, otherwise could be a series; I'm pretty sure the protagonist was a young boy; the protagonist had to collect a number of objects which were circles with a cross through the middle; the objects were all similar in appearance but were made of wood, iron, etc. ; one of the objects was somehow related to water and found on a viking ship; there was a cyclic event of "dark forces" that the protagonist needed to combat; and the year the book began there was a particularly harsh winter and this was associated with the activities of the "dark forces".


Random down voting of questions on Stack Overflow

I posted a question on Stack Overflow and got a down vote.  What I don't understand is the reason for down vote.  Here is my post:    Does random down voting with out a justification help the community at all?


I want users to be able to post an icon/symbol (in example: ❤) in a form in HTML. After getting back the input in PHP, the symbol still exists. Where it goes wrong is when I put in into the database, then it converts into some weird symbols. I know it is not a problem in the database, since I am able to input the icons into the database using a Minecraft Plugin. There I added basically ?useUnicode=true&characterEncoding=UTF-8 to the URI and it worked. How is this possible to do using PHP? I use the following code for the connection: $conn = new mysqli($servername, $username, $password, $dbname);  Thanks!


Extending Knuth up-arrow/hyperoperations to non-positive values

So... I had the silly idea to extend Knuth's up-arrow notation so that it included zero and negative arrows. It is normally defined as $$\begin{align*} a \uparrow b & = a^b \\ a \uparrow^n b & = \underbrace{a \uparrow^{n - 1} (a \uparrow^{n - 1} (\dots(a \uparrow^{n - 1} a) \dots ))}_{b\text{ copies of } a} \end{align*}$$ so, basically the hyperoperation sequence starting from exponentiation. For now, I will only consider $a,b > 0$.  If we try to go backwards from $a \uparrow b$, the "trivial" extension (letting down arrows represent negative up arrows, because why the heck not) is: $$\begin{align*} a \;b & = a \cdot b \\ a \downarrow b & = a + b \\ a \downarrow \downarrow b & = \text{see below} \end{align*} \\ \vdots$$ But I had trouble coming up with an expression for $a \downarrow \downarrow \downarrow b$.  Maybe it doesn't exist. Alternatively, maybe there is a way of defining $a \; b$ (zero arrows) such that it does exist. So my question is: Is there an extension of Knuth's up-arrow notation such that $a \downarrow^n b$ exists for all $n \geq 3$?  Edit: Welp, I messed this question up. I initially thought $a \downarrow \downarrow b = a + 1$ was correct, but it is actually $b + 1$. So I thought I had an example of an extension when I did not. I have modified the question accordingly.  An extension would define $a \uparrow^n b$ for each $n \leq 0$ which satisfies the recursive definition of the notation.    Edit 2: Okay, turns out $a \downarrow \downarrow b = b + 1$ isn't correct either, as this would imply $a \downarrow b = a + b - 1$. For example, $4 \downarrow 3 = 4 \downarrow \downarrow (4 \downarrow \downarrow 4) = 4 \downarrow \downarrow (4 + 1) = (4 + 1) + 1 = 6 = 4 + 3 - 1$. But it is really close; perhaps we need an exception, such as $$\begin{align*} a \downarrow \downarrow b = \begin{cases}b + 1 & \text{if } a < b \\ b + 2 & \text{if } a = b \end{cases}\end{align*}.$$ The case $a > b$ does not show up when evaluating $a \downarrow b$, but it will be need to be defined if we try to extend further to $a \downarrow \downarrow \downarrow b$. For instance, we could abuse the fact that the case $a > b$ is allowed to be anything, and let $$a \downarrow \downarrow b = b + 1 + \left\lfloor \frac{a}{b} \right\rfloor,$$ but finding $a \downarrow \downarrow \downarrow b$ may be intractable as a result.


Payed off a vehicle and my ex has posession yet never payed me to sign off on title what can i do

Paid off a 2003 gmc Yukon in july, low and behold a month later my girlfriend of 2 1/2 years leaves me for another woman. took the vehicle that I have invested approximately 10,000$ between repairs and payments. I made the mistake of putting her name on the title. I have asked repeatedly for 3500$ and I would sign off on the vehicle. no attempt has been made to pay me for anything. always excuse after excuse. would it be wise to take to small claims to obtain the vehicle that I paid for that she has possession of?? the total cost of the vehicle was 7600$ then I put approximately 3000$ into repairs all over the vehicle to keep it in good running condidition with proof of repairs done out of a shop. will not pay insurance or license plate tags and is letting her now Wife drive the vehicle that she is uninsured on. I am still paying insurance on the vehicle cause I do not want anything to happen to me if the vehicle is wrecked. but with her wife driving the vehicle illegally how can I get the vehicle back. knowing I will never see the 3500$ wether or not I take her to court. need to know what options I have in this matter. local police will not help me. can I have it towed to my house and disable it til I see some money??? what can I do. theres no getting along anymore yet its all excuses and saying its her vehicle. yet I am listed first on the title and I have made 95% of the payments through a buy here pay here dealer with proof of payment. she had no legitimate job to pay for the vehicle so there is no income from her that proves she made any payments on the vehicle. PLEASE HELP!!!!


I want to validate all email inputs on my app with regex. But there is a problem, all the regex I have found allow emails with no TLD. I want a regex that can help me reject emails such as testing@testing,   Examples:    testing@testing.com should be valid testing@testing.co.us should be valid testing@testing should not be valid   The current regex I use is :  ^([a-zA-Z0-9_-.]+)@(([[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.)|(([a-zA-Z0-9-]+.)+))([a-zA-Z]{2,4}|[0-9]{1,3})$  But it accepts testing@testing for example, and that is not what I want. How would I go about validating emails and rejecting ones without TLD


Does a transfer in a Schengen country airport count as time in that country for US Travel restriction?

I'm due to fly from the UK with IcelandAir, from Glasgow, via Reykjavik in Iceland (a Schengen country) on 30th March, to Florida. The stop-over in Iceland is approx 2.5 hours.  Does anyone know if this would count as time in a Schengen country (even though I won't leave the airport)?  IcelandAir's website states "You are affected by the travel restrictions if you have been in a Schengen country at any point in the 14 days before your planned entry date to the US."  Do you think the airport connection means I will have been in a Schengen country in the 14 days before"?  I realise the word before is ambiguous because it may not apply to the current day.  Any comments welcome.


Is a contraction idempotent operator self-adjoint?  In the other words, if $T:H\to H$ is a bounded linear operator such that $||T||\leq1$ and $T^{2}=T$, can we conclude $T=T^*$?


What's a word for someone who likes and praises in front of others, but isn't that way normally to you?

What do you call that phony person who favours and compliments you in front other people, such as your friends or family, but in general they normally aren't that way to you? They could be aloof and grim even without the company of these people.   I'm guessing "two-faced" or "phony" would seem the appropriate terms here, but is there something more specific and/or more suited?