How do I motivate players to do character sheet updates outside of session?

I run a weekly campaign with one session every Sunday. My core group (4-5 people) always show up, with the occasional person who joins from time to time (either playing a new character they wanted to test, or playing NPC's/monsters/etc). This composition works great for us.  Generally I have been holding experience until the end of the session and awarding it in bulk at the end of the session, which then levels people up afterwards (this was generally done to save time, keep people focused, etc). However what I am finding is that they typically walk away form the session and forget to level their characters (after having added the exp/etc). This has been leading to one of two situations.  (Please also note: I do this for a number of other things such as saying mundane items/common items are always available when inside a city, so please purchase them outside of campaign — again, to keep things moving at a brisk pace.)   They remember when they come back, and proceed to level their character at the start of the next session (effectively delaying the start). They totally forget and only remember when they have something reminding them (similar to: wait, shouldn't I be level X?)   This means that it doesn't end up saving time. Session time is generally flexible, however I would rather use flexible time to do more campaign rather than updating characters/etc. I'd rather it was done outside of the campaign's time-slot so that we can play more.  My question: How do I motivate players to take care of their characters outside of the campaign's sessions, so as to not slow down the actual campaign? (e.g. leveling, healing, buying mundane items, etc)  It is worth noting that I am not giving the players additional work. Just simply the basic requirements to be able to play the game (e.g. updating their character as required).  My only thoughts so far would be to give Inspiration at the start of session for anyone who does not slow the campaign by having to level during a session, or by giving some sort of reward in the campaign (for instance, maybe if everyone was ready for the next session, I'll give them an extra 100gp per person as a reward in the dungeon).  I have already seen , but it is more focused on additional outside work (homework), while character sheets (or other required mechanics/etc.) are much closer tied with just being able to play the game in general.


I am getting the following SqlException on calling a stored procedure:     Attempt to fetch logical page (5:65424) in database 2 failed. It belongs to allocation unit 7349876362857938944 not to 4899918190390149120.      System.Data.SqlClient.SqlException occurred   Message="Attempt to fetch logical page (5:65424) in database 2 failed. It belongs to allocation unit 7349876362857938944 not to 4899918190390149120.        Source=".Net SqlClient Data Provider"   ErrorCode=-2146232060   Class=21   LineNumber=257   Number=605   Procedure="ispDisplayCount"   Server="10.10.1.1"   State=3   What does this exception mean? Is there any resolution to the above issue?  Although the database referenced in the error above indicates tempdb, similar errors referencing Message 605, may be fixed using the answers below.      Msg 605, Level 21, State 3, Line 1   Attempt to fetch logical page (1:8687634) in database 7 failed. It belongs to allocation unit 72057594364821504 not to 72057594052476928.


Find the condition in which $\angle ADB = 3\angle BAC$

See below in acute triangle $ABC$, $D$ is on $AC$ such that $AD=BC$. $CF$ is the angle bisector of $\angle ACB$. $DE \parallel CF$. $E$ is on $AB$. $AE = CD$.  Prove that $\angle ABC = 2 \angle BAC$. In addition, find the condition in which $\angle ADB = 3 \angle BAC$  I struggle to find ways to use two conditions $AD = BC$ and $AE = CD$


How can I add ~ on top of a greek letter?  I have tried $\~\upsilon$ for example. For hat, I used \hat{\upsilon} in math mode.


Prove that a perfect square is either a multiple of $4$ or of the form $4q+1$.

Prove that a perfect square is either a multiple of $4$ or of the form $4q+1$ for some $q\in \mathbb{Z}$.  Any ideas on how to start? Do I use a proof by contraposition? Also what's the definition of a perfect square?


I am not very good at linear algebra.My problem is that I don't find any motivation to study it.Can you suggest me a good book for Basic Linear Algebra?? I have gone through the Book by Friedberg and the book by Hoffman and Kunze.I know both book are good but I lack motivation.Can you suggest a good book to study linear algebra from basic.I won't mind if the book teaches me the Linear Algebra from the abstract point of view that is using the rings and all the stuff from basic Abstract Algebra!!


Salesforce restrict custom object to create lookup field for Task object

I am currently developing an application in salesforce and my application requires that my custom object has a lookup field for Task object. Suddenly salesforce doesn't support this feature. What is the reason why salesforce restrict custom object to create lookup field?


Is the set of all $n\times n$ matrices, such that for a fixed matrix B  AB=BA, a subspace of the vector space of all $n\times n$ matrices?

Is the set of all $n\times n$ matrices, such that for any fixed matrix B AB=BA, a subspace of the vector space of all $n\times n$ matrices?   Alright, I understand the question and I know what I have to do, basically. I need to show that additive closure and multiplicative closure are satisfied. The problem is, I can't figure out how to do this generally. I tried playing around with $2\times 2$ matrices but that seemed like a dead end. Obviously two such matrices are the 0 matrix and the identity matrix, and those form a subspace, but that doesn't really tell me about all the matrices. Any ideas for how I should be tackling this? I feel like I'm not thinking generally enough.


Trying to double the size of a file fails

I'm trying to create a large random file on a ramdisk, in order to do some tests. I've created the ramdisk and my starting file (from /dev/urandom) without much trouble, but I'm having trouble increasing it's size (I was hoping I could just cat it into itself to double it up until the disk was full), and I'm unsure why. I'm hoping someone can tell me what I'm overlooking.  First, the file is definitely there:  $ ls -la /mnt/ramdisk/ramfile -rw-r--r-- 1 root root 163840 Nov 22 11:07 /mnt/ramdisk/ramfile   Second, I try to use cat to double it's size, which fails:  $ sudo -s "cat /mnt/ramdisk/ramfile >> /mnt/ramdisk/ramfile" /bin/bash: cat /mnt/ramdisk/ramfile >> /mnt/ramdisk/ramfile: No such file or directory   So I guess I'm misunderstanding something here, because I would expect that to work. I also tried catting the starting file twice to another file, but I got a similar error.  In case it's relevent, I created the file as follows:  sudo dd if=/dev/urandom of=/mnt/ramdisk/ramfile bs=16384 count=10   The reason I want to do this, I found urandom to be quite slow to read from (even on a massively overpowered server) and I want to ensure that the read speed from this random file isn't a bottleneck.  EDIT:  Versions-  GNU bash, version 4.3.11(1)-release (x86_64-pc-linux-gnu) cat (GNU coreutils) 8.21 Ubuntu 14.04 x86_64


Vertices of $G$ covered entirely by disjoint $k$-stars

Let $k \in \mathbb{N}$ with $k \geq 2$, and consider a bipartite graph with vertex classes $A,B$ such that $\mid B \mid = k\mid A \mid$. Using Hall's theorem on a suitable graph $G'$, show that if $ \mid N(S)\mid \geq k\mid S \mid$ for all $S \subseteq A$ then the vertices of $G$ can be covered entirely by disjoint $k$-stars (a $k$-star is a tree with $k+1$ vertices and $k$ leaves)


How to change the MATH and Text fonts for just a part of the document?

How can you change the font of MATH and Text of a section of your document?  Using the default packages (LaTeX) or system fonts (XeLaTex)?


How do I add multiple versions of a list (meaning I'm updating the list) to a list, without having all the lists within the list be exactly the same?

I'm having trouble getting the output I want. I want to create a list and have the first element of a new list be that initial list. Then I want to modify the first list, and have the new modified version of that list be the second element of the new list. Right now, this outputs [[2,3,4,5,5],[2,3,4,5,5]]. How would I modify it so that the output is [[1,2,3,4,5], [2,3,4,5,5]]?  noChange = [1,2,3,4,5] lotsOfLists = []  lotsOfLists += [noChange]  for i in range(4):     noChange[i] += 1 lotsOfLists += [noChange]   print(lotsOfLists) # current output: [[2, 3, 4, 5, 5], [2, 3, 4, 5, 5]] # WANT: [[1,2,3,4,5], [2,3,4,5,5]]


How to prevent notifications from a skype group?

I'm a member of a high-traffic skype group, which is often too much noise for me to concentrate with.  Can I prevent messages to the group from popping up as new notifications?


I have created the custom setting with the hierarchy type    I have added some fields to the custom settings  phone field is added to the custom settings  custom setting Name:Order_Configuration__c  Phone :12345 - one profile  phone:456798 - another profile   Is it possible to access the different values for different profiles in custom settings using apex trigger code


Improper integration involving complex analytic arguments

I am trying to evaluate the following:  $\displaystyle \int_{0}^{\infty} \frac{1}{1+x^a}dx$, where $a>1$ and $a \in \mathbb{R}$  Any help will be much appreciated.


If $R$ is a reduced Noetherian ring and $U \subset R$ is a multiplicatively closed set, how do we get $K(R[U^{-1}]) = K(R)[U^{-1}]$?   asks the same question I have but I don't see how the accepted answer answers the OP's question.  I got up to the point where we use the Chinese remainder theorem just like in the post, but do not see where to go from here. Can someone further elaborate the answer given? More specifically:  How do we have $(R/P_i)[U^{-1}]=R/P_i$ if $U \cap P_i=\emptyset$? How are we concluding $K(R[U^{-1}])=K(R)[U^{-1}]$?


Set the start orientation of the gyroscope to initial phone orientation

I am making a mobile VR project in Unity, and I have a 360-degree video that starts playing where I can look around using a VR headset.  I am trying to set the start rotation of the video to the same rotation as my phone. So no matter where I look when I start the video, that should be my start rotation. I used Input.gyro.attitude in the start but that did not fix my problem. I think I am using it wrong.  This is my code (on the camera inside the sphere):  using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI;  public class Gyroscope : MonoBehaviour {     private bool gyroEnabled;     private Gyroscope gyro;     private GameObject cameraContainer; //A camera container for my main camera     private GameObject videoSphere; //The sphere my video is in     private Quaternion rot;      private void Start()     {         videoSphere = GameObject.FindGameObjectWithTag("Video");         cameraContainer = new GameObject("Camera Container");          gyroEnabled = EnableGyro();          cameraContainer.transform.position = transform.position; // put the cameracontainer into the sphere         cameraContainer.transform.rotation = Input.gyro.attitude; // here I want to set the cameracontainer to the rotation of my phones gyroscope          transform.SetParent(cameraContainer.transform); // make my main camera a child of the camera Container          videoSphere.transform.localRotation = cameraContainer.transform.rotation; // Here I wanted to set my sphere rotation to the camera rotation         Debug.Log(videoSphere.transform.localRotation);     }      private bool EnableGyro()     {         if (SystemInfo.supportsGyroscope)         {             Input.gyro.enabled = true; // turn on my gyroscope              cameraContainer.transform.rotation = new Quaternion(0, 90, -90, 0); // rotate my camera container so the video shows good             rot = new Quaternion(0, 0, 1, 0); // set the variable rot so that you can turn your device             return true;         }         return false;     }      private void Update()     {         if (gyroEnabled)         {             transform.localRotation = Input.gyro.attitude * rot; //this makes you turn the device and it recognizes the input of the phones gyroscope                 }     } }


Connection between Fourier transform and Taylor series

Both  and  are means to represent functions in a different form.   What is the connection between these two? Is there a way to get from one to the other (and back again)? Is there an overall, connecting (geometric?) intuition?


Saving Photoshop multilayer file to PDF without layers size difference

Why is it that when I save a file that has many, many layers to a PDF without layers as a copy that the file size is larger than flattening the layers and then saving the file as a copy to PDF? 19Mb vs. 5Mb?? Wouldn't saving a file without layers be the same as flattening the layers and then saving the file?? Can anyone explain this?


Why are the shortest distances in Euclidean geometry not taxicab?

I am of course well aware that distances in Euclidean geometry are calculated from the Pythagorean theorem. This is more of a conceptual question. My question may also be formulated as follows: If we approach the diagonal of a square (of side length 1) with a set of segments parallel to the sides, to total length of this set of segments is 2 (= taxicab distance), no matter the number of segments. If the number of segments tends towards infinity, the total length is still 2, but the set of segments looks like the diagonal of the square (whose length is $\sqrt{2}$). What is it about our world and Euclidean geometry that makes taxicab distance not the shortest distance? Sorry if what I'm saying is not strictly correct, I hope you can still understand what I mean :)


In Maya if we have an object selected and we press F then the object is brought into focus and if no object is selected then all the objects in the scene are brought into focus.  How can this be done in Blender?


In a competition that i have recently taken part in, one of this questions popped out: $2^{29}$ has nine distinct digits. Find the digit that is not in the sequence. My answer will be placed as a 'Answer-your-question'.  However, my main question is: are there other methods?


Create Generic method constraining T to an Enum

I'm building a function to extend the Enum.Parse concept that  Allows a default value to be parsed in case that an Enum value is not found Is case insensitive  So I wrote the following: public static T GetEnumFromString<T>(string value, T defaultValue) where T : Enum {     if (string.IsNullOrEmpty(value)) return defaultValue;     foreach (T item in Enum.GetValues(typeof(T)))     {         if (item.ToString().ToLower().Equals(value.Trim().ToLower())) return item;     }     return defaultValue; }  I am getting a Error Constraint cannot be special class System.Enum. Fair enough, but is there a workaround to allow a Generic Enum, or am I going to have to mimic the Parse function and pass a type as an attribute, which forces the ugly boxing requirement to your code. EDIT All suggestions below have been greatly appreciated, thanks. Have settled on (I've left the loop to maintain case insensitivity - I am using this when parsing XML) public static class EnumUtils {     public static T ParseEnum<T>(string value, T defaultValue) where T : struct, IConvertible     {         if (!typeof(T).IsEnum) throw new ArgumentException("T must be an enumerated type");         if (string.IsNullOrEmpty(value)) return defaultValue;          foreach (T item in Enum.GetValues(typeof(T)))         {             if (item.ToString().ToLower().Equals(value.Trim().ToLower())) return item;         }         return defaultValue;     } }  EDIT: (16th Feb 2015) Christopher Currens has posted  below, which is well worth a look, and an upvote. I will remove this edit if the solution bubbles further up the page. EDIT 2: (13th Apr 2021) As this has now been addressed, and supported, since C# 7.3, I have changed the accepted answer, though full perusal of the top answers is worth it for academic, and historical, interest :)


remove write protection for sd card in windows 7

i have some SD cards that them write protection buttons are lost. each time i connecting these cards to my PC and want to copy some files to that, windows shows write protection message. I'm seeking for a software fix that permanently fix write protection problem. is there any way to remove write protection from my SD cards?


Is there a word or phrase for an insult that is presented as "I would never call" which is a meaningless denial in context?

This question has been closed as a duplicate because it has an answer elsewhere, but anyone who wishes to write a new answer is most welcome to post it under the original question, possibly referencing this question in your new answer to avoid any confusion.  I have heard some people insult others explicitly with the rider "I would never call" which is a meaningless denial in context because the person is effectively calling them that right then and there, as in  I would never call you a dull, idiotic bigot... I would never call my learned opponent fat, ugly and ignorant...  Alternate form kindly reminded by @Fattie in a :  "Many people have said she is XZY [insult] - but of course I'd never say that!"  This is often heard in a political context but also in personal interactions. Is there a word or phrase to describe this? Phrases I have considered and rejected: It is not a  insult or a  because the insult is not veiled/ qualified but explicit, and it is not a  because it is not a mitigated compliment or an insult with potential to carry a compliment, but is an outright, unmitigated insult. Update: Thanks to @Edwin Ashworth for marking as duplicate and pointing to the earlier question: of those 4 answers the word  seems very appropriate for this context based on the insulting political examples provided in the article linked:


The meaning of: "Why don't you just beat it?"

I would like to know what does this phrase means:     "Why don't you just beat it?"   My dictionary says only that: beat it: get lost Can you beat it? : Do you get it?


This question is different as it tackles the issue of converting a char to an int when adding to an integer array.   The following piece of code, I am trying to implement a string of integers into a int[] array in C#.  My desired output is an array of:  12345678910   This is my code, however, the output of this is not what I desire:  string numbers = "12345678910";  int[] array = new int[numbers.Length];  for (int i = 1; i <= numbers.Length; i++) {     array[i - 1] = numbers[i-1]; }  foreach(var y in array) {     Console.Write(y); }   Output of given code:  4950515253545556574948   Can somebode tell me why I am getting this output, and what I can do to fix this? Thank you!  Edit: Changed my code and it works using this:  for (int i = 0; i < numbers.Length; i++) {      array[i] = int.Parse(numbers[i].ToString()); }


Logistic function passing through two points?

Quick formulation of the problem: Given two points: $(x_l, y_l)$ and $(x_u, y_u)$ with: $x_l < x_u$ and $y_l < y_u$, and given lower asymptote=0 and higher asymptote=1, what's the logistic function that passes through the two points?  Explanatory image:   Other details: I'm given two points in the form of Pareto 90/10 (green in the example above) or 80/20 (blue in the example above), and I know that the upper bound is one and the lower bound is zero.  How do I get the formula of a sigmoid function (such as the logistic function) that has a lower asymptote on the left and higher asymptote on the right and passes via the two points?


How to use a void variable created in differnt package?

Hello, I am new to programming and would love to get some help. I am try to make a simple program in eclipse to work out few basic equations. I have made 2 packages,  "Equations", and "Workspace".  This is the class "quadraticEquation" in equations package.  package Equations; import java.util.*;  public class quadraticEquation {      //ax^2 + bx + c = 0      double a,b,c;     Scanner input= new Scanner(System.in);      void calculateQuadEq() {         System.out.println("Enter a");         a = input.nextDouble();          System.out.println("Enter b");         b = input.nextDouble();         System.out.println("Enter c");         c = input.nextDouble();          double z = Math.pow(b, 2) - (4*a*c);         if(z<0) {             System.out.println("This equation has no real roots");         } else if(z==0) {             double m = -b/(2*a);             System.out.println("There are 2 equal roots to this equation, " + m + " and " + m);         } else if(z>0) {             double m = (-b + (Math.pow(b, 2) - 4*a*c))/2*a;             double n = (-b - (Math.pow(b, 2) - 4 *a*c))/2*a;              System.out.println("There are 2 real roots to this equation, " + m + " and " + n);         }     } }   I am successfully able to run the variable calculateQuadEq in the same package (have tried) but when it comes to a different package, I am not able to. I tired importing the class file like this.    What can I do to achieve this?


Determining what process is bound to a port

I know that using the command:  lsof -i TCP    (or some variant of parameters with lsof) I can determine which process is bound to a particular port.  This is useful say if I'm trying to start something that wants to bind to 8080 and some else is already using that port, but I don't know what.  Is there an easy way to do this without using lsof?  I spend time working on many systems and lsof is often not installed.


Questions with long titles and no spaces in it show the scroll bars when displayed on the realtime questions page

When there is a long title, you have to scroll to see it:    I realise there isn't much of a solution, but it really breaks up the view of the page - so could overflow be hidden on these posts?


I'm trying to get a project running locally on Deepin. The project relies on node 6.10, I understand that it's an old version but it works. When the Dockerfile tries to run the sudo apt-get update, it gives the following error:  W: Failed to fetch http://deb.debian.org/debian/dists/jessie-updates/main/binary-amd64/Packages  404  Not Found [IP: 151.101.140.204 80]   The weird thing is that I just deployed it yesterday on a Macbook without such an issue. Any ideas?


Returning to search by tag from individual question

I noticed that I can't return to the search results by tag when viewing questions. I have to re-enter the search criteria each time.   Recreate as follows:    Go to question search by tag.  select tag(s) select one of the questions.  attempt to return to search results.    These actions return you back to the tag select page, not search results. This happens using the phones back button or on screen return button.


What's the safest way to turn left from a right-side bike lane?

(United States road configuration and customs here. Sorry, those of you who drive on the left!)  On my trip home, I use a bike lane near the right side of a very busy one-way arterial street; there is a bus/right-turn lane between the bike lane and the curb. I need to turn left, crossing three lanes of traffic, at a T-intersection (no street to the right). My options are:   Turn left directly from the bike lane. Keeping a weather eye on traffic, move into the left-hand lane and turn from there. Veer right onto the sidewalk (avoiding buses, obviously); wait for the pedestrian light to cross.   Which of these is the canonically correct way to manage, assuming heavy car traffic?


Remove duplicate value from array and pick one PHP

Array (     [0] => Array         (             [Access ID] => 12345             [Registration Date] => 2018-02-27             [First Name] => Damian             [Last Name] => Martin             [Flying Tour] =>          )      [1] => Array         (             [Access ID] => 12345             [Registration Date] => 2018-02-27             [First Name] => Damian             [Last Name] => Martin             [Flying Tour] => Yes going         )      [2] => Array         (             [Access ID] => 789456             [Registration Date] => 2018-03-27             [First Name] => Ricky             [Last Name] => Smith             [Flying Tour] =>          )      [3] => Array         (              [Access ID] => 789456             [Registration Date] => 2018-03-27             [First Name] => Ricky             [Last Name] => Smith             [Flying Tour] => Two way going         )      [4] => Array         (             [Access ID] => 987654             [Registration Date] => 2018-04-27             [First Name] => Darron             [Last Name] => Butt             [Flying Tour] =>          )  )  $results = [];       foreach($data as $input){        $isDuplicate = false;       foreach($results as $result){         if(             strtolower($input['First Name'])===strtolower($result['First Name']) &&             strtolower($input['Last Name'])===strtolower($result['Last Name'])      &&             strtolower($input['Registration ID'])===strtolower($result['Registration ID']) &&             strtolower(!empty($input['Flying Tour']))         ){             //a duplicate was found in results             $isDuplicate = true;             break;         }       }       //if no duplicate was found       if(!$isDuplicate) $results[]=$input; }   Finding duplicate value and remove one of them and pick one. It does work for all except flying tour condition adding that does not return right output.  This should return this. I don't know where i'm going wrong please guide thank you once again Oh here what i expect this should be   Array (     [0] => Array         (             [Access ID] => 12345             [Registration Date] => 2018-02-27             [First Name] => Damian             [Last Name] => Martin             [Flying Tour] => Yes going         )      [1] => Array         (             [Access ID] => 789456             [Registration Date] => 2018-03-27             [First Name] => Ricky             [Last Name] => Smith             [Flying Tour] => Two way going         )      [2] => Array         (             [Access ID] => 987654             [Registration Date] => 2018-04-27             [First Name] => Darron             [Last Name] => Butt             [Flying Tour] =>          )  )   Some changes are made please see


Using one method to set values of different variables loading by parameter

It is possible to write one method that can set value to different variables which are loaded by parameter?  I think something about like this:  void SetBooleanValue(bool myVariable, bool newValue) {     myVariable = newValue; }   and then use this like that:  bool isConnected = false; bool isFinished = true;  public ClassConstructor() {     SetBooleanValue(isConnected, true);     SetBooleanValue(isFinished, false); }   The problem is my method only gets value of isConnected and isFinished and can't modify original values of those variables.  How to get reference to them?


How to select the line with the max(date)?

the data looks as following:  id group date 1  a     2013-01-01 1  b     2014-01-01 2  a     2012-01-01 2  b     2013-01-01   My database is mysql, for each id, I need to select the line with max(date), I wrote the SQL as following:  select id,group, max(date) from table1 group by id;   But it does not work well.


If $G$ is a group, $H,K \leq G$, $K \subseteq H$, $\left[G:H\right]$ and $\left[H:K\right]$ both finite then...

If $G$ is a group, $H$ and $K$ both subgroups of $G$, $K \subseteq H$, $\left[G:H\right]$ and $\left[H:K\right]$ both finite then $\left[G:K\right]=\left[G:H\right]\cdot\left[ H:K \right].$   I am not sure if this is standard notation but $\left[ G : K \right]$ denotes the number of right or left cosets of $K$ in $G$.  I haven't tried to do the case where if $G$ is finite but I imagine the result would immediately follow by using Lagrange's Theorem. I am trying to think about the case where $G$ is infinite.  I at least made an example to show myself that the index $\left[ G: K \right]$ could be a finite number but $K$ could have size of infinity. Any leads?  Thanks very much


I just need to download ubuntu onto a disk. How do i do it? I can't seem to figure it out. I feel funny asking but I need help. Thanks!


How to cite work and make it not appear in references?

I'm using biblatex to cite and reference previous works, via the external file containing such references (the .bib).  When using APA, if I want to cite an author whose cited text contains another cite (a "second-hand" cite), I should only reference the work I've actually read, and not the other. However, if I use something like  ... there's some research done by \citeauthor{Tan00} \parencite[\citeyear{Tan00}, cited by][]{Vel13} that indicates ...   then I have to include both authors in the bib file, and so both appear in the "References" section.  Is there a way to use such notation and prevent the second-hand work from appearing in the references?  Thanks in advance.  P.S. Should I include a MWE?


The Structure of "They'll both be dead come winter."

While I was watching Game of Thrones, I encountered with the sentence below:     They'll both be dead come winter.   I am a little bit confused with the the usage of "come winter". Is this structure has a name? Is it formal? Can it be used in formal, written English?  I do not think I have encountered this structure before. Could you give another example to this structure?


Install gigabyte ATI Radeon™ HD 4670 in Ubuntu 20.04.1

I downloaded the Linux x86_64 file from the link below  and install but get this error  How can I use my graphics card in Ubuntu?


Why does putting baby oil on construction paper give the color a translucent effect?


Fan fiction where Harry Potter is wrongly sent to Azkaban

I'm looking for a fan fiction story where Harry Potter is wrongly sent to Azkaban for a crime he didn't do.   No one believes him except Fred and George, who at one point even tried to break into Azkaban themselves to free him. New evidence comes to light and Dumbledore tells everyone Harry is innocent and they bring Harry back to Grimmauld Place and he's basically Catatonic but eventually wakes up.   When he is back to being sane, Dumbledore immediately wants Harry to help stop Voldemort since he's the boy who lived, except Harry wants no part in this.  Fred and George take Harry to their shop in Diagon Alley where they live and help him out.  In this story Dumbledore is still alive and wants to immediately use Harry to stop Voldemort even though he has just spent all this time in Azkaban. Sirius is alive too.   Again a main part of this story is that Fred and George help Harry. They have belived in his innocence all this time and now that they were right they aren't very happy with Dumbledore and the order


What is the name of the book depicting the story of a boy who finds a settlement of various creatures on a tree?

I remember reading a story of a boy finding a settlement of various creatures on a tree. Some points which may help in figuring out the book are as follows.:   The book was in English. The title may contain "tree" or "willow". The story was at least 300 pages long and was directed for a young audience but was also a perfect adult read. I read it about ten years ago. I suppose that the settlement always experienced night. I think the settlement was lighted with lanterns. As the boy climbed the tree, he made new friends and finally reached the clouds.   I can be a little off in the details but would be grateful if someone could provide the nearest match to this story. One may clear any further doubts in the comments.


Can we meaningfully talk about the size of an elementary particle irrespective of its quantum state?

Elementary particles such as the electron are quantum mechanical fuzzy objects described by quantum states or wavefunctions. They are not classical billiard balls with some fixed radius. Can we assign a notion of a natural "size'' of the electron irrespective of the state it is in? The only length associated with the electron that I can think of is the Compton wavelength, $\frac{\hbar}{m_ec}$. But I am not sure if it will be proper to refer that as the size of the electron. I don't have a definite answer. Thanks.


Just upgraded to Ubuntu 18.04 and can't use compiz grid window resize commands?

I got used to splitting my application windows on monitor into 4 sides top-left, top-right, bottom-left, bottom-right with key combinations like Ctrl+Alt+Key3 and so on. It no longer works with Ubuntu 18.04. Is there any alternative for that with Ubuntu 18.04?


I use the grep command to search for a string in many files. Is there something similar to "search and replace"?


Deriving Newton's Third Law from homogeneity of Space

I am following the first volume of the course of theoretical physics by Landau. So, whatever I say below mainly talks regarding the first 2 chapters of Landau and the approach of deriving Newton's laws from Lagrangian principle supposing Hamilton's principle of extremum action. Please keep this view in mind while reading and answering my queries and kindly neglect the systems to which Action Principle is not applicable:  If we use homogeneity of space in Euler-Lagrange equations, we obtain a remarkable result i.e. the conservation of momentum for a closed system.  Now, this result, using the form of Lagrange for a closed system of particles, transforms into $ \Sigma F = 0 $ . Now, how from this can we conclude that the internal forces that particles exert come in equal and opposite pairs?  Is it because for 2 particles this comes out as $ F_{1} + F_{2} = 0 $ and we take the forces exerted by particles on one other to be independent of other particles (i.e. Superposition Principle) as an experimental fact?  I doubt it as whole of Newtonian Mechanics is derivable from Lagrangian Mechanics and supposed Symmetries. So, according to me, a fact like Newton's Third Law should be derivable from it without using an additional experimental fact.  I have an idea to prove it rigorously. Consider two particles $i$ and $j$. Let the force on $i$ by $j$ be $F_{ij}$ and on $j$ by $i$ be $k_{ij}F_{ij}$. Now the condition becomes $\Sigma (1+k_{ij})F_{ij}=0$ where the terms to be included and rejected in summation understood. As this must be true for any value of $F_{ij}$, we get $k_{ij}=-1$. I don't know if this argument or refinement of such an argument holds or not. I can see many questions arising in this argument and it's not very convincing to me.  I would like to hear from you people as to if it is an experimental result used or not? If not, then is the method given above right or wrong? If wrong, how can we prove it?  Addendum  My method of proof uses the fact of superposition of forces itself, so it is flawed. I have assumed that the coefficients $k_{ij}$ are constants and don't change in the influence of all other particles which is exactly what superposition principle says.  As the superposition of Forces can be derived by superposition of potential energies at a point in space and potential energy being more fundamental in Lagrangian Mechanics, I restate my question as follows:  Is the principle of superposition of potential energies by different sources at a point in space derivable from the inside of Lagrangian Mechanics or is it an experimental fact used in Lagrangian Mechanics?  I, now, doubt this to be derivable as the fundamental assumption about potential energy is only that it is a function of coordinates of particles and this function may or may not respect superposition.


In the book I'm writing there are some parts with math-mode spaces and math-mode inline spaces that are too excessive for me. The first and the second image that I am reporting are taken directly from the textbook that makes the idea of excessive spacing (see some annotates red arrows).  Real first image taken from my book    Real second image taken from my book    Here there is a compilable MWE that reproduces the similar problem. I was asking myself if the spacing is normal or if there is something that I should fix either in the text or in the preamble.  \documentclass[a4paper,12pt]{article} \usepackage[top=2.5cm,bottom=2.2cm,             left=3.2cm,right=1.5cm,headsep=10pt,             a4paper]{geometry}   \usepackage{amsmath,amssymb,mathrsfs} \usepackage{newtxtext,newtxmath} \showhyphens{matematica} \begin{document} \noindent Ovviamente deve essere $1-c^2>0$ e cioè $|c|<1$ perchè sia lecita la relazione \ldots. La costante arbitraria $c$ può avere segno qualsiasi; deve aversi cioè $\forall x\in ]a,b[, \,y'(x)=c/\sqrt{1-c^2}$ oppure $y'(x)=-c/\sqrt{1-c^2}$. Potrebbe essere $c=0$ compatibile solo con $y(a) = y(b)$, segmento parallelo all'asse $x$. Se $c\ne 0$, allora anche $c/\sqrt{1-c^2}\ne 0$, e dovendo $y'$ essere continua non può accadere che per certi $x\in ]a, b[$ valga il segno $+$ e per altri il segno $-$ (altrimenti $y'$ salterebbe senza assumere i valori intermedi fra $c/\sqrt{1-c^2}$ e $-c/\sqrt{1-c^2}$). Deve quindi valere $y'(x)=c/\sqrt{1-c^2}$ per ogni $x\in]a,b[$, oppure $y'(x)=-c/\sqrt{1-c^2}$ sempre per ogni $x\in]a,b[$: dato che $c$ è, come detto prima, costante di integrazione indeterminata, non si perde nulla a scrivere $y'(x)=c/\sqrt{1-c^2}$ qualunque sia $c$. Posto  $m=c/\sqrt{1-c^2}\in \mathbb{R}$, ed essendo $c$ variabile in $]-1,1[$ allora $m=c/\sqrt{1-c^2}$ assumerà tutti i valori reali. La soluzione generale dell'equazione di Eulero è $y(x)=mx+k$; dovendo essere $y(a)=\alpha$ ed $y(b)=\beta$ si ricava $ma+k=\alpha$ ed $mb+k=\beta$, da cui $m=(\beta-\alpha)/(b-a)$ e $k=\alpha-a(\beta-\alpha)/(b-a)$. Ma ci si poteva fermare una volta scoperto che $y'$ deve essere costante: questo prova che le uniche soluzioni sono segmenti di rette come il percorso più breve, e ce n'è uno solo che passa per due punti dati $(a,\alpha)$ e $(b,\beta)$, come ben sappiamo. La funzione integranda non dipende esplicitamente da $x$ quindi il funzionale è del tipo \[\mathscr{F}(y)=\int_{a}^{b}f(y,y')\,dx\] In questo caso l'equazione di Eulero-Lagrange   \[\frac d{dx} \frac{\partial f(y,y')}{\partial y'}-\frac{\partial f(y,y')}{\partial y}=0\] Se poi $y$ è di classe $\mathcal{C}^2$ in $[a,b]$ diventa, dalla \eqref{elfd2}, per il teorema di derivazione delle funzioni composte, \begin{equation}\label{edex} f_{y}(y,y')-f_{y'y}(y,y')y'-f_{y'y'}(y,y')y''=0 \end{equation} Moltiplicando la \eqref{edex} per $y'$, otteniamo l'equazione di Eulero-Lagrange è \[\dfrac d{dx}(f-y'\,f_{y'})=0.\] Infatti si ha \[\begin{split}\dfrac d{dx}(f-y'\,f_{y'})&=f_y\,y'+f_{y'}\,y''-y''\,f_{y'}-(y')^2\,f_{yy'}-y'\,y''\,f_{y'y'}=\\ &=y'(f_y-y'\,f_{yy'}-y''f_{y'y'})=y'\cdot 0=0.\end{split}\] \end{document}   The two outputs are:   and   For the users: see please the comments below.


How to kick somebody from an RDP session

I am trying to RDP into a machine, but it has exceeded its maximum number of users. How do I go about kicking one of them (assuming I have admin rights).


Prove existence of limit of $a_{n+1}=\frac12(a_n+\frac{\sigma}{a_n})$

Let $\sigma > 0$, $a_1>0$ and $a_{n+1}=\frac12(a_n+\frac{\sigma}{a_n})$ where n = 1, 2...  Prove that $\lim_{x\to \infty} a_n$ exists.    The idea that I had was to show that it is an increasing / decreasing sequence and bounded. Then I will use the Monotone Convergent Theorem to show that the sequence converges and hence the limit exists.  However as I did my first calculation of $a_2 - a_1$, I get $a_2 - a_1 = \frac{\sigma - a_1^2}{2a_1}$ . Does this mean that the I have to consider the various cases ($\sigma = a_1^2$, $\sigma>a_1^2$, $\sigma<a_1^2$)? Or am I approaching the question from the wrong direction?  Thanks in advance for the help!


Update query not taking integer variable ($user):- $user = $_POST["user"]; $user = (int)$user; $sql = "UPDATE users_meta     SET          `meta_value` = '$plan_end'     WHERE          `user_id` = $user AND          `meta_name` = 'plan_end'"; $conn->query($sql);  user_id column in mysql database is set to int datatype. When I simply put a number instead of the variable, it works:- WHERE      `user_id` = 37 AND ...  I also tried without converting the number from string to int, and its not working. I have a feeling that it has something to do with quotes, so I played around with it based on suggestions online, but none worked.


How to install Python and wxPython offline?

I could not install my modem driver so I have to update and install applications offline. For this I want to use keryx but to install keryx, Python and wxPython have to be installed first. So how do I install Python and wxPython offiline on Ubuntu 13.04?  Note : I don't have internet connection in Ubuntu. So I'll have to download the required file from my Windows 7.


Which component to use to play mp3 files from streams/files and also to know the lenght in seconds of that mp3 stream?


why square root of a positive number is positive?

We have $(+3)^2=(-3)^2=9$. But why do we define  $$\sqrt 9=+3?$$ Why $\sqrt9=-3$ is false?  Thank you


I am trying to find find the value of $\sum_{n=2}^{\infty}n{\frac1{2^{n-1}}}$  I started by substituting m=n-1 to get $\sum_{m=1}^{\infty}(m+1){\frac1{2^{m}}}$ but I am not sure where to go from here.


How can I set a return URL for an edit link in Visualforce?

I have a visualforce page displaying a list of Event objects that need users to update. I have an 'Update link' that takes them to the edit screen for the Event, but upon Save, it brings up the list page. I want to take them to their home page, where this list VF page is nested.  <apex:page sidebar="false" showHeader="fale" standardController="User" extensions="UsersEventsExt2">    <apex:pageBlock title="Meetings to Update">     <apex:pageBlockTable value="{!Events}" var="c">        <apex:column headerValue="Click to Update"><apex:outputLink value="{!URLFOR($Action.Event.Edit,c.id)}" target="_blank">Update Meeting</apex:outputLink></apex:column>         <apex:column headerValue="Subject"><apex:outputLink value="{!URLFOR($Action.Event.View,c.id)}" target="_blank">{!c.subject}</apex:outputLink></apex:column>         <     </apex:pageBlockTable>   </apex:pageBlock> </apex:page>   Thanks!


I have, not one but two microSD cards that my phone (Samsung Galaxy Young, Gingerbread OS) seem to have broken. One is 1GB and the other is 2GB. The 1GB one won't be formatted.  When I put the 1GB one into the computer the computer prompts for a formatting. I don't care for the content so I tried to format it, but to no avail; the format fails and I have no idea what to do to make it work again.  I tried using the SDformatter software, but it can't format the card as it is write protected. I'm googling to solve it but so far no success.  My computer OS is win7 if that's of any relevance.


Issue Sorted custom post by custom field in loop

I am working with wordpress where i have a sort listing by date. There is a custom field in my post called "value_event" which date format yyyy/mm/dd. Now i want to sort all posts by value_event. with this query_post command:  This is the code in template for custom post taxonomy-event-date.php     <?php    $args = array(   'post_status'       => 'publish',   'posts_per_page'    => 6,   'paged'             => $paged,   'meta_key'          => 'value_event',   'orderby'           => 'meta_value_num',   'order'             => 'ASC'   );   $query = new WP_Query( $args );   if ( $query->have_posts() ) {   while ( $query->have_posts() ) {   $query->the_post();?>   <?php the_title(); ?>   <?php                             }   }   wp_reset_query();  // Restore global post data stomped by the_post().   ?>    Functions          add_action('pre_get_posts','search_filter');         function search_filter($query){         if ( !is_admin() && $query->is_tax( 'event', 'date' ) ) {         $query->set('post_status', 'publish');         $query->set('meta_key', 'value_date');         $query->set('orderby', 'meta_value_num');         $query->set('order', 'ASC');     }     }


I have an android background . I want to learn XCode . Now i want to understand what does the Appdelegate.h and Appdelegate.m do?  As in Android Manifest.xml is the mainFile which launches other Activities . permissions, feature ,broadcast service etc are written in it.  Now can some one explain me the importance of AppDelegate file and explain its component and benefits ?  And where to include permission or Service or BroadCast in app.   I have created an app in Android . Now i am creating it in IPhone which requires permission and services...  Thanks in Advance..  Edit..  According to my study and knowledge. AppDelegate is a controller, it doesn't visually present data (a view) nor does it represent the actual data (a model) but it does determine what view controllers to show etc and manage other views (status bar etc) at the start of the application .it is the launcher class where the first class launches . it consist of some predefined function didFinishLauching and other functions. Is there any detail explanation.


Solve $\int_{0}^{\infty} \frac{x^{1/3}}{1+x^2}dx$ using residue calculus

I need to find the value of the following integral using residue calculus - $$I = \int_{0}^{\infty} \frac{x^{1/3}}{1+x^2}dx$$  I have used substitution to start with. Let $x = t^3$. Then $I $ changes to $$I = \int_{0}^{\infty} 3\frac{t^3}{1+t^6}dt$$  On further substitution, $u = t^2$, I get $$I = \frac{3}{2} \int_{0}^{\infty} \frac{u}{1+u^3}du $$ At this point I am stuck. Also, I do not have any good idea about the choice of contour. Any kind of help is appreciated.


When I try to install a .deb file it takes me to Ubuntu Software Center and doesn't install

I've downloaded the .deb file of the Brackets editor and tried to install it. It takes me to the Ubuntu Software Centre to install the file, then after the installation completes it shows the Install button, instead of showing the Launch and Remove buttons.   This happens every time I try to install a .deb file.  I'm running the latest Ubuntu 18.04.1 LTS update.


I've read and heard that quantum electrodynamics is more fundamental than maxwells equations. How do you go from quantum electrodynamics to Maxwell's equations?


I'm a LaTeX newbie. I want to create a page layout like in the picture below on every page.  Can someone help please? Thanks.


How to run command recursively on files within directory and sub-directories within?

How can I run the command below recursively on all directories and sub-directories within?  [someone@someones-pc ~]$ for i in *.mp4; do ffmpeg -i "$i" -i watermark.png -filter_complex "overlay=1623:25" /output/directory/"${i%.*}.mp4"; done   Right now the above command will only search for all .mp4's within the chosen directory and run the command(s) on them, however if I have another directory or deeper sub-directories containing more .mp4's this will not find them. How can I alter this command to run on other .mp4's that are also in other sub-directories and possibly even deeper within?    EDIT: (found this here on stackexchange)  How can this script be edited to work with my FFmpeg command above?  #!/bin/bash  WM=$HOME/public_html/image/catalog/logo-website/watermark.png  # This is the path to your watermark image SCALE=100                          # This sets the scale % of your watermark image STARTDIR="/home/whatever/images"   # This is the directory to start in  for imagedir in $( find $STARTDIR -type d ) do   echo "Running in $imagedir ..."   cd $imagedir   file -i * | grep image | awk -F':' '{ print $1 }' | while read IMAGE   do     echo "Watermarking $IMAGE"     composite -dissolve 40% -gravity SouthEast -quality 100 \( $WM -resize $SCALE% \) "$IMAGE" "$IMAGE"   done done


I am using QGIS3.4 and I am running into an unexpected problem. I have received a gdb file, the file looks fine in WGS 84 projection. But when I use any other, the polygons seems to be cut strangely.     Does anyone know how to solve this without changing the vector file with a different world map.


Looking for Minecraft 1.4.6 server mod to nerf creeper explosions

I'm running a private Feed-the-Beast MindCrack server for Minecraft 1.4.6.  I'm about to open the server to a friend who is inexperienced with Minecraft and I'm concerned about creeper damage.  Is there a server-side mod compatible with with Minecraft 1.4.6 & the MindCrack modpack which is able to nerf creeper explosions such that they do not break blocks?  Bukkit is not an option as it is not compatible with this modpack.


Prove Convergence using direct comparison test: $\sum^{\infty}_{k=0} a_k$ converges absolutely $\Rightarrow \sum^{\infty}_{k=0} a_k^2$ converges

$a_k$ with $k \in \mathbb{N_0}$ is a sequence. Prove using the direct comparison test: $\sum^{\infty}_{k=0} a_k$  converges absolutely $\Rightarrow \sum^{\infty}_{k=0} a_k^2$ converges  $|a_k| \leq |a_k^2| \leq |c_k|$ I have to find a $|c_k| \geq |a_k^2|$, which absolutely converges. Then following the direct comparison test $a_k^2$ will also converge absolutely. Let $c_k := a_k^3$. Then: $|a_k| \leq |a_k^2| \leq |a_k^3|$ But if I do this then I wouldn't have the proper structure: $\sum^{\infty}_{k=0} a_k$  converges absolutely $\Rightarrow $ ........$\Rightarrow\sum^{\infty}_{k=0} a_k^2$ converges My try was: $\sum^{\infty}_{k=0} a_k$  converges absolutely $\Rightarrow a_k$ is a null sequence $\Rightarrow$ ... How do I get from a lesser sequence to a bigger sequence? One way I could think of was that, if $a_k$ is a fracture, where the denominator > numerator, then $a_k \geq a_k^2$ . This would fit with the direct domparison test. So I'm not sure how to go on.


Will the buff cache in Linux affect physical memory, and you don't need to manually clean up the buff cache?

I use free -h see this:                total        used        free      shared  buff/cache   available Mem:           1.9G        1.2G        157M        4.8M        630M        635M Swap:          947M        256M        690M


scheduling events every n seconds in a single thread (python)

I have an array of events and their polling time like this. [{"A":5,"B":7,"C":9}]  So event A (some function) needs to be called every x seconds, in the above example A function needs to be called every 5th second from now (not just once, but keep on repeating)  and B function needs to be called every 7th second from now and so on.  At 35th second Both A and B would be called(considering function A and B returns almost instantaneously assume printf() )  Is there a standard algorithm for this?if not any pointers on how to achieve this?   something on this line,(doesnt work though)  import threading class A():     def A():         printf "A"     def B():         printf "B"     def __init__(self, *args, **kwargs):         self.iteration = 1     def execute(self,arr):         for key in arr[0]:             print key, arr[key]             t1 = threading.Timer(arr[key], key).start()             t2 = threading.Timer(arr[key], key).start()   A().execute([{"A":5,"B",7}])


I realize this may be a potentially broad question, but I was wondering whether there are assumptions that indicate the use of a GAM (Generalized additive model) over a GLM (Generalized linear model)? Someone recently told me that GAMs should only be used when I assume the data structure to be "additive", i.e. I expect additions of x to predict y. Another person pointed out that a GAM does a different type of regression analysis than a GLM, and that a GLM is preferred when linearity can be assumed. In the past I have been using a GAM for ecological data, e.g.:  continuous time-series when the data did not have a linear shape I had multiple x to predict my y that I thought to have some nonlinear interaction that I could visualize using "surface plots" together with a statistical test  I obviously don't have a great understanding of what a GAM does different than a GLM. I believe it's a valid statistical test, (and I see an increase in the use GAMs, at least in ecological journals), but I need to know better when its use is indicated over other regression analyses.


Is the sequence $\frac{\sum_{k=1}^{n} \frac{1}{k}}{\log n}$ convergent or divergent?

How should I decide if the following sequence is convergent or divergent?  $$a_n = \frac{\sum\limits_{k=1}^{n} \frac{1}{k}}{\log n}$$ I would appreciate any approach. Thanks.    I was misunderstood series and sequence so I edited the post accordingly.


I'm new to Ubuntu and I need to know how to install FL studio 12.03 step by step

hello I've tried to follow a couple of tutorials online but I'm just not getting anywhere. I have already installed all codecs and restricted extras. I know Wine is used but I'm not sure how to properly use it for what I need. FL studio is a Digital Audio Workstation.


So, since I've attended to the introduction to number theory course I couldn't stop thinking about this problem:  Prove that $\sqrt{2}$ is irrational using the Well Ordering Principle.  Ok, I started defining a set $X = \{ x = z \sqrt{2}; z \in \mathbb{Z} \}$ and supposing that there exists an $a \in \mathbb{Z}$ such that $a < x$, $\forall x \in X$. Hence, there exists an $x' \in X$ such that $ x' \leq x$, $\forall x \in X$.  And that's when I can't proceed further. Is there a problem in the way I've defined the set or it is just a "leap" that I'm not seeing?  Thanks in advance.


If a word comes with 'a' or 'an', does it mean it's a countable noun?

The indefinite article of English takes the two forms a and an. Semantically, they can be regarded as meaning "one", usually without emphasis. They can be used only with singular countable nouns; for the possible use of some (or any) as an equivalent with plural and uncountable nouns, see Use of some below.   It says if a noun comes with an indefinite article, the noun is singular and countable.  Then there are phrases such as 'a lot of', 'a number of', and 'once upon a time'. Are 'lot', 'number', 'time' above countable nouns as well? I have never heard of people saying 'two numbers of people' or 'once upon three times', which makes me doubt that they are actually countable.


Site icons have white backgrounds on iOS 10

App Version: 1.5.3.5 Device: iPhone 6s OS Version: Version 10.0 (Build 14A5309d)


Getting java.lang.ClassNotFoundException: com.mysql.jdbc.Driver after deploying to jar

This question has asked many times, but this one is slightly different. In my case, I'm not getting any error when running from Eclipse, it successfully runs and is able to connect to MySQL. I have a Maven project in Eclipse, using the MySQL database and MySQL Connector/J for connection. However, after deploying to jar I am getting the error. I am using mvn clean install to deploy I have added dependency in pom.xml like: <dependency>     <groupId>mysql</groupId>     <artifactId>mysql-connector-java</artifactId>     <version>5.1.49</version>     <scope>runtime</scope> </dependency>  I am using following command to run the jar file  java -jar ./target/project.jar but this gives java.lang.ClassNotFoundException: com.mysql.jdbc.Driver What's wrong here?


I was reading this Reddit post's comments: '' (NSFW), and came upon  (of sorts), where the plural of "penis" has been suggested to be either: "penises", "penii", or "penes".   I looked it up and   that "The hyperforeign Latinate penii is occasionally used as the plural in modern English."  Is "penii" or "penes" also correct in other contexts (medical or scientific, perhaps)? What are the correct plural forms of "penis"?


I'm the only backend developer for a Drupal site and we seldom encounter technical difficulties. The last one was with an AJAX call and to resolve that, I suggested we switch to realname from username; and he rejected it, claiming that might affect the site badly. How true is that? We have 100~ users.


Changing the style of all arrow heads in tikz

The arrows.meta tikz library allows you to change the style of an arrowhead. I think -{Latex[length=2mm]} looks nice for my figures. However, I don't want to type "-{Latex[length=2mm]}" every time I draw an edge. How can I make this style the default for all arrows in the figure, so that I get this style of arrow head every time I write ->?


Proper way to validate e-mail address in MySql

I´m trying to find out a way to proper select only  valid e-mails address syntax from MySql table.  My old select would look like this:   SELECT * from table where email regexp '^[a-zA-Z0-9][+a-zA-Z0-9._-]*@[a-zA-Z0-9][a-zA-Z0-9._-]*[a-zA-Z0-9]*\\.[a-zA-Z]{2,4}$'    But It does not select domains like @domain.digital or @domain.ninja  Maybe this would be a valid way or is there a better way?  SELECT * from table where email regexp '^[a-zA-Z0-9][+a-zA-Z0-9._-]*@[a-zA-Z0-9][a-zA-Z0-9._-]*[a-zA-Z0-9]*\\.?[a-zA-Z]{2,4}$'


Error in compiling with Tikz Externalize

I've edited this post as I've broken the problem down to something smaller than a thesis. I can run the following command in the cmd window:   lualatex file.tex   with the following script no problem:  \documentclass{article} \usepackage{tikz} \usepackage{pgfplots} \pgfplotsset{compat=1.8}  \usepackage{amssymb} \usepackage{amsmath} \usepackage{graphicx} \usepackage{float} \usepackage[hang,small,bf]{caption} \usepackage{color}  %\usetikzlibrary{external} %\tikzexternalize  \begin{document} The golden-crowned sifaka is a medium-sized lemur characterized by mostly white fur, prominent furry ears and a golden-orange crown.   \begin{figure}     \input{sdof.tex}     \caption{This is the caption} \end{figure}  \begin{figure}     \input{strain.tikz}     \caption{This is the caption} \end{figure}  \end{document}   But when I uncomment the   \usetikzlibrary{external} \tikzexternalize   lines and use the following:  lualatex --shell-escape -interaction=nonstopmode file.tex   it compiles the first figure into file-figure0.pdf no problem but when it gets to teh second, there are problems and it gives a fatal error  sdof.tex is a simple diagram i drew myself in inkscape and the second strain.tikz is matlab2tikz output of lots of data points from a test.


How to disable screen going blank/off in X11?

Is there a simple way of disabling this? I don't have any power saving constraints currently, as my desktop is always plugged in and I don't mind having it running forever. All of the explanations on xset I've found so far are so long and convoluted...


i'm getting this following error when trying to make a video call. Also added the debug log

Here is what I have tried so far.   public voi[screenshot 3][3]d onDataChange(@NonNull DataSnapshot dataSnapshot)         {             if (dataSnapshot.child(receiverUserId).exists()) {                 receiverUserImage = dataSnapshot.child(receiverUserId).child("image").getValue().toString();                 receiverUserName = dataSnapshot.child(receiverUserId).child("name").getValue().toString();                  nameContact.setText(receiverUserName);                 Picasso.get().load(receiverUserImage).placeholder(R.drawable.profile_image).into(profileImage);              }             if (dataSnapshot.child(senderUserId).exists()) {                 senderUserImage = dataSnapshot.child(senderUserId).child("image").getValue().toString();                 senderUserName = dataSnapshot.child(senderUserId).child("name").getValue().toString();             }          }   Below is what I get from the debug log.   DEBUG LOG   at com.studio.asinsta.CallingActivity$3.onDataChange(CallingActivity.java:111)         at com.google.firebase.database.core.ValueEventRegistration.fireEvent(com.google.firebase:firebase-database@@19.2.1:75)         at com.google.firebase.database.core.view.DataEvent.fire(com.google.firebase:firebase-database@@19.2.1:63)         at com.google.firebase.database.core.view.EventRaiser$1.run(com.google.firebase:firebase-database@@19.2.1:55)   Any help is appreciated.


I am trying to add a script in a JS. Below is my code, document.body.innerHTML += '<script async data-cfasync="false" src=""></script>';  I am getting below error when this JS code runs, Uncaught SyntaxError: Invalid or unexpected token


MySQL Inserting with single quotes using php

I have a code to insert into mysql database. Which is   schname is something like = St. Thame's College  $schname = $_GET['schname']; $sql= "INSERT INTO `school` (id, schname, place) VALUES (' ',  $schname, 'place',)";   But after the 's in $schname the query wont run. Can I get to know how to solve that, as all most all school names have 's after their name.


Making a safe query, mysqli_real_escape_string alternative

I have a question about how to make a string safe to run in a query, generally.  I have a secure_input function, which drags all the $_POST and $_GET through a few PHP functions to make it safe, and it seems that re-formatting works, but I still get an error with singlequotes, even though they are properly escaped with backslash from mysqli_real_escape_string().  Here's how it runs:  // function which drives on every post and get function secureinput($link, $value) {     $value = htmlentities(stripslashes($value));     $value = str_ireplace("script", "blocked", $value);     $value = mysqli_real_escape_string($link, $value);     return $value; }  // then I got another function which performs all of the mysqli requests and it starts with converting all the post and get data if(isset($_POST)) {     foreach($_POST as $post) {         $post = secureinput($link, $post);         echo "post converted
" . $post . "

";     } } if(isset($_GET)) {     foreach($_GET as $get) {         $get = secureinput($link, $get);         echo "get converted
" . $get . "

";     } }   The output looks pretty fit for query, but the query is still broken:     "Some text that doesn\'t work"   How can it still fail?  I have a ckeditor implemented for some textareas, and it sends an alternative for singlequotes, which works perfectly in a query, ckeditor replaces them with S#39; (& instead of S).  Is there a function in PHP which can do the same, instead of backslashes? It would also be pretty good to have singlequotes formatted in the same way.


Can I park at JFK and use AirTrain if I am not flying?

I'm seeing a show in NYC on Sat. (driving in from Virginia) and looking for the best place to park, i.e. not NYC. My husband suggested parking at JFK Airport. Can I park there and take AirTrain to Howard Beach subway station if I'm not flying from JFK?


Marvel Universe describes  as:     a small planetary body that serves as home to the Norse gods such as Thor, and their ruler, Odin. It exists in another dimensional plane and is about the size of the United States.   There is currently no completed entry for Midgard, but the Asgard article addresses it briefly.     Another of these worlds that is in a different dimensional plane is the world of Midgard, or Earth.   and      Midgard, or “Middle Realm”, is home to humans and does not seem to be affected by the motion of the other worlds of Asgard. Jotunheim is the world of the Giants and is also on its own dimensional plane hidden from Asgard or Earth’s. The only thing that prevents passage between Midgard and Jotunheim is Jormungand, the Midgard Serpent.   The term "dimensional plane" mentioned evokes the concept of , a concept .  What defines Midgard and its boundaries? Is Midgard just the planet Earth? Our entire Solar System? The entire Milky Way? An alternate universe?


If I were to say I was a former student of somebody, would I add an apostrophe s after their name?

If I were to say that I was a former student of a particular person (for this purpose let's pretend his/her name is Eve), would I add an apostrophe s to the name because I would be referring to them as being one of their students? In other words, would I say:         "I'm a former student of Eve."   "I'm a former student of Eve's."


How do I get around my getter wanting a static method?

My getter wants the method it's getting to have a static method but if I do that it will break my code is there any way around this?. Language Java.  This is the line in my test class that wants to get the method in my vending class.  System.out.println("Total Sales for both machines today $"+ VendingMachine.getTotalsSales());   This is my getter method that takes the array I created from the string provided in the test class that put the items into an array. I want to be able to keep this array that I have created while also getting the total sales.  public double getTotalsSales() {     totalSales += availableItems[this.selectItem].price;     return totalSales; }   Is there any way I can keep my array and with also being able to grab the total sales from the tester class?


Printing all lines between two strings, with one as a user input, using sed

I'm trying to use: sed -n '/String1/,/String2/p' Filename  to print all lines between String1 and String2. Although I want to add String1 as a user input so, read $userinput sed -n '/$userinput/,/String2/p' Filename.   But as the input is within quotation is is read as the string $userinput instead of the given input.


The question says to solve this equation: $(z+1)^5 = z^5$  I did. Just want to find out if I did it properly and if my run-around logic makes sense.  First I begin my writing the equations as:  $$ (z+1)^5 = z^5$$ $$ \mathbf{e}^{5 \mathbf{Log}(z+1)} = \mathbf{e}^{5 \mathbf{Log}(z)} $$ So $$  \mathbf{Log}(z+1) = \ln|z+1| + \mathbf{Arg}(z+1)i $$   $$  \mathbf{Log}(z) = \ln|z| + \mathbf{Arg}(z)i $$   Now, because the natural logarithm is one-to-one, I write:  $$ \ln |z| = \ln |z+1| \Rightarrow |z| = |z+1|$$   So assign $ z = a +bi$   So that $|z| = \sqrt{a^2 +b^2} = |z+1| = \sqrt{(a+1)^2 +b^2} \Rightarrow a^2 +b^2 = (a+1)^2 +b^2 \Rightarrow a^2 = (a+1)^2 \Rightarrow a = -\frac12 $  So, $z = -\frac12 + bi$ and $z+1 = \frac12 + bi$ for some $b \in \mathbb R$  Now to find $b$  $$ \mathbf{Arg}(z+1) = \mathbf{Arg}(z)$$ $$ \tan^{-1} \frac{b}{\frac12} = \pi - \tan^{-1}\frac{b}{-\frac12}$$  I have a feeling this last part isn't quite right, so I just want to find out if I'm approaching this question properly?  Ultimately, I get $ z = -\frac12$ which upon inspection...is wrong...


PrintWriter.write( String ) never throws an IOException

So what's the right way to know if an error has occured when writing through a PrintWriter?


Flagging multiple comments versus flagging the whole post for moderator attention

When multiple comments in a comment thread ought to be removed (especially if they're all for the same reason), should I flag each of them individually or flag the parent post for moderator attention?  I've usually adopted the former strategy - flagging each comment with the same flag reason, often a custom one copied and pasted. I had always assumed the following things that led me to follow this strategy:   Flagged comments were discretely marked as flagged in some way when the reviewer viewed the question (much like how I can see others' pending suggested edits now that I have editing privileges). By individually flagging all the comments that needed cleaning up, I was allowing the flag reviewer to see at a glance which comments needed removing, thereby providing them with useful additional information that wouldn't be available if I flagged the entire parent post. By flagging comments individually, rather than flagging the whole post, I was letting my flags be handled by anyone with 10k+ rep and access to the mod tools, rather than having to be handled by a diamond moderator.   However, I just read  (now deleted) by Shog9 that makes me suspect that approach is misguided, and question whether any of my assumptions about how comment flags work are actually true. Notably he says:     If you'd pinged me once for every comment in that thread you found noisy, I would probably be plotting my revenge instead - at very least, I would think you very rude for doing so. Yet, that's exactly what you're doing when you start flagging multiple comments in a single thread: instead of taking a few seconds to describe a problem, you're attempting to use a moderator as a tool to do your bidding, without any real effort to communicate.   He also said some more stuff on the topic - I think there was something about huge offensive boxes blotting out the UI when he views questions with multiple flags - but I now can't recover it any more because that question was deleted while I was in the process of writing this one, and it doesn't seem to be available in the Google cache.  Much of the flagging and review system is still a black box to me as a low/mid rep user, and it's difficult for me to figure out what flagging behaviors are appropriate and helpful when I have no idea what actually happens when I flag a comment. (The Privileges section doesn't mention comment flags anywhere that I can find. I don't even know who reviews them at the moment, and can't find a Meta question anywhere that addresses that.)  Could somebody provide some input on when (if ever) flagging lots of individual comments in a thread is appropriate, and when flagging the entire parent post is? A pretty screenshot of the UI of the relevant review/mod tools, demonstrating the effect of each approach, might also be helpful for understanding this, if that's not asking too much.


Can a new save withdraw from the pokemon bank?

I've been considering restarting my save and replaying the story with access to the entire National Pokedex (Minus a few Event-only Pokemon I'm missing) from the start. But I would first like to confirm: Can I withdraw my stored Pokemon from the bank if my game is reset? It seems that the only contributing factor is that I end up signed in with the same Nintendo Network ID, so as long as my network ID remains the same, I can withdraw stored Pokemon regardless of what save-game or cartridge is in my system, correct?  While I'm reasonably confident it works the way I think it does, past experience (My Pokemon Ranch being tied to specific trainer IDs, and something about the dream world being tied to the game's wireless settings) has made me just cautious enough to ask before attempting.


I have 2 hard drives, one with Windows and one with Ubuntu.  How can I easily add Windows to the boot menu? I've installed GRUB customizer; can it be done with that program?


I know the mathematical conditional's truth table ($P \Rightarrow Q$) is set this way :   the talk is about the time when P is false. why did we choose the conditional to be true when P is false? I mean we could have said that it is T/F (or we don't know). because, when P is false, it is an argument that the conditional isn't related to. it is related to the argument where P is true. "because it isn't false" isn't a satisfying argument. and I can't see a logical proof of ($P \Rightarrow Q$) being equivalent to ($\lnot P \lor Q$) (that doesn't involve the truth table)(since the truth table is under question)    edit: I have read the"  " and it didn't have a solution to my question and it doesn't address the possibility of T/F


So, I insert this code into ubuntu,   $ sudo apt-get install -y build-essential linux-headers-`uname -r` dkms module-assistant   And it displays the error  E: Unable to locate package module-assistant   Do you know how to deal with this (Ubuntu 18.04.1)?


Why the term and the concept of quotient group?

The basic concept of Quotient Group is often a confusing thing for me,I mean can any one tell the intuitive concept and the necessity of the Quotient group, I thought that it would be nice to ask as any basic undergraduate can learn the intuition seeing the question. My Question is :   Why is the name Quotient Group kept,normally in the case of division, let us take the example of $\large \frac{16}{4}$ the Quotient of the Division is '$4$' which means that there are four '$4$'s in $16$, I mean we can find only $4$ elements with value $4$     So how can we apply the same logic in the case of Quotient Groups,like consider the Group $A$ and normal subgroup $B$ of $A$, So if $A/B$ refers to "Quotient group", then does it mean:           Are we finding how many copies of $B$ are present in $A$??, like in the case of normal division, or is it something different ??       I understood the Notion of Cosets and Quotient Groups,b ut I want a different Perspective to add Color to the concept. Can anyone tell me the necessity and background for the invention of Quotient Groups?  Note: I tried my level best in formatting and typing with proper protocol,if in case, any errors still persist, I beg everyone to explain the reason of their downvote (if any), so that I can rectify myself, Thank you.


How to remove the NA from summary of glm?

I made a regression mode:  LogitModel<- glm(y~TimeBetweenStartRegAndEndReg+Age_wn+Train_Data[,1]+Train_Data[,2]+Train_Data[,3]+Train_Data[,4]             +Train_Data[,5]+Train_Data[,6]+Train_Data[,7]+Train_Data[,8]+Train_Data[,9]             +Train_Data[,10]+Train_Data[,11]+Train_Data[,12]+Train_Data[,13]+Train_Data[,14]             +Train_Data[,15]+Train_Data[,16]+Train_Data[,17]+Train_Data[,18]+Train_Data[,19]             +Train_Data[,20]+Train_Data[,21]+Train_Data[,22]+Train_Data[,23]+Train_Data[,24]             +Train_Data[,25]+Train_Data[,26]              ,family=binomial(link='logit'))   all the variables are factor except TimeBetweenStartRegAndEndReg and Age_wn.  the output summary(LogitModel) is not understood for me. there are NA for some variables. what it means that the coefficiant is NA?  And the most important how to remove them NA from the summary?  And another thing how can i print a model just with the significant coefficiant ?


Visual design changes to the review queues

The  would like to announce another release in a  for the Review queues. This release focuses on refreshing the queue user interface in preparation for further improvements to the user experience. Starting today, we will roll out these changes in three phases across the network. Roll-out plan We have planned for these UI changes to ship in three distinct phases affecting specific queues across the network. We will update this post as each phase is rolled out.      What Where When     Phase 1 • Home page (/review) • Close and reopen votes queue• Stats/History view• Steward badge Meta Stack ExchangeMeta Stack Overflow Shipped! January 28, 2021   Phase 2 • Changes from Phase 1• Suggested edits queue • Low quality posts queue • First posts queue • Late answers queue SuperUserAsk Ubuntu Shipped! February 16, 2021   Phase 3 • Changes from Phase 1 + 2• Triage queue (SO only)• Help and improvement queue (SO only) All network sites Shipped!February 23, 2021    UI changes to all queues  All review queues will be adopting a new user interface that focuses on providing reviewers with context to make deliberate, thoughtful decisions on review tasks. We shared an initial design proposal in our  and made sure to include that feedback into the final design. Responsive/Mobile-friendly design  We utilized  to update the visual design in the review queues. As part of this update, we were also able to make the queues responsive and utilize mobile-friendly UI components. Changes  Actions menu -  We’ve removed the action buttons for a menu-style component. Selecting an action now requires a bit of pause and mitigates robo-reviewer behaviors we've seen in the past. Instructions are now always visible and associated with each action.  More context - Users can now toggle between the review task and the necessary context (original question, answers, and comments) on the task page to assist in making educated decisions on a task. No need to open new browser tabs!  Vote controls and follow feature - We heard from you that being able to vote directly on all tasks as well as the option to follow posts and receive updates on changes would help in the reviewing process. These features will be available in all queues.  Filter button - We’re highlighting this feature (where it’s available) with a button and replacing the easily missed text-link.  Review count - We’ve removed the badge progress bar in lieu of keeping track of how many tasks you can complete in a queue (don’t worry, the badge bar isn’t gone).   Review home page  The review homepage has received a Stacks update as well, setting it up for forthcoming plans to create better onboarding for new reviewers. This page now provides a bit more information to new reviewers. Changes  Only the queues available/earned by the user are clickable  Includes additional text about necessary reputation to earn access to new queues  Available queues are prioritized to the top and then sorted by the number of tasks in each queue   Additional updates   All aspects of the Review queues are receiving some much needed design attention. Here a few more changes you can expect to see:  There is more incentive to continue reviewing. The Steward badge can now be earned multiple times for every 1,000 reviews in each queue. If you have already completed 2,000 or more reviews, we will backfill any additional Steward badges that you have already earned. You can expect to see them accrue over the next few days.  History view - Added and rearranged a few UI components so that users can better navigate and utilize the page  Stats view - Updated badge progress bar   Feedback Please leave any feedback or bug reports related to this release below this post. We will be reviewing responses on this post for one month following Phase 3 (March 23, 2021). After March 23rd, please ask a new question to report any new issues.


Earlier today, I tried applying the update (on my MkTeX system, running under Win7 Pro) for PSTricks from 2.78 (27-Nov-17 build date) to 2.80a (31-Dec-2017 build date), and doing so caused a consistent and 'fatal' compile error:   c:\users\me\Desktop\text\MiktTex\tex\generic\pstricks\pstrick.tex  ! Undefined control sequence  l.31 \if@check@engine   After reverting back to 2.78, compilation proceeded normally. When I diff'd the code in pstrick.tex, the only difference (that seems related to the issue is) in the new code, there is an additional line for \if@check@engine   \if@check@engine    \ifx\c@lor@to@ps\@undefined      \def\c@lor@to@ps{\PSTricks_Not_Configured_For_This_Format}%  message for a pdflatex run    \fi  \fi   Here is the old code for comparison:   \ifx\c@lor@to@ps\@undefined    \def\c@lor@to@ps{\PSTricks_Not_Configured_For_This_Format}%  message for a pdflatex run  \fi   So, something about the newly inserted command,  \if@check@engine, is causing compile fails. Was wondering if anyone can replicate/confirm at there end.   For the moment, the solution is to revert back to old pstricks, but thought I'd point out what seems to be a bug in the latest build.


I am thinking about the proof of the second isomorphism theorem, and something isn't very clear to me.   Let $R$ be a ring, $S\subset R$ a subring and $I\subset R$ an ideal. We have the natural homomorphism $f:R\rightarrow R/I$. The theorem states that $\mathrm{Im}(S)=(S+I)/I$. My question is why not simply $\mathrm{Im}(S)=S/I$?  I understand that it is not true (for starters, $S/I$ need not be a subring), but I cannot explain that to my self in a convincing way.


Is there something similar to Noether's theorem for discrete symmetries?

states that, for every continuous symmetry of an action, there exists a conserved quantity, e.g. energy conservation for time invariance, charge conservation for $U(1)$. Is there any similar statement for discrete symmetries?


Why was I locked out of Xubuntu machine after an xrdp session from windows?

Recently, I tried the method in   to connect from a Windows 10 laptop to an xfce session on a workstation running Xubuntu.   After logging off that machine, when I tried to log back onto my own physical machine (in person), I was locked out of the GUI session ! Strangely, the guest xsession account was working. I could log on to tty1, and set up another temporary admin account from the command line.   I was able to login to tty7 (graphical user session) using this newly created account. From there, I was able to go to user accounts settings, and verify that my original user account still exists with all admin privileges.   I solved the immediate problem by using the method in  :   sudo rm .Xauthority sudo reboot   But this leaves me with the question of what is going on in the first place. Can anybody shed light on what just happened ?


I did a fresh install of trusty 14.04, but a lot of icons are missing. I installed from DVD which was painfully slow and I hope to avoid repeating the process, especially since I started customizing stuff.  Here's my settings window:    I've tried:  sudo apt-get install --reinstall gnome-control-center sudo apt-get install --reinstall gnome-settings-daemon-schemas   None of which changed anything.  Any idea? I wanna edit preferences and none of them are in System Settings, neither in Unity Dash.


What do the different colors mean in ls?

What do the different colours in Ubuntu's ls command mean? For example, when I type the ls command in one of my folders, I get one of the files in light green, the other (which is a folder) in blue with green highlighting.   What do those colours mean, and there is any manual about all the colours?


Can you block installers from making desktop shortcuts?

I've been keeping my desktop totally free from shortcuts. I'd rather not have to take action to do so.


How should tiny $p$-values be reported? (and why does R put a minimum on 2.22e-16?)

For some tests in R, there is a lower limit on the  calculations of $2.22 \cdot 10^{-16}$. I'm not sure why it's this number, if there is a good reason for it or if it's just arbitrary. A lot of other stats packages just go to 0.0001, so this is a much higher level of precision. But I haven't seen too many papers reporting $p < 2.22\cdot 10^{-16}$ or $p = 2.22\cdot 10^{-16}$.   Is it a common/best practice to report this computed value or is it more typical to report something else (like p < 0.000000000000001)?


I know these are few special variables used by bash. But I am not able to understand them. Can anyone explain what these variables are and how to use them?  $*  $@  $#


Micro-sd card readable but not able to write or format

I've a Sandisk 64gb class 10 microsd that used to work fine. All of a sudden it has become read-only. I can read all files, but I cannot delete/add any files or format the sdcard in Android, linux or windows.   Every attempt to format sdcard fails (with 10+ tools I tried) on PC (including gparted, fdsik, etc).   Micro-sd has no read-only switch. Is this hardware problem?


how can i use variables in a if statement and out of it?

I const a variable in an if statement but I can't use the variable out of the statement    const a = 1  const b = 1  if (a == b) {   const c = 1   console.log(c) } console.log(c)     fist it gives me c ( in the if statement) then it gives me an error(out of the if statement)


How should you deal with (deliberate) selective deafness?

It's a pretty point blank question. In case you don't know what selective deafness is, here's an example:  Me: "Hey Timmy, help me carry the laundry?" Timmy: "..." Me: "Hey Timmy, I really could use your help; there is a lot to carry" Timmy:"..." Me: "Hey Timmy, I just saw the ice cream truck stop outside" Timmy: "What?! Can we go!? Can we go!?"  I don't have any children named Timmy but you get the idea. What do you do in those situations?


A US citizen, arriving to Israel on a tourist visa, for 90 days. The visa will expire in a week, and the flight tickets are for two days later.   Going to the Ministry of Interior is out of the question for this short time.   "Hopping" to neighboring counties, is a huge hassle, since we are traveling with infants.   What are the consequences of flying out after the expiration date? Any other option to consider?


does file download using PHP, causes server/CPU overload?

On my site i have hundreds of 50-100 mb audio files. I allow client to download files using this method only:  example.com/downloader.php?file=audio_123.mp3   then PHP file executes readfile (or something like this) to start file downloading.  I am interested, will it reduce (any significant) overload for server CPU, if I would change download links to direct links, i.e. example.com/file.mp3, instead of my current download method?


Does the resistor have to be before or after the component

I am an electronics beginner and I created a small little circuit, just a battery a resistor and a led, then to ground. This is the circuit:         – Schematic created using   Now I have a few questions about it. I know voltage is the different of electrical charge between two points, so I measured that difference:  Point A to B: 3.27V Point B to C: 1.82V   First question: Does that mean that the actual voltage of: Point A: 5V Point B: 1.73V Point C: 0V?   So I am not sure if my calculations of voltage are correct. I also have this other questions:   Does the resistor have to be before the component I am trying to protect, like an LED. I have seen people place it after, but wouldn't that give a full 5V to the led or component? Ground has a neutral charge right? so why do electrons want to travel so badly to a point that has no electric charge?   Thank you


object disappears when looking through the camera view

I am taking a youtube course about making a medieval well but have some problems. Made the well, added environment texture, emphasized the camera and lights. Before I clicked the “0” button on the Numpad this was what I saw in the viewport:  When I clicked the “0” button on the Numpad this happened:   I am new in blender, made some projects so far but had not met a problem like this before. I want when go in camera mode to see the well and the blue background, then to render the image. Please tell me how may I fix this!


Cant get this condition to work when slicing strings from a list [python]

Declaration: Ive searched high and low on SOF for an answer but I doesnt click with my problem. attempting to create a condition that if the last two elements of an input argument = 'sh' or 'ch', append 'es' to the end. elif word [-2:-1].lower() == 's' + 'h' or (word [-2:-1].lower() == 'c' + 'h'):            word = word + 'es'      dictionary ['plural'] = word; dictionary ['status'] = 'success'  #dictionary format  the output im getting at the moment : pouch --> {'plural': 'pouchs', 'status': 'success'}  This is taking place (i think) since I have a prior condition that any input argument that does not come from my file (containing a list of strings) should be pluralized with the letter 's'. This would be my last condition in my program: elif word not in proper_nouns:                                   word = word + 's'      dictionary ['plural'] = word; dictionary ['status'] = 'success'


I used sudo dpkg --configure -a to repair an incomplete update. It solved at least most of the problems, but says   dpkg: error processing package linux-libc-dev:amd64 (--configure): package is in a very bad inconsistent state; you should reinstall it brefore attemping to configure it.   I entered sudo apt-get remove linux-libc-dev:amd64 and it removed some parts of the package and said:  dpkg: error processing package linux-libc-dev:amd64 (--remove): package is in a very bad inconsistent state; you should reinstall it brefore attemping a removal   How can I reinstall it?


Give a Bijection that is in-between 2 intervals and use a formal proof to show that it is a bijection.

∀w,x,y,z ∈ R, w < x and y < z. Given that information, supply a bijection between the two intervals. (w,x) and (y,z) Then after you find the bijection, provide a formal proof that what you found is a bijection.  (FACT: the interval (w,x) is defined as (w,x) = {p ∈ R|w < p < x})  The proof needs to use the definitions of injective and surjective, then it needs to formally show that the bijection that is found is a bijection.


Creating a newcommand with indefinite arguments

I am kind of new to LaTeX. I am doing project which contain resources (formula, solutions to problems, e.g.) i can bring to the Exams day on 16th March. I have been looking for a solution to my problem couple of hours now. What i am trying to achieve is to create a \newcommand with indefinite variable (arguments?) that can do a repetitive task such as 5 \times 10 \times 15 \times 20 \times 25. The numbers are supposed to be the arguments and \times, the repeating task between each argument. I have tried to make a tabular many column inside a \newcommand but have not succeed. To give a better vision, i will post a piece of my code.  \documentclass{article}  \usepackage{lmodern} \usepackage[T1]{fontenc}  \usepackage[utf8]{inputenc} \usepackage{amsmath} \usepackage{enumitem} \usepackage{titlesec} \usepackage[norsk]{babel}  \titleformat{\section}{\LARGE\filcenter}{}{1em}{} \setlength{\jot}{14pt}  \title{Hjelpermidler i Digital Radio} \author{Sami Rashiti}  \newcommand{\degree}[2]{#1\,^{\circ}\ \mathrm{#2}}   \begin{document}  \maketitle  \newpage  \section*{Innlevering 1} \input{innleveringer/innlevering1.tex} ~\newline  \begin{align}     e_n &= \sqrt{4KTBR}                                                                     \\     e_n^2 &= 4KTBR                                                                          \\     R &= \frac{e_n^2}{4KTB}                                                                 \\       &= \frac{(\frac{V_o}{A})^2}{4KTB} \qquad ,der \quad e_n = \frac{V_o}{A} = 3,2\mu V    \\       &= \frac{(3.2\mu V)^2}{4\cdot1.38\cdot 10^{-23}\cdot 310\cdot   100\cdot 10^3}        \\       &= 6\ k\Omega     \end{align}  \end{document}


I am trying to print a List of Appendices (LoA) for my thesis, separate from the Table of Contents (ToC).   I wish for my ToC to look like this, with depth up to subsections (2?):  CONTENTS  CHAPTER   I. Introduction......1    1.1 Section title...1     1.1.1 Subsection...1  Appendices ..... 2   and for an LoA on a new page, with depth 0, thus:  APPENDICES  APPENDIX A. Proof of Theorem 1...1 B. Proof of Theorem 2...1   I am trying to achieve this using the report class, in a way that allows me to type appendices using the hierarchy that I obtain from the chapter, section commands. This is as opposed to defining a custom myappendix command into which I insert my appendix content. (I realize that I only need the titles from the appendix chapters for the LoA, but I'd like for the appendix content to have such structure.)   For instance, this approach would solve my problem:   \chapter{Introduction} \section{Section title} \subsection{Subsection} % \begin{appendices} is also acceptable \appendix   % Some settings are changed now \chapter{Proof of Theorem 1} \chapter{Proof of Theorem 2} % \end{appendices} if environment is begun   whereas the following approach would not:  \chapter{Introduction} \section{Section title} \subsection{Subsection} \myappendix{Proof of Theorem 1} \myappendix{Proof of Theorem 2}   I realize several questions have been asked regarding this before, but none of them quite solved my problem. Notably,  defines a custom appendix command;  defines two custom commands to maintain some hierarchy, but I will have to do more work to handle the inclusion of another layer (subsection) into the appendix.    is the closest to what I want: it does give me a separate LoA, but it also adds appendices to ToC and I can't quite figure out how to suppress the entires in ToC. The moment I use   \addcontentsline{toc}{\setcounter{tocdepth}{-1}}   the line   \xpatchcmd{\@chapter}{\addcontentsline{toc}}{\addcontentsline{toa}}{}{}%   fails because I am not adding anything to the ToC anymore.   My approach: Since I was using titlesec and tocloft packages anyway, I tried to do the following:   Stop ToC once appendix command is issued Start a new counter for appendices using tocloft Using the <after-code> option of titlesec, add contents line after every chapter.    My MWE   \documentclass[a4paper]{report} \usepackage{lipsum} % for arbitrary text  \usepackage{tocloft,etoolbox,titlesec} \newcommand{\listappendixname}{List of Appendices} \newlistof{appendix}{apc}{\listappendixname}  \makeatletter \g@addto@macro{\appendix}{     \clearpage     \addcontentsline{toc}{chapter}{Appendices}     \addtocontents{toc}{\protect\setcounter{tocdepth}{-1}}     \titleformat      {\chapter}      [display]     {\huge\bfseries\filcenter}      {\Large \MakeUppercase{\@chapapp} \thechapter}      {1.5ex}{}     {\refstepcounter{appendix} \addcontentsline{apc}{appendix}{\protect{\@chapapp \thechapter}}} } \makeatother  \title{Title} \author{Author}  \begin{document} \maketitle \tableofcontents \clearpage \listofappendix  \chapter{Introduction} \lipsum[1] \section{Section} \lipsum[2] \subsection{Subsection} \lipsum[3]  \appendix  \chapter{Proof of Theorem One} \lipsum[4] \chapter{Proof of Theorem Two} \lipsum[5]  \end{document}   produces the following LoA:  List of Appendices  Appendix...... 5   It doesn't get the Appendix title or number, and fails after the first one.  Could you please help me obtain a separate LoA in a way that I can still use LaTeX's chapter, section, ... hierarchy? (I am okay with using different packages, the book class, or any approach other than mine.)


What is the use of @id in json-ld syntax?

I am really confused what is @id used for in json-ld syntax. Sample from apple.com. What does @id actually represent. Any help would be great?  <script type="application/ld+json"> {     "@context": "http://schema.org",     "@id": "http://www.apple.com/#organization",     "@type": "Organization",     "url": "http://www.apple.com/",     "logo": "https://www.apple.com/ac/structured-data/images/knowledge_graph_logo.png?201608191052",     "contactPoint": [         {             "@type": "ContactPoint",             "telephone": "+1-800-692-7753",             "contactType": "sales",             "areaServed": [ "US" ]         }     ],     "sameAs": [         "http://www.wikidata.org/entity/Q312",         "https://www.youtube.com/user/Apple",         "https://www.linkedin.com/company/apple"     ] }


Does it matter where I get PhD degree from if I want an academic career in the US?

I am an EU citizen who is going to apply to PhD Physics programs soon. My ultimate goal is to become a university professor. In considering which university I should attend for PhD, factors such as tuition & program differences don't matter to me. What matters is that I don't feel like doing (nor do I agree with) the GRE (which would require a significant preparation), thus applying to PhD programs in the US might be out of the picture for me. However, the question pertains that if I want an academic career (ultimately, a professor position) in the US in the future, does it matter from which university I get my PhD degree?   Note: I do not care about a uni's rank or status. What I care about is whether the uni's location (different country) will affect where I can get jobs later on...  PS: On a separate matter, I've heard that PhD graduates in the US can obtain academic jobs without going through postdocs, is that true? If so, what does it take do achieve that?


I'm running CentOS 6.2, trying to run tasks through cron. I've verified crond is running  $ service crond status crond (pid  20553) is running...   I have no /etc/cron.allow file, but I do have an /etc/cron.deny file that is empty.  I've checked the /var/log/cron file only to find entries of EDIT and RELOAD sessions, nothing being executed.  I did have some trouble with my system clock earlier today, and I think I resolved it. $ date and $ uptime both give back the correct time, but I can't execute hwclock commands for other issues. Should I look into problems with the hardware clock as the cause for nothing being executed or is there something else I'm forgetting here?


Prove that if $\lim\limits _{ n\rightarrow \infty }{ \frac { { x }_{ n+1 } }{ { x }_{ n } } =a } $ exist then...

I should prove that for series $\sum _{ n=1 }^{ \infty  }{ { x }_{ n } } $, $(x_n > 0)$, if $\lim\limits _{ n\rightarrow \infty  }{ \frac { { x }_{ n+1 } }{ { x }_{ n } } =a } $ exists then $\lim\limits_{ n\rightarrow \infty  }{ \sqrt [ n ]{ { x }_{ n } } =a } $ also exists.   Converse is not true always.  How can show it? I don't how to start. Thanks beforehand.


Python inheritance - how to disable a function

In C++ you can disable a function in parent's class by declaring it as private in the child class. How can this be done in Python? I.E. How can I hide parent's function from child's public interface?


I made several edit suggestions and each time my reputation increased by 2, except once when it increased by 4 (cool! :D) . But my reputation increased only by 2 (less cool ;) ).        I think there is a bug when I received +4 instead of +2.


How to select only a border of selected area?

I selected some area and I need to get selected only border of this area. Does anyone know any function to achieve that? Or a script?


CAD (Photoshop, SketchUp, Corel) apps on Ubuntu?

I am planning to replace Windows, but I'm  worrying if CAD application such as Autodesk AutoCAD, 3ds Max, Corel Draw and SketchUp, are they working well with Ubuntu?


SQL Query - Combine multiple rows to one row

How to write a SQL to combine data from multiple columns and rows into one row.  OrganizationId  Name    Type    Active --------------------------------------       1         Baker   County  Yes       2         curry   county  Yes   Expected result:  SomeColumnName ------------------------------- 1BakerCountyYes2currycountyYes


How to disable Gmail's login verification "There's something unusual about how you're signing in."?

Sometimes, I get this message:     There's something unusual about how you're signing in. To show that it's really you, complete the task below.   This usually happens when attempting to log in from another country, probably also happens when attempting to log in from another browser or device.  I only use my laptop (i.e. no mobile devices).  It offers phone verification (which I decline, as I don't connect my accounts to phone) and it also offers "Try another way to sign in.", which of course fails even if I enter all the correct answers.  I'm not asking , which is probably usually impossible in relevant cases. I'm asking, once you managed to log in from the "correct" location/browser/device:   How to disable this useless verification?