what's wrong with my return statement and static method

This is not a homework question. It is one of my practices. Please help me understand where i did wrong. The original was static void changeArray, but i changed it to static int changeArray and inserted a return statement at the end, but it still won't update the main code.            public class testing{  /*  * Change the method to also update the key at the main  */  static int changeArray(int key, int array[]){      key = key + 7;      for (int i = 0; i < array.length; i++){         array[i] = array[i] + key;     }      System.out.println("*At changeArray *");     System.out.println("The key is: "+ key);     return key;   }  static void printArray(int array[]){      System.out.print("[ ");     for (int element:array){         System.out.print(element + " ");     }     System.out.println("]"); }  public static void main(String[] args){     int key = 5;     int[] array = {10, 11, 12, 13, 14, 15, 16, 17, 18, 19};      System.out.println("*At the main *");     System.out.println("The key is: "+ key);      printArray(array);     changeArray(key, array);       System.out.println("*At the main *");     System.out.println("The key is: "+ key); <--- (this is supposed to be 12 after the method is called, but it keeps printing out 5)     printArray(array); }   }


The play/pause and backward and forward buttons on my MacBook are not working properly

The play/pause and backward and forward buttons on my MacBook are not working as they should. When I press the play/pause button, nothing happens or it quickly pauses and plays again. Backward/Forward buttons are skipping previous/next song and play the second one in order.  I don't have Google Play Music installed. I've also reset SMC but it didn't help.   Anyone know what could be a possible problem?  I'm using macOS High Sierra.


How do I decrease the amount of vertices

I am making a donut from a tutorial my the blender guru the ultimate beginner cause I have been using blender for only 2 weeks and i am making a coffee cup but I have too many vertices so I am stuck can anyone help me


I know that my question sounds impossible, but I would go deeper into it.  I have three Internet connections:   ADSL from Provider 1; ADSL from Provider 2; LTE from Provider 3 (USB WiFi Box).   I need to direct all three connections into a router and serve my hosts with a single WiFi connection. They only see a line called Office_WiFi, but they hiddenly connect alternately to the three Internet connection (so three different public IPs).  My need is to balance the load of the line and manage band for every hosts. Ex: Host 1 needs to upload a large file, my network automatically gives him priority and sets him on ADSL from provider 1 instead of LTE from Provider 3 (USB WiFi Box).  Is there a way to do this?  Someone told me to start using pfSense. Could pfSense help me in this challenge?  Thank you all!  Ps: the problem is having three WANs and a single LAN.


Could "selfue" be a sensible antonym of "selfie"?

A selfie is a photograph a person takes of themself.  By this definition, the antonym of selfie must be a photograph of oneself taken by somebody else. In selfie the i can be taken to mean “taken by me (I)”. In that case, in selfue the u would mean “taken by you”.  Is it possible that this word could arise and be used?


I am trying to find the eigen values of a skew symmetric matrix. So let $A$ be a skew symmetric matrix so $A^T$ = -$A$ Let $\lambda$ be  an eigen value of $A$. So there exists a non-zero $x$ such that $Ax$ = $\lambda$$x$ So $(Ax)^T$ = ($\lambda$$x$)$^T$ or $x^TA^T$ = $\lambda$$x$$^T$ or $x^TA^T$$x$ = $\lambda$$x$$^T$$x$ or $x^T(-A)$$x$ = $\lambda$$x$$^T$$x$ or $-x^T\lambda x$ = $\lambda$$x$$^Tx$ or $\lambda$ =  -$\lambda$ (since $x$ is non-zero) or $\lambda$ = $0$ I am not able to understand what is wrong in this. Help, please!


Prove/Disprove that $\left|\phi^{-1}(\{a\})\right| = \left|\phi^{-1}(\{b\})\right|$ for every $a, b \in f(G)$

I encountered this statement of which I don't know if it is true or not:  Let $G, H$ be finite groups and let $\phi$ be a homomorphism from G to H. For every $a, b \in \phi(G)$ it holds true that $\left|\phi^{-1}(\{a\})\right| = \left|\phi^{-1}(\{b\})\right|$.  My question is if this is a valid statement. Furthermore how can one prove/disprove it.


Is all uncountable set is equipotent to a certain $\mathcal{P}(A)$?

Can we say that every uncountable set $X$ is equipotent to the set of all the parts of a certain set $A$ ?


What are some ways to power dual supply ICs with a single Supply PSU?

What is the best way to power a dual supply Op-Amp (CMOS) with a 9v Battery or a 12-Volt wall-wart (Inside +).  I can do it with two .5 Watt 200k Ohm Resistors in a voltage divider configuration. However, I want to use three and get a "low" signal above Earth Potential.   I purchased some ICs on eBay for very cheap, ICL7660, that supposedly will do the DC to AC conversion for you.   Any suggestions on how to power dul supply ICs with a single supply PSU?


how to know if admin is in edit page or post

I use this after I checked if the user is admin     if ( isset($_GET['action'])  && $_GET['action'] === 'edit' )   is there better way?


Sometimes it cannot be avoided to run traces over a ground plane (bottom layer) in a two layer PCB.   I have two questions regarding this:   In the (simplified) example below, what is preferred? To use two small vias, minimizing the interruption of the ground plane (R1 to R3), preventing ground loops, but having more vias, or using a large line via the ground plane (r2 to R4)? In most cases I can chose to have either a VCC line (5 or 3.3V) or a signal line (MIDI, DMX, 31-250 kbps) run over the ground plane when needed. Is there any preference?


In a math display, I want to have the tag of an equation at the beginning of the equation. Something, like:  (Tag) ax=b.   It is not sufficient to just use a text{} or a mbox{} environment, since I want to quote this equation afterward.


Is angular frequency the same as angular velocity or are they different?

I know there are duplicates.   But the answers seem to disagree and also I have more specific questions related to this title.   First of all, most questions on this site which ask this question have at least two answers of which one is at variance with the other.  Some say they are the same thing, just that one is scalar 'magnitude ' and one is a vector with 'direction'. On the other hand you have some answers saying they are completely different things apart from the case of complete cyclical motions of constant velocity.     Don't these answers contradict each other?  You have these types of answers posted on a few of such questions.   Wikipedia too, in 'angular frequency ' states that it's just the same as angular velocity.   How is that possible?   Isn't it wrong?  At least in oscillating systems which don't have complete circular motion with constant velocity.   The angular velocity is just the derivative of theta while angular frequency is omega.  I am very confused.   When I am asked about an angular velocity of an oscillator,  does that mean omega?  Or does that mean derivative of theta? The two don't seem to be identical at all.  For omega you get a constant which is dependent on some given quantities.  While the derivative of theta turns out to be completely different and is dependent on t=time and has a cos or sin functions for it's own function.    To sum it up.  There is a lot of confusion here , and seemingly contradictionary material as well.  Can someone please make it clear?-


I have the following structure  [   {     "name": null     "match": [{                  "id": 0,                  "location": ""               "awayTeam": {                      "id": 1568,                      "teamName": "Manly United" },                  "homeTeam": {                      "id": 1523,                      "teamName": "Sydney FC Youth" },                      "matchDataProvider": [{                             "id": 2953046,                          "updatedDate": null }],                  "matchPunditPrediction": [],                  "matchResult": null,                      "userMatchPrediction": []                }]    } ]   I need to iterate over the match element and retrieve properties


I own a server that it's costantly being attacked by scripts (that try to access to phpMyAdmin's setup file's and stuff like this). I've heard that many people get this kinds of attacks, but I'm starting to worry since they are getting more common (last month I got 2 attacks, and on november 7th there are 3 attempts already (1st, 4th and 6th of nov).  I'm not really concerned about it, since I don't have any database. All the info i have on that server is absolutely public, but I'm worried about that attacking-rate increase.  So I thought I could -temporarily- block the IPs that come from those attackers, or something that could make my server ignore requests that ask for phpMyAdmin, pma, xamp, etc.  Is there something like that? my server is Linux+Apache+Php


Blinking folder with question mark while booting

Whenever I start my Mac, a blinking folder with a question mark appears.  I searched in google and it says to go do " Internet Recovery". I did all the steps, I repaired everything in Disk Utility, then I went ahead and tried to install macOS Sierra, I inserted a flash drive and followed the instructions in Disk Utility.   After that, I went ahead and installed macOS Sierra. Then the prompt appeared which says "You may not install to this volume because the computer is missing a Firmware partition."  So I went ahead and tried to find other ways, the instructions that I followed was: erase the "macOS base system" but mine was all greyed out even the unmount button  Also, I tried ⌘ commandD and a NVRAM-reset: ⌘ command ⌥ option PR but they both didn't work.


I want to replace all the 4 dots(....) in my String with new line (\n) by using regex in the replace method.  orange...apple....banana --> should be pirnted as:  orange apple banana   I have tried the following:  get : function(value) {  value = value.replace(/(...)/g, '\n');  return value; }   and   value.replace(/(\r\n|\n)/g, '....')    --> should retrieve 'orange....apple....banana'


How to compute $75^{75^{75}}$ modulo $32$?  I tried:  It's $\mathrm{gcd}(75,32)=1$, so with Euler's phi function I get   $\varphi(32)=32(1-\frac{1}{2})=16$.  Then it's $75^{16}\equiv1 \ (\mathrm{mod} \ 32)$.   So I computed $75^{75}$ modulo $16$:  It's $\varphi(16)=16(1-\frac{1}{2})=8$  So $75^{75}\equiv 1 \ (\mathrm{mod} \ 8)$ and $75^{75^{75}} \equiv 1  \ (\mathrm{mod} \ 8)$  Then it's $75^{75^{75}}\equiv 75^1 \equiv 75 \ (\mathrm{mod} \ 32)$.  I'm not sure if this is correct. Is there something wrong in this calculation or can it be done like this?


Badge earn notification redirect to Election Page rather than on profile page

I just got below notification of earning a "Constituent" Badge for voting on the 2014 Moderator Election election phase today.  But when I click on the notification it getting redirect to  rather to on my profile page as written. Is this any kind of bug ? Is anyone else face this issue too ?


When attempting to run various pieces of software (notably Steam and Yenka), I have come across an error similar to this: error while loading shared libraries: libGL.so.1: cannot open shared object file: No such file or directory  I'm running a 64 bit system, with an NVidia Optimus card (I dual boot for certain windows only software that requires a dedicated graphics card). I have bumblebee installed, and I am using the nvidia-current driver, rather that one downloaded from NVidia, as recommended.  The library (libGL.so.1) is not present in the top directory of /usr/lib, however it is present in /usr/lib32/nvidia-current, as a softlink to /usr/lib32/nvidia-current/libGL.so.304.64.  A section of the output from ldconfig -p:  libGL.so.1 (libc6,x86-64, OS ABI: Linux 2.4.20) => /usr/lib/x86_64-linux-gnu/mesa/libGL.so.1 libGL.so (libc6,x86-64, OS ABI: Linux 2.4.20) => /usr/lib/x86_64-linux-gnu/libGL.so libGL.so (libc6,x86-64, OS ABI: Linux 2.4.20) => /usr/lib/x86_64-linux-gnu/mesa/libGL.so   Obviously a library with that name is being loaded, but they are located in /usr/lib/x86_64-linux-gnu, however installed software doesn't seem to able to 'see' it. For Steam, running it with optirun causes it to work, but this is not the case for Yenka. I assume that optirun causes the library stored in /usr/lib32/nvidia-current to be  used, which allows Steam to run, so I can't understant why Yenka won't run.  Can anyone explain why software can't see the normal mesa library, and why Yenka refuses to run with the nvidia-current library?


Is there a way to remove the stock Google apps without rooting your phone

Hi I'm using Moto X style and most the space consuming apps are stock Google one which I basically don't use at all. Is there a way to remove them without rooting the device. I know it's an hard ask but I'm just taking a chance here ?


Find the difference between two JavaScript objects

I have two JavaScript literal objects below:  var obj1 = { 3a5f5c70-58ef-4e4b-8fe0-a271ea2b4f11: true, 9e185ad9-0816-4c5b-ab97-a6c0103d6c22: true, -K5F-v9lDvZPgDuVhMi3: true, -K5F-wzH1J01CFXZ9r2c: true, -K5F-x6H4NXdlwXlolQE: true}  var obj2 = { -K5F-v9lDvZPgDuVhMi3: true, -K5F-wzH1J01CFXZ9r2c: true }   I want to find the difference between them so that when I call:  var result = findDifference(obj1, obj2);   So that the result variable would be  result = { 3a5f5c70-58ef-4e4b-8fe0-a271ea2b4f11: true, 9e185ad9-0816-4c5b-ab97-a6c0103d6c22: true, -K5F-x6H4NXdlwXlolQE: true }   I could loop both objects and compare their keys for non-equality or probably convert to then array type first. But I am curious if there is an existing library that is more efficient when the objects grow larger. I have looked at underscore but cant seem to find one that meet my need.  jsfiddle:


What is J.J. Abrams opinion of fan theory of Jar Jar as the ultimate Sith Lord?

There is a popular fan theory  covering this topic.  I have always thought Jar Jar held a more substantial role in the Star Wars universe.  His action to give Palpatine unlimited powers is too glaring to ignore.  Either George Lucas was trolling us all and Jar Jar is nothing more than a 2D comic relief or he was setting us up for a deeper, subtler interpretation of Star Wars.


If $(1+\sqrt{2})^n=a_{n}+b_{n}\sqrt{2}\;,(\forall n\in \mathbb{N}).$Then $\lim_{n\rightarrow \infty}\frac{a_{n}}{b_{n}} = $

Let $a_{n},b_{n}\in \mathbb{Q}$ such that $(1+\sqrt{2})^n=a_{n}+b_{n}\sqrt{2}\;,(\forall n\in \mathbb{N}).$Then $\displaystyle \lim_{n\rightarrow \infty}\frac{a_{n}}{b_{n}} = $   $\bf{My\; Try::}$ Using   $$(1+\sqrt{2})^n = 1+\binom{n}{1}(\sqrt{2})+\binom{n}{2}(\sqrt{2})^2+\cdots \cdots +\binom{n}{n}(\sqrt{2})^n$$  So $$a_{n} = \binom{n}{0}+\binom{n}{2}\cdot 2+\binom{n}{4}\cdot 2^2+\cdots \cdots $$  So $$b_{n} = \binom{n}{1}+\binom{n}{3}\cdot 2+\binom{n}{5}\cdot (2)^2+\cdots$$  Now How can i solve $$\lim_{n\rightarrow \infty}\frac{a_{n}}{b_{n}} = $$  Help required, Thanks


I don't know how to write my own regex.     1 RULE: I want allow: a-z, A-Z, 0-9. new Regex("[^a-zA-Z0-9 -]");      2 RULE: I want allow char: +, -, |.   How can i combine 1st and 2nd rule?


Machine learning courses: maths explained

I'm looking for a Machine Learning course that would give the maths behind algorithms rather than simply teach how to apply them. I've looked at Udacity Into to Machine Learning and Andrew Ng's course on Coursera, and they both seem too applied to me. Any recommendations of textbooks would also be much appreciated.


Is that possible to change IMEI on Iphone 5?

I know changing the IMEI number of the phone, is illegal in most countries.  I'm basicly curious about two things:   Is that possible? If it is not possible; why is that so hard, technically? (Considering the fact that it is written somewhere in the phones memory.)


What noun or a phrase would fit well to refer to a person's "placement" in the family?

What noun or a phrase would fit well to refer to a person's "placement" in the family, among his or her siblings?:     She is the fourth and the last child in her family. Her siblings are   all brothers and the youngest one is ten years older than her. Girls   of this family status are usually more mature and less shallow.    is seeking how to ask a question about one of the constituent factors, while I'm looking for a term that would refer to a particular combination of constituent factors.  To use an example, letter "l" is the third letter in both "owls" and "delamination". That that letter is the third one is a constituent factor that plays its part in both combinations.   However, the combinations are quite different:   one word is a combination of four letters, the other one is a combination of twelve; in the first combination there are more letters preceding "l" than those following it, in the second combination it is the other way around; in the first combination, letter "l" it is surrounded by consonants, in the second combination by vowels;  etc.


why this error , which my compiler does'nt catch?

My compiler is not showing up any error whereas it does give a run time error can somebody can me whats wrong with the typecasting i did? Code shows error Exception in thread "main" java.lang.ClassCastException: class practice.Animal cannot be cast to class practice.Dog (practice.Animal and practice.Dog are in unnamed module of loader 'app'`)


How can I find out which tab is playing music?

Part of the research I do online, with Google Chrome, requires me to go to several sites including those who, for some dumb reason, think it's alright to hide the music player.  If I want to listen to music I can play my own and I usually am listening to something else when a random site starts playing random looped songs.  So, how can I find out which tab is playing music, and eventually mute it?


Let $$x_n=\left(1-\frac13\right)^2\left(1-\frac16\right)^2\left(1-\frac1{10}\right)^2\cdots\left(1-\frac2{n(n+1)}\right)^2,n\ge2$$ Then the value of $\lim_{n\to\infty}x_n$ equals?  I tried to take log both sides: $$\log x_n=2\sum\limits_{k=2}^{n}\log(1-\frac{2}{k(k+1)}) $$ Despite taking limit both sides, I did not get it of the standard form of $1^{\infty}$.


I have a table:  CREATE TABLE methods (     method_id serial PRIMARY KEY,     method_name varchar(100) );   I now want to create a table with the following columns:  CREATE TABLE experiments  (     method integer[] REFERENCES methods(method_id),     trials integer );   I get an error:     Key columns "method" and "method_id" are of incompatible types: integer[] and integer.   I understand that the columns have to be the same type and I also saw that some tried to tackle this foreign key on array issue already:     My interest is that 'method' should be an array of integers referencing 'method_id' from table 'methods' but I can't figure it out. I thought that the link above might be a solution, but seems that was not implemented (?)  Some posts propose using junction/join tables:     I am an absolute beginner and I could not figure it out yet. For me, it is a matter of understanding first how to tackle this issue of a foreign key on an array. Multiple methods can be considered as forming a class of methods. Each class can have a certain number of trials.


I'm having trouble with escaping characters in bash. I'd like to escape single and double quotes while running a command under a different user. For the purposes of this question let's say I want to echo the following on the screen:  'single quote phrase' "double quote phrase"   How can I escape all the special chars, if I also need to switch to a different user:  sudo su USER -c "echo \"'single quote phrase' \"double quote phrase\"\""   Of course, this doesn't produce the right result.


Problem after update: blue screen with only the mouse cursor

My Ubuntu 12.04 was normally updated through the Update Manager, something about gtk. Then I rebooted and now all that shows after the splash screen is a blue screen that only shows the cursor.


I am trying to store the bundle name and its latest version in the Map.  Below is my newDirs which is an ArrayList<Map<String, String>>() from which I am supposed to get the Bundle name and its latest version-  [{objectName=/storage/Model/Framework/1.0.0/, objectId=4fa042a5a56c861104fa05c246cf850522a2354ca223, objectType=DIRECTORY},  {objectName=/storage/Model/Framework/1.0.1/, objectId=4fa042a5a66c860d04fa056bbe1cf50522a14094ca3f, objectType=DIRECTORY}]   Now from that above List, I am supposed to extract the latest version of Framework bundle . So in the above case, it is 1.0.1 version and the bundle name is Framework. So my map will store Framework as the Key and 1.0.1 as the version of the bundle in the above case.  Below is my code-  final List<Map<String, String>> newDirs = new ArrayList<Map<String, String>>();  for(String ss : list) {      //some code here for newDirs      Map<String, String> map = storageDirectorySort(newDirs);     System.out.println(map); }  /**  * Sort the list and then return the map as the Bundle Name and its Latest version  *  */ private static Map<String, String> storageDirectorySort(List<Map<String, String>> newDirs) {      Map<String, String> map = new LinkedHashMap<String, String>();      // do the sorting here and always give back the latest version of the bundle and its name      return map; }   Can anybody help me with this. I am not sure what is the best way of doing this?


Does there exist a continuous function from [0,1] to R that has uncountably many local maxima?

Does there exist a continuous function from $[0,1]$ to $R$ that has uncountably many strict local maxima?


I want to create a .htaccess that does the following things:   Routes all files through to /index.php Forces use of SSL Doesnt allow robots to load individual PHP files.  For instance, if a robot wants to load /pages/folder/file.php  It won't allow it.  I'm constantly getting error files because robots load those pages and the database variable isnt set or something.  However I need my website's javascript to be able to access it.     So far I've for the first two down, (I think):          #Redirect all quries to SSL port 443         RewriteCond %{SERVER_PORT} !^443$         RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]          # Don't allow www, redirect to https://         RewriteEngine On         RewriteBase /         RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]         RewriteRule ^(.*)$ https://%1/$1 [R=301,L]          # Route everything via index.php         RewriteBase /         RewriteRule ^index\.php$ - [L]          RewriteCond %{REQUEST_FILENAME} !-f         RewriteCond %{REQUEST_FILENAME} !-d         RewriteRule . /index.php [L]   Is this correct? Is it in the right order? How can I achieve point three?


Approximate order statistics for normal random variables

Are there well known formulas for the order statistics of certain random distributions? Particularly the first and last order statistics of a normal  random variable, but a more general answer would also be appreciated.  Edit: To clarify, I am looking for approximating formulas that can be more-or-less explicitly evaluated, not the exact integral expression.  For example, I have seen the following two approximations for the first order statistic (ie the minimum) of a normal rv:  $e_{1:n} \geq \mu - \frac{n-1}{\sqrt{2n-1}}\sigma$  and  $e_{1:n} \approx \mu + \Phi^{-1} \left( \frac{1}{n+1} \right)\sigma$  The first of these, for $n=200$, gives approximately $e_{1:200} \geq \mu - 10\sigma$ which seems like a wildly loose bound.  The second gives $e_{1:200} \approx \mu - 2.58\sigma$ whereas a quick Monte Carlo  gives $e_{1:200} \approx \mu - 2.75\sigma$, so it's not a bad approximation but not great either, and more importantly I don't have any intuition about where it comes from.  Any help?


In the theorem environment, I use \begin{enumerate}[(i)] to list some properties. This makes the numbering italic but I want them to be regular font. Is there any way to do this?


How can I prevent Ask.com Toolbar from being installed every time Java is updated?

As many are painfully aware of, Oracle continues to not only bundle the Java installation with the useless Internet browser toolbar from Ask.com, but also enable its installation by default. In addition to the toolbar, Ask also replaces your favourite search engine in your browser with Ask.  Furthermore, the Java installation goes as far as to actually recommend installing this useless junk, meaning that any non IT-savvy person is more than likely to leave it checked and install it (after all, it was enabled by default and the friendly Java installer did recommend it, right?).  To add insult to injury, even if you remove the Ask Toolbar, you can be sure to see it again soon, when the next Java update hits you (which seem to happen quite often lately, due to loads of security fixes for Java, but that's another story).  I'll duly remove the check-mark to install Ask Toolbar, whenever I update Java, but when supporting my family and friends, it's obvious they don't.  How can I prevent the pesky Ask.com Toolbar from being installed in the first place?


Optimizing PostGIS query on table using buffered point

I have a global dataset of ecoregion boundaires. There are ~809 unique polygons in this dataset. I've imported it into PostGIS with SRS of 4326 and built a spatial index using the function below  CREATE INDEX ecoregionsindex ON ecoregions USING gist(geom);   Querying with a point takes ~150ms to run  SELECT id FROM "ecoregions" WHERE ST_Within (ST_PointFromText('POINT(-111 45)', 4326), geom);   Buffering ~20,000m around this point using the ST_DWithin() method takes about 15,000ms to run.   SELECT id FROM "ecoregions" WHERE ST_DWithin(ecoregions.geom, ST_MakePoint(-111,45)::geography,  20000);   Is there a way to optimize my data or the query above to run more quickly?


I know high poly models not preferred to rig but I like to make a breif animation with this little guy.


How to force windows to use IPv4 Ethernet connection

So I was wondering why windows is prefering my crappy wifi connection over my ethernet and it had nothing to do with interface metric. It turns out that my ethernet doesn't support IPv6 but my Wifi does, therefore windows deemed it the right network to use. However, even if wifi supports IPv6 it still sucks, can I force windows to prefer the ethernet connection and only use the wifi connection when IPv6 is needed? Again, I tried messing with the interface metric but it doesn't work because windows still prefers the one with the IPv6 connection despite the ethernet (no IPv6) having a lower metric. I knew this because once I turned off IPv6 for my Wifi, Windows prefers my ethernet connection. So in summary, or tldr:  Wifi sucks, but supports both IP versions, Windows like this Ethernet blazing fast, but doesn't support IPv6, Windows does not prefer this How to force windows to use ethernet and only Wifi when IPv6 comes to play? (interface metric doesn't work)


How do I get i7-1065G7 (late 2019 HP Spectre x360) to identify laptop monitor in Ubuntu 18.04?

I just recently got a new HP Spectre x360 and I've dual booted ubuntu 18.04 on it. I had to get wifi working by following  (mostly posting in case others need help). Once I was able to do that, I moved to the display, which is stuck at Unknown Display 1024x768.  When I run inxi -F, I get:  System:    Host: mbb Kernel: 5.0.0-37-generic x86_64 bits: 64 Desktop: Gnome 3.28.4            Distro: Ubuntu 18.04.3 LTS Machine:   Device: un-determined System: HP product: HP Spectre x360 Convertible 13t-aw100 serial: N/A            Mobo: HP model: 86FA v: 87.26 serial: N/A UEFI: AMI v: F.06 date: 10/28/2019 Battery    BAT0: charge: 58.0 Wh 94.8% condition: 61.2/61.2 Wh (100%) CPU:       Quad core Intel Core i7-1065G7 (-MT-MCP-) cache: 8192 KB            clock speeds: max: 3900 MHz 1: 1003 MHz 2: 1008 MHz 3: 969 MHz 4: 1011 MHz 5: 1127 MHz            6: 1048 MHz 7: 1026 MHz 8: 1016 MHz Graphics:  Card: Intel Device 8a52            Display Server: x11 (X.Org 1.20.4 ) drivers: fbdev,intel (unloaded: modesetting,vesa)            Resolution: 1024x768@76.00hz            OpenGL: renderer: llvmpipe (LLVM 8.0, 256 bits) version: 3.3 Mesa 19.0.8 Audio:     Card Intel Device 34c8 driver: snd_hda_intel Sound: ALSA v: k5.0.0-37-generic Network:   Card: Intel Device 34f0 driver: iwlwifi            IF: wlo1 state: up speed: N/A duplex: N/A mac: 7c:b2:7d:d0:74:6f Drives:    HDD Total Size: 1024.2GB (0.7% used)            ID-1: /dev/nvme0n1 model: KXG60ZNV1T02_KIOXIA size: 1024.2GB Partition: ID-1: / size: 493G used: 7.1G (2%) fs: ext4 dev: /dev/nvme0n1p5 RAID:      No RAID devices: /proc/mdstat, md_mod kernel module present Sensors:   System Temperatures: cpu: 44.0C mobo: N/A            Fan Speeds (in rpm): cpu: N/A Info:      Processes: 322 Uptime: 28 min Memory: 1396.6/15845.8MB Client: Shell (bash) inxi: 2.3.56    This tells me that my system is at least identifying the gpu (and it is intel). However, when I run apt list --installed, I checked my installed packages and noticed that for some reason I had xserver-xorg-video-amdgpu-hwe-18.04 installed instead of intel.  Also, when checking /usr/shared/X11/xorg.conf.d, I don't have a 10-intel.conf file, I only have 10-amdgpu.conf, 10-quirks.conf, 10-radeon.conf, 40-libinput.conf, 70-wacom.conf.  Then, when I check xrandr -q, all I get is:  xrandr: Failed to get size of gamma for output default Screen 0: minimum 1024 x 768, current 1024 x 768, maximum 1024 x 768 default connected primary 1024x768+0+0 0mm x 0mm        1024x768      76.00*    Which is concerning because I cannot seem to fix the first error, but it also means when I run xrandr --newmode and xrandr --addmode, I can change the resolution but it runs off the screen (so I still only see 1024x768 pixels worth of screen).  xrandr --listmonitors returns:  xrandr: Failed to get size of gamma for output default Monitors: 1   0: +*default 1024/271x768/203+0+0  default   Other info that I'm not sure how exactly it ties in...  lspci -k | grep VGA returns 00:02.0 VGA compatible controller: Intel Corporation Device 8a52 (rev 07)  I've tried installing mesa-utils and that doesn't seem to do anything.  I think there was another command that gave me helpful info, but at this point I'm just kinda running in circles. Does anyone have any idea what I can do to get my screen resolution fixed?  I also have a DP to USB-C adapter that I've used to plug in an external monitor, but it doesn't get detected.


We are polling respondents every month and asking a couple of questions about the number of times they eat certain foods.   We have significant loss to follow up every month but generally retain 20% - 30%.  For the participants who stay engaged and respond across the months, I understand we use the paired t-test.   My question is what test would be appropriate to use to compare between two months say for example comparing a june & july sample which contains some folks in june who dropped out in july, some folks who answered for both june and july, and some new randomly selected folks who were added in july?   I've read through previous posts but cant get whether using the paired test is really appropriate. THANKS!


nginx accept HTTP & HTTPS requests on two different ports

I have one nginx server setup(two config files) with two gunicorn web servers setup and running. One gunicorn is production and the other is staging.   I want nginx to serve http requests to xyz.com as well as https requests to xyz.com to the production gunicorn server @ 127.0.0.1:8000.    I have accomplished this with:  server {    listen 80;    server_name xyz.com;    return 301 https://$http_host$request_uri; }  server {    listen 443 ssl;    server xyz.com;    ..... <<< ssl stuff   location /{       .... proxy_stuff       proxy_pass http://127.0.0.1:8000;   } }   I also want http traffic to xyz.com:8080 and https traffic to xyz.com:8080 to hit the staging server @ 127.0.0.1:8081. I have been been able to get https traffic to xyz.com:8080 working as follows:  server {    listen 8080 ssl;    server_name xyz.com;    ...... << ssl stuff    location / {       ...... << proxy stuff       proxy_pass http://127.0.0.1:8081;    } }   But I can't seem to find a way to redirect http traffic at xyz.com:8080 to https traffic at xyz.com:8080. I have tried the same redirection that I did with port 80 but have not been successful.   Could use some direction.


Having generic types like this:  SomeType<T> SomeType<T1, T2>   and only have the type of them:  Type type1 = typeof(SomeType<T>); Type type2 = typeof(SomeType<T1, T2>);   How to get the type of  T from type1  and T1 and T2 from type2?  Example: Using typeof(SomeType<int>) will only return SomeType´1. But I'm searching for a way to get the int type, just as typeof(int) will do.


A: How to disable generation of thubmnail just for video / movie?

How to disable generation of thumbnails for video files in file browser?    Solved accordingly to  answer.   Install dconf-tools package and run dconf-editor. "In the tree on the left, navigate org → gnome → desktop → thumbnailers, then edit the disable option in the right pane as above." I've typed value ['video/avi', 'video/mp4'] to the disable named field.   Works like a charm, video thumbnails (of provided mime types) are no longer generated in nautilus.


How to share a folder/disc on ubuntu core?

I have successed in installing the Ubuntu appliance with Plex on a Raspberry Pi 2. I plugged an external drive to the Pi, and successfully added it to the plex media library. I want to share this drive on my private network so I can add files on it. How can i do it ? I 'm not familiar with ubuntu core and haven't found any solution. Thank you.


I want to bevel 3 cubes. To do that, I following . In this tutorial, the author accomplishes the following:  I try to do the same, but for me, it doesn't do the same. Instead, it seems to bevel in 2 dimensions only:  What am I doing differently than the tutor? Thank you!


NullReferenceException: Object Reference Not Set to an Instance of an Object (How is that so and I should I solve it?)

I am stuck several days because of this problem, which I am almost on the verge of giving up. (Using Unity Engine 2019.3a by the way). The TextButtonName.text can't read what TextButton is throwing to it. Meanwhile, when I did a Debug.Log test, the console shows what is the text in the TextButton. What the console showed about Debug.Log() thing should be the value of a variable assigned (hence, the     Is there any way that whatever is the text at the button, will be the value that can be used for Switch Statements? If there is a way (I am sure there is), how? Thanks.    //When pressed, ButtonPress() will be triggered and will go to Experiment Information Scene public void ButtonPressTutorial(){     //TextButton = gameObject.GetComponentInChildren<Text>().text;     TextButton = EventSystem.current.currentSelectedGameObject.GetComponentInChildren<Text>().text;     TextButtonName.text = TextButton;     /* TextButton, although has value shown in Debug.Log, the problem is that     it throws a NULL value when being thrown to TextButtonName.text Why is that? Is there that I need to do?*/     Debug.Log(TextButton);     SceneManager.LoadScene(5);}     Switch statements:           switch (TextButtonName.text) {          case "  Tutorial":             ExpNum.text = "Tutorial";             ExpTitle.text = "Coke With Mentos Experiment";             ExpDetails.text = "//Details will be shown here";             break;         case "Experiment 1 Button":             ExpNum.text = "Experiment 1";             ExpTitle.text = "Lemon Volcano Experiment";             ExpDetails.text = "//Details will be shown here";             break;         default:             ExpNum.text = "No Experiments";             break; }


How to test a system alone with very little experience?

I have little experience with testing and I'm being hired to work on a team where I am the only tester. I'm struggling to find the best approach for the process. Being alone should I write down a test script or not? Wouldn't it take too much time? I have no experience in writing test scripts, could anyone help with a good reference (book, video or whatever), please?


I have no idea what I'm doing and need help please

Ok so my brother passed away a few months ago and left behind his asus computer my mom just bought him before he passed. He downloaded ubuntu or whatever on it and she wants me to clear everything off and reinstall windows so she can use it but I have no idea where to begin can anyone help me please?


Why aren't the hottest stars mostly invisible due to radiating mostly in ultra-violet?

The hottest stars have surface temperatures in the range of 40,000K.  Wolfram Alpha says that  should radiate almost no energy in the visible spectrum.  Why then do such stars appear blue?  I know the composition of elements in a star can affect its color via absorption lines, but I don't see how that would affect actual radiated light.  And it doesn't seem that even these large stars are large or fast enough to red-shift their output by such a large amount.  Why aren't these stars invisible?  As we don't seem to observe it, is there a reason that it is not possible for a star that is hot enough to radiate mostly in ultra-violet?


Why did Douglas Adams pick 42 as the ultimate answer?

Star Trek often refers to 47 and Star Trek made a sport out of finding real or imagined references to 47. Why did Douglas Adams pick 42 as the ultimate answer in the Hitchhikers guide to the galaxy?


What happens when setting the O_CREAT bit but only providing two parameters for open()?

, I was asking about an assignment of implementing the sys_open syscall for OS161 which will be called by the open function. The definition of the open function is as follows: int open(const char *filename, int flags, ...);  and the man page looks like this: Synopsis #include <unistd.h> #include <fcntl.h>  int open(const char *filename, int flags); int open(const char *filename, int flags, mode_t mode);  Since it's a variadic function, it can take as many arguments as passed, but only the cases with 2 or 3 arguments are defined. My question was how to determine the number of arguments passed to open, is it 2 or 3. The answer way that if the O_CREAT bit is set in the flags, then a mode is provided. But I've seen some code within the OS that looks like this: fd = open(filename, O_WRONLY|O_CREAT|O_TRUNC);  In this case, the value of the mode would be whatever was in the a2 register and not a valid value. 1 - What happens in this case and what should I do in such case? How the arguments are passed? Does it pass a zero in the a2 register (not likely to happen)? Or does it just leave whatever value was in the register? At any case, how can I determine whether the last argument is valid or not? I used to let the sys_open function receive 3 arguments and only use the last one (mode) if the O_CREAT bit is set. But now since the function can be called with the bit set and with no third argument, I can still use the value of mode even if it's invalid. 2 - What should the logic be for handling the arguments? The way the syscall is issued is detailed in the question mentioned above.


Time Series: Confused about identification of (possibly?) an ARMA(p,q) model

this is my first ever question on a website i use frequently!  This time series has given me much trouble over the last couple of days even after extensive googling, I suppose with TS theres no two series that look the same, hence my confusion!   I have the following ACF and PACF plots for my data:    After modelling NUMEROUS models in R (ARMA(p,q), with all combinations of p=0,1,2,3,4 and q=0,1,2,3,4) and looking at their theoretical acf plots, it seems R's auto.arima gave the best model with p=q=2.   But in my work, i don't want to just say i used R and inferred nothing from the ACF plots haha!  I understand that the slightly significant PACF at lag 1 indicates an AR component(?) and that as both plots 'slope off' it suggests a ARMA(p,q) model, but is there anything else im missing????  Also; the ts (in my eyes) seems seasonal, however ironically, no amount of differencing makes a difference, the plot still looks the same no matter what d equals. (R also tells me its not seasonal)  In short:   What does the ACF plots tell me (main) Am i right in not differencing the data   Thanks a bunch!!


Last night when I was researching on an issue I can to a post which one of the answers had a Avatar Icon with text Moderator inside it. I cannot find that post today.  Considering that person reputation was lower than 50, I wonder if he could be a real moderator.  Do we have a guideline which explicitly ban this?(That is A none moderator uses the moderator icon?   I think no web site needs fake moderators.  The suggested(Duplicate) link says impersonation is OK. I disagree. A moderator should not be impersonated by anyone as people rely on them more than others..


How can I prevent my sponge cake(genoise) from sinking after baking?

I have made a genoise sponge cake three times now. Every time when I take the cake out of the oven, it always sinks a lot. Like, as soon as I flip it onto the wire rack, the bottom falls about halfway. I know it won't really affect the taste or anything, but is there a method for preventing this? I know some bakers let their cakes cool in the oven, but won't that dry out the cake?


Coset multiplication giving a well defined binary operation

Let G be a group and let H be a normal subgroup of G. Then prove that  the rule of coset multiplication  $(aH)(bH)$=$(ab)H$  gives a well defined binary operation on the set   $G/H=(aH| a \in G)$  Can anyone show me a way to approach this as I have no idea what this is asking


Typing guillemets (angle quotes, «») in Russian and English keyboards

I want to type guillemets (angle quotes, «») in Ubuntu when using   Russian keyboard mapping English keyboard mapping   Is it possible (preferably without typing numeric codes)?  There is a discussion , but it does not mention Linux.


What i wan't to say is "we can't fit in X in the modern world" but it doesn't portrays the correct meaning what i mean is that its wrong to mould X according to the parameters of the modern world, is there a better word than "Fit in"


Assume that I have 1 unit of something and then I add ½ unit resulting in a total of 1.5 units. Then I add half of the half (0.25 units) for a total of 1.75 units. Then I add the half of the half of the half (0.125 units) resulting in 1.875 units. IIUC, the result will be finite and have a limit but what is it and is there a general formula I'm looking for?  The problem seems similar to a Riemann sum where an infinite sequence has a finite value, or similar to Xeno's paradox about Achilles and the tortoise.


I'm cycling through a list using {% for item in list %}  and I want to output something like this:
One

Two

Three

Four
 ...   with the intention of styling the alternate lines a different colour.  Django (1.3) has no mod or div template tag operators. I know I can add them by manipulating the django source, but I'd rather not do that as I want to be able to package this app up.  How can I achieve this?


Book where wizards learn magic by bonding with crystals that imbue them with powers

I read this book a long time ago, but I'm guessing it was written sometime in either the 80's or early 90's. It was a rather long/large book.  Plot summary: Set in a fantasy land of wizards and magic, some kids (maybe) are recruited to learn magic. In the process they find out that wizards are created by being placed in a crashed spaceship that bonds them with crystals that imbue the powers. One of them is able to bond with many/multiple crystals to become very powerful.


Insert the .tex file created through the knitter to main .tex file

I want to insert out put file (created in RStudio as .rnw file, then I complied, it creates the .tex file) into my main .tex file. But I got an error, hw we can do this?


Why can I cd to // but not /// or //// or ///// or …

When I change directory to //, it seems to put me in a special directory that is very similar to but slightly different to /. However, trying to add any further slashes (///) simply drops me in /.  $ cd /    ;pwd / $ cd //   ;pwd // $ cd ///  ;pwd / $ cd //// ;pwd /   It seems that // is somehow special, even though it has the same directories and everything, it's still a different string returned by pwd. Why is this? Why can my working directory be // but not ///?


Does the function $\frac1{1+|z|^2}$ have a power series at $z=1$?

Does $\frac1{1+|z|^2}$ have a power series at $z=1$? If not, why not? How can we generally say that a function has a power series?


Assigning null to variable in finally block

The output of the following piece of code is "Test Passed"; can someone explain to me why ?  public class Test {     public static void main(String args[]) {         System.out.println(new Test().print());     }      protected StringBuilder print() {         StringBuilder builder = new StringBuilder();         try {             builder.append("Test ");             return builder.append("Passed!!!");         } finally {         builder = null;      } }


How Can i get DateArray of current Running Week With Month a Day And Month in Asp.net C#

I need on this format:  string[] DateArray = new string[7] { "6 Apr", "7 Apr", "8 Apr", "9 Apr", "10 Apr", "11 Apr", "12 Apr" };   This is Static, I need this Dyanamic. How??  As if today is Wednesday,12 of August, I need My DateArray like:  string[] DateArray = new string[7] { "9 Aug", "10 Aug", "11 Aug", "12 Aug", "13 Aug", "14 Aug", "15 Aug" };   I think it is clear Now.


Electrodynamics and the Lagrangian density

Could anyone tell me what equations can I obtain from the Lagrangian density  $${\cal L}(\phi,\,\,\phi_{,i},\,\,A_i, \dot A_i,\,\,A_{i,j})~=~\frac{1}{2}|\dot A+\nabla\phi|^2-\frac{1}{2}|\nabla \times A|^2-\rho\phi+J\cdot A$$ by the Euler-Lagrange equations?


I would like to use a font similar to the one use on a Texas Instruments TI-30X calculator.    Is there a font like this?


Python Adding a couple of lists into one list

I have a very basic question, although I searched the web I couldn't come up with an alternative. I have found similiar topics on this but it just didn't seem to work for me.  The goal: I want to add a changing list element into a list. I know extend can make a list values go into one list; but I want them stored as lists not as values inside a list. What I have tried: I have tried appending each changed item I have to a bigger list. Homever, when the appended item changes so does the bigger list,which is not I want.  The problems with it:  The result I want from the code:  tobesent=[[1,0,0,1,22],[1,0,0,11,33]]   The result I get from the code:  tobesent=[[1, 0, 0, 11, 33], [1, 0, 0, 11, 33]]   When I used debugger to understand the problem when the item changes to become the second item, the first item also changes. I don't want this.  What I have tried:  I have tried adding the list elements one by one using the append function of a list. However, I have also tried the extent function to see if the values come up right and there was nothing wrong with that. On the other hand, they are just stored as values and not as lists.   The final code I have at hand:  Here is what I have tried.  tobesent=[] output=[] anotherlist=[1,22,11,33]  biglist=[1,0,0,0,0] for i in range(0,len(anotherlist),2):     biglist[3]=anotherlist[i]     biglist[4]=anotherlist[i+1]     print(biglist)     tobesent.append(biglist)     print(tobesent)


Why does this act of sacrificial protection against Voldemort not work?

In Harry Potter, it is understood that the act of Self Sacrifice is a means of protecting one or more people from death from Avada Kedavra.  Sacrificial Protection happens at least twice in the Harry Potter series:   Lily sacrificing herself to attempt to save Harry. Harry sacrificing himself to attempt to save the defenders of Hogwarts.   But then we have a scene that Harry sees by looking into Voldemort's mind. Voldemort is looking for Gregorovitch and murders a german-speaking family who lives in Gregorovitch's old home:     ... He raised the wand. She screamed. Two young children came running into the hall. She tried to shield them with her arms. There was a flash of green light - (Deathly Hallows, Ch. 12 - Magic is Might)   This event is similar to the scene when Voldemort kills the Potter family in the sense that the mother attempts to protect the children by using her body as a shield.  Why does this act of sacrificial protection not have the same result as in the other instances?


How to install programs downloaded from the internet?

I've downloadad the latest  file, to install it into Ubuntu 13.04. After downloading the file, I just can run it. I've double click it (and I've tried right click and clicking "open", whith the same result). All the answer I get is this message:  Could not display “xampp-linux-1.8.3-1-installer.run”. There is no application installed for “executable” files. Do you want to search for an application to open this file?  I've tried searching for an application, with no result... Also, I haven't found any questions related to this issue with the 13.04 Unity version... I've tried , with no result. Please note that this isn't a Xampp question, the same happened to me when I tried to install Skype. UPDATE: I've tried :  cd ~/Downloads chmod +x myfile.run sudo sh myfile.run  And I've got this error:  Syntax error: "(" unexpected  What should I do? Thanks!


Currently close vote review queue shows the top level close reason in the header, but some close reasons, for instance, off topic have very different sub reasons. For instance, "demonstrate minimal understanding" is different from "This question belongs on a different site in the stack exchange network".  It would be nice if sub close reasons were also shown.


Prove that if the $\gcd(a,b)=1$, then $\gcd(a+b,ab)=1$

I need to prove that:   If $\gcd(a,b)=1$, then $\gcd(a+b,ab)=1.$  So far I used what's given so I have:  $ax+by=1$ (I wrote the gcd of a and b as a linear combination)  and   $(a+b)u+ab(v)=1$ (I also wrote this as a linear combination)  where do I go from here?


I'm working on a Inventory System where users make orders using a form. The user will fill a couple of fields and then he will choose the products that he wants.  I'm wondering on how to show the items added by user. The simplest way is to use a table, and every time the user choose a product, add a row in this table, with the info about that product. Something like this:    Another possible way (and I don't know if it is good) is to show the items listed as cards, like this:    An important point here is that there are fields that have to be shown, and some of them have to be editable.  The question is: which one is the best way to show the items?


git-svn isn't committing to branches, only trunk

I'm working with an SVN repository that is laid out like this:   $SVN/[project]/trunk $SVN/[project]/branches/[user]/[branch] $SVN/[project]/tags/releases/[tag]   My .git/config looks like this:     [svn-remote "svn"]   url = $SVN      fetch = project/trunk:refs/remotes/trunk      branches = project/branches/*/*:refs/remotes/*     When I look at git branch -a, I see all the remote branches. Let's say I want to check one out, work on it, then commit the changes back. Here's is what I am trying to do:   git checkout -b comments erik/comments .... work, commit locally .... git svn dcommit   However, dcommit always pushes to $SVN/project/trunk. git svn info always reports the URL as $SVN/project/trunk  I've tried using --track, I've tried reseting with --hard. I'm out of ideas here. I suspect it's my [svn-remote], but that's just a hunch.


When we have an uncharged conductor with a cavity and apply an external electric field, the charges rearrange to keep the electric field inside the metal zero. The driving force is the need to keep electric field inside the metallic layer, zero. Then why is the field inside the cavity also zero? I think this is because the charges would arrange in the same way as in the case of a cavity free conductor but why can't they arrange in a different way?  Why is this arrangement not possible which clearly has a field inside the cavity but not inside the metal?


How can I view "archived" Google Chrome history — i.e. history older than three months?

I need to recover old history. Google Chrome only stores the last 3 months in the "History" file.  The rest is in the "Archived History" file. How can I view this older history?


How do we combine probability distributions component-wise to make a more accurate probability distribution?

This subject intrigues me. My application is in the field of sports prediction. In sports prediction the experts compete who is the best - or we make it look as if they compete. So we try to find from the individual forecasts a composite forecast statistically more accurate than the best of the company of the forecasters. If we try to do that then of course we need to know the individuals past pereformances and then we need a formula to "add" them. I frequently do this:  Q = P1^W1 * P2^W2 ...  and then normalize the Q values to 1 and then try to work out the W1, W2 etc values for best results. By best results I mean the sum of |Log(Q)| of the winners should be maximum.  Now it happens sometimes that the result is W1 = 1, W2 = 0. This means the forecaster labelled "2" is useless. How can this happen ? In two ways: One way is that "2" always copies "1" (since we don't know what these fellows are actually doing when they prepare their newspaper wrteups !). The other way is that while the "1" is doing some serious studying, the "2" is content to give us random predictions - such as the license number of the first car crossing the road ! But real life is somewhere in between. There is always some overlap (or "copying") and as for the useless ones, well we are likely to know them in advance.  Now what is the ideal case ? When are the forecasters predictions totally independent ? Never really. You are likely to fancy Brazil to win the next world cup football series for more or less the same reasons as I do. But there is this thought experiment that makes them totally independent: I am a sportcaster with a known score p (0 <= p <= 1). You are another one with known score q (0 <= q <= 1). What happens with the two of us ? The following thing happens: Every night when we go to sleep a fairy comes to our dreams. She knows what is going to happen in the event we are trying to predict (because she is a fairy) but she plays the following game: In my dream she takes out of her pocket a scientific calculator and presses the Rnd button. If the number comes out to be <= p she tells me the truth. If the number that comes out is > p she tells a lie. But I am her spokesman -can't do otherwise- and what she says I say to you in the morning. Then she goes on and appears in your dream and she is doing precisely the same thing, only the random number has to be <= q now.  Now can this concept -with the fairies- be used to derive a better formula than mine (the P1^W1 * P2^W2 ...) ? That's the question. I have seen some writeups but I 'm not convinced.  Can you solve this example for me (with the ideal case formula - the fairies concept): We have a four way event, such as a horse race. Predictor A says the probabilities are 0.6, 0.4, 0, 0. Predictor B says they are 0.3, 0.3, 0.2, 0.2. What is the ideal average ?   There is the following similar thread     but I 'm not satisfied with the answers given


What are some good ways to keep students coming to lectures?

Having taught calculus for several semesters, I've noticed that the number of students attending lectures are gradually declining (especially for the 9am session). I would not be worried if they have learned the material by themselves so don't see the need of coming; However looking at their exam scores I concluded that a lot of them are not doing so well in the class when they miss lectures.  So what are some good ways to keep students coming to lectures?


I am currently doing preparation for my GCSE computing controlled assessment on Linux. I type ls > list and ls >> list into the command line, but it does not do anything. I have googled it but I can't find what it exactly does.  What does:  ls > list   and  ls >> list   do?


Proving $\lim_{n \rightarrow \infty} \frac{\sum_{r=1}^{n} r^a}{n^{a+1}}=\frac{1}{a+1}$

How do we prove that $$\lim_{n \rightarrow \infty} \dfrac{\displaystyle\sum_{r=1}^{n} r^a}{n^{a+1}}=\frac{1}{a+1}$$?  This type of terms appear in problems on limits, but I am unable to prove this.  Please help me out.


I can't find .bash_profile in Ubuntu 14.04 in my /home/user directory. I used the ls -a command to see the .bash_profile, but there isn't such a file.


Is there a way to reset the style options within an mdframed environment so that nested mdframed environments use the default options automatically?  MWE  \documentclass[border=1cm]{standalone}  \usepackage{mdframed}  \begin{document}  \begin{minipage}{0.3\textwidth}     \begin{mdframed}[linecolor=red]          \centering Foo         \begin{mdframed}             \centering Bar         \end{mdframed}     \end{mdframed} \end{minipage}  \end{document}     I would like the inner mdframed environment to use the default options. I've tried:   Saving \mdfdefinestyle{default}{} in the preamble and then using [style=default] for the inner frame Using \mdfset{} after the beginning the first mdframed environment Of course, manually setting [linecolor=black] works, but for more complicated instances (i.e. more custom options), I'd rather have it done automatically


HIST_FIND_NO_DUPS          When searching for history entries in the line editor, do not display duplicates of a line previously found, even if  the  duplicates  are  not contiguous.    However, when I use Ctrl-p repeatedly, same command appears.  $ ls $ pwd $ ls $ <Ctrl-p> => ls    <Ctrl-p> => pwd   <Ctrl-p> => ls  again!   zsh 5.0.5 (x86_64-apple-darwin14.0)


French Schengen visa refused in India - what to do?

I am an Indian national working in Kuwait with residency here. I wanted to take my family on a euro trip this may. The family included my wife and daughter (who live with me) and my parents-in-law who live in India.  We made an itinerary with 3 countries, first port of entry France, however number of days in Italy, hence applied for Schengen visa at the Italian embassy both in Kuwait (for us) and in India ( for our parents-in-law). I am the sponsor for all.  Our parents-in-law got their visa, however, our visa in Kuwait was refused as I had maintained a low bank balance in my account.  Hence, the five of us did not travel.  Now, we rescheduled the trip to September (this month).This time our itinerary was a little longer (14 days as against the previous 9 days), we added a couple more days in France and added another country.So , this time we applied for Schengen visa at the French embassy in Kuwait and India. However, we did not apply in parallel, waited for our visa result to apply for our parents-in-law.  We received our visa in Kuwait and submitted to them in India. However, their visa got refused to state "information provided for purpose and conditions of the trip not reliable ".  We submitted all documentation inc. flight return tickets, accommodations, inter-country train tickets, sponsors bank statements, salary certificate, leave certificate, our visa etc.....we also added bank statements, FD's and share papers of the father-in-law.  I want to reapply this week and try one last time. I have expanded my covering letter incl. the following information:   why they did not travel last may (inc. our refusal letter as proof) why we have applied at the different embassy(explained the change in itinerary) attached some local tours we have booked in each country to show that we mean to respect our itinerary. added property papers of own house of father-in-law to ensure that he will be returning back.   What else can I do? What went wrong?


I need to submit data to a webform.  I receive data from POST submission from mobile application ("webservices").  So I try something like :   $form_data = array(); $form_data['values']['firstname'] = $user->field_civilite['und'][0]['tid']; $form_data['values']['lastname'] = $user->field_prenom['und'][0]['value']; $form_data['values']['mail'] = $user->field_nom['und'][0]['value'];  webform_client_form_submit(226, $form_data);   But this is don't do anything.  Someone have any idea to do that?


mysql filter on exact match and how to make it more safe

I recently started programming in php and made some nice progress (if I say it myself). Now I stumbled upon some problems.  What I have is some if statements with a mysql query inside it.  if(empty($_POST['Email'])){     $error_Email = "No email";     $errors++; }elseif(!preg_match("/([\w\-]+\@[\w\-]+\.[\w\-]+)/", $_POST['Email'])){     $error_Email = "Invalid email";     $errors++; }elseif ($mysqli->query("SELECT * FROM Members WHERE Email LIKE '".$_POST['Email']."'")->num_rows == 0){     $error_Email = "[TEST] NOT IN DB"; }else{     $error_Email = "[TEST] IN DB"; }   So I have a couple problems with my code. Lets say that me@this.com is in the database. I only want to see [TEST] IN DB when I type me@this.com exactly, not if me@, not if this.com, ... only when I type in me@this.com.  My 2nd problem is that this piece of code can be manipulated because I put the search criteria in the query directly.   So is there a safer way of achieving what I want above with the query returning a row only if the match is exact.


Help understanding proof. Show that $\varphi(n)=\frac{1}{2}n$ if and only if $n=2^{k}$ for some $k \geq 1$

I have this proof - I can do the second direction (starting with "on the other hand") and I understand some of the logic in this first direction...but I can't figure out WHY he did the first step? I want to know mostly why "we can write $n=2^{k}p^{m}$" at the beginning? Also, why does the non-existence of such $p$ imply the result?  Proof:  Firstly, let $\varphi(n)=\frac{1}{2}n$, in which case we can write $n=2^{k}p^{m}$ so that $\varphi(2^{k}p^{m})(1=\frac{1}{2})(1-\frac{1}{p})=\frac{1}{2}2^{k}p^{m}$. But, when attempting to solve for $p$ in the factor $(1-\frac{1}{p})=1$, we find that we want to find $p$ such that$-\frac{1}{p}=0$, for which there exists no number $p$. So, $n$ must contain only $2$s. Thus, $n=2^{k}$ for some $k$.  On the other hand, let $n=2^{k}$ for some integer $k$. Then we can calculate  $\varphi(n)=2^{k}(1-\frac{1}{2})=2^{k}(\frac{1}{2})=\frac{1}{2}n  $


Having hard time to understand the difference in benefits of using notify over notifyall and vice versa. Lets say that we have an object L that we want to lock and four threads: A, B, C and D. Now A enters run method and obtains a lock on object L while B, C and D are waiting to be notified. So what is the difference between notifying these waiting threads individually with notify and notifying all of them at once with notifyall since in both cases we have no control over which thread after A obtains a lock on object L.


Is there a word or a term for when you say you don't know how to do something when you actually do know?

For instance, when someone asks for you to fix their computer or their cell phone and you just say that you don't how to solve that problem, even if you do know.


SVG Object classList.add() is adding the class to the element but not linking back to the stylesheet

I am working on a custom Wordpress Theme run on my localhost server. I am having trouble figuring out why the class is being added to the classList, but the style elements are not applying.    Javascript: "custom.js"  $(document).load(function() {     changeColor(); });  function changeColor(){     var x = document.getElementById("icon").contentDocument;     var y = x.querySelectorAll("path, circle");      for(var i = 0; i < y.length; ++i) {         y[i].classList.add("icon_stroke");     } }   External CSS Stylesheet: "style.css"  .icon_stroke {     stroke: red; }   HTML/PHP: "front-page.php"  <object id="icon" data="<?php bloginfo('template_directory');?>/src/imgs/icons/balance_icon_light_circle.svg" type="image/svg+xml"></object>   I can see in the Chrome editor that it successfully adds the class to the classList of the SVG element, however, there is no styling change to the SVG. I assume this might have something to do with the external stylesheet interacting with an external SVG object. I have (a) attached screenshot(s) for further clarification. Please let me know if you understand what is causing this issue, or if you have a workaround solution.  Thanks!!!!


In Radian mode, continually pressing the $\cos$ function of a number causes the result to converge to $x=0.739085133$, a fixed point of $\cos(x)$. Repeating this behavior with the $\sin$ function causes the result to converge to $x=0$, a fixed point of $\sin(x)$.   What happens if this is done using the tan function? It seems that $x=0$ is a repelling fixed point with no convergence in this case.  What would be the best way to explain these results mathematically?


"this kernel requires a x86-64 CPU but only detected an i686CPU." when installing Ubuntu on Virtualbox

While trying to install Ubuntu 14.04 I have this message:  this kernel requires a x86-64 CPU but only detected an i686CPu. Unable to boot  use a kernel appropriate for your CPU.   What should I do?


Given matrix $A \in \mathbb{R}^{m \times n}$ ($m > n$) how to determine whether a positive linear combination exists?

Consider the matrix: $A = \pmatrix{-1&1 \\1&-1 \\ 0& 0}$ For this matrix, it is easy to see that no linear combination of its columns will yield a positive vector $b$ (namely, where $b_i > 0,  \forall i$). For other matrices, it is easy to see that there exists some linear combination that will yield a desired $b$. I am interested in the general case: How do I prove whether or not a given matrix $A \in \mathbb{R}^{m \times n}$ ($m > n$) can yield a linear combination that is positive? Note that there are no constraints on the linear combination - I am looking for any $x$ such that $Ax = b, \forall i, b_i > 0$ The  seems relevant, but I can't find exactly how to exploit it for this use case.


If $f : \mathbb R^{n} \longrightarrow \mathbb R^{m}$ is differentiable at a point $c \in \mathbb R^{n}$ then it is continuous there.

My attempt :  Let $f : \mathbb R^{n} \longrightarrow \mathbb R^{m}$ be differentiable at $x = c \in \mathbb R^{n}$.Then there exists a linear operator $T_{c} : \mathbb R^{n} \longrightarrow \mathbb R^{m}$ such that  $f(c + h) - f(c) = T_{c} (h) + ||h|| E_{c} (h)$ , where $E_{c} (h) \rightarrow 0$ as $h \rightarrow 0$.So taking limit as $h \rightarrow 0$ on both sides of the above equation we obtain  $$\lim _{h \rightarrow 0} [f(c + h) - f(c)] = \lim_{h \rightarrow 0} T_{c} (h)$$.  If we can show that $T_{c}$ is continuous at $0$ then our purpose will be served.  But I find difficulty to show this.Please help me.  Thank you in advance.


In Python, can someone explain the difference between the use of "s" and "s[:]"? Here, "s" is a sequence type?  Examples:  s = [1,2,3]   s[:] = [1,2,3]   for i in s:   print(i)   for i in s[:]:   print(i)   Are there any differences?  I was thinking maybe the last example means "copy of s" which would allow for modifying s inside loop? What else?  Update based on answers  Thanks everyone. This shows the difference in a very concise way.  >>> s = [1,2,3]; t = s; s[:] = [2,3,4]; print(t) [2, 3, 4]  >>> s = [1,2,3]; t = s; s = [2,3,4]; print(t) [1, 2, 3]


I'm trying to use the mirror mod to place hands on a character.  The origin is the direct centre of the scene and the mirror is placed on the Z axis, and yet I get this result:    The viewport is in direct front orthographic mode. Why is my mirror messed up?


What is the appropriate placement of \label in a 'figure' environment

I found that if I don't place \label in a \begin{figure}...\end{figure} correctly, it will generate a ?? when I \autoref it. Where is the appropriate position? \begin{figure} \label{} \includegraphics{} \caption{} \end{figure}  or \begin{figure} \includegraphics{} \label{} \caption{} \end{figure}  or \begin{figure} \includegraphics{} \caption{} \label{} \end{figure}


I am looking for an injection that is able to map irrational numbers to real numbers. My Attempt : I considered my favorite irrational number $\pi$ and so I attempted to map all elements from $\mathbb{R}\backslash\mathbb{Q}$ of the form $2\pi n$ $\forall n\in\mathbb{N}\cup\{0\}$ to elements of the form $\pi n$ in $\mathbb{R}$. The problem I am facing is being unable to map all elements from $\mathbb{R}\backslash\mathbb{Q}$ of the form $(2n+1)\pi$ with $n\in\mathbb{N}\cup\{0\}$ to rationals in $\mathbb{R}$. At last, if otherwise... map elements from $\mathbb{R}\backslash\mathbb{Q}$ to itself in $\mathbb{R}$.


Why is my USB mouse disconnecting and reconnecting randomly and often?

My mouse will reconnect/disconnect (will even hear the sounds from Windows), and the light on the bottom of the mouse will turn off/turn on as it starts working again.  It really sucks to be playing a game (and happens on desktop as well) for the mouse to just die out for a few seconds and come back. Sometimes it will not happen for days and other times it will do it two or more times within 15 seconds.  I tried two different wired mice, tried multiple USB ports (on the front of the computer, back of the computer, used a USB hub and plugged in a card that connects to the USB connectors on the motherboard and adds a few USB ports to the back of the computer, and I also bought a USB 2.0 PCI card and that did not help).  Nothing else seems to reconnect like this, my USB keyboard has never once cut out like the mouse does and neither have any of the other devices I have connected (webcam, USB hub, various devices sometimes connected through USB cables, and IR receiver for windows Media Center remote). I have disconnected all USB devices except for my keyboard and mouse and the problem still occurs.  I guess it could be something wrong with my motherboard but since no other devices behave similarly I'm just hoping that it is some kind of driver conflict. Installing Logitech's drivers has had no effect. It seemed at first that if I go to  and uninstall  mouse (that and Logitech mx518 are listed) that would fix it, but it doesn't seem to work anymore or at least not every time (it keeps re-installing).  I have googled "USB mouse disconnects and reconnects", and it seems to be fairly common but none of those were resolved.  To stick some easy steps:   It happens with or without the drivers installed It has happened with multiple mice on the same computer The BIOS is the latest version (P08) Motherboard drivers are the latest version Device Manager isn't listing any problems on any USB devices Happens with every USB port, even addon USB cards Happens when all USB devices aside from mouse and keyboard are unplugged   I read that maybe it is an IRQ conflict, and I tried to look into that but did not really know what was going on, but didn't see anything obviously wrong.  Specifications:     CPU EVGA 780I SLI motherboard 4 GB RAM  mouse Windows 7 64-bit  screen card 650 W power supply (single rail).


Android Samsung TAB e auto turn on Hotspot?

Is there a way to automatically turn on the hotspot when my samsung tab e starts up?


Why aren't the humans wearing environmental suits in Star Wars spacecraft?

When NASA sends astronauts to space, they have to wear uncomfortable suits. Why aren't the humans in Star Wars spacecraft doing the same thing? What technology do they have on board that remove this need?


How to disable Chrome extensions without disabling them across multiple synced devices

I use Chrome across 4 different workstations and I have my extensions synced across all of them.  The problem I have is that one of the extensions () works great if you've got an actual mouse, but on a trackpad on Ubuntu, it just gets in the way.  If I disable it on the Ubuntu machine, it gets disabled on all Chrome installations due to its .  Q: Can I selectively disable an extension on just a single machine?


Generating sets of the free group $F_k$ on $k$ generators

Is it true that the free group $F_k$ on $k<\infty$ generators requires at least $k$ elements to generate. I.e. does every set which generates $F_k$ have cardinality at least $k$?


How to fix the “Unable to calculate upgrade” issue from command line when upgrading from 12.04 to 14.04?

I'm running Ubuntu 12.04 on DigitalOcean server.  I would like to upgrade it to later releases (12.04->14.04->16.04), but fail to do so due to the mentioned mistake. DigitalOcean provides a tutorial for upgrade, but it is not helpful because it doesn't explain how to solve the issue. I've also tried all answers in similar questions, that use command line. The problem is essentially the same as  and :  "An unresolvable problem occurred while calculating the upgrade: E:Unable to correct problems, you have held broken packages. This can be caused by: * Upgrading to a pre-release version of Ubuntu * Running the current pre-release version of Ubuntu * Unofficial software packages not provided by Ubuntu"    I have no ppa added I didn't add any extra sources to /etc/apt/sources.list. But I must mention that there are listed only DigitalOcean mirrors, no ubuntu default servers. I have > 900 packages listed as broken in /var/log/dist-upgrade/apt.log. (It seems like they all are broken) I tried these commands (in proper order) apt-get update, apt-get upgrade, apt-get dist-upgrade, apt-get --purge autoremove, apt-get autoclean, apt-get purge $(dpkg -l | awk '/^rc/ { print $2 }'), etc that are listed in answers to similar questions, but they do nothing as they think everything is OK.   Do you have any more suggestions on how to fix the problem?  UPDATE: I thought an issue with DigitalOcean servers in sources.list might be an issue, so I changed them to original Ubuntu ones. Now I get only 2 errors in apt.log:  ERROR getting the encoding failed Traceback (most recent call last):   File "/tmp/update-manager-cwZhf2/DistUpgrade/DistUpgradeView.py", line 40, in <module>     locale.setlocale(locale.LC_ALL, "")   File "/usr/lib/python2.7/locale.py", line 539, in setlocale     return _setlocale(category, locale) Error: unsupported locale setting ERROR Dist-upgrade failed: 'E:Unable to correct problems, you have held broken packages.   I don't know if locale error causes it. I tried to fix it by exporting LANG, LANGUAGE and LC_ALL to "en_US.utf8", but didn't help. I will try to fix it and update the question if it helps.  UPDATE 2: Output of locale command:  $locale locale: Cannot set LC_CTYPE to default locale: No such file or directory locale: Cannot set LC_MESSAGES to default locale: No such file or directory locale: Cannot set LC_ALL to default locale: No such file or directory LANG=en_US.UTF-8 LANGUAGE=en_US.UTF-8 LC_CTYPE="en_US.UTF-8" LC_NUMERIC="en_US.UTF-8" LC_TIME="en_US.UTF-8" LC_COLLATE="en_US.UTF-8" LC_MONETARY="en_US.UTF-8" LC_MESSAGES="en_US.UTF-8" LC_PAPER="en_US.UTF-8" LC_NAME="en_US.UTF-8" LC_ADDRESS="en_US.UTF-8" LC_TELEPHONE="en_US.UTF-8" LC_MEASUREMENT="en_US.UTF-8" LC_IDENTIFICATION="en_US.UTF-8" LC_ALL=en_US.UTF-8   UPDATE 3: After setting locale to "C" (thanks to Gunnar Hjalmarsson), the locale error is gone from apt.log, but invoking do-release-upgrade still the leads to error:   DEBUG /openCache(), new cache size 47033 DEBUG need_server_mode(): can not find a desktop meta package or key deps, running in server mode DEBUG Installing 'locales' (priority in required set 'required' but not scheduled for install) ERROR Dist-upgrade failed: 'E:Unable to correct problems, you have held broken packages.'   and still no upgrade.


I tried to create an edit page to update an entity. In the page, my controller can get id and render values on each field, but after click submit to update the entity, the #{adminController.post.postID} becomes 0.  edit_content.xhtml  <h:form>   <h:panelGrid>     <h:outputLabel value="Title" for="title" style="font-weight:bold" />     <p:inputText id="title" value="#{adminController.post.title}" style="width:750px;"></p:inputText>     <h:outputLabel value="Date" for="date" style="font-weight:bold" />     <p:calendar id="date" value="#{adminController.post.postDate}" />     <h:outputLabel value="Content" for="content" style="font-weight:bold" />     <p:editor id="content" value="#{adminController.post.content}"></p:editor>     <h:outputLabel value="Publish" style="font-weight:bold" />     <p:inputSwitch value="#{adminController.post.status}" style="width:100px;"/>   </h:panelGrid>   <p:commandButton style="float:right;" action="#{adminController.updatePost(adminController.post.postID)}" value="Update" />   <p:button style="float:right;" outcome="admin?faces-redirect=true" value="Back" /> </h:form>   AdminController.java  @Named @RequestScoped public class AdminController implements Serializable {  private static final long serialVersionUID = 324242342343L;      @EJB     private PostManager postManager;     private List<DB_Post> posts = null;     private String title;     private Date postDate;     private String content;     private boolean status;     private DB_Post post;      @PostConstruct     public void init() {         this.posts = postManager.getALLPost();         post = new DB_Post();     }      public String updatePost(int postID) {         System.out.println("Content:" + content);         post = new DB_Post();         System.out.println("ID: " + postID);         post = postManager.getPostById(postID);         System.out.println("2. Post ID: " + post.getPostID());         post.setContent(content);         post.setStatus(status);         post.setPostDate(postDate);         post.setTitle(title);         postManager.updatePost(post);         return "admin?faces-redirect=true";     }   I tried to print out something in the updatePost. It shows:     16:39:27,620 INFO  [stdout] (default task-6) Content:null   16:39:27,620 INFO  [stdout] (default task-6) ID: 0      In edit_content.xhtml, it shows id is not 0. I don't know why it becomes 0 after pass the argument into the method.


My spouse is a teacher in NJ. He is 61 years old. We file federal income taxes as married filing jointly. His w-2 shows, in box 14 (other) a pension plan with code 414(h). It shows an amount of just over $6,000. We want to get a tax benefit for the year 2014 by starting two individual IRAs at the bank, one each, for the maximum allowed. I will start one for $6,500, according to how I understand the limits (I am 60 years of age. We are confused about what my husband is permitted to do because different people have told us differently, and going to the IRS site is very hard to understand. My husband asked the person at the school who is the resource for tax questions, and was told he could still do an individual Ira for the maximum amount. However a friend who also assists me doing my tax return, said that as long as box 13 (pension) is checked off, that he cannot. What is correct?


given that $\{e_i\}_{n=1}^{\infty}$ is an orthonormal sequence in a hilbert space $H$, and $x\ne 0\in H$. Then could any one tell me which of the following is true?  $1.\lim_{n\to\infty}\langle x,e_n\rangle$ does not exist  $2.\lim_{n\to\infty}\langle x,e_n\rangle=\|x\|$  $3.\lim_{n\to\infty}\langle x,e_n\rangle=1$  $4.\lim_{n\to\infty}\langle x,e_n\rangle=0$  I just know one relations about orthonormal sequence in Hilbert space  $\sum_{n=1}^{\infty}|\langle x,e_i\rangle|^2\le \|x\|^2$. Thank you for help.


How can I delete game data on iPhone 5? I want to start it over

I want to start Gardian Hunter from the start, but I can't delete my data. Is it possible to delete it? Please help me.  I'm using an iPhone 5.


Where could I find a Chespin or a Froakie?

Where do you find a Chespin and a Froakie in Pokemon Y?


Which algorithm is fastest if an array is already sorted? Insertsort, Quicksort, or Mergesort?  //needmorecharactersformorecharactersneedmorecharacters


I have a very interesting number theory problem. Let $$ S_n $$ be a number consisting of only $$n$$ ones.  For instance, $$S_1=1\\S_2=11 \\ S_4=1111$$ The problem is to prove that the sum of the digits of $$S^2_n$$ can be calculated using the formula $$81\cdot \left( \left\lfloor \frac{n}{9} \right\rfloor + \left( \frac{n}{9} - \left\lfloor \frac{n}{9} \right\rfloor \right)^2 \right)$$  I would be very grateful for help. I don't even know how to start...


Created a new user at Stack Exchange, but did not get the right username

I just created a new user at the Stack Exchange main site and made a screen name I wanted. But I ended up getting the generic name user527663 and I find no way to change that.  I searched the board and there should apparently be a "Edit Profile & Settings" section. But there is none for me.


Is it OK to install a TV mount when it can't be attached to a stud at all mount points?

I have a TV wall panel that can only reach two studs. I was wondering if it's fine to screw the left side and the center on studs, and have the right side anchored in the drywall.  My TV is 30lbs with the mount.  Also, the TV would be mounted a bit on the right of the TV mount. Does it matter if the weight is not 100% centered?


How do I suppress GtkDialog warnings in zenity and yad using Bash redirection in a script?

I'm trying to suppress GtkDialog warnings in zenity and yad:  $ zenity --error --text hello Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged.   Error redirection and filtering works:  $ zenity --error --text hello 2> >(grep -v GtkDialog >&2)   YEAH... Annoying warning message disappears!!  This can be placed in ~/.bashrc for development work as answered here:      and here:      When creating a script for others to use though, you don't want the burden of them changing their ~/.bashrc.    I'm having trouble creating a typing shortcut for: 2> >(grep -v GtkDialog >&2) to be used inside script.  For many reasons variable assignment GTK_SPAM="2> >(grep -v GtkDialog >&2)" followed later by variable usage "$GTK_SPAM" doesn't work.  alias zenity="zenity 2> >(grep -v GtkDialog >&2)" before calling script works  but, I can't use this within a script.   Using an array to hold the typing shortcut isn't working:  $ aGtkSpam=(2\> \>\(grep -v GtkDialog \>\&2\))  $ DumpArray "${aGtkSpam[@]}" Array Elements: 0: 2> 1: >(grep 2: -v 3: GtkDialog 4: >&2)  $ zenity --error --text hello "${aGtkSpam[@]}" This option is not available. Please see --help for all possible usages.  $ yad --text hello 2> >(grep -v GtkDialog >&2)  $ yad --text hello "${aGtkSpam[@]}" Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged.   I found many excellent generic answers on word-splitting and parameters which should solve my problem but a specific syntax eludes me.  Any clues?


Adding raster Data from Geodatabase to QGIS

I have raster data in a geodatabase and want to open them with QGIS. When I navigate with QGIS to the Geodatabase I get to this window.     Unfortunately, I can't open These atx and GDBTABLX files and I don't recognize which of layers are the files. In ArcGIS the window just Shows the layer names.   Is there a way to recognize the layer name and open the files in QGIS?


If $G$ is a connected graph with $n$ vertices and $n - 1$ edges then $G$ is a tree, using Induction.

Prove the following Theorem. If $G$ is a connected graph with $n$ vertices and $n - 1$ edges, then $G$ is a tree.   I am still new to proof methods and not sure if this is the correct use of induction.  Base case: $n = 1$. Here, $G$ has $0$ edges and is a tree.    Assume every connected graph with $k$ vertices and $k-1$ edges is a tree. Let $G$ be a connected graph with $k+1$ vertices that contains at least one cycle (no amount of edges are specified).    Let $m$ be the number of edges removed. Remove edges from each cycle to form a new graph $G'$.    $G'$ is a tree with $k-1$ edges and $k+1$ vertices. $G$ has $k-1+m$ edges.    If $m=0$ then $G' = G$ and $G$ is a tree.


If 'pure energy' is photons, and energy is conserved, how can matter and antimatter (electrons and positrons) annihilate into photons and vice-versa?

The first law of thermodynamics says energy cannot be created or destroyed. But we can collide photons to form electrons and positrons. Does this means that law does not apply in these microscopic scales?  And we can create mass from energy in the above process.but is it possible to make atoms that way? Like converting an electron to proton as a step in it? That would be like  real energy- mass conversion.


I am planning a trip to the UK with my wife and wanted some guidance on the same. We hold Indian passports and are currently residing in Singapore.  I have an EP (Employment Pass) and my wife is on a dependent pass. Currently my wife has no source of income and hence she does not have a bank account in Singapore, my bank account does not have her name as the joint applicant.  My questions are   How do I mention in the form that I will be paying for her travel too? Also is it ok to submit my bank statements having my name for her application? For my application, I am giving an HR letter stating my position current salary and period of leave, anything similar to be submitted for her case?


I use following code:

    and get    I hope align green part to center, how to do it?


This is a not duplicate; I am asking that this "feature" be removed.  This Q now has more votes than , thus making this one more valuable.    Pinging the name @nick, in chat, also pings all users whose names start with "nick" (like my own).  Not only do I get pings while in the chatroom, I also receive notifications on my phone about new pings.    In the case of "nick", and room 17 (Javascript), 3 users will get pinged:   nick NickAlexeev NickDugger (me)     There are other cases of this happening as well, and sometimes with names not as common as above.   The importance of this feature was before there was auto-completion, which even mobile now has:   Typing in the first few letters and using autocompletion will spell out their full username. This should be encouraged, and this short-name matching should be removed.    tldr; Pinging users with a shortened version of their name causes irritation and should be removed.


Unable to Replace GRUB Bootloader with Windows 10 Bootloader from Windows 10 installation USB

I had Kali Linux, Ubuntu, and Windows 7 installed alongside each other with a GRUB bootloader to boot into each, until I upgraded to Windows 10. I expected that would overwrite the bootloader, but it didn't. I have since deleted the Ubuntu partition from Windows, but I'm prevented from doing so with the Kali partition. Even though I've deleted the Ubuntu partition, the GRUB bootloader still has an entry for it. I've tried running linux bootrepair several times to no avail. I really just want to uninstall the GRUB bootloader and replace it with a Windows 10 bootloader.  So, I have tried following the steps of the answer from . However, when I run the command bootrec.exe /fixmbr I receive an error stating that the system cannot find the file specified.  Running the command bootrec.exe does seen to show the correct dialogue giving me the commands and what they should do. However, bootrec.exe /fixboot also gives an error stating that the system cannot find the file specified.  Also, running the commands bootrec.exe /scanos and bootrec.exe /rebuildbcd each find 0 Windows installations


If $f$ is continuous, is it (Lebesgue) measurable ? Namely, $\{x\ :\ f(x)<\alpha\}\in\mathcal M\ \forall\alpha$ ?  If not what are some counter examples?


Appending a node to end of tail with Java

I am working on a basic Hackerrank problem where we append an element to the end of the linked list.   /*   Insert Node at the end of a linked list    head pointer input could be NULL as well for empty list   Node is defined as    class Node {      int data;      Node next;   } */ Node Insert(Node head,int data) {     if(head == null) {         Node node = new Node();         head = node;         head.data = data;         head.next = null;         return head;     }      while(head != null) {         head = head.next;     }      head.data = data;     head.next = null;     return head; }   For some reason, this solution does not compile. I was looking problems other people solved, and they used a temporary node in the non-empty linked list solutions.


I want to create a custom axis for a bone to rotate around, which won't be along any one of the axis X, Y or Z. I want to use it for a concept car which uses some body panels to use it as an active air brake. So they'll be operated in an angled way.  Can anyone help...


what does this guy mean by "Pulling on my flameproof underwear"?

There is a guy who said something strange to me      Pulling on my flameproof underwear   What did he mean by that? thanks.  Btw, what is the purpose of making  underwear flameproof?


Max dimension of a subspace of singular $n\times n$ matrices

I am sure the answer to this is (kind of) well known. I've searched the web and the site for a proof and found nothing, and if this is a duplicate, I'm sorry.  The following question was given in a contest I took part. I had an approach but it didn't solve the problem.     Consider $V$ a linear subspace of the real vector space $\mathcal{M}_n(\Bbb{R})$ ($n\times n$ real entries matrices) such that $V$ contains only singular matrices (i.e matrices with determinant equal to $0$). What is the maximal dimension of $V$?   A quick guess would be $n^2-n$ since if we consider $W$ the set of $n\times n$ real matrices with last line equal to $0$ then this space has dimension $n^2-n$ and it is a linear space of singular matrices.  Now the only thing there is to prove is that if $V$ is a subspace of $\mathcal{M}_n(\Bbb{R})$ of dimension $k > n^2-n$ then $V$ contains a non-singular matrix. The official proof was unsatisfactory for me, because it was a combinatorial one, and seemed to have few things in common with linear algebra. I was hoping for a pure linear algebra proof.  My approach was to search for a permutation matrix in $V$, but I used some 'false theorem' in between, which I am ashamed to post here.


Why does System Monitor show so many File Systems?

When I opened System Monitor for the first time just after installing, it only showed three or four records, now after a week it shows a bunch of them, some 100% full. What does that mean?


Check that criteria are met in a before insert trigger

I want to check whether a certain criteria is met or not using a trigger before inserting a record. if it meets the criteria, i insert the record, but if it does not i want to display an error message that it doesn't meet the criteria. how do i do it? Please help if anyone knows.


What are the pros and cons of having a separate home partition?

This is not a question about how to create a home partition, just as a caveat. :)  What are the pros and cons to having a separate home partition? How do I know if having one is right for me? Will it increase or decrease speed of file retrieval? Are there any risks?


Is there any built-in function that can return the length of an object?  For example, I have a = { 'a':1,'b':2,'c':3 } which should return 3. If I use a.length it returns undefined.  It could be a simple loop function, but I'd like to know if there's a built-in function?  There is a related question () - in the chosen answer the user advises to transform object into an array, which is not pretty comfortable for my task.


Is it safe to delete C:\Windows\Installer on Windows 10?


Can you please help me better explain the structure below to my student?  "Does beauty has standards?"  Isn't the rule that the second verb (have) goes in the infinitive form in questions with do/does?  She understands the agreement in the structure "Beauty has standards" and is trying to apply it in the question form.


Difference between projection and datum?

What's the difference between a projection and a datum?


Doesn't entropy increase backwards in time, too?

In statistical explanations of entropy, we can often read about a (thought) experiment of the following sort.  We have a bunch of particles in box, packed densely in one of the corners. We assume some temperature, and with it some random initial velocities of the particles. We don't exactly know the positions and the velocities, so these can be modeled as random variables in a mathematical sense. The random variables expressing the initial conditions have a certain joint probability distribution where the configurations expressing "particles in a bunch in the corner" have high probability. Now, we simulate physics (apply deterministic and reversible equations of motion) on this arrangement and we can mathematically prove that the random variables corresponding to the new positions and velocities of the particles have a joint distribution that makes it very likely that draws from it will fit the description "particles all over the place in a nothing-special arrangement".  This is very informal, but I know that all of this can be formalized by introducing the concept of a macrostate and then we have a mathematically provable theorem that the information theoretical conditional entropy of the full state given the macrostate will increase as time passes. This is basically the second law.  Now I don't see anything preventing me from applying the same logic backwards in time. Based on these mathematical results, I'd assume the following holds:  When I see a (moderately) clustered configuration of particles in the box, if someone asks me what I believe the particles looked like 10 seconds ago, my answer should be that 'they were probably more all over the place than now, with no particular arrangement or clustering'.  Or formulated otherwise, looking backwards in time, we should expect to see an increased thermodynamic entropy. The paradoxical thing to me is that we seem to assume that in the past entropy was even smaller than today!  Practical example: You arrive late to chemistry class and the teacher is demonstrating how some purple material diffuses in water. Common sense tells me to assume that the purple material was more concentrated in the water 10 seconds ago than it is now. But the above argument should make me believe that I look at the lowest entropy right now and the material was/will be more diffused in either direction of time. There is nothing time-asymmetric in the above statistical reasoning.  How can this paradox be resolved?


Searching for Sci-fi novel from the 1980's

I am trying to find a sci-fi novel I read briefly when I was young and waiting in line at a Goodwill. The main subject was about a soldier in power armor fighting a race of lizard like aliens and in the first chapter a soldier near him died after a lizard alien got inside his power armor and ate him. I do not remember the title or author.   I remember the cover seemed to be a desert planet and the soldier in his white or grey power armor walking in a direction and looking slightly behind him. I remember the power armor gave him incredible strength. Any tips are appreciated.  I thought it was Starship Troopers, but I remember the aliens being lizard like or reptilian. The details are vague because this was around 12 years ago, but I distinctly remember that on the power armor, it wasn't a helmet with a visor, but a face mask instead on the helmet. The face mask looked almost like a low poly character design. Lots of angles.  It is not Armor by John Steakley.


I want to receive string from another activity. But it gave me an NPE.  MainActivity.class  private void searchProcess(final String searchPhone) {     String tag_string_req = "req_search";     Intent i2 = new Intent(MainActivity.this, DbActivity.class);     Bundle bundle = new Bundle();     bundle.putString("searchPhone", searchPhone);     i2.putExtras(bundle);     i2.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_SINGLE_TOP);     startActivity(i2);     Log.d(TAG, "SENDING NUMBER FROM MAIN ACTIVITY: " + searchPhone);  }   DbActivity.class  Bundle bundle1 = getIntent().getExtras();         if (bundle1 !=null) {             final String searchPhone = bundle1.get("searchPhone").toString();             Log.d(TAG, "RECEIVING NUMBER FROM MainActivity: " + searchPhone);   and this error comes up  java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.lang.Object.toString()' on a null object reference at site.mobilesocial.google.DbActivity.onCreate(DbActivity.java:156)   and line 156 is    final String searchPhone = bundle1.get("searchPhone").toString();   help please


Why doesn't my live USB save settings, even though I have a persistence file?

I have just made a Live USB of Ubuntu 12.04 on a 4 GB stick. I made it in startup disk creator in 10.04 and set the persistence file to 3 GB.   But for some reason it doesn't save my settings on shutdown when I use it with my Macbook Pro. Otherwise it works just fine though. Any ideas why it doesn't save my settings?


sql server 2012: function get position of given string and then get string of given position

I have a table where there are 2 columns: optionValues and optionNames . optionNames contains the text of a combobox and optionValues the value of each text , both are separated with ~. For example :  optionValues | optionNames    0~1       |   male~female   What I am trying is to create a function which will take as argument an optionValue and will return the optionName. Using the example above:  fn.GetOptionName(1) --will return `female`   How I can separate the values and get back the correct one?  This is what I started with but it wont work because it doesn't separate the values:  select @on = OptionNames from dbo.Table  where tablename = @tablename and fieldname = @fieldname and optionvalues = @fieldvalue   (I cannot change the db schema no matter if its good or bad)  EDIT  Found this function which returns a substring in a specific position:


I have two situations:  One - where I have alt-` set. If alt-` is in use on my keyboard settings, it will set 2 rules according to CompizConfig. If I disable Rotate Cube rules. Nothing changes. I still can't use the rule for my own desires.      Two - where I remove the rule that I do not want alt-` to work for, it removes all the rules.      Below is what alt-` opens if the rules are on.    No matter what I set my rules to, alt-` always works. How can I get it so I can set this shortcut to something?