Java, MySQL: myStatement.executeUpdate INSERT INTO gives NullPointerException

The Problem:  java.lang.NullPointerException at mainPackagePaketverwaltung.Datenbank.savePaket(Datenbank.java:58) at mainPackagePaketverwaltung.MainPV$12.actionPerformed(MainPV.java:507)   The Cause:  This is the Line (58):  myStatement.executeUpdate("INSERT INTO Relation VALUES(NULL, '"+ PaketID +"', '"+ atodb.getArtikelID() + "', '"+ atodb.getMenge() +"')");   From what i understand this should create a new line in the Database because the NULL/Primary_Key is set to Auto_Increment, but after one runt it errors out.  That should not happen bc with each run a new line would be made by the Auto_Increment.  More Info:  PaketID is a INT  atodb.getArtikelID is a INT  atodb.getMenge is a INT  All DB Fields are INT,s


Data Interoperability Toolset not working ArcGIS for Desktop?

The Data Interoperability Tools .tbx appears in my system toolboxes, however when I double click quick export or import, a red X appears.  I have gone into the administrator settings and the tool doesn't appear to be installed. How do I install it?  I am using ArcGIS 10.2 for desktop trial.  After I attempt to evaluate extensions, I receive a message which states all requested features have already been authorized on this machine.


I was going through an , where I found a bug. The favicon of all the SO accounts is that of 3D printing SO site.        In addition to the accounts tab, the top answers tab also shows the same favicon:        Is this a bug, or some cache problem in my PC?


Question: Show that $(\frac{1}{n} \sum_{i=1}^n |x_i|^p)^{1/p} \ge \frac{1}{n} \sum_{i=1}^n |x_i|$ in which $p>1$, $x_i \in \mathbb{R}$, $i=1,2,\dots,n$   Could you give me some hint to solve this problem. I see that it like the Minkovski's inequality but it not true. Thank all!


Is or are - "The most preferable length of the internship is 3 months but 2 is also acceptable"

Could you tell me, what is the correct form?      "The most preferable length of the internship is/ are 3 months but 2 is/are   also acceptable"   My intuition tells me that should be 'is' but 'are' seems to be more proper for number 3.


16.04 Lts doesn't contain auto run and wubi file

I have downloaded Ubuntu 16.04 from its website through a torrent, but I am unable to install it because it doesn't contain auto run and wubi files. What to do now?


Humorous or famous dictum as motto for a scientific text - is it appropriate?

Every once in a while I stumble upon a scientific book or article with a «motto», that is, a brief aphorism or short humorous stanza at the beginning, usually separated by its layout from the body of the text. In a book, this can also be in front of each chapter.  But is it generally considered appropriate for scientific texts or rather not advisable? In particular, does it come across as pretentious (aphorism) or frivolous (humor)? Clearly, I am unsure how to evaluate it.


Shape appears different in edit mode, object mode and render

I'm trying to animate a figure to jump and the animation runs fine when I play it in timeline but when I render image/animation, it also shows the initial T-pose figure that I started with:  what i found is that in the edit mode the shape of the figure is still in the initial t-pose and the armature seems disconnected from the object in edit mode:  whereas in the object mode the armature and body are connected and not in t-pose in object mode:  is it because I had not applied the armature modifier before making the animation?


An Idea to solve a limit involve integral

Suppose $f(x)$ is a continuous function over $[0,1]$,and $0<a<b$ find the below limit $$\lim_{t\to 0^+}{\int_{at}^{bt}\frac{f(x)}{x}}=?$$ My work is below $\int_{at}^{bt}\frac{f(x)}{x}=\int_{at}^{bt}f(x)d(\ln(x))$ Using the mean value theorem, and $f\in c^1[0,1]$ we have $$\exists c:a<c<b \ |f(ct)=\frac{\int_{at}^{bt}f(x)d(\ln(x))}{\ln(bt)-\ln(at)}$$ so $$\lim_{t\to 0^+}{\int_{at}^{bt}\frac{f(x)}{x}}=\lim_{t\to 0^+}{\int_{at}^{bt}f(x)d(\ln(x))}=\\ \lim_{t\to 0^+}f(ct)ln(\frac{bt}{at})=f(0)\ln(\frac ba) $$ My questions: 1:Is my working true? 2:Is there another Idea or method to solve the problem? Thanks in advance


bohr-sommerfeld quantiztion condition from semiclasical WKB

in WKB the quantization conditions are  $$ \oint _{C} p.dq =2\pi n \hbar \tag{1}$$  and the wave function is $$ \Psi(x)= exp \left( \frac{iS[y(x)]}{\hbar} \right), \tag{2}$$  but what boundary conditions must I impose to this wave function if I want to obtain borh sommerfeld conditions ??


Is there a nice way to partially-bind class parameters in Python?

Here's what I'm doing now:  @memoized def reversed_matching(matching_cls):      class ReversedMatching(ReversedSequenceMatching):          def __init__(self, *args, **kwargs):             super().__init__(matching_cls, *args, **kwargs)      return ReversedMatching   I want to bind one argument of a class and return the “partial class”. I can't use  because that can't be used with  and  and the like. Is there a nicer way to write this?


How do I make this sentence sound right?

Alan Bradley used many events and moments to show the protagonist's, Flavia’s, development and precocious personality in his novel, The Sweetness at the Bottom of the Pie.  Is it ok if I put this:  Alan Bradley used many events and moments to show the protagonist, Flavia’s development and precocious personality in his novel, The Sweetness at the Bottom of the Pie.


Can you access a mailbox during a mailbox move from 2003 to 2010?

When using the Local Move Request within Exchange 2010 to move a mailbox from Exchange 2003 to Exchange 2010, can the user still access their mailbox on either server?  If not, does temporarily suspending the move request allow access and via which Exchange server?


How to interpret the coefficient of variation?

I am trying to understand the . When I try to apply it to the following two samples of data I am unable to understand how to interpret the results.  Let's say sample 1 is ${0, 5, 7, 12, 11, 17}$ and sample 2 is ${10 ,15 ,17 ,22 ,21 ,27}$. Here sample 2 $=$ sample 1 $+\ 10$ as you can see.  Both have the same standard deviation $\sigma_{2} = \sigma_{1}= 5.95539$ but $\mu_{2}=18.67$ and $\mu_{1}=8.66667$.  Now the coefficient of variation ${\sigma}/{\mu}$ will be different. For sample 2 it will be less than for sample 1. But how do I interpret that result? In terms of variance both are the same; only their means are different. So what's the use of the coefficient of variation here? It's just misleading me, or maybe I am unable to interpret the results.


Volume of bounded region between sphere and a plane

A solid spherical cap of radius $R$ is the solid delimited by a sphere    of radius $R$ and a plane that intersects the sphere.   The height $h$ of the solid spherical cap is the largest distance from a point of the solid to the plane intersecting the sphere.   Show that the volume of a solid spherical cap is given by:  $$V = \frac{\pi h^2(3R-h)}{3}$$   It is enough to consider the solid spherical cap delimited by the sphere $x^2 + y^2 + z^2 = R^2$ and the plane $z = R-h$  use triple integrals by spherical or cylindrical coordinates. Give me a few min to try it out.


Does casting a box Forcecage around another spell’s area of effect break concentration?

Part of the description of  states:     A prison in the shape of a box can be up to 10 feet on a side, creating a solid barrier that prevents any matter from passing through it and blocking any spells cast into or out from the area.   If forcecage is cast (in the form of a 10-foot solid box) on a point where an existing spell like  is centered, does it break the concentration of the previously cast area-of-effect spell? Or would it trap the AoE effect inside the box?


Logged in as Admin, yet file operations need "as Admin" confirmation [Win 7]

I am logged in through the only account defined on my new Windows 7 Professional PC. Despite it being a (password-protected) administrator account, every time I need to copy files on the C: system partition,  install software, run Regedit, etc, Windows comes up with an extra confirmation screen, to get past which I have to choose the "As Administrator" button - the operation then proceeds as normal, it's just annoying that the confirmation screen is always there.   Also, several programs that I would like to have integrated in the Windows context (right click) menus cannot be integrated, presumably because  of the same ambiguity with regards to the Administrator status of the account - and then there is no prompting from Windows, making these program unable to operate as expected.  On my old Win7 PC, my Admin account appeared to have been configured in exactly the same way, yet I did not have these problems, and I was able to do any file operations, including in system folders such as \Program Files or \Windows. What shall I do? Thanks!


what is the purpose of overriding hashcode in java object?

I know multiple object having same hashcode in java objects.It doesn't make any problem at all.So, What is the purpose of overriding hashcode in java...  In which situation it is advisable to do override the hashcode in java?


Playing Audio files attached to Opportunities in a Lightning Component

I am trying to setup a Lightning Component that will be able to play audio files that are attached to an Opportunity using <audio></audio> tags.   My first test was promising, I uploaded a test file as a static resource and the file was immediately playable. I was hoping I could construct a link to the Opportunity attachment and include that in the audio src like so:  /servlet/servlet.FileDownload-file=*attachment id*   Which gave me the following error:     Refused to load media from 'https://mydomain.my.salesforce.com/servlet/servlet.FileDownload-file=id' because it violates the following Content Security Policy directive: "media-src 'self'".   This led me to try and base64 encode the file and construct a data URI but I receive the same error message as above:     Refused to load media from 'data:audio/mp3;base64,/+NIxAAAAAAAAAAAAFhpbmcAAAAPAAA0uQAgxJAAAwYICg0PEhQXG…rVTEFNRTMuOTguNFVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV' because it violates the following Content Security Policy directive: "media-src 'self'".   Apex:  @AuraEnabled Public Static Map<String, String> getAttachTest(String recordId){      Map<String, String> attData = New Map<String, String>();      for (Attachment att : [Select Id, Name, Body from Attachment where ParentId = :recordId ])     {         attData.put( att.Name, EncodingUtil.base64Encode(att.Body) );     }      return attData;  }   Is there an easy way to achieve this? The end goal is to be able to dynamically populate the <audio> src attribute with a file that is attached to an Opportunity. Any help would be greatly appreciated!


I have to find the sum of the series : $1+ \frac{2}{6} + \frac{2 \times 5}{6 \times 12} +  \frac{2 \times 5 \times 8}{6 \times 12 \times 18} + \cdots$..  I find out the $nth$ term to be $u_n = \frac{2 \times 5 \times 8\times \cdots (3n+2)}{6 \times 12 \times 18 \cdots 6n}$.  After finding the $nth$ term I was unable to proceed.  Any insight will be happily accepted.Also looking for any tips or advices for solving this kind of problems.  Thank you.


How to add class in existing class given element JavaScript?

I'm trying to add a new class to a given class without using GetElementById. My project has an array on the list, and each list creates dynamic classes like 0-test, 1-test, 2-testing, so on. Add a new class to a given class like ( 0-test active-test) class. I am trying to have some javascript properties, but it is not working properly. My code is:-   document.getElementsByClassName('0-test')[0].className += "active-test";   It's not working please tell me how to add a new class?


How do I plot the asymptotes in this graph?

When i plot the graph of $(x^2+x+1)/(x+1)$, there appears to be a solid vertical line in the plot which happens to be the vertical asymptote, is there a way to make that line dotted and also include the oblique asymptote in a similar fashion?  \documentclass{article} \usepackage{amsmath} \usepackage{pgfplots}  \begin{document} \begin{tikzpicture} \begin{axis}[     axis lines = center,     xlabel = $x$,     ylabel = {$y$},     xmax = {5},     xmin = {-5},     ymax = {5},     ymin = {-5},     legend pos = outer north east ] \addplot [     domain=-10:10,      samples=100,      color=black, ] {(x^2+x+1)/(x+1)}; \addlegendentry{2 turning points} \end{axis} \end{tikzpicture} \end{document}


Both of the yellow spheres are exactly identical, but the one in the glass cube looks more bleached than the right one. Which variables should I be looking at to make the color of the left sphere look as vivid as the right one? Thank you all always!


What is the value of $f(x) = x \ln (x)$ at $x= 0$?   Is it $0$ or indeterminate?


Countable product of complete metric spaces

Someone that can give me a proof of that a countable product of complete metric spaces is complete ?


There are multiple, huge spoilers for the latest Avengers film in the Hot Network Questions bar. This bar cannot be hidden, and I cannot install plugins at work to "hack" a fix. Nor should I need to. I come to SO for programming help, not to see spoilers for the latest blockbuster film/TV show. And let's not even get started on the often NSFW topics that are discussed across the various subforums.  Please make the HNQ bar hideable, and stop allowing spoilers to be posted as questions.


Suppose $U$ and $W$ are $k$-vector spaces with bases $\{u_{i}\}_{i=1}^{n}$ and $\{w_{j}\}_{j=1}^{m}$.  How to prove that $\{u_{i} \otimes w_{j}  \}_{i , j}$ forms a basis for $U \otimes W$ ?


seeking information about driver for hp laptop.

I have installed Ubuntu 13.10 in my hp laptop. Do i need to install drivers for my sound, Graphics, WiFi, Bluetooth etc. or the Ubuntu have it pre-installed in it.


Follow-up to question: Aut(G) for G = Klein 4-group is isomorphic to $S_3$

This is most likely a lack of understanding of wording on my part. I was considerind the Klein 4-group as the set of four permutations: the identity permutation, and three other permutations of four elements, where each of those is made up of two transposes, (i.e., 1 $\rightarrow$ 2, 2 $\rightarrow$ 1 and 3 $\rightarrow$ 4, 4 $\rightarrow$ 3) taken over the three possible such combinations of four elements.  Here, then, is my question. I am assuming (?) that Aut(G) in this case is the set of permutations of the four elements of the Klein 4-group - or the three non-identity ones for the purpose of showing isomorphic to $S_3$. If this is the case, what does it mean to have a permutation of these three permutations that I mentioned above? As always, thanks for your help.


Seedable Random number generator in JavaScript

I'm looking for a random number generator in JavaScript which I can initialize with a certain seed and gives a deterministic result (according to that seed). It should be capable of providing random integers within a certain range, however I can work with a random number generator that spits doubles, too (just like Math.random()).  Basically I'm looking for an equivalent to java.util.Random as known in the Java World for JavaScript.  Is there something like this already built into JavaScript? Is there some (maybe HTML5 related API) which specifies such a thing? Is there a library providing such a random number generator?  I'm implementing a genetic algorithm in JavaScript and I need to be able to harvest the same results for the same inputs (including seed) for research.


Adding Score to score canvas after collision

Simply a player has to move through pipes falling down, once the player moves through the gap it should add a score and increase the scoring after each pipe the player goes through, pretty basic.   I have made a prefab object and it is a block with a collider on it and another collider that acts as a trigger behind it stretched out so it can be accessed on both sides. I then added to the main scene canvas >> textmeshpro>>> added a script with the following code however, when the player hits the collider the score does not increase in the scene. But if I remove the GetComponent then it increases by increments of 4 in the inspector.   using System.Collections.Generic; using UnityEngine;  public class Game : MonoBehaviour {     public int Score = 0;      void Start()     {     }      // Update is called once per frame     void Update()     {         GetComponent<UnityEngine.UI.Text>().text = Score.ToString();     }      private void OnTriggerEnter2D(Collider2D other)     {         AddScore();     }      void AddScore()     {         Score++;     } }


Problem when installing pip for python 2.7.16 in Ubuntu 18.04

I used the following in Home  $ sudo apt install python-pip   the output was the following  Reading package lists... Done Building dependency tree        Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:  python-pip : Depends: python:any (< 2.8)               Depends: python:any (>= 2.7.5-5~)               Recommends: python-all-dev (>= 2.6) but it is not going to be installed               Recommends: python-setuptools but it is not going to be installed               Recommends: python-wheel but it is not going to be installed E: Unable to correct problems, you have held broken packages.   I already tried the following without sucess  sudo apt-get clean   no special output but didn't fix the problem   sudo apt-get autoclean   no special output but didn't fix the problem   sudo apt-get -f install after sudo dpkg --configure -a and then sudo apt-get -f install  output was : 0 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.  sudo apt-get -u dist-upgrade and then sudo apt-get -o Debug::pkgProblemResolver=yes dist-upgrade  which gave the output :  0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.   The aforementioned were some of the solutions proposed here   Thanx!! :)


I know it's a frequently asked question, but I don't manage to find a solution.  I have a new Asus laptop (Asus S551LB-CJ003H) on Windows 8.1, and a Logitech Mouse M125. The problem is : when I type on my keyboard, the mouse left click is disabled. And, worse, it still lasts one second after the end of typing.  I have tried to go to Mouse and Keyboard properties in the Control panel, but I didn't find the option to disable this behavior. My mouse driver is up to date. And I haven't the possibility to downgrade it.  Finally, the problem also occurs for my touchpad. (but this is less annoying)


In what countries are region exclusive Pokémon available?

There are currently 6 region-exclusive Pokémon:   Kangaskhan - Australia Tauros - North America Farfetch’d - Asia Mr. Mime - Europe Corsola - between 31N° and 26S° Heracross - South America   I'm wondering about more precise areas where those Pokémon are available, since, for example, Farfetch’d isn't available in Israel, even though it is in Asia.  What are Niantic's definitions of Asia, Europe, North America, and Australia, with regards to the availability of region-specific Pokémon?


Why was Anakin allowed to wear black robes?

Within the Jedi Order, it seemed to be that the brown robe over the lighter coloured tunic, pants and belt was more uniform than merely a customary wardrobe for Jedi Knights and Jedi Masters.  I can't recall any other Jedi who wore any kind of variation from this outfit (I can only think of the  who was the librarian in Episode II in the Jedi Archives, but she was at that time a Jedi Knight of some standing). And then there was Anakin in Episode III, in his black robe and tunic, looking very different from any other Jedi.  I realise that he was a big war hero, but he wasn't even a Jedi Master so it seems unlikely that his choice of attire would be welcomed by the Jedi Council. So my question is this:  Why was Anakin Skywalker, as a mere Jedi Knight, allowed to wear his black robes instead of the typical Jedi brown?


How do you input sudo password automaticly when prompted? I can do this in a script by typing: echo PASSWORD | sudo -S Command, but how do I do that always when prompted?


The amount of time since the system was last booted

I have used both uptime and cat /proc/uptime commands. I know the idle time in the later can be greater than running time (multiprocessors). However, when I add both running and idle times, and compare it to the uptime (5:30 hrs) they are not equal. I assume it's because the uptime returns the real time and the cat /proc/uptime returns processor(s) time.    Short things clear, I want to know the reason exactly and I want to know which one to choose, according to the topic.  Also, is it possible to get the processor(s) time in the last 24 hours?  NOTE: Please read this  to understand where this is going.   *Distributor ID:    Ubuntu Description:    Ubuntu 12.04.2 LTS Release:    12.04 Codename:   precise *


This question is similar to  which asks about how to "block all app & game invitations (once and for all)". My question is different: it asks about how to "block a particular, single game app". More details about what I'm after follow:  It's been months now that almost every single day I keep on getting annoying requests from some of my friends on Facebook to play a game called "Candy Crush Saga". At first, I thought my friends would go through their list of friends and send invitation to each one of them they wanted to play the game with explicitly, or maybe just bulk-invite them by pressiong one big button on the game's user interface. However, now I'm completely annoyed, and would like to block the game altogether. At least, due to frustration that's the way I've come to perceive things by just looking at the notifications area of Facebook's user interface.  So, my question is: What's the reality of what's going on, and how do I block a single app from posting notifications from within the timeline?


Blackbody radiation is thermal radiation from a hot object emitted over a continuous range of wavelengths. But why are spectral lines, lines (i.e., you only get certain wavelengths when an element is heated up and you look at it's emission spectrum)? Is it because the light from the heated element is passed through some sort of diffraction grating?


How to spread a population data from a vector layer in a raster layer?

I got a shapefiles for provinces in a African country. In each province there is the population data. I've got 3 TIFF (raster),    one for the agriculture,  one for the cities and  the last one for other (forest,lake, grassland etc...).    Knowing the population of each province, I've got to spread it according to the density. The density of cities are 100x the density of other and 5x the density of agriculture and the density of agriculture is 20x the density of other.   At the end I would like a population size for each pixel. How can I do it using the raster calculator or another tool in QGIS?


I'm using Python, and would like to insert a string into a text file without deleting or copying the file. How can I do that?


How to get all solutions of $x^2 \equiv$ $a$ mod $p$?

So I'm trying to find all solutions of $x^2 \equiv$ $a$ mod $p$ and for some reason the formulas that are suggested everywhere online (for example, ) say that, if p is an odd prime and you have a congruence like this:    Then you can find the solutions with this (if there are any):    That's what I was taught as well, but when entering examples into Wolfram Alpha, I've noticed that there are actually more solutions - these formulas just give you one of them! For example:   If I need to find the solutions of: x^2 ≡ 8 (mod 23) and I use the above formulas, I get the solution: x = +- 13, but  (and it does). So why is that? Why do these formulas only give you 1/2 of the answer and why can't I find a way to find the whole answer (excluding the way where you draw the table with x^2 mod p for x from 0 to p and)?  I realize that I'm probably doing something wrong and I'm not very good at this in the first place, but I've spent hours searching for an answer and couldn't really find anything (that I could understand, at least).


How do you connect the iMac Minecraft java edition to Minecraft pocket edition?

How do you connect Minecraft java edition (iMac) to Minecraft PE (pocket edition) to play a world together?


A slightly stronger version of the Goldbach conjecture?

The strong Goldbach conjecture postulates that every even number can be expressed as the sum of two primes.  An even number that is just twice a prime is considered a valid exemplar.  For low values of n, I cannot find any example of a number that is not the sum of two distinct primes.  Among the integers that have been looked at, are there any instances of an integer 2p that can only be expressed as p + p?


$('document').ready(function(){     var catid, action, data, selectid;     $('select.cat-selector').on('change', function() {          catid = $(this).val();         action = 'getsubcatbyidList';         data = { action: action, catid: catid };         $('#input-catid').val(catid);         // Sub Category         getsubcat(catid,action,"");     });     $('select.sub-category').on('change', function() {         $selectid = $(this).find('option:selected');         var id = $selectid.val();         $('#input-subcatid').val(selectid);     }); });   And the Ajax Function getsubcat(catid,action,"");  function getsubcat(catid,action,selectid){     var data = { action: action, catid: catid, selectid : selectid };     $.ajax({         type: "POST",         url: ajaxurl+'?action='+action,         data: data,         success: function(result){             if (result !== '') {                 $(".subcategory").html(result);             }         }     });     $('*[data-ajax-catid='+catid+']').addClass('link-active');     $('button').prop('disabled', false); }   And The HTML  <form method="post">                                 <div class="btn-section">                                     <input type="text" id="input-catid" name="catid" value="">                                     <input type="text" id="input-subcatid" name="subcatid" value="">                                     <button type="submit" name="choose-category" id="next-btn" class="btn btn-primary text-caps" disabled>Proceed</button>                                 </div>                             </form>   The Above code handle this task, Select the Category Using Cat ID, and also store in a hidden input tag, fetches the Sub Category and On selecting the Sub Category, It is supposed to get the Subcategory ID, but It doesn't work. How do I go about these Bug, Jquery Issue? Please I need your Help


I don't know if the title is completely appropriate/applicable, but I guess it'll have to do until there's an edit.  So a if one dies of starvation, one dies from "suffering or death caused by hunger (New Oxford American Dictionary)". Is there a given term for "suffering or death caused by lack of water/thirst"? When one says "He starved to death", the meaning is "He died from hunger", but there's no term (at least to the best of my knowledge) for something like "He (word for died from thirst) to death)".


Applying for MS in USA after completing 3 years degree in India

I have completed my Bachelor of Computer Applications (BCA) from India. The minimum requirement for admission into the MS in Computer Science program requires a 4 year college degree. My BCA degree was a 3 year degree and I am planning on pursuing a 1 year Post Graduate Diploma in Computer Applications (PGDCA) from Indira Gandhi National Open University (IGNOU) and would like to find out if these total 4 years satisfy as minimum requirements for admission consideration.


What is the difference between "I did play " and "I played" according to the British English?


What is a " .desktop" file? How can I open it?

I just copied the application firefox from /usr/share/applications to my home directory and then it shows me a .desktop  file. When I try to open it, it says "Untrusted application launcher". How can I open it, and what is it? What does it do?


ubuntu 18 freezes very often . please guide

i am using ubuntu 18. Its getting stuck or freezed very often. i do force shutdown to get out of this issue. can somebody help me to sort this out


Add destinations for external links to PDF file?

According to , it is possible to add "destinations" to a PDF file that can be used to navigate directly to certain places in the document when opening it:     Open a PDF file to a set destination      A destination is the end point of a link represented by text in the   Destinations tab. Destinations enable you to set navigation paths   across a collection of Adobe PDF documents. Linking to a destination   is recommended when linking across documents because, unlike a link to   a page, a link to a destination is not affected by the addition or   deletion of pages within the target document.      To set a Destination in Acrobat 7.0 (Professional or Standard):         Set the Zoom and page location to the way you want it on the screen.   Select View > Navigation Tabs > Destinations to open the Destinations tab.   Select Options > New Destination from the Destinations tab.   Give the Destination a name.   Create an HTML link that points to this destination by adding #[destination name] to the end of the links URL.         For example, this HTML tag opens a destination named "glossary" in a   PDF file named myfile.pdf:      <A HREF="http://www.example.com/myfile.pdf#glossary">   Using pdflatex and hyperref, is there a way to place these "destinations" in the PDF output file? Is it possible to automatically add \labels as destinations?


In Harry Potter: where do people in paintings go when not within their normal frames?

I'm not sure whether this happens in the books - it's been a while since I've read them - but in the films at least, there's occasions when subject(s) of a given painting venture outside of its frame. In Prisoner of Azkaban, the Fat Lady goes into another painting after being scared off by Sirius Black. In Order of the Phoenix, Filch 'empties' paintings of their subjects, by shaking the frames hard enough. In Deathly Hallows - Part 2, subjects are seen rushing from painting to painting, seemingly 'getting out of the way' as the preparations take place for what is about to be the Battle of Hogwarts.  But how does this work?  Is there any explanation given by JK Rowling inside the canon, or in interviews on this?  Where did the subjects go during Umbridge's time as Headmistress - where did they 'hang out' during this short-lived exile from Hogwarts? Are they in their own alternate 'world' or 'space' and can travel to any adjacent painting and thus theoretically wherever they want to, within the painting 'world'? To find some other home, if kicked out of their (original) portrait?  Thanks.


That is still not working the problem is their in long table in the width the figure is not shown

this is the code \begin{longtable}[c]{@{}|c|c|c|c|c|c|c|c|c|@{}}     \caption{Bacteria isolates on different media}     \label{tab:my-table}\\     \toprule     \textbf{Sr.No} &     \textbf{Reference Code} &     \textbf{Sample Location} &     \textbf{Colony Color} &     \textbf{Colony Morphology} &     \textbf{Pigmentation} &     \textbf{Media} &     \textbf{Predicted Name Of Strain} &     \textbf{Figures} \\* \midrule     \endhead     %     1 &     EMB(P)1 &     Islamabad &     Green sheen &     Circular &     Green Sheen &     \begin{tabular}[c]{@{}c@{}}Eosin methylene\\    \\ blue agar\end{tabular} &     \textit{\textbf{E.coil}} &\includegraphics[width=0.3\linewidth]{e.coil.png}*     \\* \midrule     2 &     MSA(P)1 &     Islamabad &     Yellow &     Punctiform &     Yellow &     Mannitol salt agar &     \textit{\textbf{\begin{tabular}[c]{@{}c@{}}Staphylococcus\\    \\ Epidermidis\end{tabular}}} &     \\* \midrule     3  & MACC(P)1 & Islamabad & Off white       & Circular  & Off white       & MacConkey agar     & \textit{\textbf{Salmonella}}              &  \\* \midrule     4  & MSA(P)2  & Islamabad & White           & Circular  & White           & Mannitol salt agar & \textit{\textbf{Staphylococcus   aureus}} &  \\* \midrule     5 &     B.A(P)1 &     Islamabad &     White &     Smooth &     White &     \begin{tabular}[c]{@{}c@{}}Blood \\    \\ Agar\end{tabular} &     \textit{\textbf{Pseudomonas   aeruginosa}} &     \\* \midrule     6  & B.A(P)2  & Islamabad & White           & Circular  & White           & Blood agar         & \textit{\textbf{Lactobacilli}}            &  \\* \midrule     7  & MACC(P)2 & Islamabad & Pink            & Circular  & Pink            & MacConkey agar     & \textit{\textbf{Klebsiella}}              &  \\* \midrule     8  & MACC(P)3 & Islamabad & Purple          & Irregular & Purple          & MacConkey agar     & \textit{\textbf{pseudomonas}}             &  \\* \midrule     9  & MSA(P)3  & Islamabad & Crystal White   & spherical & Crystal White   & Mannitol salt agar & \textit{\textbf{Salmonella}}              &  \\* \midrule     10 & B.A(P)3  & Islamabad & White           & Puntiform & White           & Blood agar         & \textit{\textbf{Staphylococcus}}          &  \\* \midrule     11 & MACC(P)4 & Islamabad & Orange to amber & Circular  & Orange to amber & MacConkey agar     & \textit{\textbf{Shigella}}                &  \\* \midrule     12 & MSA(P)4  & Islamabad & Yellow          & Circular  & Yellow          & Mannitol salt agar & \textit{\textbf{S. aureus}}               &  \\* \midrule     13 & MACC(P)5 & Islamabad & Pink to purple  & Circular  & Pink to purple  & MacConkey          & \textit{\textbf{Klebisella}}              &  \\* \bottomrule \end{longtable}


How to avoid returning to the command prompt when running gnome-terminal

When I run gnome-terminal from the command line and hit return, the shell prompt appears immediately when the gnome-terminal window is open, as if gnome-terminal & was executed. This is unlike xterm, which will not return to the shell prompt unless it is started in the background.   My question is how I can start gnome-terminal in the foreground the same way as xterm, such that it won't return to the shell prompt after entering return unless I explicitly run gnome-terminal &?


Prove that $ \lim_{n \to \infty}\int_0^{n^2} n\sin (x/n)e^{-x^2} dx = 1/2 $

Prove that   $$ \lim_{n \to \infty}\int_0^{n^2} n\sin(x/n)e^{-x^2} dx = 1/2.$$   I've tried all of the techniques learned in the course so far and none of them seem to work, so if anyone could help me with this it would be much appreciated. Thanks!


$ \DeclareMathOperator{\ad}{ad}$ Let $L$ be a semisimple Lie algebra with root space $L=H \oplus \bigoplus_{\alpha \in \Phi}L_\alpha$. Let $x\in L_\alpha$ with $\alpha\neq 0$. I want to show  Then $\ad x $ is nilpotent.  I know that if $\alpha, \beta\in H^*$ then $[L_\alpha,L_\beta]\subset L_{\alpha+\beta}$. I think I should make if we could show that there are only finitely many non-zero $L_\alpha$, we could use this fact to push $x$ into a trivial root space. Then it should follow that $(\ad x)$ is nilpotent? I am slightly confused as to what it means for $(\ad x)$ to be nilpotent, is it that $(\ad x)^n$ is zero, or is it that $\ad^n x$ is zero? Note this is a Proposition in Humphreys book but I do not see how it follows directly.


Be clearer on what a beta site needs to graduate

The beta tab of an Area 51 proposal contains the criteria for considering a beta site healthy:  15 questions per day on average 90% answered 150 users with 200+ rep 10 users with 2,000+ rep 5 users with 3,000+ rep 2.5 answers per question 1,500 visits per day  However, as the Robert Cartaino's answer to my question ( states), this is not enough. There are more fuzzy factors taken into account, before deciding, if . So I propose, that we should sit down and try to objectivise that fuzzy criteria and turn them in some numbers. In fact, this is what happens in the minds of SE team, it's only not yet written. For example, the question states the problem with the possible lack of users with moderator privileges after changing from beta to graduate site. That means, that the requirements from Area51 are too loose. We need more people with close privileges (>3000) and at least a few ones with access to moderator tools (>10000). Another factor is the gross size of the site, which makes the critical mass. We could be inspired by , which require at least 40 tags with at least 200 questions in each in order to grand that badge. Maybe 40 tags with 100 questions is too much as graduate criteria, but how about at least 20 with 100 questions? Anyway, I think there's enough SE sites to sum up the experiences and write out the common problems with beta sites and with sites that should become graduated. Writing clear criteria for graduation would not only make the whole process more transparent, but what's more important, they would become the guidelines for each beta community, saying what should we work on to help our children grow up.


How do I root a phone without losing any data?

I don't care if my phone trips the knox counter, I couldn't care any less if samsung knows I tried to root my phone but I'm tired of looking at videos on YouTube that say "This method works without any app and data loss", I used CFAutoroot and that erased my device. You all know how to root a phone teach me, I want to be able to keep my apps and data not lose any apps while rooting my phone. I was able to root only one phone with Android KitKat, without losing any apps except for Google Chrome, I want to root a phone with no app loss.


Why doesn't mass of bob affect time period?

The gravitation formula says $$F = \frac{G m_1 m_2}{r^2} \, ,$$ so if the mass of a bob increases then the torque on it should also increase because the force increased. So, it should go faster and thus the oscillation period should be decrease.  My physics book says that period is only affected by effective length and $g$. Why doesn't mass of bob affect the period?


Derive $\frac{\partial(\mathbf{x}^T\mathbf{Ax})}{\partial \mathbf{x}} = x^TA^T+x^TA$

I see here:  that that which is stated in the title is true. However, I tried deriving it myself.  $U = \mathbf{x}^T\mathbf{A}$  $\frac{\partial(\mathbf{x}^T\mathbf{Ax})}{\partial \mathbf{x}} = \frac{\partial U}{\partial\mathbf{x}} \mathbf{x} + U\frac{\partial\mathbf{x}}{\partial\mathbf{x}}$  $\frac{\partial(\mathbf{x}^T\mathbf{Ax})}{\partial \mathbf{x}} = \frac{\partial \mathbf{x}^T\mathbf{A}}{\partial\mathbf{x}} \mathbf{x} + \mathbf{x}^T\mathbf{A}$  $\frac{\partial(\mathbf{x}^T\mathbf{Ax})}{\partial \mathbf{x}} = \mathbf{A}^T\mathbf{x} + \mathbf{x}^T\mathbf{A} = 2\mathbf{x}^T\mathbf{A} \neq x^TA^T+x^TA$  Am I applying product rule correctly?


Is it possible for someone to get into a PhD without a thesis in Masters-level?

Is it possible for someone to get into a Ph.D. without a thesis at Masters-level?  If someone doesn't have a thesis at his Masters-level, what other criteria can he fill in order to approach a potential supervisor?


First 30 values per key in dict with lists

I have the following dictionary. {'VVD': ['male', 'female', 'female', 'female', 'female', 'male', 'male', 'female', 'male', 'female', 'male', 'male', 'female', 'female', 'male', 'male', 'female', 'male', 'male', 'female', 'male', 'male', 'male', 'male', 'female', 'male', 'female', 'male', 'male', 'male', 'male', 'female', 'male', 'male', 'male', 'female', 'male', 'male', 'male', 'male', 'male', 'female', 'male', 'male', 'male', 'male', 'female', 'female', 'male', 'female', 'male', 'male', 'male', 'male', 'male', 'male', 'female', 'female', 'male', 'female', 'male', 'female', 'male', 'male', 'male', 'male', 'male', 'female', 'female', 'female', 'female', 'male', 'male', 'male', 'male', 'female', 'male', 'male', 'male', 'male'], 'PVV (Partij voor de Vrijheid)': ['male', 'female', 'male', 'male', 'female', 'male', 'male', 'male', 'female', 'male', 'male', 'female', 'male', 'male', 'male', 'male', 'male', 'female', 'male', 'male', 'male', 'male', 'female', 'female', 'male', 'male', 'male', 'male', 'male', 'male', 'male', 'male', 'male', 'male', 'male', 'male', 'female', 'male', 'male', 'male', 'male', 'male', 'male', 'male', 'male', 'female', 'male', 'male', 'male', 'male']}  I want to get the first 30 values per key. How can I do this?


Rotating a new matrix into the same basis as another using SVD

I have collected some data and stored them in an $N\times P$ matrix $A$. Using SVD, we can rotate $A=UDV^T$ into a new basis, also discarding some dimensions: $A\approx U\tilde{D}V^T$, where $\tilde{D}$ is a diagonal matrix of the first $k<P$ singular values, with the remaining diagonal values $0$.  Then I train some model using $U\tilde{D}$ as the source data. Now I have a new set of data $B$ that I want to test the model on. The first step in applying the model is rotating $B$ to correspond to the data $U\tilde{D}$ that I trained the model on. How can I do this?


climatic data from MODIS or other sources

I'm looking for climatic information in the form of raster like MODIS daily LST (Land Surface Temperature) data. I'm looking for other parameters like precipitation, humidity, air pressure and so on. Does anybody have information where could I find MODIS (or other sources) data for these parameters and what is the best choice for each?


How to center a div that has transform-origin of top and left?

I have a div (.content) that has a transform-origin: top left and I need to center it. The thing is, I can only modify CSS of its wrapper (.wrap), but not of the actual div. I've, of course, tried margin: 0 auto, but that's not working. And neither is position: absolute (with left and right set as 0), though if I can avoid using absolute, even better.  Is there any way I can center this div?   This is the outline of my HTML and CSS:    /* The part of CSS that I can't modify */  .content {   height: 350px;   width: 350px;   background-color: darkblue;   -webkit-transform: scale(0.7);   -moz-transform: scale(0.7);   -o-transform: scale(0.7);   transform: scale(0.7);   -webkit-transform-origin: top left;   -moz-transform-origin: top left;   transform-origin: top left; }   /* The part of CSS that I can modify */  .wrap {   margin: 0 auto; }

     Thanks!


Determining ethernet wire category/speed

I moved into a home that has Ethernet cables in the walls and all my computer's are gigabyte Ethernet ports, same as my router and the cables I use to connect my PC to the Ethernet ports in the wall, however the Ethernet cables used to wire the home are not accessible from the home   How do I run a test of some kind, or do something to be able to find out what the Ethernet cable is, cat5 or 5e or cat6?  Is there any equipment or anything I can do to figure out what kind of cable was used to do the Ethernet wiring in the home before I moved here? I can't figure out the cables in the walls are even capable of doing more then 100mb and my internet speed is 1GB And I have 9 computer's wired thru the internet eternet wiring of the home by plugging the computers into the Ethernet ports in the wall of the home (they all go to one central location where the router is)  Pls help, I want to clearly find out what type of Ethernet the home is wired with, and if I'm even able to use the full 1GB if my home is wired with old Cat5 cables that can't handle the full 1gb internet speed I'm paying for  Please help!


Cute problem: determinant of $I_n+(f_if_j)_{i,j}$

I thought of the following little problem. Given numbers $f_1,\dots f_n$, what is the determinant of the symmetric matrix $I_n+(f_if_j)_{i,j}$? I have found a cute combinatorial-style proof that it is $1+\Sigma_i f_i^2$. using the sum over permutations formula for the determinant. Here $F(\sigma)$ denotes the set of fixed points of $\sigma$.  Does anyone have a faster/more elegant method?


Hi I executed this command sudo adduser username sudo and am wondering how do I take that username out from being able to execute sudo.  I checked the sudoers file but the username that I added thru the command line is not in there.  Does anyone know what command should I execute to take out the username? Thank you.


How to set a Boolean from one class to a JTextField in another class in java

I have a method in the Family class  I want to add the value of the method to the JTextField from the Driver Class.   Eclipse keeps showing errors offering to make the method a string. Any help on how to do this would be great.   method   public boolean AnswerCall(String r) {     boolean AnswerCall = true;       if(r == "Brother") {          AnswerCall = true;      }else {         AnswerCall = false;      }      return AnswerCall; }   How I am currently calling it from the driver class that is extending Family.  JTextField jt9 = new JTextField(AnswerCall());


Similar content on multiple pages. How does this impact SEO?

I recently posted a question about using a site structure similar to what's shown below.   example.com/bikes/foo-bike/wheels    //content about foo-bike's wheels example.com/bikes/bar-bike/wheels    //content about bar-bike's wheels   If two bikes are at comparable price points, it's likely that they will have similar components. Should I be concerned if multiple bikes have similar content and the only major difference between them is their component name?  The website I'm creating is a user guide for bikes. With the URL structure above I'm a little worried that I run the risk for creating duplicate content.


Bounded sequence with subsequences all converging to the same limit means that the sequence itself converges to the same limit.

I have a question regarding one exercise in Stephen Abbotts' Understanding Analysis. The question is: Assume $(a_n)$ is a bounded sequence with the property that every convergent subsequence of $(a_n)$ converges to the same limit $a \in \mathbb{R}$. Show that $(a_n)$ must converge to $a$.  I was then presented this proof (from the solutions manual): Assume for contradiction that $(a_n)$ does not converge to $a$, then from the negation of convergence we have (I'm not quite sure in this part): $$\exists \epsilon>0, \forall N\in \mathbb{N}, \exists n\in \mathbb{N} : n\geq N \wedge |a_n-a|\geq \epsilon. $$  Using this we can construct a subsequence $(a_{n_j})$ that diverges from $a$ as follows: for arbitrary $N\in \mathbb{N}$, we can always find a, say, $n_1$ such that, $n_1 \geq N$ where $|a_{n_1}-a|\geq \epsilon$. Since $n_1$ itself is in $\mathbb{N}$, then we can again find a $n_2 \geq n_1$ so that $|a_{n_2}-a|\geq \epsilon$. And in general we can find a $a_{n_{j+1}}$ after choosing an appropriate $a_{n_j}$ so that $|a_{n_{j+1}}-a|\geq \epsilon$.  From the construction of such a subsequence, isn't the contradiction that $(a_{n_j})$ does not converge to $a$ already proof that $(a_n)$ should converge to $a$? I am asking because the proof that I've read continues to say that the Bolzanno-Weierstrass theorem can be used to get another subsequence from the constructed $(a_{n_j})$ which diverges from $a$, and that the proof ends there. I think I understand it, but I fail to see why it is necessary. Can somebody enlighten me on this?


Why don't my objects reflect in the base plane?

I'm clearly missing something basic, and no doubt terribly simple. I've seen videos and tutorials on constructing reflective objects, and kind of even understand them (and I'm at least sure I'm exactly duplicating their material settings). So, I made a large plane mesh, and gave it reflective material settings. Then I built three objects that I placed just over it (red blue and green). The objects are visible, they cast shadows, etc. But the plane does not reflect the objects. What am I doing wrong? (Also, apologies if there are random strange characters; they echo right but when I go to the next line sometimes a few characters in the previous line change to random things! Gotta reboot I guess, even on Linux.) This screen capture shows the material the base plane is made of, and the three objects, and the lack of reflections. That orange line is the edge of the base plane, selected, so the material shown is really the material of the base plane.  I was hoping to upload the whole project (it being trivial and hence small), but that doesn't seem to be an option. Blender version is 2.82.7, running on Ubuntu 20.04.1 LTS.


How do you detect Credit card type based on number?

I'm trying to figure out how to detect the type of credit card based purely on its number. Does anyone know of a definitive, reliable way to find this?


Microphone peak detector circuit no signal response

I have built a peak detector circuit using op-amps/comparators to amplify the signal from an electret microphone, hold the peak signal and create a sharp logic edge when a peak is detected to be sent to a microcontroller.  I have built the circuit as follows setting up OA1 as a non inverting amplifier with a gain of 1000, but the voltage out from the OA1 remains fixed at about 4.5V no matter how much noise I make into the microphone. The comparator part of the circuit is outputting approximately 2V low and 5V high depending on how I set the potentiometer. All the components appear to be working.         – Schematic created using


List declaration for sObject on target config property Lwc

So I have this component where I want to create a @api accesible variable containing Cases instead of Strings I was using, to be accessed from a visual Flow.   The whole thing was running smooth with another variable  <property name="selectedIds" type="String[]"/>  <property name="ticketsReturned" type="@salesforce/schema/Case[]"/>   The js is able to populate the values correctly but once i'm back in the flow and moving forward and pass this variable to a Apex method it's always null. So I assume the javascript is able to operate with the list but it cannot assign correctly the Case[] type to be accessed as such from the flow?   Is my syntax correct?


Which site should I use for questions about hardware?

I have a question about ARM processors and thermal monitoring. I tried asking on Server Fault but it got closed as off topic. It certainly isn't a Stack Overflow question.   Where should I ask this type of questions?


I tend to write "whitespace" to talk about any negative space in type (in particular, the characters that cause it in ASCII & Unicode).  However I have also seen it written "white-space" and "white space".  I presume it doesn't matter, but are there any conventions that can guide my usage?


Suppose $\alpha\colon G → H$ is a homomorphism of groups and $g \in G$ has finite order.  I want to show that $\alpha(g)$ has finite order and that the order of $\alpha(g)$ divides the order of g  What I have done is say that $ord(g)=n$ so $g^n=e(G)$ so:   $$α(g)α(g)^{-1}=e(H)=α(gg^{-1})=α(e(G))=α(g^n)=α(g)^n$$  but this gives me that the order of $\alpha(g)$ is n and the second part of the question is asking: If $\alpha$ is injective, show that the order of $\alpha(g)$ is equal to the order of $g$. So this cannot be true for $\alpha$ unless it is injective.


Buffer polygon inward by percentage of area

I would like to buffer a polygon inward by a percentage of its area, using the polygons below as an example.    How could I shrink each polygon inward resulting in a 35% reduction of area? I am using the term "reverse buffer" because I want the newly created polygons to have the same shape as the originals and be centered and within the originals, like the schematic below.    I am on ArcGIS 10.2 and have SA and ET Geotools.


How to recursively use macros from xstring?

I don't understand why the following mwe throws an errow TeX capacity exceeded. I'm guessing there's some expansion issue, but my TeX knowledge is not enough to resolve it.  \documentclass{article}  %\usepackage{siunitx} \usepackage{xstring}  \begin{document} \IfStrEqCase*{\StrBehind*{01}{0}}{{1}{one}{2}{two}}  \end{document}   While creating the mwe I noticed that the presence of \usepackage{siunitx} changes the error, to many instances of ! Use of \reserved@a doesn't match its definition. instead. I'm using the starred version of the macros from xstring because I need to in my actual usage.


I am participating in a Kaggle competition and I would like to know what is the best way to handle missing attribute values in test data set. For example, if the train data set contains the attributes (x, y, z, prediction) and the test data set contains (x, y), how do I predict "prediction"? Should I just take (x, y) parameters as features or try and predict the third(z) attribute. If the latter holds, how should I go about doing that? EDIT: Adding the link to the competition


The problem with automatically bumping edited posts

I've been reminded several times that a question on a SE site should be able to help future visitors. Indeed, it's very common for a question to be closed for being too specific.  At the same time, we all know that duplicate questions are of the devil, and should be closed immediately.  Both of these lend themselves to the notion that an answerer should maintain their answers: They should be applicable to as many people as possible, and prevent the need for the question being asked again.  This works great for me, as I'm the type of person who returns to his old questions to tweak and improve them as I learn more. I enjoy having that control, and crafting my answers -- and it's not uncommon for me to tweak minor things like layout and wording.  Unfortunately, I've recently discovered that my passive tweaking bumps the entire question to the top of the active questions list. I've been told that this is done to help the community flag spam. This doesn't bother me at all, but I've found myself being scolded by certain community members for "deliberately bumping posts" (which is simply not true).  If some people don't like people editing their posts, and it irks them, is there a better system that would encourage the maintenance of answers, that wouldn't annoy these people?  Proposal: There be a "minor edit" button like Wikipedia has? These minor edits would check for formatting changes by the original author only, so they wouldn't get bumped to the top of the Active Posts list.


Can I add a baby as a co-author of a scientific paper, to protest against co-authors who haven't made any contribution?

Can I put the name of my baby as one of the co-authors of a scientific paper?  I know it sounds disturbing, but it's a way of mine to protest against co-authors that haven't made any contribution (they haven't even read it or are part of the research area) to a paper, but they are part of the research group.  What are the legal / ethic concerns?  So technically I was writing the paper with my baby in my hand and the baby was talking with me in its own language. The baby even wrote a few characters in the paper when it managed to get near the keyboard while I was holding it.


Matching a string that does not contain certain word... without lookaround

I would like to use (pure) regex to match strings that do not contain the word word. However, I would not like to use lookaround, balancing groups, or that kind of stuff. If it is impossible, then can we match strings that do not start with word instead?  Examples  word should not match. wor should match. wore should match.


How to prove a cube minus a cube is never a cube (in whole numbers)

How to prove $x^3-y^3\neq z^3$ where $x$, $y$, and $z$ are whole numbers (integers greater than zero)?


convert 32-bit variable in Big endian order to Little Endian

My server receives 6 bytes of data: 2 bytes of head and 1 variable consist of last 4 bytes in Big Endian order (in example below variable is 100000 decimal)    00000001 head   00000001   10100000 start  4 bytes of variable (100000 decimal)   10000110   00000001   00000000   I want to read this variable using this code below (buf contains data  above)   unsigned char buf[MAX_s];   int32_t var = (buf[2] << 24) | (buf[3] << 16) | (buf[4] << 8) | buf[5];  printf("  %u \n",var);   but expected result isn't 100000, but some other larger number. What i do wrong?


is there a simple way to morph object along a bezier curve? For example: a rope with one square end and one round end.  Example:   If it can’t be done, that is helpful too. I’ll stop trying to find a way.  Thank you.


Why was the MCU Super Soldier program considered a failure?

In Marvel Cinematic Universe, military tried to create super soldiers like Hulk, but they failed. So, the program was shut down.  Where did they fail? Didn't Blonsky get Wolverine-type super healing capability? Why couldn't it make the military stronger? Other than this, wasn't Abomination a success (despite the fact that it wasn't an original work of the military)? He was defeated by Hulk, but enemy forces don't have a Hulk. When it comes to anger, who cares as long as you are focused on the target? Abomination was indeed in full control and he was always after Hulk.


Recently I have encountered an issue with steam. If you turn off your computer too fast, steam will register a game you were running as uninstalled. In my case it is GTA V. I have looked far and wide but only found that I should start installing and then steam will recognise the previous files. The problem is, I don't have enough space to start the download to be able to register it. I have slow internet and don't want to wait 5-7 hours to reinstall the game.


How are *.dmg packages installed via the command line? I noticed that they can be mounted with:    me@MacBook-Pro:~$ open /Users/me/Downloads/installer.dmg   What's next?


Find all the ring morphisms from $ℤ_{15}$ to $ℤ_3$.  I know the axioms that have to be satisfied in order for a function to be a ring (homo)morphism but I don't know how to go about finding them. Any help would be great. Thank you in advance!


TL:DR Smart guides aren't accurate - even though the snap, (end up causing more problems in the long run) is there a way to fix it?  Maybe there are some settings that I'm missing (need to be changed)    I use my smart guides all the time (and am overall pleased with them). I do have my issues with it, as explained here:  A lot of times, when I'm trying to make a bunch of triangles like this:    Done by making a triangle, cloning, flipping, rotating etc. Repeat until full  (Perfect) Snapping using Smart Guides    Ends up looking likebetween the triangles (Outline Mode)    Now I personally (with a strong attention to detail) will notice that there is something off after making just 1 or 2 triangles (Even before outline mode... strokes look oh so slightly thicker/off)   And then I check in outline mode... and sure enough:    Notice the line spaces (and this is in outline mode, so if I didn't notice it before, now it's sitting right in front of my nose)  The way I (seemingly) "fixed" the first image was by adding in a thick stroke outline so that masks out the difference, however, in a lot of my cases I don't want to have a stroke at all (and then you really notice the problems).


Whilst going through 'a brief history of time' ,I faced difficulty in understanding the two slit experiment. How can individual electrons cause fringes?


I was shown the following calculation. There is clearly something wrong but I can not see the mistake. Could someone point out the wrong step or something?  $$ \int \frac{1}{x} dx = \int 1 \cdot \frac{1}{x} dx$$  Let's say $ u = \frac{1}{x}$ and $ dv = 1\ dx$. So $ du = -\frac{1}{x^2} \ dx$ and $ v = x$. Putting that into per partes formula: $$ \int \frac{1}{x} dx = \int 1 \cdot \frac{1}{x} dx= x \cdot \frac{1}{x} - \int x \cdot (-\frac{1}{x^2})dx = 1 + \int \frac{1}{x} dx$$ So we can substract $\int \frac{1}{x}dx$ from both sides which then gives us $$0 = 1$$


How do I switch from the default display manager (Lightdm) to the older display manager (GDM)?


How to store the output of calculation to variable using bash script

I want to do a simple coding by storing the product of calculation using command bc into variable.   answer="$varnameX % $num1" | bc echo "the result is $answer"   it did not show the product of calculation once i run the command   the answer is


Is readability ignored in mathematics? If so, why?

Most of the math equations use single character as variables name and functions name, there are also Greek alphabets as well.  This is not acceptable in programming since it is too difficult to maintain, good code should be easy to understand. However math people seems to be fine with strange notations and difficult-to-remember variable names.


How can we assert $\mathrm{ matter } / \mathrm{ antimatter } \gg 1$ further than $locally$?

I read many hypothesis to explain the asymmetry between the quantity of matter and antimatter in the universe, most notably through an asymmetry in initial baryogenesis. This assymetry would explain that now matter is in much higher quantity than matter. Asymmetry that I tried to express as { matter } / { antimatter } $\gg$ 1 or $ {N_B} / {N_\bar{B}} \gg 1$.  What permit to assert, to measure this asymmetry if the spectrum of antimatter stellar objects would be indistinguishable from the spectrum of matter ones?  Is the spectrum of matter and antimatter different?  What permit to assert a galaxy is made of matter and not of antimatter?  If there is no evidence, why so many physicists (Sakharov…) work on an explanation of "scarcity" of antimatter?  My personnal fast analysis point of vue is that we didn't take enough into account the fact that as an observer we aren't in a free position to make a correct measure of matter / antimatter received. We are here in the center of a solar system, a galaxy made essentially of matter. This local huge amount of matter is a natural absorbing filter which will stop most of the antimatter cosmic rays reaching us (the observer).  I would say we are like an observer who would look at the sun through a yellow filter and would conclude that the sun has a spectrum with a black ray on yellow.


I was wondering what web browsers exist for Ubuntu; I don't want to use wine. I just want the ones written for Ubuntu.  I've never liked the Ubuntu Software Center because it never has all of the programs that I might want to install and therefore it's not perfect.   I just want a list of all the browsers for Ubuntu and their advantages.  Example:     Firefox: open source, and is pre-installed.    Please give me only one browser per answer or this will be confusing.


Can I resubmit a paper published in a low-ranked journal?

I submitted my manuscript to a journal (Q4), according to SCIMAGO ranking and unfortunately it got published. I say "Unfortunately" because I think it should be submitted to a better journal. Now, is there any way to withdraw this publication? According to my googling, papers published in Q4 journals do not have any weight in CVs for academic positions such as postdocs.


How to automatically generate N "distinct" colors?

I wrote the two methods below to automatically select N distinct colors. It works by defining a piecewise linear function on the RGB cube. The benefit of this is you can also get a progressive scale if that's what you want, but when N gets large the colors can start to look similar. I can also imagine evenly subdividing the RGB cube into a lattice and then drawing points. Does anyone know any other methods? I'm ruling out defining a list and then just cycling through it. I should also say I don't generally care if they clash or don't look nice, they just have to be visually distinct.  public static List<Color> pick(int num) {     List<Color> colors = new ArrayList<Color>();     if (num < 2)         return colors;     float dx = 1.0f / (float) (num - 1);     for (int i = 0; i < num; i++) {         colors.add(get(i * dx));     }     return colors; }  public static Color get(float x) {     float r = 0.0f;     float g = 0.0f;     float b = 1.0f;     if (x >= 0.0f && x < 0.2f) {         x = x / 0.2f;         r = 0.0f;         g = x;         b = 1.0f;     } else if (x >= 0.2f && x < 0.4f) {         x = (x - 0.2f) / 0.2f;         r = 0.0f;         g = 1.0f;         b = 1.0f - x;     } else if (x >= 0.4f && x < 0.6f) {         x = (x - 0.4f) / 0.2f;         r = x;         g = 1.0f;         b = 0.0f;     } else if (x >= 0.6f && x < 0.8f) {         x = (x - 0.6f) / 0.2f;         r = 1.0f;         g = 1.0f - x;         b = 0.0f;     } else if (x >= 0.8f && x <= 1.0f) {         x = (x - 0.8f) / 0.2f;         r = 1.0f;         g = 0.0f;         b = x;     }     return new Color(r, g, b); }


How do I pacify the Moth Priest in Dawnguard?

I accidentally attacked the moth priest in Dawnguard. How do I settle him down? I've got it on PS3.


Why to move constants to class or enum from Interface?

I am working in a very huge enterprise application with many modules in side it. I configured the SONAR recently and ran analysis on the project. The following error reported by SONAR is the very common one that I am seeing in every module, wherever I had an interface as follows.  public interface Constants {      String CONST1 = "CONST1";      String CONST1 = "CONST2"; }   And the SONAR says:     Move constants to a class or enum.   What is wrong with it, If I need to fix this, I have plenty of files like this.


Showing that the characteristic of a commutative ring R without zero divisors is 0 or prime

Question: Suppose that $R$ is a commutative ring without zero-divisors.   Show that the characteristic of $R$ is either $0$ or prime.   I have established that every element in a commutative ring $R$ without zero divisors have the same additive order $n$.   Now, if no such additive order n exists, then the characteristic of $R$ is $0$.  Obviously, if a finite additive order exists, Char of $R$ is finite.  How do I show that Char of $R$ is prime? It probably involves lagrange's theorem and the order of the element in $R$.  Hint is appreciated.  Thanks in advance.


Why don't bank accounts have an asymmetric deposit number?

Why doesn't every bank account come with a "deposit only" number?  I.e. why do I have to give my account number (and thereby give the ability to withdraw money from my account) to someone whenever I want him or her to send me money?  It seems like a deposit only number would add a lot of security and confidence, so there's probably a good reason it hasn't been adopted.


Is it possible to perform a Delete from a Data Extension using Query or something?  Like we have Insert/Update option in a query, I would like to delete.   I know this can done using API but is that the only way to perform automatic deletions from a data extension?


Why don't I get credit for closing one of my own questions as a duplicate

I just agreed with a duplicate suggestion for one of my .  It's now showing that it was closed as a duplicate by the person who raised the duplicate suggestion and Community.  Since it was my yes this solves my problem click that triggered the closing/status change shouldn't I get credit instead?


Can you run 4.15 kernel on Ubuntu 16.04? The broader question is what is the relationship between kernel versioning and OS versioning? When do you need to upgrade your OS to run a new kernel? I am pretty sure I'm running kernel 4.15 on Ubuntu 16.04 but that doesn't make sense to me since Ubuntu 18.04 uses Kernel 4.15 also.


How do I calculate/prove limits for exponential functions: $\lim\limits_{n \rightarrow \infty}{\frac {2^{n+1}+3^{n+1}}{2^n + 3^n}} = 3$

How do I formally prove that $\lim\limits_{n \rightarrow \infty}{\frac {2^{n+1}+3^{n+1}}{2^n + 3^n}} = 3$. I calculated a few results so I am quite sure that the limit is $3$, but I'm struggling on how to do calculate/proof that correctly.


If I use  \global\advance\itemno by 1% \ifnum\itemno=4\the\itemno\fi   I get 5.  If I use  \global\advance\itemno by 1% \itemno=\itemno% \ifnum\itemno=4\the\itemno\fi   I get 4 as expected.  Why is this necessary?


In every book I can find, the Markov property for ito diffusions, $E[f(X_{t+h})\mid F_s] = E^{X_t}f(X_h)$ is stated for $\textbf{bounded}$ Borel functions.   However, I have the following statement from a set of notes: $$g(t,S_t) = E[(S_T-K)^{+}\mid F_t]$$  Where $g$ is some Borel function.  How can this be justified? Our $f$ here is $(x-K)^+$ which is not bounded.  Thank you


Find the coefficient of $z$ in the Laurent series expansion of $\frac{e^z}{z-1}$ in ${|z| > 1}$

I've found this duplicate from '15: , but I think it's wrong, since it looks for the Laurent expansion in ${|z-1|>1}$.   After developing it by myself, I've reached the following:  $$f(z)=\frac{e^z}{z-1}=\frac{1}{z-1}\cdot e^z$$  Then, $e^z=\sum_{n\geq 0} \frac{z^n}{n!}$ and $$\frac{1}{z-1}=\sum_{n \geq 0} \frac{1}{z^{n+1}}$$.  Here I thought of using the Cauchy Product, but I end up with  $$f(z)=\sum_{n \geq 0} \sum_{k=0}^n \frac{z^{2k-n-1}}{k!}$$ (How can I make this font bigger? The exponent is too small. Sorry about that. The exponent would be $2k-n-1$).  So I have to sum whenever $2k-n-1 = 1$  If I'm not getting it wrong, this means that I have to calculate $$\sum_{n \geq 0} \frac{1}{(1+2n)!}$$ (I'm not sure how to show it better, but I've put the first 3 terms and were $\frac{1}{1!}, \frac{1}{3!}$ and $\frac{1}{5!}$. I'm not sure how to calculate that. The nearest thing I thought was that $$\sum_{n \geq 0} \frac{1}{n!}=e $$. Maybe what I found before could be considered as an answer, but I think I can go one step further.  Thanks


But I still can't find the gpedit.msc. I have the dlls, I can run the program, but I can't locate the msc and it's driving me nuts. All my google searches lead me back to questions about how to activate gpedit.  Just to reiterate: I have it. I can't find it. Syswow64 contains gpedit.dll, it contains various mscs, it doesn't seem to contain gpedit.msc. I can run gpedit from command line but I can't locate this file.   (I am trying to gain full control over my telemetry and update settings on a Home version, that's the motivation for bothering with gpedit at all)


How to execute sudo commands with Expect & send commands in bash script?

Can anybody let me know how to execute sudo commands with expect? I tried the following but this is not working. Can anyone give me suggestion please?  set login "sasuke" set addr "hostname" set pw "mypasswd" spawn ssh $login@$addr expect "$login@$addr\'s password:" send "$pw\r" expect "#" send "output=$(sudo virsh list --all | awk "/running/{print \$2}" | tail -2); sudo virsh dominfo $output" expect "password:" send "$pw\r" expect "#"   When I tried the below script, it executed without errors, but I didn't get the output. Here is the script and the output when it executes. Where am I making a mistake here?  set login "sasuke" set addr "hostname" set pw "mypasswd" spawn ssh $login@$addr expect "$login@$addr's password:" send "$pw\r" expect "#" send {output=$(sudo virsh list --all | awk '/running/{print $2}' | tail -2)} expect {     password: {send "$pw\r"; exp_continue}     "#" } send {sudo virsh dominfo "$output"}    ;# don't know if you need quotes there expect {     password: {send "$pw\r"; exp_continue}     "#" }   Execution  sasuke@njob:~$ ./hypr.sh  spawn ssh sasuke@hostname  sasuke@hostname's password:  sasuke@hostname:~$ output=$(sudo virsh list --all | awk '/running/{print $2}' | tail -10)sudo virsh dominfo '$output' sasuke@njob:~$


Is there a way to change what time the update manager checks for updates?

I see where to set the frequency ie weekly, daily, etc, but not how to set what time of day it checks.


When plotting PCA analysis with loadings on top, loading arrows come out way too short

I am trying to make a reasonable looking PCA analysis, where not only data are projected in two axis, but also the loadings of the data are projected on top of the data.   Similar to the following figure by @amoeba, taken from :   I am doing this in R and to visualize I use the ggplot command. But as soon as I plot the loading on top they look much smaller in the plot. I assume, I should scale the PCA's loading to make the arrows bigger, but I don't know how to do that.  res.pca <- prcomp(wine, scale = TRUE)  # read Wine data and do PCA  loadings <- res.pca$rotation   # PCA returns loadings (eigenvectors) sdev <- res.pca$sdev           # standard deviation   # make a data frame of PCs my.df = data.frame(pc1 = res.pca$x[,1], # pc1                    pc2 = res.pca$x[,2]) # pc2  # make a dataframe for the loadings arrows  arrow.df = data.frame(x1 = rep(0, length(loadings[,1])),                       y1 = rep(0, length(loadings[,1])),                       x2 = loadings[,1],                       y2 = loadings[,2])  ggplot(my.df, aes(x = pc1, y = pc2)) + geom_point() + geom_segment(aes(x = x1, y = y1, xend = x2, yend = y2),data = arrow.df)   Here is the result:


Why does $(x \to a) ≠ (x = a)$ , But $f(x \to a) = f(x = a)$

I am really satisfied that $(x \to a) ≠(x=a)$ and if that is not right , Then all the process of $Limits$ is dividing by zero and that is a crime.  Since $(x \to a) + h = (x=a)$ , $h ≠ 0$,So Why does $f(x \to a) = f(x = a)$ ?  NOTE:I am talking about continuous function.


The camera's view is grey/grayed and I can't see anything out of the camera's sight?

So everything out of the camera's sight is invisible and it's there's this grey/gray (I don't know how it's spelled) thing highlighting what can be seen. What's going on and how do I fix this? I need to use assets that are out of my view. :(


One word for a person who repeats the same issue over and over again

How to name a person in one word who likes to repeat the things s/he has done or said or whatever, over and over again in every occasion. E.g. Ms Somebody always repeats the same incident which occurred 15 years ago, in every party/ meeting, which becomes kind of irritating after a couple of times, but s/he still enjoys repeating it. Like S/he visited the Bahamas in 2001, and in every occasion we meet (s/he is a relative of mine) at least once a year, he keeps repeating (in details) the visit to the Bahamas, which is quite annoying after two decades. S/He is .......


Drow spell are learned, can use slots to cast more than one time or use higher slots to increast power?


Run Javascript or Jquery for html loaded via Ajax that has not been printed in source code

I have a link on my page, that if clicked, will generate a popup via Ajax. (The popup code is not under my control)  Now i want to Add functionality, via my code jQuery, on a link of this popup.  This popup is not printed in source code after page is loaded. Obviously the jQuery can't find this link.  How can i do, to add a click() trigger functionality on this link in this ajax popup?


How can I download a file from a host I can only SSH to through another host?

I want to download files from my office computer to my laptop.  I can connect my office machine by SSH to the organization server and then SSH from the server to my office machine.  The only commands the organization server accepts are ssh, ssh1, and ssh2.  How can I download a file from my office (remote) machine through the server into my laptop (local) machine?


Should a user be forced to add a comment when they vote to close?

I recently had a  which attracted 1 close vote. I don't know why this vote was cast. If I have not conformed to the site's protocol in any way I am left 'none the wiser'.    Should it be made mandatory for a user to comment on why they are voting to close a question?  If this site is to remain 'clean', part of this will be achieved incorporating processes that educate users.


How can I do GPU passthrough with VirtualBox?

I've installed Ubuntu 17.04 with a VirtualBox VM that contains a fresh Windows 10 install. I want to try to use this VM for gaming.  My CPU is an Intel Core i7 7700HQ that seems to support every virtualization-related option Intel has to offer, as shown in .  How can I give total access to my NVidia GTX 1050 GPU to this virtual machine ?


Is it possible to execute instructions not in .text section

I've been wondering if it's possible to execute some machine code instructions which are not in .text section. For example, look at this sample of code in NASM:     global _start     section .text _start:     sub rsp, 8     mov rbx, 0     mov rcx, jump     mov rax, 0xe1ffc3ff48 ; inc rbx and jmp rcx     mov qword[rsp], rax     jmp rsp jump:     ; rbx should be 1 because of 'inc rbx'  I tried to do it but i get segmentation fault. I debugged it with gdb and after moving the assembly instructions into stack gdb intepreter reads them properly: (gdb) x/2i $rsp => 0x7fffffffddc8:      inc    %rbx    0x7fffffffddcb:      jmpq   *%rcx  Despite this fact program stops due to sigsegv (i also debugged rbx value, it didn't increment). Is it possible to do something like that and for some reason I just do it wrong or maybe it isn't?


I noticed a flaw that applies only to new users or users with few to no upvotes, and low reputation. By exploiting the fact that reputation doesn't go below 1, one could theoretically get undeserved reputation. There are many variations that could be applied, but one of them is this: A user asks a bunch of questions, many could be duplicate questions or poor quality questions, any question that is answered before being closed would work. No matter how many down votes the user receives, the following would reverse reputation loss. It happens because their reputation doesn't go below 1. What could happen is, whenever an answer is added, they either accept the answer or just wait to accept the answer. They do this to appear like normal users, they could post answers to a few questions to seem like a normal account. What happens is, when they get down voted, they unaccept any accepted answers, their reputation falls to one. They then re-accept the answers, and no reputation would be lost except if the user had ever received any upvotes. Basically by asking a bunch of bad questions, they can receive a ton of rep by accepting the answers all at once. This is easily stopped, which is why it would work better with alternate accounts. Using two alternate accounts (A,B, and C is the main account) they accrue the fifteen rep on A and B by the unaccept and accept method (notice a and b do not answer each other's questions, although on occasion they probably could). Then A and B upvote a few of the other accounts questions, along with many others by other users in a way to not get flagged for serial upvoting. When A resets rep (unaccept reaccept) B removes their upvotes. A then does the unaccept/re accept, and B re-upvotes, and vice versa. At the end, A and B get seventy five rep, and create the largest bounty they can, and give a all of their reputation. They then unaccept reaccept their previous questions, and they have successfully duplicated the reputation. They could theoretically do this with one account, if they could get 37 questions asked. I would like to think we would notice if a single user asked 37 bad questions, but if it were done by 2 or 3 other accounts it would be difficult to trace. One way to fix this would be to automatically flag if any user unaccepts and reaccepts either the same or another answer on any questions more than x amount of times, if it is not already. I don't know what number x would represent, but I feel that it should be a low number (5 maybe). To be clear, I would never try to do anything like this. I sincerely hope that most users would never succumb to the level of using this, or any method of exploiting in the reputation system to earn a little bit of extra reputation. I feel reputation should be earned by asking and answering .


Javascript: same math logic gives two different results

A simple factorisation isn't computed the same way. Can't figure it out why.   const part = 9.0 const total = 10.0  document.getElementById('first')   .textContent = 1.0 - part / total  document.getElementById('second')   .textContent = (total - part) / total


"Find all the possible solutions $(x,y,z) \in$  $\Bbb R$ that satisfies the following equation system".  My teacher gave me this problem and i got some clues in how to solve it. I evaluated $1$ and $-1$ and i got these solutions $(1,-1,1)$ and $(-1,-1,-1)$. I think these are the only ones but i can't prove it.  Am i wrong?, are there more solutions?.   Thanks  $$ \left\{  \begin{array}{c} x+y-z=-1 \\  x^2-y^2+z^2=1\\  -x^3+y^3+z^3=-1 \end{array} \right.  $$


Is there a drupal.org API for retrieving the list of available modules?

Is there a drupal.org API for retrieving the list of available modules, a description of them and available versions?


find joint and marginal density functions

I'm trying to figure out the solution to the following:  Given:   a) $Z_1$ and $Z_2$ are independent standard normal random variables  b) $Y_1=Z_1$ and $Y_2 = Z_2\sqrt{1-\rho^2} + \rho Z_1$  Find: joint probability density function ($ f_{Y_1 Y_2}(y_1,y_2)$) and marginal probability density functions of $Y_1$ and $Y_2$  For the joint I found the following using the jacobian determinant: $$(1/(2\pi((1-p^2)^{1/2})))(e^{-((y-px)/((1-p^2)^{1/2}))^2}/2)) e^{-y^2/2}$$  I'm not sure if this is the right answer as it looks too complicated. Thus, it has been hard for me to find the probability density function of Y2, as integrating the joint density function is hard.  I would greatly appreciate any help  Ps. I will be working on putting the density function I got in mathjax language. Bu you could insert the one I put there into wolfram alpha and get a better visual.


Is there a minimum number of sample size when running an independent sample t-test?

I am doing a research and I need to determine the effect of adapting to climate change on farm productivity and income. My methodology is to compare the productivity and net farm income of farms that adapt to climate change with farms that do not adapt. What I did was from 37 respondents that adapts to CC and from 23 respondents that do not adapt, I randomly selected 5 respondents from each category with almost the same farm characteristics (farm size and tenure status). I want to test if the mean difference in productivity and income between farms that adapt and farms that do not is statistically significant. I am going to use a t-test. My question is, is it okay if my sample size is just 5 from each category(farms with adaptation and farms without)?


How to create this floating layers' effect in Photoshop?

So I need to create a floating layer effect (as the one shown on picture) over the display of a stock iPad image. Any suggestions, except simply applying an outer shadow effect and playing with the free transform tool?


Show that $f(x+y)=f(x)+f(y)$ implies $f$ continuous $\Leftrightarrow$ $f$ measurable

Let $f:\mathbb R \rightarrow \mathbb R$, and for every $x,y\in \mathbb R$ we have $f(x+y)=f(x)+f(y)$.  Show that $f$ measurable $\Leftrightarrow f$ continuous.


I was refused entry to Singapore. Does that mean I am banned or blacklisted?

I am of Syrian nationality.  I got a visa to Singapore through the Singapore consulate in Lebanon. I travelled there 28-6-2017. When I reached Singapore, the immigration officer asked me about my return ticket. I showed it to him, but unfortunately I didn't notice that the return date was more than 1 month.  Also he asked for a hotel booking, but I didn't have one. For those reasons, he refused my entry. I was returned back on the same airline.   Is the visa still valid? If I prepare the requested documents and travel again, will I be banned? They didn't stamp my passport. They took a thumb print.


Why use 'speedily' rather than 'quickly'?

In the last few years, I have become aware of a few people using the word 'speedily', for example 'to speedily find'.  My initial reaction has always been to wonder why they didn't use the word 'quickly' instead of what seems to be a contrived word of 'speedily'. Am I wrong to find this word jarring and contrived?


Chmod to allow read and write permissions for directory

I have created directories in root. I am looking for the chmod command to allow all users read and write permissions to a specific directory. I have done chmod 775 for a file but I need this for a directory. This includes permissions on all files and sub directories.


Suppose that $P$ is a monic polynomial of degree $n$ in one variable with real coefficients and $K$ a real number.Then which is /are true?      If $n$ is even and $K>0$ , then there exists $x_0 \in \mathbb{R}$ such that $P(x_0)=Ke^{x_0}$. If $n$ is odd and $K<0$ , then there exists $x_0 \in \mathbb{R}$ such that $P(x_0)=Ke^{x_0}$. For any natural number $n$, and $0<K<1$ then there exists $x_0 \in \mathbb{R}$ such that $P(x_0)=Ke^{x_0}$. If $n$ is odd and $K \in \mathbb{R}$ , then there exists $x_0 \in \mathbb{R}$ such that $P(x_0)=Ke^{x_0}$.     I feel that Rolles Theorem will be helpful but cant apply i. Can i get some help please.


Google crawling pages with "/mydomain.com" after the page url

Google is crawling and indexing my site without any issues. Each post I create I'm fetching in webmaster tools.  I have looked in the crawl errors and for every post I submit for indexing Google is also attempting to crawl the URL with /example.com at the end so:  http://example.com/new-posy/example.com   This is throwing an obvious 404.  My site is built on Wordpress and I'm using the Yoast SEO plugin.


I have a Trane XV90 and XL 14i. The wiring looks a little strange as in the picture bellow.                    _____________                   |           |   BK W2  W1   R  G  Y  B/C  YLO O     |___||   |__|  ||   |          |   |     ||   |_____>|----------|         |   |     ||_________>|other wire|         |   |     |           ------------         V   V     V     ---------------     |thermostat   |     ---------------  The R and G are jumpered together and the G wire is connected on the board  but is actually not connecting to the thermostat on the other end. So people told me that means the furnace fan is always on! (In my diagram above, I switched the location of Y and B/C to make diagram easier to draw. You can refer to the photo added below to see the details) My questions are the following  is the jumper between O and Y doing anything? I don't think I have heat pump I need to install Honeywell wifi thermostat and I am thinking of doing either one of the following:   remove jumper between R and G, and use G to connect B/C and then to thermostat C and put jumper between G and Y  leave jumper between R and G, and use G to connect B/C and then to thermostat C and put jumper between G and Y  remove jumper between R and G, connect G on control board to thermostat G, and finally have the spare wire to connect B/C and then thermostat C  leave jumper between R and G, does not connect G to thermostat,  and just use a spare wire to connect B/C on board to thermostat C   Can anyone comment on those plans? Thanks a lot!


It's tedious to type my password every time I start my Windows 10 VM, especially since you can't paste a password into the box. I want to set up automatic login.  Following the instructions  I tried to disable the "Users must enter a user name and password" option in netplwiz. But the option isn't there! It should be above the "users for this computer" list. Is there a setting I need to change to allow me to change the setting?


I'm trying to install Ubuntu 18.04 on my Seagate 1 TB (external hard drive). I created one partition for my files leaving about 100 GB unallocated for Ubuntu's installation. I followed steps in this tutorial (in the link below) used to install Ubuntu    except that I set the boot loader to my external hard drive. Everything went so well but whenever I restart my computer and choose to boot from external HDD, I get unknown file system error  Update  Solutions suggested in the AskUbuntu community are all about fixing grub and it seems not working for me since it based on locating root partition, In my case I tried every partition listed all of them gave "error: unknown filesystem "    Here is the method i used  ls ls (hd0,msdos6)/ set root=(hd0,msdos6) ls / set prefix=(hd0,msdos6)/boot/grub insmod /boot/grub/linux.mod normal   I spend too much time trying to install different distributions of Linux such as Centos but I got the same error. I think rather than fixing grub I need to know what causes this issue in the first place. Is there something wrong with installation, or something else?  How do I find out?  Update 2  I tried Boot-Repair ISO to fix boot issue and report says the following:  The boot files of [Ubuntu 18.04.3 LTS] are far from the start of the disk.  Your BIOS may not detect them. You may want to retry after creating a /boot  partition (EXT4, >200MB, start of the disk). This can be performed via tools  such as gParted. Then select this partition via the [Separate /boot  partition:] option of [Boot Repair]   is that means i need to create /boot just before root partition or at the start of the entire hard disk   The last update   At last, Finally it works  Problem was in bios (can't detect boot files), boot-repair ISO report suggested adding /root partion at the start of hard disk     the most important remark as the help article says boot partition must be located inside the first 100 Gb of the disk     - Reduce one of the first partitions of the disk in order to create 1GB    (=1000MiB) of free space at the start of the disk where Ubuntu is    installed. This free space must be located inside the first 100GB of the    disk (its end must not be located at more than 100GB from the start of the    disk).   Thanks for all of you guys. I really appreciated your help, I hope AskUbuntu won't delete this question because as far i know it can't be a duplicate of this


Show that $\prod (1- P(A_n))=0$ iff $\sum P(A_n) = \infty$

Let $A_n$ be independent events with $P(A_n) \neq 1$. Show that $\prod_{n=1}^{\infty} (1- P(A_n))=0$ iff $\sum P(A_n) = \infty$  It kind of looks obvious but I really have no idea how to prove it. Can someone give me help?


Counting number of entries to a function in python

I am new to python. It might seem little obvious but would like to know if there is any easier way in python to do this.  I am trying to count number entries to a function. Requirement is as below:   Every 5 sec a timer event is triggered through which callback (ev_5ms()) is inturn triggered Wait until 20 secods and then clear the counter and start again   I am using the following code  counter = 0  "Callback" def ev_5s(): if counter < 4:     counter += 1 else     counter = 0     print('Send Message')  t = EventGenerator.TimerEventGenerator(1, ev_1s()) t.start()   Error Traceback:  Traceback (most recent call last): File "C:/Users/i8479/Desktop/Python/HPP_SM.py", line 28, in <module> t = EventGenerator.TimerEventGenerator(1, ev_1s()) File "C:/Users/i8479/Desktop/Python/HPP_SM.py", line 21, in ev_1s if counter < 4: UnboundLocalError: local variable 'counter' referenced before assignment   I am coding as I would do in c or cpp. How can I do this in python?


(Can't boot with UEFI)Can not boot window after installing linux

I recently follow others instructions to install Linux alongside window 10. While I was making the partitions for an  installation, it asked me to make a partition for EFI boots as well(a warning said EFI is missing), so I make one for it. The installation went well and I tried to go back to window after everything finished.   Now it comes with the problem that i can't go back to window although I selected UEFI boot mode and window to boot in BIOS and bring me back to Linux. The boot page only shows a list of EFI options which are Ubuntu and Window Boot Manager, but I am wondering that window should boot with UFEI mode but not the EFI and that's confusing me.  My window should be installed in C drive, and I installed Ubuntu in D drive. Does it effect or damage Window when this happened?  I am a newbie about this, please any suggestion will help. Thank you!


\begin{cases} x+y+\dfrac{x^2}{y^2}=7\\ \dfrac{(x-y)x^2}{y^2}=12 \end{cases} I don't have any idea to solve this. I tried to subtract, add and multiply the given equations, but nothing help me to find $x$ or $y$. Can someone help me to solve this system? Thanks for attention.


For-loop with and without an empty body takes same amount of time

I've noticed that both of the following loops take the same amount of time: ~ 1.2 seconds. double count = Math.pow(10, 9); for (int i = 0; i < count; i++) {     int y = 10;     int x = 3*y;     x = 100*y;     int[] arr = new int[3];     arr[0] = 1; }  double count = Math.pow(10, 9); for (int i = 0; i < count; i++) {     //nothing }  Why would they finish in the same time? These for-loops only increment and do 1 comparison, so 2 actions per iteration. I would think the first one would take about 3 times longer to finish, since it does 7 actions whereas the second one does 2.


Short story about an asteroid colony where the plumber is an unclean/outcast

It's a short story that I read in a book at some point in the 1990's. It was the French translation, so it might have been older. I believe it was a short story by Isaac Asimov, set in the early days of the Galactic Empire from Foundation, but I may be wrong.  The story had someone sent to visit an asteroid colony, might have been a mining colony, for some reason. The visitor is a sort of official and soon realizes that there's something wrong when he interacts with the local officials, and he's told the guy in charge of maintaining the plumbing is on strike.  Short explanation ensues and the visitor learns that no one in the colony would make direct contact with the plumber because he is unclean thus outcast, since he also deals with waste and the dead. Visitor offers to go negotiate on behalf of the colonists because he's not bound by their caste system, to which the colony official happily agree. The negotiations go well and the plumber resumes his work.  However, when the visitor tries to go back to the colony, he finds the way blocked and he is directed, through automated doors and voices coming out of speakers, back to his shuttle and asked to leave the colony because, since he was in contact with the plumber, he's become unclean too thus the colony officials cannot get in contact with him anymore.


Proof - Intersection S exists question from Jech's Set Theory

I have recently started studying Jech's Set Theory on my own and I am stuck on this question.  Prove that $ \cap S $ exists for all $ S \neq \phi $. Where is the assumption $ S \neq \phi $ used in the proof.  I am new to this thing. I was thinking of saying something like  let there be two sets $ A $ and $ B $ so there exists a set $T$ such that $x \in A \cup B \mid  P(x)$ where $P(x)$ is $ x \in A \cap B$ by the axiom schema of comprehension. but this doesnt sound right


I am doing project into school in java , in intellij. It's simple java application with binary trees, i created simple gui and panel where binary tree is drawn, when you click on item in binary tree it should show jtextfield, on position you clicked, where you can write number and after hitting enter, it saves number into binary tree, , when you complete tree and hit the button count it should do some math and show result, everything is working fine but i am getting error , when i write something into jtextfield and than click maximize/minimalize window (jframe) before hitting enter so jtextfield has still focus when hitting maximize/minimalize window:  Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException: peer at sun.awt.windows.WInputMethod.openCandidateWindow(Native Method) at sun.awt.windows.WInputMethod.access$400(WInputMethod.java:45) at sun.awt.windows.WInputMethod$1.run(WInputMethod.java:602) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758) at java.awt.EventQueue.access$500(EventQueue.java:97) at java.awt.EventQueue$3.run(EventQueue.java:709) at java.awt.EventQueue$3.run(EventQueue.java:703) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:84) at java.awt.EventQueue$4.run(EventQueue.java:733) at java.awt.EventQueue$4.run(EventQueue.java:731) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74) at java.awt.EventQueue.dispatchEvent(EventQueue.java:730) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93) at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)   focus lost event for jtextfield is done correctly so i have no clue:   @Override public void focusLost(FocusEvent e) {  main_window.getSietPanel().getjTextField().setVisible(false);  main_window.getSietPanel().getjTextField().setEditable(false);}  main_window.getSietPanel().setClicked_element(null); }   i found out it could be jdk's bug so i tried different versions but didn't help. My code has around 2000 lines and i have no clue where am i getting it from,


I'm using Nexus 5X. For some reason, all posts I'm trying to view are not shown well. I see blank page and I have to scroll a long way down to see the post. In addition, the comments and answers are not shown at all.   App Version: 1.0.89 Device Manufacturer: LGE Device Model: Nexus 5X   OS Version: 7.1.1 (3687331)


Recover files from NTFS drive with bad sectors

A few nights ago I have created a backup of my data on an external 500 GB NTFS USB hard drive.  I have then formatted my computer, reinstalled Ubuntu and started transferring back the data from the external HDD.  Unfortunately some files have became corrupted and Ubuntu is unable to copy them over. The same issue happens if I login using Windows 7.  Disk Utility detects with SMART that there are "a few bad sectors".  Some of files are perfectly intact, but other files cannot be accessed (nor read, copied...) although they are displayed within nautilus and show the correct file size.  Is there anything I can do to recover this data? I have thought of using TestDisk but this utility seems more useful for repairing lost partitions or deleted files.  I have also thought of using ddrescue so I could at least have a low level copy of the disk but I am not sure what use to make of it in order to recover the data!!!