How can I install the driver for Belkin N600 wireless adapter on Ubuntu 14.04?

I have read through questions concerning installing driver for this wireless adapter, and found that the driver is closely dependent on the details of each adapter, thus I post my adapter here and ask for specific instructions. If further information is needed, please let me know, thanks!  I just followed the answer provided by Ben Lee in  to try installing the driver. Every step is successfully done except for the last step, where I enhanced it with sudo modprobe 8192du. I then restarted the computer, but it seems it does not work. Even the light on the Belkin adapter is not turned on (in Windows, the light labelled with ((|)) will be on to show that it is at least working). Thanks for further help!  lsusb gives the following information,  $ lsusb Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 005 Device 002: ID 3938:1031   Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 001 Device 003: ID 050d:615a Belkin Components F7D4101 / F9L1101 802.11abgn Wireless Adapter [Broadcom BCM4323] Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub


Why would you bypass a zener diode in the flyback protection of a relay coil?

SparkFun sells a relay control kit that you solder together.  On the back of the circuit board there is a pair of metal contacts that are labeled "bridge for zener bypass".  I assume you put a small blob of solder there to bypass the zener diode.    My question is, why would you want to bypass the zener diode?  What do you loose and what do you gain when doing so?    Thanks!


While reading a book on statistics, I encountered the following:  $$f(x) = \mathop{\text{argmin}}\limits_c E_{Y|X}([Y-c^2]|X=x)\tag{1}$$ which somehow equates to $$f(x) = E(Y|X=x)\tag{2}$$ How do we get from result $(1)$ to $(2)$?


Is there any pathological shape that has a finite surface area but an infinite volume? Sort of like the opposite of a Gabriel's horn.


Different links extraction from a text file?

My problem is that I have a non-structured .txt file like the one below that contains different links because there is a signature in each link:    What I want is to extract all the links that begins with http:// web.alphorm.com  I used the regex shown below:  matchObj = re.findall(r'(http:// web.alphorm.com/.*&Key-Pair-Id=APKAJF2PMCJPGKXG2GEA)"}',                       string)   But it doesn't really gives me what I want. It shrinks the text file and gives me the searched links, but along with other undesirable links and text!   What is wrong with it?


If you don't have access to the source code of a struct or class, is there a way to know the members of that struct or class? Specifically, i want to know the names, order, and data types of the members.


Is there an easy way to remove overlapping faces? In the example remove doubles doesn't work  You might be able to do the following: A to select all faces. X > Only Faces. F to create faces, but after deleting the faces I'm left with something like this.  If I press A to select all and then press F to create faces then there are still overlapping. Blend file


A simple click event is not firing on my list items with the following line of code:  $("ol > li").on("click", listItemClickEventHandler);   To break down the problem, I cached the reference to the query selector first and then called the on function on it.  The query selector does return an object but I can't tell if that's the right object to set the handler on except for the fact that I've done this a million times in the past and it has worked.    function showAllCookies() {   $("ol").empty();   let all = []; //getAllCookies();   if (all) {     for(let cookie of all) {       $("ol").append(`<li>${cookie}</li>`);     }   } else {     $("ol").append(`There are no cookies to display.`);   } }  $(btnSave).on("click", function(event) {  // create cookie });  $("input[type='text']").on("keyup", function(event) {   // trigger save });  $("ol > li").on("click", listItemClickEventHandler);  function listItemClickEventHandler(event) {   let key = event.target.id;   $("#txtCookieName").val(key);   // to do   $("#txtCookieValue").val(""); }  showAllCookies(); .header {   font-size: 1.4rem;   font-weight: bold; } input[type="text"] {   width: 200px;   margin: 10px; } #errorMessage {   color: red; } li:hover {   cursor: pointer; }

All Cookies

Enter a key and value to create a new cookie or to update an existing one

   <input type = "text" id = "txtCookieName" value = "" placeholder="cookie name"/>
   <input type = "text" id = "txtCookieValue" value = "" placeholder="cookie value"/>   <button id = "btnSave">Save</button>


How do I combine three rendered animated layers?

I animated these 3 layers and than tried combining but couldn't do it. I know how to combine rendered images from different layers in compositor but I'm trying out animation. Please help.!!!


Defining a new command as \newcommand{\boo}{\texttt{boo}} and then using it in the text as \boo removes the space after boo and the next word. This is fine if the next word happens to be a period, ., but not good otherwise. The workout is to write \boo \ in the main text. Question: Is there a way to avoid this "\" (to be able to type faster)? What I tried: I tried \newcommand{\boo}{\texttt{boo}\ } instead, but then the problem with the period is reversed - it is not fine if the next word happens to be  period, ., but is fine otherwise.


what is magic values floating in erlang?

I am reading .  In Module chapter, It said:      macros are mainly useful to avoid having magic values floating around your modules.    But what is magic values floating?


How to prove this problem about uniform continuity

If $f$ Continuous bounded on $\mathbb{R}$，and $$\lim_{h\to0}\sup_{x\in\mathbb{R}}\left|f(x+h)-2f(x)+f(x-h)\right|=0.$$ prove that $f$ uniformly continuous on $\mathbb{R}$. I try to find a $\delta>0$ to make it arbitrary $x_1,x_2\in \mathbb{R}$and$\left|x_1-x_2\right|<\delta$have$$\left|f(x_1)-f(x_2)\right|<\varepsilon.$$but I don't know how to use this complex limit expression.I hope you can give me some tips, thank you!


What can i do with a low And Old spec computer?

I just rebuilt a computer, 512 Mbs of ram,180Gb,Intel Pentium 3,   should i install xubuntu? would it make it any faster?  i would like to use it for basic browsing,homework,All of that mostly online/In the cloud.  Thanks for your answers in advance.


If a gas expands adiabatically will the work done be positive or negative?  I think it will be positive as $\delta W=p dV$ and we have a positive sign due to the work done by the gas is positive as it pushes to expand. But this site has the negative of the answer I obtain.   (See adiabatic processes section)


Finding the intersection of $\cos(x)$ and $x$

I want to find the intersection of two functions. One is $f(x) = cos(x)$. The other one is $g(x) = x$. When I do the normal steps like equating both functions and finding the roots, I get something like this $\cos(x) = x$ $\cos(x) - x = 0$ How do I proceed further? Is there any argument to cosine such that it would give back the same argument as output? If yes, how do I find it analytically without graphing the function?


I just installed Ubuntu 20.04, and it seems to have a problem with gnome shell extensions:  What can i do ? (There is log somewhere to read ?) Edit: When install extension, i can see in journalctl: févr. 08 10:58:46 V21BSJ gnome-shell[1686]: JS ERROR: Extension systemMonitor@gnome-shell-extensions.gcampax.github.com: Error: Requiring GT op, version none: Typelib file for namespace 'GTop' (any version) not found                                              @/home/bastiensevajol/.local/share/gnome-shell/extensions/systemMonitor@gnome-shell-extensions. gcampax.github.com/extension.js:4:14                                              _callExtensionInit@resource:///org/gnome/shell/ui/extensionSystem.js:425:13                                              loadExtension@resource:///org/gnome/shell/ui/extensionSystem.js:346:27                                              callback@resource:///org/gnome/shell/ui/extensionDownloader.js:234:39                                              gotExtensionZipFile/<@resource:///org/gnome/shell/ui/extensionDownloader.js:115:13  Edit2, after installed sudo apt install gir1.2-gtop-2.0 libgtop2-dev, extension fail to install with: févr. 08 11:06:49 V21BSJ gnome-shell[1686]: JS ERROR: Extension systemMonitor@gnome-shell-extensions.gcampax.github.com: TypeError: Main.messageTray._messageTrayMenuButton is undefined                                              enable@/home/bastiensevajol/.local/share/gnome-shell/extensions/systemMonitor@gnome-shell-extensions.gcampax.github.com/extension.js:324:19                                              wrapper@resource:///org/gnome/gjs/modules/script/_legacy.js:82:27                                              _callExtensionEnable@resource:///org/gnome/shell/ui/extensionSystem.js:167:32                                              loadExtension@resource:///org/gnome/shell/ui/extensionSystem.js:349:26                                              callback@resource:///org/gnome/shell/ui/extensionDownloader.js:234:39                                              gotExtensionZipFile/<@resource:///org/gnome/shell/ui/extensionDownloader.js:115:13


Array to string conversion error when executing PDO statement

There are many questions on stackoverflow regarding an error printing "Array to string conversion" but none seem to help me.  I'm trying to execute a sql select statement with php. Here is a bit of what im dealing with:  public static function getNumCGS(){     require 'includes/vars.php';     $paramArray = array(":table" => "campground_data");     $query = Utilities::dbSelect("SELECT count(*) FROM :table","campgrounddata", $paramArray);     $r = $query->fetch();     return $r["count(*)"]; }   In Utilities.php:  public static function dbSelect($selectStmt, $dbName, $params){     require_once "config/config.php";     $dbh = Config::connect($dbName);     $query = $dbh->prepare($selectStmt);     $query->setFetchMode(PDO::FETCH_ASSOC);     $query->execute($params) or die("DB Error: " . $query->errorInfo());     return $query; }   In Config.php:  public static function connect($dbname){     $dbserver = "localhost";     $dbuser = "sys";//just a local server     $dbpass = "test1";//just a local server     try {         $dbh = new PDO("mysql:host=$dbserver;dbname=$dbname", $dbuser, $dbpass, NULL);         return $dbh;     }     catch (PDOException $e) {         printf("ERROR: %s", $e->getMessage());         exit();     } }   If I call getNumCGS() It tells me that I have an Array to string conversion problem at the line that executes the query in the dbSelect function.    I've been following an example from a text book, not sure what the deal is. The example I'm seeing passes in an array into the execute call.


Statistical test for one paired observation

In , @whuber writes in his reply that      If you were willing to assume something about that common distribution (such as it is some Normal distribution--but without knowing or assuming anything about its parameters) then tests exist--even when only a single pair (x,y) is observed (which most people find counterintuitive). Without some kind of assumption, though, your task is hopeless, because you have no information about how much of a difference can be considered "negligible."   I would be interested how such test is carried out (let's assume a normal distribution).


Proving $G$ is a group if it is closed under product and both cancellation laws hold.

I would be grateful if someone pointed out an error in my answer.     Prove that a if finite set $G$ is closed under an associative product and that both cancellation laws hold in $G$, then it is a group. Also prove that if only one cancellation law holds, then $G$ need not be a group.   In my proof, I seem to be using only one of the cancellation laws. Hence it is a contradiction to both parts of the question.  Proof:  Take an element $a\in G$. Find $a^n$ for all $n\in\Bbb{N}$. We know $G$ is closed under multiplication, and that it is also finite. Hence, there has to be some $a^x=a^y$. Using the left hand cancellation law, we get $a^{x-y+1}=a$, which implies $a^{x-y-1}$ is the inverse of $a$ ($a.a^{x-y}=a\implies a.a^{a-y-1}=e$).  Now we have to prove that the inverse of $a$ exists in $G$. Let us suppose it is $x$. Assumption: if $x$ is the inverse of $a$, then $axa=a$. Using the left cancellation law, suppose we find $a^m=a$. Then $x=a^{m-2}$. As $G$ is closed under multiplication, $x\in G$. Here I'm assuming $m\geq 3$.   Hence, $G$ is a group.   Are the assumptions (if $ax=a\implies x$ is the identity and $axa=a\implies x$ is the inverse) valid?  Thanks in advance!


interpreting density function when all the values are the same


How would I apply formatting to another cell based on whether another cell's date has passed or not?

I'm working on making a spreadsheet in Google Sheets, and I'm attempting to have a column of names and then a column of dates adjacent to it.   I'd like to set up some sort of conditional formatting that checks if a cell's date has past or not, and if it has, formats the corresponding cell in the name column with a strikethrough.      Names  |  Dates | Etc. Name Here |  Date  | --- Name 2    |  Date2 | ---   So if the second date listed under "Dates" already passed (aka 1/10/16 as opposed to 2/19/16 compared to today's date, 1/19/16), then the second name listed under "Names" would appear formatted with strikethrough (like you had crossed it out).


Is there any difference between "color" and "colour"?

What is the difference between color and colour?


Is there a way to create a key binding that would allow me to mount my googledrive?

I'm working on a CB3-532 Chromebook with GalliumOS and my google-drive-ocamlfuse is  working fine, but what I was wondering is if there's a way to mount/unmount my google drive with a key binding while I'm in the Gallium GUI without having to open a terminal.   I've opened the keyboard app and tried a few things with Application Shortcuts but nothing seems to work. Every command I've attached to my desired keybinding does nothing at all. Maybe I'm not using the correct command? Any thoughts or suggestions would be greatly appreciated.


When does the Newton Raphson method fail?

Can someone please tell me the conditions under which the Newton Raphson method will not converge?    I looked around online, and couldn't find a general way to determine convergence.    For example, for the Fixed Point iteration method, there is a simple way of determining: if we have $g(x_{n})=x_{n+1}$, then $|g'(x)|<1$ implies that the series $g$ will converge to its fixed point, but in the Newton Raphson method, It seems like it is totally depends on "luck", meaning if you were lucky enough to pick a "good" initial guess or not.


Excavator and Marshal badges are being awarded over and over

The excavator has been awarded to... many users just some time ago. What a... bug? Certainly it is, too many unavailable posts :D  Seems to affect Marshal and Excavator.        Also looks like it's everywhere. SO's got a similar problem a couple of minutes before.  Moreover, I can has THREE X marshals!!!


How can I show that $\sup(AB)\geq\sup A\sup B$ for $A,B\subset\mathbb{R}$ where $A\cup B$ is positive and bounded?

The question is based on the following exercise in real analysis:     Assume that $A,B\subset{\Bbb R}$ are both bounded and $x>0$ for all $x\in A\cup B$. Show that $$ \sup(AB)=\sup A\sup B $$   where    $$ AB:=\{ab\in{\Bbb R}:a\in A, b\in B\}. $$   Since $0<a\leq\sup A$ and $0<b\leq\sup B$ for all $a\in A$ and $b\in B$, we have $$ ab\leq\sup A\sup B $$ for all $ab\in AB$ which implies that $\sup AB\leq\sup A\sup B$. I have trouble with another direction: $$ \sup AB\geq\sup A\sup B $$ I was trying to show that for every $\epsilon >0$, $\sup AB-\epsilon \geq \sup A\sup B$. If one uses the definition of supremum, one has the estimates that for every $\epsilon>0$, $$ \sup A-\epsilon\leq a, \quad \sup B-\epsilon\leq b $$ for some $a\in A,\ b\in B$. It follows that $$ \sup A\sup B\leq (a+\epsilon)(b+\epsilon)=ab+\epsilon(a+b)+\epsilon^2\leq \sup AB+\epsilon (a+b)+\epsilon^2 $$ which seems quite close to what I want. How can I go on?


Java : ConcurrentModificationException while iterating over list

When I execute the following code, I get ConcurrentModificationException   Collection<String> myCollection = Collections.synchronizedList(new ArrayList<String>(10));     myCollection.add("123");     myCollection.add("456");     myCollection.add("789");     for (Iterator it = myCollection.iterator(); it.hasNext();) {         String myObject = (String)it.next();         System.out.println(myObject);         myCollection.remove(myObject);          //it.remove();     }   Why am I getting the exception, even though I am using  Collections.synchronizedList?  When I change myCollection to     ConcurrentLinkedQueue<String> myCollection = new ConcurrentLinkedQueue<String>();   I don't get that exception.  How is ConcurrentLinkedQueue in java.util.concurrent different from Collections.synchronizedList ?


Can warlock spell slots be used to cast above warlock casting level when multiclassing?

One of my players is considering multiclassing warlock/cleric. I have not played warlocks or had other players use them so I am looking into the casting mechanics. After looking at other threads I think I have the idea down. Something like a warlock 1/cleric 5 would have the cantrips and 1 warlock slot that can cast at first level and the cleric would provide up to 3rd level spell slots. my confusion comes from  Pact Magic: If you have both the spellcasting class feature and the Pact Magic class feature from the warlock class, you can use the spell slots you gain from the Pact Magic feature to cast spells you know or have prepared from classes with the spellcasting class feature, and you can use the spell slots you gain from the spellcasting class feature to cast warlock spells you know.  so they would be able to cast warlock spells up to 3rd level with the cleric 3rd level slot, as evident from answers to , but would they also be able to cast fireball (in the case of a light domain cleric) using their warlock slot but doing so at 1st level? If so how would this translate to an end game build? would the cleric then have the equivalent to 2 9th level slots? I am assuming this does not work this way and the initial build listed essentially just has a slightly expanded spell list and an extra 1st level slot that comes back on a short rest, but I just want to make sure I am not missing something so I can explain this fully in the future.


Do you capitalize Lake when you are referring back to proper noun Tahoe Lake

If I state a proper noun such as Tahoe Lake, and then later in sentence refer to the lake, do I capitalize lake when it refers back to the proper name Tahoe Lake?


Im trying to get the session ID of another user in the same org by sending the following request by using the data from my enterprise wsdl and its an developer edition.  <?xml version="1.0" encoding="UTF-8"?> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:enterprise.soap.sforce.com">    <soapenv:Header>       <urn:organizationId>xxxxxxx</urn:organizationId>    </soapenv:Header>    <soapenv:Body>       <urn:login>          <urn:username>xxxxxxxxx</urn:username>          <urn:password>xxxxxxxxx</urn:password>       </urn:login>    </soapenv:Body> </soapenv:Envelope>   But when i send this request i get      Missing SOAP ACTION header  but in my wsdl i dont have the action ,its blank    how to overcome this problem ?I got totaly struck over here since there is no action though its asking for action header.Following method handles the http request.   public string   processrrequest(string ep,string message,string method) {      HttpRequest req = new HttpRequest();     req.setEndpoint(ep);     req.setMethod(method);     req.setHeader('Content-Type', 'text/xml');     req.setHeader('SOAPAction','');     req.setBody(message);     system.debug('Request::'+req.getbody());     Http http = new Http();     HttpResponse res =http.send(req);     //Dom.Document doc  = res.getbodyDocument();     system.debug('Response::'+res.getbody());     system.debug('Response2::'+res.getStatus());     Dom.Document doc= new Dom.Document();     doc=res.getBodyDocument();     system.debug('doc::'+doc);     return 'hai'; }


What can I do about the guys being distracted by a new girl in D&D group?

We recently got a new party member, and she is ... well, extremely distracting if you catch my drift. As the DM it is frustrating, because all the guys are trying to flirt with her, and shower her with items in game. The whole thing is quickly becoming a mess. (One even attempted to grope her, In the game and real life, ) Seriously, I have no freaking idea what to say to the guys, and how to do it, the whole thing just seems so ... awkward. Not only that, but I too have found myself attracted to her. How do I get my own, and my group's hormones to be put away so we can play the game and have fun; which is what I’m sure she is trying to do also. We are a bunch of 8th and 9th graders and we are all friends.  Can someone help me?


Does a full SSD really have poor performance?

I've been  and am interested in gaoithe's answer for        Does the disk usage really go up when free space declines? If so, why?      I can see why this can happen with a HDD, but can this happen with an SSD?  I have a 128GB Corsair M4 SSD, with only 3GB space left; is this drive performing poorer than if it had 40GB space available?  If so, why?


In the questions "Can you imagine Dad and I putting up with this?" is the subject pronoun 'I' correct, or should it be 'me?'


Place image between nodes in tikz: How to achieve precise positioning

I am trying to include a background image in a tikz/pgf drawing. I need to be able to draw nodes directly on certain features of the image, it thus needs to be precisely adjusted.  This would be easiest if I could somehow fix it to two nodes defining the corners of the image, like so:   \documentclass{article} \usepackage{pgf,tikz} \begin{document} \begin{tikzpicture} \node at (0,0) {a}; \includegraphics{something.png} \node at (2,2) {b}; \end{tikzpicture} \end{document}   Of course this does not do what I want, i.e. scaling the image so that it its top-right corner is at (2,2) and the bottom-left corner at (0,0):


The Poor Man’s Introduction to Tensors - by Justin C. Feng.      On page 3, "Before I can tell you what a tensor is, I must tell you what a vector really is; in fact, you will later see that a vector is a type of tensor. A vector is simply a directional derivative. Before you write me off as a nut, take a look at the directional derivative of some scalar function $f(x^i)$"  $$\nu.\nabla(f(x^j))=\nu^i\dfrac{\partial}{\partial{x^i}}f(x^j)$$  To me this is still ok, the author later removes the function itself and claim,  $$\nu.\nabla=\nu^i\dfrac{\partial}{\partial{x^i}}$$ currently i see $\nu.\nabla$ as some form of operator.  But my trouble arises when on page 4, equation 19, author then gives equation, stating the following "Some people get rid of the function f altogether, and write the following:"  $$\nu=\nu^i\dfrac{\partial}{\partial{x^i}}$$ and $$\nu^i = \nu(x^i)$$  My problem is that seem that this definition of vector seems very un-intuitive to me,maybe because i am acquainted with all the old definition. It is as if vector were a operator. Can anyone give me the intuition behind this? Or can someone help me make its sense in term of old definitions of vector i have like in simple Euclidean geometry.  Edit: Just to be exact from the possible duplicate, My problem with intuition is exactly this new operator kind of definition As compared to n-tuple that i have been seeing all along. Exactly how do they connect if they do so, Or if they are different or if one generalizes the other.


The old and modern definitions of total variation are actually equivalent?

According to , the total variation of the real-valued function $f$, defined on an interval $[a,b]\subset \mathbb{R}$, is the quantity $$V_b^a=\sup_{P\in\mathcal{P}}\sum_{i=0}^{n_P-1}\left | f(x_{i+1})-f({x_i)}\right |$$ where $\mathcal{P}= \left \{P=\{x_0,\ldots, x_{n_P}\} \mid P \text{ is a partition of } [a,b]\right \}$.  This is actually the more traditional definition of total variation, found for example in Rudin's Principles of Mathematical Analysis from the 1960s. However, in modern image analysis applications, the total variation is defined differently: $$\text{TV}(f,\Omega)= \sup \, \bigg\{ \int_{\Omega} f\, div \phi \, dx :   \phi \in C_c^{\infty} (\Omega,\mathbb{R}^N), \, \lvert \phi (x) \rvert \leq 1\, \forall x\in \Omega  \bigg \}  $$ where $\Omega$ is the domain on which we define the TV (and unlike the previous definition it could have dimension higher than 1).  Are these definitions somehow related? Perhaps equivalent?


Is the difference between expectation and median always less than standard deviation?

While playing around with random variables, I noticed a following pattern: If $X \sim Bin(n, p)$, then $E[X] = np$, $\mu(X) = \lfloor np \rfloor$, $|E[X] - \mu(X)| = \{np\} \leq \sqrt{np(1-p)} = \sqrt{Var[X]}$ If $X \sim Geom(p)$, then $E[X] = \frac{1}{p}$, $\mu(X) = - \lfloor \frac{1}{\log_2(1-p)} \rfloor$, $|E[X] - \mu(X)| = |\frac{1}{p} + \lfloor \frac{1}{\log_2(1-p)} \rfloor| \leq \frac{\sqrt{(1-p)}}{p} = \sqrt{Var[X]}$ If $X \sim U[a; b]$, then $E[X] = \mu(X) = \frac{a + b}{2}$ $|E[X] - \mu(X)| = 0 \leq \frac{a-b}{2\sqrt{3}} = \sqrt{Var[X]}$ If $X \sim N(\mu, \sigma)$, then $E[X] = \mu(X) = \mu$ $|E[X] - \mu(X)| = 0 \leq \sigma = \sqrt{Var[X]}$ If $X \sim Exp(\lambda)$, then $E[X] = \frac{1}{\lambda}$, $\mu(X) = - \frac{\ln(2)}{\lambda}$, $|E[X] - \mu(X)| = \frac{\ln(2)-1}{\lambda} \leq \frac{1}{\lambda} = \sqrt{Var[X]}$ If $X \sim Pareto(x, \alpha)$, then $E[X] = \frac{\alpha x}{\alpha - 1}$, $\mu(X) = \alpha 2^{\frac{1}{\alpha}}$, $|E[X] - \mu(X)| = |\frac{\alpha x}{\alpha - 1} - \alpha 2^{\frac{1}{\alpha}}| \leq \frac{x}{\alpha - 1} \sqrt{\frac{\alpha}{\alpha - 2}} = \sqrt{Var[X]}$ It left me wondering, whether it is a part of some general pattern or just a coincidence. My question is:  Is it true for any random variable $X$ with finite second moment, that $|E[X] - \mu(X)| \leq \sqrt{Var(X)}$?  I tried applying Markov and Chebyshev inequalities to prove this inequality in general, but without success (no idea how to apply them to median).


"Have you ever been to ... when ..." versus "Did you ever go to ... when ... ?"

Here are two sentences patterns:     Have you ever been to the opera when you lived in Milan?    and      Did you ever go to the opera when you lived in Milan?    What is the difference between them? How can we say, which is right sentence?


Oracle database search all tables for string, return row data

I need to search all tables in an oracle database for a specific string and return all the records where that string is found. I am working with SQL Developer. There are several really useful scripts and stored procedures that have been posted online that provide a way to search the entire database and they all seem to be able to return the table name and the column name where the string is found. I actually want to see the rows like a select * statement but I would like it to be for all the tables in my database. I want to note that I am very much a beginner and I'm not familiar with advanced PL/SQL scripting and database concepts so though I've tried and tried I can't seem to figure it out so any input would be appreciated.  Here is a script that I was trying to modify (someone else's solution)  declare  l_count number := 0;  l_str varchar2(20) := '%test%'; begin  for rec in (select table_name, column_name              from user_tab_columns              where data_type in ( 'VARCHAR2' , 'VARCHAR', 'CHAR' ) ) loop   execute immediate 'select count(*) from '||rec.table_name||                 ' where '||rec.column_name||' like '''||l_str||'''' into l_count;   if l_count > 0 then    dbms_output.put_line('Table : '||rec.table_name||'  '||rec.column_name);   end if;  end loop; end; /


I'm new to vim-latex and to tikz. I'm trying to create a FSM using tikz library as explained . I used the same lated code   \documentclass[a4paper]{article} \usepackage{tikz} \usetikzlibrary{calc,positioning,shapes,shadows,arrows,fit} \begin{document} %hello world! %in the document \begin{tikzpicture} \node(pseudo) at (-1,0){}; \node(0) at (0,0)[shape=circle,draw]        {$q_0$}; \node(1) at (2,0)[shape=circle,draw]        {$q_1$}; \node(2) at (4,0)[shape=circle,draw]        {$q_2$}; \node(3) at (6,0)[shape=circle,draw,double] {$q_f$}; \path [->]   (0)      edge                 node [above]  {b}     (1)   (1)      edge                 node [above]  {a}     (2)   (2)      edge                 node [above]  {b}     (3)   (2)      edge [bend left=30]  node [below]  {a}     (0)   (0)      edge [loop above]    node [above]  {a}     ()   (1)      edge [loop above]    node [above]  {b}     ()   (3)      edge [loop above]    node [above]  {a,b}   ()   (pseudo) edge                                       (0); \end{tikzpicture} \end{document}   When I paste this code in Texmaker, it generates the right FSM as described in the link above. But when I paste it in vim (vim-latex installed following ), it just generate a pdf file that has some letters over each other in the middle of the page.  Could someone please tell me what is the problem? Thanks


How does one insert a backslash or a tilde (~) into LaTeX?

How does one insert a "\" (backslash) into the text of a LaTeX document? And how does one insert a "~" (tilde)? (If you insert \~, it will give you a tilde as an accent over the following letter.)    I believe \backslash may be used in math formulae, but not into text itself. Lamport's, Kopka's, and Mittelbach's texts have said as much (but no more), and so left me hanging on how to get a backslash into regular text.


Gifting co-authorship if the topic of research was suggested by my boss?

This is an update of a query that I had asked few months ago:  In fact I have even adopted some of the suggestions given by @Magicsowon there.  I was advised to make the question to the point, and not include any extra information. This is why I am posting it afresh here with only relevant information and also some new information as the situation has evolved since then.   I have worked as a postdoc in a European university for 6 months. The topic of my research was suggested by my boss and his collaborator, Prof. M. That was their contribution. After that, I went through more than 50-60 papers to find the right paper to build my work on. I have developed the theory and I have finished the computational part. Now, I am writing the paper.  A good analogy would be, it was like going to a conference and there one hears about an interesting problem that deserves serious investigation.  While developing the theory, I sent many drafts containing my derived equations to my main collaborator (my boss), but he hardly commented on them, none useful feedback from him. I do not think he had even read them seriously. Considering that a postdoc is essentially an unsupervised position, and the potential of co-authorship dispute in the future, I sent him a couple of emails asking him to help me with certain aspect of the theory and computational aspect. But, he did not provided any help to me. He had a regular comment during every meeting we had,   "I am aware, I should more actively contribute to the work, but as you can see I am busy with meetings. And I am sure, you can fix this problem."  Also, he did not gave me sufficient freedom to collaborate with other researchers. So, having no help coming from anywhere, I resigned from the job. I had implicitly mentioned to him as well as to the head of the dept. in my resignation email that I had worked all by myself during the 6 months stay at their department, and also that I can do the remaining work by myself. No objection was raised on that from anyone.  Now, I am writing the paper, and my plan is:  1) Write the paper as a single author under the affiliation of the former department where I had finished almost 40% of the work. I cannot gift co-authorship for my hard work of 6-months to anyone as I did not received any major/minor help from anyone. I have checked, this is consistent with the Vancouver recommendations.  2) I will acknowledge my boss and Prof. M in the acknowledgement section of the paper for suggesting me the topic of research. Note: I had just met Prof. M in a conference for 30 minutes or so, we had general discussion about the topic of research. No specific discussion regarding the work I did, no mail correspondence between him and me. However if I am not wrong, he is the actual brain behind the project, and I had tried to visit him and collaborate with him closely. But my boss did not facilitated that either. Also, note that my boss and Prof. M have worked together in most of their papers in the last 2-3 years. And my boss is the director of a research unit in which Prof. M is a member too.  3) I will also acknowledge the research unit of my boss for funding the research.  Is it fair, honest and sufficient? If the paper is published, can he claim authorship by writing to the editor? I am pretty sure he can almost show nothing about the evidence of the contribution other than suggesting the topic of research, if asked.  And the traces of this problem have off shoot to become another problem. See,


Suitable Stack Exchange site for open source community site recommendations for chat and find team work

I would like to know what Stack Exchange site is the proper one to ask this question on:    I have also seen on the Stack Exchange  page that it could be off topic because of:     if you would like recommendations for Free & Open media


I've learnt in classroom that the requirements for electrical current to flow in a circuit are as follows:   there must be a closed conducting path between negative and positive terminals there must be a potential difference across the terminals   A copper wire is solid meaning all the atoms are very close to each other and don't move around very much and copper atom have valency electrons to donate around easily.  In a liquid solution the ions are constantly moving around finding new neighbors each time, my question is suppose we introduce 2 opposite charge electrodes into the solution how can the first requirement be met in these random chaos?  If current can flow under the above mentioned condition can it do so in plasmas which is much more spacious, random and chaotic than liquid?  Note: I'm more interested in the quantum behavior like how the ion finds suitable neighbors is it magnetism at work as it is drawn to a positive ion since itself is negatively charge.  I've provide a drawing to help in my understanding, it is not to scale and I know about uncertainty principle.


Short story where a man escapes a prison cell by creative use of vomit

I read this a long time ago in a collection of short stories, the only other one I could remember in the book was The Golden Man if that helps any.  From what I can recall of the plot of the story it is about this one man in a jail cell in the middle of a huge room that is supposed to be impossible to get out of.  He is surrounded by a moat of some sort and two guards.  He can see a spaceship from a window and looks at it quite often.  He escapes from this seemingly impossible cell eventually by repeatedly throwing up and using his stomach acid to slowly weaken the bars of his cell. There was also some sort of shield that was supposed to be unpassable.  He steals the spaceship and flies off into space where the story ends.  I've tried googling for this story but could not come up with anything


Brightness Control Issue on Ubuntu 17.10

I am not able to change brightness on Ubuntu 17.10. Keywords function are also not functioning. There is no option of brightness control system on a Ubuntu 17.10. How to change brightness??


How can I transfer my contacts from an iPhone to an Android device?

I tried to transfer data from my 3 year old iPhone to my new HTC Inspire via bluetooth but it keeps saying the two are "paired but not connected". Seems I can't get past this problem.  How can I transfer info from my old phone to the new?


Evaluating $\int_a^b \frac12 r^2\ \mathrm d\theta$ to find the area of an ellipse

I'm finding the area of an ellipse given by $\frac{x^2}{a^2}+\frac{y^2}{b^2} = 1$. I know the answer should be $\pi ab$ (e.g. by Green's theorem). Since we can parameterize the ellipse as $\vec{r}(\theta) = (a\cos{\theta}, b\sin{\theta})$, we can write the polar equation of the ellipse as $r = \sqrt{a^2 \cos^2{\theta}+ b^2\sin^2{\theta}}$. And we can find the area enclosed by a curve $r(\theta)$ by integrating   $$\int_{\theta_1}^{\theta_2} \frac12 r^2 \ \mathrm d\theta.$$  So we should be able to find the area of the ellipse by   $$\frac12 \int_0^{2\pi} a^2 \cos^2{\theta} + b^2 \sin^2{\theta} \ \mathrm d\theta$$  $$= \frac{a^2}{2} \int_0^{2\pi} \cos^2{\theta}\ \mathrm d\theta + \frac{b^2}{2} \int_0^{2\pi} \sin^2{\theta} \ \mathrm d\theta$$  $$= \frac{a^2}{4} \int_0^{2\pi} 1 + \cos{2\theta}\ \mathrm d\theta + \frac{b^2}{4} \int_0^{2\pi} 1- \cos{2\theta}\ \mathrm d\theta$$  $$= \frac{a^2 + b^2}{4} (2\pi) + \frac{a^2-b^2}{4} \underbrace{\int_0^{2\pi} \cos{2\theta} \ \mathrm d\theta}_{\text{This is $0$}}$$  $$=\pi\frac{a^2+b^2}{2}.$$  First of all, this is not the area of an ellipse. Second of all, when I plug in $a=1$, $b=2$, this is not even the right value of the integral, as .  What am I doing wrong?


I am trying to get something between 2 strings in HTML email source code i am using c#. The part of html is:    9/7/2018  	   i need the date 9/7/2018.i have tried the regex,  color:#636363; text-decoration:none;">(.*?)	   This should Capture string between color:#636363; text-decoration:none;"> and 	. but its not working. i think newline and blank characters are causing problems.


Fix my read-only pen drive to read-write

My 8 Gb pen drive has suddenly change to read-only. In fact 2 pen drives have changed to read-only.  I don't know about how the first pen drive changed into read-only, but with the second pen drive I tried to make a bootable pen drive using start-up disk creator. In the middle of writing suddenly it threw some error. After this I couldn't copy any files to the drive or delete any file from it any more.  How can I make a read-only drive writeable?


I use zf2 with doctrine.   My problem:  echo $this->escapeHtml($myobj->__get('name'));   where 'name' is stored in mysql and contains an accent, like "automàtica", I obtain the correct "automàtica" string on the web.  But if I try:  echo $this->translate("àòùì")   I obtain:  ����   Same result if I do not translate anything in the view:
àòùì
   HTML:  <!DOCTYPE html>    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>   How I can resolve to view the correct "àòùì" witohut replace the utf8 letters with the code like é etc...?  Thanks in advance.


I cant get the armature to move/ parent to the mesh

I have a model of a skeleton and a full armature but when it parents to the mesh with automatic weights , it says "Bone Heat Weighting: failed to find solution for one or more bones".


I'm trying to check if a number of a double type is integer. In , there are several methods. I've picked up one of them but the method is working just fine without a loop. Once I put it inside a loop, it works with some numbers and fails to check other. This is the code   #include <iostream> #include <cmath>  bool IsInteger(double x) {   return std::fmod(x, static_cast<decltype(x)>(1.0)) == 0.0;  // Test if fraction is 0.0. }  int main(int argc, char* argv[]) {      for (double i(0); i <= 4.0; i += 0.2 )         if ( IsInteger(i) )             std::cout << i << "   " << IsInteger(i) << std::endl;      return 0; }   The preceding code works with 0.0 and 1.0 but fails to verify 2.0 and 3.0. The code is running in Windows 7 and the compiler is the visual studio. I am Ok with boost if there is a function regarding this matter.


Is there a better way to clean the log file? I usually delete the old logfile and create a new logfile and I am looking for a shorter type/bash/command program. How can I use an alias?


Got a faster internet today so decided to test it and ... figured out that I have the same 20-30 Mbps out of 50, when wired.   I tried to play with channels, as I found that there are multiple neighbors running wifi on the same channel. It didn't give any significant and stable result. It could even drop below numbers I mentioned.   I tried to use a router from a provider and also attached another router to it. Both show the same performance. I tried also to play with modes and leave only 802.11n without any significant result either.   EDIT1: Here is a link to the wireless-info output   EDIT2: Tried to disable 11n, speed dropped 2 times, so didn't help. Didn't notice if swcrypto gives any drawbacks/benefits. I also noticed that Cisco router in 11n only mode works 50% faster and gives me about 30Mbps  ##### lspci ############################# 01:00.0 Network controller [0280]: Intel Corporation Centrino Wireless-N  2230 [8086:0887] (rev c4)     Subsystem: Intel Corporation Centrino Wireless-N 2230 BGN [8086:4062]     Kernel driver in use: iwlwifi  wlp1s0    IEEE 802.11  ESSID:"F62Q7"         Mode:Managed  Frequency:2.437 GHz  Access Point: <MAC 'F62Q7' [AC1]>          Bit Rate=43.3 Mb/s   Tx-Power=16 dBm          Retry short limit:7   RTS thr:off   Fragment thr:off       Power Management:on       Link Quality=65/70  Signal level=-45 dBm         Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0       Tx excessive retries:1  Invalid misc:237   Missed beacon:0   So, the question is - if it's possible to achieve higher speed than the current one?


Is there any advantage of using     instead of  ?   As far as I can tell the following fragments are almost equivalent:  1. Semaphore  final Semaphore sem = new Semaphore(0); for (int i = 0; i < num_threads; ++ i) {   Thread t = new Thread() {     public void run()     {       try       {         doStuff();       }       finally       {         sem.release();       }     }   };   t.start(); }  sem.acquire(num_threads);   2: CountDownLatch  final CountDownLatch latch = new CountDownLatch(num_threads); for (int i = 0; i < num_threads; ++ i) {   Thread t = new Thread() {     public void run()     {       try       {         doStuff();       }       finally       {         latch.countDown();       }     }   };   t.start(); }  latch.await();   Except that in case #2 the latch cannot be reused and more importantly you need to know in advance how many threads will be created (or wait until they are all started before creating the latch.)  So in what situation might the latch be preferable?


UEFI - Black screen when attempting to install UBUNTU

Today, I received my new Packard Bell EN TE69BM. The Laptop comes with garbage aka Windows 8. I want to install Ubuntu on it. Unfortunately the BIOS is set up to boots the flash drive in EFI mode and this setting cannot be changed. I've tried installing Ubuntu 12.04 and 13.10 but to no avail. (SECURE BOOT is OFF)  I get the options:   try ubuntu without installing install ubuntu check disk for defects   No matter what I select, I simply get a never changing black screen no matter how long I wait. I have the latest BIOS installed on the device.   I've tried the following:     but it did not work!  Any way to get Ubuntu working on my notebook?


When i click on the button, it does not write data to the variable

Good afternoon! I have a button, when clicked, QFileDialog opens. I select the file. The path is written in the LineEdit and variables. But the variable does not change the value  path = None def get_file_dbf():     if ui.file_dialog.exec_():         file_name = ui.file_dialog.selectedFiles()         ui.lineEdit.setText(file_name[0])         path = str(file_name[0])  ui.toolButton.clicked.connect(get_file_dbf)  def go_transfer():     print(path) #None  ui.pushButton.clicked.connect(go_transfer)


Force of moving magnetic field on stationary charge

I heard that a magnetic field only creates a force on a moving charge, not a stationary one. However, what if the solenoid containing the magnetic field was moving through a stationary charge. Would that create a similar force? Thanks!


I am using Ubuntu 12.04. I want to install Windows 7 on my system from a CD through VirtualBox. I searched the detailed tutorials through google but I did not find one that worked.   So can some one kindly share any detailed tutorial or link which will really help me out.


What is correct form:     I wish I were a king.   or     I wish I was a king.   I need some explanation.


Even though I have the latest Adobe Flash player 11.2 for Linux in Firefox -   - a particular online flash game still requests that I update to the latest flash player.  I've tried this online game on my laptop (Windows 8 with Flash Player 11.8) and it has no problems.  Is there a way to trick Ubuntu or this game into thinking Flash Player 11.8 is "installed"?


How to light an LED using supercapacitor

I would like to light up a 3W LED from Cree having a forward voltage of 2.9 V at 350 mA. It's maximum drive current is 1 A and gives 300 lumens/m2 output. I am considering lighting up this LED using supercapacitors.     The objective is to light the LED for 5 hours.   Based on this objective, I tried to calculate the capacitance required in reverse using the following formula:  (Energy stored in the capacitor)/(Power of the LED) = Time required for the LED to glow)  Additionally, I came to know that If a switching circuit is used, the losses for the supercapacitor charging operation would be less as a resistor dissipates 50 percent of the input energy. If the voltage drop across this circuit is 1 V, then taking this into account as well, I obtain:  \$\frac{\frac12 C V^2 - \frac12 C 1^2}{1.05(P_{led})} = 5\text{ h}\$  As the supercaps are generally rated at 2.7 V, I substitute V to be 2.7 and obtain the capacitance to be 18270 F which is extremely high. I needed to cross verify the theoretical capacitance required to get this LED to glow for 5 hours is right or not.  If I go for a 2.7 V, 500 F supercapacitor, I am obtaining the LED to glow for 30 minutes.  From what I have read about the supercaps, the charging rate is quite high for the supercaps, and assuming that I am generating electricity simultaneusly to charge the supercap and simultaneously light the LED, Would it be feasible?  I am imagining the 2.7 V 500 F supercap as a big tank with an inlet and an outlet. The inlet is quite high because of high charging rate whereas the outlet rate is slower. The inlet rate is 5 W and the outlet rate is given to the 3 W LED.  I am giving a 5 W power input using the right switching circuit to feed it into the supercapacitor. If this is the case, would I be able to instantaneously light this LED. If not how? What would be the right circuit I should implement to use it as a buffer.


How to create keyboard shortcut for "go to desktop"?

I tried using hide all normal windows but it doesn't do anything after the first time, and after looking through some previous questions I tried to find hide all windows and show desktop but couldn't find that option.  I'm looking for something like what windows+d does in Windows.


I have purchased iCloud space on my iPhone which currently have over 45GB storage left. I still get storage space warnings on the iPhone. I cannot download anymore apps, take photos or receive anymore WhatsApp messages due to lack of space. How to a fix this issue? thanks. The previous answer to this question does not answer the question. It states the problem but not how to fix it. Thanks


Short Sci-fi story about a sentient planet/creature that exists to seed the universe with life

Story about a planet-sized multi-celled creature collecting life to ultimately spread (seed)pods of life throughout the universe.  I'm looking to find an English short science fiction story that I think I read in a sci-fi anthology (possibly Asimov) as a child during the early 90's in England.  I remember nothing of use about the actual book or cover but the story details have stuck in my mind and the memory has often resurfaced enough to require help finding it so I can reread it.  The story is of a planet-sized smooth black object/creature appearing (close to earth?) and astronauts being sent to explore and find out what it is. They land and find they can push(sink) into the surface, far enough to pass through the outer skin and find themselves in an earth-like paradise with air, mountains, trees, rivers etc.   The astronauts find that they can also push through the floor of this first paradise into yet another 'bubble' or pod of this earth-like environment and find many more similar 'pods' in all directions and ultimately decide to colonise (maybe with unwanted earth prisoners at first) the expansive spaces of this new world/planet/creature thing.   During the story there is a narrative of an 'elder being' teaching its young about their own purpose (I always imagined 'story-time' around a campfire) and the story ends with the 'elder' exploding and all the child environmental 'pods' and their containing colony of humans being flung to the corners of the universe to populate it with the life that they now contained.      The details of the story are as follows:     Planet-sized object appeared in space that is smooth, shiny, and black. A male and a female astronaut sent to explore the object.  Detailed description of spacecraft landing badly on the object too hard and finding that the spacecraft sank into the surface without damage, leading to them trying to push through the outer skin.   The pods each contain a perfectly viable earth-like environment that is later colonised. Sub-narrative by an unknown consciousness somewhat like an elder teaching the young it's history or purpose. The 'elder' creature was conscious (possibly excited?) of being filled with life as humans colonise. The ending being that the 'elder' explodes and child pods split and fly off in all directions taking the human colonies with them for the purpose of populating the universe.   I remember picturing this object as a bunch of biological cells, each a copy of the original (possibly cell-division during the story itself) with a virus-like spawning in a host system (the universe) by splitting apart to repeat the process in other areas when they have enough (human) life to do so. Not a specifically stated part of the story but my own interpretation over the years since I first read it.  This story was part of an anthology which contained another short story about a metal bar appearing from nowhere (next to someone's armchair, of all places) and the metal is the hardest substance possible. Attempts to cut, shape or bend it fail, but when other metals are welded to the metal they take on the super strong properties of the original bar. This secondary short story ended with something along the lines that all metal becomes welded to the original bar and no metal can ever be formed into something useful ever again. This is a subject for another (unwritten) 'story-identification' question but hopefully answers to one will help find the other.     I would love to read this story and anthology again, and though I have chased suggested story questions on this stack, I am yet to find a similar question.


Does anyone know if there is an undocumented Data View that I could query to obtain the Campaign assignment for an email?  This does not seem to be incorporated into any of the existing data views. Thanks!


Newly added element with multiple div's using JQuery

Why I cannot get the text of this newly added multiple child div's. I'm using JQuery to add this dynamic elements. here my sample fiddle:   Can someone explain to me where did I go wrong?   Script  var counter = 0;  $("button").click(function() {  $("
\
\
\
click me " + (++counter) + "
\
\
" + counter + "
\
\
").appendTo("div.parent-list-workorder");      });   $("div.list-workorder-header").on("click", "h3.list-workorder-id", function(){     alert(this.id); });


How can I draw a spiral that gets arbitrary close to a unit circle?

I would like to draw something like this:    The circle in the center is not connected to the spiral, but the spiral gets arbitrary close to the circle.  A problem why I can't draw this is that I don't know how to describe this mathematically / formally.   I have found this one:  \documentclass[varwidth=true, border=2pt]{standalone} \usepackage{tikz}  \begin{document} \begin{tikzpicture}     \draw [domain=0:30,variable=\t,smooth,samples=100]         plot ({\t r}: {0.005*\t*\t}); \end{tikzpicture} \end{document}   but it seems not to get closer to a fixed size circle in the center.   looks similar to what I'm looking for, but I only need one spiral.  Background of my question  I'm currently studying geometry and topology. Sadly the professor does not provide a script, so I write one by my own to make studying easier for other students (see  with source files and compiled pdf). The space that is described by the spiral and the circle is connected when you have a definition that makes use of $\varepsilon$-environments, but not connected when you make use of a definition that demands the existance of a path.


Is the age of Tony Stark consistent with the appearance of his father in the Captain America movie?

Nick Fury told Captain America that he has been "asleep" for nearly 70 years. If Dominic Cooper was playing Howard Stark Senior (grandfather of Tony Stark) then it is fine, but if he was playing Howard Stark (father of Tony Stark) then after 70 years he should be around 90 or above.  Tony Stark, his son, should be 60 to 70 years.  Is that possible?  Tony doesn't look 70 years in The Avengers.


The question Is there any way to automatically scale and put an entire document on an A0 page? The thesis for which this is to be done is available as LaTeX code, as well as PDF output. Of course I know it is possible to do this manually, but I would prefer a LaTeX solution.  A small background Our university introduced a new page limit for master theses. This is not exactly appreciated by the teaching staff as well as students. To make a little joke, we decided to try to arrange an entire thesis (of approximately 200 pages) on a A0 poster, put it up in the hallway, and put a magnification glass next to it with a note saying: "New page limit introduced: 1 page maximum for all upcoming theses!"  The final result As some of you asked for this: below you can see a picture of the final result. (I "professionally removed" some of the sensitiv information.) We presented the poster during my final presentation and everyone liked it a lot! Now, it is on display next to my office and is still attracting some attention once in a while.


What is the difference between sudo -i and sudo su?


Why is that an Optional member variable in a class has a default value of null?

import java.util.Optional;  public class Student {    public long id;    public String firstName;    public Optional<String> middleName;    public String lastName;    .    .    .    public Optional<String> getMiddleName() {      return middleName;    } }  Student student = new Student(); if (student.getMiddleName().isPresent()) {    System.out.println(student.getMiddleName().get()); }   The above code will get an NullPointerException since the default value of an Optional class member value is null. Should it be that the default value is Optional.empty()?


A gap between lines of joined path in illustrator

I have created a logo with pen tool in Illustrator but between lines (where they intersect with each other) there is a gap where it gets the color of the background.  Something like this:  (Black color is the background color) - As you can see where the paths join each other there is a kinda dotted black line. I Grouped them but still the same. I converted to jpeg just to be sure it is not only shown like that but same effect.   NOTE: I want to export that logo as SVG file type and use it in the WEB. I tried some solutions given like anti-aliasing in preferences or art optimize when saving for optimization. But still I have same problem. I want to get that logo in SVG and put it on the web where it will display clean without those strange gaps.  How can i get rid of this?


I was googling unsuccessfully.   I've created Aura components without any problem, but I can't figure out how enabled this:     I'm trying to enable that feature in a Dev Winter 15.


I am having an issue getting the following code to correctly add the SqlCommand parameter @vendor. For some reason, the query being passed seems to always be:  select TOP 500 *  from [mike_db].[dbo].[na_pe_sql_import]  where vendname like '%@vendor%';   It works if I setup the query like this, but I know this is bad practice.:   string strQuery = "select TOP 500 * from [mike_db].[dbo].[na_pe_sql_import] where vendname like '%"+txt_search.Text.ToString()+"%';";   Here is the code:      protected void Search_Click(object sender, EventArgs e)     {            string search = txt_search.Text.ToString();         String strConnString = System.Configuration.ConfigurationManager.ConnectionStrings["mike_db"].ConnectionString;          SqlConnection con = new SqlConnection(strConnString);         con.Open();          string strQuery = "select TOP 500 * from [mike_db].[dbo].[na_pe_sql_import] where vendname like '%@vendor%';";          cmd = new SqlCommand(strQuery, con);         cmd.Parameters.AddWithValue("vendor", search);          txt_search.Text = string.Empty;          DataSet ds = new DataSet();          da = new SqlDataAdapter(cmd);         da.Fill(ds);          My_Repeater.DataSource = ds;         My_Repeater.DataBind();          con.Close();                 }


I would like to know how to display a custom pagination in search results. By default drupal search is displaying 10 results but no pagination even $pager; is printed in search-results.tpl.php. I know this question is asked many times but I did not find the answer. Is there any hook implementation for custom pagination?


Rigid Body and Invisible Object Collision

Let us assume I have a brick wall (rigid body) that I want to get smashed with an object (in a rigid body simulation). I want this object to be invisible in the render. Is that possible? How do I do that?


I'm saving some SVG icons from Illustrator CC 2014 and when I give them to my dev he says can you make less CDATA. Does anyone know how?  Thanks


Whenever I try to run 1.7.10 in minecraft the game crashes

---- Minecraft Crash Report ---- // You're mean.  Time: 4/8/19 3:39 PM Description: Unexpected error  java.lang.IndexOutOfBoundsException     at java.nio.Buffer.checkIndex(Buffer.java:540)     at java.nio.DirectIntBufferU.get(DirectIntBufferU.java:253)     at bma.a(SourceFile:271)     at bma.a(SourceFile:220)     at bao.a(SourceFile:1694)     at bao.a(SourceFile:1652)     at bjb.a(SourceFile:125)     at hd.a(SourceFile:70)     at hd.a(SourceFile:13)     at ej.a(SourceFile:174)     at bao.p(SourceFile:1585)     at bao.ak(SourceFile:774)     at bao.f(SourceFile:728)     at net.minecraft.client.main.Main.main(SourceFile:148)  A detailed walkthrough of the error, its code path, and all known details is as follows: ---------------------------------------------------------------------------------------  -- Head --  Stacktrace:     at java.nio.Buffer.checkIndex(Buffer.java:540)     at java.nio.DirectIntBufferU.get(DirectIntBufferU.java:253)     at bma.a(SourceFile:271)     at bma.a(SourceFile:220)     at bao.a(SourceFile:1694)     at bao.a(SourceFile:1652)     at bjb.a(SourceFile:125)     at hd.a(SourceFile:70)     at hd.a(SourceFile:13)     at ej.a(SourceFile:174)  -- Affected level --  Details:     Level name: MpServer     All players: 0 total; []     Chunk stats: MultiplayerChunkCache: 0, 0     Level seed: 0     Level generator: ID 00 - default, ver 1. Features enabled: false     Level generator options:      Level spawn location: World: (8,64,8), Chunk: (at 8,4,8 in 0,0; contains blocks 0,0,0 to 15,255,15), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)     Level time: 0 game time, 0 day time     Level dimension: 0     Level storage version: 0x00000 - Unknown?     Level weather: Rain time: 0 (now: false), thunder time: 0 (now: false)     Level game mode: Game mode: survival (ID 0). Hardcore: false. Cheats: false     Forced entities: 0 total; []     Retry entities: 0 total; []     Server brand: ~~ERROR~~ NullPointerException: null     Server type: Integrated singleplayer server Stacktrace:     at bjf.a(SourceFile:289)     at bao.b(SourceFile:1972)     at bao.f(SourceFile:742)     at net.minecraft.client.main.Main.main(SourceFile:148)  -- System Details --  Details:     Minecraft Version: 1.7.10     Operating System: Windows 10 (amd64) version 10.0     Java Version: 1.8.0_51, Oracle Corporation     Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation     Memory: 46900048 bytes (44 MB) / 201326592 bytes (192 MB) up to 2147483648 bytes (2048 MB)     JVM Flags: 8 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmx2G -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M     AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used     IntCache: cache: 12, tcache: 94, allocated: 0, tallocated: 0     Launched Version: 1.7.10     LWJGL: 2.9.1     OpenGL: GeForce GTX 1060/PCIe/SSE2 GL version 4.6.0 NVIDIA 419.67, NVIDIA Corporation     GL Caps: Using GL 1.3 multitexturing. Using framebuffer objects because OpenGL 3.0 is supported and separate blending is supported. Anisotropic filtering is supported and maximum anisotropy is 16. Shaders are available because OpenGL 2.1 is supported. Is Modded: Probably not. Jar signature remains and client brand is untouched. Type: Client (map_client.txt) Resource Packs: [vanilla] Current Language: English (US) Profiler Position: N/A (disabled) Vec3 Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used Anisotropic Filtering: Off (1)   So what's wrong with Minecraft? Why does it crash when I try to run 1.7.10?


We are planning to release a new feature on the network in the next few weeks that will give users the ability to follow and unfollow questions. This was mentioned by Teresa in the . The plan is to roll out these changes in multiple releases. (Work is well underway, and we are aiming for a release by the end of March. However,  make it likely that delays may be introduced into the process, so it is hard to give an exact commitment right now).  First release  The initial release of this feature will allow any logged in user (other than the question owner) to follow a question. If a user follows a question, they will receive inbox messages related to any event for which the post owner would have received notifications:   New answers (other than answers by the follower) New comments (other than comments by the follower) Edits to the question (other than self-edits by the follower) Some post notifications   The inbox messages sent to post followers will indicate that they are the result of the question being followed, to distinguish them from notifications related to someone's own posts. And if you allow it in your , the inbox messages (if unread) will also eventually be emailed to you as well.  Users will be able to stop following a post that they have followed at any time.  Post follow will not affect post owner follows and @pings (which will not be muteable at this point — more on this below).  Later releases  We are planning to follow up our initial release with:   Answer following (works the same way as question follow, allowing users to be informed of new edits and comments on an answer) Renaming "favorite" to "bookmark".    The feature will be the same as Favorites, with the name and icon updated to more accurately represent user expectations and usage You will be able to both "bookmark" and "follow" a question We are including this update in the current body of work as there has historically been general confusion surrounding the Favorite function and its connection to notifications  New profile tab to view questions and answers that you are following     Once all of these changes have been made, this is what a question will look like — you can see [following] in the question menu along a popover that appears immediately after clicking the [follow] link, and the star icon for [favorite] has been replaced with a bookmark to match the new term.          No change to existing post owner & comment notification logic  I mentioned earlier that question owners will not be able to follow their own questions, nor will they be able to mute them. They will continue to receive the same inbox notifications that they receive today. Likewise, users who are @pinged on a comment will not be able to mute these pings.   Though we know that this has been requested in the past, there are some big technical hurdles to implementing this properly (even for a small-scale test) that preclude its inclusion in our current schedule. Additionally, allowing a post owner to mute new answers and comments (or any user to mute @pings) has additional potential side effects to the long-established norms of the site that require further research before we can proceed.  Is this a feature that you're interested in us looking into more and working on? If yes, tell us why in an answer.    We're really excited to be able to finally implement a feature that our own  - and that  over the years on many of our meta sites . We got to the solution we have now by reviewing these many years' worth of questions and talking one-on-one with users about this feature.  Given past requests and common follow/unfollow patterns, we feel good about releasing this first iteration of question following later this month. Once the first release launches, we'll ask for your help in telling us where you think we should iterate on the functionality and experience.  For now, if you see something that is confusing, that could cause issues, or could impact user experience, let us know in an answer.


Best way to copy all files, ignoring errors?

I have a partially corrupted HD that can not be repaired by Disk Utility, but which can be mounted read-only making the data on it accessible. I am trying to copy all the recoverable contents onto a spare HD, but every method I try fails when an error is encountered - leaving the remaining files un-copied.  Finder - Fails SuperDuper - Fails Ditto (terminal command) - Fails  I was hoping that Ditto would do the trick, the Ditto man page says:  ditto returns 0 if everything is copied, otherwise non-zero.  ditto almost never gives up, preferring to report errors along the way. Diagnostic messages will be printed to standard error.  I have submitted a bug to Apple re ditto failing to perform as advertised. Any other ideas?


I am trying to construct a Galois field of order $t$, where $t$ is odd. I can do it when $t$ is an odd prime power. Is there any way to construct a Galois field when $t$ is not a prime power?


How to restore/recover a booted medium to USB

I have booted a USB with an ISO-file, now I want to recover it so I can use it as a normally working USB. What are the code used for this process?


Classical proof that well-ordering principle is equivalent to complete induction

I want to prove that:  Well ordering principle ⟺ Complete Induction.  I am interested in both directions of the implication. That is, that if every non-empty set contains a least element then if a property P holds for all naturals less than n-1 it must hold for n. And viceversa.  I want the proof to be classical (I suspect this is quite difficult to prove constructively)


Merge two PDF files containing even and odd pages of a book

I have two searchable PDF  documents, say even.pdf and odd.pdf which contain even and odd pages of a book, respectively.   I can decompile each PDF to separate files 001.pdf 002.pdf 003.pdf, et cetera. The question is how to merge them?  They are both even and odd sequences numbered 1, 2, 3. If the numbering in the decompile process with pdftk were different, e.g. 1, 3, 5 for even and 2, 4, 6 for odd instead of 1, 2, 3, 4, I could simply merge them.  Can I do this any other way?


Is SSIS subject to the maximum memory limitations for SQL Server 2012 Standard edition?  If I have a server with 128GB RAM and I allocate 64GB of RAM to SQL Server does SSIS utilise this memory or does it utilise the memory that is available to the OS?  I am assuming it utilises the remaining memory left to the OS since there is no settings for memory consumption and it runs as a separate service.  If anyone has any information on the available memory that should be left for SSIS to consume I would appreciate the help.


Difference between the Law of Large Numbers and the Central Limit Theorem in layman's term?

Almost all books teach Law of Large Numbers first then the Central Limit Theorem one next. But what are the relationship and differences between two theorem?    My attempt:  Here is my understanding (Informally),    Law of Large Numbers says if we have very large i.i.d sample, the mean will converge to a number.  Central Limit Theorem is similar idea, but require "less data" (I agree with Tim in the comment that both refer to $\infty$, but I cannot find a better word to describe..).  Comparing to Law of Large Numbers, because it require "less data", it has a relaxation in conclusion: not converge to a number, it converge to a normal distribution.   Thanks for Yuri and Antoni's links, I think my question is different from the two questions linked.  For question     It focusing on more math, where I want more "intuitive explainable" on application domain or the scope on LLN and CLT, but not only the math derivation.    For question     It is closer to what I want to ask, but still focusing on "how then can CLT also converge to the expected value at the same time?"


Is there any tool for data migration without using data loader.Data migration shoud takes place once in 15 minutes from any source to salesforce object.I have tried import2 but it dosnt work..


I am having some issues when rendering an image, my rendering screen is turning into grey even when making a full render. What am I doing wrong?


Why were wisdom teeth not eliminated by evolution?

Supposedly evolution was very efficient and evolved many human proteins over a few thousand generations. Yet obvious detrimental traits like wisdom teeth remained. Why?


Nilpotent Elements and Intersection of Prime Ideals

Prove that the set of nilpotent elements of a ring is the intersection of its prime ideals.   I know these two useful facts:  {nilpotent elements}$=\sqrt{0}$  $\sqrt{I}= \bigcap$ of prime ideals containing I   First, I need to show that the nilpotent elements are in fact an ideal and then I need to show it's prime.   Any specific suggestions would be appreciated. I just don't know how to make this proof flow and exactly what leads to what.   I read through this question and comments as well:


Sure, hascodes are used in hastables and collections but what about that:  class TwoDPoint : System.Object{     public readonly int x, y;     //...left out some code     public override int GetHashCode(){       return x ^ y;    } }   Source:  The snipped above directed me to the following sentence:     You should not assume that equal hash codes imply object equality.   Source:   What I wonder is if we shouldn't always check for object equality after two hash codes match. Consider the following two dots:  P1.x = 2; P1.y = 4; Hash = 16 and P2.x = 4; P2.y = 2; Hash = 16   If I only check the hash before inserting an item into a hashtable wouldn't that be a huge problem?  Or is the this function maybe just used to provide a more performant way of checking "simmilarity" but always requires an equality check after a match?  Or should I not care and just use the hashcode and assume it doesn't matter?


Adding a node to then end of a linked list, having a rear and start pointer

I am attempting to add a node to the end of my linked list, i get a null pointer exception when i get to the else statement and try to set problem.rear.next to the new node I am adding. For some reason when i attempt to set the rear.next pointer to a new node the exception pops up.  To clarify,  The BigIntegerList is a linked list of nodes which are also linked lists that represent a Big integer by linking individual integers together. The big integer list defines a "start" and "rear" node, The BigInteger node defines "x" for the data and "next" for a pointer to the next node in the list.   Also,  problem.n represents the number of BigIntegers to be read in, the method reads from a text file, the first number read states how many big integers are going to be read followed by the actual BigIntegers  Any ideas welcome as I am very stuck....  BigIntegerList problem;    LinkedList x;    BigIntegerNode curr;     problem = new BigIntegerList();    //get value of first line stating #of bigInts to read in    problem.n = LinkedList.readInteger(in);    //read big ints from text file based on first number passed, n    for(int i=0; i<problem.n;i++)    {      x = new LinkedList();      x.readBigInteger(in);      //case that the list is empty      if(problem.n<1)      {        problem.start = new BigIntegerNode(x,null);        problem.rear = problem.start;      //list is not empty, add nodes to rear      }else      {        curr = new BigIntegerNode(x,null);        problem.rear.next = curr; -----> this is where i get a nullpointer....        problem.rear = curr;      }    }    return problem;


What is the simplest way to prove that Earth orbits the Sun?

Assume you're talking to someone ignorant of the basic facts of astronomy.    How would you prove to them that Earth orbits the Sun?  Similarly, how would you prove to them that the Moon orbits Earth?


Lucas Numbers have the same prime divisors?

Let $L_n$ be the $n$ th Lucas number, with $$L_0 = 2, L_1=1, L_{n+1} = L_n + L_{n-1}$$ Is it true that for every even number $n \geq 4$, if the number $L_n - 2$ has a prime divisor $p > 2$, then the number $L_{n+1} - 1$ is also divided by $p$? If not, then is the statement still correct with $n = 2018$? If not, how many number $n$ satisfy that if the number $L_n - 2$ has a prime divisor $p > 2$, then the number $L_{n+1} - 1$ is also divided by $p$?  (Sorry, English is my second language)


What "very bad things can result from Men spending too much time in Valinor"?

(very bad things can result from Men spending too much time in Valinor)   (src: )   Given the answer's poster prior history in , my assumption is that the quoted claim is correct.  But what are those "bad things" which can result?


I just saw this river Basin map in Twitter and thought to replicate the work in another catchment I am having. I have all the associated files such as dem, drainage with me but I don't know the steps in blender.


//setImageBitmap gives nullPointerException  public class MainActivity extends ActionBarActivity {  @Override protected void onCreate(Bundle savedInstanceState) {     super.onCreate(savedInstanceState);     try {         BitmapFactory.Options bitmapOptions = new BitmapFactory.Options();         bitmapOptions.inSampleSize = 2;         Bitmap imageBitmap = BitmapFactory.decodeResource(getResources(), R.drawable.img, bitmapOptions);         //imageView for referencig imageView of layout file         ImageView imageView=(ImageView)findViewById(R.id.imageView1);              imageView.setImageBitmap(imageBitmap);         //setImageBitmap gives nullPointerException     }catch (Exception e){          e.printStackTrace();     }      //setContentView(imageView);      setContentView(R.layout.activity_main);  } }


Save OpenSSL encrypted strings in MySQL database

I am looking for a way to store OpenSSL encrypted data in my MySQL database. When I store it, i can't retrieve the original string after, since it isn't storing the strings correctly.  Of course, I could save is base64 encoded and decrypt it later, which works like a charm. However, looking at efficiency I would like to know if there is a better way, since base64 encoding is eating disk space for storage.  Thanks for your advice


How can I use this method to avoid listView flickering?

public ListViewNF(IContainer container) {     container.Add(this);      InitializeComponent();      //Activate double buffering     this.SetStyle(ControlStyles.OptimizedDoubleBuffer |     ControlStyles.AllPaintingInWmPaint, true);       //Enable the OnNotifyMessage event so we get a chance to filter out       // Windows messages before they get to the form's WndProc      this.SetStyle(ControlStyles.EnableNotifyMessage, true); }  protected override void OnNotifyMessage(Message m) {     //Filter out the WM_ERASEBKGND message     if (m.Msg != 0x14)     {         base.OnNotifyMessage(m);     } }   In the Load event:  private void Form1_Load(object sender, EventArgs e) {     ListViewNF nf = new ListViewNF(); }   I'm getting error on the line inside the ListViewNF:  InitializeComponent();      Severity   Code    Description Project File    Line    Suppression State   Error   CS0120  An object reference is required for the non-static field, method, or property 'Form1.InitializeComponent()'   I tried to remove this line to avoid errors but it didn't fix the flickering. I also tried adding listView1, beginupdate and endupdate:  listView1.BeginUpdate(); foreach (ListViewItem li in listView1.Items) {     if (li.SubItems[2].Text == lastUrl)     {         li.SubItems[0].Text = "Downloaded";         li.SubItems.Add("Color");         li.SubItems[0].ForeColor = Color.Green;         li.UseItemStyleForSubItems = false;     } } listView1.EndUpdate();   I tried this before adding the ListViewNF method. So far nothing helped with the flickering. Any suggestions?


I don't know the authentication password to download stuff

I got this computer from some one online and I don't know any of the passwords I manly need to just reset the authentication password is there a way to reset it without the authentication password


How can we get the command line of a running application?

In Ubuntu, applications can be opened from a terminal. But sometimes it isn't clear what the appropriate command is to do this.  So, having an application open, how can I get the command used to launch it, without having to search anywhere (just by looking at it)?


I have the following code in Python 3:  class x():     var = 0  x1 = x() x2 = x() print(x.var) #0 print(x1.var) #0 print(x2.var) #0   But if I change the attribute var for one instance, it change only for this instance:  x1.var = 1 print(x.var) #0 print(x1.var) #1 print(x2.var) #0   I would like the result to be:  x1.var = 1 print(x.var) #1 print(x1.var) #1 print(x2.var) #1


Website down with 3,000 concurrent user 4Gb Memory Dedicated Server (myIsam - MySQL)

Our site has 3,000+ concurrent users when we open our registration on our website. The site was too slow and get the server down sometime, even sub accounts websites are down. Free memory was 400MB.  We upgraded our server to 8Gb for us to have a larger allocated memory. After upgrading our site still encountering server down/ slow site. What should be the best setting for our my.cnf so that our MySql Server would not give up?  This is currently our setting:  [mysqld] default-storage-engine=MyISAM performance-schema=0 max_allowed_packet=512M thread_cache_size=256K tmp_table_size=1G max_heap_table_size=1G open_files_limit=1000 max_connections=3000 interactive_timeout=180 wait_timeout=180 key_buffer_size=400M slow_query_log = ON   And now, this is the top result:    Thank you for any suggestion.


how to hide javascript from view source or block the url when someone tries extract the js file using URL

I want to prevent my javascript code from page source and even when someone tries to open javascript code using URL it should block or else it should display  a message that cant display code.  Is there any way to prevent my code from unwanted users and I m Using codeigniter framework?  The below is the javascript code which i want to prevent from unwanted users. i can get a below code by typing this link in browser abc.com/js/abc.js  I m Using codeigniter framework  FusionCharts.ready(function () {      var iexsolorchart = new FusionCharts({         type: 'MSCombiDY2D',         renderAt: 'iexsolar-chart-container',         width: '100%',         dataFormat: 'jsonurl',         dataSource: base_url+'rec/recData/1/1'     });     iexsolorchart.render();      var iexnonsolorchart = new FusionCharts({         type: 'MSCombiDY2D',         renderAt: 'iexnonsolar-chart-container',         width: '100%',         dataFormat: 'jsonurl',         dataSource: base_url+'rec/recData/1/2'     });     iexnonsolorchart.render();    }); var loaded = false; $("#pxi_tab").click(function (){      if(loaded == true) exit();     FusionCharts.ready(function () {         var pxisolorchart = new FusionCharts({             type: 'MSCombiDY2D',             renderAt: 'pxisolar-chart-container',             width: '100%',             dataFormat: 'jsonurl',             dataSource:base_url+'rec/recData/2/1'         });         pxisolorchart.render();         var pxinonsolorchart = new FusionCharts({             type: 'MSCombiDY2D',             renderAt: 'pxinonsolor-chart-container',             width: '100%',             dataFormat: 'jsonurl',             dataSource: base_url+'rec/recData/2/2'         });         pxinonsolorchart.render();     });     loaded = true;  });


I am using Ubuntu 14.04. I am unable to hibernate my system with sudo pm-hibernate. The screen only flashes then it returns to desktop, nothing happens. I have a swap partition of 4GB my RAM size is 3GB. Even the hibernate tray option doesn't actually hibernate the system instead only sends the system to sleep. Kindly help.


Equations of motion for an object with non-constant acceleration related to its velocity

If I have an object flying through space with an initial velocity $v_0$ and undergoing constant acceleration $a$, then I can easily compute its velocity or displacement at any point in time $t$ using one of the classic equations of motion:  $$v(t) = v_0 + a t$$ $$x(t) = v_0 t + \frac 1 2 at^2$$  But what if the acceleration is not constant and depends on the velocity of the object itself at any given moment in time? Specifically, what if the acceleration at any given point in time is given by:  $$a(t) = C + Kv(t)$$  (Where $C$ and $K$ are both constants, and $0 \le K \le 1$.)  How can I compute $v(t)$ and $x(t)$ where acceleration is non-constant as defined above? (I understand how to derive the equations of motion using calculus when acceleration is constant or non-constant based on time, but I don't understand how to do it when a(t) is itself based on v(t), i.e. the very equation I'm trying to derive. It seems like a "chicken or egg" problem. Though I suspect once I have $v(t)$ I can simply integrate to get $x(t)$.


Elaborate definition of $\prod_{i} X_i$ where $X_i \in \left \{X_i \right \}_{i \in I}$

Can you elaborate below definition ideally with an example or two? I am starting to read the online book , but got stuck at the very beginning. He gives the product of a family of sets indexed by $I$, $\left \{ X_i \right \}_{i \in I}$, on page 8 as follows: $$\prod_i X_i := \left \{ \left \{ x_i \right \}_{i \in I} \mid \forall i \in I: x_i \in X_i  \right \}$$


I am going to send email but the error says the failure to send email what's wrong in my code

var userClient = new SmtpClient("smtp.gmail.com")             {                 Port = 587,                 Credentials = new NetworkCredential("email_sender", "sender_password"),                 EnableSsl = true             }; userClient.Send("email_sender", "email_reciver", "body", "subject");  there is the code that i use,where is the problem?!


gvfs-backends : Depends: libsmbclient (>= 2:4.10.0+dfsg) but 2:4.7.6+dfsg~ubuntu-0ubuntu2.15 is to be installed

My problem is in the photo below:    I tried:  sudo apt install libsmbclient   And this was the output:  libsmbclient : Depends: samba-libs (= 2:4.11.6+dfsg-0ubuntu1.2) but it is not going to be installed   Then I tried:  sudo apt install samba-libs   And this was the output:  The following packages have unmet dependencies:  samba-libs : Depends: libpython3.8 (>= 3.8.2) but it is not going to be installed               Depends: python3-talloc (>= 2.2.0~) but it is not going to be installed   And the cycle seems to be going forever everything seems to be depending on another thing that can't be installed.  Edit: output of apt-cache policy libsmbclient samba-libs libpython3.8 python3-talloc is:  libsmbclient:   Installed: 2:4.7.6+dfsg~ubuntu-0ubuntu2.15   Candidate: 2:4.11.6+dfsg-0ubuntu1.2   Version table:      2:4.11.6+dfsg-0ubuntu1.2 500         500 http://ubuntu.mirror.cambrium.nl/ubuntu focal-updates/main amd64 Packages      2:4.11.6+dfsg-0ubuntu1.1 500         500 http://ubuntu.mirror.cambrium.nl/ubuntu focal-security/main amd64 Packages      2:4.11.6+dfsg-0ubuntu1 500         500 http://ubuntu.mirror.cambrium.nl/ubuntu focal/main amd64 Packages  *** 2:4.7.6+dfsg~ubuntu-0ubuntu2.15 100         100 /var/lib/dpkg/status samba-libs:   Installed: 2:4.7.6+dfsg~ubuntu-0ubuntu2.15   Candidate: 2:4.11.6+dfsg-0ubuntu1.2   Version table:      2:4.11.6+dfsg-0ubuntu1.2 500         500 http://ubuntu.mirror.cambrium.nl/ubuntu focal-updates/main amd64 Packages      2:4.11.6+dfsg-0ubuntu1.1 500         500 http://ubuntu.mirror.cambrium.nl/ubuntu focal-security/main amd64 Packages      2:4.11.6+dfsg-0ubuntu1 500         500 http://ubuntu.mirror.cambrium.nl/ubuntu focal/main amd64 Packages  *** 2:4.7.6+dfsg~ubuntu-0ubuntu2.15 100         100 /var/lib/dpkg/status libpython3.8:   Installed: (none)   Candidate: 3.8.2-1ubuntu1.1   Version table:      3.8.2-1ubuntu1.1 500         500 http://ubuntu.mirror.cambrium.nl/ubuntu focal-updates/main amd64 Packages         500 http://ubuntu.mirror.cambrium.nl/ubuntu focal-security/main amd64 Packages      3.8.2-1ubuntu1 500         500 http://ubuntu.mirror.cambrium.nl/ubuntu focal/main amd64 Packages python3-talloc:   Installed: (none)   Candidate: 2.3.0-3ubuntu1   Version table:      2.3.0-3ubuntu1 500         500 http://ubuntu.mirror.cambrium.nl/ubuntu focal/main amd64 Packages


Find $\displaystyle{\lim_{n \to \infty}} \sqrt[n]{n!}$ without Stirling's approximation.

Okay I've seen many posts as this one, but in every post it uses Stirling(I can't use it because I've never learnt it), or weird equalities with logs (I also never learnt this) or other methods I'm not allowed to use in my exam.  I have to prove that $\lim n!^{(1/n)}$ = $\infty$, only by using D'Alembert, $n^{th}$ root test, Stolz, squeeze theorem or by playing with inequalities etc   What I thought is that I could prove that $\lim \frac{1}{n!^{(1/n)}} = 0$ (again only using those basic theorems) and that would mean that $\lim n!^{(1/n)} = \infty$ but I'm not sure if that's correct.  Please don't mark as duplicate! I need an answer and I haven't found any post with an answer I can use!!


Problem with sansmathaccent under pdftex

I get the following error when I try to typeset a beamer document.  kpathsea: Running mktexpk --mfmode / --bdpi 600 --mag 0+525/600 --dpi 525 mathkerncmssi8 gsftopk: fatal: map file `cid-base.map' not found. mktexpk: don't know how to create bitmap font for mathkerncmssi8. mktexpk: perhaps mathkerncmssi8 is missing from the map file. kpathsea: Appending font creation commands to missfont.log.  ) !pdfTeX error: pdflatex (file mathkerncmssi8): Font mathkerncmssi8 at 525 not found  ==> Fatal error occurred, no output PDF file produced!   But if I remove sansmathaccent.sty from the TeX Live tree, the document typesets fine. Here is a minimal working example.  \documentclass[10pt]{beamer}  \begin{document}  \begin{frame}{A very short beamer document}  $e^{i\pi}+1=0$  \end{frame}  \end{document}


How to include a screenshot of my application in the DEB/PPA to show it in Software-Center?

I know how to create a DEB and push it into my PPA at Launchpad but I want to know how I can include a screenshot of the application that it shows up in Software-Center.


Minecraft keepInventory command not working

I began a new map with cheats enabled, and tried to use the keepInventory command, but it's not working, i.e. I still drop items after death.  I typed the command right, as I copied it directly from the wiki and pasted it in-game. I also tried it on a server, but its still not working.  Does anyone know what I'm doing wrong?


Ubuntu 16.04.1 LTS Could not find any bluetooth device(while it is recognized)

I'm new to Linux.  When I try to use my built-in bluetooth chipset in Huawei Matebook, the adapter seems recognized well but it could not find any bluetooth device.  I also try to use bluetooth with my dongle type adapter and then it is working  here is my hciconfig -a  ~$ hciconfig -a hci0:   Type: BR/EDR  Bus: USB BD Address: FC:3F:7C:63:81:35  ACL MTU: 1021:8  SCO MTU: 64:1 UP RUNNING  RX bytes:2068 acl:0 sco:0 events:116 errors:0 TX bytes:3865 acl:0 sco:0 commands:113 errors:0 Features: 0xbf 0xfe 0xcf 0xfe 0xdb 0xff 0x7b 0x87 Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3  Link policy: RSWITCH SNIFF  Link mode: SLAVE ACCEPT  Name: 'yeomMate' Class: 0x0c010c Service Classes: Rendering, Capturing Device Class: Computer, Laptop HCI Version: 4.1 (0x7)  Revision: 0x2000 LMP Version: 4.1 (0x7)  Subversion: 0x230f Manufacturer: Broadcom Corporation (15)   I wonder why it say that Bus type is USB.  and dmesg |grep [bB]luetooth is here  $ dmesg |grep [bB]luetooth [    3.276981] Bluetooth: Core ver 2.21 [    3.277036] Bluetooth: HCI device and connection manager initialized [    3.277040] Bluetooth: HCI socket layer initialized [    3.277042] Bluetooth: L2CAP socket layer initialized [    3.277063] Bluetooth: SCO socket layer initialized [    3.300552] Bluetooth: hci0: BCM: chip id 101 [    3.316606] Bluetooth: hci0: BCM4354A2 [    3.317586] Bluetooth: hci0: BCM4354A2 (001.003.015) build 0000 [    3.317608] bluetooth hci0: Direct firmware load for brcm/BCM4354A2-0a5c-6419.hcd failed with error -2 [    3.317611] Bluetooth: hci0: BCM: Patch brcm/BCM4354A2-0a5c-6419.hcd not found [    4.329100] Bluetooth: BNEP (Ethernet Emulation) ver 1.3 [    4.329104] Bluetooth: BNEP filters: protocol multicast [    4.329109] Bluetooth: BNEP socket layer initialized [    8.713237] Bluetooth: RFCOMM TTY layer initialized [    8.713246] Bluetooth: RFCOMM socket layer initialized [    8.713254] Bluetooth: RFCOMM ver 1.11   my working usb-type bluetooth also fail to Direct firmware load. but it works.  nothing is blocked in rfkill list  if you want any other info, I will be glad to append


How do you Drush reset an administrator password?

How do you Drush reset an administrator password after forgetting the pass and losing its email?


The ia32-libs package is no longer present in Ubuntu 12.04 repositories for a 64bit system. Are there any available replacement packages available for download?


How to find the generator of an elliptic curve?

If the elliptic curve has prime order of points, then all of its points are generator. Is this true? If so, how can I find the optimized generator(which generates more number of points) among them?


I've got an old pc with windows XP 32 bit, and I wanted to turn it into a home based server.  I am thinking of installing ubuntu as an OS.  I'm a networking novice so I'm not quite sure if it will work good.  My other computers are all running windows 7 64 bit.  So, will it be sufficient to turn this 32 bit box into a server to hold all my files and backups, while the 64 bit pc's just exchange the data?  Please let me know, or educate me on the subject.  Thanks in advance.


I think is is a simple problem. What i did is to create a button 'remove' in JS when I click an a button 'add' and append it to a existing div.  This works well. BUT for the new created button 'remove' I want to fire a new event - the remove event. This didn't work. What is the problem here?    $(document).ready(function() {    $('#mybutton').on('click', function() {     $('#dateTimeSelector').append('<button type="button" class="btn btn-link removedate" rel="contents" title="Termin entfernen">remove</button>');   });    $('.removedate').on('click', function() {     console.log('remove #dateTimeBox_' + $(this).data());   }); });  <button id="mybutton">   add </button>


What systems can the Principle of Least Action be applied?

When reading about the Calculus of Variation and Hamilton's principle I come across quotes      Hamilton's principle states that the differential equations of motion for any physical system can be re-formulated as an equivalent integral equation. Thus, there are two distinct approaches for formulating dynamical models.    This has me curious.  What systems submit to this transformation from differential equations to functionals?  Can the calculus of variations be applied to any differential equation, or are there restrictions?  What is special about "physical systems" which permit this sort of manipulation?


I am currently studying the motion of relativistic charged particles in electromagnetic fields. More exactly, we first derived the equation of motion in the 4-vector formalism.  I was a bit confused when my teacher talked about acceleration in special relativity. In which cases are we allowed to talk about it specifically in special relativity? (I mean that I have not studied general relativity yet) What stay constant ? Or are we making an approximation?  It may of course have a sense, though I have the feeling that in my courses, we only talked about constant speeds in special relativity.  I hope my question has a sense,  Isaac


Counting number of lines connected to point?

I have a water network which and I need to install elbows and Tees (T). When 2 lines connect to a point, I want to install an elbow, when 3 lines connect, I want to install a Tee.   How do I get ArcGIS or QGIS to determine how many lines are connected to a point and designate an elbow or a tee based on that criteria?


Why don't cameras show an "accurate" histogram?

Why don't cameras show a histogram based on the RAW data rather than on the JPG preview?  I know that a RAW file is not a viewable image and can't be displayed without applying curves and defining how the image should be interpreted. But why don't cameras show a histogram that accurately shows how much latitude I have in the image?  For example when shooting high contrast scenes (for example at sunrise) I know that I can overexpose the highlights to a certain extent to retain detail in the shadows and bring those areas that appear clipped in the JPG preview back in post.  But every camera I've worked with shows me the histogram based on the JPG preview and the picture style and tells me that those areas are clipped.   Is there no way of seeing the actual dynamic range captured by the sensor? Why does no camera manufacturer implement that? It shouldn't be too difficult.


How is it possible to make the Search module multilingual?  Now all my result on mysite/search/node are not filtered (ENG + FR are mixed).


use classes contained in a .jar file in a java project

I am using eclipse and i have a library (.jar file).   I need to import it in my project. I have already added it in my project (Build path..). Now my problem is that  there is a default package who contains  (.class files) in the library .and i don't know how to use it (instanciate objects from this library) in my code.  thx a lot


We can query the feature license count being used as below: SELECT count()  FROM User  WHERE UserPermissionsMarketingUser = true AND isActive = true  Is there any way I can query the total feature license count that is being displayed under company information in UI?


Noncoalescingِ drops on vibrating liquid surface

if you set a dish filled with soapy water onto a loudspeaker or other vibrator and make vibration, When it oscillates, it is possible to hold small droplets on its surface for a long time. I mean, when the liquid surface starts vibrating, some drops of the same liquid, Spontaneously appear on the surface of the liquid.  What causes this phenomena? Why do the drops appear?  This is different from  . the defference :  In this question some drops will be *created Spontaneously *  But in the other question drops wich are put on the vibrating surface won't coalesce.


Is it allowed to use Stack Exchange to connect to People?

Is it allowed to use Stack Exchange to find people who would like to work on a project?  I am basically looking for students who are interested in creating something to show to future employers.


How to define and call a private method in prototype in JavaScript?

Assume I make a custom Object:  function MyObject() {   // define some properties }   Now I want define a private method in the prototype:  MyObject.prototype = {   // by doing this I defined a public method, how can I define a private method?   myMethod: function() {     //some code   } }   Then I want to call the function in the constructor like this:  function MyObject() {   // define some properties   call myMethod() }   How can I do it?


Could you please explain following statements with example  Statement1 Ordinary functions have different types only when their signatures differ. However, function objects can have different types when their signatures are the same. In fact, each functional behavior defined by a function object has its own type. This is a significant improvement for generic programming using templates because you can pass functional behavior as a template parameter


Movie about a man trapping his soul in a box thus making him immortal

Saw the ending for this in the early 80's. His soul is trapped in a box or placed there making him unable to die. Ends with him walking into the street and being messed up by a car hitting him but doesn't die. Can't seem to figure out what it was.