I'm running Kubuntu 20.04. How can I get Bluetooth to connect? I have a Broadcom Corp. BCM20702A0 adapter.

I'm runing 15.04 on a dell xps 13 bluetooth recognises devices when i  try to add them but won't let me connect to them Here is the results from my terminal.  ~ $ uname -a; lspci -nnk | grep -iA2 net; lsusb; dmesg | grep -i bluetooth; dmesg | grep -i firmware; lsmod | grep bluetooth  Linux aaron-XPS-13 3.19.0-15-generic #15-Ubuntu SMP Thu Apr 16 23:32:37 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux 02:00.0 Network controller [0280]: Broadcom Corporation BCM4352 802.11ac Wireless Network Adapter [14e4:43b1] (rev 03)     Subsystem: Dell Device [1028:0019]     Kernel driver in use: wl Bus 003 Device 002: ID 8087:8001 Intel Corp.  Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 001 Device 003: ID 0bda:5682 Realtek Semiconductor Corp.  Bus 001 Device 002: ID 0a5c:216f Broadcom Corp.  Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub [    8.164048] Bluetooth: Core ver 2.20 [    8.164065] Bluetooth: HCI device and connection manager initialized [    8.164069] Bluetooth: HCI socket layer initialized [    8.164073] Bluetooth: L2CAP socket layer initialized [    8.164079] Bluetooth: SCO socket layer initialized [    8.353160] bluetooth hci0: Direct firmware load for brcm/BCM20702A0-0a5c-216f.hcd failed with error -2 [    8.353166] Bluetooth: hci0: BCM: patch brcm/BCM20702A0-0a5c-216f.hcd not found [   20.289452] Bluetooth: BNEP (Ethernet Emulation) ver 1.3 [   20.289455] Bluetooth: BNEP filters: protocol multicast [   20.289459] Bluetooth: BNEP socket layer initialized [   20.310897] Bluetooth: RFCOMM TTY layer initialized [   20.310907] Bluetooth: RFCOMM socket layer initialized [   20.310912] Bluetooth: RFCOMM ver 1.11 [  886.399085] Bluetooth: hci0 urb ffff8800d8c15e40 failed to resubmit (2) [  895.471190] Bluetooth: hci0: BCM: patching hci_ver=06 hci_rev=1000 lmp_ver=06 lmp_subver=220e [  896.113983] Bluetooth: hci0: BCM: firmware hci_ver=06 hci_rev=1624 lmp_ver=06 lmp_subver=220e [    8.353160] bluetooth hci0: Direct firmware load for brcm/BCM20702A0-0a5c-216f.hcd failed with error -2 [  896.113983] Bluetooth: hci0: BCM: firmware hci_ver=06 hci_rev=1624 lmp_ver=06 lmp_subver=220e bluetooth             491520  22 bnep,btusb,rfcomm ~ $


The concept of God in different religions as well as deism seems to be inconsistent. So what is the best way of defining God?

In order to discuss with religious friends about god, I would like to know if there's some accepted objective definitions of God for main religions, even if belief is subjective.   For example, is he "a person who..."? In that case I would address features of a person, as capabilities and limitations. Is he "an entity..."? In that case I would use systems theory.   I feel lost on this, being agnostic from a religious family, where I was taught that God is a mess of things, including a beautiful bearded face, omnipotence and a mix of human defects and metaphysical powers.


Definitions: Let $E$ be any set of real numbers and let $E'$ denote the set of all accumulation points of $E$. Then the set   $$\overline E=E\cup E'$$ is called the closure of the set $E$.   Show that if $E_1\subset E_2$, then $\overline E_1\subset\overline E_2$.  My attempt:  We need to prove that if $x\in\overline E_1$, then $x\in\overline E_2$.  Let $x\in\overline E_1$  $\implies x\in E_1\cup E_1'$  $\implies x\in E_1$ or $x\in E_1'$  If $x\in E_1$, then $x\in E_2\implies x\in E_2\cup E_2'\implies x\in\overline E_2$ and we are done.  But what if  $x\in E_1'$? What property of accumulation points do I use to prove that $x\in\overline E_2$?

I'm trying to prove something here which isn't necessarily hard, but I believe it to be somewhat tricky.  I've looked online for the proofs, but some of them don't seem 'strong' enough for me or that convincing.  For example, they use the argument that since $A\subset \overline{B} $, then $ \overline{A} \subset \overline{B} $.  That, or they use slightly altered definitions.  These are the definitions that I'm using:  Definition #1: The closure of $A$ is defined as the intersection of all closed sets containing A. Definition #2: We say that a point x is a limit point of $A$ if every neighborhood of $x$ intersects $A$ in some point other than $x$ itself. Theorem 1: $ \overline{A} = A \cup A' $, where $A'$ = the set of all limit points of $A$. Theorem 2: A point $x \in \overline{A} $ iff every neighborhood of $x$ intersects $A$.  Prove: If $ A \subset B,$ then $ \overline{A} \subset \overline{B} $  Proof: Let $ \overline{B} = \bigcap F $ where each $F$ is a closed set containing $B$.  By hypothesis, $ A \subset B $; hence, it follows that for each $F \in \overline{B} $, $ A \subset F \subset \overline{B} $.  Now that we have proven that $ A \subset \overline{B} $, we show $A'$ is also contained in $\overline{B} $. Let $ x \in A' $.  By definition, every neighborhood of x intersects A at some point other than $x$ itself.  Since $ A \subset B $, every neighborhood of $x$ also intersects $B$ at some other point other than $x$ itself.  Then, $ x \in B \subset \overline{B} $.  Hence, $ A \cup A' \subset \overline{B}$.  But, $ A \cup A' = \overline{A}$.  Hence, $ \overline{A} \subset \overline{B}.$  Is this proof correct?  Be brutally honest, please.  Critique as much as possible.


$$\sum_{n=3}^{\infty}\frac{1}{n\ln(n)\left(\ln(\ln(n))\right)^p}$$ I have to find the values of $p$ to make this series convergent. How would I do this?  I tried doing the integral test and ended up with  $$\frac{(\ln(\ln(x)))^{-p+1}}{-p+1}$$  Where do I go from here? Basically ln(inf) will always be inf so like the only way to make it convergent is if p=1 but then that makes the bottom undefined so like I am super confused.  Wait could it be p>1? cuz then it puts the infinity on the bottom and makes it 0.

I have a problem with a convergence of the series $ \sum_{n=1}^{+ \infty } \frac{1}{n \cdot \ln(n) \cdot (\ln(\ln(n)))^{a}}$ depending on the parameter $a$. I know that  $\frac{1}{n} \rightarrow 0$, $\frac{1}{\ln(n)} \rightarrow 0$, but I don't know how to deal with $\frac{1}{\ln(\ln(n)))^{a}}$ and how to get to the final answer. So far I solved tasks with  $\frac{1}{n ^{a}}$ and I know that $a>1  \Leftrightarrow \sum_{n=1}^{+ \infty }\frac{1}{n ^{a}}$ is convergent, but in this task I cannot use it. Can you help me?


Lets suppose we want to investigate proposition "All Vatican anarchists are honest". We can transform this proposition into implication "If a citizen of Vatican is an anarchist then he/she is honest". If this implication is true for every citizen of Vatican, then proposition  "All Vatican anarchists are honest" will be true.   Lets question the Pope.  -- Hey Pope, are you an anarchist? -- No  Implication "If a citizen of Vatican is an anarchist then he/she is honest" is true in the Pope's case, because the Pope isn't an anarchist.  Lets assume we questioned every citizen of Vatican and none of them is an anarchist. So, the implication is true for every Vatican citizen. As a result, statement "All Vatican anarchists are dishonest" is false  and "All Vatican anarchists are honest" is true.  Now lets pretend we have never questioned citizens of Vatican and begin from scratch. But this time we are going to test statement "All Vatican anarchists are dishonest". We can easily convert it into "If citizen of Vatican is an anarchist then he/she is dishonest". We interviewed all citizens and none of them is an anarchist, thus this implication is true for everyone. Thus statement "All Vatican anarchists are honest" if false and "All Vatican anarchists are dishonest" is true.   And now lets remember our previous survey. Holy cow, we have severe contradictions!  "All Vatican anarchists are honest" is true, thus "All Vatican anarchists are dishonest" is false.  BUT at the same time "All Vatican anarchists are dishonest" is true, thus "All Vatican anarchists are honest" is false.

Let    p denote ringing telephone s denote someone   A denote answered   ¬∃x(Px) ∀x∃y((Px⋀Sy) →Ayx) ∀x¬∃y((Px⋀Sy) →Ayx)    So,    There are no ringing telephones.  Every ringing telephone was answered by someone. Every ringing telephone was not answered by someone.    Those three statements could all be true. (I believe 'vacuously true' is the term.) How does propositional logic treat them? How would one prove they are not contradictory?


Sometimes when I search for something on Google it shows some results (website links), but it also shows some important links on that website.  Is it a feature of the website or does Google use something to find those main links of the website? Is it related to search engine optimization?

I would like my site to display additional site links when preforming a Google Search..  How can this be achieved?


This is what I got: If this must be possible i.e.if it must be an integer then $(\frac{15k^7}{7} + \frac{21k^3}{3}+ \frac{70k^2}{2}-k)$ must be divisible by 105. $k(\frac{15k^6}{7} + \frac{21k^2}{3} + \frac{70k}{2}-1)$ must be divisible by 105. For the purpose of using math induction I found out htks, but then I am stuck!! Therefore it works for 1 but how do I further prove it for $k+1$?

Prove $$\frac{k^7}{7}+\frac{k^5}{5}+\frac{2k^3}{3}-\frac{k}{105}$$ is an integer for every positive integer k.  In proving for (n+1) integer,the expression is integer,I found $(n+1)^7$ term.I use binomial theorem to expand but finally it won't work(some term become integer While some other remaining as rational)  Any hint to solve the problem is appreciated.Thanks.


I am looking to collaborate on open source simulation efforts.

An answer to   mentions the , a list of quantum algorithms. Several answers to  include links to different kinds of development kits. Likewise,  gathers a couple of good attempts at listing those.  The present question is related to the above, and yet it's not answered by the above resources.  Does a complete list of open quantum software projects exist?  Ideal answers would be: if it exists, the link to said list, and if it doesn't, a (well-formatted) as-exhaustive-as-possible compilation of open quantum software projects.  Related question:


I am trying to test the performance of a Silverlight application using JMeter. can you please tell me is that possible? If it is possible, can you please provide me the detailed steps to be followed.  Thank you.

Can anyone provide a step by step process explaining how to test performance and load in Jmeter for a Silverlight application?


So I'm extremely new to software testing, and am looking at adding a couple of tests to one of my applications. I have a public method addKeywords() which along the way calls a private method removeInvalidOperations(). This private method makes calls to an external API and is ~50 lines of code. As I consider this to be a somewhat complex method I would like to test this without having to do so through calling the addKeyword() method. Yet this does not seem to be possible (at least not though JUnit).  The information I have looked at is suggesting that the desire to test ones private methods could be a code smell. Some people suggest that it may be a sign that this should be refactored into a separate class and made public. Also, there are the suggestions that if you really need to then you can make edits to your production code e.g. change the visibility of the private method.  I don't really see why I have a problem with my current code design, but also don't like the idea of editing my production code to suit my tests needs.  As I say - I'm rather new to testing, so any help is much appreciated. Also, please let me know if there is any further info I can provide to help with the answers.

How do I unit test (using xUnit) a class that has internal private methods, fields or nested classes? Or a function that is made private by having  (static in C/C++) or is in a private () namespace?  It seems bad to change the access modifier for a method or function just to be able to run a test.


I have put my website links in social media sites, forums and article sites. But these links are not showing in google search console or any other backlink checker sites.

i've launch a website on wednesday (9 August)  There's already in 4 days    12,000 viewed pages 1,400 visits 20 to 25 backlincks a sitemap.xml (130 URL) english language / french language - url like that "/en/"  "/fr/"   BUT, i'm still not referrenced by google  In the google webmaster i have  0 backlinks 130 in sitemap, 0 URL referrenced on google  For a smaller website, i remember that i took me less to appear on google with less visits.  My url is:  for english and juste replace /en/ by /fr/ to access it in french.  What's causing this ? Is there an explanation ? Thanks for your help  (ps, i've already checked robots.txt)


I've created a base class as follows:      public class BusStopEvent     {         public virtual BusStopEvent CreateEvent(int BusStopNumber)          {             return new BusStopEvent();         }     }   Child class as   public class BusArraival : BusStopEvent {      public override BusArraival CreateEvent(int BusStopNumber)     {         BusArraival evnt = null;         evnt = base.CreateEvent(BusStopNumber);         return evnt;     } }   I'm getting below error:  'BusArraival.CreateEvent(int)': return type must be 'BusStopEvent' to match overridden member 'BusStopEvent.CreateEvent(int)'. Cannot implicitly convert type 'BusTerminal.BusStopEvent' to 'BusTerminal.BusArrival'. An explicit conversion exists (are you missing a cast?)  Why it's showing me this error? Since BusArrival is derived from BusStopEvent, the child object should be compatible with Parent object.

I have a subclass with an over-ridden method that I know always returns a particular subtype of the return type declared in the base class.  If I write the code this way, it won't compile.  Since that probably doesn't make sense, let me give a code example:  class BaseReturnType { } class DerivedReturnType : BaseReturnType { }  abstract class BaseClass {     public abstract BaseReturnType PolymorphicMethod(); }  class DerivedClass : BaseClass {     // Compile Error: return type must be 'BaseReturnType' to match      // overridden member 'BaseClass.PolymorphicMethod()'     public override DerivedReturnType PolymorphicMethod() {          return new DerivedReturnType();      } }   Is there any way to accomplish this in C#?  If not, what's the best way to achieve something similar?  And why isn't it allowed?  It doesn't seem to allow any logical inconsistency, since any object returned from the over-ridden method still is BaseReturnType.  Maybe there is something I hadn't considered though.  Or maybe the reason is technological or historical.


Why can't we divide a circumference of a circle with its diameter perfectly?, In short why is Value of Pi Non Terminating? Does that means we can never find exact circumference of any circle?

Most math texts claim that $\pi$ is an irrational number. However, I'm having a little bit of trouble understanding that.  Since nobody has calculated all of the digits of $\pi$, how can we know that either:   one of the digits repeats (as in $\frac{10}{3}$) the number eventually terminates     Note: Please be very descriptive in your answers... I don't have anything beyond high school math.


I'm seeing info on how to upgrade from a specific version to another, and that is what I want to do (currently 3.3.6), but is there a simple command to do this?  I'm a complete ubuntu/linux noob so I have no idea what I'm talking about, I just want to upgrade php because my current version maybe limiting the amount of input elements that I can post to the following page.

I am trying to update to install PHP 5.5, 5.6 or 7.0 in Ubuntu 12.04/14.04/16.04 LTS, and I can only get PHP 5.3.10 for Ubuntu 12.04, PHP 5.5.9 for Ubuntu 14.04 or PHP 7.0.4 for Ubuntu 16.04 using official repositories (using apt-get).  I'm not really sure how to do a manual update – as I need:   to play around with the new(est) PHP features to install older PHP version due support in the software


I have installed Ubuntu 14.04 on my pre-installed windows 8 Lenovo G580. But after installing Ubuntu, it's Grub doesn't show windows8 in it. Can any one help me. Thank you.

I installed Windows 7, which ate Ubuntu's boot file. When starting up the computer, it now goes straight to Windows, without giving me the option of booting Ubuntu.   How can I get Ubuntu back?


The smallest positive number $K$ for which the inequality  $|\sin^2 x  - \sin^2 y|  \le K|x-y|$ holds for all $x,y$ is

Find the smallest positive number K for which following inequality   $$|\sin^2x-\sin^2y|\le K|x-y|$$  Holds for all x and y  1.2  2.1  3.$\pi$/2   No value of K is possible   My attempt: the way inequality is, it reminds me of lagrange mean value theorm.so k shud be 1, I think. I need suggestion here thanks.


Find the value of expression $\frac{1}{\cos 290^{\circ}} + \frac{1}{\sqrt3 \sin250^{\circ}}$.   Though this question seems easy, I just seem to get stuck somewhere. This is what I have tried so far: $$\frac{1}{\cos70^{\circ}}-\frac{1}{\sqrt3\sin70^{\circ}}$$ $$=\frac{\sqrt3\sin70^{\circ}-\cos70^{\circ}}{\sqrt3\sin70^{\circ}\cos70^{\circ}}$$  From here, I do not know how to continue. Pls help. Thank you :)

I would like to confirm a solution. The question goes as:  Show that $$\frac{\sqrt{3}}{\sin20^{\circ}}-\frac{1}{\cos20^{\circ}}=4$$  Firstly I combined the two terms to form something like: $$\dfrac{\sqrt{3}\cos20^{\circ} - \sin20^{\circ}}{\sin20^{\circ}\cos20^{\circ}}.$$  Clearly, the numerator is of the form $a\cos\theta+b\sin\theta$, and can thus be expressed as $R\sin(\theta+\alpha)$, where $R=\sqrt{a^2+b^2}$, and $\alpha=\arctan(\dfrac{a}{b})$. Following this method, I obtain something like this: $$\dfrac{2\sin(20^{\circ}-60^{\circ})}{\sin20^{\circ}\cos20^{\circ}},$$ which results in the expression to be equal to $-4$. But, we took $R$ to be the principal square root, which was $2$. If we take it to be the negative root, $-2$, it follows that the expression is equal to $4$. So, can this expression have two values?   Edit: I would also like to mention how I computed the numerator:  Numerator:   $\sqrt{3}\cos20^{\circ} - \sin20^{\circ}$.  Now, this can be represented as $R\sin(\theta+\alpha)$. Computation of $R$: $R=\sqrt{a^2+b^2}\implies R=\sqrt{(3+1)}=2$ Computation of $\alpha$: $\tan\alpha=\dfrac{a}{b}\implies \tan\alpha=\dfrac{\sqrt3}{-1}\implies \alpha=-60^{\circ}$, because $\tan(-x)=-\tan x$, and in this case $\tan\alpha=-\sqrt3$, and $-\tan(60^{\circ})=-\sqrt3$, so $\alpha=-60^{\circ}$.  Hence, we conclude that numerator:$$2\sin(20+(-60))=2\sin(-40)=-2\sin(40^{\circ})$$


Given a  finite set $A$, is there a way to quantify the number of transitive relations over $A$? Thanks for any ideas/thoughts

If a set has $n$ elements, how many transitive relations are there on it?  For example if set $A$ has $2$ elements then how many transitive relations. I know the total number of relations is $16$ but how to find only the transitive relations? Is there a formula for finding this or is it a counting problem?  Also how to find this for any number of elements $n$?


Clocks in satellites have to be adjusted due to the effects of relativity; but does time for satellites (GPS) flow slower, due to the relative motion, or faster, due to the weaker amount of gravitation received due to the increased distance to earth?

In the Wikipedia article on  I see two formulae for the gravitational time dilation. One contains $\sqrt{1 - r_0/r}$ but the other $\sqrt{1 - 1.5 r_0/r}$. What formula should I use to calculate the time dilation due to gravity inside a satellite? The speed induced time dilation is of course just special relativity.  With the first of these two formulas I can perfectly reproduce the graphs on time dilation as a function of $r$,  I find that the two contributions to time dilation cancel at 1.5 Earth radii, all numbers are OK... But why not the second formula?


Today I start my perl journey, and now I'm exploring the data type.  My code looks like:  @list=(1,2,3,4,5); %dict=(1,2,3,4,5);  print "$list[0]\n";         # using [ ] to wrap index print "$dict{1}\n";         # using { } to wrap key  print "@list[2]\n"; print "%dict{2}\n";   it seems $ + var_name works for both array and hash, but @ + var_name can be used to call an array, meanwhile % + var_name can't be used to call a hash.  Why?

Since arrays and hashes can only contain scalars in Perl, why do you have to use the $ to tell the interpreter that the value is a scalar when accessing array or hash elements? In other words, assuming you have an array @myarray and a hash %myhash, why do you need to do:  $x = $myarray[1]; $y = $myhash{'foo'};   instead of just doing :  $x = myarray[1]; $y = myhash{'foo'};   Why are the above ambiguous?   Wouldn't it be illegal Perl code if it was anything but a $ in that place? For example, aren't all of the following illegal in Perl?  @var[0]; @var{'key'}; %var[0]; %var{'key'};


This unexpected behavior surprised me:  >>> a = 256 >>> a is 256 True >>> b = 257 >>> b is 257 False   Why is that?

Why does the following behave unexpectedly in Python?  >>> a = 256 >>> b = 256 >>> a is b True           # This is an expected result >>> a = 257 >>> b = 257 >>> a is b False          # What happened here? Why is this False? >>> 257 is 257 True           # Yet the literal numbers compare properly   I am using Python 2.5.2. Trying some different versions of Python, it appears that Python 2.3.3 shows the above behaviour between 99 and 100.  Based on the above, I can hypothesize that Python is internally implemented such that "small" integers are stored in a different way than larger integers and the is operator can tell the difference. Why the leaky abstraction? What is a better way of comparing two arbitrary objects to see whether they are the same when I don't know in advance whether they are numbers or not?


I am writing simple PHP program to insert student information into mysql database and respond back with user id. This script sometimes works good. But sometimes it is not working. What are the possible reasons for this kind of behavior. If my program has any bugs then please suggest corrections. Below is my student registration script and mysql database function. I am not good at PHP, PLEASE SUGGEST CORRECTION IF ANY  <?php     $username = $_POST['name'];     $clgName = $_POST['clg_name'];     $branch = $_POST['branch'];     $sem = $_POST['sem'];     $mobile = $_POST['mobile'];     $email = $_POST['email'];     $profile_pic_color = $_POST['profile_pic_color'];     $deviceId = $_POST['device_id'];      include "DatabaseHandler/DBFunctions.php";      $db = new DBFunctions();      $query = "INSERT INTO user_details(user_name, user_clgName, user_branch, user_sem, user_mobile, user_email, profile_color, device_id) values('$username', '$clgName', '$branch','$sem', '$mobile', '$email', '$profile_pic_color', '$deviceId')";      list($result, $mysqli) = $db->select($query);      $query = "SELECT MAX(user_id) FROM user_details";      if($mysqli->affected_rows > 0){          list($result, $mysqli) = $db->select($query);          $arr = array();          if($result){             $row = $result->fetch_array();             $arr[] = $row;             echo json_encode($arr);         }     }  ?>   And this is my Database Manager PHP SCRIPT.  <?php       class DBFunctions{            public function connect(){             include "DBConfig.php";                  $mysqli = new mysqli($domain, $username, $password, $database);              return $mysqli;         }          public function query($query){                 // Connect to the database             $mysqli = $this -> connect();              // Query the database             $result = $mysqli -> query($query);              return array($result, $mysqli);         }          public function select($query){              $mysqli = $this -> connect();              $result = $mysqli -> query($query);              if($result === false) {                         return false;                 }                  return array($result, $mysqli);         }     } ?>

If user input is inserted without modification into an SQL query, then the application becomes vulnerable to , like in the following example:  $unsafe_variable = $_POST['user_input'];   mysql_query("INSERT INTO `table` (`column`) VALUES ('$unsafe_variable')");   That's because the user can input something like value'); DROP TABLE table;--, and the query becomes:  INSERT INTO `table` (`column`) VALUES('value'); DROP TABLE table;--')   What can be done to prevent this from happening?


I'm creating a Java application, and when creating an interface to use with an ADT, it finds the need to initialize a random number as an ID number.  public class StackFullException extends RuntimeException {     private static final long serialVersionUID = 1L;     public StackFullException(){}     public StackFullException(String message) {         super(message);     } }   I'm curious as to whether leaving this out will impact anything consequential about my program and if so, how to avoid it.

Eclipse issues warnings when a serialVersionUID is missing.       The serializable class Foo does not declare a static final   serialVersionUID field of type long   What is serialVersionUID and why is it important?  Please show an example where missing serialVersionUID will cause a problem.


I am currently using a MacBook Pro 2015 with Iris Pro 2G graphic card, which supports up to 2 extended display (I tried to setup 3 extended monitor - 2x Thunderbolt 2 + 1x HDMI, it won't work, 1 screen has to go dark). On the other hand I also have a MacBook Pro 2013 with a broken screen. Both MBPs have 2x Thunderbolt port and 1x HDMI.  MBP 2015 has a 3-screen setup:   Laptop screen Thunderbolt 2 to DVI on FHD monitor (extended) HDMI to DVI on FHD monitor (extended)   MBP 2013 has a single screen setup:   Laptop screen - broken Thunderbolt 2 to DVI on FHD monitor (mirror, not extended)   My question is,    Is it possible to use a Thunderbolt 2 to Thunderbolt 2 cable connect these 2 MBP and make the 2013 MBP's FHD monitor as another extended display to make MBP 2015 to total of 4 screens? If not, any suggestion to make the most of the MBP 2013?

I have two MacBook Pros: a 2011 17 inch  and a 2017 15 inch; both have the latest macOS installed.   Does anyone know if it is possible to make the 15" MBP  use the 17" MBP as an external monitor?


I am getting Error while doing this  this is my code  String[] options = {getActivity().getResources().getString(R.string.capture_video),getActivity().getResources().getString(R.string.Cancel)};   This is in Fragment class

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?


Let $m, n \in \mathbb{N}$. Then $C_{mn} \cong C_m \times C_n \iff \gcd(m, n) = 1$.    I'm struggling to understand proof of this fact. Can someone explain it step by step?

Given that $C_n$ is a cyclic group of order $n$, what conditions must integers $n$ and $m$ satisfy such that the group $C_n \times C_m$ is isomorphic to C$_{mn}$?   So I attempted to investigate a few lower-order cyclic groups to find a pattern. In particular, I looked at $C_2 \times C_3$ and compared it to $C_6$. Here are a couple of diagrams:  $C_2 \times C_3$ -   $C_6$ -   They Cayley tables look pretty different (identity elements are all over the place for $C_2 \times C_3$) so I concluded that they are not isomorphic.  I did the same for $C_2 \times C_4$ and $C_8$:  $C_2 \times C_4$ -   $C_8$ -   Again, I arrived at the conclusion that the 2 groups are not isomorphic due to their Cayley table structure.  It seems I'm stuck now. Are my conclusions wrong for the examples I examined? If so, how do I find the conditions for the general case of comparing $C_m \times C_n$ with $C_{mn}$?


I am assembling a "library" standard 3D parts that I will be using on various projects. What does Blender call a group or library of parts/objects, and where is this referenced in the current manual (particularly how to set up the library)? As an example, some programs have libraries of parts that you can quickly select and insert into your program, such as AutoCAD or MS Visio.  Video editing programs and VX like Resolve and Fusion also have "media bins" where you can keep commonly used media files to make their access quicker and easier to use.  Trying to see if Blender has a similar concept to group together 3D parts and access them in different projects.

I have created several designs for a particular project and they are related, but I don't want to have to keep recreating any similar elements, such as shared materials or textures.  How can I use the existing data in a new Blender file?


For questions, you can attract attention by offering a bounty.  Now let's say you worked hard and offered what you feel is a very good answer (possibly a lot better than the currently accepted answer) - problem is - no one's looking at it - especially if there are already many answers with up-votes and with an accepted answer.  Is there any way to attract attention to it?  EDIT:   Feature request: What if we could ask for moderator attention for good answers (as well) possibly for a cost of some points - after which the moderators could decide to either reject the claim that it is a very good answer or distinguish it in some way - if it is indeed a good answer...like for example to display it as the first answer or the like.

Earlier today I posted  which yielded a .  I'd like to attract attention to this answer in the hope that the answer will get upvoted, as a kind of reward for the quality of the answer.  Is there anything that I can do to achieve this?


Let's say we have a group of people who starts an activity together.  The name of group can be: York speaks English! - as York is 3rd person singular.  But at the same time: York speak English! - as York could be understood as a group of people, thus 3rd person plural.  The group is suppose to practice English together.  What is a correct form?

I'd say Microsoft have a way of bending the rules and I know that McLaren have won the championship. While this sounds strange, I believe it is correct English (sorry, I'm not native).   But when it's a small company, would you still use it this way? Is a company always plural, or are small companies singular? I.e., would you say Bakery Johnson makes fine bread or Bakery Johnson make fine bread? Is it My book seller, Woody's, have moved or is it has moved?


Let's say a company is developing a product and they call it somehow internally, but that name will change in the future if the product is released. The general word for that is temporal name, but I am looking for a more specific professional term.     For the last 5 years they have been working on a project with the _____(temporal name) "ABC", which was released a few months ago under the title of "ZXY".

In software development, and I imagine in many other fields, we often make up temporary nicknames for new projects or features. These are not meant to be the real names for the end product and are often funny, playful, or sarcastic in nature. These are also not intended to be "codenames" that hide the nature of the project or feature. Is there a word for such nicknames?


I asked a while back why does a ~$150 120vac electric ceiling fan, above my bed at home, hum and agitate me. Didn't come to a 100% solid reason but I believe it's due to that motor being a brushless single phase AC where the windings in the case that surround the rotating armature cause the metal motor case to vibrate as the winding(s) are on/off energized to create a rotating magnetic field.  That force creates a vibration in the thin metal motor case, more so on the slow motor speed setting, that can be heard.  Maybe if it were a thicker metal case and the windings were encased in epoxy it would prevent any audible vibration from happening... but i get it,  unrealistic to mass produce such a thing and sell for $100. I see DC fan motors now for ceiling fans being advertised, although such a ceiling fan runs $300+.  Not asking what dc motor ceiling fan i should buy... sort of... but can someone elaborate on the physical and electrical vocabulary and operating principles of such a multi-speed DC motor?  I want to have a good understanding to see if I can understand why or why not a vibration may or not be likely with such a motor... expecting them to be mass produced also having a thin metal motor casing.  I believe it's the motor casing that's vibrating when the electric motor is running causing an audible hum, would like to figure out how likely that would be possible in the type of DC motors being used in some ceiling fans now.

I'm interested in the technical reasons behind why an inexpensive ceiling fan in a home would hum, such that when in your bedroom above your bed on low speed is annoying.  Is there a better type of electrical motor to look for?  My existing fan when new basically did not hum and was satisfactorily quiet at night when on low speed.  Now ~5+ years later it is awful.  All I really know is it's a 120VAC brush less electric motor, can run on 3 speeds (low/med/hi).  What causes this kind of hum specifically?  And is there a way to get a ceiling fan with a specific type of motor that would not be susceptible to a droning hum when on low speed?


Given a curve $y$ having constant curvature with $y=f(x)$ with $f''(x) > 0 $. I have to prove that this curve is a part of a circle. My Try Assume curvature of the curve as $c$. Then, I can write $$c = \frac{f''(x)}{(1+f'(x)^2)^{\frac 32}}$$ After this, I am unable to solve the non-linear differential equation. Is my approach wrong? Thanks in advance !

I'm trying to prove that if $\alpha(t)=(x(t),y(t))$ is a $C^2$ regular curve $(\alpha'\neq0)$ with constant and positive curvature, then $\alpha$ is on the circunference and if $\alpha$ is the circunference, then its curvature is constant.  I solved the second part since $\alpha$ is the circunference, then $\alpha(t)=(r\cos\theta,r\sin\theta)$, so $|\alpha'(t)|=r$, I need help in the first part.  Thanks a lot.


The question is the well-known      If there are so many/infinite stars, in every direction, why is it dark at night? Where goes all the light we don't see?    Discussing with a friend we found different answers.   The first (my friend's answer) is that given the fact that in a finite amount of time (in this case, the age of the universe), light can travel only a certain, finite, distance, we cannot see, if they actually exist, stars farther than such distance (about 13 billions of years, I guess). Then he states (or better, I got him notice he implicitly does this)  that within this radius there aren't enough stars to fill the night sky, and that's why we have darkness without sun's light.   The second answer (mine, or anyway the one I heard from a minutephysics YouTube video) is that despite of the big size of the observable universe, cosmological expansion red shifts most of the light out of the visible radiation range, so that the majority of light can't be seen by our eyes at night, while if we use, for example, an infrared camera, we should see a brighter sky, and lenghtening more and more the wavelength at which we observe the sky, we come to the uniform background radiation.  So my question is, what is the right answer? Is it one of the above-mentioned or even a third one?  EDIT: I've seen both answer may be acceptable, but what is the main contributing phenomenon?

I have read that the night sky should have been bright because every spot should end up pointing to a star in the infinite universe but this is not the case because the universe is expanding. I am thinking if the universe cannot be expanding with speed faster than light then the dark night sky is also due to the universe is relatively young and when it gets older the night sky will eventually end up bright.   Is this correct or am I missing something?  Will the speed of universe expansion will make the sky bright but the red shift make it invisible to our eyes ?  Also if it's correct, does this mean that cosmologists do detect new stars appearing from nowhere from time to time? Does this really happen?


I have a seagate 2013 or 2014 external hard drive which has been working fine up until yesterday.  The drive wont appear anywhere on my mac-  not on desktop, finder, disk utility wont ever finish loading when its plugged in.  I've gone into System Information and it appears whether or not the device is installed so not sure what that means.  I have tried a few tips I found to use Terminal- I've tried creating and naming the volume usb and then linking it to dev/disk 2 but nothing.  It will however let me eject the device via terminal which I hope is a good sign? I ran diskutil verifyDisk /dev/disk2 and i got the following:  "Problems were found with the partition map which might prevent booting.  Error: -69854: A disk with a mount point is required." I've read that I probably need to do something that would wipe out all the information on my external but first I would need to back up.  As I said before, I can't access my drive on any macs (i've tried 2 others) so is my next step to send it out for someone to recover the data?  I'm just trying to save myself some money because I'm currently furloughed but I do need the documents on my external.  Any advice would be great! I'm not knowledgable on any of this, I've just been doing alot of searching and trying different tips so please leave advices fit for a computer dummy! ha! Thanks!

I am on a MacBook Pro 13 running latest Sierra. I have an external Seagate solid state hard drive that was working and out of the blue stopped working. The only thing on it was my Adobe Lightroom images/videos. Not the LR DB files. I'm sure you have all heard this woe before, so I won't dwell on that. And yes, I back up to the cloud. AWS S3 specifically. Though I am traveling South East Asia for the last year, and staying in cheap hostels. So good internet is hard to come by sometimes. I can't back it up after every export. While most of it is backed up, there is some that is not.  Moving on. The symptoms seems to change every time I plug it in. The first sign was it ejected on it's own. I plugged it in again, and it wouldn't mount. Disk Utility recognized it, so did the command line diskutil list but it wouldn't mount. I rebooted and it worked for a second. Then I could only get to it from the command line. Then trying to frantically back up to my local what was not backed up to the cloud, it all failed. Basically just a cp -R [directory] [local-directory] command.  After some more frantic unplugging and re-plugging plus some command line manual mounts, I finally got it to where the Disk Utility would be able to run first aid on it. It failed. I don't recall the error. So I put it in a freezer. After a few hours I tried again. It is not any better. It still will not mount. Now Disk Utility sees it, but with no partition. I can't even give me information about how much space is used on it.  I have also tried it from a Windows machine. It did not mount. I have tried other cables. No success. As well as tried my other USB port. I also have another working external hard drive exactly like the one giving me issues. It works on all cables and USB ports.  I do have Docker running with a Ubuntu container, I'm trying to think of a way to see if I can try to get to the USB from there. I also have a USB that I have thought about running a live Ubuntu on there to see if I can mount and retrieve the data or fix the HDD that way. But if it will not mount, I doubt these will work.  Can anyone else think of any other tricks I can try myself to see if I can repair this or at least retrieve the data without paying for a service or software? If not, those suggestions are also welcome.  Update   I made the mistake in original post that it was a Solid State Drive. This is my mistake, it is actually a spinning disk hard drive. I bought them long ago and have been traveling with them for so long I just forgot. Question is updated to reflect this. Now diskutil list does not show it at all. The Disk Utility app also does not see it. Based on suggestion from @Allen I seeked out the USB to SATA cable. I did not quite find it, as my options are extremely limited where I am at. Though a local expat on a facebook group was able to help me with a empty 2.5 casing that I was able to extract the drive from original casing and put it in his blank case. It now mounts. Though it has the "click of death" sound to it. And data is not really reachable. While I can ls the directories and Adobe Lightroom does not have the exclamation mark when it can not reach the actual external files. Right clicking on the images and clicking on "Show in Finder" or any other variation of trying to get to the files through Finder or terminal, I have no success. It usually hangs and I get the spinning wheel. Since Adobe Lightroom imports these images into directories named by date, I am going to send the drive off to a data recovery service and ask to recover just unbacked up directories i.e. dates. Next time I will make harder efforts to backup and probably get an actual SSD.   I think this can be closed, due to my low reputation points I can not close this myself.


Why do people do this  int myInt { get; set; }   rather than just this?  int myInt;

In C#, what makes a field different from a property, and when should a field be used instead of a property?


What would be the ideals of the real numbers?  I have to figure out the ideals of a ring R, which is a product of integers and reals like so:  $R = \mathbb{Z}\times \mathbb{R} \times \mathbb{Z}$  Are the ideals simply 0 and $\mathbb{R}$?

$R$ and $S$ are two rings. Let $J$ be an ideal in $R\times S$. Then there are $I_{1}$, ideal of $R$, and $I_{2}$, ideal of $S$ such that $J=I_{1}\times I_{2}$.  For me it's obvious why $\left\{ r\in R\mid \left(r,s\right)\in J\text{ for some } s\in S\right\}$ is an ideal of $R$ (and the same for $S$) so I can prove $J$ is a subset of the product of two ideals and also that the product of these two ideals is an ideal. But I can't see how to prove equality without assuming existence of unity or commutativity. Trying basically to show that if $\left(r,s\right)\in J$ then also $\left(r,0\right),\left(0,s\right)\in J$. Thank you for your help!


I am working on an article in XeLaTeX and I am getting this error: capacity exceeded main memory size=5000000 By moving around \end{document} and by cutting and pasting various parts of the document, I have isolated the problem to the following section. Could someone point me towards the problem? Sorry if this is a stupid question. I believe this to be the minimum (non-)working example: \documentclass[12pt, letterpaper]{article}  \usepackage{gb4e} \noautomath  \usepackage{libertine}  \begin{document} \begin{exe} \ex \gll suk hapáng\footnote{corresponds to the proclitic /hap=/} \\ house above \\ \glt 'on top of (a) house' \end{exe}  \begin{exe} \ex  \gll yątci kį sukhǫ́\footnote{corresponds to the proclitic /suk=/} wąre \\ stream the over sit.{\Ind} \\ \glt '[It] sits over the stream.' \end{exe}  \begin{exe} \ex yancámǫntu \\ \gll yancá mǫntu \\ creek in \\ \glt 'in [a] creek' \end{exe} \enddocument

I am using gb4e for my examples. I can insert footnote in the \ex line, like this:  \begin{exe} \ex It's ok\footnote{no problem}. \end{exe}   But I cannot insert footnote in the \gll line, like this:  \begin{exe} \ex It's ok. \gll C'est parfait\footnote{no problem}\\ Ce est parfait\\ \end{exe}   When I put the \footnote{} in \gll line, it does not compile.  How can I insert footnote in the gloss line? Thank you very much for your help!


Let $x_1, x_2, \ldots ,x_n$ be positive real numbers, and let $$ S = x_1 + x_2 + \cdots + x_n.$$  Prove that  $$ (1+x_1)(1+x_2)\ldots(1+x_n)  \le 1 + S + \frac{S^2}{2!} + \cdots + \frac{S^n}{n!}$$  Here's my attempt:  Case 1 : Let $x_1 = x_2= x$ (When all terms are equal)  $LHS = (1+x)(1+x) = 1+2x+x^2$  $RHS = 1+\frac{x+x}{1!}+\frac{(x+x)^2}{2!}=1+2x+\color{blue}{2}x^2$  Hence when all terms are equal, $LHS<RHS$.  Case 2 : $x_1\ne x_2$  $LHS=(1+x_1)(1+x_2)=1+{x_1}{x_2}+(x_1+x_2)$ $RHS=1+ (x_1+x_2)+\frac{(x_1+x_2)^2}{2!} =1+{x_1}{x_2}+(x_1+x_2)+\color{blue}{\left(\frac{x_1^2+x_2^2}{2}\right)}$  Hence when even one term is not equal, $LHS\lt RHS$.  From the two cases, it's clear that under no circumstance $LHS \gt RHS$. And hence the (partial) proof.  Is there any way I can improve my proof? If you look again I've considered only two terms and my intuition tells me that it would apply to the entire range but how do I state it mathematically? Or can you think of a better or more rigorous proof than this?  Thanks again!

I am currently working on this problem from Hardy's Course of Pure Mathematics and have gotten stuck near the end. I was wondering if someone could help me determine what to go next.  Question  If $a_1, a_2, ...,a_n$ are all positive and $S_n=a_1+a_2+...+a_n$ then:  $(1+a_1)(1+a_2)...(1+a_n) \le 1 + S_n + \dfrac{(S_n)^2}{2!} + ... + \dfrac{(S_n)^n}{n!}$  My Attempt  Proof by induction:  I had first shown that it was true for $n=1$ and $n=2$.  Now suppose that it is true for n. Then it must also be true for $n+1$  $(1+a_1)(1+a_2)...(1+a_n)(1+a_{n+1}) \le 1 + S_n + \dfrac{(S_n)^2}{2!} + ... + \dfrac{(S_n)^n}{n!} + \dfrac{(S_{n})^{n+1}}{(n+1)!}$  Define: $(1+a_1)(1+a_2)...(1+a_n)=x$ and $1 + S_n + \dfrac{(S_n)^2}{2!} + ... + \dfrac{(S_n)^n}{n!}=y$  Then: $x+xa_{n+1} \le y+\dfrac{(S_{n})^{n+1}}{(n+1)!}$  By the induction assumption, we know that $x \le y$.  What I can't figure out  From this point, what I think the next natural step would be is to show that  $xa_{n+1} \le \dfrac{(S_{n})^{n+1}}{(n+1)!}$  I know this rearranges to:  $xa_{n+1} \le \dfrac{(S_{n})^{n}}{n!} \times \dfrac{S_n}{(n+1)} $  And feel there may be something I can do here, but haven't been able to figure anything out.


What I want to do is create a Catalina OS () on my MacBook. I can't find anywhere how to do it. I figured that having a Mac, it would be easier to download the ISO file and then create the virtual machine. But still, I managed to download an ISO, but it is becoming impossible to create the virtual machine. When I load the ISO, the message I get is this:  What I have seen is that to create the virtual machine of Mac OS, in Windows or in Linux, it requires writing a series of commands in the CMD or Terminal respectively. Maybe that's it but I don't know.

I have a Macbook that runs Catalina OS, but I would like to have a VirtualBox version of it.   I was able to successfully download Catalina from the App Store, and followed a tutorial to convert it into an .iso image. The problem now is that whenever I try to launch it in VirtualBox all I see is the UEFI Interactive Shell v2.2  The shell displays a Mapping Table and it just hangs there waiting for a command.


I have an article in which I want to place symbols before some of my references, indicating their role in the work. For example, some of them might just be ordinary references while others might point to datasets that I've been analysing.  Below is a minimal working example where I've been using the APA style for the references and where the different types are indicated both by Keywords and by Symbol (the latter indicating which symbol I would like to put in front of the reference in question).  \documentclass[man]{apa6} \usepackage{filecontents,showframe} \usepackage[american]{babel} \usepackage{csquotes}  \usepackage[style=apa]{biblatex} \DeclareLanguageMapping{american}{american-apa} \usepackage[T1]{fontenc} \shorttitle{This is the title of the article}  \begin{filecontents*}{mybib.bib} @article{ID1,     Author = {Some Author},     Journal = {Journal of Non-existence},     Title = {Being on the top: How it feels},     Year = {2014},     Volume = {1},     Pages = {1-10},     Keywords = {Reference},     Symbol = {}}  @article{ID2,     Author = {Some Dufus},     Journal = {Scandinavian Journal of Bogus},     Title = {Second to none (except to one)},     Year = {2015},     Volume = {2},     Pages = {11-20},     Keywords = {Database},     Symbol = {*}}  @article{ID3,     Author = {Some Writer},     Journal = {Journal of Fake},     Title = {Number number three: How it feels},     Year = {2016},     Volume = {3},     Pages = {21-30},     Keywords = {Data received via e-mail},     Symbol = {**}}  \end{filecontents*} \addbibresource{mybib.bib} \begin{document} \nocite{*} \printbibliography \end{document}   The code above gives me the following output:    In this specific case, what I would like to achieve is for the first reference to be as it is, for the second reference to have "* " in front of it and for the third reference to have "** " in front of it.   How can I achieve this? I have total control over my bib-file and can add/remove rows according to certain rules or subset it into different files with different content if necessary.  (Note that this question differs from example  and  since I'm trying to to accomplish this using several different symbols rather than just one. It's non-trivial how one could extend the answers given for those questions to the problem I'm having.)  From comment:  I've tried to modify the answers given in the linked questions for multiple hours now without success, and I wrote my whole master thesis using LaTeX. Either it's really not that trivial or I'm having a brain haemorrhage. (Here's rooting for the first alternative.)

I am using biblatex to produce a bibliography with several sections like this:  \defbibheading{cvpubs}[List of Publications]{\section{#1}} \defbibheading{subbibliography}{\noindent\bfseries\itshape{#1}} \printbibheading[heading=cvpubs]  \printbibliography[env=nolabel,sorting=ydnt,keyword=peer,heading=subbibliography,title={Peer-reviewed articles}] \printbibliography[env=nolabel,sorting=ydnt,keyword=chapter,heading=subbibliography,title={Book chapters}]  % and so on ...   Now I need to mark certain entries with an asterisk left of the entry. Something like this:  * Besserwisser, John (2007). "Whatever you say, you're wrong". In: Journal for Know-it-alls. (1)1. pp. 1-19.  Is this possible?  P.S. If you are wondering why anyone would want to do such a thing: In my case it is simply demanded by a funding agency to mark certain publication in my publication list with an asterisk. But you could also use this to mark the mandatory readings or the recommended readings or so in a reading list.


I am wondering what if a massive blackhole which is say thrice as massive as our Sun is gobbling up a neutron star also happens to be of the exact same mass, so in this scenario can Ligo be able to tell them apart without looking at the sky? Like for example is it 2 binary blackholes merger, 2 binary neutron stars or a blackhole consuming a neutron star of the same mass without looking for any kilonova, etc.

It is being said that gravitational-wave detectors are now able to distinguish neutron star waves from those originating from black holes.  Two Questions:   How do LIGO and Virgo know that a gravitational wave has its origin in a neutron star or a black hole, if their gravitational fields, except for their intensity, are identical in that space beyond the radius that defines them? Is this identification accurate and reliable?


I ran ls and found a directory that has the + bit set:  $ ls -ld /var/log/journal drwxr-sr-x+ 3 root systemd-journal 4096 Oct  1 01:23 /var/log/journal   I understand drwxr-sr-x, but what is +? What is it called? What does it do?

I was changing file permissions and I noticed that some of the permissions modes ended in @ as in -rw-r--r--@, or a + as in drwxr-x---+. I've looked at the man pages for chmod and chown, and searched around different help forums, but I can't find anything about what these symbols mean.


I have the following requirements regarding encryption of url parameters. As I am newly to encryption I can not figure out how to perform all steps using some c# library. Can anybody help me with example code to perform this steps? Encrypt Requirements 1 Generate a secret key from the given password. 1) Receive the password which is coupled with the system name. (This is already available) 2) Generate a random nonce in byte-array as the password’s salt which has a length 16-bytes. 3) Set the number of iterations for secret key as 65536. 4) Set the length of secret key as 256-bit (not bytes). 5) Set the algorithm name for key derivation using PBKDF2 with HMAC and SHA-2. 6) Set the algorithm name of key generation as “AES”. 7) Create a secret key with the function of library or tool with all sets above.  2 Encrypt the JSON-string with the above generated secret key. 1) Generate a random nonce in byte-array as the IV (initial vector) which has a length 12-bytes for encryption. 2) Select encrypt mode for the crypto in your function or tool for encryption. 3) Set the name of crypto algorithm which is for AES in GCM mode and without any padding. 4) Set the length of authentication tag for GCM as 128-bits (not bytes). 5) Convert your JSON-string which contains customer information to a byte-array(plainText) with character set UFT-8. 6) Encrypt the plainText with all sets and the secret key in last step to a new byte-array(cipherText)  3 Prefix the generated IV and password’s salt to the cipherText . 1) Create a new byte-array (cipherTextWithIvSalt). 2) Add the 12-bytes IV in cipherTextWithIvSalt at first. 3) Add the 16-bytes password’s salt in cipherTextWithIvSalt after that. 4) Add the cipherText in cipherTextWithIvSalt at last. 5) cipherTextWithIvSalt is now in form “IV + salt + cipherText”  4 Encode the cipherTextWithIvSalt. 1) Encode the cipherTextWithIvSalt to a new byte-array (encodedCipherTextWithIvSalt) by using Base64   Build a displayable encrypted string.  1) Build a new string from byte-array encodedCipherTextWithIvSalt with character set UTF-8.  Thank you in advance!

I can't seem to find a nice clean example of using AES 128 bit encryption.  Does anyone have some sample code?


In Vinberg's textbook on algebra you are asked in an exercise to prove that the order of any element in the symmetric group on n letters does not exceed e^(n/e), which the book tells you is approximately 1.44^n.  This exercise was stated immediately after showing how to calculate the order of an element by writing it as a product of disjoint cycles and taking the least common multiple of the cycle lengths.  Any hints on how to do this? Unfortunately I've been stuck for a while.

If we let $S_n$ denote the symmetric group on $n$ letters, then any element in $S_n$ can be written as the product of disjoint cycles, and for $k$ disjoint cycles, $\sigma_1,\sigma_2,\ldots,\sigma_k$, we have that $|\sigma_1\sigma_2\ldots\sigma_k|=\operatorname{lcm}(\sigma_1,\sigma_2,\ldots,\sigma_k)$.  So to find the maximum order of an element in $S_n$, we need to maximize $\operatorname{lcm}(\sigma_1,\sigma_2,\ldots,\sigma_k)$ given that $\sum_{i=1}^k{|\sigma_i|}=n$. So my question:      How can we determine $|\sigma_1|,|\sigma_2|,\ldots,|\sigma_k|$ such that $\sum_{i=1}^k{|\sigma_i|}=n$ and $\operatorname{lcm}(\sigma_1,\sigma_2,\ldots,\sigma_k)$ is at a maximum?   Example  For $S_{10}$ we have that the maximal order of an element consists of 3 cycles of length 2,3, and 5 (or so I think) resulting in an element order of $\operatorname{lcm}(2,3,5)=30$.  I'm certain that the all of the magnitudes will have to be relatively prime to achieve the greatest lcm, but other than this, I don't know how to proceed. Any thoughts or references? Thanks so much.


If a stranger sleight of hands a feather into one of your player's hats/helmet, does that feather count as being worn or carried by the player?  If so or if not, can a spell like  be cast on that feather?     If the point you choose is on an object you are holding or one that isn't being worn or carried, the darkness emanates from the object and moves with it. Completely covering the source of the darkness with an opaque object, such as a bowl or a helm, blocks the darkness.   What about an arrow that was fired and lodged into an enemy, or an object being held by your own mage hand? (Mage hand is not a concentration spell.)

What defines a worn or carried object, for the purposes of spells like Burning Hands and Firebolt? They ignite items, but specifically not things worn or carried.  Does carried mean wielded in hand, such as a staff? And does Worn pertain to only clothing and armor?  For instance, if a Wizard gets hit by Firebolt, would his component pouch and spellbook that are just on his person be ignited?


The most energetic particles that strike us from space, which include neutrinos as well as gamma-ray photons and various other bits of subatomic shrapnel, i.e the  are sometimes so energetic, that they must be born in cosmic accelerators fueled by cataclysms of staggering proportions... I have also read that Scientists suspect some sources: the Big Bang itself, shock waves from supernovas collapsing into black holes, and matter accelerated as it is sucked into massive black holes at the centers of galaxies..   Now I actually wanted to know from where these particles originate and how they attain such colossal energies?

Physicists have detected an amazing variety of energetic phenomena in the universe, including beams of particles of unexpectedly high energy but of unknown origin. In laboratory accelerators, we can produce beams of energetic particles, but the energy of these cosmic rays far exceeds any energies produced on Earth. So my question is, from where do these  come from?


Find the maximum of $$f(x) =\int_0^x\sqrt{(x^2-x)^2+y^4}\, dy, x\in[0,1].$$   I am generally familiar with the process of how to find the maximum of a function on a given interval, however I really don't even know where to start with this one, any hints would be greatly appreciated!

Find the maximum value of $f(x)$ when $0 \leq x \leq 1$ and $$ f(x) = \int^{x}_{0} \sqrt{(x^2-x)^2+y^4}~dy$$   I'm guessing that the Fundamental Theorem of Calculus can't be used because the integrand is a function of $x$.  Any help would be greatly appreciated.


I am trying to setup a membership system, and want to implement a start and end date. I think I have successfully implemented the starting date, however, I am having a tough time with the expiration date (1 year later). The expiry should be stored in a text field which is a String, thus it needs to be converted. However, on compilation, I am presented with a NullPointerException.   center.add(createLabel("Membership Date Created")); center.add(memDateCreatedTxtFld); SimpleDateFormat sdf = new SimpleDateFormat ("E yyyy/MM/dd"); Date date = new Date(); memDateCreatedTxtFld.setText(sdf.format(date));  center.add(createLabel("Membership Date Expiry")); Calendar cal = Calendar.getInstance(); Date today = cal.getTime(); cal.add(Calendar.YEAR, 1); Date nextYear = cal.getTime(); String reportDate = sdf.format(nextYear); memDateExpiryTxtFld.setText(reportDate); center.add(memDateExpiryTxtFld);   For example, since today is 2019/02/01, the expiry should be on 2020/02/01.

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?


My Stack Overflow gives me a weird design and stars coming out of my mouse pointer. WTF? How do I get rid of them?

We are living in the gold age of user-generated content. Anyone can post a joke before breakfast, become a meme by lunch and be fired for the joke at the end of business. Ok, it's more like the " age", but still a unique moment in human history. Here at Stack Exchange, we're doing our part by hosting some of the very best content produced entirely by individual users at scale. I think it's fair to say we are the  of Q&A.  It all started back in . Even so, it achieved some popularity within the developer community. The network first expanded to fairly technical topics, but very quickly  for just about every form of human knowledge including an endless variety of  and  schemes. In the days BSE (Before Stack Exchange) it was certainly possible to share knowledge. There were podcasts and blogs and forums and . You could post on  or  or . And of course there were  and  sites with alien mascots. But none of them capitalized on the simple genius of the question and answers format quite like Stack Exchange.  The  and we got to thinking it's too bad Stack Exchange sites have only been part of a third of that history. What, we pondered, would the world be like if Stack Exchange had started back in  1998? Relieving you of the need to imagine it, we are proud to announce a new Time Machine feature that lets you experience Stack Exchange before its time.    What's that? It says "WELCOME TO STACKOVERFLOW" you say? I asked our designers about that and they tell me dank fonts don't need lower case. Oh, you mean why isn't it STACKEXCHANGE? That's a bit of a time travel paradox. We set the baseline at 2008, but the Stack Exchange brand didn't really show up until . We have our crack quantum mechanics working on it. Once they patch the timeline, we won't have any way of knowing.  As you explore the Stack Exchange off-ramp of the Information Superhighway keep your eyes peeled for content that could only exist in the '90s such as:     Funny        Feel free to note especially appropriate examples in the answers below, but please don't .


I had the following chunk of code working, but now I am getting a NPE error.  I know this means the code is pointing at a null value, I just don't understand how this would happen out of nowhere.  It also still works sometimes, which I find very strange.  I get the null pointer error on the rs = myStmt.... line  public static void listClasses() {         System.out.println("\nStudent Enrollment\n");         try {             System.out.println("Enter Student ID to See What Classes they are enrolled in: ");             user_entered_student_id = sc.nextLine();              con = DriverManager.getConnection("jdbc:mysql://localhost:3306/ClassSelector?autoReconnect=true&useSSL=false", "root", "");              boolean found = false;             String listStudentEnrollmentInfo =                     "SELECT ClassSelector.student_x_class.student_id, " +                             "ClassSelector.students.student_name, " +                             "ClassSelector.students.hometown, " +                             "ClassSelector.classes.class_name, " +                             "ClassSelector.classes.description " +                             "FROM ClassSelector.student_x_class " +                             "JOIN classes on ClassSelector.student_x_class.class_id = ClassSelector.classes.class_id " +                             "JOIN students on ClassSelector.student_x_class.student_id = ClassSelector.students.student_id " +                             "Where ClassSelector.student_x_class.student_id =" + user_entered_student_id;             rs = myStmt.executeQuery(listStudentEnrollmentInfo);             while (rs.next()) {                 String studentInClass = (rs.getString("student_id") + "\t" + rs.getString("student_name") + " \t " + rs.getString("class_id") + " \t" + rs.getString("class_name"));


If a function is declared in the global scope, but defined within a local scope, which scope does it belong to? I ask because I know it has access to the local function's scope (where it is defined in), but the declaration confuses me.  Example:  var funcDef; function a() {     var msg = "Hello, world!";     funcDef = function() {         return msg;     } } a(); console.log(funcDef()); // prints Hello, world!   My understanding is the variable, funcDef itself is bound to the global scope, and its function declaration is still bound within a()'s scope. Can someone confirm?

How would you explain JavaScript closures to someone with a knowledge of the concepts they consist of (for example functions, variables and the like), but does not understand closures themselves?  I have seen  given on Wikipedia, but unfortunately it did not help.


If I instantiate an object and pass it to an function, in this function I assign this object to null. It seems when return from the function, the object still there.  I just want to know when I assign null, what happens.

I always thought Java uses pass-by-reference. However, I've seen a couple of blog posts (for example, ) that claim that it isn't (the blog post says that Java uses pass-by-value). I don't think I understand the distinction they're making. What is the explanation?


It's exactly as the title says. I am getting a null reference error even though I have properly referenced the object. I have debugged my code to show that the result is always exactly what I need however whenever put into practical use, the code returns an error.                  if(hit == true && canSee.transform.CompareTag("Unit"))                 {                     //var Obehaviour = other.gameObject.transform.parent.gameObject.GetComponent<UnitBehaviour>().Health; <--- Error is here.                     float Health = other.gameObject.transform.parent.gameObject.GetComponent<UnitBehaviour>().Health;                     float fullHealth = other.gameObject.transform.parent.gameObject.GetComponent<UnitBehaviour>().MaxHealth;                     //Debug.Log("Object " + other.gameObject.transform.parent.gameObject);                     //Debug.Log("Component and name " + Obehaviour.Name);                     ReferenceScript.GetComponent<UnitBehaviour>(other.gameObject.transform.parent.gameObject);                     if(Health < fullHealth)                     {                         if(fullHealth - Health < Ubehaviour.supplies)                         {                             Health += Ubehaviour.supplyTransferRate;                             Health = Mathf.Clamp(Health, 0, fullHealth);                             other.gameObject.transform.parent.gameObject.GetComponent<UnitBehaviour>().UpdateHealth();                             Ubehaviour.supplies -= Ubehaviour.supplyTransferRate;                             Ubehaviour.supplies = Mathf.Clamp(Ubehaviour.Health, 0, Ubehaviour.maxSupplies);                             Ubehaviour.LoseSupplies();                         }                         else                         {                             return;                         }                      }                 }   As shown in the code above, I have tried to get the values I need by storing them in variables other than caching the entire class. But this also didn't work. What could be wrong? The debugs below work perfectly as well.

Since many users are facing the NullReferenceException: Object reference not set to an instance of an object error in Unity, I thought that it would be a good idea to gather from multiple source some explanation and ways to fix this error.  Symptoms I am getting the error below appearing in my console, what does it mean and how do I fix it?  NullReferenceException: Object reference not set to an instance of an object


I'm using the documentclass beamer to make a presentation. Is there a way to start Matlab code directly from Latex? A button that I can press so that the Matlab code starts to run automatically?  Thanks in advance

I want to add a "run demo" button to a Beamer presentation (PDF file) that will launch an external Java application.  Can this be done somehow - Embed an "exec" command inside a PDF using LaTeX/Beamer?


how can i make 2 objects move together? i am creating a Minecraft animation, and need the sword to move with my hand. I have tried Ctrl+G, yet it still doesnt move together

I'm looking for a way to have two separate objects be connected, so that when I move the first object the second one will move also. The term parent is used, but how do I parent a object?


Is there a way (in Ubuntu 16.x, 18.x) to disable all error reporting?  I want to keep being notified but disable any and all „calling home“.  I do not want to disable being personally notified, just the "calling home part". Not sure, if  might fit the bill.

On one of my machines I have a process running called "whoopsie". I'm running 12.04 server and never specifically installed anything with this name.  Google seems to imply that it has something to with error logs but I'm not finding too much information. The fact that I didn't manually install it and the 3 other servers I checked did in fact have no such running process OR executable made me a bit confused.  Does anyone know what the "whoopsie" process is?  Does anyone know what packages might have installed it? The server is quite plain, it has a LAMP stack, Samba and print servers and the Nagios NRPE plugin, nothing more installed, just standing there being a nice backup-server.  Some more info:  $ whoopsie -h Usage:   whoopsie [OPTION...]  Help Options:   -h, --help           Show help options  Application Options:   -f, --foreground     Run in the foreground   and  USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND   whoopsie   913  0.0  0.4  24448  2092 ?        Ssl  May07   0:00 whoopsie   and  $ sudo cat /etc/passwd | grep whoop whoopsie:x:107:118::/nonexistent:/bin/false


Is there a way to assign hotkeys to: Jump to previous marker Jump to next marker  In the menu marker/Jump to previous marker and Jump to next marker, letters t and J are underligned to indicate a hotkey possibility I'm gessing but I can get it to work. Thank you

I want to be able to cycle through the frames I set markers on (I have cameras bound to each marker so these are usually the first frame in a shot). Is there a hot-key for this?


Is there a way for me to uninstall or delete EVERYTHING off of my computer including Linux Ubuntu because I want to make sure I can know everything that I have on it is just the stuff that I need. Please help me with this problem.

I am planning on selling my laptop. So I formatted my disk using the Disk Utility and chose to overwrite the disk with zeroes.  Two questions:  Is this the same as overwriting the disk using dd?  sudo dd if=/dev/zero of=/dev/sda   And is this method secure enough so that buyers can't easily recover the previous data? Or should I take additional measures (like encrypting the disk, destroying the headers, etc.)?


I mistakenly installed 5.0 Lollipop on my NVIDIA SHIELD tablet, and I hate it. Is there a way to revert back to KitKat? I've tried finding a way, but no luck so far.     This was the original post:   StackExchange doesn't let me comment or reply to this question because I don't have enough reputation... so I am forced to create a duplicate.

I mistakenly installed 5.0 Lollipop on my nVidia Shield tablet, and I regret it. Is there a way to revert back to KitKat? I've tried finding a way, but no luck so far.


I just installed the DLC, bought Lakeview Manor, and now I have to furnish the inside. It seems that I can only find a few quarry stones in the chest and next to a hill, but on the hill was a stone quarry vein.    So I mined it. It took forever and ever and I tried to wait before it depletes. It didn't. Here are my theories:   The quarry gives you a huge amount of quarried stone before depletion. The quarry give you unlimited amounts of quarried stone, so you won't have to find another vein.   So which theory is true? Is there a limit to how much quarried stone can be mined? Or does it go forever until you press a button?

In Skyrim: Hearthfire, the stone quarries only give the player a total of 4,000 quarried stone from one place at a time before it says it's depleted. Will the quarries replenish their stone after an in-game month passes like the mines do, or is there a finite amount of quarried stone?


I know how reputation works and also read this post   According to this post your reputation will be decreased by 1 when you vote an answer down/not useful.  As you can see in my profile -1 reputation is deducted from my account even though I didn't downvote on this post. So I'm not sure what it represents.

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


If you were to state one philosophical implication of relativity theory what would you choose and why?

what are the implications of relativity? does it imply for example that there is no center to spacetime?  ie despite that the universe started from one point, there is no real center, every frame of reference can be considered as the center point vis a vis the laws of physics such as the speed of light.


To automate access to my scanner, I'm trying to cat the output of scanimage -L into a Bash variable. In fact I was successfully doing this until recently with siL="$(scanimage -L | grep net | awk '{ print $2 }' )" in my , getting me addresses like hpaio:/net/ENVY_5530_series?ip=192.168.43.249 stored in $siL. I've today noticed an odd glitch which I've reduced to a minimum example here following. Given a file lines containing just this text: LINE1 LINE2_this_string_containing_an_embedded_question_mark_-> here?itis <-_doesn't_appear_if_cat_is_invoked_via_command_substitution LINE3  cat lines correctly shows the file, but $ L="$(cat lines)"; echo $L LINE1 LINE2_this_string_containing_an_embedded_question_mark_-> <-_doesn't_appear_if_cat_is_invoked_via_command_substitution LINE3  (and the same if I replace cat with <). Why is that word containing the question mark omitted?

Or, an introductory guide to robust filename handling and other string passing in shell scripts.  I wrote a shell script which works well most of the time. But it chokes on some inputs (e.g. on some file names).  I encountered a problem such as the following:   I have a file name containing a space hello world, and it was treated as two separate files hello and world. I have an input line with two consecutive spaces and they shrank to one in the input. Leading and trailing whitespace disappears from input lines. Sometimes, when the input contains one of the characters \[*?, they are replaced by some text which is is actually the name of files. There is an apostrophe ' (or a double quote ") in the input and things got weird after that point. There is a backslash in the input (or: I am using Cygwin and some of my file names have Windows-style \ separators).   What is going on and how do I fix it?


Let's imagine we have a quad-core CPU. Now, I'm wondering if it is possible to run – let's say – Windows on 2 of the cores and Linux on the other 2 cores.  And – before someone marks this as a duplicate – I'm not talking about virtual machines (as in all the other questions). I'm talking about running the OSes on the barebone CPU without anything like a scheduler/hypervisor in between (besides a slightly modified BIOS/UEFI that assigns the correct RAM address spaces and connects to seperate displays etc).

A friend of mine asked a question that got me thinking. Is it possible (theoretically, I assume it hasn't been done) to run two operating systems simultaneously on the same computer? Not in the sense of multitasking in one window, but being able to quickly switch from one to the other without restarting. Could something low-level be created that would intercept system calls (or whatever needs to be done) to make each OS think it is running alone? Or hardware itself that would accomplish this?  I'm not talking about dual booting or using virtual machines, but actually running two OS's side-by-side.


I want to automate running a Python script. And I think I already know how to do that with a cron entry.  The problem is that I need this script to run again only if a previous one has finished.  The Python script reads from a .csv file (only the first record), and gives it as parameters for the script onward. Then this record is removed from that table (which is essentially like a list of runs that need to be done) and is moved to another table for finished tasks along with the result of the script.  So, because records are being deleted at every run, I need a following iteration of the script to start only if the previous one finished.  How/Can I do that under Ubuntu 16.04 LTS?  EDIT:  I tried scheduling the python script this way and installed run-one like that:  sudo apt-get update sudo apt-get install run-one  # The below code is in crontab * * * * * run-one python '/home/phdmonster/Downloads/nn course/my_code.py'   Aand, it doesn't work. No tasks are run.  Edit by Sergiy Kolodyazhnyy: Issue resolved in comments, also discussed in  linked chat room; issue was with extra *, linked duplicate works as per OP's comments

I am looking for a simple and generic solution that would allow you to execute any script or application in crontab and prevent it from running twice.  The solution should be independent on the executed command.  I assume it should look like lock && (command ; unlock) where lock will return false if there was another lock.  The second part would be like if it acquired the lock, run command and unlock after command is executed, even if it returns error.


I have a Ryzen 2600x and a 1070, but my Rainbow 6: Siege loading times is as much as five minutes. Would installing a 250GB solid state drive be beneficial towards my loading times in Rainbow 6: Siege?

I have a high-end computer with decent ethernet yet whenever I join a game in Siege everyone finishes loading and it takes me 1-5 minutes. Is this because of my internet or computer?   Specs:  CPU - i7-7700k GPU - GTX 1080 16GG RAM 5900 RPM 4TB Hard drive


Is it possible to view an atom? What would it look like?    Would it resemble a traditional atomic diagram?

I was wondering how far in imaging physics had gotten. Do we hold the technology to actually take a picture of, say, an alpha particle, or even a single atom?  I realise we aren't talking about camera pictures, so what kind of imaging techniques have taken images/is most likely to be the technique to take an image of a single atom?


Friend : Let's go Me : My brother has taken my car, we have to wait until he come back. Or My brother took my car, we have to wait until he come back

Don't worry, I have written your name on the attendance sheet.   Or     Don't worry, I wrote your name on the attendance sheet.


I accidentally added extra salt to my rice. Is there anything I can do now?

How to fix food that got extra salty? I imagine this depends on what the food is. With spaghetti, you can add water or change water if you detect it on time. But what about grilled meat? Or a tomato sauce?


I'm a US citizen.  I want to spend about 6 weeks vacation visiting my friends in France, Spain and Italy.  However, with taking this much consecutive time off from work my employer would require me to do daily check-ins (email and Skype).    It's also very likely I would have to spend up to 20 hours per week fixing untoward problems.  This would require me logging into my company laptop to write and submit code.  Any hours that I spend doing company work I would be paid as a normal employee (vs. PTO for the rest of the vacation).  Is this legal as a tourist?  EDIT:  I emailed the Spain consulate and received this replay: As a US citizen you can travel to Spain for up to 90 days without needing a Visa. You could also work for your US employer while visiting Spain.

I'm currently working in Canada as a Canadian citizen and planning on travelling to a few places in Europe for six weeks.  I am also going to continue working remotely full time.  Is there any legal problems with this that I should know about?   Do I need to apply for a visa or is six weeks a small enough time that it's not necessary?  The countries I'm planning on visiting are:  Greece, Croatia, Hungary, Czech Republic, and Germany.  Though I might cut one or two of these to simplify things a bit


I myself think miracles are phenomena that cannot be explained by extant accepted theories. Now, science and scientific method claims to reject miracles and propose a reason and logic for every phenomena. But, I think the very premise is fallacious. For, a miracle is a phenomena that is not yet explained based on the current theory, and if a logical way is found to explain the phenomena, then it becomes a scientific fact. Thus, the very thing that we call a miracle will become a scientific fact. Take, for example the cell phone. In days of yore before the advent of cell phones, speaking to far off people would be classified under the banner of clairaudience and claimed as false. But, now, the cell phone has given the power to do the same. So, I think that things that are called impossible, or miracles, are the things that can actually be performed, but not currently, owing to lack of a suitable instrument. Thus, belief in the occurence of miracles, seems to me, not a superstition, but a goad to extend the existing repertoire of knowledge. Can this view be justified. Any light on this view? Thanks beforehand.

I was reading  which was suggested to me in a response to . On p. 2, in an article entitled "Unlikely," Laurence M. Krauss, a professor of physics and astronomy at Case Western Reserve University, says:     "Of course, nothing would stop science from uncovering positive evidence of divine   guidance and purpose if it were attainable. For example, tomorrow night if we look up at the stars and they have been rearranged into a pattern that reads, “I am here,” I think even the most hard-nosed scientific skeptic would suspect something was up."   This, as I understood, means that for physicists, maybe, and only maybe a phenomenon like stars lining up in "I am here" fashion, can be regarded as a miracle. Then I thought: is there anything special in nature that can cause a rational person to think of that phenomenon as a miracle?   What should a rational person consider as constituting a miracle? For example, if someone appears now and brings dead people back to life, why should a rational person believe his/her action as a miracle? Maybe because he can't do the same, or because he knows that returning a dead person back to life is impossible, or maybe he/she doesn't accept that action as miracle.


I tried to install an AMD driver on my computer (Ubuntu 16.04) because Ubuntu is still running on the integrated GPU.  Installation failed. Here is fglrx-install.log:   NOTE: If your system has logged the missing packages required for installation, install them in the order as per the log file to resolve package-dependency issues. Supported adapter detected. Check if system has the tools required for installation. Uninstalling any previously installed drivers.  Creating symlink /var/lib/dkms/fglrx/15.302/source ->                  /usr/src/fglrx-15.302  DKMS: add completed.  Kernel preparation unnecessary for this kernel.  Skipping...  Building module: cleaning build area.... cd /var/lib/dkms/fglrx/15.302/build; sh make.sh --nohints --uname_r=4.8.0-45-generic --norootcheck....(bad exit status: 1) [Error] Kernel Module : Failed to build fglrx-15.302 with DKMS [Error] Kernel Module : Removing fglrx-15.302 from DKMS  ------------------------------ Deleting module version: 15.302 completely from the DKMS tree. ------------------------------ Done. [Reboot] Kernel Module : update-initramfs

I have 14.04.5/16.04 or newer and an AMD GPU. I'm not getting the performance I want, and some programs say they need things like OpenCL.  I've heard about fglrx, but if I try to install it on my machine, it breaks and I have no GUI.  Is there anything I can do to get my AMD card working to its full potential?


What I would like to do, is to print the full author list for a reference,  in a document where I've set maxnames to a small number. I'd like the names printed as Firstname Lastname. The list of authors can be printed with \citename{<ref>}{author}, but it will be truncated with et al. when maxnames is in effect.  I guess I need to define a new format for use with \citename, but I haven't quite been able to wrap my head around how that should be done.  MWE:  \documentclass{article} \usepackage[style=authoryear,maxnames=3]{biblatex} \addbibresource{biblatex-examples.bib}  \begin{document} This should print Aks\i{}n et al. (2006): \textcite{aksin}  \bigskip  Here I would like to print all the authors, not just `Özge Aks\i{}n et al': \citename{aksin}{author} \end{document}

Is there a possibility to change biblatex's maxnames option in the middle of the document?  Background: I am including a list of my own publication at the end of my thesis.  I include also some papers where I am not the first author, so I need to show the full list of authors here.  The most helpful comments I found are in .  As far as I understand:   Using the options field in the .bib file won't work without some additional work and duplication of entries in the bib file, since I might cite the same article in the main document (where I want to have only maxnames displayed at maximum) and in my publications list (where I need full author list. Duplicating my own articles into a second file would be possible.  I'd still prefer a pure biblatex solution without the need to adapt the .bib file. If that is the only way, though, I'd need advice on how to get this to work as well.   Many thanks in advance!  Regards, Andreas  Here is the MWE:  \documentclass{article} \usepackage{biblatex} \usepackage{currvita}  % just for demonstration \ExecuteBibliographyOptions{maxnames=3} \addbibresource{biblatex-examples.bib}  \begin{document} \section{Main Document} Here I write about our method \parencite{herrmann}.  \printbibliography  \clearpage \begin{cv}{Max Mustermann}    %% personal information   \begin{cvlist}{Personal Information}     \item[Date of Birth] 01 March 2013     \item[Place of Birth] Berlin     \item[Nationality] German   \end{cvlist}    %% Publications   %% \ExecuteBibliographyOptions{maxnames=99}   \setlength{\cvlabelwidth}{0mm}   \begin{cvlist}{Publications}     \item \fullcite{herrmann}   \end{cvlist}  \end{cv}  \end{document}


What is the best way to create a local repository of packages that are needed to operate an own application? Currently all packages were synced and the versions are frozen. What is the best way to get only new packages (that have to be tested) that are needed in order to avoid testing all?

I would like to build my own local repository on my LAN, so that machines on the LAN can update and upgrade from it. I want to download the packages and store them on my local server so that I can update, upgrade, install, etc, from it without using the internet.


At events and on conversation boards everyone is has stated that as Khans comes out M14 and the Return to Ravnica block is going to be rotating out of standard. I can't find any reason this would happen other than that "that is what happened in the past". As Magic has a very structured system I would imagine there is an official feed/site somewhere from Wizards that announces and clarifies such things.

What are the current legal tournament formats for Magic: The Gathering?  What are the differences/definitions of each format?  At what point do sets rotate in/out of a format?


I'm coding a bot using discord.js. I'm trying to setup a system where the bot is allowed to send a message as long as it is not blacklisted. However, every time I run the function, I get this message: ReferenceError: res is not defined I've tried moving var res so many times and I can't figure it out. Does anyone know how to arrange this properly? function getNum() {      var randNum = [         "1",         "2",         "3",     ];     // Blacklist Entries Start     var blacklistNum = [         "1"     ];     // Blacklist Entries End     return randNum[Math.floor(Math.random()*randNum.length)];     return; } if(res === blacklistNum) {     getNum(); }  getNum(); message.channel.send(res);

What is the scope of variables in javascript? Do they have the same scope inside as opposed to outside a function? Or does it even matter? Also, where are the variables stored if they are defined globally?


I know this is an awkward questions, but i really  confuse  this two, which one is use to refer completely  shirtless and which one is use to refer having a little clothes  on ( bra and underpant).

The question is quite clear.  Is there any difference (semantically or connotationally, if that's a word) between nude and naked? Nude seems more formal to me, but I'm not quite sure.  Interesting:  Merriam-Webster link from naked, to nude     Definition of NAKED   1. not covered by clothing :


When building a LaTeX file (with Texstudio, if that's important) in addition to the .tex and .pdf files, there are also .aux, .log, and .synctex.gz created.  What do these extra files do?

In addition to the .tex and .dvi or .pdf files, TeX/LaTeX/ConTeXt produces and uses lots of other files. What do they do? Which ones are used to create the document and which ones are automatically created by the compiler. What files can I safely delete?


I am trying to get all data from all rows of a database table using a prepared statement as part of a database object, but I keep getting a SQL syntax error. I was using mysqli without prepared statements before switching to PDO with prepared statements and I got no errors. I've searched many times but can not figure out what needs to be changed. Any help is appreciated.  public function GetGuestList($eventCode) {   $this->eventCode = $eventCode;    //Get event info using prepared statement   if ($this->stmt = $this->dbConnect->prepare("SELECT * FROM :eventcode")) {     $this->stmt->bindParam('eventcode', $this->eventCode);     $this->stmt->execute();     $this->guestList = $this->stmt->fetchAll(PDO::FETCH_ASSOC);   }  //return event ifno as array return $this->guestList; }   And the error Im getting is   Warning:  PDOStatement::execute(): SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 in /var/www/html/rsvp/lib/classes.php

Why can't I pass the table name to a prepared PDO statement?  $stmt = $dbh->prepare('SELECT * FROM :table WHERE 1'); if ($stmt->execute(array(':table' => 'users'))) {     var_dump($stmt->fetchAll()); }   Is there another safe way to insert a table name into a SQL query? With safe, I mean that I don't want to do  $sql = "SELECT * FROM $table WHERE 1"


Is there an idiom to describe someone who is clever and quick-witted?

A word to describe someone's personality trait that think quick. For example he gets lost in the woods then comes up with a solution on the fly to find his way back home.


I just bumped into a simple question. Let's say I want to compute the probability of taking both Math and Science courses (i.e., $P(M \cap S)$) given this information: Total class size is 10; 7 students take Math and 5 students take Science. Only one student takes neither of them. What is the probability that a student takes both Math and Science? Then I know $$ \begin{align} P(M \cap S) &= P(M)+F(S)-P(M \cup S) \\ &=0.7+0.5-0.9 \\ &=0.3 \end{align} $$ (easily derived from a Venn Diagram) but wonder why I can't do $P(M\cap S)=P(M)\times P(S)=0.7\times 0.5=0.35$ in this case, even if $M$ and $S$ seem to be independent events but the result is different). What's the intuition behind the product rule, and why are the answers different?

Suppose that we have the situation as depicted in the figure: a random experiment which has 4 outcomes $x_1, ..., x_4$ and two events $A$ and $B$. Also assume that $P(x_i)=0.25$.  Now, since $P(A \cap B) = P(A)P(B) = 0.25$, by definition the events $A$ and $B$ are independent. This does not make sense to me. Why are they independent? Is there an intuitive explanation?  Another thing is, suppose that there is a 5th outcome, $x_5$, outside of $A \cup B$, in that case the events $A$ and $B$ are no longer independent since  $P(A \cap B) \ne P(A)P(B)$. This result also does not make sense to me.


I have been trying to install a game called "Tortuga, Pirates of the New World'. I tried through the usual pressing-on-the-AutoRun-and-going-onfrom-there which opens the installer page and gives me an error saying   Error: This program will not run on Windows32s.    I then explored the disk further and came across the Tortuga.exe but when I clicked on that another error came up saying:  Please insert a disk into your CD/DVD drive and restart the application   But, naturally, the disk is already there.  I then tried PlayOnLinux, but it gave me the same errors, even after I found the game on the WineHQ database (it's a bronze game) and the tester said that they used Wine 1.6. I downloaded Wine 1.6 through PlayOnLinux, chose it as the Wine program to run the game on and it still told me that it crashed.  The link below is the Wine page where it details that it runs but it has a workaround as it does not install:   If I could perhaps have some help working out what to do for the workaround I could get it working?  I am very new and rather nervous when working through terminal, but if going through there might get it working I'm willing to try, and the reason why I say this is that there is some sort of patch on the Wine page, but I don't know where to type it.

Can .exe and .msi files (Windows software) be installed in Ubuntu?


I want to insert a data, automatically generate a time and date. How to achieve? As shown below:

How do you set a default value for a MySQL Datetime column?  In SQL Server it's getdate(). What is the equivalant for MySQL? I'm using MySQL 5.x if that is a factor.


I was learning linked list and created every field as static but it was not working so I thought I should try to create on simple static object and check if it works or not and I can see the address of static object. Why it is not working with the linked list. This is the code to check the static object.     class A{     static A obj = new A(); } public class Temp {      public static void main(String... h) {         A a = new A();         System.out.println(a.obj);     }  }  This is the code of linked list:- public class Node {     static int data;     static Node next; }  public class LinkedList {     Node head;      public void insertAtTheEnd(int data) {         Node node = new Node();                    node.data = data;             node.next = null;                  if (head == null) {                 head = node;             } else {                 Node n = head;                 while (n.next != null) {                     n = n.next;                 }                 n.next = node;             }             }       public void show() {     Node node = head;      while (node.next != null) {         System.out.println(node.data);         node = node.next;     }     System.out.println(node.data); }} public class Testing {  public static void main(String[] args) {     LinkedList list = new LinkedList();         list.insertAtTheEnd(6);         list.insertAtTheEnd(7);         list.insertAtTheEnd(8);          list.show();     }  }

To be specific, I was trying this code:  package hello;  public class Hello {      Clock clock = new Clock();      public static void main(String args[]) {         clock.sayTime();     } }   But it gave the error      Cannot access non-static field in static method main   So I changed the declaration of clock to this:  static Clock clock = new Clock();   And it worked. What does it mean to put that keyword before the declaration? What exactly will it do and/or restrict in terms of what can be done to that object?


How can one request reconsideration of a   after a certain period of time, let us say after one year?

As I was browsing earlier today, I really happened to like an answer to a question. The question didn't interest me so much, and the answer was actually a tangential reply to some of the comments in the post, and was by far more valuable than the original question or the accepted answer. Now, my only options to favorite that answer are   Favorite the question. Add the link to the answer to my browser's bookmarks.   I was pretty sure others have had the need for this, and sure enough, I found a  and a , both nearly two years ago and a , nearly a year ago.  Now, there might have been several reasons why it (and several other old feature-requests) was denied. SO was pretty young back then, there probably weren't enough developers on board, perhaps they didn't have the resources to track favorite answers. But SO has grown since then from 1-3 sites to 30+ sites. Requests that might have at one point been too demanding, might now be easily implementable, which could greatly enhance user experience.  So, my question is: "Can we re-request features that were previously declined, provided the request and the denial are sufficiently old, so that the team can reconsider their decision?"  After how long is sufficient enough needs to be decided by the community and is only to prevent re-requesting a feature that was only declined say a week ago.


According to  answer, SSH is disabled by default. However, looking around at tutorials, there were  of examples of installing an SSH server (e.g. sudo apt install openssh-server), which I completed. After running the install (appropriate prompts for new data usage etc.), I checked the aforementioned post and found the file /etc/init/ssh.conf did indeed exist.  Did I just install OpenSSH for no reason, and did 16.04.4 LTS have an SSH server built in that I simply had to enable and configure?

I am developing an offline installer for all versions of Ubuntu, and I need Ubuntu's default installed packages list. Is there a way to get this information from any server (web server)? Any script to fetch any Ubuntu version's default installed packages list.  I will give the Ubuntu version, and the script will fetch the packages list.  Note: I need at least a server address. I can write a script for this.