I've loaded everything suggested and almost all the multimedia apps available, and my DVD's will not play.  The device is found, /dev/sr0 as well as the required links to /dev/dvd (for some programs). Every lib...so has been found and installed.  The codecs are current.  Somethings missing still.  I removed and reloaded the addon's to MPlayer, Totem and several others. I added the Ubuntu Restricted (MP..., AVI etc) additions. I've removed and reloaded Totem, MPlayer, VLC and several others and reloaded the addon's and plugins again.   I verified that the links to the Devices are correct. I removed and reloaded the available codec's. Note: Those Videos I created on DVD from my BeOS System Play just fine. Further the digital copies play fine. It is only Original DVD's that are giving me fits. Windows Vista play them on an alternate boot drive.


I try to use JavaFX to build a GUI. When I initialize the table with the two columns, roomId and applianceId, there is a error.  @FXML private void initialize() {     // Initialize the appliance table with the two columns.     roomIdColumn.setCellValueFactory(cellData -> cellData.getValue().roomIdProperty());     applianceIdColumn.setCellValueFactory(cellData -> cellData.getValue().applianceIdProperty()); }   Following is the appliance class  private IntegerProperty applianceId; private IntegerProperty roomId; private IntegerProperty state;  public Appliance(int applianceId, Integer roomId) {     this.applianceId = new SimpleIntegerProperty(applianceId);       this.roomId = new SimpleIntegerProperty(roomId);     this.state = new SimpleIntegerProperty(0);     System.out.println("Room " + roomId + "  Appliance " + applianceId + " created"); }  public IntegerProperty roomIdProperty() {     return roomId; }  public int getApplianceId() {     return applianceId.get(); }  public IntegerProperty applianceIdProperty() {     return applianceId; }  public abstract int getPower();  public IntegerProperty getState(){     System.out.println("appliance " + applianceId + " state = " + state);     return this.state; }   The error shows:      javafx.fxml.LoadException:     at javafx.fxml.FXMLLoader.constructLoadException(FXMLLoader.java:2605)     at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:2575)     at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:2445)     at javafx.fxml.FXMLLoader.load(FXMLLoader.java:2413)     at view.MainApplication.showApplicationOverview(MainApplication.java:89)     at view.MainApplication.start(MainApplication.java:59)     at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$159(LauncherImpl.java:863)     at com.sun.javafx.application.LauncherImpl$$Lambda$54/365777365.run(Unknown Source)     at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$172(PlatformImpl.java:326)     at com.sun.javafx.application.PlatformImpl$$Lambda$47/186276003.run(Unknown Source)     at com.sun.javafx.application.PlatformImpl.lambda$null$170(PlatformImpl.java:295)     at com.sun.javafx.application.PlatformImpl$$Lambda$49/2058173423.run(Unknown Source)     at java.security.AccessController.doPrivileged(Native Method)     at com.sun.javafx.application.PlatformImpl.lambda$runLater$171(PlatformImpl.java:294)     at com.sun.javafx.application.PlatformImpl$$Lambda$48/237061348.run(Unknown Source)     at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95) Caused by: java.lang.reflect.InvocationTargetException     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)     at java.lang.reflect.Method.invoke(Method.java:497)     at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:71)     at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)     at java.lang.reflect.Method.invoke(Method.java:497)     at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:275)     at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:2570)     ... 14 more Caused by: java.lang.NullPointerException     at view.ApplicationOverviewControl.initialize(ApplicationOverviewControl.java:46)     ... 24 more   Why the initialize method run in error? I just follow a tutorial on the web and change some identifiers. It seems that some thing wrong in  roomIdProperty() and applianceIdProperty().


How to view the full size and remove old Google Profile pictures

How do you actually view and delete profile pictures from a Google account? For example, in Google Drive, if I click on the picture of me in the top right corner > click change > under your photos, click the one photo > it shows the current one and all of the old ones, but I’d like the option to view them in full size and delete them. How can this be done? I tried looking in Google Photos and nothing is there.  Note: I sometimes get confused as to which Google product I'm using. I see this picture in Google Drive, but it's also used across all Google products I log in to.


Tools/techniques for optimal tabletop gaming with one remote user

A member of our group has moved to Dallas and we're involving them in the game using Skype. The rest of us are sitting around a table.  We have one laptop being used to show the player, and usually one or two other guys have a laptop and/or smartphone they're using to take notes. We use a battlemat from time to time and a whiteboard for names, initiatives, and diagrams. What can we do to make this work better (not step on the remote player and have that player able to see/understand/etc what's going on)? Tools, techniques, best practices?  There is a previous question, , that is largely useless to me because the majority of the tips there require everyone to be online (or for you to have some big projector setup). I am not interested in virtual tabletops, because the whole group is there in person and most don't have computers. I want ways to plug the one remote guy into our real game, not plug us all into a computer game. Also our GM's interaction with technology has an... inconsistent history, so the less it requires from him the better.  We're not likely to spend thousands of dollars on projectors or whatnot, but buys like "a second webcam" or "a remote mike" are fine. As for tech mix, a couple players bring laptops and a couple more will have a smartphone, but one or two players have nothing at the table.  Anyway, what have people done successfully for this use case?  Current Solution  Our solution we've been using and evolving for years now is Google+ (we used Skype initially but had recurring call quality problems) on a player's laptop with a monitor, webcam, external speakers, and a high quality standalone mike () plugged into it and put in a player slot at the end of the table. The player still uses his laptop for other things, but we leave the remote player in G+ up on the second monitor.   We take pictures of the GM's whiteboard with cellphone cameras and send those along to the remote member. We also have a Dropbox where everyone keeps their character sheets, the session summaries, and a spreadsheet where we enter treasure found - the remote guy actually does the summary and can refer to the other stuff quickly. We also drop more complicated handouts or pics into the Dropbox for him during the game.  We have a blog where I post session summaries and whatnot between games we can also use for reference.  Not painless but works OK. We have also added on an external webcam from another player's laptop to point at the battle mat for combats, since Hangouts can have multiple participants that works well as long as we're careful to turn off mike and speakers on the second laptop, or the off day where hardware or network or whatnot causes audio or video glitches.   So Hangouts + laptop + Snowball + flatscreen + second laptop with a cam on the battlemat + sometimes sending mobile phone pics has been a sustainable solution. (The host runs the inital cam and I run the laptop cam, the GM doesn't have to interact with the tech at all.)


apt-get update: Signature uses weak digest algorithm (SHA1)

when I am going to update my Ubuntu 14.04 I get following error:     Signature by key 8BADC1A02FC9C07FB8C20EC0BD11A6AA914BDF7E uses weak   digest algorithm (SHA1)   (this is a plesk package)  through google I found out, that the algorithm SHA1 has been disabled since 1. January 2017.  The problem is, that the apt-get update aborts at this point, so I cannot update my other packages.   How can I solve it without reinstalling plesk?


How to use readonly modifier to implement right triangle portion of class in second examples?

Below are the two different examples from the book Illustrated C# 2012. In the first example Hypotenuse is declared as readonly. In second example PI and numberofsides are declared as readonly. Why is PI assigned a value and numberofsides is not?  Can const be used to declare PI and assign a value to it? Let's say if I want to implement right triangle portion of class shape in second example. How do it do it with numberofsides are already declared and the sides have no values assigned. I mean how do I find out which side is hypotenuse?   class RightTriangle {    public double A = 3;    public double B = 4;     public double Hypotenuse // Read-only property    {       get{ return Math.Sqrt((A*A)+(B*B)); } // Calculate return value    } }  class Program {    static void Main()    {       RightTriangle c = new RightTriangle();       Console.WriteLine("Hypotenuse: {0}", c.Hypotenuse);    } }  class Shape {      // Keyword Initialized     // ↓↓     readonly double PI = 3.1416;     readonly int NumberOfSides;     // ↑↑      // Keyword Not initialized     public Shape(double side1, double side2) // Constructor     {          // Shape is a rectangle         NumberOfSides = 4;         // ↑         // ... Set in constructor     }     public Shape(double side1, double side2, double side3) // Constructor     {         // Shape is a triangle         NumberOfSides = 3;         // ↑         // ... Set in constructor     } }


Is it possible to use a spell scroll with a spell that requires a bonus action to cast?

The DMG contains spell scrolls (on page 200), with the following rule:     If the spell is on your class's spell list, you can use an action to read the scroll and cast its spell without having to provide any of the spell's components.   This is all well and good for spells with a casting time of 1 action (which admittedly is most of them), but for spells with a bonus action casting time, how is it supposed to work?  Does it require:   Both an action and a bonus action?  Just an action? Just a bonus action? Something else I haven't thought of?   In case it needs saying, I'm not interested in speculation here - only RAW-based answers or explicit statements of developer intent should apply.


Python: how to remove duplicates from a list using a set (order is important)

so I have this list: a = [-11, 13, 13, 10, -11, 10, 9, -3, 6, -9, -6, -6, 13, 8, -11, -5, 6, -8, -12, 5, -9, -1, -5, 2, -2, 13, 14, -9, 7, -4]  and by using a set I need to remove the duplicates and also keep them in the same order  I used this code:  def unique(a):     a = set(a)     return list(a)   it does remove the duplicates when I use it but the problem is it returns them in numerical order like this:  >>> unique(a) [-2, 2, 5, 6, 7, 8, 9, 10, 13, 14, -12, -11, -9, -8, -6, -5, -4, -3, -1]   how can I return it in the same order as the original list while removing duplicates using sets?  EDIT:  so I've used this code because it worked:  def unique(a):     seen = set()     return [seen.add(x) or x for x in a if x not in seen]   but can someone explain to me what it does? because I need to make another once but it returns the list without negative numbers, and I can't do that unless I understand what that code does


Does windows 7 stay on the computer or get deleted? if it does delete windows i wont download Ubuntu. So, does windows get deleted? and if not how to i change back and forth between the two?


Why the arc does not fit over the circle if we use -latex arrow tip? Maybe some bug or some bad math computations?    MWE  \documentclass[11pt,margin=2pt]{standalone} \usepackage{tikz} \usetikzlibrary{arrows.meta}  \begin{document} \begin{tikzpicture} \draw         (0:1cm) arc (0: 180:1cm) arc (180:0:1cm and 2cm); \draw         (0:1cm) arc (0:-180:1cm); \draw[->]     (0:1cm) arc (0:  80:1cm); \draw[-latex] (0:1cm) arc (0:- 80:1cm); \end{tikzpicture} \end{document}


Prove that $\tan20^°\tan40^°\tan60^°\tan80^°=3$    \begin{align} \tan20^°\tan40^°\tan60^°\tan80^°&=\frac{\sin20^°\sin40^°\sin60^°\sin80^°}{\cos20^°\cos40^°\cos60^°\cos80^°} \\ &=\frac{2^4(\sin20^°\sin40^°\sin60^°\sin80^°)^2}{\sin 160^°} \end{align}  I am stuck here.


What system can I use for a small scale battle?

I am DMing an homebrew DND 5e adventure. My players are going to defend a village from an orc tribe.  The village will have around 100 armed farmers. Players also gained support of a local dwarven mining expedition (around 30 dwarves), and freed an enslaved kobold tribe from the orcs (about 15 surviving kobolds).  The village will be defended by 100 farmers, 30 dwarves and 15 kobolds against 50ish orcs and 30ish goblins.   They don't know the exact numbers, I will adjust depending on how they will prepare for this.  I took a look at Unearthed Arcana mass combat, but I think it's unlikely to be fun, interesting or balanced for this type of battle.   Some flaws I've identified in Unearthed Arcana for my case:    With units compromising of max 25 units, BR ratings will be extremely low. Most units would be hit once and be dead, or not be hit and nothing happens. For example a unit of 15 orcs (BR 3) against a unit of 20 armed farmers (there is no CR for farmers.. but I would say 1/4, so 20 farmers will have 2 BR) would have a big chance of dying in one hit without causing any damage.  Having 2 or 3 BR will be a huge difference due to the fact that units will either deal 2 BR damage or 5 BR damage. So if a units have 3 BR it has a chance of surviving an attack, while with 2 BR the unit either takes no casualties or is wiped. Movement and speed is multiplied by 10, range is not. This means that archer units will be forced to melee very quickly.   Most of the post about mass combat either suggest to use Unearthed Arcana Mass  Combat rules (which I don't want to use for the reasons above), or design small encounters and objectives around the battlefield.  While the second option could work, I would like to let the players actually command small units around the battlefield. They will spend a couple of sessions preparing traps and strategies to help them in the battlefield (pitfall traps, fires in the fields, ambushes..), and I think they would enjoy to see their result in a "battle" environment.  Is there any system that can let the players play out the battle, more suited to my case?


How do I know whether a noun is countable or not?

I'm new learner and often confused with countable nouns.  Is there any way that I can know whether a noun is a countable noun?  Thanks


Forcing affinity of a program to a certain CPU (big.LITTLE) core irrevocably [C]

I have 8 CPUs being implemented on ARM's big.LITTLE archiectuture. 0-3 as LITTLE CPUs and 4-7 as big CPUs.  I am trying to set the CPU affinity of an executing program using the following code:  // Set CPU affinity to multiple cores void set_multiple_CPU_affinity(int *cpu_nums, size_t n, pid_t pid){   cpu_set_t  mask;   CPU_ZERO(&mask);    for(int i = 0; i < n; i++)   {     CPU_SET(cpu_nums[i], &mask);   }   if (sched_setaffinity(pid, sizeof(mask), &mask) == -1) {     printf("[!] Error in sched_setaffinity");     perror("sched_setaffinity");   }   else {     print_CPU_affinity(pid); // Code to print out CPU affinity set to   } }  int main(int argc, char** argv) {     int controlled_CPU_affinity[] = {4, 5, 6, 7};     size_t n = sizeof(controlled_CPU_affinity) / sizeof(controlled_CPU_affinity[0]);     set_multiple_CPU_affinity(controlled_CPU_affinity, n, 0);     // More code here }   My question is as follows:     When I go on to check using system trace (task monitor), I could see that the CPU affinity of program changes to CPU 3 instead   regardless of setting up the affinity to certain CPUs. How can I force   the affinity to be set to a core till the program finishes execution?


Given an ordered set $X$, say a subset $Y$ of $X$ is convex in $X$ if for each pair of points $a<b$ of $Y$, the entire interval $(a,b)$ of points of $X$ lies in $Y$. An interval is of the form $(a,b),(a,b],[a,b),[a,b]$, and a ray is of the form $(a,+\infty),(-\infty,a),[a,+\infty),(-\infty,a]$. Let $X$ be an ordered set. If $Y$ is a proper subset of $X$ that is convex in $X$, does it follow that $Y$ is an interval or a ray in $X$?  Well, suppose $Y$ has a smallest element $a$ and a largest element $b$. Then $[a,b]\in Y$, and so $Y=[a,b]$ and $Y$ is an interval. What if $Y$ has no smallest element? So for each element $a\in Y$, there exists an element $b\in Y$ such that $b<a$. What then?


Does an HDR environment texture affect the Shadow pass?

I am compositing a scene using a standard process in Cycles, and it worked correctly as long as I had my lighting setup in the scene, however when I switched to HDR, my Shadow pass seems to become a solid black. Why is this, and how can it be avoided?  My node setup:


Prove that $\sum_{i=2}^n \sqrt{i}$ is irrational for all $n \geq 2$

Question: Prove that $\displaystyle\sum_{i=1}^n \sqrt{i}$ is irrational for all $n \geq 2$. My attempts: My first instict was going straight to proving this with mathematical induction, however I'm unsure how this would work as if $n$ if a square number it may be a little problematic with the $n=k+1$ case. Perhaps there is another way of doing it that doesn't require mathematical induction. Any help or guidance would be greatly appreciated!


How to control fan speed in macOS Sierra?

After replacing the hard drive in my 2009 iMac 27", I noticed that the hard drive fan spins at maximum speed since the sensor cable is not plugged in. (The new SSD drive doesn't support it)  To solve this issue, I installed a software called "Macs Fan Control" that can read out the temperature from the SMART status of the drive and control the fan speed itself.   This was a near-perfect solution until I upgrade my system to macOS Sierra. Now both "Macs Fan Control" and also "smcFanControl" can't control the fans anymore and the latter reports that I am running it on an unsupported system.  Now my question is, can I somehow control the fan speed manually using Terminal etc. or do I have to "trick" the sensor hardware-wise?


I wanted to remove some unused filegroups/files in a SQL Server Database but am stuck because SQL Server thinks the filegroups/files are still in use.  Some background:   We had some partioned tables that we converted back to non-partitioned ones All partition-functions and -schemes were deleted I queried the dm views for unused filegroups like this:   SELECT  * FROM sys.filegroups fg LEFT OUTER JOIN  sysfilegroups sfg ON fg.name = sfg.groupname LEFT OUTER JOIN  sysfiles f ON sfg.groupid = f.groupid LEFT OUTER JOIN  sys.indexes i ON fg.data_space_id = i.data_space_id WHERE i.object_id IS NULL   This got me a list of filegroups/files i tried to remove from the database. But some of them could not be removed. Example error message:  The filegroup 'FG_XXXX' cannot be removed because it is not empty.  I was not able to get the connection to tables/indexes for these filegroups via sys.data_spaces and sys.indexes:  SELECT * FROM  sys.data_spaces ds INNER JOIN sys.indexes i ON ds.data_space_id = i.data_space_id WHERE ds.name = 'FG_XXXX'  I am aware that a filegroup can not be removed if it is referenced in some partition scheme. But this cannot be the reason here, as i deleted all partition schemes/functions in the db.   Any hints what i could do to get rid of the filegroups?


Determine limit: $\lim_{x \to -\infty} (\sqrt{x^2 +2x} - \sqrt{x^2 - 2x}) $

Determine the limit of: $$\lim_{x \to -\infty} \left(\sqrt{x^2 +2x} - \sqrt{x^2 - 2x}\right) $$  I've tried a few times, most notably the following two versions. I'm looking for a comment on both, since both amount to a wrong answer.  First attempt  $$L = \lim_{x \to -\infty} \left(\sqrt{x^2 +2x} - \sqrt{x^2 - 2x}\right) $$  I thought it'd be nice to get rid of as much ugliness as possible by moving $x$ out of the roots:  $$ \begin{split} L &= \lim_{x \to -\infty} \left(x\left(\sqrt{1 + \frac{2}{x}}\right)                               - x\left(\sqrt{1 - \frac{2}{x}}\right)\right)\\   &= \lim_{x \to -\infty} \left(x\left(\sqrt{1 + \frac{2}{x}} - \sqrt{1 - \frac{2}{x}}\right)\right) \end{split} $$  Seems simple enough, since $\frac{1}{x}$ should be an (infinitely) small number I thought it could be discarded with regard to $\sqrt1$, yielding:  $$L = \lim_{x \to -\infty} \left(x\left(\sqrt{1} - \sqrt{1}\right)\right) = 0$$  Wrong, Second attempt  Multply both sides with the conjugate: $$ \begin{split} L &= \lim_{x \to -\infty} \sqrt{x^2 +2x} - \sqrt{x^2 - 2x}) \\   &= \lim_{x \to -\infty} \frac{4x}{(\sqrt{x^2 +2x} + \sqrt{x^2 - 2x})} \\   &= \lim_{x \to -\infty} \frac{4x}{x\sqrt{1 + \frac{2}{x}}                                   + x\sqrt{1 - \frac{2}{x}}} \\   &= \lim_{x \to -\infty} \frac{4}{\sqrt{1 + \frac{2}{x}}                                  + \sqrt{1 - \frac{2}{x}}}\\   &= \frac{4}{\sqrt{1} + \sqrt{1}} = \frac{4}{2} = 2 \end{split} $$  Wrong as well... The answer should be $-2$, but I don't get how to 'get the negative' in...


How do I make the x potion in my cauldron?

How do I brew the x potion? I can not figure out the right recipe.


If Y is complete then B(X,Y) is complete

I am reading the proof for this theorem and it goes as follows:  To see that $B(X,Y)$ is complete when $Y$ is complete, let $\left\{ T_n \right\}$ be a Cauchy sequence (of operators) in $B(X,Y)$, that is, $$\|\ T_n - T_m \|\ \to 0 \hspace{.5cm} \text{as} \hspace{.5cm} n,m \to \infty.$$ Then, for each $x \in X$, $$\|\ T_n x - T_m x \|\ = \|\ (T_n - T_m)x \|\ \leq \|\ T_n - T_m \|\ \|\ x \|\ \to 0 \hspace{.5cm} \text{as} \space\ n,m \to \infty$$ which imples that $\left\{ T_n x \right\} $ is a Cauchy sequence in $Y$. As $Y$ is complete, $\left\{ T_n x \right\}$ converges to some vector, denoted by $Tx$ in $Y$. We have just defined a transformation $T: X \to Y$ by $x \mapsto Tx = \displaystyle\lim_{n\to\infty} T_n x$. Linearity of $T$ is clear. Next, we show that $T \in B(X,Y)$ and $T_n \to T$ with respect to the operator norm. For any $\epsilon > 0$ and any $x \in X$: \begin{align*} \|\ (T_n - T)x \|\ &= \|\ (T_n - T_m)x + (T_m - T)x \|\ \\ &\leq \|\ (T_n - T_m)x \|\ + \|\ (T_m - T)x \|\ \\ &\leq \|\ T_n - T_m \|\ \|\ x \|\ + \|\ T_m x - Tx \|\ \\ &< \dfrac{\epsilon}{2} \|\ x \|\ + \dfrac{\epsilon}{2} \|\ x \|\ \hspace{1cm} \exists N \in \mathbb{N} \space\ \text{when} \space\ m,n > N \\ &= \epsilon \|\ x \|\ \\ \end{align*} Therefore, $\|\ T_n - T \|\ < \epsilon$ whenever $n \geq N$. This shows that $T_n \to T$ in operator norm, and that $\|\ T_n - T \|\ \to 0$ as $n \to \infty$, and so $T$ is continuous.   My question: Why is $\|\ T_m x - Tx \|\ < \dfrac{\epsilon}{2} \|\ x \|\ $ ? That is the only part of this proof that baffles me.


Prove that a sum of squares is a CSR modulo prime

How can I prove that a sum of two integer squares, namely $ x^2 + y^2 $ (ranging  from $ x = 0 \to p, \; y = 0 \to p $) is a complete system of residues (CSR) modulo $ p $ (prime)? Or, how can I prove that $ x^2 + y^2 \equiv \left \{ 0, 1, 2, \cdots, p-1 \right \} \pmod p $, for some integers $ x,y $ and all prime values of $ p $?  I've failed to prove $  \left (0, 1, 4, 9, 16, \cdots \right ) $ is a CSR modulo $ p $ , and I feel that this is an important step to solve my question.   I've also tried showing that Lagrange's four-square theorem solves the question, but it obviously gets stuck when $ x^2 + y^2 \equiv z \pmod p $, and $ z $ cannot be expressed as a sum of squares.


Are there any exceptions to the rule stipulating that the article "a" be used (rather than "an") if the following word begins with a consonant?

I know that we should use "an" instead of "a" if the next word (such as a noun) is a vowel.   But I'd like to know if there is an exception to this? One example:  How to install an SSL certificate.   Is the above example incorrect or is an exception? To me, it just sounds right but I don't know if it's correct.


How to create temporary folder in local system using c#

I want to create a temporary folder in  my local system and upload file into that particular folder as ZIP.  Note: the file path is getting from SharePoint document library  Thanks in advance


Short story about a highly intelligent species without any technology

The story describes the society of the species in question and how advanced they are in subjects such as mathematics, but toward the end of the story, it is revealed that      they are a cattle-like species who have no oppose-able thumbs, no arms and no manual dexterity whatsoever. They advance their ideas purely by visualizing and then verbally describing everything to others. Later they enlist the help of a lesser advanced, ape like species to perform manual labor.


Handling special character input for data selection

UPDATE  Following four characters need to be escaped when '\' is the escape helper    %[]_     - LIKE     QUESTION  Though I searched a lot, I could not find out a problem exactly matching the following,  in stack overflow.  I have a database column called Log_Description. It has two records.  1) "Sample % value record"  2) "Sample free record"  I am using SQL Command  and setting parameters as shown below  commandText = commandText + “Log_Description LIKE @Log_Description”; command.Parameters.AddwithValue(“@Log_Description”, “%”+obj. LogDescription+”%”);    Suppose the user enters “%” as search param for txtLogDescription textbox, I need to show only first record. But currently it is showing both the records.    What are the possible ways to overcome this? What are the other characters that may cause such issues with the above code?   Note: I cannot prevent user from entering “%” as input  Note: I am using SQL Server as database  EDIT:   Solution I am using now is       private static string CustomFormat(string input)     {         input = input.Replace(@"\", @"\\");         input = input.Replace(@"%", @"\%");         input = input.Replace(@"[", @"\[");         input = input.Replace(@"]", @"\]");         input = input.Replace(@"_", @"\_");         return input;     }   LINQ approach (with performance hit) is below          Collection<Log> resultLogs = null;           if (!String.IsNullOrEmpty(logSearch.LogDescription))         {             resultLogs = new Collection<Log>();             var results = from o in logs where o.LogDescription.Contains(logSearch.LogDescription) select o;             if (results != null)             {                 foreach (var log in results)                 {                     resultLogs.Add((Log) log);                 }             }         }         else         {             resultLogs = logs;         }


Let $\mathcal{A}$ be the class of all sets and define the relation $R$ on $\mathcal{A}$ as: $A\space R\space B$ iff there is a bijective function $f:A \to B$. Prove that $R$ is an equivalence relation on $\mathcal{A}$.  I know I need to prove bijection by proving injection and surjection, but I don't even know where to start. Any help would be greatly appreciated.


I have a Samsung Galaxy player that has been giving me the message "Charging paused. Battery temperature too high or too low". I left it unplugged and powered down all night, and it still gave me the message as soon as I turned it on. The battery should be at room temperature. I've turned it off and on several times. I've tried removing the battery and putting it back. I have no idea what's wrong. It's been working fine for the past 9 months. Can anyone help?


Works fine in Windows 7 I just put in the dvd and it plays.  I've downloaded VLC for Ubuntu 11.10 and tried playing both the individual vob files (didn't work) and the root directory on the dvd (also didn't work).  I've read something about mounting the dvd as an iso?  Could someone talk me through getting this to work?  For what it's worth they're legit dvds, not copies or anything, so I'm surprised I can't get it to work.  Thanks in anticipation!


How to use online account to control my onedrive?

i have my microsoft account setup. Now how can i make use of it to access my onedrive files. It doesnot show up in nautilus.. Where can i access those documents?


How to find the self-intersection point of $x^x=y^y(x,y>0)$?

As the figure below shows, the graph of the implicit function $$x^x=y^y,(x,y >0)$$ composes of a straight line and an arc, which of the two have an intersection point $P$.    How to find the coordinates $(x_p,y_p)$ of $P$? Does there exist a closed-form solution?


Is there a way to change the weather? Xbox 360

Is there a way to change the weather in Xbox 360 minecraft?  I like working with the sound of the rain and seeing the rain  but it doesn't happen often?  anyway to force a change?  Either using an in-game element or using a program to edit the xbox 360 minecraft save?


Irreducible polynomial over rational numbers.

Prove that polynomial $h(x)=\prod_{i=1}^{n} (x-a_i)+1$ is irreducible over $\mathbb Q$, where $a_i \in \mathbb Z, a_i \neq a_j$ for $i \neq j$. Except for $h(x)=(x-a-1)^{2}=(x-a)(x-a-2)+1$, and $h(x)=(x-a)(x-a-1)(x-a-2)(x-a-3)+1=((x-a-1)(x-a-2)-1)^{2}$   Let's prove irreducibility over $\mathbb Z$. Then we'll use Gauss's lemma to prove irreducibility over $\mathbb Q$. Let $h(x) = h_1(x) h_2(x)$, where $deg(h_1), deg(h_2)<deg(h)$. $h(a_i) = h_1(a_i)*h_2(a_i)=1$. Then $h_1(a_i) = 1$ and $h_2(a_i) = 1$, or $h_1(a_i) = -1$ and $h_2(a_i) = -1$. What can I do next? Does $h_1-h_2$ got $n$ roots?


Sum :$1+ 1/2 +1/3 +1/4 + 1/6 +1/8 \cdots $ , terms are reciprocals of the positive integers whose prime factors are $2$'s and $3$'s.

I tried to break the series into different parts by two different methods   In terms of even and odd (no specific series is obtained in even, only Geometric progression formula can be applied on odd series) In terms that contain powers of $2$ only, terms with $3$ to $1$st power, $3$ to $2$nd power,.. and so on   More specific pattern is obtained in the second method but I can't solve it further.  Help me further with the second method or any other one.  Any method given is appreciated.


How do I increase the amount of shrink size for a partition?

I have a 298 GB HDD and it shows that I have 179 GB free. When I try to shrink my C drive, it will only allow me to shrink 9474 Mb. How do I increase this number? I have already defrag the drive.


Why label encoding for categorical features should not be used for deep learning/neural network?

Many online posts( and ) say label encoding would make NN/DL models think there is an ordering among categories, so it should not be used for categorical encoding for NN/DL models. But wouldn't NN/DL models be capable of modeling any non-linear relationship like XGboost? If this is the case, why NN/DL can't figure out whether or not an ordering is actually present among categories when label encoding is used?


How to add new values to a picklist from apex code

Is it possible to add new values to a picklist from apex code. I my trigger I am getting a set of picklist values now I need to add all these values to a picklist field on my object. Please help me out to get the solution for this issue.


I am finishing my Master's degree in Mathematics and will be enrolled in a PhD program in the U.S. starting from fall. In my country (Russia) we have thesis as a mandatory requirement for all degrees (including BSc and MSc, not just PhD). I hoped that my Master's thesis would be good enough to be published, but my advisor says it is not (I derived some new results, but they aren't very generic and groundbreaking). My Bachelor's thesis was not published too.  My question -- is it bad to have no publications prior to PhD or is it normal to begin publishing only during PhD years? In my view no publications is understandable for BSc students, but I'm not sure about MSc. The question is not about admission (I was admitted to a couple of decent programs this year), but about general timeline and expectations from students in sciences, especially from Master's degree holders.


Performing relate in ModelBuilder for one to many relationship?

I'm not sure how to do this as I don't' think there are any ModelBuilder tools for this task.  I'm not real savvy with Python but basically I want to relate field1 in table A to field2 in table B with a one to many relationship.  So I want all records in table B that match Table A.


Javascript replace SEVERAL broken images until you find a good one

I have seen code for replacing a broken image with javascript using onerror, but I have a situation where I'm not sure what image is going to be available for a replacement, so I need to do multiple checks and I'm not sure how... Here's an example of what I need...    If that image isn't available, I need to check a different location for an image.  that location will be...    If that image isn't available, I need to check,    and finally, if that image isn't available, I use my default image that I know is always available    javascript only please, no jquery


"failed to login: Invalid session (try restarting your game) minecraft error

whenever i try to log into any server with my premium account on the official launcher this error always pops up. i've tried restarting the game, deleting the game and even gone as far as resetting my laptop but nothing works. i'm currently using windows 10 and this has only recently been occurring and i'm wondering why this is happening since the cracked version works perfectly fine on my brothers laptop. any suggestions??  UPDATE: i have found a work around solution that works and enables me to log in fine without this error message. using a VPN (cyberghost 6) i connect to another IP and log into my mojang account from the launcher startup.


Am I missing something, or do varargs break Arrays.asList?

private void activateRecords(long[] stuff) {     ...     api.activateRecords(Arrays.asList(specIdsToActivate));   }   Shouldn't this call to Arrays.asList return a list of Longs?  Instead it is returning a List<long[]>  public static <T> List<T> asList(T... a)   The method signature is consistent with the results, the varargs throws the entire array into the list.  It's the same as new ArrayList(); list.add(myArray)  And yes, I know it's meant to be used like this: Arrays.asList(T t1, T t2, T t3)  I guess what I'm getting at, is instead of the varargs form, why can't I just have my old asList method (at least I think this is how it used to work) that would take the contents and put them individually into a list?  Any other clean way of doing this?


What are the likes and dislikes of the companions?

It's pretty easy to see what Piper enjoys, as I'm currently lock picking my way into her heart. I haven't seen anything that she doesn't like so far. What things do all of the companions like / dislike, so I can make sure never to do those things.


Preserving capitalization in BibTeX titles

I use the LaTeX wikibook a lot and found this  to preserving capitalization in titles, which is to wrap letters (or whole titles) in curly braces. The phrase "In the event that BibTeX has been set to not preserve all capitalization within titles" suggests that I can fix this with a setting, instead of going back into my .bib files and wrapping titles in {}. Is this true?  FWIW, I use natbib and cite mostly journal articles, which tend to have full capitalization except for articles. Thanks!


Can I use two different cards with the same name in Commander?

I have two cards with the same name but different art and the card descriptions on the bottom. The card in question is . It's a white/black land and I'm not sure if I can use both of them, it is the first time I've ran in to this.


I know we can't move at the speed of light, but if we were to travel on a photon how fast would we see other photons going? The speed of light is constant... So do photons see other photons moving at the speed of light?


I am trying to plot the datafile but getting this error

~/project$ plot 'dis_xsq_out.dat' u 1:2:3  Command 'plot' not found, but can be installed with:  sudo apt install plotutils


Best filesystem for use with multiple OS?

what's the best file system to use with windows, osx, and linux that is not fat32. I need a file system that can share large video files with good performance


Why was the entire comment thread to this answer deleted?

The entire comment thread to  was deleted. Can anyone with admin rights see the old thread? [Edit And explain why it was deleted?]  Edit 2 Moving up comments from below: For context, the discussion had stopped, and all of it was clarifying questions about my answer. Plus, isn't there a way for mods to close comments without deleting them? (Someone below suggested moving the comment thread to chat?)  Edit 3 I should be clear about why I care. Given the environment around here recently, and how the culture of the meta community has been portrayed by SE staff, when I see an inexplicable deletion like this, I wonder if an SE employee is intentionally trolling. I've seen this happen in other online communities when management changes happen, and the community is devalued.  Edit 4 A few people have been pointing out reasons why comments, and entire comment threads, sometimes get deleted. It's useful information. That said, the question remains, why weren't the other comment threads on that page touched? Shouldn't there be some consistency about when deletion happens? Inconsistent application of discretionary actions could provide cover to bad-actors, no?   Edit 5 This question got flagged as a possible duplicate of  This is not a question about how comments in general are handled. This is a question about why this particular comment thread was handled in an irregular way. In particular:   The How do comments work? FAQ suggests that "obsolete or chatty comments" are generally the comments that are deleted. The comments in this comment thread were not chatty, and were still pertinent to the answer being commented on. A couple people have pointed out that the nature of meta.stackexchange.com lends itself to longer comment threads. Anyone that browses active questions on this site will see considerable value in the comments of those questions and corresponding answers. So, on this site in particular, does the community feel comments are really just "post-it notes" that should be considered temporary? One of the participants in the comment thread chimed in below, and mentioned that one of the later comments in that thread was flagged. It seems the entire comment thread was nuked out of expediency, because the moderator didn't have the time or patience to review that thread, and didn't seem to just want to delete the flagged comment by itself. Is this something the community thinks makes sense? Worthwhile discussions could easily be destroyed by a handful of trolls in this way.


Export structure and data without a wizard

Using Sql Server 2008 R2 (but I could possibly upgrade if required).  I want to generate scripts for the database structure as well as the data for a schema.   The Generate Scripts wizard does what I want but I need to be able to automate it (so needs to be called from T-SQL or alternatively external program).  How can I do this?


Cannot change directory from within shell script

I want to write a shell script where i change directory and then execute a command inside that directory. How come i cannot change directory? It does not work whenever i do:  #!/bin/bash  cd /something/something   What am i doing wrong? /Daniel


How does bibliography style "alpha" determine its short label?

I'm using BibTex with the style called "alpha."  I am generally happy with the way it creates short labels, and have no desire to edit the style file or use a different style or anything like that.    There are one or two instances though where I would like to manually override the way it shortens names, but there are no obvious ways to do so.  Are there any ways to modify the .bib file that affects the way alpha determines its labels?  Add an extra entry, or put brackets around the names, or put the authors in two seperate fields, or something?  Something that affects just one bibliographic entry, not all of the entries.    For context, if it helps, my specific situation is that I have a lot of citations from the same authors ([ABC19] and [ABC17] etc by Arnold, Bob and Charles), and there is one paper by authors with all the same initials ([ABC18] but now it's Alvin, Brian and Cyril), so the short label is misleading.  The best solution would be to change the label slightly ([AlBrCy18]) so it's immediately obvious this is different people.


can i take a texture from blender cycles into BGE?

I spent a while working on the floor for a forest bump map but it wont work in BGE. Is there any way i can make the bump map work in BGE?


Let $f:\mathbb{R}\longrightarrow \mathbb{R}$ a differentiable function such that $f'(x)=0$ for all $x\in\mathbb{Q}$

Let $f:\mathbb{R}\longrightarrow \mathbb{R}$ a differentiable function such that $f'(x)=0$ for all $x\in\mathbb{Q}.$ $f$ is a constant function?


Visible links inside spoilers in revision history

The spoiler markdown usually does a good job of hiding the content inside them. E.g., consider this year's :    However, oddly enough, if you take a look at the post's , the links are clearly visible "through" the spoiler styling:    System details:   OS: Windows 10 Enterprise, 1803 Browser: Google Chrome Version 78.0.3904.108 (Official Build) (64-bit)


Integrate $\int \frac{dx}{\sqrt{-ax^2 + bx +c}} $

Is there a way to solve this integral?  $$\int \frac{dx}{\sqrt{-ax^2 + bx +c}}, \;\;\;\;\; \forall\; a,b,c \in (0,+\infty) \;in\;R$$  I have tried it by changing of variable and by parts, but no result. I don't know what else to do.  Thanks in advance.


Solving the 2nd order linear differential equation in $LC$ oscillator

I was reading Halliday and Resnick and it had given the differential equation $$L\frac{d^2q}{dt^2} +\frac{1}{C}q=0$$ Now when I attempted to solve this equation, I got $q=Q(\cos \omega t+i\sin \omega t)$ whereas the equation given in the book is $q=Q\cos(\omega t+\phi$). Now I don't understand whether I have made a mistake or my equation is an alternative form. Any help would be appreciated.


Can I switch to polar coordinates if my function has complex poles?

You can think this of the following as a 3d QFT where we try to calculate the self-energy of two fields. $I$ is a this external self-energy and let us assume it does not depend on the loop momenta which I denote a $\vec{x}=(x,y)$. Consider the following propagator  $$ P(\vec{r}) = \frac{x-ia}{2i^2[\,(x-ia)^2+(y-ib)^2+(z-ic)^2]\,} \,\, \gamma_i. $$ Then we want to calculate $$ I(x) = \int \frac{\,dx \,dy\, dz}{(2\pi)^3} \text{Tr} \left( \frac{x-ia}{2i^2[\,(x-ia)^2+(y-ib)^2+(z-ic)^2]\,}\gamma_x \gamma_x  \right), $$ where Tr$(\gamma_i \gamma_j)=2\delta_{ij}$. Therefore  I am trying to resolve the following integral where $x,y,z \in \mathbb{R}$ and $a,b,c$ are constants (internal self-energies if you wish) in $\mathbb{R}$.  Then, after simplifying the propagator $P(x,y)$ we end up with the following expression for the $x$ component:  $$ I = \frac{1}{2i^2} \int \frac{dxdy}{(2\pi)^2} (x-ia) \int \frac{dz}{2\pi} \frac{1}{[\,(x-ia)^2+(y-ib)^2+(z-ic)^2]\,} $$ but it can be shown that  $$ \int \frac{dq}{(q+iv)^2+w^2} = \frac{\pi}{|w|}\theta(|w|-|v|).  $$ (e.g. see here ) Thus we get that for $|(y-ib)^2+(x-ia)^2|>|a|$, $\theta=1$ (for this is what we are interested about) and then we are left with $$ I = \frac{1}{4i^2} \int \frac{dxdy}{(2\pi)^2} \frac{(x-ia)}{|(x-ia)^2+(y-ib)^2|}.   $$ The question is wether I can make the transformation $$ (x-ia) = q \cos \theta  $$ $$ (y-ib) = q \sin \theta $$ in polar coordinates. Then $dx dy = qdqd\theta$ and the previous integral becomes, assuming $|q|>0$, $$ I = \int_0^{\infty} dq \int_0^{2\pi} d\theta \frac{q \cos \theta}{|q|} =0. $$ Is this correct? I am confused since one can find complex poles in the $I$. If not, what would the correct way to resolve this be? I have a suspicion that this integral should indeed give zero but how can we find this?


natbib=true with Biblatex gives brackets when command \citetext{\citealp{}} is used

I'm using biblatex with natbib enabled. I would like to insert some text into multiple citations using \citetext as:  \citetext{\citep{Ginsburg:1988ie}; but see \citep{Allik:1991ft}}    which gives me:     ([Ginsburg & Nicholls, 1988]; but see [Allik, Tuulmets, & Vos, 1991])   However, I would like square brackets deleted. Anyone help?


What JavaScript keywords (function names, variables, etc) are reserved?


Double possession dilemma: should I say “your” or “yours”?

What is the best way to say this?     Because of yours and the John Wichel Foundation’s grant we are able to continue our mission to serve all Texans with diabetes.   Should it be      Because of your and John Wichel Foundation's grant, we are able . . .    OR   Because of yours and the John Wichel Foundation's grant, we are able . . .   It's a double possessive with the word your.  No matter how I write it, it doesn't sound right.


How to invert touchpad scrolling on Ubuntu 16.04

I'm running Ubuntu 16.04 and would like to invert my touchpad scrolling so that moving my two fingers towards the monitor causes the screen to scroll up. Previously, there used to be an option in mouse and touchpad settings that allowed for this. Similarly, gsettings indicates that touchpad configurations are deprecated. Thoughts?  Edit: the xinput command gives this output:  Virtual core pointer                        id=2    [master pointer  (3)]   ⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)]   ⎜   ↳ ImPS/2 Generic Wheel Mouse                id=14   [slave  pointer  (2)]   ⎣ Virtual core keyboard                     id=3    [master keyboard (2)]       ↳ Virtual core XTEST keyboard               id=5    [slave  keyboard (3)]       ↳ Power Button                              id=6    [slave  keyboard (3)]       ↳ Video Bus                                 id=7    [slave  keyboard (3)]       ↳ Power Button                              id=8    [slave  keyboard (3)]       ↳ Sleep Button                              id=9    [slave  keyboard (3)]       ↳ Integrated_Webcam_HD                      id=10   [slave  keyboard (3)]       ↳ AT Translated Set 2 keyboard              id=13   [slave  keyboard (3)]       ↳ DELL Wireless hotkeys                     id=15   [slave  keyboard (3)]       ↳ Dell WMI hotkeys                          id=16   [slave  keyboard (3)]     For some reason, I don't see a trackpad listed. I'm on a Dell Latitude E5570 laptop that definitely has a trackpad. Additionally, no mouse and trackpad options appear to support the trackpad.  Also, looking at the directory /usr/share/X11/xorg.conf.d/, I only see these configuration files:   10-amdgpu.conf   10-evdev.conf   10-quirks.conf   11-evdev-quirks.conf       11-evdev-trackpoint.conf   50-synaptics.conf   50-vmmouse.conf                50-wacom.conf   51-synaptics-quirks.conf


Are buildings currently being upgraded able to function during clan war?

If a war is started and some of my defensive buildings are being upgraded, are they able to defend my base during war?  I know they don't function in normal play until the upgrade is finished, but war bases are different to some degree.


I'm adding a blog to a site. Would it be better for SEO to put it at blog.example.com or at www.exampleblog.com?  I already own www.exampleblog.com .  Would combining the words together to exampleblog have a negative effect?


$V$ is a finite dimensional vector space, $U$ and $W$ are subspaces and $U^0,W^0, (U+W)^0$ are the relevant annihilators. I would please appreciate help proving:          $U^0\cap W^0=(U+W)^0$      I would think that anything that annihilates $(U+W)$  would annihilate $U$ and annihilate $W$. But I am even confused about that in general, given that $\dim V=\dim U+\dim U^0$, the larger the dimension of $U$, the smaller the dimension of $U^0$.   But in that $\dim (U+W)\ge \dim U$, and similarly $\ge \dim W$, I am not even sure of that.  I would appreciate help in proving the highlighted equality as an inclusion of sets in both directions, and also, if possible, using dimensions.  Thanks


Legend only to display what is shown in Print Composer QGIS 1.8.4

I am using the 625k bedrock data from BGS. I have a range of site across scotland.  I have then clipped the file down to within a 70Km radius of each site, a lot of over lapping areas with disintegrated boundaries ends up with most of scotland covered.  However, i have categorised the style of the bedrock data by name.  When i place the legend in there seems to be an awful amount of classes.  Bar going through each layer and ascertaining if it is displayed or not is there a way to display only the parts of the layer you can see in the legend.  Cannot show images due to client confidentiality.


I'm building a small web app in PHP that stores some information in a plain text file. However, this text file is used/modified by all users of my app at some given point in time and possible at the same time.  So the questions is. What would be the best way to make sure that only one user can make changes to the file at any given point in time?


Why disturbance in just electric and magnetic field is not enough to produce electromagnetic waves?

When a charge moves in space with a constant velocity, there is disturbance in electric and magnetic field at all points around the charge.  Magnitude of electric field around the moving charge is changing, the same with magnetic field intensity. So, there is disturbance in both fields and it travels (like a ship with constant velocity producing disturbance in water). But, we say charge with constant velocity doesn't produce electromagnetic waves.  Why disturbance in both fields ( and propagating too ) doesn't create electromagnetic waves? When we say a wave is electromagnetic?


How does XeTeX typeset (math) symbols which are input as unicode?

I'm considering moving to Xe(La)TeX for the main reason that it allows me to use unicode in my LaTeX code, making said code easier to read, especially the math.  But I'm confused on how XeTeX typesets symbols based on my input. I see three possibilities:   Unicode chars are made active and XeTeX outputs the TeX symbols we know and trust. Unicode chars are piped (directly) through to the final (pdf, ps, dvi) document. A combination of the two.   With one of the advertised points of XeTeX being direct access to system UTF-8 fonts, I'm guessing (2) has a lot to do with it.  Beautiful Typesetting  But TeX has always been about beautiful typesetting, and a lot of effort has gone into making symbols and their spacing look good. Do we still get the same benefits with unicode output? (Do the symbols look the same? Nicer? Worse?) I believe some symbols do not come directly from a font, but have been painstakingly crafted in TeX itself.  Specifics  There are specific math constructs that get special treatment in TeX but also have unicode symbols. For example, for \cap and \bigcap there are respectively ∩ and ⋂. Do they both behave accordingly? What about √? Or are there packages that implement this sort of thing?  Are most unicode math symbols interpreted correctly with regard to math spacing? (\mathbin, \mathrel, \mathop, \mathopen, \mathclose)  Do math delimiters derived from unicode ⦃⦄ ⦅⦆ scale vertically as they should?  Are  handled appropriately?  Portability  Will the output be different when the code is compiled on different systems? Will my generated pdf/ps/dvi look different when viewed on different systems? Or are all relevant fonts automatically included?  unicode-math  Finally, what role does unicode-math play in this story?


I don't really know where to post this.  I like Stack Overflow and it has been a great help as I build various applications - all with no formal training in computer science.  My concern is that I find many questions downvoted or criticized for being poorly worded or too simplistic.  I realize that often a Google search will reveal an answer, but is this site and its boards meant solely for folks who have already searched the internet for an answer? I thought this was an open forum for any code related question?  Why should Google or some other source be used prior to seeking advice from the dedicated and experienced Stack Overflow community?  Many of the questioners on this site have limited English, limited access to education or other issues. This site is supposed to be the solution for this, no?  I learned to code primarily by reading and posting to a message board called on  (this was 10+ years ago).  The help and advice I got, despite some VERY, VERY dumb questions by me, helped me build and sell a large website.  Anyway, I see lots of new questions on the PHP tag with negative scores within minutes of being posted as if they are "dumb" questions, when I find that they are honest questions by people who simply need help.


How to re-add click listener after dynamically changing innerHTML?

I'm trying to convert  tags into  tags in a Shopify store in content that's dynamically loaded through a 3rd party app, meaning the HTML is added after the page finishes loading.  Before I do the conversion, the  tags already have 'click' event listeners added to them through the 3rd party script.  My current code looks like this:  var widgetHTML = $(".cbb-frequently-bought-selector-list").html(); widgetHTML = widgetHTML.replace(/<a /g, '<span ').replace(/<\/a>/g, '</span>'); $('.cbb-frequently-bought-selector-list').html(widgetHTML);   After this code executes, the original 'click' event listeners are gone.  Is there a way to temporarily save a reference to all existing 'click' event listeners on all  tags, then execute the above code, then add the 'click' event listeners back onto the new  tags that replaced the  tags?


I have a math homework where it's being asked to prove that :  $$\forall a \geq 0,\sqrt{a}\leq\frac{1+a}{2}$$  However, I don't have any idea how I should start this one...  Any idea ?


$|G|=p(p+1)$ for $p$ prime, then $G$ has a normal subgroup of order $p$ or $p+1$

I am trying to solve the above question, as an application of Sylow's theorem.  Let $P$ be the p-Sylow subgroup. Then $n_p | (p+1)$ and $n_p \equiv 1 \pmod{p}$. If $n_p =1$, $P$ is normal and we are done, else $n_p = p+1$. Now,   \begin{equation} 1+n_p(p-1) = 1 + (p+1)(p-1) = p^2, \end{equation} is the total number of elements in the p-Sylow subgroups. So if $n_p = p+1$, that means the number of elements not in any p-Sylow subgroup is $|G|-p^2=p$. If these $p$ elements and the identity form a subgroup then its a subgroup of the smallest prime index, so we are done.   But how do I show that all the elements not in the p-Sylow subgroups form a subgroup, i.e. the subgroup generated by these elements has trivial intersection with the $p-$Sylow subgroups?


Replace just the text on a web page via Jquery

Using Tampermonkey I want to reverse the text on the bbc news website (why? because), obviously this is locally only. I have already written something to replace a part of it, the problem is accessing all the text on the page. Is there an efficient way of doing this in JQuery?  e.g. I have a reverse() function, given:
   Text1   Text2   <fieldset>     <legend>Text3</legend>   Is there some way of targetting Text1, Text2 and Text3 without touching anything else? I can write something to explicitly check the tagName while traversing the DOM and hope there's a text type, or something similar, but I'm wondering if JQuery already has something for doing this?  thanks


Find files in directory with paired names

I'm running tests of a variable-size-and-contents test set. Data files are added and removed frequently. I'm looking for an automated way of gathering a file list.  All files are in subdirectories of D; I need the full directory and name added to a text file. However, I only need those files that have a "paired" file, which has the same filename but a different extension (so... different filename, but in a structured way). So, if there is a MyFileName.A and MyFileName.B, then I want D/.../MyFileName added to the file list.  There are .A files without .B files, but no .B files without .A files. If a .A has a .B file, then both files are in the same directory.   Any advice?


I installed VLC player on my Ubuntu 14.04 system. DVD movies won't play (no sound or picture) even though the computer tries to start the movie. What's wrong? Is the version wrong for Ubuntu 14.04?


def fib(max):     n, a, b = 0, 0, 1     while n < max:         yield b         a, b = b, a + b         n = n + 1          return 'done'  print(next(fib(6))) print(next(fib(6))) print(next(fib(6)))   the result is 1，1，1. However, if I change the content in print() as below:  f = fib(6) print(next(f)) print(next(f)) print(next(f))   the result will be 1, 1, 2. Why does this happen?


Text Input Created from $(document).ready Get Keypress Function

I have a function in my JavaScript/JQuery that populates a form on $(document).ready.  $(document).ready(function build_item_table() {     for (var x = 1; x <= 20; x++) {         $('#item_table tbody').append("
");         $('#item_table tbody').append("<select id=\"item_" + x + "_budget\" name=\"item_" + x + "_budget\" class=\"item_budget\" width=\"110px\"><option>Loading...</option></select>	");         $('#item_table tbody').append("<input type=\"text\" id=\"item_" + x + "_code\" name=\"item_" + x + "_code\" class=\"code_textbox\" size=\"20\">	");         $('#item_table tbody').append("<input type=\"text\" id=\"item_" + x + "_description\" name=\"item_" + x + "_description\" class=\"desc_textbox\" size=\"83\">	");         $('#item_table tbody').append("<input type=\"text\" id=\"item_" + x + "_quantity\" name=\"item_" + x + "_quantity\" class=\"cost_textbox\" size=\"7\" value=\"0\" required>	");         $('#item_table tbody').append("$&nbsp;<input type=\"text\" id=\"item_" + x + "_unit\" name=\"item_ " + x + "_unit\" class=\"qty_textbox\" size=\"10\" value=\"0.00\" required>	");         $('#item_table tbody').append("$&nbsp;<input type=\"text\" id=\"item_" + x + "_total\" name=\"item_" + x + "_total\" class=\"cost_textbox\" size=\"10\" value=\"0.00\" required>	");         $('#item_table tbody').append("
");     } });   However, I want to validate the some of the text inputs via this function (btw, I take no credit for this function since I found it on here from this great community):  $('.cost_textbox').keypress(function(eve) {   if ((eve.which != 46 || $(this).val().indexOf('.') != -1) && (eve.which < 48 || eve.which > 57) || (eve.which == 46 && $(this).caret().start == 0) ) {     eve.preventDefault();   }  // this part is when left part of number is deleted and leaves a . in the leftmost position. For example, 33.25, then 33 is deleted $('.cost_textbox').keyup(function(eve) {   if($(this).val().indexOf('.') == 0) {         $(this).val($(this).val().substring(1));   }  }); });   This works for the Input Textboxes generated in the HTML code, but not to the ones appended in JavaScript. How do I fix this? Thanks in advance.


so Basically I an working on this project car registration and I find difficulties in changing part of the page so I used the boarder pane to and I reached a point that I can change the middle pane but to null I believe that the problem comes from here This is my code: private Pane view; @FXML public Pane getPage(String fileName) {     try {         URL fileUrl = App.class.getResource("/org.example/" + fileName + ".fxml");         if (fileUrl == null) {             throw new java.io.FileNotFoundException("FXML file can't be found");         }         view = new FXMLLoader().load(fileUrl);     } catch (Exception e){         System.out.println("No page " + fileName + " please check FxmlLoader.");     }     return view; }  This is where I believe the problem comes from: URL fileUrl = App.class.getResource("/org.example/" + fileName + ".fxml");  because I get (No page addingACar.fxml please check FxmlLoader. ) my question is I am not sure how to reach the file I assigned as a URL


jquery click event not working after append method on li

after ajax call and appending data my onclick function isn't working. and also it wont give any error too its just not clickable anymore here is my code AJAX Code:  function get_uni()  { loc_name = document.getElementById('location_name').value; loc_id = document.getElementById('location_id').value;   console.log(loc_name);    jQuery.ajax({      type : "post",      dataType : "json",      url : '<?php echo admin_url("admin-ajax.php"); ?>',      data : {action: "uni_locations", loc_name : loc_name , loc_id : loc_id },      success: function(response) {         if(response.type == "success") {           console.log(response.data);           jQuery('#myList_uni').empty();           jQuery('#myList_uni').append(response.data);         }         else {             console.log(response.error);         }      }   })   }  AJAX Action logic $html = "";  $location_id = $_POST['loc_id'];  $serialize_location =  serialize($location_id); $args = array(      'post_type' => 'universities',      'posts_per_page' => -1,          );  $query = new WP_Query($args);  if ($query->have_posts() ) :      while ( $query->have_posts() ) : $query->the_post();           $html.='
                          '.get_the_title() .'
';   endwhile;  wp_reset_postdata();  endif;            $result['type'] = "success"; $result['data'] = $html; $result['error'] = "error";  onclick jquery $('.field-detination_uni').each(function () {     var parent = $(this);      var dropdown_menu = $('.dropdown-menu', parent);     //console.log(parent);     $('li ', dropdown_menu).on('click', function () {         console.log('cde');         $('.destination', parent).text($(this).find('span').text());        //my_nav         $('.val_in_uni').val($(this).find('span').text());         $('input[name="uni_location_name"]', parent).val($(this).find('span').text());         $('input[name="uni_location_id"]', parent).val($(this).data('value'));         if (window.matchMedia('(max-width: 767px)').matches) {             $('label', parent).hide();             $('.render', parent).show();         }         dropdown_menu.slideUp(50);     }); });  kindly tell me what i am missing .. after appending data onclick not working on li. but before appending li onclick working alright. thanks in advance


I would like to get some outside opinions on if this candle holder model would be acceptable to be described as "game ready", and if not, what you think is missing. Verts: 4987 Faces: 8673, no non-manifolds, hand made uv + textures included (feel free to also give feedback to the uv unwrapping). Blender File:  Screenshot of the textured model:  Thank you!


Trying to write a python code to encrypt a string.  Encrypts the string and output is an encrypted string.  print "Enter the string " a=raw_input() e='' i=0 while i<len(a):   c=''   c+=a[i]   f=ord(c)   if i%3==0:     if f>21:       e+=chr(f-21)     else:       e+=chr(f+5)   elif i%3==1:     if ord(c)>24:       e+=chr(f-24)     else:         e+=chr(f+2)      else:     if ord(c)>21:       e+=chr(f-20)     else:       e+=chr(f+6)          i=i+1   del c  print e      But when on running this script, error comes.  e+=chr(f-24)            ^ IndentationError: unindent does not match any outer indentation level


I have seen several answers but they all talk about echo. How can I change the color of an output of a command in bash? For instance, I want to colorize the output of hostname command.  $ hostname  Nameofcomputer <--- Just the output to be colored and then it returns to default color of the shell.


"From the above analysis, we can see that" VS "From the analysis above, we can see that"

What is the difference between this two sentences? I looked into the google,and found that these two sentences are used.


How to increase Ubuntu font and icon size?

I installed VirtualBox (version 5.2.18) on my Windows 10 laptop.  There I am running Ubuntu 18.04, the OS in general looks small. I've tried changing resolution but it didn't work as I expected. Then I used Unity Tweak Tools to change font size and it sort of work for some programs but not all and anyways the icons still look pretty small.  Here is a photo of how it looks   Screenshot of my Desktop   How can I make it look bigger in general?


I came across  on SharePoint StackExchange and noticed that the accepted answer was ranked second:    Refreshing the page will swap it between first and second position randomly as if it just had the same votes as another answer and wasn't marked as accepted.  I've never seen an accepted answer in anything other than first position. The only strange thing I can see about this answer is that it appears to be answered and accepted by the same person that asked the question and that that person's account no longer exists.


Hide application task from taskbar but keep window visible in Windows 7

I want to hide a certain application (in this case Chrome) from the taskbar in Windows 7 64-bit but keep the window visible (the window is running permanently visible on a 2nd monitor and I don't want to be bothered by the taskbar icon all the time.).   Anyone did manage to do this somehow?  This is not a duplicate. Please read carefully. The mentioned duplicate topic does not solve the issue (keeping the window still visible). That is why I asked this question, again.


Why did JK Rowling choose the name 'Hogwarts'?

A follow on from , I'm wondering, has JK Rowling ever commented on why she chose to name the school Hogwarts in particular?


What is the difference between Elliptic curves and Hyper-elliptic curves in terms of security?

What is the difference between Elliptic curves and  curves in terms of security? I am relatively new to cryptography and have heard a great deal more about Elliptic curves than Hyperelliptic curves.  Why are Hyperelliptic curves not so prevalent in use?


Given $A\cap \overline{B}\neq \emptyset$, prove $A\cup B$ connected.

$A,B$ are connected subsets of a topological space $X$.  What I've tried:  As $B$ is connected, so is its closure $\overline{B}$. We have:  $\overline{B}\cap A\neq \emptyset$  $\overline{B} \cap B\neq \emptyset$   hence, $\overline{B}\cup A \cup B$ is connected. However, this isn't what I want.  I was thinking of trying to show that $A\cap \overline{B} \neq \emptyset$ implies $A \cap B \neq \emptyset$, though I don't think this would be true if $A$ is closed.  Any hints?


Having no password on windows 7 log in physically, but with password through RDP

I am trying to make my main desktop be able to reboot right into the desktop without asking for a password, but I still want to be secure when I'm accessing it remotely. No one is ever going to physically touch my PC except me, but security is security dealing with Remote Desktop.   How can I enable RDP without having to type the password locally?


I recently starting learning JS so a beginner level answer would be great! Thanks.   function contains(arr, item) {    // check to see if item is inside of arr    // return true if it is, otherwise return false  }


Show that the intersection of two convex sets is convex.

proof. Let $A$ and $B$ both be convex sets and $A \cap B \ne \emptyset$. Then suppose that $p,q \in A\cap B$. Since $p,q \in A \cap B$, it follows that $p,q \in A$, a convex set. Then $p + (1-\lambda)q \in A$. Since $p,q \in B$, also a convex set by assumption, $p+(1-\lambda)q \in B$. Thus, $p + (1-\lambda)q \in A \cap B$. QED  I wanted to know if everything looks okay, or if anything needs to be improved?


Finding the inverse of an integer a in Z_n

So I'm trying to find the inverse of $24$ in $\mathbb{Z}_{35}$. I know this means that there must be some $ab \equiv 1 \pmod{n}$ But when I try this: $24b \equiv 1 \pmod{35}$ $1 = 35*0 + 1$ $24b = 1$ $b = 1/24$ But this isn't an integer, so I'm not sure what I'm doing wrong here.


Slang: "finite value" meaning non-vanishing. Historical reasons behind this

Is any way to sort out the disciplines of physics where one understands under "finite value" a value that cannot be zero? Is any historical justification for this contradictory terminology?


Where to download models to run in ModelBuilder?

I am wondering if there is a website where I can download models to run in ModelBuilder?   A place where people post and share different geoprocessing models to be run inside of ModelBuilder.


Show that there are only two types of subgroups in R , either Discrete or Dense?

Show that there are only two types of subgroups in $\mathbb{R}$ , either Discrete or Dense?


How does a wizard read another wizard's spellbook?

To prepare spells from another wizard's spellbook you have to be able to read it. Since there is no read magic spell (like in previous editions), how does a wizard read another wizard's spellbook?


python 2.7 Possible bug in list operations or equality operator

I am using python 2.7.10 from Anaconda 2.2.0, on Ipython Notebook, and am observing the following apparent bug (see code below).  The same operation on two equivalent lists produces two unequivalent lists.  If it is intended that the two lists are supposed to behave differently because of the different ways that they are initiated, then an equality comparison of the two lists should not evaluate to True (because A == B <=> F(A) == F(B)) . To my mind, this must be a bug either in the list object definition, or the equality operator implementation. Can somebody please confirm that this is a bug and tell me the best way to call this to the community's attention?   > test = [[]]*3  > testtwo = [[],[],[]] > print(test) > print(testtwo) > print(test==testtwo)  [[], [], []] [[], [], []] True      > test[1].append(2) > testtwo[1].append(2) > print(test) > print(testtwo) > print(test==testtwo)  [[2], [2], [2]] [[], [2], []] False


How do I suppress the date line from 2-line java.util.logging output?

I'm using the Java default logger, and right now it's printing a lot of useless trash to the output, here is a example, this line of code:  log.info("Logging pointless information...")   Will output all of this:  Oct 26, 2011 9:37:57 PM java.util.logging.LogManager$RootLogger log INFO: Logging pointless information...   I don't need to know anything except that second line. How can I remove this trash? All I want is simple text logging.


Deleting subdirectories without remove their content?

I have a directory called music who have many albums and separate tracks. Some of them are in subdirectories. What I want is remove this folders and mix all tracks in the music directory without separations.  Will be hard do this manually, so I am looking for some  command.


How do I measure the variability in time time-series power consumption patterns?

Figure 1: X-axis represents the time (0-23 hours) and Y-axis represents the electricity consumption in kWh. I am working with time-series power consumption data. Figure 1 shows the shapes of one user on Wednesday, Thursday and Friday. All the shapes look different that indicates the stochastic behavior of that user. I want to measure this variability in load shapes. My ultimate goal is to quantify the difference in consumption patterns across days. What kind of statistical techniques I can use for the same? Is there any library/package available in python/R? Please help me in this regard.


With the standard notations, what's $|Z(Sym(n))|$ equal to, in terms of $n$?


What is the accepted typography for latin phrases?

In an academic article, i'm using a lot of latin phrases both abbreviated (i.e., e.g., etc.) and spelt out (de facto, in situ...). I know that in certain languages, the most commonly accepted form is to write the latin phrases in italics. What is the standard for English ? Should I set all the latin phrases in italics? Only the spelt out forms?


Which one is correct: FAQ page OR the page FAQ

In situations that you want to talk/write about a noun that is the name of a specific instance (like FAQ) of a common noun (like page) which one is correct:   common noun + specific noun like the page FAQ specific noun + common noun like the FAQ page   I have seen both of the above. I know that FAQ page (grammatically called noun adjunct) is more common but I want to know if both are grammatically correct. What is the first one grammatically called? There are a lot of similar cases like:   the site Stackoverflow vs. Stackoverflow site the library Struts vs. Struts library the column Modify Date vs. Modify Date column the button Cancel vs. Cancel button   To clear my gray area, it's worth mentioning that the specific noun is not always a proper noun like the following examples:   the word stack vs. stack word (stack is not a proper noun) the compound noun "chicken soup" vs. "chicken soup" compound noun ("chicken soup" here is not considered the name of a food but just a sample of a compound noun so it is a proper noun)


Should one scale the full dataset or the training set directly

I'm following a MOOC at the moment and they seem to suggest when scaling it's best to scale the training data first and then use the training set's parameters to scale the test set.  I see no reason for that, why not just scale the full dataset from the start, it will give us the most complete information on the shape of the data won't it ?  I suppose it doesn't make much of a difference as long as the sample size is not too small, but they use this strategy on a small dataset so I'm confused and would like to know if there is some consensus.


creating a shortcut in a folder in Ubuntu 14.04

Changed some names to be more accurate.  I have an app that I can run from terminal.  The app exists in a folder in my home directory named ZereneStacker.  The name of the app is also ZereneStacker.  Right now, I only know how to run it from terminal and I do that like this.    cd ZereneStacker ./ZereneStacker.bsh   It runs fine this way.  I created a .desktop file in /usr/share/applications and named it zerene.desktop.  I made it executable. Here is the contents of zerene.desktop:  [Desktop Entry] Version=1.0 Name=Zerene Focus Stacker Comment=Focus Stacker GenericName=Focus Stacker Exec=./ZereneStacker.bsh Path=~/ZereneStacker Terminal=false Type=Application Categories=Photography StartupNotify=true   I stole most of this from another working .desktop file. When I try and click on the icon in /usr/share/applications, I get "There was an error launching this application".  Since I know it loads fine when I do it form the terminal command line as outlined above, I know the problem is with what I did and not the program.  Sorry I tried to be generic in the original message to "simplify" only to have that backfire on me now.


Determining $\mbox{tr}(A)$ and $\det(A)$ as functions of the eigenvalues of a matrix

So if I have an $n\times n$ matrix $A$ that is diagonalizable then how do I determine $\mbox{tr}(A)$ and  $\det(A)$ as functions of the eigenvalues of the matrix?   For  $\det(A)$, I know the formula for eigenvalues is $\det(A−tI)$ which would be  $$(-1)^n(t-\lambda_1)\dots (t-\lambda_n)$$ where $\lambda_i$ are the eigenvalues of $A$.   For $\mbox{tr}(A)$ could I also do something similar to that? I'm just not sure how this question works.


Filters and their refinements vs nets and their subnets

True or false? a) Let $(x_{\alpha})_{\alpha\in A}$ a net over a space $X$ and $(x_{h(\beta)})_{\beta\in B}$ a subnet, where $h:B\to A$ is monotone and final. Let $\mathcal{F_1}$ be the filter generated by $(x_{\alpha})$ and $\mathcal{F_2}$ the filter generated by $(x_{h(\beta)})$. Then $\mathcal{F_2}$ is a refinement of $\mathcal{F_1}$. b) Let $\mathcal{F}_1\subseteq \mathcal{F}_2$ two filters over $X$ and $(x_{\alpha})_{\alpha\in A}$ the net generated by $\mathcal{F}_1$, and $(y_{\beta})_{\beta\in B}$ the net generated by $\mathcal{F}_2$. Then $(y_{\beta})_{\beta\in B}$ is a subnet of $(x_{\alpha})_{\alpha\in A}$.  a) Let $F\in\mathcal{F}_1$. Then there exists $\alpha_0\in A$ with $\{x_{\alpha}:\alpha\ge\alpha_0\}\subseteq F$. By cofinality, there exists $\beta_0\in B$ such that $h(\beta_0)\ge\alpha_0$. By monotonicity, $\{x_{h(\beta)}:\beta\ge\beta_0\}\subseteq \{x_{\alpha}:\alpha\ge\alpha_0\}$ and so $F\in\mathcal{F}_2$. So $\mathcal{F_1}\subseteq \mathcal{F_2}$, hence $\mathcal{F_2}$ is a refinement of $\mathcal{F_1}$. b) This is harder, so I think it is false. To clarify, here $A=\{(p,F):p\in F\in\mathcal{F}_1\}$, where $(p_1,F_1)\le (p_2,F_2)$ iff $F_2\subseteq F_1$ and $(x_{\alpha})_{\alpha\in A}$ is the net defined by $x_{(p,F)}=p$. Same way it is defined $(y_{\beta})_{\beta\in B}$. I don't really know how to show $(y_{\beta})_{\beta\in B}$ is a subnet of $(x_{\alpha})_{\alpha\in A}$. Anyone knows if there's a counterexample?


The question is: prove that  $$\int^{\infty}_0\frac{x\sin(rx)}{a^2+x^2}dx=\frac{\pi}{2}e^{-ar}$$  This is what I've got so far:  Let $I(r)=\int^{\infty}_0\frac{x\sin(rx)}{a^2+x^2}dx$  $I'(r)=\int^{\infty}_0\frac{x^2\cos(rx)}{a^2+x^2}dx$ = $\int^{\infty}_0\cos(rx)dx-\int^{\infty}_0\frac{a^2\cos(rx)}{a^2+x^2}dx$  $I''(r)=\int^{\infty}_0-x\sin(rx)dx+\int^{\infty}_0\frac{xa^2\sin(rx)}{a^2+x^2}dx$  $I''(r)=\int^{\infty}_0-x\sin(rx)dx+a^2I(r)$  I think I'm supposed to form a differential equation and solve it by letting $I(r)=c_1e^r+c_2e^{-r}$, but the problematic part is this: $\int^{\infty}_0-x\sin(rx)dx$. I don't believe it simplifies to any constant and the differential equation doesn't solve nicely.   Hints/suggestions appreciated!


Using VHDL code to design a JK Flip Flop

I'm using quartus II to design a JK Flip Flop. However, my results show unknown output. Why is it?  Intended design circuit:    VHDL code:  library IEEE;  use IEEE.STD_LOGIC_1164.ALL;  entity JKFlipFlopGate is     port(         J,K,Clk : in std_logic;             --JK Flip-Flop gate input 1 & 2         Q,Qbar : out std_logic              --JK Flip-Flop gate output     ); end JKFlipFlopGate;  architecture result of JKFlipFlopGate is         signal out1,out2,out3,out4 : std_logic;  begin     out1    <= NOT(J AND Clk AND out4);                      out2    <= NOT(K AND Clk AND out3);      out3    <= out1 NAND out4;     out4    <= out2 NAND out3;      Q       <= out3;     Qbar    <= out4;     end result;


I fly in from Sweden with United to Newark Liberty Airport. The connecting flight with United departs to Costa Rica a few hours later from Newark as well. The two flight-segments are part of the same trip and ticket.  I was hoping to stay in the same terminal but am suspecting that it wont be as straightforward as I had hoped - reading through the older posts it seems that a transfer is needed from A to C but it's not fully clear.   Do I need to pass through immigration? Do I need to fetch our bags? Even if my bags have tags all the way to SJO? Do I need to change terminals? Which terminal would I arrive in? Depart from?


Why does the voltage drop at each resistor remain the same in a parallel circuit?

Voltage is defined as Joules/Coulomb. Thus the energy that each electrons carries is higher the higher the voltage translating in higher kinetic energy or higher current. If an electron moves through a resistor with high resistance it should lose more kinetic energy by bumping into other atoms giving up thermal energy. However in a parallel circuit the voltage drop remains always the same at every resistor no matter what the resistance is. I just cannot figure out why.


Is it preferable to subset data to test specific hypotheses or specify a full model and run contrasts?

Let's say I have a 2x2 design where participants are either in condition A or condition B and, within each condition, either get exposed to exposure C or exposure D. First, I want to test whether exposure D > exposure C, within each condition. I can do one of two things. First, I can subset the data to the appropriate condition and check the coefficient on a dummy variable set to 1 for exposure_d. lm(outcome ~ exposure_d, data = subset(data, condition == "A") lm(outcome ~ exposure_d, data = subset(data, condition == "B")  Or I can specify a full model and run a contrast library(emmeans) model <- lm(outcome ~ exposure_d * condition_a, data = data) means = emmeans(model, ~ condition_a | exposure_d) contrast_table = contrast(means, method = "pairwise")  Are these methods formally equivalent? I tested the two on simulated data and they seem to produce identical coefficients and standard errors, but I worry things might change when I start adding in more control variables (especially since the contrast() function throws the warning that the cell means and standard errors may not be accurate in the presence of interactions). Which of these methods is preferred?


Non italic text in theorems, definitions, examples

What package should I use, or what setting can I make to the font in theorems so that the text wouldn't be italic. I use amsmath, and from default, everything I write in theorem environments becomes italic and I don't want that. Thank you


EDIT:  Please read the whole post before automatically down voting. I KNOW the diagram is crap.  That is what I am asking about.  It isn't my diagram.  Original post:  I Web searched a bit and searched this site, but I didn't really see a good answer.  I thought line level voltage was insufficient to switch a transistor and I thought an audio signal coming out of an amp or preamp was a sine wave anyway.  I thought those things made the seemingly simple idea of driving LEDs to pulse with sound or music a little more difficult.  Microphone input -> preamp -> rectify it to make a nice fat on/off dc signal -> drive something.  But I see this:    with a circuit that looks like:   I see other circuits (one at Instructables I think) that essentially do the same thing- connect the line level voltage directly to some transistors.  My question: I haven't a clue what is going on here.  Why does this work- or does it really?  What is happening?  Is it that the "audio source" is really headphone/speaker level and not the line level it may be billed at and thus enough to saturate the transistor?  Does this look like a recipe for disaster?    EDIT:  Trying to focus things per Red Gritty Brick.  I know the diagram is crap.  How would you do it right?


Misplaced noalign when using >{\centering}

I have the below code, and I want to center the col. elemnts so I used {||>{\centering}p{0.5\textwidth}||>{\centering}>p{0.3\textwidth}|}, but I got this error "\misplaced noalign" for the \hline command .. any idea how to fix the problem?. \begin{table}[h]         \label{1}         \begin{tabular}{|p{0.5\textwidth}|>p{0.3\textwidth}|}             \hline             \rowcolor{Gainsboro!60}             Student Name &Student ID \myhash \\             \hline             & \\             \hline         \end{tabular} \end{table}


Non-decreasing sequence of random variable convergence in probability implies it also converges almost surely.

The problem stated as follow:     Suppose $X_1 \leq X_2 \leq \cdots$ and $X_n \xrightarrow[]{p} X$. Show that $X_n \to X$ a.s.   I'm think about may be use the continuity of probability measure, but I don't know if that's correct.


How do I install Ubuntu on my Mac PowerPC G5

How do I install Ubuntu on my powerpc G5? which version do I download? where do I download it from? and how do I get it to install? I tried burning ubuntu powerpc 12.04 and booting from the cd and all I get is a DOS like setup prompt "boot:" I've tried 'live' and everything else listed when I push tab; but, every time I get a bunch of white text on black screen, then black text on white and then my monitor just goes black and nothing happens??? what am I doing wrong? any suggestions?


On Ubuntu 18.04, internal speakers work while headphones have no output

I have a Dell Inspiron 14 3000 Series. I just installed Ubuntu 18.04 dual booted with Windows 10.  The output of the speakers and headphones work just fine when booted to Windows 10, but when I boot into Ubuntu, the output of the speaker works while the headphones do not.  Pavucontrol shows sound from Rythmbox and that the headphone output is at 100%. I assume this means the headphones are being detected.  The headphones do work with other devices.  This question was asked more than one times before me on this site.


Do the Euler equations (where $I_1,I_2,I_3$ are principal moments of inertia):  $$I_1\dot{\omega}_1+(I_3-I_2)\omega_2\omega_3=M_1$$ $$I_2\dot{\omega}_2+(I_1-I_3)\omega_3\omega_1=M_2$$ $$I_3\dot{\omega}_3+(I_2-I_1)\omega_1\omega_2=M_3$$  in their above general form have a Lagrangian? If not, does a specific case of $\omega_1=\omega_2=0$ (and so $M_1=M_2=0$) have a general Lagrangian? ($M_3$ is the torque coming from a central gravitational potential - a planet - keeping the body (a satellite) on an elliptic orbit.)


Problem about a process with bins of balls

A friend of mine give me this problem for fun:  Given $\frac {n(n+1)}{2}$ balls, first we divide arbitrarily these balls in baskets, after that we make another basket with one ball of each basket e do this procedure infinitely.  I want to prove that one time this stabilizes with 1 ball in one basket, 2 balls in another basket, ..., n balls in another basket.  It seems easy to solve, he says we can use some concept of energy (???), I'm trying with some concepts of combinatorics without any success.  Thanks in advance.


Xelatex has problem in generating pstricks tex file with colors

I have a piece of simple tex code which compiles on all of my computers. But it doesn't show properly on my laptop  \documentclass{standalone} \usepackage{pstricks-add}  \psset{gridcolor=green, subgridcolor=yellow} \begin{document}    \psset{unit=1cm} \centering \begin{pspicture}(-7.5,5.2)(7.5,8.4)   \psgrid   \rput[B](0,8){     \psframebox[linestyle=none,fillstyle=solid, fillcolor=gray!20]{       \Rnode{A0}{$a_0$}       \Rnode{A1}{$\cdots$}       \Rnode{A2}{\color{red} $a_{t-2m-1}$}       \Rnode{A3}{$\cdots$}       \Rnode{A4}{$a_{t-m-1}$}     }   } \end{pspicture} \end{document}   Here I show the problematic result:    It should have a frame box around the content in gray color. Also, it should have shown the grid. I am using Texlive 2014, the most updated version. I compared the log files for the correct result and wrong result, which are exactly the same. No error reported. However, I don't know what is wrong.   Using latex and then dvipdf could get the right file.  I have delete the texlive and reinstalled. Nothing changed. It seems that something related to the operating system is affecting. Please help. Thanks.  I am using Arch linux.


Is is possible to check if an analog voltage is zero (or very close)? If it helps, the input to this circuit will be the output this differential amplifier:  (source: )


So I completed the first part of the proof where I prove $\frac{xy}{gcd(x,y)}$ is a multiple of $x$ and $y$. Now I need to prove for the second part that for any integer $m$ such that $x | m$ and $y | m$, $xy | (m*gcd(x,y))$ and then use these parts to prove the final part that $lcm(x,y) = \frac{xy}{gcd(x,y)}$. I'm confused on how to approach the second part and I also don't see how to connect the two parts when I do. Any help is appreciated


No notification about Investor Badge and it is missing under Achievements

I have recently received the Investor badge for offering a bounty on question , but i have not got any notifications about it and it is missing under Achievements.


PES 2015 does not recognize my GeForce card

Pro Evolution Soccer 2015 does not recognize my GeForce card.  I set the settings on my Nvidia card to high performance, but it still uses the intel integrated graphics card.     Nvidia driver version v344.15      Laptop Asus n550jk       GeForce 750m      integrated Intel Graphics.   How can I make PES use my Nvidia card instead?


What size canvas should logos be designed on?

When designing a logo is there a minimum size canvas that should be used to keep quality when it is enlarged or when reduced?  Obviously the dimensions of a canvas depend on the shape of the logo, but is there a sugested size?


Why My PHP code is not working to show UTF-8 from mysql?

This is my code  $sql = 'SELECT * from customer';   $statement = $connection->prepare($sql);   $statement->execute();   if($statement->rowCount())   {     $row_all = $statement->fetchall(PDO::FETCH_ASSOC);      echo json_encode($row_all);            }     elseif(!$statement->rowCount())   {     echo "no rows";    }   it show "????".when retrieve from thai alphabet.where i have to fix code in the linecode? thank you so much


Do I need a visa for an EU journey leaving UK before and returning after Brexit?

May seen an obvious, but informations seems to be contradictory :  If Britain leaves the EU without a deal do we need a Visa for our holiday visit to Lanzarote Our trip spans the exit date 24th March to 4th April?


How can I get the camera's projection matrix?

As asked.   I need a way to get the projection matrix of the active camera, via python.  EDIT: I think this question is different from the one asked , because getting a matrix is different from setting the matrix.  Although, since this question was so quickly marked a duplicate, I guess the answer is the same.


Changing expandtab setting based on directory?

I normally use 4 spaces for indentation. However I occasionally submit patches to OSS projects and some of them use tabs. When I do that I'll usually just edit my ~/.vimrc and change set expandtab to set noexpandtab. Of course then I'll forget to unset it, which is only a very minor annoyance.  I've also recently been toying with setting the VIMINIT variable if I open a shell to work on that project. I would just need to re-set it if I close that shell. Not the worst thing in the world but ...  I'm wondering if there is a way to tell vim to use certain settings like noexpandtab based on if I'm under a certain directory tree or not. That way I just set it once in a config file and not have to think about it again on this workstation.


I have the following simple structure (backend is using Python Flask):  <!DOCTYPE html> <head>     <meta charset="UTF-8"> </head> <body>     <script type="module" src="static/js/AClass.js"></script>     <script type="text/javascript">         var logging_url = "http://127.0.0.1:5000";         var a_class = new AClass("some data");         a_class.initialize();     </script> </body> </html>   And in my static/js folder I have the following files:  static/js/AClass.js:  import DataManager from './DataManager.js';  class AClass {      constructor(constructor_param) {         this.datamanager = undefined;     }      initialize() {         console.log("Initializing...");         this.datamanager = new DataManager();     }  }   DataManager.js currently is an empty class in static/js/  When I run this stuff in my browser I the get following error:  Uncaught ReferenceError: AClass is not defined  However, I do not know why?


Very light linux for 3GB Laptop to build pentest lab

I am trying to have as more operating systems as I can on my virtual machine to create a virtual lab for my research, but my Laptop isn't able to make four or more heavy OS working together, especially when running Kali or Ubuntu it really need lot of RAM and CPU, I have only 3GB and running a Ubuntu 14.4.  If there is a ready "http server" light distro that will be great.  So can anyone help me with some very light distro of Linux (Ubuntu like distro) that doesn't look so unfamiliar.


Apply function to appended jQuery element

I have a div with such content:
Red

Yellow

Cyan

Luke Skywalker

   I use this jQuery function to replace text inside the divs. After all I append 2 more .foobar divs to #data:  $(function() {     $(".foobar").each(function() {         $(this).html("Black");     });     appendDiv(); });  function appendDiv() {     $("#data").append("
White
");     $("#data").append("
Orange
"); }   And here I don't know how to apply inited .each function to appended divs. I've tried that, but it didn't worked for me:  $("#data").on("load", ".foobar", function(){     $(this).html("Black"); });   How to apply .each function to appended html?


Is it always better to use the whole dataset to train the final model?

A common technique after training, validating and testing the Machine Learning model of preference is to use the complete dataset, including the testing subset, to train a final model to deploy it on, e.g. a product.      My question is: Is it always for the best to do so? What if the   performance actually deteriorates?   For example, let us assume a case where the model scores around 65% in classifying the testing subset. This could mean that either the model is trained insufficiently OR that the testing subset consists of outliers. In the latter case, training the final model with them would decrease its performance and you find out only after deploying it.   Re-phrasing my initial question:     If you had a one-time demonstration of a model, such as deploying it   on embedded electronics on-board an expensive rocket experiment, would you trust a   model that has been re-trained with the test subset in the final step without being   re-tested on its new performance?


Creating a loop for column & row constraints with JavaFX

For my highscore window I have 20 nodes inside a gridpane (20 labels). Now I want the gridpane to be as big as the window itself which is 450 x 450, and I was planning to do this by adding column & row constraints.  This is what I tried, but got a NullPointerException.  private ColumnConstraints[] columnConstraintses; private RowConstraints[] rowConstraintses;  for (int i = 0 ; i < 10 ; i++) {         columnConstraintses[i] = new ColumnConstraints(40);         rowConstraintses[i] = new RowConstraints(40);     }


I'm trying to calculate the area of some census tracts in qgis I go to vector -> geometry tools -> export/add geometry columns   in the resulting dialog, I calculate using project CRS. What comes out in the attribute table is something like 0.000018 or 0.0000152. I don't know what units these are in; most other information on the internet seems to say that this issue is a map projection issue.  For the record, the current map project is NAD83 EPSG 4269  I do not know what unit this is in. If I knew the unit, it would be pretty trivial to add a new 'calculating' column to the attribute table to determine the area in language I can understand.


GeoServer, OpenLayers so slow for WFS! Why?

I am displaying 100 000 points in a layer via WFS protocol. I need about 5 minutes. However, 100 000 does not seems so much...  My points are stored in PostGIS, in a column defined this way : AddGeometryColumn('records','position', 4326, 'POINT', 2)  My GeoServer server tell me almost instantly this:   outputFormat = text/xml; subtype=gml/3.1.1     resultType = results   So I think it it OK for reading in PostGIS, and send the response to my browser.  But my Firefox/Chrome are very long to display it, so much that it tells me that the page is unresponsive many times. So maybe it is my JavaScript or my browser who is long to display. Here is my JavaScript with OpenLayers:  var wfs = new OpenLayers.Layer.Vector("Record2", {                     strategies: [new OpenLayers.Strategy.Fixed()],                     protocol: new OpenLayers.Protocol.WFS({                               version: "1.1.0",                     url: "http://localhost:8080/geoserver/wfs",                                 featurePrefix: "cite",                     featureType: "record",                     featureNS: "http://www.openplans.org/cite",                     srsName: "EPSG:4326",                         geometryName: ""                   })                   });          map.addLayers([world, wfs]);         map.zoomToMaxExtent();   Do you have an idea of the reason for this?


Prove that limit of $ne^{-an}$ as $n$ goes to infinity equals $0$

Somehow I learnt that the limit of $ne^{-an}$ (for $a > 0$) is $0$ as $n$ goes to infinity. I was trying to convert the expression to the form $\frac{e^{-an}}{\frac{1}{n}}$ and then use the L'Hôpital's rule but then I am getting the symbol $0\cdot \infty$ over and over again. How can prove it?


Publicity badges might be taking internal links into account?

I suspect that some bug makes internal linking count towards Publicity badges too. The badges :  These badges are specifically for linking to questions like the description says. The link must be clicked from outside the network in order for it to count for this purpose.  However, 2 days ago I was  for a question that I really feel does not need such linking to start with: . Also, I always try to use full links. And above all:  for the link gives me a single hit, for . Maybe it's thinking that empty REFERER headers (for those that block that, or for Safari users who ) should be counted too? Or maybe some search bot is using lots of IP addresses? Or visitors of Stack Overflow clones are to blame?