How to uninstall virtualbox package: "is not installed, so not removed"

I'm trying to remove virtualbox from pc but I can't remove package.  dpkg can sees it:  dpkg -l 'virtualbox*' | grep ^i in  virtualbox-5.0           <none>       amd64        (no description available)   but when I try to remove:  sudo apt-get remove virtualbox-5.0 Reading package lists... Done Building dependency tree        Reading state information... Done Package 'virtualbox-5.0' is not installed, so not removed 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.  sudo apt autoremove --purge virtualbox-5.0 Reading package lists... Done Building dependency tree        Reading state information... Done Package 'virtualbox-5.0' is not installed, so not removed 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.   How can I remove this package?


How I can work with data set contains both numerical and non-numerical features?

I have a dataset contains both numerical and non-numerical columns.  I want to use PCA, is there any way to handle both?


Why won't my taskbar display on my secondary monitor?

On my secondary monitor (currently using Windows 10), my taskbar will barely show up. I've tried adjusting the resolution to lower ones (it recommends 1920x1080) and it doesn't do much. Is there a way to adjust the taskbar so I can see it?  That is about what I see. I could make it bigger via Snipping Tool and see my entire desktop on the picture but not normally.


Need advice on size of Root Partition for latest Ubuntu or Ubuntu clone distro?

I have two Hard Drives a Samsung 750Gigs and a Western Digital Green 2 TB. My current partition scheme consists of only 3 NTFS partitions:  750:    C: 75 Gigs  Windows 7 Home Premium    D: 675 Gigs for Games and other stuff  2000:    E: 2 TB for remaining storage  and 4Gigs of RAM  I plan to dual boot Linux Ubuntu or a similar flavor of it (I assume they mostly have the space requirements)  My Question is mainly about the size of the Root partition and maybe also the SWAP partition. I plan to install a  root  swap and home partition on the 2 TB hard drive and leave the other HDD for windows 7 and windows games. But, I am slowly transitioning to Linux, hopefully completely and want to know how large should be the root partition if I plan to install a lot of software and Linux games from the repositories and maybe sourceforge and other sources so I would not need to resize the root in the foreseeable future ?   thank you in advance.


I am creating a simple jquery ajax crud application. below are my codes:  welcome.php  public function add_contestant() {     $this->validate();      $path = 'img/';     $config['upload_path'] = '/img/';     $config['allowed_types'] = 'gif|jpg|png';     $this->load->library('upload', $config);     $this->upload->do_upload("file");      $data = array(                 "Firstname" => $this->input->post('first_name'),                 "Lastname" => $this->input->post('last_name'),                 "DateOfBirth" => $this->input->post('dob'),                 "IsActive" => (int)$this->input->post('is_active'),                 "DistrictId" => $this->input->post('district'),                 "Gender" => $this->input->post('gender'),                 "PhotoUrl" => $path,                 "Address" => $this->input->post('address')             );      $this->contest->insert($data);      echo json_encode(array("status" => TRUE)); }   contestant_view.php  $('#save').click(function(event) {$('.help-block').empty();     event.preventDefault();      var first_name = $('#first_name').val();     var last_name = $('#last_name').val();     var dob = $('#dob').val();     var is_active = $("#is_active").is(":checked") ? 1 : 0;     var district = $('#district').val();     var gender = $("input[type='radio'][name='gender']:checked").val();     var photo = $('input[type=file]').val();     var address = $('#address').val();//alert(gender);      $.ajax({         type: 'POST',         url: '<?php echo base_url('index.php/welcome/add_contestant/'); ?>',         dataType: 'json',         data: {first_name: first_name, last_name: last_name, dob: dob, is_active: is_active, district: district, gender: gender, photo: photo, address: address},         success: function(data) {              if(data.status) { //if success close modal and reload ajax table                 list_table();             } else {                 for (var i = 0; i < data.inputerror.length; i++) {                     $('[name="'+data.inputerror[i]+'"]').parent().parent().addClass('has-error'); //select parent twice to select div form-group class and add has-error class                     $('[name="'+data.inputerror[i]+'"]').next().text(data.error_string[i]); //select span help-block class set text error string                 }             }         },         error: function (jqXHR, textStatus, errorThrown) {             alert('Error getting data from ajax');         }     }); });  <input type="file" name="file" id="photo">   My problem is, the file does not upload in the directory. I don't understand what's going on. Any help would be appreciated. Thank you !


Can someone explain the ABC conjecture to me?

I am an undergrad and I know that the conjecture may have been proven recently. But in reading about it, I am entirely confused as to what it means and why it is important. I was hoping some of you kind people could help me.  I know there are several formulations of the conjecture.  Wolfram says:  for any infinitesimal $\epsilon > 0$, there exists a constant $C_\epsilon$ such that for any three relatively prime integers $a$, $b$, $c$ satisfying $a+b=c$ the inequality $$\max (|a|, |b|, |c|) \leq C_{\epsilon}\displaystyle\prod_{p|abc} p^{1+\epsilon}$$ holds, where $p|abc$ indicates that the product is over primes $p$ which divide the product $abc$.  Then Wikipedia says:  For a positive integer $n$, the radical of $n$, denoted $\text{rad}(n)$, is the product of the distinct prime factors of $n$. If $a$, $b$, and $c$ are coprime positive integers such that $a + b = c$, it turns out that "usually" $c < \text{rad}(abc)$. The abc conjecture deals with the exceptions. Specifically, it states that for every $\epsilon>0$ there exist only finitely many triples $(a,b,c)$ of positive coprime integers with $a + b = c$ such that $$c>\text{rad}(abc)^{1+\epsilon}$$  An equivalent formulation states that for any $\epsilon > 0$, there exists a constant $K$ such that, for all triples of coprime positive integers $(a, b, c)$ satisfying $a + b = c$, the inequality $$c<K\cdot\text{rad}(abc)^{1+\epsilon}$$  holds.  A third formulation of the conjecture involves the quality $q(a, b, c)$ of the triple $(a, b, c)$, defined by: $$q(a,b,c)=\frac{\log(c)}{\log(\text{rad}(abc)}$$  I am particularly interested in the first definition, but any help with any of it would be greatly appreciated.


Canberra to Doha via Sydney - can we board in Sydney?

This January my family and I are returning to the UK from a holiday in Australia. The ticket is booked from Canberra to LHR via Sydney and Doha with Qatar, flight 907 I believe.  Because we're finishing our holiday in Sydney (we start in Canberra), we were hoping to simply join the flight in Sydney, and avoid a 3 hour drive to Canberra, followed by an extra leg back to Sydney.  We contacted the travel agent (Expedia) to confirm if this was possible, and they said the Sydney stop is refuelling only, and we can't board there. Is that really the case? Would it be worth contacting the airline directly to confirm one way or the other?


What process occurs when I access another partition from "other locations" in nautilus?

I have some data in a 400 GB nfts partition that I seed from, but if I try to open qbittorrent before opening the partition in nautilus I get errors, so I have been manually opening it on each boot. What is this process and how can I do it from command line (and therefore make it happen automatically from startup?). Is this Quora thread () talking about my question? It seems to be, but I'm not entirely sure...


Prove or Disprove if $a_n$ has 3 partial limits and $b_n$ has 2 partial limits then could it be that $a_n+b_n$ has one limit?

I think it has to do with $\sin$ and $\cos$ because most of them have three limits but I couldn't find a good example that it is wrong although I think that it is indeed wrong.


How I can rotate unwrap, exactly, for example some menu or box to enter for example 90 degrees ?. This is possible?.  Sorry for my English I hope you can understand me.  I leave a picture hope it will help me understand.    Blender version : 2.72


I am trying to find a certain string within an array.  This is my code so far:  function getUserName(arrayName){ for (counter = 0 ; counter < arrayName.length ; counter++){     check = arrayName[counter].search("Jon");      if (check != -1){           result = arrayName[counter];     }                    break;   } }      The problem that I am running into is that if there is a name above Jon in the array (e.g Jon_111) the result would be Jon_111 and not Jon   What do I use to tell it to only find and return if it is exactly Jon.


Is there a closed form expression for $\displaystyle\sum_{k=0}^n \binom{2n}{2k}$?  A student I tutor was asking me about this and I didn't know. I know if this had a $k$ instead of $2k$, this sum would just be $(2n)^n$ but summing over evens complicates things. Is there even an asymptotic form for this?


Going to Italy from USA with a Peruvian Passport

I am Peruvian going from USA to Italy and I have to stop in London's airport, do I need a visa for a couple of hours?


I am not talking about adjusting screen brightness through power management (this is a laptop), I'm not talking about how the screen brightness setting may be different between 'plugged in' and 'battery powered', and unplugging the laptop will suddenly change the brightness. I'm talking about:  I have a Dell XPS 15 (L502X), and with intell hd graphics driver installed (from a vanilla win7 64 bit install), I start to see a brightness change. (This is also before the nvidia driver install).  I set my desktop to black, and open notepad, fullscreen. Now the entire screen is a bright white. I then alt-tab back to desktop, all black.  This is the interesting part:  I alt-tab back to notepad (all white, fullscreen), and the brightness of the white slowly, every so slightly, incrementally steps up (less than even one brightness adjust as you would do via the power settings). Then you swith back to the black desktop, and barely you can tell it steps back down (the backlight on the black grows a bit darker). It is a small change, but noticeable in a dark room. Again back to white, and a step up to a brighter white.  It. drives. me. crazy. :)  It is very annoying googling for info (everyone has something about power management). I can't find any setting in the intel hd graphics properties that affects this. Oddly enough, I have an older install of windows on this same machine which doesn't do it, I fixed it once about a year ago and I can't remember how I did it (I work on quite a few pc's, I THOUGHT I tweeked something in the intel hd graphics properties, but nothing seems to stick this time).   What is this feature called? How do I disable it?   EDIT  This does behave a lot like the automatic brightness adjustment that my smart phone exhibits. Ironically, that annoyed me as well (fixed with root and app)  I have tried to disable this feature, but here is a screenshot of my "Power" tab:    // The brightness feature is missing  I'm going to check what this tab looks like on my other disc (where I believe i once 'fixed' this)  EDIT 2  Turns out it was in the same view, but you have switch to change the power source to 'on battery' and disable "DIsplay Power Saving Technology"    Thank you.


I am Indian holding an Indian passport, travelling to Colombia for a business visit via Amsterdam and Paris. I am a resident of South Korea, having valid visas for Korea and Colombia. Do I need a transit visa for Amsterdam and Paris?  Amsterdam layover: 3 hours, and Paris 5 hours.


I've been looking for Star Trek fonts or symbols for LaTeX lately, but unfortunately I couldn't find any. Do any of you know if there is a Star Trek font or character set?


I have a couple of players who might be interested to try GMing, but have so far been reluctant to "take the plunge" and start up their own games. I think this is mostly because they're not sure that they can "do it," and I've given them a bit of basic advice, and tried to convince them that no, it's not that mysterious, and yes, I really am just making stuff up most of the time. What else can I do to encourage them or help them to start running their own games? Or should I just back off and let them get going when they feel the call strongly enough to overcome whatever's holding them back?  I don't mean "what advice do I give them?" I can handle that on my own. But should I be giving them much advice, or will that potentially just make them more concerned about "getting it right?" Should I try to help them find players, or would that be too meddlesome/put too much pressure on them?


Is there a simple command for the available height in a beamer slide?

I would like to add two figures figures to a beamer slide, one on top of the other.  Is there a simple command, similar to \linewidth or \textwidth for the height?  The figures have dimensions roughly twice as wide as they are tall.  I would like them to use the full vertical space without encroaching on the title/controls.  If their dimensions were reverse, I would put them side by side using width=0.5\linewidth. I am not sure the height analog.    Here is what I am using now.  As an alternative, I use the \paperhieght but then have to visually check that the chosen scale factor left enough room for the title and controls at the bottom.   \begin{frame}{4$\times$167 gH5 in 10 mM K$^{+}$: Comparison}   \begin{center}     \includegraphics[height=0.4\paperheight]{figures/array_models/i1_r_c000_4x167_h5_k010_33_fit}\\     \onslide<2>{       \includegraphics[height=0.4\paperheight]{figures/array_models/i1_r_best1000_c000_4x167_h5_k010_33_fit}     }   \end{center} \end{frame}   In addition to having to check the scale factor, this also has the disadvantage that it must be changed if I add/remove the frame title or switch to a different theme.  If there I instead used the available slide height, it may not need to be updated.


Prove that:$\int_{a}^{b} f(x) dx = b \cdot f(b) - a \cdot f(a) - \int_{f(a)}^{f(b)} f^{-1}(x) dx$

I just wanted to ask, if my proof is correct. I haven't seen the equation before, but I think it's quite useful.  Let $f$ be an bijective differentiable function. Then the inverse function $f^{-1}$ exists and the following equation holds:     $$\int\limits_{a}^{b} f(x) dx = b \cdot f(b) - a \cdot f(a) - \int\limits_{f(a)}^{f(b)} f^{-1}(x) dx$$   Proof.  $f$ is an bijective differentiable function and $F$ is an antiderivative of $f$.  First we need to find an antiderivative of $f^{-1}$.  $\int f^{-1}(x) dx$ with substitution $x = f(y)$ yields:  $$\int y \cdot f'(y) dy = y \cdot f(y) - \int f(y) dy = y \cdot f(y) - F(y)$$  resubstitution yields:  $$\int f^{-1}(x) dx = x \cdot f^{-1}(x) - F(f^{-1}(x))$$ hence $\int\limits_{f(a)}^{f(b)} f^{-1}(x) dx = \left[x \cdot f^{-1}(x) - F(f^{-1}(x)) \right ]_{f(a)}^{f(b)}$  $$=b \cdot f(b) - F(b) - (a \cdot f(a) - F(a)) = F(a) - F(b) + b \cdot f(b) - a \cdot f(a)$$ $$= \int\limits_{b}^{a} f(x)  dx + b \cdot f(b) - a \cdot f(a) = -\int\limits_{a}^{b} f(x)  dx + b \cdot f(b) - a \cdot f(a)$$  All in all:  $$\int\limits_{f(a)}^{f(b)} f^{-1}(x) dx = -\int\limits_{a}^{b} f(x)  dx + b \cdot f(b) - a \cdot f(a)$$   which is equal to     $$\int\limits_{a}^{b} f(x) dx = b \cdot f(b) - a \cdot f(a) - \int\limits_{f(a)}^{f(b)} f^{-1}(x) dx$$   q.e.d.


Do particles ever touch each other during a collision?  My understanding is that they can get really close to each other but never actually touch, is that true?  Another thing I've read about is, the closer the particles get to each other the greater the density of virtual particles until they reflect or particle pair creation occures due to the high energy density. If true, how does that work?


I have read that       for (int i1 : A) {     }   is better than       for (int i1=0; i1 < A.length; i++) {     }   but if I want to access index value in first one is there any mean or should I use the second one only.


Why my table tr click function is not calling in jQuery?

I am trying to get the value of table row using jQuery. When I try the same jQuery code on console and after I try to click, that is selecting that row and give proper value what I expect. But I don't know why it is not running from my JavaScript file. But the other functions are working on the same JavaScript file    $(".chequeTable tbody tr").click(function() {   alert('Vendor ID ==');   $('.selected').removeClass('selected');   $(this).addClass("selected");    alert('Vendor ID ==' + $('.tdVendorID').html());    $(this).css("background-color", "#000000"); });

       S.No	       VendorID	       VendorName	       ReqNo	       ChequeAmount	       VendorBalance	       Balance	       Description	       StockValue	       Yes/No

       1	       6000 	       john


Download salinity data from Government of Canada

Since I would like to use the salinity data with lat/lon in the Gulf of St. Lawrence, Canada to compare with the fishing data. I'm trying to download the 2010-2019 average salinity data. As the table in this database and also the picture showed. ()  And here is the open data portal.  Since my analysis requirement (I'll use R software), I want to download the data and mix it with my catch data under respective lat/lon. But I can't find how to get the raw data table in excel/csv format.


How to export / dump a MySql table into a text file including the field names (aka headers or column names)

In MySql's interpreter, it's very easy to dump a table to the screen along with its field names.   There seems to be no simple way to export a table to a tab-delimted or CSV outfile including its column headers.  I'm trying to do this using only SQL or the Linux command line, without writing a program in another language.  Thank you


Kali-Linux doesn't reboot and I see this message eth0: Detected Tx Unix Hang

I'm using a Kali-Linux installed on VirtualBox which is installed on Windows 10. If there' any other information I have to add, feel free to ask please. And Here's a screenshot of the whole screen:


What are differences between VBoxVGA, VMSVGA and VBoxSVGA in VirtualBox?

VirtualBox 6.0 provides a new setting called Graphics Controller. There are four options to choose from:   None VBoxVGA VMSVGA VBoxSVGA   In the user manual I have found this information:     Graphics Controller: Specifies the graphics adapter type used by the guest VM. Note that you must install the Guest Additions on the guest VM to specify the VBoxSVGA or VMSVGA graphics controller. The following options are available:   – VBoxSVGA: The default graphics controller for new VMs that use Linux or Windows 7 or later. This graphics controller improves performance and 3D support when compared to the legacy VBoxVGA option.– VBoxVGA: Use this graphics controller for legacy guest OSes. This is the default graphics controller for Windows versions before Windows 7.   – VMSVGA: Use this graphics controller to emulate a VMware SVGA graphics device.   – None: Does not emulate a graphics adapter type.   But still it does not describe which of them and why should I prefer. When should I choose None? Is VMSVGA better than VBoxSVGA? What is wrong with VBoxVGA?  I have tested booting of archlinux-2019.02.01-x86_64.iso with virtualbox 6.0.4 in efi and legacy modes:  ┌──────────┬─────────────────────────────────┬─────────────┐ │ Adapter  │            EFI mode             │ Legacy mode │ ├──────────┼─────────────────────────────────┼─────────────┤ │ VBoxVGA  │ ok                              │ ok          │ │ VMSVGA   │ ok in systemd-boot menu,        │ ok          │ │          │ then black screen for some time │             │ │          │ when booting, then becomes ok   │             │ │ VBoxSVGA │ black screen                    │ ok          │ └──────────┴─────────────────────────────────┴─────────────┘   Also I have noticed that with VMSVGA and VBoxSVGA passing video=XRESxYRES parameter is ignored:  +----------+----------------+--------------+ | Adapter  |    EFI mode    | Legacy mode  | +----------+----------------+--------------+ | VBoxVGA  | works          | works        | | VMSVGA   | doesn't work   | doesn't work | | VBoxSVGA | could not test | doesn't work | +----------+----------------+--------------+   But it is still possible to set some of that ignored resolutions after boot with fbset.


If exist a measurable function 𝑓 and a continuous function 𝑔 so that 𝑓・𝑔 is non-measurable.

Give an example of a measurable function 𝑓 and a continuous function 𝑔 so that 𝑓・𝑔 is non-measurable.


MacBook Pro: Failed to set MoKListRT:Invalid Parameter

I just installed Ubuntu 20.04 on my MacBook Pro 2010 (it was playing dead, so I helped it along with Ubuntu). I get this message on the screen when it's powered on and then it goes on to start the desktop. Failed to set MoKListRT:Invalid Parameter  Could not create MoKListRT:Invalid Parameter Importing MOK states has failed:import_mok_state0 failed: Invalid Parameter Continuing boot since secure mode is disabled_  Is this crucial for the operation of Ubuntu or not important?


I'm making a colored table for a time planning exercise. I made a specialrule since \midrule were too close to the activities. Spacing is now functional but the cells are not getting colored wholly. How can I color the entire cell?  \documentclass[12pt]{article}  \usepackage[table]{xcolor} \usepackage{booktabs}  \newcommand{\thinrule}{\specialrule{0.045 ex}{0.07 ex}{0.19 ex}} \colorlet{mark}{black!25} \newcommand*{\z}{\cellcolor{mark}} \newcommand*{\mc}[2]{\multicolumn{#1}{c}{#2}} \newcommand*{\y}[1]{\multicolumn{1}{c}{#1}}   \begin{document} \begin{tabular}{p{0.55\textwidth}*{4}{p{3em}}} \toprule & \mc{4}{Month} \\ \cmidrule{2-5} \mc{1}{Activity}         &\y{1}  &\y{2}&\y{3}&\y{4}             \\ \midrule Foo1                     & \z    &     &       &                  \\ \thinrule Foo2                     & \z    &     &       &                  \\ \thinrule Foo3                     & \z    &  \z &       &                  \\ \bottomrule \end{tabular} \end{document}


"GNUTLS ERROR: A TLS packet with unexpected length was received" when I connect my iPhone 3G

Look at the video; the iPhone is supposed to appear as a photo collection of some sort but nothing happens with my iPhone! I have installed and upgraded all of the libimobiledevice versions.  I have tried to mount the iPhone with ifuse /mnt/iphone/ but the result of that operation is:  GNUTLS ERROR: A TLS packet with unexpected length was received.   Hi, how do I connect my iPhone to my laptop (Ubuntu 10.04) so that I can sync music and be able to look at it as a USB stick? (This is what I am expecting to happen.)  When I connect it to my laptop, nothing happens - it doesn't show up as an icon or as a mass storage device.  My iPhone runs iOS v4.2.1 and it's an iPhone 3G. It's not jailbroken for the moment; would that be a problem? My laptop is an Asus 1201n with Ubuntu 10.04 (64-bit).  Bus 002 Device 005: ID 05ac:1292 Apple, Inc. iPhone 3G   I connected my Ipod Video (30 gb) and that one doesn't appear as well So I'm kind of stuck now. The problem probably lies in the system, because the usb port is working.    Bus 002 Device 006: ID 05ac:1209 Apple, Inc. iPod Video   I have added , I have done all of the sudo update and upgrade. but my computer doesn't realize that my iPhone is connected, whish isn't related to libimobiledevice.  The port is working fine, it's simply that my computer doesn't recognize that I have my iPhone plugged-in! The phone itself is working (I tested it on my Mac).  I have the latest versions of these programs: hipo, ipod, gtkpod, ifuse, libusmuxd1 and usbmxd.  I connected my iPhone in Windows 7 and it worked, albeit annoyingly. I tried to mount my iPhone with fuse but I got this error:  alvar@alvars-laptop:~$ ifuse /mnt/iphone/ ERROR: the mount point specified does not exist   I have tried the  link, but I got an error while mounting it.  GNUTLS ERROR: A TLS packet with unexpected length was received.   Which one? (I have Lucid not Maverick.)


Jquery Script Doesn't work for new elements

Currently, I wrote Ajax Form that works very well, all output from the form will puts in Result, expect when the result of form is another form at this time, my script doesn't works for new form that was the result of old form  My script doesn't work for new form So, I needs to make that new form works like old one, is that possible ?  $(document).ready(function() {     $("form").submit(function(e)     {         e.preventDefault();         $("#Result").html("

");          $.ajax(         {             type: "POST",             data: $(this).serializeArray(),             success: function(Data)             {                $("#Result").html(Data);             }         });     }); });


can somebody please explain how to construct free resolution of the $ℤ_{4} $ module $ℤ_{2}$??


I've been having a problem in the software recently, and it's been bothering me a lot.  I accidentally either opened this console or expanded it from the top, (currently empty as I just reopened the file, didn't help, ) and it wont close or shrink.  (see picture below)  I've looked at other guides similar to this, and nothing's helped.  The main problem I've had is that any time I try to merge it, it just creates a new ribbon with file, render, etc., and no guides cover this topic.  I don't know what to do, and can't find any guides, so I hope you can help!


How can I configure a native Windows 10 keyboard shortcut for Sleep?

I often need to quickly put my Windows 10 computer to sleep in my shared office at work, so what is a keyboard shortcut to put the computer to sleep? Ideally, I want a built-in shortcut, or one that can be configured with native Microsoft Windows features without installing any third-party applications.  Virtually the same question has already been asked (), but that poster accepted an answer that involved 3rd-party software, which I would prefer to avoid (less crud on my systems). Moreover, some answers involved a long series of up and down and backwards arrow keys (kind of like a video game cheat code), which is not my idea of a keyboard shortcut, especially when the sequence varies depending on a computer's particular configuration (e.g. works on my desktop with hibernation disabled, but not on my laptop where the hibernation option requires memorizing a different sequence).  Since it seems that Microsoft doesn't offer a built-in shortcut, could someone please perhaps explain how to create one for sleep without 3rd party tools?


Infinite series with the binomial coefficient

How can we prove that  $\displaystyle \lim_{n\to\infty}  \sum_{k=0}^{n} \frac{{n \choose k}}{n^{k}(k+3)} = e-2$  ?  The only thing that came to my mind was writing out a few terms to see where that could get me, but I'm not able to make much progres. Any help in the form of hints or a solution would be appreciated.


Equation of lines through origin and two vectors

Question: Find the equation of the form ax+by+cz=d whose graph is the plane through the origin gneerated by <4,-1,2> and <-1,0,4>.  I'm not sure where to start, and I don't whether to use cross and dot product.


if you add "not" before a dependent clause does it become an independent clause?

Original sentence: "I will go to school, but not when it is snowing." If "not" serves as a substitute for the negative clause as "I will not go school", then I see 2 independent clauses: Interpretation: "I will go to school, but I will not go to school when it is snowing. " So if I pause after speaking and then add an additional dependent clause-------if my homework is complete. So that the original sentence becomes----"I will go to school, but not if it snowing, if my homework is complete." Does the "if my homework is complete" apply to "I will go to school" or "I will not go to school when it is snowing" or both?


My husband and I are planning a 6 months road trip in USA and Canada. We both hold passports that allow for VWP for 90 days.   If we entered on VWP, I have read that we cannot extend beyond the 90 days granted by VWP and must leave by the 90 days. Is this true? Should we apply for a B2 visa before we leave?


I have seen multiple claims that the neutron is its own antiparticle. However surely the antiparticle of the neutron would have a baryon number of -1 because it would consist of three antiquarks, each of which would have a baryon number of -⅓. I could be mistaken but I'm assuming that baryon number is flipped when taking antiparticles.


can i run Ubuntu 14.04.1 LTS 64 bit in my computer?

my computer specification  Processor => intel core 2 duo E7300 @ 2.66Ghz  RAM => 3GB DDR2 800MHz  Graphics => AMD radeon HD 5570 1GB DDR3  Hard Drive => 500GB  please tell me can i run the Ubuntu 14.04.1 LTS 64 bit in my computer. thanks in advance.


What's the best way to highlight a Required field on a web form before submission?

This seems subjective, and it is; a client of mine would like me to highlight the required fields on the web forms in their application with a red asterisk, and I'm looking for an alternative since red asterisks usually mean there's an error to me.  How do I let a user know which fields are required? (One per answer, please.)  UPDATE: This is to indicate which fields are required before validation/postback occurs.


Is there a theoretical argument which shows that among all the possible shapes, the best choice for a wheel is to be circular?   Intuitively, it makes quite a lot of sense to me, but I'd be interested to see a kind of characterization of the circle as the most efficient wheel possible. Where, of course, "most efficient" should be defined in a suitable manner (and I guess this the hear of my question).  There is this  which states that "the wheel has a unique property: at every moment of motion, the touching point between the wheel and the ground is not in movement and therefore no work is done by the friction force." However, I'm having a hard time to understand why there should be more friction if a car has squared wheels. Indeed, I can fairly imagine that squared wheel are quite inefficient, but this is because you have to lift the car up to pass the corners, and not because of the friction (I might be wrong though).


Any positive linear functional $\phi$ on $\ell^\infty$ is a bounded linear operator and has $\|\phi \| = \phi((1,1,...)) $

This is a small exercise that I just can't seem to figure out. When I see it I'll probably go 'ahhh!', but so far I haven't made any progress.  I'd like to prove that any linear functional $\phi$ on $\ell^\infty$ that is positive, i.e. for any $(x_n) \in \ell^\infty$ such that $x_n \geq 0$ for all $n \in \mathbb{N}$ we have $\phi((x_n)) \geq 0$, is a bounded linear operator and has $\|\phi \| = \phi((1,1,...))$.  Nothing I have tried worked so far, so any hints would be appreciated, thanks!


How can I display a reminder while or before shutdown?

My computer speakers make a horrible sound while shutting down and I keep forgetting to turn them off before shutdown. I would like to prevent this with a "just in time" reminder. Something like a popup window that also delays shut down until I click a confirmation button would be great.


How to submit a form when the return key is pressed?

Can someone please tell me how to submit an HTML form when the return key is pressed and if there are no buttons in the form? The submit button is not there. I am using a custom div instead of that.


Thickness of pgfplot line makes data look jagged

I am using matlab2tikz to generate a plot from experimental data and have a problem with the appearance of the plot. Changing the line thickness makes the data look very jagged. This is hard to describe and so I have attached two plots, one with line width set to 0.1pt and the other with the line width set to 0.8pt.     The thicker line is noticeably more jagged, and more importantly, the line is no longer an accurate representation of the data (the data does not jump as high or low).  In fact, this effect is also present for the thinner line, but is not as noticeable. The actual data is not fully smooth, but with the scale chosen the oscillations should not be visible. The last plot is from Matlab, and the data looks normal there.    How can I get a "good" output from PGFplots?


When I put "I " into str, "It is I" is not printed, But I put "I" into str, "It is I" is printed.  Can anyone explain about this behaviour. Below is my code.   Code:  String str = "I "; // in = "I"  StringTokenizer st = new StringTokenizer(str, " ", false); String typeCharater="";  if( st.hasMoreTokens() ) {     typeCharater = st.nextToken(); } } else if( typeCharater == "I" ) {      System.out.println("It is I");  }


How can I start Ubuntu One when OS X starts?

Ubuntu One is not started automatically when my Mac OS X starts. Can I add it manually to the operating system start up?


Instead of the desktop UI, I get a blank "wallpapter" screen after the normal prompt for password. Cant power down except manually turn off computer power switch.  Using Ubuntu 14.04 LTS.  Thanks.


How can I get the active screen dimensions?

What I am looking for is the equivalent of System.Windows.SystemParameters.WorkArea for the monitor that the window is currently on.  Clarification:  The window in question is WPF, not WinForm.


What is the proof, that $\sum_{n=0}^{\infty} \frac{1}{2^n}\frac{d_n(x_n,y_n)}{1+d_n(x_n,y_n)}$ is a metric?

What is the proof, that $d(x,y) = \sum_{n=0}^{\infty} \frac{1}{2^n}\frac{d_n(x_n,y_n)}{1+d_n(x_n,y_n)}$ is a metric? Where $x=(x_1,x_2,\cdots)$ , $y=(y_1,y_2,\cdots)$ and $d_n$ is a metric for $X_n$. How does one prove the triangle inequality?


GRUB rescue returns unknown filesystem after Windows update

I run dual boot Ubuntu and Windows on my machine. Last night Windows started installing some updates and it stated the machine would restart a few times during the updates.  Well, after the first restart it brought up this GRUB rescue screen, and it seems my machine can't find the Ubuntu partition. I start to think Windows may have destroyed it by updating.  In all other threats I've found so far it says to execute the 'ls' command to find all partitions and the 'set' command to see what GRUB has set up.  ls returns:  (hd0) (hd0,msdos5) (hd0,msdos2) (hd0,msdos1)   OK, set returns:  cmdpath=(hd0) prefix=(hd0,msdos7)/boot/grub root=hd0,msdos7   Now I understand this is wrong. The solution would be to ls every partition until the Ubuntu one is found. I tried this by doing ls (hd0,msdos#)/ where # is one of the numbers shown by ls. All of the commands return:     error: unknown filesystem.   I also tried adding boot/grub and combinations to the command, but nothing works.  Now, my next plan is to get a Ubuntu live USB using somebody else's computer, but I can't right now.  What is wrong here? Is my hard disk drive broken? Did the uncompleted update break it? Is there another solution?


Can't get Python 2 program to print right

while True:     volts = adc.readADCDifferential01(4096, 8)     print volts   This works fine except that it prints out a column of voltages that quickly fills up the terminal screen. I'd rather it print the voltages side by side and fill up rows from left to right.  I tried putting a comma after the print volts but nothing shows up on the screen until I stop the program by pressing control-C. The comma does cause the voltages to be printed in rows but I need to watch the readings live instead of blindly waiting until I suspect the test is finished.  Why did adding a comma cause the program to stop showing the voltages as they are happening?


Differentiability of $f(x) = x^2 \sin{\frac{1}{x}}$ and $f'$

Let $f(x) = x^2 \sin{\frac{1}{x}}$ for $x\neq 0$ and $f(0) =0$. (a) Use the basic properties of the derivative, and the Chain Rule to show that $f$ is differentiable at each $a\neq 0$ and calculate $f'(a)$. You may use without proof that $\sin$ is differentiable and that $\sin' =\cos$.  Not even sure what this is asking.  (b) Show that $f$ is differentiable at $0$ and that $f'(0) =0$.  $\frac {f(x)-f(0)}{x-0} \to \lim_{x \to 0} x \sin(1/x)$. $x \sin(1/x) \leq |x|$ and $\lim_{x \to 0} |x|=0$. Thus $f(x)$ is differentiable at $0$; moreover $f^{'}(0)=0$.  (c) Show that $f'$ is not continuous at $0$.  $f{'}(x)=x^{2} \cos(1/x) (-x^{-2}) + 2x \sin (1/x)$. In pieces: $\lim_{x \to 0} \cos (1/x)$. $f^{'}(0-)$ nor $f{'}(0+)$ exists as $x \to 0$ $f^{'}(x)$ oscillates infinity between $-1$ and $1$ with ever increase frequency as $x \rightarrow 0$ for any $p>0$ $[-p,0]$, $[-p,p]$ or $[0,p]$ $f$ is not continuous. Question: How to show more rigorously?


My comment was moved to a chat room, and it is not attributed to my site-specific username

On one of the StackExchange sites, I have changed my display name from pacoverflow to something else. Recently there was a question on that site in which a lot of people left comments, including me. I just noticed that all of the comments on that question were moved to chat. So I went into the chat room, and the comment that I left actually has "pacoverflow" next to it, not my site-specific username. This seems like a bug.


Should HMAC-SHA3 be preferred over H(C(k,M))?

If I understand correctly SHA-3 (Keccak) is resistant against more attacks than SHA-2. This would make it possible - again if I understand correctly - to use SHA-3 with a simpler scheme than HMAC.  Would there still be a reason to use the HMAC construction with SHA-3? Would it be a better idea to simply use $H(C(k, M))$ where $H$ is simply SHA-3 and $C$ is a function to create a canonical representation (encoding) of the key $k$ and the message $M$ to set them apart?  Of course I imagine that HMAC-SHA3 will be used in the majority of protocols anyway as SHA-3 was created as a drop in replacement of SHA-2. But is there any security related reason to use HMAC-SHA3 over an (even) simpler scheme?


What to do when someone's attacking you, but succeeding the save is worse than failing it?

I was reading through the Monk rules in D&D 5e when I came across this section in the rules for Quivering Palm:     When you use this action, the creature must make a Constitution saving throw. If it fails, it is reduced to 0 hit points. If it succeeds, it takes 10d10 necrotic damage.   PHB pp.80   The standard expectation of how saving throws work is that if someone's attacking you, failing your saving throw brings worse results than succeeding, so you naturally want to succeed, and your attacker benefits if you fail.  However, that isn't always the case. Quivering Palm is an example which violates that standard expectation. Suppose you're on very low HP, or you're a very low-constitution wizard with less than 100 max HP to begin with, or you may want to avoid having to make death saving throws, or worse yet, a combination of these things! At that point, failing the save and dropping to 0 HP may be a far more appealing than succeeding, taking 10d10 necrotic damage, and risking dying outright.  How do you handle this situation that seems counter-intuitive to the rules? Can the rules be reinterpreted so that the best option you're left with is not simply to fail your saving throw? Something that, like normal, gives an advantage to success over failure? Especially since, as  in comments to an answer here, the character doesn't know he should fail.


A coin shows heads with probability $p$. Let $X_n$ be the number of flips require to obtain a run of $n$ consecutive heads. Show that $E(X_n)=\sum_{k=1}^{n}p^{-k}$.   For this problem, I think I need to use conditional on $X_{n-1}$, and I know that $$E(E(X_n\,\vert\,X_{n-1}))=E(X_n)$$ But I don't know how to use this equality to obtain the result.


logical statement is evaluated incorrectly

I have the code below which is a logical expression and should return TRUE. However, it returns FALSE! Any idea why? and how to fix it?  ((1.1 - 1)*100) <= 10


"The service is temporarily unavailable" vs. "...not available"

Is there a difference? Both versions are common.  If there is a difference, which do I use when, and why?


Google Chrome Windows Reopens After Reopening It

When I leave a Chrome window open and shutdown Windows, when starting it again, the window reopens (with all the tabs). How can I disable this?  PS: I would also like to disable that Chrome opens up every tab again after I close the window. So when closing the window and opening it again that no tabs are open. Because I already select that Chrome should open ONLY chrome://apps on StartUp  PPS: Maybe the reopening of the whole window has something to do with Windows settings also?    Note: This is not a duplicate as suggested above, since the problem also occurs when I just reopen Chrome without restarting Windows...


I recently purchased a new PC (OS: Windows 10 Pro, ver. 20H2, build 19042.868), into which I installed one after another (with clean installations) different single versions of QGis (3.10.14, 3.16.4, 3.18), but every release, with any different project I work with, gives me the same annoying problem: QGIS freezes repeatedly, for a time ranging from a few seconds to a few minutes, anytime I launch any type of command (editing, adding/removing layers, panning/zooming, etc…): it is not really possible to work with QGIS… Further detail: any external plugin is disabled. In addition to that, in the same machine, I installed, under Oracle VM, Ubuntu 20.04.2 LTS and QGis 3.18: in this case the QGis works just fine. Should I then assume that it is in OS problem? How can I resolve this problem?


Show that $(x-\alpha)(x-\overline{\alpha})$ is a also a factor of $p(t)$ over the complex numbers

Here is the full question. Lots of struggles:  Let $p(t)$ belong to $P(R)$. a) If $(x − \alpha)$ is a factor of $p(t)$ over the complex numbers (i.e. $p(t) = (x − \alpha)\cdot q(t)$, for $\alpha$ equal a complex number and for $q(t)$ a polynomial with coefficients in the complex numbers), then show that  $(x − \alpha)(x - \overline{\alpha})$ is a also a factor of $p(t)$ over the complex numbers (where $\overline{\alpha}$ denotes the complex conjugate of $\alpha$)  and  b) Use the fundamental theorem of algebra to show that every polynomial with real number coefficients is the product of real polynomials of degree 1 or 2.  I've tried reading the book (Friedberg) and looking through my lecture notes to figure this out. I've tried using the unique factorization theorem for a) and, needless to say, have not had any luck (but this could also be because of the fresh "understanding" of the theorem). Anyone able to help? I just no idea how to go about proving this.


Auto-inputing ssh password in shell scripts on Linux

I can use ssh command and provide password and connect to another server. But I need to pass password in the shell script. how?


Windows doesn't start anymore from the grub boot menu

I have an SSD with 2 partitions.  The first partition belongs to Windows 10 and it worked fine. I installed Ubuntu 15.10 on the second partition and it also works fine.  When I boot, grub is correctly displayed and shows both Windows and Ubuntu. If I select Ubuntu it can boot without issue and I can even access the Windows partition from Ubuntu, but if I try to boot Windows 10 it displays a black screen (like it will start normally) for a few seconds (perhaps 2 or 3 seconds) and then it goes back to grub without showing any message.


Backpacking through Indonesia during Ramadan (Bali and Gili)

My girlfriend and I are planning to visit Indonesia this summer from 3-24 June. When we were planning the trip we found out ramadan is from 15 May to 14 June.   We were first planning to start our adventure in Yogyakarta and make our way east slowly. We were told Java is mostly islamic, which would force us to plan our journey as we need to buy public transportation tickets beforehand. So we adjusted our plans and want to go to the less-islamic Bali, Gili islands and Lombok.  This leaves us with a couple of questions as we don't want to disrespect any locals:   Is Bali/Gili/Lombok the best choice for us to travel to instead of the more islamic Java? How is public transportation on these islands during Ramadan and the holiday-week after? Do we need to book our accomodations/transportation in advance for these islands?   I found some answers on this forum, but this was mostly for the Gili islands, which doesn't seem to be affected by Ramadan.


Is there any correct definition for countable set? I read some book saying a set is countable if there is a bijection between it and the set of all natural numbers, while some other text says if there is an injection into the set of all natural numbers. I really am uncertain which definition is correct.


I'm embarking on a journey to create a conference abstract book using XeTeX and got stuck within five minutes:        The missing 'g' in 'somethin' influences the line height of the following line. How can I correct this?  At the end I want to be able to include the abstracts and corresponding information through our online registration system, so this should be a global setting.  My MWE:  \documentclass[10pt, a5paper]{article} \usepackage{fontspec}  %% GEOMETRY \usepackage[left=2cm, right=1.5cm]{geometry} % to change the page dimensions  \newenvironment{AbsHead} {     \fontsize{16}{22}\headfont\noindent }% {     \vspace{0.5 cm} }  \newenvironment{AbsAuthors} {     \fontsize{12}{14}\authorfont\noindent }% {    \vspace{0.5 cm} }  \begin{document}  ￼￼￼￼\setmainfont{Minion Pro} \newfontfamily\authorfont{Helvetica Neue Light} \newfontfamily\headfont{Helvetica Neue Condensed Bold}  \begin{AbsHead}The XIAP  something something something somethin somethin somethin somethin somethin somethin somethin something something\end{AbsHead}   \begin{AbsAuthors}Somebody Someone\end{AbsAuthors}   \noindent Purpose: Lorem ipsum \end{document}


Find a recurrence relation for the number of ways to select a subset (any size, including the empty set) from the set {1,2,3, … ,n} that does not contain a pair of consecutive numbers?  Would this problem be similar to induction? not sure how to apply it to recurrence in this case.


How do I make Subversion (SVN) send email on checkins?

I've always found checkin (commit) mails to be very useful for keeping track of what work other people are doing in the codebase / repository. How do I set up SVN to email a distribution list on each commit?  I'm running clients on Windows and the Apache Subversion server on Linux. The answers below for various platforms will likely be useful to other people though.


I'm looking to get that from a graph. but problem is that graph is in image form. Now I want to extract data in excel from that graph. how can i do it? I'm using office 2003.


Windows 10 "Enable NTFS long paths policy" option missing

For some time, Microsoft has supported an option to remove the limit of 260 symbols for NTFS file name length.  The web is full of articles, describing what should be done.   Hit the Windows key, type gpedit.msc and press Enter. Navigate to Local Computer Policy > Computer Configuration > Administrative Templates > System > Filesystem > NTFS. Double click the Enable NTFS long paths option and enable it.   However, I don't have such option. Please see the screenshot below:    Am I missing some Windows update, or is it something else?


Complete removal of Ubuntu One from my Ubuntu computer

How do I completely remove Ubuntu One (U1) from my computer running Ubuntu 12.04?


Why is gravitational potential energy shared between two particles?

By integrating the gravitational force $F_g=GMm/r^2$, you get the potential energy function $U(r)=-GMm/r$. Halliday and Resnick’s Fundamentals of Physics states,     The potential energy given by [$U(r)=-GMm/r$] is a property of the system of two particles rather than of either particle alone. There is no way to divide this energy and say that so much belongs to one particle and so much to the other.   I do not understand why this energy belongs to the system. If each particle in the system experiences a force $F_g=GMm/r^2$, then shouldn’t each particle have the energy $U(r)=-GMm/r$? Why is this quantity divided among the particles in the system?


How to partially disable the zsh's autocorrect

The autocorrection function of zsh is very helpful for me but it does't always gives a proper result.  ~$ sudo vim somefile zsh: correct 'vim' to '.vim' [nyae]?    Yet what I want is something like the a never option that can stop it to correct commands like those forever.  How can I do this?


No option to remove Bluetooth device in iOS Settings app?

I would like to remove my Raspberry Pi from my iPhone 8 (running iOS 11.2.1) as a connected bluetooth device.  Normally, I would go into my Settings -> Bluetooth and select the Info button (a small blue circled "i") to show the "Disconnect" and "Forget Device" dialogs:    Unfortunately, iOS does not give me this option for my device. The bluetooth device list does not contain an "i" for the item, and there is seemingly no other way to disconnect.    How do I unpair this device if there is no button to trigger to the unpair prompt?  Due to work restrictions I cannot completely reset the device.


I want to change my thesis topic (to the extent that the ethos is still in tact) but my advisor does not agree. What can I do?

I am doing a phd where my aim is to solve a problem A which is very interesting. My supervisor has got a lot of connections in a technology B and he claims to be an expert in B. I came to this group because of these accomplishments. But soon I realized that B is not really a great technology for A.   So in my phd proposal I proposed a method which encompasses B but is more general (say R). Now I realize that I do not want to use B at all because my preliminary results are not encouraging. In fact, I am inclined to use E as a base technique which does not have any impact on R.  But my supervisor, who is interested in only publishing in B  and frowns upon everything else (it was a nightmare to convince him to let me work on R) is dead against it. He says that he is an expert in B and his vision of the group is not inclined with me trying other things.  There are other professors in my university who have worked in E and could collaborate but my supervisor won't collaborate with people from outside his kingdom. I also know professors from outside my university who could help me if needed. I could knock the doors of school committee in order to  help me but that would create a lot of problems as my supervisor wields a lot of power and influence everywhere.    Another query is, is it ethical to collaborate with people outside the university (of course after letting my supervisor know) for my PhD work. My Masters supervisor would be happy to help me out.  Edit: After looking at comments, I am thinking that after all, it is MY PhD. Yes, I have spent 1.5 years, but 1.5 years is left. Why should I spend any moment of my life on something I find to be not exciting, particularly less exciting because it is forced on me. And in those 1.5 years I learnt to write well and also learnt 'A' which is important. Its not total waste. My supervisor has his agenda, and why should I give up mine to make him happy? His vision is fine, but he does not have the right to force his vision on me.


How to check if a data sequence is really random?

I wonder how can I test if a data sequence is really random?  Of course I can randomly cut it into equal pieces, and check if the correlation coefficient between different pieces on average is zero.  But is that sufficient?  Or if that is the best way to do it?  Thank you


If energy can neither be created nor be destroyed,what is the ultimate source of energy?

We usually say that the ultimate source of energy for earth is the Sun. So this means that sun creates energy but according to the law of the conservation of energy energy can neither be created nor destroyed, so how does the energy come into the sun? That is just an example. We know that energy is transformed from one form to another but is not created and destroyed. But that is confusing because there must be an ultimate source of energy. How is  energy created in this source? If it is related to the atomic level, then how can atoms possess energy? Is the law of the conservation of energy untrue?


using log4j facing java.lang.NullPointerException

I am facing an issue with java.lang.NullPointerException.I tried as much as possible but I'm  unable  to resolve this. I am implementing a POM model(Selenium) for my project. CODE: Login Test public class TC_LoginTest_001 extends BaseClass {     @Test     public void loginTest()     {         driver.get(baseURL);                  logger.info("ClikSource For Candidates Application Launched");                  LoginPage lp = new LoginPage(driver);                  lp.clickEmailLogin();                  lp.setUserName(username);         logger.info("Entered Email ID");                  lp.setPassword(password);         logger.info("Entered Password");                  lp.clickLogin();                  if(driver.getTitle().equals("ClikSource For Candidates"))         {             Assert.assertTrue(true);             logger.info("Login Test Passed");         }         else         {             Assert.assertTrue(false);             logger.info("Login Test Failed");         }     } }  Console: Error Log java.lang.NullPointerException     at
 com.enterprisecandidate.testCases.TC_LoginTest_001.loginTest(TC_LoginTest_001.java:15)     at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)     at
 java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)     at
 java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)     at java.base/java.lang.reflect.Method.invoke(Method.java:567)     at
 org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:134)     at org.testng.internal.TestInvoker.invokeMethod(TestInvoker.java:597)     at org.testng.internal.TestInvoker.invokeTestMethod(TestInvoker.java:173)     at org.testng.internal.MethodRunner.runInSequence(MethodRunner.java:46)     at org.testng.internal.TestInvoker$MethodInvocationAgent.invoke(TestInvoker.java:816)     at org.testng.internal.TestInvoker.invokeTestMethods(TestInvoker.java:146)     at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:146)     at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:128)     at java.base/java.util.ArrayList.forEach(ArrayList.java:1540)     at org.testng.TestRunner.privateRun(TestRunner.java:766)     at org.testng.TestRunner.run(TestRunner.java:587)     at org.testng.SuiteRunner.runTest(SuiteRunner.java:384)     at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:378)     at org.testng.SuiteRunner.privateRun(SuiteRunner.java:337)     at org.testng.SuiteRunner.run(SuiteRunner.java:286)     at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:53)     at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:96)     at org.testng.TestNG.runSuitesSequentially(TestNG.java:1187)     at org.testng.TestNG.runSuitesLocally(TestNG.java:1109)     at org.testng.TestNG.runSuites(TestNG.java:1039)     at org.testng.TestNG.run(TestNG.java:1007)     at org.testng.remote.AbstractRemoteTestNG.run(AbstractRemoteTestNG.java:115)     at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:251)     at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:77)  Please help to resolve the issue


Map an arbitrary triangle to the unit square

As the title say let's define an arbitrary triangle $T = (p_1,p_2,p_3)$ where for all $i \in \{1,2,3\},\ p_i \in \mathbb{R}^2$.    I searched on the net a bijection $f$ that maps $T$ to the unit square, and I found once which is defined by the inverse map as follow  :   $$\forall u,v \in [\![0,1]\!],\ f(u,v) = (1-u)p_1 + u \bigl( (1-v)p_2 + vp_3 \bigr)$$   I spent few hours to understand how the guy is finding this, but no way. Can someone explain me the secret of this bijection ?   Thanks !


Problem with \mkbibdateapalongextra of biblatex-apa

biblatex-apa gives me this:  ! Undefined control sequence. <argument> \mkbibdateapalongextra                                {labelyear}{labelmonth}{labelday}\iffieldu...   I'm using the default (english) language, and have done the:  \DeclareLanguageMapping{norsk}{norsk-apa} \DeclareLanguageMapping{english}{american-apa}   thing.   Here's a short example:  \documentclass[english]{memoir} \usepackage{babel} \usepackage{roffe} \usepackage[backend=biber,date=short,maxcitenames=2,style=apa]{biblatex}  \DeclareLanguageMapping{norsk}{norsk-apa} \DeclareLanguageMapping{english}{american-apa} \addbibresource{Papers2.bib} \addbibresource{R.bib}  \begin{document} \cite{R-base}  \printbibliography \end{document}   This one replicates the problem.


on windows 7, vpn'ing to work, how to force all traffic to use VPN?

right now when I connect to my VPN, my internet is served from my home router, but any requests for xxx.xxx.xxx.xxx i.e. my works ip range are served via the vpn connection I believe.  How can I force all traffic to the vpn?


KDE uses suspend-to-ram by default.  How can I change it so it runs s2both instead?  I have tried  but that simply blocks my machine, whereas s2both works.  This is why I would like KDE to simply call s2both instead of doing something else.


Cron stopped running; logs say: "Attempting to re-run cron while it is already running."

What are the steps to troubleshoot and resolve this issue as per title?    When I try to run manually, I get a  page immediately, and the error message "Attempting to re-run cron while it is already running."


Drupal SA-CORE-2014-005 - How to tell if my server / sites were compromised?

I just updated all my sites using the patch method of resolving the Drupal SA-CORE-2014-005 exploit. I just read reports that just yesterday there is someone from a Russian IP infiltrating drupal sites.     My main concerns are now:   How do I tell if my sites have been comprised? What should I search for in my apache access logs to detect if my site was a victim or not? So far what are these hackers doing to comprised sites?


Occasional dialogue Boxes where all characters are question marks

Every so often, I get dialogue boxes that look like this:    Selected the text, pasted it into another editor, and lo and behold:     “Slack” cannot be open during installation.      Click Continue to quit “Slack” and begin the update. The application   will open when the update is complete.   So this is just one of those regular Mac App Store dialogues. I tried clearing the font caches with sudo atsutil databases -remove, to no avail.  Another other ideas for how to address this font corruption issue?


weblogic Error 500--Internal Server Error

I am having a 500 error code with weblogic 10.3 while trying to load a web page with my web application.  Here is the log in my weblogic server       Apr 29, 2014 8:46:11 AM CDT> <Error> <HTTP> <BEA-101020>     <[weblogic.servlet.internal.WebAppServletContext@142ef25 - appName: '_appsdir_MyApp_ear', name: 'MyApp', context-path:  '/MyApp', spec-version: 'null'] Servlet failed with Exception java.lang.NullPointerException         at weblogic.servlet.internal.ServletResponseImpl.sendError(ServletResponseImpl.java:643)         at org.apache.wicket.protocol.http.WebRequestCycle.onExceptionLoop(WebRequestCycle.java:107)         at org.apache.wicket.RequestCycle.step(RequestCycle.java:1386)         at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1438)         at org.apache.wicket.RequestCycle.request(RequestCycle.java:546)         Truncated. see log file for complete stacktrace   and here is what I get in the browser  Error 500--Internal Server Error  java.lang.NullPointerException     at weblogic.servlet.internal.ServletResponseImpl.sendError(ServletResponseImpl.java:643)     at org.apache.wicket.protocol.http.WebRequestCycle.onExceptionLoop(WebRequestCycle.java:107)     at org.apache.wicket.RequestCycle.step(RequestCycle.java:1386)     at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1438)     at org.apache.wicket.RequestCycle.request(RequestCycle.java:546)     at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:486)     at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:319)     at com.uprr.ui.wicket.components.infrastructure.RicolaWicketFilter.doFilter(RicolaWicketFilter.java:25)     at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)     at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3496)     at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)     at weblogic.security.service.SecurityManager.runAs(Unknown Source)     at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2180)     at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086)     at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)     at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)     at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)   Can you please help me fix this?


Using dpkg to install upgrade and dist-upgrade packages

So I'm playing around with offline package installation on 12.04 Server, having downloaded packages by retrieving and wgetting their URIs using the instructions here:   I did this with apt-get upgrade and apt-get dist-upgrade, then went about installing the downloaded packages using dpkg -i. So the process looked like so:   Get URIs wget the packages to a folder (upgrade packages to /upgrade and dist-upgrade packages to /dist-upgrade) run dpkg -i /upgrade/*.deb and then dpkg -i /dist-upgrade/*.deb   My question is: would this method of manually installing the updated packages correctly get everything updated, giving the same result as if I'd just run apt-get upgrade and apt-get dist-upgrade normally? Or is there something that the normal apt-get commands do that wouldn't get done with this way?


I am a professional tour director and my work takes me all over the world.  I currently live in the United States but I would like to move to Italy.  It will take some time for me to get an permanent visa but my work would probably ensure that I am not in Italy for more than 90 days in an 180 day period.  It's a lot to juggle though and would mean turning down jobs in Italy so as not to go over my allotted time.  Which would be a shame because I do speak Italian.  However, I do have two passports.  Would I be able to enter Italy on my US passport, hit the 90 day mark, head to France or Switzerland for the weekend and re-enter using my Canadian passport for another 90 days within that same 180 period?


Asking where you may already know or have an answer, even a guess

What should I do when I think I have an answer to my question, but to me feels at best a guess?  For example, in the question body I might include the guess as part of the background or assumption,      [...] I think that the answer to this question is blah blah blah. Please prove me wrong.   If I'm wrong I've added an explicitly erroneous solution that other answers can skip, helping them clearly see what is right and what is wrong and understand the bigger picture.   On the other hand if my guess is correct there might be answers like "I think you answered your question", or answers adding just a tiny bit to my own guess.   In such cases, what answer should I accept when none of the answers fully answer the question and the correct answer is my initial guess?  I could refrain from posting my own guess and let people try to answer the question. But then am not saving others time by answering (well, actually guessing an answer) my question? The time that could be better spent on something else.  Is it a good strategy at all to post my guess as to what the answer is in the question body, or should I refrain from it?  I could also probably post my guess as an answer along with my question right away. But that'll be just a guess, not an actual answer. How appropriate would that be? I wouldn't have asked if I had surely known the correct answer in the first place.


How do I get invoke_props_popup to work?

I'm trying to get invoke_props_popup to work. But my code produces this error:   Error: Operator 'OBJECT_OT_keyframe_changer' does not have register enabled, incorrect invoke function  Traceback <most recet call last):     File "(Script-path)", line 63, in <module> ...  RuntimeError: Error: Operator 'OBJECT_OT_keyframe_changer' does not have register enabled, incorrect invoke function   Line 63 is bpy.ops.object.keyframe_changer('INVOKE_DEFAULT')  I haven't been able to find any documentation to help me with this. Why does it not run? Why does it give me an error?    This is the code I have so far:  class KeyframeChangerOperator(bpy.types.Operator):     """Let's you change keyframe position"""     bl_idname = "object.keyframe_changer"     bl_label = "Keyframe changer"     my_float = bpy.props.FloatProperty(name="Keyframe position")       def execute(self, context):         set_keyframe_position(self.my_float)         return {'FINISHED'}      def invoke(self, context, event):         wm = context.window_manager         return wm.invoke_props_popup(self, event)  def register():     bpy.utils.register_class(KeyframeChangerOperator)  def unregister():     bpy.utils.unregister_class(KeyframeChangerOperator)   if __name__ == "__main__":     register()      # test call     bpy.ops.object.keyframe_changer('INVOKE_DEFAULT')


evaluate $\int_{0}^{1}\frac{x-1}{\ln x}dx$,where x is real.   Approach:  The suggestion is to differentiate $H(m)=\int_{0}^{1}\frac{x^{m}-1}{\ln x}dx$. This leads to  $$H(m)'=m\int_{0}^{1}\frac{x^{m-1}}{\ln x}dx, $$  $$H(m)''=\int_{0}^{1}\frac{x^{m-1}}{\ln x}dx+m(m-1)\int_{0}^{1} \frac{x^{m-2}}{\ln x}dx$$  ...


Mapping circles via inversion in the complex plane

Consider two unshaded circles $C_r$ and $C_s$ with radii $r>s$ that touch at the origin of the complex plane. The shaded circles $C_1,C_2...C_7$ (labeled in counterclockwise direction sequentially) all touch $C_r$ internally and $C_s$ externally. $C_1$ also touches the real axis and $C_i$ and $C_{ i+1}$ touch for $i=1...6.$  Let $r_i$ denote the radius of $C_i$. Then show that for $i=1,2...,$  $$r_i^{-1} + 3r_{i+2}^{-1} = 3r_{i+1}^{-1} + r_{i+3}^{-1}$$  A picture is attached for clarity.    Attempt:  Under inversion, $C_s$ and $C_r$ are mapped to lines and $C_i, i \in \left\{1,...,6\right\}$ are mapped to circles. The map $f(z) = 1/z$ is conformal, so the angles are preserved wherever $f'(z) \neq 0$. Each circle has $4$ tangent points, (except $C_7$) so under the transformation these $\pi/2$ angles are preserved.  The resulting image I have after the transformation is that the $C_i$ are mapped to circles that lie within the two lines and touch the sides.   The only way I see just now to preserve the angles is to have all the circles of the same radii. If $s$ is the radius of $C_s$ and $r$ the radius of $C_r$ then the centre between these two lines is $\frac{1}{2}\left(1/s - 1/2r\right) $. (But I do not think this makes sense.)  Many thanks


Book/series describing the evolution of religious practices - Christian/Muslim to Sun Worship

reminded me of a Sci-Fi book series I read in the early 80's.  I do not remember much about it, but I do recall a particular scene where one of the characters was describing the evolution of the inhabitants' sun worship.  Apparently, the first colonists were both Christians and Muslims and, in a gesture of ecumenism, the Christians also began to pray "toward Mecca".  Several generations later, this practice evolved into some kind of sun worship.  I read a lot of Sci Fi books in the 80's so am a bit reluctant to give more details, since I may end up confusing details of several books.  Still, Valorum's comment is valid, so I'll do my best.  As I recall this was part of an anthology about folks on a planet several generations (thousands of years) after it was first colonized by Earth.  In addition to the religious practice that evolved above, the main character in the series had developed the ability to cast and see "threads" to allow navigation across a "void" allowing travel from place to place much easier and quicker.  The early colonists had also managed to block some kind of gate through which another alien species was about to invade.  Now, several thousand years later, some of the inhabitants wanted to open these gates but others wanted to keep them closed. The thread spinner was one of the ones who wanted to keep the gate shut.  The "gate openers" ended up winning, but the aliens were defeated since the level of technology that developed on the planet ended up far surpassing that of the aliens (who had been stuck behind the gate all of that time).


How do Hexproof and Combat Damage interact?

Here's a quick question: suppose your opponent attacks with an 8/8 with Trample, and you block with a 5/5 with Defender, Indestructible, and Hexproof. You also have Hexproof.  Trample is an ability, and Hexproof won't allow you to be targeted by abilities or spells. How would one assign damage then?  Or is Hexproof just not important at all by this point?


Is it bad practice to return from within a try catch finally block?

So I came across some code this morning that looked like this:  try {     x = SomeThingDangerous();     return x; } catch (Exception ex) {     throw new DangerousException(ex); } finally {     CleanUpDangerousStuff(); }   Now this code compiles fine and works as it should, but it just doesn't feel right to return from within a try block, especially if there's an associated finally.  My main issue is what happens if the finally throws an exception of it's own? You've got a returned variable but also an exception to deal with... so I'm interested to know what others think about returning from within a try block?


Infinitely pairs of positive integers such that $1+2+\cdots+k = (k+1)+(k+2)+\cdots+N$

Prove that there are infinitely many pairs $(k,N)$ of positive integers such that $1+2+\cdots+k = (k+1)+(k+2)+\cdots+N$.   I thought of transforming this into a Pell equation, but I didn't see a way of doing that. Should we show that if the equation is true for some $(k,N)$ it is also true for another?


How do you prevent Gmail from locking you out of your account when travelling?

A relative of mine is currently in a different country and asked me for help as they can't log into their own Gmail account from there. Gmail considers the login attempt suspicious, almost certainly because of the location, and blocks it.   I'm at a non-suspicious location and can still access the account and I can see that Google sent a mail about the suspicious attempt and displays a notification bar warning about it. What I can't see is any way to tell Google that it shouldn't block logins from that location.  How can I prevent Gmail from locking me out like this in a different country? Is there a way to notify it of upcoming trips so that it doesn't consider it suspicious? And is there any way to unlock Gmail once you're in a country it considers suspicious, or do you have to wait until you're home again?


Left and right quotation marks aren't correct when using fontspec

Using XeLaTeX the following document produces the correct result if \setmainfont{Arial} is never called (the quotation marks are proper left- and right-quotation marks). Once I try to set a font (even if it has the proper glyphs!) the output appears improperly as ``Quote me!''.  \documentclass{article} \usepackage{fontspec} \setmainfont{Arial} \begin{document} ``Quote me!'' \end{document}


Let $a<b$ be real numbers. Let $f:[a,b]\to\mathbb{R}$ be a continuous non-negative function. Suppose $\int_{[a,b]}f=0,\text{ then }f(x)=0 \forall x\in[a,b]$    Proof: Suppose for the sake of contradiction $\exists x_0\in[a,b] \text{ such that } f(x_0)= D> 0$  Since the function is continuous at $x_0$, we have $$\forall \epsilon>0, \exists \delta>0 \text{ such that } |f(x)-f(x_0)|\leq\epsilon\text{ whenever } x\in[a,b]\cap(x_0-\delta,x_0+\delta)$$ choose $\delta=\delta_1$ such that $\epsilon=D/2$, then we can say: $$-D/2 \leq f(x)-f(x_0)\leq D/2$$ $$-D/2 \leq f(x) - D$$ $$f(x)\geq D/2>0$$ This implies that $\int_{[a,b]\cap(x_0-\delta_1,x_0+\delta_1)}f >0$  Now since $\int_{[a,b]} f = 0$. we have  $$\int_{[a,b]}f=\int_{[a,x_0-\delta_1]}f+ \int_{(x_0-\delta_1, x_0+\delta_1)} f + \int_{[x_0+\delta_1,b]}f=0$$ $$\int_{[a,x_0-\delta_1]}f+\int_{[x_0+\delta_1,b]}f<-D/2,$$ but this is a contradiction since $f(x)\geq 0$ and hence $\int_{[a,x_0-\delta_1]}f+\int_{[x_0+\delta_1,b]}f\geq 0$  Is my proof correct?


Subgroup half as big as its group is normal.

There is a group $G$ and subgroup $H \subset G$. Their orders:  $$\left | H \right| = n,  \left |G \right| = 2n. $$  How can I prove that $H$ is a normal subgroup?


Retrieve multiple rows from table2 based on single row from table1 in SQL Server

I have two tables and I am using SQL Server.  table1 structure is  Campiagn_Id  Campiagn_Name  1            test1 2            test2 3            test3   and table2 structure is   Campign_Id  EmalList 1           email_list_1 1           email_list_2 3           email_list_3 1           email_list_4 2           email_list_5 2           email_list_6 3           email_list_7 1           email_list_8   Now I want to fetch all the Campiagn_Id and Campiagn_Name from table1 and also all the respective EmalList from table2 in one query.  My Result will look like this  Campign_Id   Campiagn_Name    EmailList  1            test1            email_list_1,email_list_2,email_list_4,email_list_8 2            test2            email_list_5,email_list_6 3            test3            email_list_3,email_list_7   Or any other suggested output will be fine  I think my question is pretty much clear to all of you.


Need some new solution to shrink my SQL Server database log file

I am new bee for SQL Server dba. I need some suggestion to shrink the database log file.  I have tried and found some solution to shrink the file. But i think this is not opted solution for this.  Solution 1:  ALTER DATABASE nologtest2 SET RECOVERY SIMPLE; GO -- Shrink the truncated log file to 1 MB. DBCC SHRINKFILE (nologtest2_log, 1); GO -- Reset the database recovery model. ALTER DATABASE nologtest2 SET RECOVERY FULL;   I am not sure I can do this in production.  Solution 2:    Backup log nologtest2 to disk='C:\MAS\nologtest32_log.trn'   DBCC SHRINKFILE (nologtest2_log, 1);   We can took some transaction log backup and then we can shrink the database. But i believe  it will break the lsn chain. Then we may face some issue in logshipping environment.  I need some very opted solution for reduce the database log file issues.  Note:   I am not very familiar with being a SQL Server dba. If i am ask anything wrong or understandingly please correct me.


Why has everyone on Earth forgotten about the Daleks?

Ok maybe not everyone but in "Resolution" the Doctor has to explain who the Daleks are despite the fact they have invaded Earth many times over the years, certainly anyone in the UK should be aware of them surely!


If $a,b$ are the roots of the equation $2 x^2 -3 x +1 = 0$, find an equation whose roots are $a/(2b +3)$, $b/(2a +3)$   I was practicing quadratic equation questions online but I am stuck on this question.  I found the values of roots $a= 1$, $b= 1/2$


What do "." and ".." mean when in a folder?

when I used ls -a to view hidden files in folder there were 2 hidden files created by default what is the significance of this two files . and ..?  ls -a   Produces  .  ..


Short Sci-Fi story from the '60s, was there any follow up story?

During the '60s and '70s there was a series of Sci-Fi short story collection anthologies. One story was particularly interesting and I am wondering if the story relates to any other, longer, ones. This story started off by describing the oriental game of Go. This was being played out on a galactic scale. Just who was grabbing up planetary systems was not mentioned, but humans were involved. A military expedition lands and explores a planet. One group falls into a gigantic "amoeba". It digests their useless body parts, except for their brains and additional bits and pieces that can help the thing survive. Later, two of the expeditions' "brains" utilize the thing's abilities to eliminate the other (militaristic) brains, so that they can go and live in the wilderness. Was there any follow up story?


Show that  $A \setminus ( B \setminus C ) \equiv ( A \setminus B) \cup ( A \cap C )$  This is an exercise I was trying to do ( not homework ) and I got stuck as follows:  Working from $A \setminus ( B \setminus C )$:  $x \in A \wedge x \notin ( B \setminus C )$ $x \in A \wedge ((x \in B \wedge x \in C) \vee (x \notin B \wedge x \in C) \vee (x \notin B \wedge x \notin C) )$  At this point I'm not sure how to proceed.  Working from the other side $ ( A \setminus B) \cup ( A \cap C ) $:  $ x \in ( A \setminus B) \cup ( A \cap C ) $  $ x \in ( A \setminus B) \vee x \in ( A \cap C ) $  $ ( x \in A \wedge x \notin B ) \vee ( x \in A \wedge x \notin C ) $  $ x \in A \wedge (x \notin B \vee x \notin C ) $  $ x \in A \wedge x \notin ( B \cap C ) $  $ A \setminus ( B \cap C ) $  I could also use some formating tips like how display logical not and how to get the lines to display properly without blank lines inbetween. :-)


Alternating sum of binomial coefficients multiplied by (1/k+1)

I'm trying to prove that  $$\sum_{k=0}^n {n \choose k} (-1)^k \frac{1}{k+1} = \frac{1}{n+1}$$  So far I've tried induction (which doesn't really work at all), using well known facts such as  $$\sum_{k=0}^n {n \choose k} (-1)^k = 0$$  and trying to apply identities like  $${n \choose k} = {n-1 \choose k-1} + {n-1 \choose k}$$  Would anyone be able to point me towards the right method? Should I be looking to apply an identity or is there a method I'm missing?


Something which is not terminal or fatal but lifelong

I'm talking about an incurable disease which is a lifelong affliction but is not fatal.  Usage - She is suffering from a ____________ illness.  I can't use terminal here because terminal means "predicted to lead to death, especially slowly; incurable.".


When I installed Ubuntu 18.04 I didn't keep a partition with Windows, now I want to create a Windows partition. Can it be done?


I am having 2 string and wanted to compare ignoring the case.  Ex:  s1.contains(s2.toLowerCase()) in this case the problem is s1 might be in upper case.  s1.toLowerCase().contains(s2) in this case the problem is s2  might be in upper case.    The only option is i need to change both the string to lowercase to find the contains.   ex: s1.toLowerCase().contains(s2.toLowerCase())   Is there is any utility or string method instead of using this approach as String is immutable.  Thanks.


Who can knight you so that the knighting 'sticks'?

Motivating scenario:  I'm a swell upstanding guy, so Ser/Lord X, an acquaintance of mine, knights me. So I walk into my village tavern; the barkeep asks "What'll it be, friend?" and I tell him "That's 'Ser' to you now. I have been knighted by X!" He sneers and goes "well then, X can call you Ser if he likes."  Actual Question:  What about a person's being knighted makes the knighting 'stick'? Is it the identity/standing of the knighter (is that a word?) ? Is it the fact that many other knights walk around telling people that the new guy is also a Knight? Is it the public nature of the knighting?  The  says  about knighting:     This usually happens when a squire reaches adulthood and his master   judges him worthy of accepting the responsibilities of a knight. A man   who has not been raised in the knightly tradition can also be made a   knight as a reward for service. This is often granted to soldiers or   other smallfolk who have shown bravery or performed a great feat.   Notes:   I'm only asking about Westerosi Andal-culture Knights, around the time of Robert I Baratheon's rule.


I can't find the location of jdk for Java 7 and 8

I have 3 different versions (jdk) of Java installed: 6, 7 and 8. In   bash_profile:  export JAVA_HOME=$(/usr/libexec/java_home -v 1.8) setjdk() {   export JAVA_HOME=$(/usr/libexec/java_home -v $1) }   However, at  $ ls /System/Library/Java/JavaVirtualMachines 1.6.0.jdk   I see only one version. Where are the 2 other ones? What's the location of their jdks?


We have N numbers $x_{k} \geq0 $. What is the $\lim _ { n \rightarrow \infty } \sqrt [ n ] { x _ { 1 } ^ { n } + \ldots + x _ { N } ^ { n } }$ ?  Any hints?


will all those "closed as offtopic" questions be migrated automatically to softwarerecs?

I recently noticed that there is softwarerecs.stackexchange.com (in beta) Will those questions asked across all SE sites and closed as offtopic because they were asking for software recommendations be automatically migrated to the new dedicated site when it will exit the beta?


Is it possible to change my android phone running 2.2.2 to Ubuntu? If not, how can I get Ubuntu for android? Thanks


How many party members can a Giant Eagle carry?

In an , Dungeon Dudes state that the Polymorph spell can be used to polymorph a party member into a Giant Eagle which could carry the entire party if the number of party members was low - but they didn't mention how low.  A party might want to evacuate an area using this technique.  How many total party members can a Giant Eagle carry? (i.e. mounted and carried)


Interesting number theory question(divisibility)

We have an n natural number. Prove, that 2(3n)! is divisible with n!(n+1)!(n+2)!.  I tried to make it look simplier, but can't prove that this is true.


How do I find the last logged system boot and shutdown times?

I'm a Rails developer working on a web application on Ubuntu Server 10.04. Due to internal requirements, I was asked to find the last 10 system boot and shutdown times... I have no clue where to find these details. Could someone help me out?


Get top 5 students for each class in many-to-many relationship

So I'm doing this in MySQL. I have the table students and classes. There is a many-to-many relationship between which I track through the student_class_rel table. Below are the tables and their columns.  students student_id | name | email | GPA  classes class_id | name | room  student_class_rel student_id | class_id  I want to get a student_id of the 5 students for each class with the highest GPAs (along with the class info). How would I do this? For example, this query gets 100 classes and then gets every student_id for all students in that class SELECT *,      JSON_ARRAYAGG(student_id)  FROM classes      INNER JOIN student_class_rel      USING(class_id)  GROUP BY class_id;  LIMIT 100  I want that query, expect the JSON_ARRAYAGG(student_id) only holds the ID to the top 5 students in terms of GPA for each class rather than every student. Also, assume there could be upwards of millions of students and hundreds of thousands of classes and that there are around 50 to 1000 students per class. So performance is key for this query. And I'm aware of hacky type solutions (like make multiple queries, once for each class) but so far those have been WAY too slow. I've spent too much time trying to figure this out, any help is greatly appreciated! (Also let me know if there's any additional info needed).


I have a bash script and sometimes happened that, even my script was scheduled, it was executed two times. So I added few code lines to check if the script is already in execution. Initially I hadn't a problem, but in the last three days I had got it again  PID=`echo $$` PROCESS=${SL_ROOT_FOLDER}/xxx/xxx/xxx_xxx_$PID.txt      ps auxww | grep $scriptToVerify | grep -v $$ | grep -v grep > $PROCESS num_proc=`awk -v RS='\n' 'END{print NR}' $PROCESS` if [ $num_proc -gt 1 ]; then   sl_log "---------------------------Warning---------------------------"   sl_log "$scriptToVerify already executed"   sl_log "num proc $num_proc"   sl_log "--------"   sl_log $PROCESS   sl_log "--------"   exit 0; fi   In this way I check how many rows I've got into my log and if the result is more than one, then I have two process in execution and one will be stopped.  This method doesn't work correctly, though. How can I fix my code to check how many scripts in execution I have?


Search icon/bar. Do you really need search? When do should you use it?

Honestly, all my clients mention or have the search icon in their navigation. They insist on having a search icon. Some website is a obvious No (like a landing page) and some Yes because of the wide spread of data.  The medium sized websites are where I contemplate the most. Yes, it's nice to have a search JUST IN CASE. But by having too much icons or tabs, the website will increase the users memory load (I have a principle or rule to that I follow to always reduce user memory load). I believe a well designed hierarchy can dismiss the use of search icons.   Or do you disagree. Even WITH a good hierarchy (like well structured content), you should still have search.  Do we have any user research or case studies about this?


How to prove $|\sqrt{a_n}-\sqrt\ell|\le \sqrt{|a_n-\ell|}$

says that if $\lim_{n\rightarrow\infty} a_n = l$ where $a_n$ and $l$ are reals, then $|\sqrt{a_n}-\sqrt\ell|\le \sqrt{|a_n-\ell|}$. I can't see how we can this inequality just by squaring and using triangular inequality.    As the other comment suggests, $(\sqrt{a_n} - \sqrt{l})^2 = (a_n - l) + 2 \sqrt{l}(\sqrt{l} - \sqrt{a_n}) < a_n - l$ has to use $a_n \ge l$. But how to derive this inequality without cases?


Let $f(x) =\dfrac{\sin x}{x}$ prove that : $|f^{(n)}(x)|<\frac{1}{n+1}$

let $x>0$ And $f(x) =\dfrac{\sin x}{x}$ prove that for every $n$ :  $$|f^{(n)}(x)|<\frac{1}{n+1}$$    for $f^{(1)}$ we have :  $$\frac{x\cos x-\sin x}{x^2}<\frac{1}{2}$$    for $f^{(2)}$ we have :  $$\frac{x^2(-x\sin x)-2x(x\cos x-\sin x)}{x^2}<\frac{1}{3}$$  Now what ?


I need to refer to a user of a certain service and would like to avoid a perticular gender such as his/her and not use one either. Could I say "The user attempts to maximize own capacity.", instead of "The user attempts to maximize his own capacity"?  Thanks a lot.


Proving $k \binom{n}{k} = n \binom{n-1}{k-1}$

Suppose we want to prove $$ k \binom{n}{k} = n \binom{n-1}{k-1}$$   In the LHS we are choosing a team of $k$ players from $n$ players. Then we are choosing a captain. In the RHS we are choosing a captain from the $n$ players. Then we are choosing the remaining $k-1$ players from the $n-1$ players.   Is this a correct interpretation?


I´m writing a document in parts, and until now I did not have any problems. However, I just compiled the document and it has created a big space between the title of the section and the paragraph. I do not have any warnings. Preambule code: \documentclass[a4paper, twoside, 12pt]{report} \usepackage[letterpaper, left=2.9cm, right=2.9cm, top=2.5cm, bottom=2.5cm]{geometry} \usepackage[spanish]{babel} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{hyperref} \hypersetup{colorlinks=true, urlcolor=violet, linkcolor=Blue, citecolor=Sepia} \usepackage{graphicx} \usepackage{amsmath} \usepackage{amsfonts} +\usepackage[usenames,dvipsnames,svgnames,table]{xcolor} \usepackage[square,sort,comma,numbers]{natbib} \usepackage{fancyhdr} \usepackage{appendix} \usepackage{float} \usepackage{caption}  \usepackage{float} \usepackage{booktabs}     \usepackage{xltabular} \usepackage{calc} \usepackage{makecell} \usepackage{appendix} \usepackage{import} \usepackage[final]{pdfpages} \usepackage{lscape}  \usepackage{longtable} \usepackage{ltablex} \titleformat{\chapter}[hang]{\Huge\bfseries}{\thechapter\hsp\textcolor{gray75}{|}\hsp}{0pt}{\Huge\bfseries}  \section{Contexto educativo} \label{sec:contexto} El contexto educativo actual español, es complejo y su abordaje es difícil pues hay diferencias muy grandes incluso entre centros de la misma zona geográfica. Como docentes, debemos estar atentos a los factores socioeconómicos de nuestros estudiantes, dado que sabemos que éstos juegan un papel clave en su rendimiento académico: son responsables de hasta un 70\% de la nota \citep{garcia2007fracaso, diaz2009educacion}. Ahora bien, siendo conscientes de esos factores principales, también se deben tener otros aspectos en cuenta.


While it's quite standard to infer the second isomorphism theorem from the first one, I've not seen the proof in reverse direction. Is it possible to infer the first isomorphism theorem from the second one? Thank you so much for your help! I tried to let $S := G$ and $N := \ker(\varphi)$, but this leads to a trivial equality.  Here is first isomorphism theorem:  Let $\varphi: G \to H$ be a group homomorphism. Then $G/\ker(\varphi) \cong \operatorname{Im}(\varphi)$.  Here is second isomorphism theorem:  Let $G$ be a group, $S \le G$, and $N \trianglelefteq G$. Then $(S N) / N \cong S /(S \cap N)$.


I'm trying to desarialize a simple json array and bind it a model like this:  JSON  [{     "id": "311697",     "km": "36.00",     "start": "2015-12-07",     "end": "2015-12-07", }, {     "id": "311697",     "km": "36.00",     "start": "2015-12-07",     "end": "2015-12-07", }]   Model  public class SalModel     {         public string id{ get; set; }         public float km{ get; set; }         public string start{ get; set; }         public string end{ get; set; }     }   And, to get the array I'm using:  var json = new WebClient().DownloadString(url);   At this time, the array is perfectly.  But, any time that I'm trying to use json.net library: with methods like:  var result = JsonConvert.DeserializeObject<List<SalModel>>(json);   I can't debug this method, and I get an error like:     Not is possible load the file or assembly 'Newtonsoft.Json'   Version=8.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' and   any of the dependencies. The assembly's manifest definition does not   match the reference to the assembly.


how to store all mobile data in computer without touch mobile screen?? H

How to get my all data(Like contacts,messages,files,etc) when my mobile screen was broken.  I am used Galaxy j7.And I loss my mobile display by some reason.  My phone still working,but i see all things on screen but dont touch on scrren  call was incoming.  But when I connect my phone with my pc via samsung component .then   Please help me  How can I get all my data.


A practitioner of physics is known as a physicist. It seems like it would logically follow that a practitioner of metaphysics would be known as a metaphysicist; yet, in every text I've read, a specialist in metaphysics is referred to as a metaphysician. What is the reason for this distinction?    The OED has an entry for metaphysicist, citing the origin as:     Late 19th cent.; earliest use found in The Ladies' Repository. From metaphysic + -ist, after physicist.   However, its use seems rare.


Bug when marking a question as duplicate

I saw this bug mentioned in image below, where in I was about to mark the question as duplicate..    Has you can see there is no radio buttons to select and go further.. And I am stuck..  Is this a KNOWN bug..  I am using Mozilla Firefox Browser..  Edit:-  As guided by @AzizShaikh, This kind of behaviour is observed when you have already flagged a post. In my opinion, I think the page as I mentioned above should not have come in first place, I mean don't allow the user to enter it doesn't belong here, or it is a duplicate section if his vote has been posted successfully for that section rather than showing go nowhere Im lost Screen ..  Can we do something about this...??


Expansion of the Universe and Conservation of Energy

How the expansion of the universe doesn't violate the principle of the conservation of energy?  If we would put a spring between two objects, the distance would get bigger between them, so would the potential of the spring. And with objects with mass, the same goes for the gravitational potential energy between them...  What am I missing here? Where does this energy come from?


How to check isAccessible() for a dynamic list of field names?

I have a list of field names in an array:  String desiredFieldList; //'AccountId, Id, FirstName ... 'etc String originObjectName; //'Contact', or 'Opportunity' etc  queryString = 'SELECT ' + desiredFieldList + ' FROM ' + searchObjectName + ' WHERE Id=:searchObjectId';             List<sObject> sobjList = Database.query(queryString);   But for security review I need to check isAccessible() for each one of those fields for the given object. Normally I can do this using something like (Schema.sObjectType.Contact.fields.Email.isAccessible()) {} but in this case, since the list is dynamic, I'm not sure how to go about it. Any ideas?


In the following example the double line is shifted a bit to the right:  \documentclass[12pt]{article} \usepackage{tikz} \begin{document} \begin{tabular}{ll} \tikz[baseline=-0.5ex]\draw[thick](0,0)--(3ex,0);&test\\    \tikz[baseline=-0.5ex]\draw[thick,double](0,0)--(3ex,0);&test\\  \end{tabular} \end{document}     Looks like a bug to me, but how can I correct it?   Addition  The shift gets larger with larger double distance values.


I have this part of code that works fine only the arabic issue.  $result = mysql_query("SELECT login, password, name, role FROM qm_users WHERE login = '$login'");  if (!$result) {     die('Invalid query: ' . mysql_error()); } $row = mysql_fetch_array($result); echo $row["name"];   The name row contains arabic name.  The output of echo is ???? ???? ????  In my myphpadmin of xamp server, here the structure


I'm using the Winforms sample on the app hub and everything is working fine except my spritebatch won't draw anything unless I call Invalidate in the Draw method. I have this in my initialize method:   Application.Idle += delegate { Invalidate(); };    I used a breakpoint and it is indeed invalidating my program and it is calling my draw method. I get no errors with the spritebatch and all the textures are loaded I just don't see anything  on the screen. Here's the code I have:      protected override void Draw()     {         GraphicsDevice.Clear(Color.CornflowerBlue);         spriteBatch.Begin();         tileSheet.Draw(spriteBatch);         foreach (Image img in selector)             img.Draw(spriteBatch);         spriteBatch.End();     }   But when I do this:       protected override void Draw()     {         GraphicsDevice.Clear(Color.CornflowerBlue);         spriteBatch.Begin();         tileSheet.Draw(spriteBatch);         foreach (Image img in selector)             img.Draw(spriteBatch);         spriteBatch.End();         Invalidate();     }   then all of a sudden the drawing starts to work! but the problem is that it freezes everything else and only that control gets updated. What can I do to fix this? It's really frustrating.


Edit 2: I called an engineer and paid for his evaluation of the wall. It's not load bearing. Realized that I left out some basics about the house.  This house is built on a raised foundation with cripple walls attaching the floor joists to the foundation. The metal post is attached to the fireplace foundation (which is independent of the houses foundation). There is no foundation (just 3 feet of empty air) underneath the wall I want to remove. The header is just oddly sized.  The header does not connect to the beam.  Edit 1: I decided to punch a hole above the door frame. The header is a 4x6, but the cripple studs do not attach to the Beam(which is load bearing). I was able to get into the "attic" and look at the top plate of the wall. It's a 2x4, nailed to the side of the 2x8 rafter.   I followed the link below for how to identify if your wall is load bearing:   If there is a load bearing wall or beam directly above or below this wall, it is likely load bearing. There is a load bearing beam above the wall, it's supported by it's own metal pole directly to the foundation.  If there's a single top plate, the wall most likely isn't load bearing. I found what looks like a single top plate, nailed to the side of a rafter. There is a gap between the top plate and the roof.  Expose the wall over a doorway or pass-through. If it's a solid 2x6 or greater turned vertically going from the jack stud on one side to the other, there's a good chance the wall is load bearing. If there are only cripple studs on a flat 2x4 to give you something to attach the drywall, it likely isn't load bearing. It's a 4x6, which seems very beefy for the location. However, there is nothing under the king / jack studs but a single 2x4. They aren't tied directly to the foundation.  So, overall pretty confused.   Original post I have a wall in my house I would like to eventually remove completely. But, in the mean time I am just trying to make the opening to the kitchen bigger.  I am trying to figure out if I should stop where I am at, or keep going up, so that the ceiling is continuous between then kitchen and living room.  I don’t think the wall is load bearing, I have access to the crawl space and the wall is not built directly on the foundation. There is a beam that runs the length of the house which I don’t think is supported by the wall because there is metal pole that supports the beam in the living room (see picture).  There was a pocket door in the wall, and I just finished removing that and cutting back all the drywall, but I want to keep going up to the cathedral ceiling…however, I don’t know if the door frame is providing any support for the roof/ ceiling or the beam.  The door frame seems to be two 2x4s, and the header seems to be three 2x4s (as measured with a stud finder) there seems to be one stud going from the beam to the header. According to the stud finder the two 2x4s may go all the way to the roof (past the header)  If I pull off the drywall what do I need to look for to know if I can remove the header and continue opening the wall to the ceiling/roof?  Few pictures


Microphone - external sound card noise suppression

I have the same problem as described , so I tried to solve it with procedure in reply. When everything was installed I changed files according to reply and restarted computer. When computer rebooted I opened up pavucontrol and looked to input devices. I found out that mentioned fix for background noise works only for internal sound card, not for external.    Is there a possibility to enable noise/echo cancellation for external sound card - in image is listed as Audio Adapter Analog Mono?