I'm new (again) to ubuntu. I tried a few years ago and then never actually used it again. Now I'm trying again. I use dreamweaver on Windows because it has a nice side by side view of the code and the WYSIWYG, and can also manage a project. I remembered Kompozer being able to do these things as well, so tried installing it. I'm aware that Kompozer has stopped and is no longer being maintained, but I couldn't find any alternative that has these two options so started to try anyway. Following the instructions on  I managed to get it working, but when I perform a software update it gets removed again. I also get the 'Error Broken count >0' notification, and cannot update until I remove kompozer again.  While installation the only error I get is that libidl0 is not installed. When I try to install it, I get the message that it has been replaced by libidl-2-0:i386 libidl-2-0. I've installed these two packages but it doesn't solve the problem.  Any help for this newbie?


Is it acceptable to change the vid column of a term programmatically in the database?

I need to move some terms from one vocabulary to another by retaining all their data: translations, aliases, and node references.  Is it acceptable to change its vid column value directly in the database? The terms don't have hierarchy relationships which needs to be handled.


I am launching a high-altitude balloon as a part of a physics project I am working on. I know that the amount of helium I need corresponds to about 40 newtons of lift for the launch, which is all I need to know for practical purposes. But if I wanted to account for the ever-changing buoyant force on a weather balloon, I would need a calculus-based model, either an integral or some differential equation.  From the derivation on Wikipedia, I have:  $$ F_b = \oint \sigma dA $$  where $\sigma$ is the Cauchy stress tensor and $dA$ is the surface area in contact with the fluid, or of the latex balloon, in my case. I am an undergrad student and have virtually no knowledge of tensor calculus.   Are there any other calculus-based models for buoyancy? If not, is numeric integration an appropriate strategy for this problem?


Why is it not possible to cover the chess board with 3X1 dominoes if one of the corner squares is missing (e.g. the top right square)?


For groups $G$, $H$, and $K$, assume there exists a left-split short exact sequence: $$ 1 \rightarrow K \xrightarrow{\varphi} G \xrightarrow{\psi} H \rightarrow 1$$ Then $\varphi$ is an injective homomorphsim, $\psi$ is a surjective homomorphism, and ${\rm Im}(\varphi) = \ker(\psi)$. Furthermore, there exists a homomorphism $\pi: G \rightarrow K$ such that $\pi \circ \varphi = id_K$. How can I show that these assumptions imply that $H \triangleleft G, K \triangleleft G, G = HK,$ and $H \cap K = \{ 1 \}$?


I'm getting that we can neither prove nor disprove it, but it seems there's a definitive answer for this. How to prove or disprove this?


Are any of these verb phrases grammatical?        allows the user of modeling and resolving     allows the user to model and resolve      Which version of the following sentence is correct/better?        In particular, it allows to acquire a signal using a sample rate significantly lower than the one dictated by the Nyquist criterion.   In particular, it allows acquiring a signal using a sample rate   significantly lower than the one dictated by the Nyquist criterion.      I searched Google Scholar for "" and "", and it seems people use both more or less with the same frequency.


Good and easy way to share files on local machine

I would like to have a directory that has following properties:    Many users can copy files into it  These files can be deleted/changed by these users (user A can delete/modify file that was copied into this directory)    it cant be done using normal file permissions (because permissions are retained on copy).  Here is what I found on the net:        Some use cases:    Sharing music on local machine  Simple git repository sharing (just make a bare repository writeable to many people) --- i know that there are solutions like gitosis Allow many developers to modify test instance of php app without giving them root (i guess they would copy files) --- I'm leading a team of nonprofit junior developers and I need to keep that one simple!    EDIT  AFAIK setting SGID bit is not enugh, it only affects newly created files --- and basic workflow for these use cases ivnolves copying and other operations (which cleave file's gid unchanged)


I'm going to encrypt the characters Zhu, and decrypt them using RSA. I'm using the public key $\{e, n\}$ and private key $\{d, n\}$. The values of $e$, $d$ and $p$ I get from my textbook: $e = 17$, $d = 53$, $n = 77$.  It works fine when the number is smaller than 76, but in my example below, it doesn't work:  z = 90  h = 104  u = 107  e = 17 d = 53 n = 77  print z,h,u  c_z = z ** e % n c_h = h ** e % n c_u = u ** e % n  print c_z, c_h, c_u  p_z = c_z ** d % n p_h = c_h ** d % n p_u = c_u ** d % n  print p_z, p_h, p_u   The outputs are:  90 104 107 62 69 46 13 27 30     Do you have any idea what's going wrong?


Find the poles and residue of the function $\frac{1}{z-\sin z }$ at $z=0$?

$$\frac{1}{z-\sin z}$$ $$\frac{1}{z(1-\frac{\sin z}{z})}$$  the laurent's transform is also used to simplify the function.  the residue is found a $\frac{2*36*2}{5}$ but the actual answer is given as $\frac{3}{10}$ the residue is given as The solution is incorrect and also the pole is of the order 3.


The sum of the first n inverse square roots is less than square root of $n$

I'm trying to prove the following proposition by induction for all $n \in \mathbb{N} $ and $n \geq 2 $ $$ \sum_{j=1}^{k} \frac{1}{\sqrt{j}} \gt \sqrt{k}  $$ However, I haven't been able to find a way to insert the induction hypothesis into the induction step to prove that this inequality holds for $n = k +1$. A detailed,  step-by-step explanation would be very much appreciated.


Is there another Stack Overflow website for machine learning/artificial intelligence topics?

It seems that Stack Overflow is more concerned about programming techniques and coding skills (which is a good thing!).. But I am asking if anyone knows another "Stack Overflow"-like site, but which is mainly concerned about Machine Learning and AI?   BTW: I have asked this question after nearly a week without an answer for


Make aplication always on Bottom (pinned to desktop, behind all other apps) in C++/WinAPI

I have some C++/WinAPI application.   I want it to "replace" Windows 7 desktop (so it will be displayed always on bottom of all applications, just before desktop. Moreover, when user will click somewhere on my application, I want to receive it (in a normal way) but my application must stay on bottom.  I have found related post for C#, but I didn't find it as a solution to my problem:    Additional question: can I make so for other than mine (I have .exe only) application? By it I mean that my application will set other application on bottom like I described.


How to fix "Duplicate sources.list entry" warning?

Every time I try to do some update (sudo apt-get update) it says:   Reading package lists ... ready W: Duplicate sources.list entry http://archive.canonical.com/ubuntu/ need /partner amd64 Packages (/var/lib/apt/lists/archive.canonical.com_ubuntu_dists_precise_partner_binary-amd64_Packages) W: Duplicate sources.list entry http://archive.canonical.com/ubuntu/ need /partner i386 Packages (/var/lib/apt/lists/archive.canonical.com_ubuntu_dists_precise_partner_binary-i386_Packages) W: You have to run apt-get update to correct these problems   sources.list:   ls /etc/apt/sources.list.d/ as requested:  milton@milton-HuronRiver-Platform:~$ ls /etc/apt/sources.list.d/ emesene-team-emesene-stable-precise.list precise-partner.list precise-partner.list.save upubuntu-com-chat-precise.list upubuntu-com-chat-precise.list.save


Null pointer exception when trying to access method (java)

I am developing some code in Java but facing a problem with a NPE.  It happens when I try to use a method in another class.  Here is my code :  public class MyClass{      private Attributes attr = null;  public static void main(String [ ] args) throws ParseException, SAXException, IOException, ParserConfigurationException {          MyClass main = new MyClass();          Options options = main.parseCommandLine();          CommandLineParser parser = new BasicParser();         CommandLine cl = parser.parse(options, args);         main.configureAttributes(main);     }  private void configureAttributes(MyClass main, CommandLine cl) throws ParserConfigurationException, SAXException, IOException {                  String[] attributes = cl.getOptionValues("a");         Integer tag = null;          for(int i = 0; i < attributes.length ; i++) {             String[] parts = attributes[i].split("=");             String tagName = parts[0];             String value = parts[1];              tag = Integer.parseInt(tagName,16);                                          this.attr.setString(tag, DICT.vrOf(tag), value);         }     }            }      But I am getting an NPE on the last line : this.attr.setString(tag, DICT.vrOf(tag), value);  I have all the right imports. It is a Maven project so I also added the dependency to my pom.xml.   Thanks a lot for your help !   V.


Electric circuits in TeX, LaTeX, and Friends

What are some ways to draw electric circuits in TeX systems?  I'm making this community wiki since I haven't found a question related to this.  I was thinking along the lines of . What do you think of that? Other examples are more than welcome, of course.


Can I cross post my question from one site to another?

Is there a feature that lets me cross post one of my questions from Stack Overflow to the Web Applications SE?  I want my question to appear on both sites, but I don't want to have to rewrite it.


Is the set of all strings with countably infinite length bijective to $[0,1]$?

I heard that the set of all strings with countably infinite length in two-element alphabet (such as $ \{ a,b \} $ ) is bijective to $[0,1]$. I wonder why? What is the general conclusion? Thanks!


Do I need a visa to go out of the airport in Seoul for sightseeing?

I'm going to Mongolia and have a 14-hour layover in Seoul with Asiana Airlines from the USA. Do I need a visa to go out of the airport for sightseeing? I'm a Mongolian passport holder.


A population has a density function given by f(x)=(k+1)x^k 0<x<1 0 otherwise For n observations,x1,x2,x3...xn made from this population, find the maximum likelihood of k. Here's my attempt: I have got k=-1-n/(product of log xi fron i=1 to i=n). Im not sure if it's correct. Can somebody help?


Cast from interface to child class of class implementing the interface

We have a Models_Manager class in our project with map of IGameObjects          std::map<std::string, IGameObject*> gameModelList;   We add objects like this  Models::Sphere* sphere = new Models::Sphere(); sphere->SetProgram(Shader_Manager::GetShader("textureShader")); sphere->Create(); gameModelList["fireball"] = sphere;   Later we would like to access the sphere again. To do that we would like to cast from IGameObject to Sphere. How? Thank you  inheritance:  class Sphere : public Models::Model class Model :public IGameObject


I'm trying to minimize it to tray but couldn't find any option, can someone help? I checked everywhere but couldn't find a way to minimize it to tray.


How do you interpret the result of pca and biplot?

PC1   PC2   PC3   Electricity -0.48  0.12 -0.77  Fertility    0.49 -0.04  0.11  Life_exp    -0.50 -0.01  0.51  Pop_dens    -0.12 -0.99 -0.07  Child_mort   0.51 -0.08 -0.35    Questions: Do you need to use absolute value for PC1?  I am kind of confused. Electricity and Life exp are roughly equal weight, Child_mort and Fertility are roughly equal weight as well. (If I get it right) If you use absolute value for PC1, does that mean you have four features I just mentioned are roughly equal weight?  How do you interpret PC2?


Where to start with statistics for an experienced developer

During the first half of 2015 I did the  (by Andrew Ng, GREAT course). And learned the basics of machine learning (linear regression, logistic regression, SVM, Neuronal Networks...)  Also I have been a developer for 10 years, so learning a new programming language would not be a problem.  Lately, I have started learning R in order to implement machine learning algorithms.  However I have realized that if I want to keep learning I will need a more formal knowledge of statistics, currently I have a non-formal knowledge of it, but so limited that, for example, I could not properly determine which of several linear models would be better (normally I tend to use R-square for it, but apparently that is not a very good idea).   So to me it seems pretty obvious that I need to learn the basics of statistics (I studied that in uni but forgot most of it), where should I learn, please note that I don't really need a fully comprehensive course, just something that within a month allows me to know enough so I can get eager and learn more :).  So far I have read about "", any other suggestion?


Sound notification settings, each room a different config

Mods: I believe the  you linked is the one duplicated. This suggestion was made 1 year ago, whereas the one that you may think it's older, has been made just 4 days ago.   Say for example I have 3 rooms opened as pinned tabs in my chrome (or browser).  I find the first room interesting and there's few people in there, so I set "Sound notifications: visible room".    Since changes in sound notifications are applied to all rooms at once, the problem comes when the other two rooms start spamming the sound (lots of people) as new messages are coming, and whenever I switch tab to them, sometimes they come up with something interesting or worth talking about... and sometimes not.  But what if I want to make this setting work for one specific room, and then the ones that I don't care at all I'd like to make them sound only when I'm mentioned or totally mute them.


Inserting an image after an image remove any new lines in between. Example:


getAuthentication Function is undefined on jQuery

So I am not able to target my functions inside my jQuery object at all and I want to see if someone is able to assist me with this: I keep getting the following error: getAuthentication is not defined when I attempt to use it on my on click call - I want to be able to click #insta-auth and have the current window open the auth_url inside the getAuthentication() function. So here is what I have: <button id="insta-auth" class="loginBtn loginBtn--facebook">Authenticate Instagram</button>  <script> // Setup our Instagram object var FHInstagram = window.FHInstagram || {}; FHInstagram.name = "cwd";  (function ($, window, document, undefined) {          // Define our Instagram object     const Instagram = {         APP_ID: '32222',         API_URL: 'https://graph.instagram.com/',         API_OAUTH: 'https://api.instagram.com/oauth/authorize',         API_OAUTH_TOKEN_URL: 'https://api.instagram.com/oauth/access_token',         API_FIELDS: 'caption,media_url,media_type,permalink,timestamp,username',      initialize: function (options, element) {         this.element = element;         this.$element = $(element);         (this.accessToken = $.fn.FHInstagram.accessData.accessToken), (this.options = $.extend({}, $.fn.FHInstagram.options, options));          this.messages = {             defaultImageAltText: "Instagram Photo",             notFound: "This user account is private or doesn't have any photos.",         };          this.getPhotos();     },      // Call the API to grab all of our items     getItems: function () {       return $.ajax({         type: "GET",         dataType: "jsonp",         cache: false,         url: this.API_URL + 'me/media?fields=' + this.API_FIELDS + "&access_token=" + this.accessToken,       });     },      // Authenticate Instagram     getAuthentication: function () {         auth_url = API_OAUTH + "?client_id=" + this.APP_ID + "&redirect_uri=" + encodeURIComponent(window.location.origin) + "&scope=user_profile,user_media&response_type=code"         return auth_url;     },   };    jQuery.fn.FHInstagram = function (options) {     if (jQuery.fn.FHInstagram.accessData.accessToken) {       this.each(function () {         var instagram = Object.create(Instagram);         instagram.initialize(options, this);       });     } else {       $.error("You must define an accessToken on jQuery.FHInstagram");     }   }; })(jQuery, window, document);  $('#insta-auth').on('click', function() {     window.location = getAuthentication(); }); </script>


Copying bytes to struct gives wrong values

I'm trying to copy a byte array to a struct:  Actual bytes:  00000000 | ff 53 4d 42 72 00 00 00 00 08 01 c8 00 00 00 00 | .SMBr...........   Destination structure:  typedef struct {     uint8_t protocol[4];     uint8_t command;     uint32_t status;     uint8_t flags;     uint16_t flags2;     uint16_t pidHigh;     uint16_t somethingElse; } MyStruct;   But for some reason, bytes in myStruct.status are not what they're supposed to be:  printf("%x", bytes[4]);   => 72          // Ok  printf("%x", myStruct.command);   => 72          // Ok  printf("%02x%02x%02x%02x", bytes[5], bytes[6], bytes[7], bytes[8]);   => 00000000    // Ok  printf("%"PRIX32, myStruct.status);   => C8010800    // What?! Why did it take the next 4 bytes... and reversed them?   Code used to copy those bytes:  MyStruct myStruct;  memcpy(&myStruct, bytes, 16);   This code is running on ARM (iPhone 5), which might explain the little-endianness of the output, but it doesn't explain why there's a +4 bytes offset in the bytes that've been copied.  What's going on here?


i am write this code for my android app.      btn =(Button)findViewById(R.id.button);     et =(EditText)findViewById(R.id.editText);     tv =(TextView)findViewById(R.id.textView);      btn.setOnClickListener(new View.OnClickListener() {         @Override         public void onClick(View v) {             String name =et.getText().toString();             String a = "a";             String a1 = "ａ";             String b = "b";             String b1 = "ß";             if(name.equals(a)){              tv.setText(a1);              }             else if (name.equals(b)){                 tv.setText(b1);              }         }     });  }   }  and write a in edit text don't show ａ in text view and write b in edit text don't show ß in text view please help


edge cover number + matching number = $|V|$

Given a connected graph $G=(V,E)$, a theorem states that edge covering number + size of a maximum matching = total number of vertices in $G$.  I'm just wondering how I can prove this theorem? The proof was never given in class.


What term refers to those who adhere to scientism?

What do you call to a person who places dogmatic faith in the methods of science?  What is the agent noun (eg biologist for biology) corresponding to scientism? Here scientist would be confusing.  I'm looking for what I intuitively want to call "scientist", but that means the opposite of what I'm looking for.


I'm not a zombie fan (other than the 60s rock group), so I haven't followed zombie movies too closely, but there's one question I have that I have yet to see answered here and answers seem to vary.  And this isn't just about zombies starving.  I know there are different kinds of zombies, but still, they're all dead.  So what happens to a zombie that doesn't find humans with brains they can eat?  It's not like the zombie will die.  And, on a bigger scale, this brings up the question about what'll happen in other situations, like if a zombie were in a vacuum tank that was slowly depressurized so it didn't blow up, but would still find its skin and eyes and lungs boiling off.  Other than being dismembered or blown up, is there some way zombies just stop functioning?  And if they stop functioning, say, by starving, can they be force fed or somehow returned to normal "zombie-ness?"


Recenly I started experimenting with Ubuntu on my laptop (HP Pavilion X360). I chose the newest Ubuntu Gnome, because it's my favourite desktop environment. It looks really great for me, but there are some issues.  I left my laptop powered on few times. There are no "critical battery status" power options in my settings. But I think it should not recovering journal and start from 1% after plugging in to the wall.  What can I do to force my computer to hibernate or power off if battery is at, for example, 10%?  Thanks!    Excuse me, I do not think that my question is duplicate, as marked by moderator. My question is about making computer to perform ANY action and not let battery go to complete zero. And linked question is about changing behavior - sleep instead of shutdown.  My computer does not even shutdown. Does not hibernate. Just goes out of power and turns off.


how to install amd rx vega 64 in ubuntu 16.04

I'm totally new to Ubuntu, and I have tried to install my AMD RX Vega 64 the way it says on AMD's site, but I can't make it work. I have done this:  sudo apt update sudo apt dist-upgrade sudo reboot  cd /tmp tar -Jxvf amdgpu-pro-17.40-483984.tar.xz.tar  cd amdgpu-pro-17.30-NNNNNN ./amdgpu-pro-install –y sudo reboot  sudo usermod -a -G video $ my user  sudo apt install -y rocm-amdgpu-pro  echo 'export LLVM_BIN=/opt/amdgpu-pro/bin' | sudo tee /etc/profile.d/amdgpu-pro.sh   This is what the terminal shows me when I try to see if my GPU is installed:  ~$ dpkg -l amdgpu-pro Deseado=desconocido(U)/Instalar/eliminaR/Purgar/retener(H) | Estado=No/Inst/ficheros-Conf/desempaqUetado/medio-conF/medio-inst(H)/espera-disparo(W)/pendienTe-disparo |/ Err?=(ninguno)/requiere-Reinst (Estado,Err: mayúsc.=malo) ||/ Nombre         Versión      Arquitectura Descripción +++-==============-============-============-================================= ii  amdgpu-pro     17.40-483984 amd64        Meta package to install amdgpu Pr  ~$ sudo lshw -C video   *-display                       descripción: VGA compatible controller        producto: Vega 10 XT [Radeon RX Vega 64]        fabricante: Advanced Micro Devices, Inc. [AMD/ATI]        id físico: 0        información del bus: pci@0000:03:00.0        versión: c1        anchura: 64 bits        reloj: 33MHz        capacidades: pm pciexpress msi vga_controller bus_master cap_list rom        configuración: driver=amdgpu latency=0        recursos: irq:27 memoria:c0000000-cfffffff memoria:dfe00000-dfffffff ioport:ee00(size=256) memoria:fde00000-fde7ffff memoria:c0000-dffff  -$ clinfo Number of platforms                               0  ~$ sudo lspci  -v -s  $(lspci | grep ' VGA ' | cut -d" " -f 1) 03:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Vega 10 XT [Radeon RX Vega 64] (rev c1) (prog-if 00 [VGA controller])     Subsystem: Advanced Micro Devices, Inc. [AMD/ATI] Device 0b36     Flags: bus master, fast devsel, latency 0, IRQ 27     Memory at c0000000 (64-bit, prefetchable) [size=256M]     Memory at dfe00000 (64-bit, prefetchable) [size=2M]     I/O ports at ee00 [size=256]     Memory at fde00000 (32-bit, non-prefetchable) [size=512K]     [virtual] Expansion ROM at 000c0000 [disabled] [size=128K]     Capabilities: [48] Vendor Specific Information: Len=08 <?>     Capabilities: [50] Power Management version 3     Capabilities: [64] Express Legacy Endpoint, MSI 00     Capabilities: [a0] MSI: Enable+ Count=1/1 Maskable- 64bit+     Capabilities: [100] Vendor Specific Information: ID=0001 Rev=1 Len=010 <?>     Capabilities: [150] Advanced Error Reporting     Capabilities: [200] #15     Capabilities: [270] #19     Capabilities: [2a0] Access Control Services     Capabilities: [2b0] Address Translation Service (ATS)     Capabilities: [2c0] #13     Capabilities: [2d0] #1b     Capabilities: [320] Latency Tolerance Reporting     Kernel driver in use: amdgpu     Kernel modules: amdgpu  ~$ glxinfo | grep -i vendor server glx vendor string: AMD client glx vendor string: AMD OpenGL vendor string: Advanced Micro Devices, Inc.  ~$ lspci | grep VGA 03:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Vega 10 XT [Radeon RX Vega 64] (rev c1)


How do I fix apt-add-repository "no such option: --allow-unauthenticated"?

I'm running 18.04, and I'm attempting to install Wine, which has an unsigned repository. I tried bypassing this by using the --allow-unauthenticated flag, but I get an error  $ sudo apt-add-repository https:/dl.winehq.org/wine-builds/ubuntu/ --allow-unauthenticated Usage: apt-add-repository <sourceline>  apt-add-repository is a script for adding apt sources.list entries. It can be used to add any repository and also provides a shorthand syntax for adding a Launchpad PPA (Personal Package Archive) repository.  <sourceline> - The apt repository source line to add. This is one of:   a complete apt line in quotes,   a repo url and areas in quotes (areas defaults to 'main')   a PPA shortcut.   a distro component    Examples:     apt-add-repository 'deb http://myserver/path/to/repo stable myrepo'     apt-add-repository 'http://myserver/path/to/repo myrepo'     apt-add-repository 'https://packages.medibuntu.org free non-free'     apt-add-repository http://extras.ubuntu.com/ubuntu     apt-add-repository ppa:user/repository     apt-add-repository ppa:user/distro/repository     apt-add-repository multiverse  If --remove is given the tool will remove the given sourceline from your sources.list  apt-add-repository: error: no such option: --allow-unauthenticated   I've seen other users on the site with the same version of Ubuntu claim this option works. What am I doing wrong here?


I would like to identify a SF book (possibly a part of a series) which I read in late 80s or in the 90s. What I remember from the story:   it happened on a planet (probably Earth, but I'm not 100% sure) inhabited by humans, which is under some kind of dictatorship or other unpleasant regime a protagonist is found with amnesia (I think in a forest), some ordinary family helps him the government is looking for him it is revealed that he is a pilot of an interstellar space ship, who was sent from another planet to investigate what happens on the planet he arrived, but his space ship was shot down by the government upon arrival the government knows that if the protagonist reveals the true nature of their regime to his home planet, an army will be sent to liberate the planet inhabitants from the regime the government gets the pilot and pretends to be friendly; they want to get the information which planet sent him - so they will be able to stop the liberation expedition eventually the protagonist regains his memory, tricks the government, and escapes to his home planet   This is all I remember - I think I have borrowed the book from a local library. I would be grateful for any help.


Can't boot ubuntu anymore after Windows 10 update

I used to be able to select either the Windows Boot Manager or Ubuntu when booting my ASUS laptop.  Since Windows 10 has updated, it now automatically chooses the windows boot manager. Ubuntu is the first in the boot priority list, and even if I press escape during startup to manually choose a boot device, and then choose ubuntu, it still loads up the windows boot manager.  I have disabled secure boot, fast boot, and hibernation. This all used to work until the latest Windows 10 update. Any ideas?


How to apply a macro to each column of a table

I want to apply a macro to all the cells of a column with the cell content as the input to the macro. Is this possible?  For example if the cell contents have the word TEST, the macro should take TEST as its argument.


We know that the entire matter has a property called mass. Charge is also a property of matter. If negative charge can exist, why don't negative mass exist?  Also, like charges repel each other. Then why like masses attract each other?


Problems installing Ubuntu 12.04 alongside Windows XP

I have been trying to install Ubuntu for the last few days, but somehow it doesn't work. During the installation I keep getting this message:  BusyBox v1.18.5 (ubuntu 1:1.18.5-1ubuntu 4.1) built-in shell (ash) Enter 'help' for list of built-in commands.  (initramfs)


Does an accelerometer sensor measure the distance accurately when it is used inside a car? and what is the misjudge percentage when it is compared with its odometer?


So here's the thing. I'm trying to make a sailshade. I'm going to be making many of these over time, so I want to find a fast and accurate way of doing this. Basically, a sailshade is normally 3 or so fixed points with a curve between the fixed points.  That's how most of them look, although some are more complex.  What i'm trying to do is make a plane that i can shape and stretch to how it needs to be, that way i don't have to constantly modify all the vertices. Sadly, i'm not an expert at Blender yet, and was wondering if there was some way to 'control' the curves that i put on the plane? For example, i could have a square plane with 8 'control points'. 1 on each point (4) and 1 between each point (4) to control the curves.  I'm pretty sure his is possible... but I haven't quite figured it out yet... Anyone able to help?  Please and thank you!  That isn't exactly the solution i was looking for, using a cloth modifier doesn't really work for what i'm doing.


I am attempting to manually encrypt a plaintext message (message = MI) using RSA.  I receive an answer of: 33,264 and 21,164. When I enter the same plaintext into CrypTool to confirm that my calculations were correct, I receive a different answer:  What am I doing incorrect? How can I obtain the same result as CrypTool?


How to change tabularx 'X' command to raggedRight

I want to use the X command from tabular X to evenly space a tables columns. However, the individual comulns are quite narrow, and this makes the justified spacing look really bad.   Is there anyway to force the X command to be raggedRight instead of justified? I think I could do this on a cell by cell basis, but I have a massive table, and I dont want to do this for every cell. So, is there an alternate command, or some way of creating a new command which would keep the columns spaced evenly, but ragged right?


How to create toggle buttons in blender GUI from dynamic list of items?

I would like to export selected Armature actions through blender export file gui. So the user would be allowed to select the actions from the list in the GUI (shown in the image) after the File->Export->ES3D has been selected.   I have tested PropertyGroups, but they seem to be quite read only once the script is running. What would be the correct way of adding arbitrary amount of toggle buttons in the export file draw function (sample code with PropertyGroups below) after the File->Export->ES3D has been selected ?   Thank you,     -Mika  Example GUI    The example "pseudo" code creates a PropertyGroup when the script is loaded to the Blender (in the blender startup) and I can not change the toggle buttons after that anymore.   class PresetsCollection(bpy.types.PropertyGroup):     actions = {}         index = 0     test = ES3D()     for a in test.getActions(bpy.context):         locals()['action_%s' % index] = BoolProperty(name=a, default=False)         actions['action_%s' % index] = a         index += 1  class ExportES3D(bpy.types.Operator, ExportHelper):     bl_idname = "export_object.es3d"     bl_label = "Export ES3D"     bl_options = {'UNDO', 'PRESET'}      filename_ext = ".es"      def draw(self, context):         layout = self.layout         layout.label("Actions")         row = layout.row(align=True)         # List          box = row.box()         e = context.scene.presets         for a in inspect.getmembers(e):             if a[0][:7] == "action_":                 box.prop(e, a[0])      def execute(self, context):         # Export filename must be set         if not self.filepath:             raise Exception("filepath not set")          # Gather all export data         e = context.scene.presets         selected_actions = []         for name,data in inspect.getmembers(e):             if name[:7] == "action_":                 if data == True:                     selected_actions.append(e.actions[name])          # Export the ES3D         test = ES3D()         test.convert2es(context, selected_actions, self.filepath)          # All done         return{'FINISHED'}


I have a 64bit processor, but just installed ubuntu 18 32bit, how can I quick update the OS into 64bit, no need re-install from scratch? Thanks a lot!


Can a Dungeons and Dragons 4e character take D&D Essentials feats?

In Heroes of the Fallen Lands many of the core feats have been streamlined, some paragon feats have become available to all levels.  Before that feats were tiered by level: heroic, paragon, epic.  Can a character that was made before the Heroes of the Fallen Lands publication use Heroes of the Fallen Lands feats?


Determining statistical probability related to a string event of dates

I have been teaching statistics for many years at the university level - but this question is beyond my understanding - due to the variables involved.  Several years ago, I was entertaining a relocation to a different area and a different way of life. I was very unsure and skeptical - as the change would have followed my heart - but not the rational practicality of my head.  Then a sequence of events took place - none of which were of my own choosing. I want to know what the statistical probability is of these events occurring by chance alone. They are as follows:  1) The property I had wanted to buy was already under contract, yet came back on the market on the anniversary of my father's death.  2) My immediate offer to purchase was accepted by the sellers (two days later) on the anniversary of my grandmother's death.  3) My loan was approved by my bank on the anniversary of my late grandmother's birthday (7 days later)  4) Our closing date was set by the title company on the anniversary of my late, great-aunt's birthday.  5) The permit for our business (for which we brought the property) was approved and issued on my parent's anniversary.  Can the probability of these dates be statistically determined?


do_action pass array argument as reference not copy

I have successive hooks to an action which are passed an associative array like: do_action($array)  I am trying to update the values in this array in the multiple add_action calls, however each add_action is getting a copy of the passed array, not a reference.  How do I pass a reference? I am using PHP 5.


Is it OK to trickle charge a disposable battery

So I am playing around with designing a UPS when another question hit me.  If I have a source feeding a small amount of current into a non-rechargeable battery is this OK?  By OK, I mean is this acceptable as a circuit to be put into products.    The battery will self discharge and begin to receive very small amounts of leakage current. After reading a bit I was surprised to find that you can actually recharge non-rechargeable batteries(disposable).   What scared me: Wikipedia quotes, "manufacturers do not support recharging, and warn that it may be dangerous". So this of course makes me worry about using this simple circuit. My intention is for the consumer to not use a rechargeable battery.


How do I interpret the completeness in Statistics in practice?

I'm aware of the mathematical definition of complete statistics, but I'm pretty confused about what does the completeness really mean. It would be better to have a practical example from you guys.  Regards, Li


How do you determine if a given method for checking normality assumptions is appropriate?

If you intend to run some analysis like an ANOVA or linear regression that assumes normality, how do you determine if a given method for checking normality is appropriate? What kinds of issues should it check for? What tolerance should the normality test have? I often have cases with >10k values, and I know that Shapiro-Wilk rarely works for such large datasets. There are other alternatives, but what criteria should be used to evaluate the other options? What I don't want to do is try a bunch and pick the one that best supports my hypothesis (that the data is normal). From my understanding, the main reason for normality testing is that deviating too far from a normal distribution can bias some analyses to inflate/deflate the alpha. Is that correct? If so, could a bootstrapped approach be a general (albeit slow) alternative to normality testing?  Scale the residuals from each condition to mean=0, sd=1. Sample ~100 values from those scaled residuals, and run a t-test on the sampled values Repeat the previous step ~10k times Calculate the proportion of repetitions with p-value < alpha. The difference between that proportion and alpha is indicative of the false positive rate due to the residuals' distribution. So if alpha is 0.05 and the proportion of p-values<alpha is 0.0506, you conclude that the distribution is unlikely to impact the false positive rate.  As much as I would like someone to just say, use [method X]. I'd rather get a general sense to make the decision myself. Edit:  suggested by @nick-cox below generally answers the question


How can I fix my Dell laptop's wireless connection?

I've just installed Ubuntu on my Dell laptop, and the wireless is not working.  How could I fix it ? Is there any driver I should install?  Note: I'm also running windows 7 on the same laptop and the wireless connection works just fine.  Any suggestion would be helpful. Thanks!     EDIT : Wifi card model description : vendor : broadcom corporation product : BCM4312 802.11b/g LP -PHY version  : 01 configuration :   driver = b43 -pci-bridge latency=0


If God exist then why people who didn't do any crime or Sin (particularly children or new born baby) are getting deadly disease? Because The pain they are getting is their own pain that God is not feeling instead of them.


Probability associated with experiencing all outcomes

Assume last year I commuted to work in a taxi, and suppose if there are $n$ taxis in the fleet I used. If I took one of these taxis every trip at random and with replacement, then what is the number of trips I need to make in order to use every taxi in the fleet?


An exponential "rearrangement" inequality: $x^x+y^y>x^y+y^x$

Let $x,y$ be distinct real numbers greater than $0$. Prove       $$x^x+y^y>x^y+y^x .$$   Source: I think it comes from a Russian test given in 1991, but I haven't been able to verify this.


I'm trying to prove that isometries $T:\Bbb R^2\to\Bbb R^2$ are linear (usual Euclidean metric). It is assumed that $T(0)=0$. I think that I have proved that $T(\alpha v)=\alpha T(v)$, but I'm having problems with sum.  Context: I have defined $\Bbb R^2$ as a set of points and a set of free vectors.The dot product is like that $(a,b)\cdot(c,d)=ac+bd$ and the module of a vector $v$ is $\sqrt{v\cdot v}$. I have defined lines as set of points $\{P+t\vec v:t\in\Bbb R\}$. I have managed to prove triangular inequality. Just that.  My idea is proving that $$\|Tu+Tv-T(u+v)\|^2=0$$ but I get dot products like $Tu\cdot T(u+v)$. I have tried other expresions like $$\|T(u+v)-Tu\|^2,$$ getting the same problem. On the other hand, the trick $$u\cdot v=\frac12\left(\|u+v\|^2-\|u\|^2-\|v\|^2\right)$$ leads me to a circular reasoning, bacause I have to compute $T(u+v)$. Any ideas? Note: I can't deal with continuity in $\Bbb R^2$. This is for a High School student.


How to Delete All Debug Apex logs in Apex?

I'm trying to delete the complete Apex debug logs but getting DML operation Delete not allowed on List<ApexLog>.  Code:  List <Apexlog> loglist = [Select Id from Apexlog]; delete loglist;   Please provide an idea to delete complete debug logs in code.


Calendar problems with iOS 7 right after updating the device

Calendar on iPhone 4s does not work with iOS 7. It stopped working 2 days ago. It won't open on the phone. iCloud is working fine and so is iCal on my MacPro.  How do I get it to work again?


If possible please add target blank for each link references in question. It's will be nice if we click it, we didn't leave stackoverflow website.


proof that $\sqrt(2)$ is irrational / why is the fraction irreducible

The proof that shows the square root of 2 is irrational starts by assuming, for a contradiction, that it is rational. It starts with the assumption that it can be written as p/q where p and q have no factors in common.  Why do we start by assuming p and q have no factors in common? If we went on to find that they have factors in common, we could cancel them later on?


Is there a way to automatically remove duplicates from the generated Nomenclature?  E.g. adding multiple times:  \nomenclature{HTML}{HyperText Markup Language}   in your TeX file should generate only one entry in the Nomenclature.  This minimal example shows what happens:  % This is test.tex \documentclass{book} \usepackage{nomencl} \makenomenclature \begin{document}  Some text \nomenclature{HTML}{HyperText Markup Language}  \newpage \chapter{Chapter}  Some text \nomenclature{HTML}{HyperText Markup Language}  \printnomenclature \end{document}   The nomenclature was generated with makeindex test.nlo -s nomencl.ist -o test.nls and here is the test.nls:  \begin{thenomenclature}  \nomgroup{A}    \item [{HTML}]\begingroup HyperText Markup Language\nomeqref {0}         \nompageref{1}   \item [{HTML}]\begingroup HyperText Markup Language\nomeqref {1.0}         \nompageref{3}  \end{thenomenclature}   Problem comes with lines at test.nlo are not identical:  \nomenclatureentry{aHTML@[{HTML}]\begingroup HyperText Markup Language\nomeqref {0}|nompageref}{1} \nomenclatureentry{aHTML@[{HTML}]\begingroup HyperText Markup Language\nomeqref {1.0}|nompageref}{3}   In my real tex \nomeqref's content is \relax x.x for duplicate entries.


Are there any rules for centring lower case letters like a 'd' in a circle? To me it doesn't look right unless it's moved more to the left but then it's not in the middle.


How would one construct a NxN crossbar switch from solid state components?

I was trying to construct a 10x10 cross bar switch using relays -- something like:    Question: is it possible to construct this by using solid state components (power transistors?) -- and if it is how would one go about doing it?  Would appreciate any pointers.  NOTES:   The target application was to be able to wire together discreet analog components: say OpAms, diodes, transistors I was trying to build a hybrid analog-digital computer -- just for fun -- where the digital side would wire together the analog components using a crossbar switch. Using relays becomes very expansive very quickly say if I wanted to have a 100x100 crossbar. An attempt at specs: V=36V, Imax = 10mA R ~= 0 (approaching zero -- a few Ohms should be fine) f ~= 0 Hertz [you switch once every few seconds or minutes] -- Note these are what I think would be ideal, a subset or partially covering set should do for now too So I the cross-bar or equivalent switching fabric could be an Integrated Circuit The Analog components (discreete) that the will connected to the switching fabric will include: Resistors, Capacitors, OpAms, Transistors, Diodes, Differential Amps, Voltage Summers (if I remember from my undergrad?) A typical example of circuit that I want to wire together using such a cross bar is below:


Why is there so much fear surrounding LiPo batteries?

I've been trying to design a charging system for a small robot powered by a 2S 20C  (LiPo) battery. Were I to trust everything I read online, I would believe that the LiPo will kill me in my sleep and steal my life savings. The common advice I read, if you are brave enough to use LiPo batteries, is "never leave unattended", "never charge on top of a flammable or conductive surface", and "never charge at a rate faster than 1 ".  I understand why this is prudent, but what is the actual risk with LiPo batteries?  Nearly every cell phone, both Android and iPhone alike, contains a LiPo battery, which most people, including myself, charge while unattended—often-times while left on a flammable or conductive surface. Yet you never hear about someone bursting into flames because their cell phone exploded. Yes, I know there are freak accidents, but how dangerous are modern LiPo batteries? Why do so many online commenters treat stand-alone LiPo batteries like bombs waiting to go off, but don't even think twice about the LiPo sitting in their pocket?


When I was typing $\cos(i)-i \sin(i)$ into the calculator, I found out that it is equal to e (Euler's Constant). I was amazed by that "discovery" so I checked in on the internet and there was no results. Someone please explain the connection of imaginary numbers and Euler's Constant.


How do you move all files (including hidden) from one directory to another?

How do I move all files in a directory (including the hidden ones) to another directory?  For example, if I have a folder "Foo" with the files ".hidden" and "notHidden" inside, how do I move both files to a directory named "Bar"?  The following does not work, as the ".hidden" file stays in "Foo".  mv Foo/* Bar/   Try it yourself.  mkdir Foo mkdir Bar touch Foo/.hidden touch Foo/notHidden mv Foo/* Bar/


How is it possible that a +2 question gets deleted?

I answered  question on SO.   Now I see that it got deleted - but the upvote count for the question shows +2. How is it possible that non-moderators would see the "delete" link ... that only shows up when the question shows -3 or more?  And beyond that: I think I read more than once that "question is a duplicate" doesn't translate to "question should be deleted". So isn't "positive reception" of question with answers an indication to not delete it?


My thesis guideline states that bibliographies should continue to next page with heading "Kaynaklar Dizini devam ediyor" (meaning "Bibliography Continued").  I'm using memoir and biblatex. How can I manage this?  My MWE is below  \documentclass[12pt, a4paper, oneside]{memoir}           \usepackage{polyglossia}             \setmainlanguage{turkish}  \usepackage{fontspec} \setmainfont[Language=Turkish]{Times New Roman}  \usepackage[citestyle=authoryear,bibstyle=authoryear]{biblatex} \bibliography{Zotero.bib}  \renewcommand*{\finalnamedelim}{\addspace ve\space} \DefineBibliographyStrings{english}{andothers={\space vd \space}} %---------------CHAPTER STYLE------------- \makechapterstyle{bolum}{% \renewcommand{\afterchaptertitle}{\par\nobreak\vskip \baselineskip}  \renewcommand{\chaptitlefont}{\centering\normalfont\Large\bfseries}  \renewcommand{\chapnumfont}{\centering\normalfont\Large\bfseries}    \renewcommand{\printchaptertitle}{\chaptitlefont\MakeUppercase}  \renewcommand*{\printchaptername}{}          \renewcommand*{\chapternamenum}{}            \renewcommand*{\chapnumfont}{\chaptitlefont} \renewcommand*{\printchapternum}{\chapnumfont \thechapter . \space}  \renewcommand*{\afterchapternum}{} \afterchaptertitle } %--------------------  %---Page Numbering---- \copypagestyle{chapter}{plain} \makeoddhead{chapter}% Tek sayılı sayfaların üstbilgisi  {}% Tek sayfa üstbilgi Sol   {}% Tek sayfa üstbilgi orta  {\thepage}% Tek sayfa üstbilgi sağ \makeevenhead{chapter}% Çift sayılı sayfaların üstbilgisi  {}% Tek sayfa üstbilgi sol  {}% Tek sayfa üstbilgi orta  {\thepage}% Tek sayfa üstbilgi sağ   \makeoddfoot{chapter}% Tek sayılı sayfaların altbilgisi  {}% Tek sayfa altbilgi sol  {}% Tek sayfa altbilgi orta  {}% Tek sayfa altbilgi sağ \makeoddfoot{chapter}% Çift sayılı sayfaların altbilgisi  {}% Tek sayfa altbilgi sol  {}% Tek sayfa altbilgi orta  {}% Tek sayfa altbilgi sağ  %----------------------------  \chapterstyle{bolum} \pagestyle{chapter}  \begin{document} \chapter{Deneme} fnrejgnrğthnsv.njgıtnhğwrytnh.ngıtjhgosejg. \cite{spencer_brief_2008},       \cite{guo_microstructure_2014}, \cite{zhang_differential_2008},  \cite{kesim_augmented_2012}, \cite{popov_numerical_2010}, \cite{kim_interactive_2012}, \cite{keehan_influence_2006}, \cite{manova_evolution_2004}, \cite{carruthers_material_????},\cite{shevtsov_optimal_2005},\cite{m.j._neale_d19_1996} \printbibliography[heading=bibnumbered, title={KAYNAKLAR\space DİZİNİ}] \end{document}   What I want to achieve is Bibliography as seen below  Second page


Can I use Ubuntu to write a Windows 7 ISO to USB?

I need to create a Windows installation USB drive from an ISO file. I used UNetbootin which seems to be the only tool that can write non-Linux images.  The USB disk boots (sort of), but it gets stuck at the very first stage. A UNetbootin splash screen appears that keeps counting down from 10 to 0, and then restarts.   The screen looks like this:    Is there a way to make Windows boot from a USB image created on Linux?


Frobenius endomorphism not surjective in a ring

I'm trying to find a simple counterexample that proves that, given a ring A with prime characteristic, the Frobenius endomorphism is not surjective in general. Are there any elegant examples?


I tried to update iMovie and got the following error.  Update Unavailable with This Apple ID This update is not available for this Apple ID either because it was bought by a different user or the item was refunded or cancelled.  It is true that I have not purchased it, indeed I don't think I have ever used it. It came with my MacBook Pro when I bought it in 2011. I mainly decided to install to stop the App Store from nagging me about it. EDIT After a number of calls to Apple Support, and a solution which didn't work I was given a redemption code to install the new version.


Is there a way to see System Information before first user is added?

I have a Mac that someone asks me to help them sell.  They already wiped the hard drive and put a fresh installation of macOS on it. Upon boot, it's at the "Welcome" setup with no users intialized yet.   Is there an easy way to see the System Information and version of macOS currently installed on this machine without creating a new user? I'd like to leave this machine in a clean state without having to re-wipe the hard drive with a new installation.


I'm trying to plot an easy function and I would like to enable the minor grid. But it seems that this instruction is ignored. I used the grid=both option but it has no effect. The only grid I can see is the major grid. I could not find anything helpful on the internet. Thanks for any advise.  \documentclass[11pt]{amsart} \usepackage{geometry}                 \geometry{a6paper}                    \usepackage[utf8]{inputenc} \usepackage{graphicx} \usepackage{amssymb} \usepackage{amsmath} \usepackage{epstopdf} \usepackage{pgfplots} \usepackage[german]{babel} \usepackage{tikz} \usetikzlibrary{shapes.misc} \usetikzlibrary{decorations.markings}  \title{Control}  \begin{document}  \begin{tikzpicture}  \begin{axis}[grid=both,xlabel={error},ylabel={power}] \addplot[mark=none,domain=4:30,samples=200]{55/(1.3*(ln(x)/ln(10)))}; \end{axis} \end{tikzpicture} \end{document}


How does some of the black hole (BH) mass escape the event horizon (EH) of either BH, or the merged EH of two merged BHs?

BH mass is a conserved quantity and cannot escape the horizon of a BH. Yet in mergers some percent (in GW150914 it was about 5 percent, or 3 solar masses) of the binary's mass escaped either before (one of the two BHs horizons) or after the merger started (one horizon merger, from the merged horizons), and turned into gravitational waves. The argument is that it is potential energy or maybe kinetic energy of the black holes that is radiated. It does not matter. The question is how did the BHs mass get reduced? Did some virtual negative mass particles fall into the BH, and if so it would have been gravitons? If so is it a quantum effects? If so has anyone worked out the linearized quantum gravity of that happening right outside the horizons, like they did for the very small Hawkings radiation, and isn't that a contradiction of the small effects expected for 30times solar mass BHs? So, if not that, how does the negative potential binding mutual gravitational energy of the two BHs steal mass from the binaries?  Please, no hand waving. I've looked everywhere and only see hand waving arguments about potential or other energy outside the BHs, but mass is an internal (inside the horizons) and conserved quantity of BHs.   Charge, another conserved quantity, and angular momentum, can be extracted (i.e., escape the EH). Angular momentum through the Penrose process, maybe charge too. Is it the same for mass? If so, where is it wel explained in some detail, and not simply 'it was calculated numerically'?


I have read about refraction through a triangular prism,rainbow formation and other natural phenomena.They all told about the strong bending of violet light . I know that it has a shorter wavelength and high frequency.From the sources I searched I get to a conclusion that it is because of the above mentioned property.I also know that it has a smaller critical angle.what accounts for such properties?


Custom filter Gmail emails on receiving, mark as important if phrase is found, archive if not

We subscribe to a request for information press service, were they send us 15 / 20 emails a day (each with 20 or so queries in them) which are all request from reporters / journalists, asking for an opinion / quote for an article they are working on.  99% of these queries are irrelevant to us, but we have to sift through them to make sure.   We use gmail / google apps for business for our emails i was wandering is there a way that i can set a custom filter to skim through the content in these email, if the phrase/s we are looking for them are not found then archive them but if the phrases are found then mark it as important.   ie. if phrases 'design, architecture, interior design, furniture' are in the email mark it as important, if not archive email.


Contextual filters with Entity reference

I have two content types called Basic Page and Contact Info.    There are around 5 nodes from Contact Info with some contact info (phone/fax/email/IM) in the body field.  In Basic Page content type there's an Entity Reference field that refers to Contact Info. So that for each page there would be a main contact person. When someone create a Basic Page node they can pick a Contact Info node from the dropdown (out of the 5 Contact Info nodes).      Basic Page -> Contact Info (Basic Page content type refers to Contact   Info content type)   Then I created a block view (added to the sidebar of Basic pages) which displays the contact info associated with that node.   Added a Relationship in the view (Entity Reference: Referenced Entity)  Right now it's displaying all 5 contact info nodes, not just the one associated with that particular basic page node. I tried to tweak the Contextual filter and relationships but couldn't get it to work.  I have a feeling that the solution lies in the php code that goes in Provide default value -> php code section.  Any help appreciated. Thanks


how to see which function is assigned to function pointer at run time..?

#include<stdio.h>  int add(int i,int j) {         printf("\n%s\n",__FUNCTION__);          return (i*j); }  int (*fp)(int,int);  void main() {         int j=2;         int i=5;          printf("\n%s\n",__FUNCTION__);          fp=add;          printf("\n%d\n",(*fp)(2,5));         printf("\n%s\n",*fp); }


Let $a$ and $b$ belong to a group.  If $|a|$ and $|b|$ are relatively prime, show that $\langle a \rangle \cap \langle b \rangle = \{e \}$.  The most I can figure to do is to let $a^k = b^j$ for some $a^k$ and $b^j$ in $\langle a \rangle$ and $\langle b \rangle$, respectively.  I'd assume that I'd need to show that the only possible element either could be would be $e$ (the identity element) but I'm not seeing a way.  Would it make sense to say that $aa^k \neq bb^j$ because then otherwise $\langle a \rangle = \langle b \rangle$, therefore the only option is to have $a^k = e$ and $b^j = e?$


How can I stop updates running on Windows 10 Home?

I have tried all the tricks in the book - setting connection as a metered connection (through registry), but there is no difference. I have already used up 1.1Gb in the last 24 hours as I try to fight this update process.  There is no option to set connection as a metered connection in the control panel.  If I search on start I set "Set up data usage limit" and from that window I get this:


ubuntu 20.04 applications menu has no icons, but can launch softwares from the side bar tray that still has icons

I upgraded from Ubuntu 18.04 LTS to 20.04 yesterday, The update ran successfully and rebooted the system. As soon as I logged in to the desktop, I clicked on the applications menu and there were no icons. I tried searching for existing installed software but it kept showing me "Searching . . . ". I went to the frequents tab and the menu crashed and some notification about an internal error has been detected was shown.


Net Force of Equal and Opposite Gravitational Forces Don't Equal Zero?

I've come across this question, and I'm at at a loss.     Two masses, m and M, are in an isolated system. The gravitational forces, F (by M on m) and F (by m on M), are equal and opposite. Why do they not add to a zero net force? Explain your answer.   I approached the question by simply adding vectors. In the question F(1) and F(2) are defined as equal and opposite. Mathematically that is F(1) = -F(2). Hence, is stands to reason that F(1) + F(2) = 0.  If it's an isolated system there there should be no other forces present. Also, even if the forces are moving towards each other, then they could be at a constant velocity (zero acceleration).  Is this flawed reasoning, or is there another explanation?


Simulating group_concat MySQL function in Microsoft SQL Server 2005?

I'm trying to migrate a MySQL-based app over to Microsoft SQL Server 2005 (not by choice, but that's life).  In the original app, we used almost entirely ANSI-SQL compliant statements, with one significant exception -- we used MySQL's group_concat function fairly frequently.  group_concat, by the way, does this: given a table of, say, employee names and projects...  SELECT empName, projID FROM project_members;   returns:  ANDY   |  A100 ANDY   |  B391 ANDY   |  X010 TOM    |  A100 TOM    |  A510   ... and here's what you get with group_concat:  SELECT      empName, group_concat(projID SEPARATOR ' / ')  FROM      project_members  GROUP BY      empName;   returns:  ANDY   |  A100 / B391 / X010 TOM    |  A100 / A510   So what I'd like to know is: Is it possible to write, say, a user-defined function in SQL Server which emulates the functionality of group_concat?   I have almost no experience using UDFs, stored procedures, or anything like that, just straight-up SQL, so please err on the side of too much explanation :)


How do I get union keys of `a` and `b` dictionary and 'a' values?

I was doing django project about processing request.data and from.cleaned_data issues. When user only inputs specify fields, it will send request to my server. Next, the form class process the request, except processing inputed fields and return no inputted fields from form built-in fields.  This is request data:  <QueryDict: {u'is_public': [u'True']}>   This is cleaned data from from class:  {'name': u'', 'devie_type': u'', 'is_public': True, 'serial_num': u'', 'is_online': False, 'operation_system': u''}   I know these are dictionary type. I hope getting their union keys of them and values of cleaned data. I expect that it returns:  {u'is_public': True}   This is my attempt:  a = {} for k in request.data:     if k in the_form.cleaned_data:         a[k] = the_form.cleaned_data[k] print a   Is it readable? or is there any built-in functions about processing union dictionary in python?


Is Harry Potter and the Cursed Child Canon?

I have heard some debate on this. Some people think it is, some do not. Does anyone know if JKR said herself if it is canon or not? The people who think it is not, is that just their opinion? They don't want to accept the way in which the characters and plots are portrayed? Also the play is obviously not apart of the novels so I'm confused. Any answers?


Not able to change permission of files/folder shared in samba

I am trying to change permission and change the group permission of the folders which are shared through SAMBA (Samba PDC). Commands are as follows:  # chmod 766 /mnt/Format   but nothing changed.  Please help.


How do I create a desktop entry to launch a Python script?

I made my little Python app, but I can't launch the app using the desktop entry I created: [Desktop Entry] Name=MyApp Version=0.1 Exec=/usr/share/MyApp/MyApp.py Icon=/usr/share/MyApp/img/MyApp.png Comment=Description...... Type=Application Terminal=false StartupNotify=false Categories=Video;GTK;GNOME  The /usr/share/MyApp folder I made as root and the MyApp.py has executable properties. Every time I double Click the MyApp.desktop the MyApp.py launch, display a systray icon, but it closes and make Ubuntu display a error message. If I run the MyApp.py from terminal or double click on the .py file it runs normally, no crashes.


Adding objects to an ArrayList from another class

I am trying to add objects to an ArrayList from another file but I am getting a java.lang.NullPointerException even though I have initialized the ArrayList. Here is an example of the code with the structure that I am talking about.  //ObjectOne.java  import java.util.ArrayList;  public class ObjectOne {         public InnerClass inner;     class InnerClass {         ArrayList<String> list = new ArrayList<String>();         public void addString(String str) {            list.add(str);        }     }     public void addStr(String str) {        inner.list.add(str);    }   }   Here is the second file:  //ObjectTwo.java public class ObjectTwo {      public static void main(String args[]) {         ObjectOne obj = new ObjectOne();         obj.addStr("Test string added");     }  }   I have initialized the ArrayList in InnerClassbut when I try to add an item in another java file I get a NullPointerException. The reason I have this file structure is because I am working with GSON. Why is the ArrayList list acting as if it was never initialized? My goal is to be able to add objects to the list from a different java file.


Screen goes white when posting a comment

Since iOS 11.2 all the way through 12.2 beta 4, if you post or discard a comment on any post on any SE community, the screen will turn white. This has been ongoing continuously for a year now, and it affects both the SE app and the SO app.   You can go back to the previous screen and open the question again, and everything appears as normal. You can also rotate the screen to get the text to come back. Using the arrows to navigate between the question and answers updates the HUD, but the screen remains white unless one of the above is done to get the text back.        UPDATE: After posting anything (comment, answer), the screen goes all white except for the sidebar. Perhaps it is intentional, but I prefer last week’s behavior of going back to the content. Not major, since the sidebar icons still work.


[Preface: I have seen similar questions, but that did not help me and so this new question. To explain in more detail, I followed the steps in , without rectifying the problem]  I am trying to install ccmake.  However, I get the following error:  sudo apt-get install cmake-curses-gui Reading package lists... Done Building dependency tree        Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:  cmake-curses-gui : Depends: cmake (= 2.8.7-0ubuntu4) E: Unable to correct problems, you have held broken packages.   I tried sudo apt-get -f install, but it did not help.  I am unable to find broken packages either.


Solve the integral $\int_0^\infty x/(x^3+1) dx$

I'm new here!  The problem: integrate from zero to infinity x over the quantity x cubed plus one dx. I checked on wolfram alpha and the answer is that the indefinite integral is this:  $$\int \frac{x}{1+x^3} dx = \frac{1}{6}\left(\log(x^2-x+1)-2 \log(x+1)+2 \sqrt{3} \arctan((2 x-1)/\sqrt{3})\right)+\text{constant}$$  and the definite integral is this:  $$\int_0^\infty \frac{x}{1+x^3} dx = \frac{2 \pi}{3 \sqrt{3}}\approx 1.2092$$  I am trying to figure out all the steps in between. I see that there are logs, which are equivalent to the ln variant that i am more familiar with, which means it was integrating $1/x$ at some point; I also see an inverse tangent in there.  I started with long division to simplify and I got (which could be wrong because I am very tired right now) $x/(x^3+1) = x^2+ 1/(x^3+1)$ which seems to be a step in the right direction. Wolfram Alpha thinks I definitely did that step wrong. The two equations do not evaluate as equal.  Then I cheated and took the wolfram alpha factorization of $(x^3+1) = (x+1)(x^2-x+1)$...I probably should have known that but didn't offhand. Now it is looking like $x^2$ plus the partial fraction decomposition $1/(x^3+1) = A/(x+1)+(Bx+C)/(x^2-x+1)$. Am I heading in the right direction with this? At this point do I just plug in and crunch?


How do I find the source of the symbolic linked file in the Linux

I'm learning how to use linux on immersive labs and I've never coded before. Could someone please help me with this question I've been stuck on for a while now. It's related to file permissions in Linux - specifically symbolic linked files. Also, whats the best way to understand, get used to and learn how to navigate linux. Thanks, M.


Given $\phi : \mathbb{Z}[x] \rightarrow \mathbb{R}$  given by $\phi(f(x)) := f( \sqrt 2)$ is a ring homomorphism.    Find out the kernel of $\phi $   My  attempt : kernel of $\phi $  is  $x^2-2$    is  its  true  ??


few lines insert in existing file via terminal?

i have file test.txt  hi hello good luck   i want in this test.txt  hi hello good luck lms localhost   how to add last two lines in terminal command ?


Nautilus, gedit etc - remeber windows position

How to force nautilus and gedit (and practically all program's windows on ubuntu) to always remember their window position? When i start another nautilus window, it is randomly placed on different positions of desktop. I dont wanna that. I work on 16:9 monitor, with one document window on left and nautilus/gedit on right, it really annoys me to reposition every time i start new window or run new instance of nautilus/gedit.  I use ubuntu 12.04.3 lts.


Recently, I have submitted a mathematical paper to a journal published by Taylor & Francis. After some days, the status of the paper was changed from Submitted to Journal to AWAITING REFEREE SELECTION. Up to now,  11 weeks passed but the status is still AWAITING REFEREE SELECTION. I have contacted to Editorial Office several but the result is not changed. How should we respond to them in this case?


If $T(n+1)=T(n)+\lfloor \sqrt{n+1}, \rfloor$ $\forall n\geq 1$, what is $T(m^2)$?

$T(n+1)=T(n)+\lfloor \sqrt{n+1} \rfloor$ $\forall n\geq 1$    $T(1)=1$   The value of $T(m^2)$ for m ≥ 1 is?   Clearly you cannot apply master theorem because it is not of the form $T(n)=aT(\frac{n}{b})+f(n)$ So I tried Back Substitution: $T(n)=T(n-1)+\sqrt{n}$ $T(n-1)=T(n-2)+\sqrt{n-1}$ therefore, $T(n)=T(n-2)+\sqrt{n-1}+\sqrt{n}$ $T(n)=T(n-3)+\sqrt{n-2}+\sqrt{n-1}+\sqrt{n}$ . . $T(n)=T(n-(n-1))+...T(n-k)+\sqrt{n-(k-1)}+...+\sqrt{n-2}+\sqrt{n-1}+\sqrt{n}$ . . $T(n)=T(1)+...T(n-k)+\sqrt{n-(k-1)}+...+\sqrt{n-2}+\sqrt{n-1}+\sqrt{n}$ $T(n)=T(1)+...+\sqrt{n-2}+\sqrt{n-1}+\sqrt{n}$ I'm stuck up here, how to solve this ahead?


Evaluate contour integral with odd $x$ in denominator

I need to show by contour integration that $$\int_0^\infty \frac{(\log x)^2}{x^2+x+1} dx = \frac{16}{81}\sqrt 3 \pi^2$$ I usually approach a contour integral involving $\log x$ by considering a semi-circular contour indented at $0$. But here the other straight arm doesn't simplify due to odd $x$ in denominator. Can somebody help me how to proceed?


Can houseplants actually improve air quality?

I just moved to a new apartment. If I close the windows, the air gets heavy and stale very quickly and I get a headache.   The place has laminate flooring (which looks pretty realistic, I thought it was hardwood for a few days) and popcorn ceilings. Not sure if this is a problem, just thought I'd mention it.   The flooring looks new, but I know it hadn't been installed just before I moved in. I've lived here for about five weeks, and the air quality isn't improving, so it's not something that's going to outgas quickly.  I read that certain plants can improve air quality, e.g. by absorbing formaldehyde. Of course, I don't know if I need to worry about formaldehyde specifically. There is no "chemical" smell (and I have a fairly sharp sense of smell), it just feels heavy and maybe a little dusty.   How realistic is it to expect to solve this with houseplants (which I want to get, anyway)? I just read things like "plant X is very efficient at absorbing chemical Y", but there was no quantitative information, and I wouldn't be able to use it, anyway, since I don't know what the pollutants are and their concentrations. Would I need a small forest to make a noticeable difference? Has anyone here tried this approach? Would an air filter be a better thing to try first? Any recommendations?  The apartment is approximately 670 square feet.


What are human rights?   With so many cultures in the world, is it possible to determine what rights should be intrinsic to all humanity?  Is it fair to criticize a separate culture's "human rights" values within their own sovereignty?


When adding the model circled, I saw that it was cut-off. When i zoomed out there was this dark grey pyramid shape thing that when i moved the models outside, they were cut off(disappeared). I have no idea as to what it is, because I can't select it.


We are currently hosting about 10 of our own various websites on a virtualised host. Each website is hosted by its own virtual machine with its own apache. Some of the sites connect to a shared database (MySQL) some use a different locally hosted database (again MySQL).  We're starting to run out of resources to allocate to virtual machines as there are now quite a few separate VMs. There are clearly some websites that are busier than others.  I've been considering combining a few websites onto a single host to reduce the total number of VMs to say 4.  The upshot of doing this would be to reduce the overhead required for each website but of course with that comes reduced stability; if Apache/MySQL/PHP fails for whatever reason (or needs restarting) a cluster of websites goes down rather than just one.  My question is: at what point does a website deserve its own dedicated VM?


Is it possible to execute a script/command right before OS X is shutting down or restarting?  I'd like to run sudo apachectl stop to stop apache from auto-starting.


For which $a$ does the equation $f(z) = f(az) $ has a non constant solution $f$

For which $a \in \mathbb{C} -\ \{0,1\}$ does the equation $f(z) = f(az) $ has a non constant solution $f$ with $f$ being analytical in a neighborhood of $0$.  My attempt:  First, we can see that any such solution must satisfy:  $f(z)=f(a^kz)$ for all $k \in \mathbb{N} $.  If $|a|<1$:  The series $z_{k} = a^k$ converges to 0 which is an accumulation point, and $f(z_i)=f(z_j)$ for all $i, j\in \mathbb{N} $. Thus $f$ must be constant.  If $|a|=1$:  For all $a \neq 1$ , $f$ must be constant on any circle around $0$, so again $f$ must be constant.  My quesions are:   Am I correct with my consclusions?   Also, I'm stuck in the case where $|a|>1$. Any ideas?  Thanks


Video introduction to linux command line

I've been using ubuntu for like 3 years as my main os. I've used terminal many many times but never have I deeply understand it. I run commands, I'm familiar with the basic ones, but i want to dig deeper. Is there any video introduction(i like to lay back and watch tutorials instead of reading books) to novice-intermediate to advanced command line?   Thank you.


What should be the default title case for non-technical questions?

As an example, this question is titled using sentence case. I've been going to lots of different meta sites (especially this one), and I think the needle bent on my oh-me-oh-my-my-ocd-oh-meter.  Can we please standardize on using either:   Sentence case Title Case AP Style Title Case   ... and then we can look at just converting titles automatically? This would be a switch, of course, but I'd only imagine turning it off on sites where program code or symbols might be present in titles. Or, it could just become part of editing guidelines.    Additionally, is this a horrible idea?   To see the differences between them, you can put any arbitrary title into  (we have no affiliation with them, it's just a tool I sometimes recommend to people).  We would also eventually adopt this for static routes, but I'm mostly talking about questions.


The correlation between GPA in grad school and research ability

In the US graduate universities, Ph.D. students have to take courses. Can a student with low GPA do good research? I think doing research is solving problems. If someone cannot solve a homework or an exam, how the person can even solve more complicated problems to publish?


On a PHP project, in which header is imported trough PHP, special characters such as "ñ" or "á" do not appear.  Database is correctly encoded as UTF8-general-ci, and these characters display correctly inside the database. The issue is that when showing them on the site, all special characters look like this (it shoul be Germán Álvarez):    Is this because of importing head trough PHP (as seen abobe), instead of placing it directly on each PHP file? How can I solve this?  Header import code:  ......  <html>  <?php     include("../modules/head.php"); ?>      <body>    ......   Code inside file modules/head.php:  <head>     <meta charset="UTF-8" />     <meta http-equiv="Content-Type" content="text/html; charset=utf-8">      <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">      <meta name="viewport" content="width=device-width, initial-scale=1.0">      <title>Waisap | Sistema de mensajería interactivo </title>     <meta name="description" content="-----" />     <meta name="keywords" content="" />     <meta name="author" content="-----" />     <link rel="shortcut icon" href="../img/basics/favicon.ico">     <link rel="stylesheet" type="text/css" href="../css/style.css" />     <script src="../js/modernizr.custom.js"></script>     <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>  </head>


I have Minecraft v1.11 and am trying this command to summon fallingsand but it is not working. Why?  Command:  /summon FallingSand ~ ~1 ~ {Block:command_block,Time:1,TileEntityData:{Command:/fill ~ ~-1 ~-1 ~ ~50 ~-1 redstone_block},Passengers:[{id:FallingSand,Block:redstone_block,Time:1}]}


ive looked at the other answers on other questions and typed in the code that i needed to but this keeps popping up   "Reading package lists... Error!    E: Encountered a section with no Package: header    E: Problem with MergeList /var/lib/apt/lists  /repo.steampowered.com_steam_dists_precise_steam_i18n_Translation-en  E: The package lists or status file could not be parsed or opened."     Any help .thanks


I have two square matrices: $A$ and $B$. $A^{-1}$ is known and I want to calculate $(A+B)^{-1}$. Are there theorems that help with calculating the inverse of the sum of matrices? In general case $B^{-1}$ is not known, but if it is necessary then it can be assumed that $B^{-1}$ is also known.


Is rank(AB) = rank(BA) if it’s known that AB and BA !=0?

Given 2 matrixes A and B: Assuming that A and B are both nxn and that 𝐴𝐵 ≠ 0 and 𝐵𝐴 ≠ 0. Does rank(𝐴𝐵)=rank(𝐵𝐴)? I’ve tried like 8 different examples and they all turned out to be equal but I’m not sure whether it actually is or not, can someone help me prove/disprove this?


C++ error when attempting to pass and return a set of pointers from a function

I have two (really three, but one is irrelevant here) header files with classes in them for a project. One Node class that includes a set of pointers to other nodes (its like a tree), and the other class is a graph class (entitled AML) that holds a set of all the pointers to nodes in their respective layers.   I wanted to write my own C++ set operations (because I'll need them), so I decided to declare a namespace that has the set operation functions. However when I try to use these set operations in my Node class, I get an error. Here is the relevant code:   aml.h  #pragma once #include <set> #include "Node.h" #include "constant.h"  using namespace std; class aml { // class stuff };  namespace setops {     set<Node*> set_union(set<Node*>  &a, set<Node*>  &b);     // other set operations }   aml.cpp  #include "aml.h"  using namespace std;   //class functions  set<Node*> setops::set_union(set<Node*>  &a, set<Node*>  &b) {     set<Node*> c;     for (Node* data : a) {         c.insert(data);     }     for (Node* data : b) {         c.insert(data);     }      return c; }   Node.h  #pragma once #include <string> #include <set> #include "aml.h" #include "constant.h"  using namespace std; class Node { private:     set<Node*> lower; public:     set<Node*> getLower();     set<Node*> GL(); };   and here is the GL() method in which the error occurs. This is supposed to return the set of all nodes that can be reached by traveling down the tree. getLower() returns the lower set that houses all a node's children.  Node.cpp  #include "Node.h"  set<Node*> Node::getLower() {     return this->lower; }  set<Node*> Node::GL() {     set<Node*> lowerSet;     lowerSet.insert(this);     if (this->lower.size() == 0) {         return lowerSet;     }     set<Node*> recurse;     for (Node* node : this->lower) {         recurse = node->GL();         lowerSet = setops::set_union(lowerSet, recurse); //This is the error line     }     return lowerSet; }   I marked the problem line. It actually has three errors, one on each parameter and one of the equals sign. The errors say (all of them are pretty much the same, but this is the parameter one)  a reference of type "set::set<<error-type>*, std::less<<error-type>*>, std::allocator<<error-type>*>& "(non-const qualified) cannot be initialized with a value of type "set::set<Node*, std::less<Node*>, std::allocator<Node*>> "  I have no idea what is going on, any help appreciated!


"You must wear a suit TO an interview" vs "You must wear a suit FOR an interview"

In the sentence-     You must wear a suit to an interview   shouldn't the to be replaced by for? Or what's the difference between these two here?


Attempt to invoke virtual method 'void android.widget.TableLayout.addView(android.view.View)' on a null object reference

I'm trying to use a table to show students data as the following :      public class Main5Activity extends AppCompatActivity {     DataBaseConnection db;     @Override     protected void onCreate(Bundle savedInstanceState) {     super.onCreate(savedInstanceState);     setContentView(R.layout.activity_main5);     setContentView(R.layout.activity_main);      final TableLayout stk = findViewById(R.id.datatable);     TableRow tbrow0 = new TableRow(this);     TextView SNo = new TextView(this);     SNo.setText(" Student NO ");     SNo.setTextColor(Color.WHITE);     tbrow0.addView(SNo);     TextView StudentName = new TextView(this);     StudentName.setText(" Student Name ");     StudentName.setTextColor(Color.WHITE);     tbrow0.addView(StudentName);     TextView hmewrk = new TextView(this);     hmewrk.setText(" Homework mark ");     hmewrk.setTextColor(Color.WHITE);     TextView orlmrk = new TextView(this);     orlmrk.setText(" Oral Mark ");     orlmrk.setTextColor(Color.WHITE);     TextView ttlwrkmrk = new TextView(this);     ttlwrkmrk.setText(" Total Works Mark");     ttlwrkmrk.setTextColor(Color.WHITE);     TextView orlexm = new TextView(this);     orlexm.setText(" Oral Exam");     orlexm.setTextColor(Color.WHITE);     TextView exm = new TextView(this);     exm.setText(" Exam ");     exm.setTextColor(Color.WHITE);     TextView exmttl = new TextView(this);     exmttl.setText(" Exam total");     exmttl.setTextColor(Color.WHITE);     TextView textView9 = new TextView(this);     textView9.setText(" Average");     textView9.setTextColor(Color.WHITE);     tbrow0.addView(hmewrk);     tbrow0.addView(orlexm);     stk.addView(tbrow0);     for (String i = db.stdntnmbr();; ) {   When calling the students number value from the database to create rows as the same value, it gives me the following error: The code is :  public class DataBaseConnection {  private final DataBase dataBase;  DataBaseConnection(Context context) {     dataBase = new DataBase(context); } public String stdntnmbr(){     SQLiteDatabase sqLiteDatabase = dataBase.getWritableDatabase();     String uid = DataBase.UID;     Cursor cursor = sqLiteDatabase.query(DataBase.tablename1 , null, uid, null     , null , null , null , null);     StringBuilder stringBuilder = new StringBuilder();     while (cursor.moveToNext()) {         int studentnmbr = cursor.getInt(1);         stringBuilder.append(studentnmbr + " " +"+/n");     }     return String.valueOf(stringBuilder);      the database type is SQLite and I'm using SQLiteOpenHelper. Any help would be greatly appreciated.


Irreducible factors of $x^8 - x$ in $Z/2Z[x]$

I must find the irreducible factors of $f(x) = x^8 - x$ in $Z/2Z[x]$ and that's what I did:  $f(x) = x(x-1)(x^6 + x^5 + x^4 + x^3 + x^2 + x + 1)$  but of course the correct solution is:  $f(x) = x(x-1)(x^3 + x^2 + 1)(x^3 + x + 1)$  I do not understand how I can reach the correct solution by logical reasoning (without going on attempts). The solution of the exercise says:  1) "The irreducible factors are all the irreducible polynomials of degree 1 and 3 alone" Why?  2) "You find exactly $6/3 = 2$ irreducible polynomials of degree 3". Does this happens because the 6th degree polynomial I found is not reducible (since the only ones have degree 1 or 3) and it has no zeros?


How can i send request to the URL:8080 port and get the Text output and Authenticate too ?  <field label_name="Get Results" type="button" link="http://URL:8080/" authenti_username="***" authenti_password="***" service_method="POST" server_athenti_method="Basic" ssl_certificate="None" ssl_key="None" response_contains="text" output="text"/>


AlwaysOn AG: Current Host Server - Owner Node - Primary Instance

I'm building up a SQL Server AlwaysOn AG and I'm on the step "failover", manual and automatic:  I noticed that in the Windows Server Failover Cluster a "Current Host Server" exists. My knowledge says that this is the "master" of the cluster that the cluster hosts. But now I noticed that the "Owner Node", which hosts the Availability Group(-role) a other node could be. (The owner node is also the primary instance of the AG, right?)  Now for me there exist two questions for the normal operating of an AlwaysOn AG:  Q1: Should the "Current Host Server" the same as the Owner Node of the AlwaysOn AG?  Q2: Imagine if I want to maintain a host. Shall I first failover the AG (via SSMS or with ALTER AVAILABILITY GROUP...) to the second node/another node and at second a failover of the WSFC-Current Host?  Maybe someone could help me with this questions and give me some advice.  Thanks


Temporary assignment before the command not working?

I expected a to be something after the initial assignment. But I get nothing.  tomas@tomas-Latitude-E4200:~$ echo $a  tomas@tomas-Latitude-E4200:~$ a=0 echo $a  tomas@tomas-Latitude-E4200:~$   Similar unexpected behaviour when a is set before.  tomas@tomas-Latitude-E4200:~$ a=0 tomas@tomas-Latitude-E4200:~$ a=1 echo $a 0   Well?


What is a difference between JS variables - with and without dollar sign?

What is a difference between these two variables? (please see dollar sign)  var $button = $("<input>");  and  var button = $("<input>");  ?


As most of us already know, questions that do not have accepted or upvoted answers (aka Unanswered questions) are being bumped to the front page by "dummy edit" made by the system account after some time, two months here on Meta.  It's good feature on the main Stack Overflow website, allowing fresh eyes to see the question and offer new insight, that even if will be too late for the OP can help other people with the same problem. Once such insight is upvoted, the question will rest peacefully down the stack.  However, here on Meta things are different, at least from my point on view. Questions here are often about change that just happened or user asking for instant support - in the future it won't be relevant anymore. Same with discussions: I don't see much point bringing old discussions back to the front, from what I see they exhaust themselves within few days maximum a week.  So in my opinion the auto bump feature can be turned off here on Meta - unless you think there's good reason to have it?


Can animated undead wear armor and use weapons?

A wizard has just killed a group of heavily armored fighters with great weapons. He uses Animate Dead on the bodies. The spell reads as:     This spell creates an undead servant. Choose a pile of bones or a corpse of a Medium or Small humanoid within range. Your spell imbues the target with a foul mimicry of life, animating it as an undead creature. The target becomes a skeleton if you chose bones or a zombie if you chose a corpse (the DM has the creature's game statistics).   So from the wording of the spell, these corpses would turn into zombies, as in you are making that body move again. You aren't mashing up the body into a stew and pouring out a new zombie, they're identical, still wearing the armor. Do zombies wearing plate have an AC of 18 instead of 8?  In the section on zombies in the MM, they have the Slam melee weapon attack, which does 1d6+1. The description section for zombies does read:     A zombie armed with a weapon uses it, but the zombie won't retrieve a dropped weapon or other tool until told to do so.   The wizard tells the zombies to pick up their greatswords. Does wielding a greatsword override the Slam attack and they now do 2d6+1?  Armor and weapons require proficiency. The people using the equipment were proficient in them, but are the zombies proficient? Does a zombie have disadvantage because it isn't proficient with this gear? I am certain that the zombie would have reduced speed because it only has a strength of 13, not the required 15 for plate.  Finally, do the implications of this extend to other types of undead? Can the wizard use Create Undead and make ghouls that wear armor?


Is it true that $||a|^p - |b|^p| \le C_p|a - b|^p$ for $1 < p < \infty$?

If $a, b \in \mathbb{C}$, then we have the standard triangle inequality for the difference:  $$||a| - |b|| \le |a - b|.$$  I am wondering if this inequality generalizes to exponents greater that one.     My question is, for $1 < p < \infty$, does there exists a constant $C_p$ such that $||a|^p - |b|^p| \le C_p|a - b|^p$ for all $a, b \in \mathbb{C}$?   I am aware of the "standard" triangle inequality for $p > 1$:  $$|a +b|^p \le 2^{p}(|a|^p + |b|^p),$$  and that $2^p$ may not be sharpest constant possible. If I try to use this estimate to prove, say, that $|a|^p - |b|^p \le C_p |a - b|^p$, I get stuck with an extra term that I'm not sure what to do with.  $$|a|^p - |b|^p \le 2^p|a -b|^p + (2^p -1)|b|^p.$$  A resolution on this matter is greatly appreciated.


How to solve "permission denied" when using sudo with redirection in Bash?

When using sudo to allow edits to files, I regularly get 'permission denied'.  For example, my mouse is jittery and sluggish, so I want to disable polling:  sudo echo "options drm_kms_helper poll=N">/etc/modprobe.d/local.conf   I'm prompted for a password, and then get:  bash: /etc/modprobe.d/local.conf: Permission denied   So I tried to do a temporary change to disable polling by using:  sudo echo N> /sys/module/drm_kms_helper/parameters/poll   Yet again the system responded with:  bash: /sys/module/drm_kms_helper/parameters/poll: Permission denied   Any ideas?


Which Java library provides base64 encoding/decoding?

I am wondering which library to use for base64 encoding/decoding? I need this functionality be stable enough for production use.


Cannot create CON.csv or PRN.csv in Win7

On Win 7 Enterprise 64bit V6.1.7601 SP1 Build 7601, I cannot create *.csv files with specific names, i.e. CON.csv or PRN.csv.  This is the error I get when I try to rename:    Also, if I try to rename it from cmd.exe:    I also tried lowercase, still problems. Why do I get those errors?


I am trying to work with the modiagram package, and it doesn't work. It isn't even running the code that I copied directly from the package documentation. This is the code that I copied: \begin{modiagram}  \atom{left}{     1s = {   0; pair} ,     2s = {   1; pair} ,     2p = {1.5; up, down }  } \end{modiagram}  It results in the following error: > \l__modiagram_atom_two_s_dim=28.45274pt. <recently read> }


What makes running so much less energy-efficient than bicycling?

Most people can ride 10 km on their bike. However, running 10 km is a lot harder to do. Why?  According to the law of conservation of energy, bicycling should be more intensive because you have to move a higher mass, requiring more kinetic energy to reach a certain speed. But the opposite is true.   So, to fulfill this law, running must generate more heat. Why does it?  Some things I can think of as (partial) answers:   You use more muscles to run. While running, you have more friction with the ground; continuously pouncing it dissipates energy to it. While you move your body at a slow speed, you need to move your arms and legs alternately at higher and lower speeds.


How to aggregate results from many rows into a single row mysql

I have an Orders table, with OrderId as PK. I also have an Order_Products table with OrderId as FK. Each Order_Product row has columns like Product_Name, Product_Status,Product_Delivery_Date, etc. The tables are joined in one-to-many relationship on OrderId.  I am trying to design a query which will consolidate the two tables such that I get a row for each OrderId, but the query must have a Description column which will have the Oder_Name values of all Order_Product rows concatenated; I also need to have the aggregate Product_Status calculate using some logic like (if one of the products is 'NotCompleted', then the aggregate Product_Status will be 'NotCompleted'. Finally I would like to have the OrderDeliveryDate calculate such that it will be the MIN value of all Order_Product Product_Delivery_Date values.  I am using MySql. Can you please give me some advice as to how to achieve these three tasks?   Example:  Orders Table:  OrderId  CustomerName  1001     CustomerX    OrderProducts Table:  Id  OrderId  ProductDescription  ProductDeliveryDate   ProductStatus 20  1001     ProductA                        2015-01-30            NotCompleted 21  1001     ProductB            2015-01-15            Completed 24  1001     ProductC            2015-02-13            NotCompleted  Desired Query Output:  OrderId    CustomerName   Description                  OrderDeliveryDate     OrderStatus '1001'    'CustomerX'     'ProductA,ProductB,ProductC' '2015-01-15'          'NotCompleted'


Can't boot Windows XP after installing Ubuntu 12.04

So I installed Ubuntu 12.04 alongside Windows XP, and I played with it for a like an hour. When I wanted to go back to Windows, I chose the Windows option in the GRUB screen. It just gives a black screen and goes back to grub. I tried boot-repair as I've seen in some other post that it could resolve the problem, but it's all the same. Nothing changed. I can use Ubuntu but not Windows. Can someone please tell me how I can solve this? Thanks.


Lots of people use a main tool like Excel or another spreadsheet, SPSS, Stata, or R for their statistics needs. They might turn to some specific package for very special needs, but a lot of things can be done with a simple spreadsheet or a general stats package or stats programming environment.  I've always liked Python as a programming language, and for simple needs, it's easy to write a short program that calculates what I need. Matplotlib allows me to plot it.  Has anyone switched completely from, say R, to Python? R (or any other statistics package) has a lot of functionality specific to statistics, and it has data structures that allow you to think about the statistics you want to perform and less about the internal representation of your data. Python (or some other dynamic language) has the benefit of allowing me to program in a familiar, high-level language, and it lets me programmatically interact with real-world systems in which the data resides or from which I can take measurements. But I haven't found any Python package that would allow me to express things with "statistical terminology" – from simple descriptive statistics to more complicated multivariate methods.  What can you recommend if I wanted to use Python as a "statistics workbench" to replace R, SPSS, etc.?  What would I gain and lose, based on your experience?


How to fetch a specific package updates?

I wan to update a  (biblatex-ieee) that I use. I do not want to update my whole system (I need to maintain specific versions for some SWs). How to retrieve the updates of that specific package without updating the whole system?


Parenthesis works in bash shell itself, but not in bash script

I can run this command from my command line prompt:  cp -r folder/!(exclude-me) ./   To recursively copy all contents of folder except for the subdirectory named exclude-me into the current directory.  This works exactly as intended.  However, I need this to work in a bash script I've written, where I have this:  if [ -d "folder" ]; then   cp -r folder/!(exclude-me) ./   rm -rf folder fi   But when I run the script:  bash my-script.sh   I get this:  my-script.sh: line 30: syntax error near unexpected token `(' my-script.sh: line 30: `  cp -r folder/!(exclude-me) ./'   And I'm at a loss as to why it works from the command prompt, but the exact same line doesn't work in a bash script.


How to get the driver for Realtek rtl8821ce onto a usb boot stick?

I'm stuck in a loop: I need the internet to get the driver I need, I can't get the driver I need because I don't have the internet I need I bought a new HP 15s-er1004AU laptop, not top of the range, but OK. I made a start up usb disk for Ubuntu 20.04 with Start-up Disk Creator. I installed Ubu 20.04 on the new HP. All good, except, no driver for the wifi and no wired internet socket. This installed the driver for Realtek  on my current Samsung (I think), although it does not have a Realtek wifi card:  sudo apt install rtl8821ce-dkms  So my question:  Is there some way to get the correct driver onto the boot stick??  (I ordered an external usb wifi. I hope it will arrive today, is recognized and I can proceed to update Ubuntu on the new laptop.) I tried copying the .deb package onto the new laptop, but, instead of installing, I get 'pending'. I tried again with dpkg -i in a terminal on the new laptop. Then I see that gcc is not installed, make is not installed all kinds of other dependencies to get dkms installed. /var/cache/apt/archives/ does not contain any rtl8821ce.deb files, although I installed the Ubuntu package on this computer, so I can't run them onto the new computer. If I could get gcc onto the new computer, maybe I could proceed. I have the other debian packages I need, dkms and rtl8821ce


Advantages of using mac version of Ubuntu

I was trying to use the mac alternate ISO to install ubuntu and it wasn't working out. I'm pretty sure I could fix, but I wanna know if it is worth it. What advantages does it offer for MBP 2010 15 inch.


Is it possible to prove that $x=\{x\}$ is false in ZF system?

A object is different from the set containing that object seems a basic idea of set theory. That is, for any object $x$, $x≠\{x\}$.  But I don't know how to prove it in ZF system (Zermelo-Fraenkel axiomatic set theory).  If $x≠\{x\}$ could not be proved, is it necessary to add an axiom for $∀x(x≠\{x\})$?


Can I get a country back into XCOM program?

I am playing XCOM - Enemy Unknown on Classic difficulty. In the first month, Australia quit the XCOM program. Due to the lack of money and fitting missions, I could not do too much to decrease the panic level there.   Is there any way to get this country back into the X-COM program, or is it gone for good?


Showing that $G$ is isomorphic to $\{1,-1\}\times \mathbb{R}$

Let $G$ be the group of all isometries of $\mathbb{C}$ consisting of all real translations, and all glide reflections with axis $\mathbb R$. Show that $G$ is isomorphic to $\{1,-1\} \times \mathbb R$.    This question has been asked  but it hasn't had any answers yet and I wanted to add what I'd tried without taking over the other question. It seems that it's intuitively true since you can let the $−1$ or $1$ indicate whether it's a glide reflection or not (respectively) and then the real number defines the amount it's translated. I just can't turn that it into something rigorous.  It seems that we'd need to define $\theta:G\rightarrow \{-1,1\}\times \mathbb{R}$ and then we'd need to show that $$\forall a,b\in G \;\;\; \theta(a\circ b)=\theta(a)*\theta(b) \;\;\;\;\;\;\;\; [1]$$ where from intuition it seems we could then define $*$ by:  $$ (a_1,b_1)*(a_2,b_2)=(a_1a_2,b_1+b_2) $$ since, for example, if we compose two glide reflections (both across the same line) then it's clear that both reflections cancel out which corresponds to $(-1,b_1)*(-1,b_2)=(1,b_1+b_2)$. Then we can just add the translations.   So with that defined it seems that $[1]$ should be true since we have $a\circ b$,  which is just another element of $G$ (since it's a group), and so there must exist an element of $\{-1,1\}\times\mathbb{R}$ that it's mapped to by $\theta$. The R.H.S composes the two outside of $G$ but (hopefully) with the same effect.   The problem I have is I'm not sure if this is correct, and even if it is I'm not sure how to put this is a more compact and rigorous way (like, if it's correct, I'm not sure how you'd show that $\theta$ is a bijection between the two groups). Any pointers would be great! Thanks    EDIT - added further to comments: since all $a$ will be either $z\mapsto z+b$ or $z\mapsto \bar{z}+b$ then: $$\forall a\in G \;\;\; \theta(a) = \begin{cases} (1,b) &\mbox{translation }\\  (-1,b) & \mbox{glide reflection}\end{cases} $$