When you start the machine and press shift to bring up grub menu, and you press e to make changes in the menu that starts off with setparams 'Ubuntu, with Linux 3.16.0-30genric', how do you prevent people from making changes to that menu like adding ro recovery nomodeset


How can a wooden spoon be used to prevent water from over boiling?

This is an image I found via StumbleUpon    Does this actually work? If so, why?


In a twocolumn book, how to add a short introduction to chapters as a one column parapgrah

Here is what I wish to have:  Chapter 2 - Foo  This is an introductory paragraph, spanning over the whole width of the document.  This is the body of the      |   due to the use of the  chapter which is written     |   'book' class with the on two separate columns      |   'twocolumn' option.   How can I achieve this layout?  Edit: I do not want to use multicol since it would be used on each chapter to explicitely specify what should be the default behaviour of my document (i.e. two columns). As such, the referenced question is not a duplicate.


I read some articles about PHP references and how they hurt performance.  I also saw some tests, proving the same.  Most of those resources, claim that reason for that is because references disable copy-on-write.  But I don't understand why would that cause a problem? PHP is not going to copy array e.g, just because you passed it by reference.  function foo(&$var) {     $var->test = 'bar';     xdebug_debug_zval('var'); }  $data = new stdclass; foo($data);   and result I receive  (refcount=3, is_ref=1), object(stdClass)[1] public 'test' => (refcount=1, is_ref=0),string 'bar' (length=3)   This shows that no copy was made, and that function is still using same variable (dealing with actual variable and not copy).  What have I missed, why is there a performance loss?


I am trying to create an under water scene but it is not turning out like the tutorial I am following. My main issue is when I come to rendering the image it is extremely grainy and I cant get it to look realistic. Would someone be able to help me with this problem and explain in really basic terms as I have no other experience with these kind of projects. Thanks in advance!


Export a table as csv in mysql from shell script

I am trying to export a result set into a csv file and load it to mysql.  mysql -e "select *  from temp" > '/usr/apps/{path}/some.csv'   The out put file is not importable. It has the query, headers and bunch of unwanted lines. All I want is just the COMMA delimited VALUES in the file, so that I can import it back.  What did I try so far?   Added |  sed 's/\t/,/g' - Did not help Tried OUTFILE but it did not work. Tried SHOW VARIABLES LIKE "secure_file_priv" which gave null.   OUTFILE will not work for me because I get the error "The MySQL server is running with the --secure-file-priv option so it cannot execute this statement". I cannot edit the variable secure-file-priv. And it has a null value right now.  I get the file output as below image. I used the alias mysql2csv='sed '\''s/\t/","/g;s/^/"/;s/$/"/;s/\n//g'\'''


What to say instead of “Ladies and Gentlemen”?

What do I say instead of Ladies and Gentlemen  if there are many men and only one woman present? Should I say:   Lady and Gentlemen  Gentlemen and Lady Madam and Gentlemen or something else?


Which of the Stack Exchange sites should be used for Neural Network questions? Multiple ones seem to match

The following sites seem to have something to do with Neural Networks, and most have questions on that subject:   Stack Overflow Artificial Intelligence Computational Science Computer Science Cross Validated Data Science   How would one choose the appropriate one?


Let $trc(A)=0$.why $A=M+N$ where $M$ and $N$ are nilpotent matrices?($A \in {M_n}$)


How can I use drush_invoke() in my code called from hook_update_N()`?

I need to do a few things which could be easily made with Drush commands, but I need to achieve them through PHP code inside my module, on an hook_update_N().  It seems to me that I need to use drush_invoke() but it doesn't currently exists when I tested in a devel block. I searched here and there how to include (safely) this function, but I had no luck on that.  I guess it is simple and my question could sound silly.   How can I use drush_invoke() in my code called from hook_update_N()?


Just i was thinking about the other ways of writing singleton class. So is this class considered as a singleton class?        public class MyClass{             static Myclass myclass;              static { myclass = new MyClass();}              private MyClass(){}              public static MyClass getInstance()             {                  return myclass;             }        }   as the static block run only once.


I need the names of countries, country regions and cities of the world.  Where do I get that kind of information?


How many iPhone 6 devices can I bring into India?

My Aunt lives in Newyork (United States) she's Indian, she's been there more than a year. I just ordered her 2 iPhone 6 phones for me and my brother personal use. The main problem is that with 2 iPhone + her own personal 1 iPhone 5s she is using. Will the Customs officials in Airport clear that 2 new Sealed iPhone as duty free or she will be charged? Help me here. If she will be charged than how much PERCENTAGE EXCISE TAX shall she pay?


I have a query in which I am updating a table and have used IN keyword in the query. The query is something like this:   UPDATE q  SET b_id = 123      WHERE id IN (SELECT id FROM q WHERE b_id IS NULL LIMIT 1)   There is another query in which I am inserting data in table. The query is:   INSERT INTO q (id, item) VALUES (@id, @item)   The queries are executing on different threads. While executing the second (INSERT) query I am getting database is locked error.  What is the reason?  id is not primary key.


How to add table in between two \item commands

I insert a table command between two itemized items, but the table appears at the top of the page. please help me locate this at the right place it means to be. thank you. Ardalan


Today I was just checking my reputation summary on SO and it shows I have got 7 rep points today.    But when I go to my profile and see the reputation obtained for today, it shows only 5. Also realistically from yesterday my reputation has increased by 7, but I am unable to find from where I got the additional 2 reputation points. Is this a bug?  Just to add, I have not accepted any answers as such in last couple of days on SO.


I'm developing an application in .NET where the user can provide Regular Expressions that are afterwards used to validate input data.  I need a way to know if a regular expression is actually valid for the .net regex engine.   Thanks for any help


Extracting one band from three band raster in ArcMap?

I'm fairly new to ArcGIS and I get into trouble extracting a single band layer from a raster image .img in ArcMap that I want to use after in zonal statistics. So far, all help I found is to do the operation in the other way around and merge bands and some explanation by using the python code. But I would like to use ArcMap interface.  I tried to create a single layer from ArcCatalog and import it to ArcMap but I get a layer and not a raster. I also tried to import my image.img in ArcMap but then I don't find anything to extract only a specific band.


Articles I've read on scope in javascript address what happens when you have nested variables/objects/functions defined in its parent scope. However, what happens if you have something like this:    function x(){  function y(){var u = 3;} function z(){//is u available here?}  }


I am a new data scientist , BS mathematics, MS quantitative analysis I want to have a really sound understanding of probability and statistics.  I am currently reading Introduction to mathematical statistics by Hogg 5th edition and also have a few other any suggestions on books to learn R in parallel to the theory presented in Introduction to Mathematical statistics?


How to set title of Terminal in Linux Mint 18

I upgraded to Linux Mint 18; everything went well. I don't know if it was intentionally done like this or not, but the option Terminal -> Set Title is no longer there, and the shortcut is no longer available. Why this change has been made, and how to fix it? I need to set terminal title, because it helps me navigate between tabs quickly.


I use 64bit Ubuntu 14.04. When I run sudo apt-get update it gives the following error.      Unable to find expected entry 'restricted/binary-amd64/Packages' in Release file W: Failed to fetch http://archive.ubuntukylin.com:10006/ubuntukylin/dists/trusty/Release   Unable to find expected entry 'restricted/binary-amd64/Packages' in Release file  (Wrong sources.list entry or malformed file)     E: Some index files failed to download. They have been ignored, or old ones used instead.   Could anyone tell me how to fix this  problem?


what is the difference in two test1 and test2 javascript snippets?

Here are two javascript snippets. i can't understand thedifferent between the two. it seems both allow newing up instances.  var Test1 = (function () {             function Test1(_x, _y) {                 this.x = _x;                 this.y = _y; console.log("test1");             }             return Test1;         }()); var Test2 = function () {             function Test2(_x, _y) {                 this.x = _x;                 this.y = _y; console.log("test2");             }             return Test2;         }();  new Test1(1,2);  new Test2(2,4);   Edit: it looks the same to me BUT, i was poking around with TypeScript and it generated the classes like Type1. there must be a reason they chose to go with that. after all the shortest code is better?  Thanks


Why can a log backup not be taken without first taking a full backup?

I've created a new database using the FULL recovery model. Now I am trying to take a log backup without first taking a full backup.  I'm aware that SQL Server won't allow us to do so, but I want to know why SQL Server is preventing it?  Below is the script I've used for testing purposes:  CREATE DATABASE TESTING GO BACKUP LOG TESTING TO DISK='G:\TESTING_LOG.TRN'


'which' reports one thing, actual command is another

I am running Ubuntu 12.04, which came with Cmake v 2.8.7.  I had need for a more current CMake, so I downloaded the source for 12.8.12.1, built, and installed it per directions.  The last step, make install I ran sudoed.  ./bootstrap make sudo make install   Now I want to run it, but I find that the old version is still invoked when I execute cmake from the command line:  jdibling@hurricane:/$ cd /; cmake --version; which cmake cmake version 2.8.7 /usr/local/bin/cmake jdibling@hurricane:/$    Odd, I think.  So I su and try it from there:  root@hurricane:~# cd /; cmake --version; which cmake cmake version 2.8.12.1 /usr/local/bin/cmake root@hurricane:/#    Why does which report the same directory, but cmake --version reports different versions?  How can I find where the new cmake was actually installed?  As suggested, I ran type:  jdibling@hurricane:/tmp/cmake-2.8.12.1$ type cmake cmake is hashed (/usr/bin/cmake) jdibling@hurricane:/tmp/cmake-2.8.12.1$ sudo su - root@hurricane:~# type cmake cmake is /usr/local/bin/cmake root@hurricane:~#


I have the following event in Event Viewer:  "The driver detected a controller error on \Device\Harddisk6\DR19."  Log Name: System Source: Disk EventID: 11 Level: Error   How do I know what disk this is referring to? I am reasonably confident that it is a plugin USB memory stick, but want to be sure it is not one the of the main HDD's. When I plug a USB stick into the slot, diskpart shows the arrival of "Disk 6". I am presuming that Disk 6 corresponds to Harddisk6 in the controller error, but I don't like assumptions.


I am having a very odd problem. I have a photo that I took with my Nikon d5000 uploaded to photoshop, without any adjustments other than a crop, and then when I export it the color changes drastically In this screenshot, you can see the photo in windows photo viewer on the left, and Photoshop on the right. Do any of you know why this is occurring?


Design Review: 3.3V Logic to 12V Logic (Uni-directional and Bi-directional)

I'm looking for feedback and improvements on my design below. Specific questions are at the end. I created this as an attempt to answer my own, . From my feedback there, it seems like I needed to be more clear in my requirements. These are screenshots from Eagle. If there's a better way to share, please let me know so I can correct it. Entire board  The overall purpose of this board is to translate between 12V logic, and 3.3V logic. The top portion of the board represents the 12V side. The LEDs are placeholders to indicate whether the 12V signal is HIGH or LOW. In practice, these would be replaced with more , requiring up to 3A. The switches are also placeholders, allowing one to manually turn the 12V signal on and off. They are only for test purposes, the "real" 12V signal would be coming as the output from other relays. The bottom half is the 3.3V side. This will be connected to a  (BBB). The board will connect to 2 output GPIO pins and 2 input GPIO pins of the BBB. Overall, I want to translate the 3.3V I/O from the BBB to the 12V signals on the other side (to control more relays and read their signals). I have designed 3 modules to control both directions individually, and together. 3V3_TO_12V Module  This module converts the 3.3V GPIO output from the BBB to a 12V signal on the other side. When the 3.3V signal is low, the 12V signal is low. When the 3.3V signal is high, the 12V signal is high. To do this, the 3.3V GPIO output is connect to a , which turns a  relay on and off. This switches the 12V power as output of the module to be used elsewhere. 12V_TO_3V3 Module  This module converts a 12V signal to 3.3V signal, to be read by a GPIO input from the BBB on the other side. When the 12V signal is low, the 3.3V signal is low. When the 12V signal is high, the 3.3V signal is high. To do this, the 12V signal simply turns a  relay on and off. This switches the 3.3V power to be read as input by the BBB. DUAL_12V↔3V3 Module  This module combines the previous two modules to create a bidirectional translation. If the 12V side is high, the 3.3V input to the BBB GPIO should be high. If the 3.3V output from the BBB GPIO is high, then the 12V side should be high too. It's similar to a logical OR, if either side is high, the corresponding signal on the other side should be high too. A single 12V signal has to be split into individual input and output signals on the 3.3V side for the BBB. Questions  Is the  and  relay combination overkill for having the BBB GPIO output control the 12V power line? I like the isolation and safety it provides, but it seems too much (in terms of cost and board space) Is there a better solution for the 12V to 3.3V conversion. I like the simplicity of the  relay switching a 3.3V signal, but it takes up lots of room. Does the DUAL_12V↔3V3 Module (which combines each translation direction) even make sense? This seems wasteful to use 2 relays and a high side driver, but I haven't found simpler solution that achieves the same result. Should I add pulldown resistors for the BBB GPIO inputs, or are the internal pulldown resistors good enough?  Any other feedback is welcome. I'm new to electronic design.


simple limit but I forget how to prove it

I have to calculate the following limit   $$\lim_{x\rightarrow -\infty} \sqrt{x^2+2x+2} - x$$  it is in un undeterminated form.   I tried to rewrite it as follows:  $$\lim_{x\rightarrow -\infty} \sqrt{x^2+2x+2} - \sqrt{|x|^2}$$  but seems a dead road.  Can anyone suggest a solution?  thanks for your help


How to delete "..." folder ？ Windows Platform

Cmd "md ...\" create this folder on my disk.I can't delete it...


How to switch user or lock PC via keyboard shortcut manjaro XFCE

How do I lock my manjaro XFCE based PC with a keyboard shortcut i.e. like WIN+L on a windows machine.  All guidance I can find is gnome specific i.e.  gnome-screensaver-command --lock


$U(n)$ and $V(n)$ are sequences. $U(n)> 0$  and   $V(n) >0$ such that: ${V(n+1)\over V(n)}≤ {U(n+1)\over U(n)}$.   Prove that:   If $\,\,\lim\limits_{n\to\infty} V(n)= +\infty\,\,$ then $\,\,\lim\limits_{n\to\infty}  U(n) = +\infty$ If $\,\,\lim\limits_{n\to\infty} U(n) = 0 \,\, $  then  $\,\,\lim\limits_{n\to\infty} V(n) = 0$   Can anyone help ?


Show that $(x)$ is a prime ideal in $\mathbb{Z}[x]$ (the polynomials with integer coefs) which is not maximal.

I showed that if $(x)$ is  prime in $\mathbb{Z}[x]$, then since  $\mathbb{Z}[x] /(x)$ is isomorphic with $\mathbb{Z}$ and $\mathbb{Z}$ is not a field, so $(x)$ is not maximal. But when I want to show that $(x)$ is prime in $\mathbb{Z}[x]$ I've got stuck... How could I show? The old proofs doesn't give any isomorphic function! my question is a particular case, not a theorem (just for more info)


Is it possible to use three screens with Intel HD 3000 integrated graphics?

I'm getting a new Lenovo T520 with Intel integrated graphics.  Is it possible to use three screens with Intel HD 3000 (the laptop internal screen + two external screens)?


How to install Virtual box guest in Ubuntu 18.04

I am trying to have virtual box guest in Ubuntu 18.04 but now able to succeed. peter@LAPTOP-UMBBINAR:~$: sudo apt-get install virtualbox-guest-additions-iso peter@LAPTOP-UMBBINAR:~$ Reading package lists... Done Reading: command not found peter@LAPTOP-UMBBINAR:~$ Building dependency tree Building: command not found peter@LAPTOP-UMBBINAR:~$ E: Unable to locate package virtualbox-guest-additions-iso  Any idea how to run the command  ?


when converting list object to interger error shows null point exception..but strings work fine

In this when it comes to for loop and "id" it's shows null point exception. i commented all intgers and then code works fine.can anyone say what's the wrong of my code...   public List<HotelRoom> getallstudent() {             String sql = "SELECT * FROM hotelroom";              List<HotelRoom> list = new ArrayList<HotelRoom>();              List<Map<String, Object>> rows = jdbcTemplate.queryForList(sql);              int id = 0;             int numBed = 0;             long prce = 0;             int size = 0;              for (Map row : rows) {                 HotelRoom hm = new HotelRoom();                   id = Integer.parseInt(row.get("id").toString());                  numBed = Integer.parseInt(row.get("numberOfBeds").toString());                  prce = Long.parseLong(row.get("price").toString());                  size = Integer.parseInt(row.get("size").toString());                  hm.setId(id);                 hm.setGuestHouseName(row.get("guestHouseName").toString());                 hm.setImageLocation(row.get("imageLocation").toString());                 hm.setLocation(row.get("location").toString());                 hm.setNumberOfBeds(numBed);                 hm.setPrice(prce);                 hm.setRoomType(row.get("roomType").toString());                 hm.setSize(size);                  list.add(hm);             }             return list;          }


My colleague and I found another screen bypass bug in iOS 7 installed on iPhone 5 Black. How do we report this to Apple?


I was wondering if anyone knows good resources for Topological Field Theories aimed at physicists. In particular, I am looking for references which are full of examples, starting with simple toy models and building up to more complicated TFTs. I am also looking for references aimed at explaining the subject at someone with a physics background and motivation. For example, a reference with explicit examples building from a Lagrangian that help motivate the more mathematical definitions of TFT. Also, seeing explicitly how one can build explicit examples of these more mathematical definitions from an explicit description of the fields of the theory and an action would be great! A good example of what I am looking for is this lecture , which treats free TFTs. Everything can be done explicitely and a lot of important ideas are already present! Having something like this in written form (which would allow to discuss the details) would be great!


How to properly secure a wireless home network

I'm soon going to be setting up a wireless network for me and some buddies and (hopefully) making it secure. I have some questions and concerns regarding this and figured someone here could give me a hand and steer me in the right direction.   I have a WRT55AG (version 2) loaded with the factory firmware. I've heard that it's possible to load your own firmware onto routers like these. Is it worth it? What can be achieved with it? I was wondering what kind of security I should use on my wireless. Ideally I would want all devices to be 'accepted', but I'm not sure how to accomplish this. I'm guessing it has something to do with MAC addresses, but I don't know the first thing about them. It would be great that ALONG WITH encryption (I'm told WPA2 is the best), every device would need to be added to a list of some sort before even being able to access the AP. Another feature I was thinking of would be completely hiding my wireless from showing up on other people's computer. Is this possible (like an SSID broadcast thing). Is it worth the trouble? One more option I was looking to implement would be bandwidth calculators. Ideally something in the router to measure the amount of bandwidth being used and how much has been used for that month (this has to do with bills and limits, obviously). Is it possible to throttle down speed when a certain limit is reached?   These are alot of points but I was hoping someone who has more knowledge than me in this subject could give me a hand and a few pointers. Hopefully all this is possible and I'm not dreaming :)


How can i write the code which support all languages(specialcharacters)

I create one webpage with create page html.   I have created event as 早上好 in chinese. But it is showing the event  as æ©ä¸å¥½.   What would be the problem here.and tell how to resolve this. please explain me.   I am already adding this code in my html file,  <head>     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> </head>   But it cannot show as the event name like as I have entered.


Paid for and downloaded Ubuntu 16.04 TLS. I have the "ubuntu-16.04.1-desktop-amd64.iso" on a 4gb USB drive.   Question How can I install the .iso file?  I think I need to convert the .iso file into a bootable USB ... however, I only have the "Ubuntu 16.04 TLS" from the original USB I bought, it wont load, something wrong with USB, it errors out ... but, the Ubuntu 16.04 TLS USB has an option to bootup Ubuntu to see if we like it ... (note: this is different from the install version).    Is there a tool I can access on the web, while in the Ubuntu test version, that will covert the .iso to a bootable USB?  Thank you, Don


Is it allowed to include graphs in a thesis without explicit permission?

In a thesis, is it allowed to include graphs from other papers without an explicit permission from the publisher? (assuming citation is provided)


What causes "All-in-one USB Card Reader" to create 6 drives that always appear in Disk Management?

I installed a "All-in-one USB Card Reader" to read SD cards and other media.  It has caused six new drives to appear in Disk Management with six new drive letter assignments.  These drives and letters are always present, even when there are no cards in the reader. When unused, they are labeled "No Media".  Why does this multifunction reader cause these phantom Disks to appear and consume drive letters? Every USB port can (and does) allow removable media to be mounted and assigned a drive letter, and the drive letter assignment "disappears" when the USB drive is removed.  Why are these card reader's drives and letters staying allocated permanently?  Is there anything that can be done to make the slots work like a typical USB drive?  (The reader is in fact connected to USB).


Please consider the following. Supposing the context is such that the frame was never stolen, is it acceptable to use "could have been stolen" instead of "could be stolen"? What would be the difference?  The original frame, which was made of gold, was replaced with a marble one before it could have been stolen


How to get more than 3 international clocks in Windows?

Is there a way to get more than 3 international clocks in Windows Vista (or later)?  This  describes how to add two extra international clocks but I'd like more.


What does `@` represent when dealing with Windows registry keys?

What does @ represent when dealing with Windows registry keys?  Examples:


Can (should) we get rid of multiple punctuation marks?

Disclaimer: I admit that this is a personal pet peeve of mine, so feel free if to close this with extreme prejudice if I'm alone in this. Some people have a tendency to end their sentences with an over-abundance of punctuation marks. The most common offences to this happens with exclamation marks and questions marks and more often than not it's in the title. And opinion on this aligns closely with . But even if you don't subscribe to that particular train of thought, I think it's clear that this construct doesn't really add anything to the clarity or expressiveness of the question. Can we please get rid of them? I think it would be fairly easy to reduce any case where multiple question/exclamation marks are at the end of the title to a single instance. Ideally we could also do this in the body (or inside the title), but obviously this is a lot more dangerous (e.g. "What does the !! operator do in C" should not be reduced to "What does the ! operator do in C", even if !! is not an operator in C). What do you think? Note that , there are 427 questions that end in "!!", 235 questions ending in "!!!", 28 questions ending in "!!!!" and 9 questions ending in 5 or more exclamation marks. There are also 4331 questions ending in "??", 1546 ending in "???", 221 ending in "????" and 61 ending in 5 or more question marks (note that the query is not perfect, as the numbers for 2 to 4 punctuations marks also include the higher counts, I'm too lazy to write the correct query). As far as I know, this query also only finds questions that have not been edited to remove this. I guess that there are a lot more such questions posted than that, but most of them will be edited.


Virtualbox error when starting win7 machine

I created a Ubuntu 18.04x64 VM and into this I installed the virtualbox and created a windows7x64 VM, but, when I start this win7 VM I got this error bellow: Failed to open a session for the virtual machine win7. VT-x is not available (VERR_VMX_NO_VMX) Result code: NS-ERROR_FAILURE (0x80004005) Component: ConsoleWrap Interface: |Console {872da645-4a9b-1727-bee2-5585105b9eed}  I checked the Nested VT-x/AMD-V option in the system>processor. Does anyone know how to fix this error?


What is the direction of the frictional force acting on a rolling wheel?

Let's keep things simple and assume that the wheel does not slide. Assume you are in a car that moves with constant speed. Obviously, the wheels exert a tangential force to the surface on the road in the points of contact, P. According to Newton's third law action equals minus reaction so the road exerts a force to the wheels in the direction of motion (please, see fig. 1). So the friction acts in the direction of motion of the car. It seems reasonable since if there were no friction then the wheels would be turning but the car would not move. However, there is one thing I can not understand. Let's now imagine a wheel rolling (without slipping) on a smooth surface with initial velocity V0 (here I mean that t). The same argument should hold (the wheel exert a tangential force to the surface on the road in the point of contact, P. According to Newton's third law action equals minus reaction so the road exerts a force to the wheel in the direction of motion). So the frictional force should again act in the direction of motion. Nevertheless, the wheel slows down with time which means that frictional force should point in the opposite direction to the direction of motion. Could someone give a QUALITATIVE explanation of the seeming paradox? I would also ask to use JUST the "language" of forces (not to apply the concept of the torque since it makes the explanation less vivid).


Indicate in the browser tab when there is activity

It would be nice if Stack Overflow (and its brethren) visually indicated when there was activity on one's account, as, e.g., att.net/yahoo does:    That way I wouldn't have to interrupt my work to check it, I could just glance up and see.


Good night guys,  I wanted to ask, why it's not possible, to print out the content of an enumeration without a for loop.  For example this:  public class NurTests {      enum optionen{        Option1, Option2, Option3;     }    public static void main(String[] args) {      for (optionen d: optionen.values()){         System.out.println(d);     }   } }   Why can't I write this? Or why can't I write System.out.println(optionen) either?  System.out.println(optionen.values());   Thanks in advance.


Ubuntu 16.04 : Gnome Ubuntu Software Doesn't Open At All

Expected : When I click on Ubuntu Software icon in taskbar or dash, it should open the software center.  Actual : The loading cursor comes in for few seconds and nothing happens. No window. Nothing.  A process for gnome-software is found in System Monitor though.  Tried : Re-installing gnome-software-common. Doesn't solve the issue.  sudo apt-get --reinstall install gnome-software-common   Help?  EDIT :   Running gnome-software from terminal shows following output.  (gnome-software:11311): Gs-WARNING **: failed to open plugin /usr/lib/gs-plugins-9/libgs_plugin_xdg_app_reviews.so: /usr/lib/gs-plugins-9/libgs_plugin_xdg_app_reviews.so: cannot open shared object file: No such file or directory   I found out that it was indeed reported but no solution to those reports too.


I want to make it so my email script will go to the inbox instead of the spam box. How can I fix this?  Here is my code   $q_ry = array(); $q_ry = "SELECT `my_email` FROM `members`"; $adresses = array(); $adresses = mysql_query($q_ry);  while ($u = mysql_fetch_array($adresses))  {     if (!mail($u['my_email'],"Reunited City Newsletter",$_POST['email'],"From: no-reply@reunited-city.com"))      {         echo "Email not sent to" . $u['my_email'] . "!
";     } }  echo "Mass email sent successfully!";   I can post the complete code if needed.. Thank you


What is the best way to restrict website's direct access through node urls?

How can I prevent a node from being accessible on its own page, through node/xxx, but still be accessible through node description eg: /homepage?  I tried using the  module, which restricted the page access through nodes/xxx. But it is restricting access even through the node's descriptive path. I don't want people having some knowledge of Drupal to play around with the website by typing in node-IDs.  So what is the best way to achieve this?


Run Python3.4 and Python3.7 simultaneously on Linux

I have a linux VM with preconfigured Python3.4. I need to have Python3.7 to run my code.  I tried to uninstall Python3.4 but there are some system dependencies, so I kept old version. Then I downloaded and installed Python3.7.1.tgz (sudo make).   But now I can't access Python 3.7 instance. When I run a "python3" command, Python 3.4 is run, when "python3.7" then I get a "command not found" message.  How do I proceed? Is it okay to have two versions of Python 3 installed on one machine? What with installation packages by "pip"?


How can I insert multiple rows in a sql query in ms access?

I'm in a class that designs databases and I don't have any background in it. It's required for my major but it's not my particular discipline. We're using MS Access and in the SQL code I can't figure out how to insert multiple rows of data into a table in one query. Is there a way to do this?   INSERT INTO tblMEMBER ( MEMB_ID, MEMB_FNAME, MEMB_LNAME, MEMB_ADDR_L1, MEMB_ADDR_L2, MEMB_CITY, MEMB_STATE, MEMB_ZIP, MEMB_PRIPHONE, MEMB_ALTPHONE, MEMB_EMAIL, MEMB_SPONSOR, MEMB_JOINDATE, MEMB_SKILL1, MEMB_SKILL2 ) VALUES (1001, 'Jane', 'Smith', '200 Eagle Lane', '202 Eagle Lane', 'Sussex', 'WI', '53089', '262-341-8211', '262-565-2233', 'jsmith@yahoo.com', 'Karen Shelly', 02-16-2014, 'Cooking', null);     This works by itself but then when I copy and paste it and then change the values, I just get an error saying that there are characters after the semicolon. Also, is it possible to insert the rows in the create table query?  So I realized I just didn't understand the syntax and that I needed to just make more queries. Thank you for your answers.


Do you tip in the US for getting a to-go coffee?

I'm not familiar with the tipping system in the US. One day I'm buying a coffee and i am presented with a machine asking me to tip 15%, 18% and 20% and no tip. I feel like I have to tip at least 15% but i still haven't tasted the coffee and I won't even sit down at the place. I don't mind tipping if I get some sort of service.   What do people do with the tipping for getting a to-go coffee?


Excel scatter plot with multiple series from 1 table

Say I have a table as follows:   Label |  X  |  Y  |   A   |  1  |  1  |   B   |  2  |  2  |   B   |  3  |  2  |   A   |  4  |  3  |   C   |  5  |  4  |   A   |  4  |  3  |   C   |  2  |  1  |   How can I make this into an Excel scatter plot with 3 series (A,B,C) without manually selecting the correct rows manually for each series (). This table would be this chart:    Sorting won't help, as I want to do this relatively dynamically with new data.


Help Identify Youth novel about higher dimensions

I read this book about 10 years ago I think. It was probably published in the 90s but quite possibly the 80s. The main plot as I remember involved a high school girl who falls for the new student. He reveals that he knows how to "move in a different direction" and visit higher order dimensions where you can only see certain sides of objects and creatures. There are monster type beings that they hide from.  I think the girl accidentally travels by herself to the 5th or so dimension and he has to rescue her. I think it was hardback, maybe orange cover.


When using the new draft functionality to write a question on the iOS app, if you cancel and save, then reopen the draft, the tags merge together into one tag.   Before:         After tapping cancel -> save draft and then opening the draft again:


Alt+Tab causes applications switching in two layers

I have installed Ubuntu 16.04.4. When I press Alt+Tab the application switcher GUI generates two layers of images.     How I can solve this problem?


I am trying to prove this:     Prove that a positive integer $n$ is a prime number, if no prime $p$ less than or equal to $\sqrt n$ divides $n$.   This is how I thought of starting:  Let us assume the smallest prime factor of $n$ to be $P$.  So, $n = (m)(P)$ From this it follows that $(n) \geq (P)^2$ or $\sqrt n \geq (P)$ i.e $n$ has at least one prime divisor smaller than $\sqrt n$ whenever it is composite.  So if it has no prime divisor, then it must be prime.  However, I'm not quite satisfied with the proof. Can someone please provide me an easier approach to the proof?


Several minutes ago there was a  asked on SO, which when originally posted, was just a terrible post, which was hard to determine what was being asked, and there was absolutely no details provided, for which I flagged it as Low-Quality. The OP has less then 10k rep.  This was the entirety of the original post:     I am working on an app which should run only once after the Installation,Even the launcher should be disabled after I quit it   In my Flag-History, I am now seeing that the flag was deemed disputed, and I am confused as to why.  I read that if a post is flagged of low quality, and it is edited, the flags become disputed because they are supposedly supposed to mark questions that are irrecoverable by edits..  The question has since undergone 3 edits by the OP, none of which added much information that would help the community to help them, and the question has also been Closed as not a real question, yet my flag is still marked as disputed..  Does this non-helpful flag have any affect on my flag-history?


How do I edit line of a file in while loop, Code works except for what is inside the "if" statement, anyone done this before? (second question today, thank you)  #!/bin/bash export ELMS_STORAGE="/loc1/f1.csv"  export CUSTOMER_LIST="/loc2/f2.csv" while read -r ELMS_SIZE ELMS_NAME ELMS_ENV do while IFS=, read -r CUSTOMER_ENV CUSTOMER_URI CUSTOMER_NAME CUSTOMER_SCHEMA_OWNER CUSTOMER_DB_INSTANCE OTHER do   if [ "${ELMS_NAME}" = "${CUSTOMER_URI}" ]; then #### add a new item to the f2.csv  ${ELMS_STORAGE}.${ELMS_ENV}="${ELMS_ENV} ${CUSTOMER_URI}"   ### doesn't work  fi   done < <(tac $CUSTOMER_LIST) done < <(tac $ELMS_STORAGE)  exit   f2.csv before edit  monkey dog tiger   f2.csv after edit  monkey brown  bird green  cat yellow


So in latvian language there are a lot of special letters like - ē ā š ņ č and much more. I have a problem where when i am putting info from textarea in to a database letter "š" and in database its writing "&S caron;" instead of letter what i need. But most interesting is when i try to output files in blade. In blade where im putting out all the posts, text is showing this "&S caron;" instead of "š" but when i open single post page it displays text correct. I have set charset uft-8 in my header and for DB i allready tried utf8mb4_latvian_ci utf8mb4_unicode_ci   and utf8_unicode_ci  here is some screens        If there is need for some code fragments please ask because i dont even know where to dig...  There is situation where in one table in different fields encoding is same and inputting letter "š" in field  "post title" it shows correct but in field "post body" its showing "&S caron;". And it is same showing in browser in all posts page - title correct and post text going with "&S caron;" and in single post page all is correct. kinda confused....  So i tried to put correct text in DB manual via phpmyadmin and now that post body is showing correct and in blade that post shows correct but others not. so i guess there is problem with inputing info


What does `--` mean in the output of `declare -p`?

$ declare -p ar declare -a ar='()'   $ declare -p mmm declare -- mmm="hello"   What does -- mean here? Does it tell some attribute of mmm?  Thanks.


How can I measure the similarity between two images?

I would like to compare a screenshot of one application (could be a Web page) with a previously taken screenshot to determine whether the application is displaying itself correctly. I don't want an exact match comparison, because the aspect could be slightly different (in the case of a Web app, depending on the browser, some element could be at a slightly different location). It should give a measure of how similar are the screenshots.  Is there a library / tool that already does that? How would you implement it?


I am creating a Tetris clone on Khanacademy, will I get into trouble?

For those don't know, Khanacademy is an education site that also has lessons on simple computer programming and allows you to publish your own games that are made on the website.


My title tag doesn't appear to be getting crawled by Google properly

My title is:  <title>School Management Software, College & University Management Software, Cloud ERP Software</title>   However it's showing up like this in Google:   Is there something I'm doing wrong here? Any insight would be really helpful.


What is $\sum_{n=1}^{\infty} \frac{n}{2^{\sqrt{n}}}$?

What is the value of  $$\sum_{n=1}^{\infty} \frac{n}{2^{\sqrt{n}}}$$  It's clearly convergent but is it possible to calculate the sum?


SQL Server migration from 2005/2008 to 2012

We need to upgrade two SQL Servers for our projects to SQL Server 2012. Since we’re not db-admins or familiar with such migrations, I wanted to ask you if you could tell me what we have to be aware of and check before upgrading.  Some information about the servers:  Project 1:   SQL Server 2008 No procedures No functions No views   I think this should not really be a problem to upgrade to 2012 right? Is there anything else we have to make sure?  Project 2:   SQL Server 2005 ~700 procedures ~50 functions ~100 views   I think this will be more of a problem… is there any logic that won’t work on SQL Server 2012 that did on SQL Server 2005?  Is there a list of keywords which are not supported anymore?  Are there other problems that could happen during / after the migration?  Thanks in advance


Creating a list from a range of numbers in Python

I am trying to create a list of size 9 (but that can change) which is populated with numbers from the range of [-pi/2,pi/2] where basically the range is split into 9 numbers and those 9 numbers are what the list is populated with.


The Quotation Mark character in TeXworks editor has vanished

Now, my version of TeXworks is 0.4.5r.1280 and I can't have the " character on the keyboard.    I have ``  or '' instead. Why?  And It's the same with Alt+034. I'm very disappointed with that.


What preposion is suited to the following sentence,  in or by or at?     our team introduced practical processes and possible solutions available in our/the company.   And if there is some better way to write that, please show me.


Let $S$ be a bounded measurable subset of $\mathbb R$. Let $f \colon S  →  (0,\infty)$ be Lebesgue integrable. Prove that   $$\lim_{n\to\infty}\int_S\ f^{1/n} \;\mathrm{d}m = m(S)$$  Where $m(S)$ is the Lebesgue measure of $S$.  There is a hint that let $S = A \cup B$, where $A = f^{−1}((0, 1))$ and $B = f^{−1}([1,+\infty))$.   And the sequence of functions $h_n\ (n = 1, 2, 3, \dots),$ where $h_n(x) = ({f(x)})^{1/n}$.  How can I apply monotone convergence theorem to the given hint.


Found this thread () but no joy.  The directory is clearly there, but no method of addressing it or deleting it seem to work --  note even by inode.  This on Oracle Linux 6 (derivative of RHEL) Note the directory named '-p'  [root@vbpsprod6 /]# ls -li |grep p 2621441 drwxr-xr-x.   2 root root  4096 May  7  2015 cgroup 2359297 drwxr-xr-x.   4 root root  4096 Aug 25 10:02 opt 1835010 drwxr-xr-x.   2 root root  4096 Aug 25 10:14 –p       1 dr-xr-xr-x   93 root root     0 Aug 25 10:34 proc  393217 drwxrwxrwt.   3 root root  4096 Aug 25 10:29 tmp [root@vbpsprod6 /]# find . -inum 1835010 -exec ls -li {} \; total 0 find: `./proc/3259/task/3259/fd/5': No such file or directory find: `./proc/3259/task/3259/fdinfo/5': No such file or directory find: `./proc/3259/fd/5': No such file or directory find: `./proc/3259/fdinfo/5': No such file or directory [root@vbpsprod6 /]# rm -- -p rm: cannot remove `-p': No such file or directory [root@vbpsprod6 /]# find . -type d -name '-p' -delete [root@vbpsprod6 /]# ls -li |grep p 2621441 drwxr-xr-x.   2 root root  4096 May  7  2015 cgroup 2359297 drwxr-xr-x.   4 root root  4096 Aug 25 10:02 opt 1835010 drwxr-xr-x.   2 root root  4096 Aug 25 10:14 –p       1 dr-xr-xr-x   93 root root     0 Aug 25 10:34 proc  393217 drwxrwxrwt.   3 root root  4096 Aug 25 10:29 tmp [root@vbpsprod6 /]#


For x < 5 what is the greatest value of x

It can't be $5$. And it can't be $4.\overline{9}$ because that equals $5$. It looks like there is no solution... but surely there must be?


How can the hacking skill of my soldiers be improved?  Which of the following affects it?   Class (do Specialists get an innate hacking skill boost, or is it only via GREMLIN ?) Rank Special abilities GREMLIN upgrades Practise (eg, does attempting/succeeding in a hack improve skill?)


Finding the physical local path associated with a Share UNC folder

Let's say I am Admin on a server named "Server1" and a share exists using the UNC path \\\Server1\Share1.  If I remote to Server 1 and log in as Admin, how do I find the physical drive location without scanning millions of folders given that a share folder could be defined ANYWHERE.


jailbreakqa.com have copied stackexchange

have copied the stackexchange (especially stackoverflow). some screenshots of the site:  and also this one:  [Note: Whether we can report this kind stuff here or not, I don't know. I am just trying to catch the eye of this site owners as it can mislead original users of this site.]


"Cannot resolve proxy hostname " when installing an application

I am using 2 screens on my computer and wanted to enable the brightness control on the second monitor. I found an application called "brightness controller" on the software centre but the link provided doesn't work. It is for sale at 0$ and when I click on the buy button, I get an error message.  Unable to load page Problem occurred while loading the URL https://software-center.ubuntu.com/subscriptions/en/ubuntu/precise/+new/?archive_id=commercial-ppa-uploaders%2Fbrightness-controller&arch=i386 Cannot resolve proxy hostname    I went to the , but once there, being a Win XP defector, I do not know what to do with the multiple links provided there.


I want to typeset the following in TeX (without the arguments).     < , >   I know that I can accomplish this by doing \langle , \rangle  As an example I want to write something like the follwing:     ...The adjoints are with respect to the ( \langle , \rangle ) and not with respect to ( ( , ) )   But spacing on either side of the comma inside \langle \rangle does not look right.  How does one fix this? Thanks.


I tried to install wine from terminal i this is what i got:  liquid@liquid-desktop:~$ sudo apt-get install wine [sudo] password for liquid:  Reading package lists... Done Building dependency tree        Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:  wine : Depends: wine1.6 but it is not going to be installed E: Unable to correct problems, you have held broken packages.


Bounding the integral $\int_{2}^{x} \frac{\mathrm dt}{\log^{n}{t}}$

If $x \geq 2$, then how do we prove that $$\int_{2}^{x} \frac{\mathrm dt}{\log^{n}{t}} = O\Bigl(\frac{x}{\log^{n}{x}}\Bigr)?$$


How can I check if automatic updates are enabled?

I want to be sure if automatic updates are enabled on Ubuntu 12.04 server.   How exactly can I check this?   And how can I disable automatic updates if it's enabled?


find and copy exec command not recursive

I'm running this command to find all the files named deploy.php in my whole project and make a copy of them and place them in the same directory as they were found, with name deploy_bkp.php  find . -type f -name "deploy.php" -exec cp  {} deploy_bkp.php  \;    But it's not working recursively, it's only working for files on the top directory.


Who in the DC Universe can stop Superman if he has a breakdown?

Is there anything or anyone in the DC universe that can defeat Superman just in case he goes berserk on everybody?  Maybe Batman stores kryptonite in his Cave or something. I don't know if Batman actually has kyptonite, the example was just a theoretical example.  Who can stop Superman if needed, and how?


Assume $\arctan$ is differentiable. Prove that $\arctan(x) =1-x$ has a solution in $(0,1)$. The hint given is to use the intermediate value theorem (IVT).     I do not understand how to show there is a solution using the intermediate value theorem. Could I get help to better understand how to apply IVT in this case?


How are the Battle Points you earn calculated?

What in game events affect how many points I earn? Is there a cap to how many I can earn in one match? Do I get points regardless of winning or losing?


Problem with a table with special header: bolded numbers are badly aligned with the rest of the numbers

I am trying to make a LaTeX table that includes special headers. My code for the table is shown below: \begin{table}[ht] \centering \scalebox{0.70}{ \begin{tabular}{lddcdd} \toprule  &\multicolumn{2}{c}{M1} &   & \multicolumn{2}{c}{M2} \\ \cmidrule{2-3} \cmidrule{5-6}  & \multicolumn{1}{c}{1-2}   & \multicolumn{1}{c}{7-8} &   & \multicolumn{1}{c}{1-2}   & \multicolumn{1}{c}{7-8} \\  \midrule A &   \textbf{0.0021} & \textbf{0.0033} & & -2.37 & 0.00 \\  B & \textbf{0.0052} & \textbf{0.0042} & & -1.23 & 0.67 \\  C & \textbf{0.0082} & \textbf{0.0057} & & -0.21 & 1.08 \\  D & 0.0107 & 0.0097 & &  0.74 & 1.41 \\  E & \textbf{0.0080} & 0.0088 & &  5.05 & 5.05 \\  F & 0.0140 & 0.0148 & & -2.37 & 0.00 \\  G & 0.0128 & 0.0176 & & -1.23 & 0.67 \\  H & 0.0157 & 0.0164 & & -0.62 & 1.10 \\  I & 0.0145 & 0.0155 & & -0.21 & 1.08 \\  K & 0.0236 & 0.0225 & &  5.05 & 5.05 \\  \bottomrule \end{tabular}} \smallskip \caption{My Caption} \label{tab:table1} \end{table}  it creates a table like this:  but I want the bolded numbers to align nicely with un-bolded numbers...How can I make the bolded numbers to align the other numbers in the right way? Thank you,


Simple regex matching produces wildly different results depending on shell version

Long story short:  bash --version | head -n 1; [[ "abc" =~ "^a" ]] && echo Match || echo No match   Results on host 1:  GNU bash, version 3.2.25(1)-release (i686-redhat-linux-gnu) Match   Results on host 2:  GNU bash, version 4.1.2(1)-release (i386-redhat-linux-gnu) No match   What environment directives and/or configuration options should I check in order to produce consistent results?  For completion, please be advised they don't always fail to match all regular expressions. Slightly altering the regular expression (removing the "beginning of string" caret constraint) does produce consistent results:  bash --version | head -n 1; [[ "abc" =~ "a" ]] && echo Match || echo No match   Results on host 1:  GNU bash, version 3.2.25(1)-release (i686-redhat-linux-gnu) Match   Results on host 2:  GNU bash, version 4.1.2(1)-release (i386-redhat-linux-gnu) Match


I'd like to do it in Python. What I'd like to do in this example in C: #include <stdio.h>  int main() {     int i;     for (i=0; i<10; i++) printf(".");     return 0; }  Output: ..........  In Python: >>> for i in range(10): print('.') . . . . . . . . . . >>> print('.', '.', '.', '.', '.', '.', '.', '.', '.', '.') . . . . . . . . . .  In Python print will add a \n or space, how can I avoid that? Now, it's just an example, don't tell me I can first build a string then print it. I'd like to know how to "append" strings to stdout.


Whenever I tried to update my system Using sudo apt update && apt upgrade  I found this error E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied) E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?  I'm using Ubuntu 20.04.1 LTS x86_64 with plasma


In the following example, should I use a, any, the, it, or one?   Yesterday my friend told me someone had parked a truck in our playground but when I reached there I did not see a truck/it/any trucks/the truck/one.


Why capitalize this word in the middle of the sentence?

I came across this sentence at . Why is "Does" capitalized?     The question is, Does anyone support this legislation?


Is there a plan for a more convenient way to save advanced search criteria in Stack Overflow?  It would be really convenient to add and remove the saved criteria in a nearly identical way to the favorite tags.  For example, I could type the following in a favorite searches TextBox and add as a favorite:  [wpf] closed:no wiki:no   And when I click on that favorite (Button), I can add additional criteria to it in the search bar.  Edit: I would like to hear a good reason (if there is one), why saved searches isn't a good idea, whereas favorite tags are.  For example, if the above is stored as a favorite, the home page could highlight wpf items that aren't closed or wiki.


I want to reorder stuff in a custom post. I got the meta box and editor working together, but currently the editor is above the meta box and I need it to be the other way around.   This is the code for my meta box:  // adding the meta boxes add_action("admin_init", "tl_admin_init"); function tl_admin_init(){   add_meta_box("testimonial_description-meta", __('Testimonial Description', 'sagive'), "testimonial_description", "testimonial", "normal", "core"); }   // getting, setting and displaying PROJECT DESCRIPTION meta box function testimonial_description() {     global $post; // this is a must!     $custom = get_post_custom($post->ID); // this is a must!     $testimonial_description = $custom["testimonial_description"][0];     ?>     <textarea name="testimonial_description" style="width: 98%; height: 10em; " /><?php echo $testimonial_description; ?></textarea>     <label><?php _e('Write a Simple 2 Line Description of your client testimonial without html for clean design.', 'sagive'); ?></label>     <?php }   I tried removing the editor and re-instating after this function but I guess that`s an over simplistic solution since it doesn't work.  I've removed the editor using this:  /* This will help me get rid of the editor */ function tl_remove_pages_editor(){     remove_post_type_support( 'testimonial', 'editor' ); }    add_action( 'init', 'tl_remove_pages_editor' );   Then added it again using add_post_type_supports.    Any suggestions anyone ?


If I use the Shapechange spell to turn into a phoenix, can I use its legendary resistances to pass Con saves to maintain concentration?

I've been trying to make use of the Shapechange spell as a 9th-level spell with a Druid class, but concentration seems to be a major issue. Say I transform into a Phoenix, can I use its 3 Legendary Resistances to automatically succeed in a damaging saving throw three times to prolong the form? This would make Shapechange viable for melee characters for at least a slightly longer period than a single turn.


What is the easiest way to tell what resources a settler is assigned to in Fallout 4?

My Sanctuary Hills settlement in Fallout 4 has 14 settlers and I'm struggling to tell what resources each of them are assigned to - or if they're assigned to any resource at all.  Currently the only way I know to see assigned resources is by hovering over a settler in workshop mode their assigned resources will highlight in green.  This works okay if they are standing near their resource - but as my settlement has grown in physical size/ complexity/ population it's become harder and harder to use this method.  Is there another way to see which settlers are assigned to which resources?


Connect to PC server from PlayStation minecraft

Is it possible to connect to same server from Mac/PC and PlayStation 3 (PS4,PS Vita in future)


What's the meaning of factors 'collapsing' in quotients like $\mathbb{Z}_4\times\mathbb{Z}_6/\langle(0,1)\rangle$?

My book says that in  $$\mathbb{Z}_4\times\mathbb{Z}_6/\langle(0,1)\rangle$$  since we're setting everything in $\langle(0,1)\rangle$ to $0$, it's like. That is, the whole second factor $\mathbb{Z}_6$ of $\mathbb{Z}_4\times\mathbb{Z}_6$ is collapsed, leaving just the factor $\mathbb{Z}_4$.  Then, for   $$\mathbb{Z}_4\times\mathbb{Z}_6/\langle(0,2)\rangle$$  It says that the same thing happens, but now $\mathbb{Z}_6$ is collapsed by a subgroup of order $3$, therefore givinf a group in the second factor of order $2$, so it's isomorphic to $\mathbb{Z}_4\times\mathbb{Z}_2$ I tried to visualize the cosets for both groups, here they are:  $$\mathbb{Z}_4\times\mathbb{Z}_6/\langle(0,1)\rangle$$  $$H = \{(0,0),(0,1),(0,2),(0,3),(0,4),(0,5)\}$$ $$H_1 = \{(1,0),(1,1),(1,2),(1,3),(1,4),(1,5)\}$$ $$H_2 = \{(2,0),(2,1),(2,2),(2,3),(2,4),(2,5)\}$$ $$H_3 = \{(3,0),(3,1),(3,2),(3,3),(3,4),(3,5)\}$$  And   $$\mathbb{Z}_4\times\mathbb{Z}_6/\langle(0,2)\rangle$$  $$H = \{(0,0),(0,2),(0,4)\}$$ $$H_1 = \{(1,0),(1,2),(1,4)\}$$ $$H_2 = \{(2,0),(2,2),(2,4)\}$$ $$H_3 = \{(3,0),(3,2),(3,4)\}$$  But I cannot visualize this 'collapse' thing


This question led to a new package:      I wish to typeset some relatively long URLs in a piece of text, and when I use \url{..}, the resulting text does not respect the margin boundaries that govern the main text body, instead going all the way to the edge of the paper before wrapping around.   For reference, my preamble looks like this:  \documentclass[12pt]{article} \usepackage{mathptmx} \usepackage{fullpage} \usepackage[pdftex]{hyperref}   and example of the url I'm including is:  \begin{itemize} \item Some text  \url{very-long-url} ... \end{itemize}   I'm compiling using pdflatex, although I doubt this makes a difference.


How do we know distance to; size of merging black holes?

When LIGO said one merging black hole was thirty or so solar masses, the other twenty, and that they were one billion light years away;   how do they know that?


Let's start with two square matrices, $A$ and $I$. $I$ is the identity matrix in n-dimensions. $A$ is such that all its entries are equal to 1 (clearly, it is not invertible).  Our task is to determine conditions on $a$ and $b$ such that $M=bA + (a-b)I$ is invertible, i.e. has rank = $n$. Of course, we don't know what $n$ is, so we probably don't need to.  $a=b$ is the worst that's possible, so $a$ and $b$ should not be equal. Is that all, though? Is it sufficient to ensure invertibility of $M$?  $A$ has all linearly dependent rows, while $I$ has all linearly independent rows. Is this sufficient to say that $A+I$ (or any other linear combination) has linearly independent rows/columns?  Any help is appreciated, thanks a lot!


How will "Final" closing down affect my credit score?

I recently opened up a new credit card with a company called "Final". That company has decided to close down (they did not go into details on why). In response to this, I have 2 questions:  1) How will this closure affect my credit score?  2) If this negatively affects my credit score, is there anything I can do to minimize that?  Update:  In response to RonJohn's answer, I wanted to provide  for where "Final" has communicated that it is shutting down.  Included as a screenshot for when the webpage is taken down.


#include <stdio.h> #include <string.h>  int main(void) {     char ch='a';      printf("sizeof(ch)          = %d\n", sizeof(ch));     printf("sizeof('a')         = %d\n", sizeof('a'));     printf("sizeof('a'+'b'+'C') = %d\n", sizeof('a'+'b'+'C'));     printf("sizeof(\"a\")       = %d\n", sizeof("a")); }   This program uses sizeof to calculate sizes. Why is the size of 'a' different from the size of ch (where ch='a')?  sizeof(ch)          = 1 sizeof('a')         = 4 sizeof('a'+'b'+'C') = 4 sizeof("a")         = 2


Third-order phase transition in Landau theory

$F=\frac{a}{2}m^2+\frac{u}{4}m^4+\frac{v}{6}m^6-hm$, where $F$ is the free energy, $m$ is the order parameter, $h$ is the external field, $a=a_0(T-T_c)$, and $a_0>0,u>0$ and $v>0$.We know this free energy expansion describes a second-order phase transition. How to write down a free energy such that the transition is a third-order phase transition?


To define my own math operators, I usually use 's \DeclareMathOperator. However, with \DeclareMathOperator{\Res}{Res} does not give me the desired "limits" under the operator even in displayed math.  Searching this site, I found \operatorname* (and ) which implements the desired behavior.  \begin{equation}     \operatorname*{Res}_{x = y} \frac{1}{x - y}     = 1. \end{equation}   gives    However, I'm still unsure if this can or should somehow be combined with \DeclareMathOperator and generally when to choose \operatorname* over \DeclareMathOperator (besides this particular case).


How is it possible for file paths exceeding 256 characters to be created?

How is it possible for file paths exceeding 256 characters to be created in the first place if 256 characters is the maximum length Windows can recognize?  We are running SBS 2003 and I am currently dealing with problems caused by users creating subfolders on network shares with very long descriptive names. As these names get longer over time and subsfolders are created inside them, we eventually end up with folders at the bottom of the folder hierarchy with paths exceeding the 256 character limit (some paths are now over 320 characters in total).  My question: if a file path exceeding 256 characters is too long, then how is it possible for users to create these excessively long paths in the first place without getting an error from Windows?  (Workstation OS version = Windows 7; server OS = SBS 2003)  Hopefully, once I understand how this is possible, I will be able to deal with the problem of these long paths being created more effectively in future.


My laptop has a small hard drive. I want to load a big data set. I have moved the entire /usr/local/var/postgres to the external hd, and symlinked it back. Now I'm getting this error,      psql: could not connect to server: Socket operation on non-socket     Is the server running locally and accepting connections on Unix domain socket "/tmp/.s.PGSQL.5432"?   I have now found the problem.  Changing the default data directory causes Postgres to refuse connections to the server. The online Manual is a little [sic!] unspecific about "config files in the same directory"…  The solution I used (with psql) is to:            CREATE TABLESPACE tablespacename OWNER username LOCATION '/Path/to/Folder'   then,      CREATE DATABASE databasename OWNER username TABLESPACE tablespacename   and finally      psql databasename < /Path/to/databasedump.sql   NOTE to future visitors of this question; please see the warning below from Craig Ringer regarding how to solve this problem properly.


How do I find the actual binary/script using 'which' in zsh?

In zsh, when I enter which git it shows:  git: aliased to noglob git   How do I find out which git binary it actually invokes? (eg: /usr/bin/git vs ~/bin/git). Basically I want to bypass the aliases when I use which.


jQuery click event doesn't working with my code

here is my code in jquery, and i want to get the data in tech-support-bullet-chart2  $.ajax({     type:"POST",     url:"includes/bullet-chart.php",     data:{         daterange:ym     } }).done(function(e){     var tech_support = JSON.parse(e);     //console.log(tech_support);     for(i=0;i<t_s.length;i++){     //console.log("support:"+tsn + ", complete:" + tsc + " ,Pending:"+ tsp +", isExist:"+isExist);     $("#div-charts").append('
'+     ''+     '
'+t_s[i]+'()

'+     '
'+         '

' +         '
' +         '

');     }   here is my function in geting the data-sname  $(".tech-support-bullet-chart2").click(function(){ var name = $(this).data("sname"); alert(name);})   and my problem is.. my second code does not working.. please help me on this..   thank you in advance!


Short story about aliens that routinely kill their wives? Who wrote it?

Story about astronauts who landed on an alien planet. The aliens would corral all the female aliens in a pen. The males would take on a new alien wife every month (year?) and kill the old wife. The astronauts decide to help the females. The females rebel and kill the astronauts saying they threatened their way of life. Who wrote it? Title? Read as a child....think it was a short story in a book with many other stories.


Can I kill Lurrus directly after it enters the battlefield, before it's controller gets priority to cast a permanent from their graveyard?

The two following rulings for  apply:  You must follow the normal timing permissions and restrictions of the spell you cast from your graveyard.   Once you begin to cast the spell, losing control of Lurrus won’t affect the spell. You can finish casting it as normal.  By the second quoted rule, I see if I don't respond to Lurrus being cast and entering, and my opponent chooses to cast a permanent from their graveyard, even if I then kill Lurrus, the chosen permanent will still be cast. So my question is if my opponent casts Lurrus and it enters the battlefield, can I immediately kill it before my opponent gets priority to cast a permanent from their graveyard.


A domain is a field if it has a common multiple $\!\neq\! 0$ of all elements $\!\neq\! 0$

Let $D$ be a domain which is not a field. If there exists $b \in D - \{0\}$ such that for all $a \in D - \{0\}$, $a|b$, then is it true that $b = 0$?   This is certainly true if one has a UFD with infinitely many irreducibles (that are not associates) or a Jacobson domain which is not a field (or more generally a domain where the intersection of all non-zero prime ideals is the zero ideal), but I can't seem to be able to prove this for a domain in general or find a counterexample.  If this statement is false for an arbitrary domain, then is there some additional weak hypothesis on the domain which makes the above statement true?   I was actually trying to answer a question asked yesterday on MSE, which was the following:  If $D$ is a domain which is not a field and $Q = Frac(D)$, then $Hom_D(Q,D) = \{0\}$. Note that if $\varphi$ is any such $D$-linear map, then for all $a \in D- \{0\}$, $a\varphi(1/a) = \varphi(a/a) = \varphi(1)$. Thus, I get for all $a \in D - \{0\}$, $a|\varphi(1)$, and I want to conclude that $\varphi(1) = 0$, but cannot.


A question about Euler's Totient: $\frac1 {\phi(n)} = \frac1 n \sum_{d|n} \frac{\mu(d)^2}{\phi(d)}$

Show that $\frac1 {\phi(n)} = \frac1 n \sum_{d|n} \frac{\mu(d)^2}{\phi(d)}$ for all positive integers n  In class we solved this question by  observing that both sides are multiplicative functions and they should be equal at prime values. There is this another method we have done that I cant understand. I have to express right-hand side(the summation) as a multiplication but I just cant figure out. It would be better if you could give me a hint. Thanks in advance.


Question about proving irreducibility in $\mathbb{F}_2$

For the polynomial $x^3 + x + 1$ and trying to prove that it is irreducible over the field $\mathbb{F}_2$, I was told that since $f$ is a degree 3 polynomial that it is simply enough to verify that there are no roots in $\mathbb{F}_2$. What does this have to do with irreducibility?  The calculation is simple enough but I don't understand why this verification can show irreducibility.


What are the major changes at the Survival level?

I am playing the game in "normal" level, but I am getting to the point where the game starts to be a little bit easy and I want to increase difficulty to Survival.  I was wondering what are the major changes at the Survival level?


Side-by-side markdown title not so side-by-side

In edit revisions where a long enough title has been edited, the side-by-side  markdown view shows a large overlap when the title wraps:    This is a repeat of  specific to the new Meta design. Looks like a line spacing adjustment is needed.  See this .


How do I perform commands in another folder, without repeating the folder path?

Is there a clever way to do copy and move operations or a command to duplicate a file, without having to do a cd, then mv after, at the same folder?  For example, I have to run the following:  mv /folder1/folder2/folder3/file.txt /folder1/folder2/folder3/file-2013.txt   Note that the directory to where I'm moving the file is the same, but I have to put the whole path again and sometimes it gets annoying. I'm curious to know if there's another way to do that without having to put the whole path again, because the operation would be done in the same path.


Add local pictures to iMindQ mind maps for Android

Almost all is in the title: iMindQ asks an URL when attempting to add a picture to a node. I would like to add a local picture...  I tried something like this:   file:///sdcard/pictures/position_-2101364257.jpg    but it does not seem to work.


Linker error "undefined reference to" with Eigen template functions

I'm attempting to write a class that solves a system of nonlinear equations (a root finder). For this, I've written a class that encapsulates all the internal functions needed, as well as the system to solve: a function that takes an Eigen vector and returns an Eigen. The public newt member function takes an Eigen vector (the initial guess), runs the algorithm with that initial guess, and returns the Eigen vector r such that func(r) = {0, 0, ..., 0}. I've written the functions as prescribed : writing template functions that take instantiations of MatrixBase.  The way I've handled taking an arbitrary function to solve was to implement a base class and then have the user extend it, defining func, the function to solve. The class I have is  class Newt { private:     template<typename TR, typename T1, typename T2, typename T3>     tuple<TR,bool> lnsrch(const MatrixBase<T1> &xold, const double fold, const MatrixBase<T2> &g, MatrixBase<T3> &p, const double stepmax);      template <typename TR, typename T1, typename T2>     TR fdjac(const MatrixBase<T1> &x, const MatrixBase<T2> &fvec);  public:     template <typename TR, typename T1>     TR func(const MatrixBase<T1>&);      template <typename TR, typename T1>     tuple<TR,bool> newt(const MatrixBase<T1> &xx); };   The user then inherits from Newt and overrides the func method to the desired function to solve:  struct NewtD : public Newt {     template <typename T1, typename T2>     T1 func(const MatrixBase<T2> &z) {         // Content     }    };   Then he instantiates it and calls the newt member function. However, when I compile this with the following test case:  struct Newt3 : public Newt {     template <typename T1, typename T2>     T1 func(const MatrixBase<T2> &x) {         return (Vectord<3>() <<              z(0),             z(1)*z(2),             pow(z(2)-1,2)         ).finished();     }    };  int main() {     Newt3 solver3;     bool check;     tie(X,check) = solver3.newt<Vectord<3>>(X); }   I get the following linker error, when compiling with g++ 6.2.0  undefined reference to `std::tuple<Eigen::Matrix<double, 3, 1, 0, 3, 1>, bool> Newt::newt<Eigen::Matrix<double, 3, 1, 0, 3, 1>, Eigen::Matrix<double, 3, 1, 0, 3, 1> >(Eigen::MatrixBase<Eigen::Matrix<double, 3, 1, 0, 3, 1> > const&)'   It seems it can't find newt? I have no idea why this is, the signature in the error seems to match my code, everything seems okay. Any idea how to solve this?  PS: Oh yeah, I forgot: Vectord<N> is a shortcut template type simply defined as   template<size_t N> using Vectord = Matrix<double, N, 1, 0>;   PPS: The implementation is in a separate file. I didn't include it because it's quite big, but bottom-line is every function is defined there, including Newt::newt  template <typename TR, typename T1> tuple<TR,bool> Newt::newt(const MatrixBase<T1> &xx) {     // Body }


Find the number of trailing zeros in 50!

My attempt:    50! = 50 * 49 *48 ....    Even * even = even number    Even * odd = even number    odd * odd = odd number    25 evens and 25 odds    Atleast 26 of the numbers will lead to an even multiple (24 evens + 1 even * 1 odd) so at most 26 trailing zeros.   50 is divisible by 5: 10 times. Atleast 10 trailing zeros.   What is the answer?


TikZ code for drawing an icosahedron and labeling

I found TikZ code for drawing an icosahedron :  \NeedsTeXFormat{LaTeX2e}[1995/06/01] \documentclass[a4paper]{amsart} \usepackage{graphics, tikz, tkz-berge, tkz-graph} \begin{document} \begin{figure} \begin{tikzpicture}   \begin{scope}[rotate=90]     \grIcosahedral[form=1,RA=3,RB=1.5]     \SetUpEdge[color=white,style={double=black,double distance=2pt}]     \EdgeInGraphLoop{a}{6}     \EdgeFromOneToSel{a}{b}{0}{1,5}     \Edges(a2,b1,b3,b5,a4)     \Edge(a3)(b3)     \Edges(a1,b1,b5,a5)     \Edges(a2,b3,a4)   \end{scope} \end{tikzpicture} \end{figure} \end{document}   The output is:    which is very nice, but I want to label the vertices v_1, v_2, ..., v_12 instead of a's and b's. However, I don't know how to change the code so that the labels will be different. I tried to simply replace all the a's in the code by v's but that gives an error.


What should I do about a character's magic items when their player leaves?

I have a group of three adventurers and one member of the party is leaving the group permanently. No worries, it's all on good terms and we're getting someone else to replace them. My concern is that my group can be fairly volatile, meaning that players come and go somewhat frequently, and I'm not sure what the best way would be to handle their magic items. I could just allow the remaining players to pick through the magic items that belonged to the player who is leaving, but that could cause balance issues if my player count dwindles and they are loaded with unnecessary magic items. Not to mention it doesn't really make sense for a character to just give up all of their most valuable possessions just because they are retiring from adventuring. On the other hand, I don't think it would be right for me to rob the party of the hard earned loot that they ALL risk their hides for. Does anyone know if there are guidelines for this scenario, or do you have any advice?


How do you compare structs for equality in C?

How do you compare two instances of structs for equality in standard C?


If cut a cut down the middle, both halves are symmetrical.  Why is it that most animals are symmetrical?  Is there an energetic reason for this? (as in, it is energetically favorable to create the same thing twice instead of making something new)


makes suggests there is some sort of auto completion or suggestion system in place in the Android app when asking questions. I'm running v0.1.25 and I don't see any suggestions if they are indeed implemented. If it isn't implemented, then it seems like there is already a  for this to be implemented, so you can mark it as a duplicate.


Is the LQP queue adding multiple comments?

I've just seen a number of posts in the Low Quality Posts queue which appear to have multiple identical automatic comments from a reviewer:    (now deleted; 10K+ only)  (now deleted; 10K+ only)  (now deleted; 10K+ only)   Given that all the comments have almost identical timestamps, this seems to be a bug.   Obviously, I can just flag these for deletion, but I haven't yet because I want to make sure non-moderators can see this behavior.


I attached an image with a limit, how can I solve that limit? If I use mean value theorem for integral it will be indeterminate form infinity * zero.


can I use a 5400mAh battery in my Toshiba L40-17m laptop?

I recently bought a replacement battery for my Toshiba Equium L40-17M laptop. It is showing a 5400 mAh. Usually it seems this model takes a 4400mAh. Will the larger mAh damage my laptop?


Listing a countable set in ascending order

Given a countable set on which a total ordering is defined, it is not always possible to list the full set in ascending order. The set of rationals is a well-known example.    But are there conditions under which such a listing is possible? Ideally, the conditions would be both necessary and sufficient conditions, but I suppose weak sufficient conditions will, eh, suffice. For instance, can the support of a discrete random variable on a probability space always be listed in ascending order?


Running triggers with an admin user or system access

We have several validations that we run on some of our custom objects in triggers (e.g., after update, after insert, etc.). Many of these validations are one time validations from a system perspective that the user inserting or updating the record does not need to know about. The validations also work with custom fields that should not be visible to the user but we have to make it visible/writeable because the trigger is run from the users perspective.   1- Main Validation: that runs from the users perspective  2- System Validation: that runs from the system/admin perspective and is completely hidden from the user.   suggests that the validation rule is blocking what the user wants to achieve and the focus of the topic is Validation Rules while we do not use Validation Rules at all and have everything in the triggers.  Using system.runas(admin) obviously does not work in production as it only works with tests.  Another option is using without sharing in the trigger, which will bypass the FLS but cannot be done because as far as I know it will fail the package in security review.  What is the best solution here?


Lightning alternative to URL Hack from Visualforce Page

We are hoping to soon migrate to Salesforce Lightning Experience (LEX).  We have migrated many of our users but before migrating the remaining large teams I have a problem to solve.  We currently use the Salesforce Console for Service Cloud and on our Contact, Case and Work Order records we include a button that opens up a Visualforce page to offer the user choices based on the record detail.  This visualforce page includes multiple buttons but when one is selected it opens a new Object Edit screen (normally "Orders") with as many fields prepopulated as possible, it accomplishes this via Javascript and URL hacking in Salesforce.    I know the URL Hack was unsupported and has been replaced with "Publisher Actions" but unfortunately I can't see how we can prepopulate fields based on the record detail (and I've struggled with lookups).  My tests simply allow me to store field default values regardless which will leave the users completing more work in LEX than in Classic and that simply means we won't yet migrate these users (really want to avoid this).  Can anyone advise the best solution to the above in LEX?  Components?  Thanks.  EDIT- A key piece of data to prepopulate on the new record is taken from the visualforce page, it isn't available on the record detail.


How to get class used in genericized object

I have the following method which expects an object with a parameterized class. Kindly help me find the class of T. For example, i have put a return of JsonObject.class.  private static <T> Class<T> getType(me.yoctopus.util.Response<HttpResponse<T>, JSONException> response) {     /*     Type type = ((ParameterizedType) response             .getClass()             .getGenericSuperclass()).getActualTypeArguments()[0];     Type httResponse = ((ParameterizedType) type             .getClass()             .getGenericSuperclass()).getActualTypeArguments()[0];    return (Class<T>) httResponse;*/    return (Class<T>) JSONObject.class;   }   I need to determine and return the class T


How to add content-type text/xml to an XML file created by PHP code?

I have a PHP code that exports the products to the XML file with the database. I have a problem with the created XML file because its contetent-type is set to "text / html" and I need to change it to "text / xml"  This code works for me but creates xml in text / html.  <?php      $con = mysqli_connect("xxx","xxx","xxx","xxx");     mysqli_set_charset($con,"utf8");     $sql = "SELECT * FROM products WHERE ";     $myFile = "xml/xxx.xml";      $fh = fopen($myFile, 'W +');     $rss_txt = "";     $rss_txt .= '<?xml version="1.0" encoding="utf-8"?>'.PHP_EOL;         $rss_txt .= '<products>'.PHP_EOL;         $rss_txt .= '<datetime><![CDATA['.date('d.m.Y H:i').']]></datetime>'.PHP_EOL;             $query = mysqli_query($con, $sql);              if (!$query) {                 die(mysql_error());             }              while($values_query = mysqli_fetch_assoc($query)){                     $rss_txt .= '<product>'.PHP_EOL;                         $rss_txt .= '<title><![CDATA[' .$values_query['product']. ']]></title>'.PHP_EOL;                         $rss_txt .= '<sku><![CDATA[' .$values_query['sku']. ']]></sku>'.PHP_EOL;                         $rss_txt .= '<description><![CDATA[' .$values_query['description']. ']]></description>'.PHP_EOL;                         $rss_txt .= '<image><![CDATA[' .$values_query['img']. ']]></image>'.PHP_EOL;                         $rss_txt .= '<quantity><![CDATA[' .$values_query['stock']. ']]></quantity>'.PHP_EOL;                         $rss_txt .= '<category><![CDATA[' .$values_query['product_categories']. ']]></category>'.PHP_EOL;                         $rss_txt .= '<price><![CDATA[' .$values_query['price']. ']]></price>'.PHP_EOL;                     $rss_txt .= '</product>'.PHP_EOL;             }          $rss_txt .= '</products>'.PHP_EOL;      fwrite($fh, $rss_txt);     fclose($fh);      mysqli_close($con); ?>   I know I will change the content-type by adding this code:  header("Content-Type: text/xml");


Glade 3.22.2 in distribution LTS 20.4 is not working

Ubuntu LTS 20.4 distributes Glade version 3.22.2 can't open old files with the editor. can't make new Gtk-window with the editor my old programs using gtk-builder are working but I'm not able to modify the *.glade files. Editor immediately crashes Glade has actually version 3.38.2 Where can I report bugs I helped myself by sudo snap install glade it installed version 3.38.2 after that operation the regular installation was also running


Drawing Sphere to represent a black hole

Can anybody tell me how to draw up a sphere inside a sphere?   What I mean is something like this:    Also where it says the different horizons be able to insert a mathematical expression? Also not in these poor colours something that looks kind of professional.  Any help much appreciated.


What's the difference between Buy and Sell price on the stock exchange

I am new to stock investments. I usually ask for stock broker to write up a quote for me. I can also check the prices on the . However I am not sure which price she quotes,the buy or the sell? My question is what is the difference between the two,If I am selling my shares which price should I look at,and also if I am buying which price do I look at? The questions  I looked at made reference to Bid and Ask which are not terms used on the Malawi Stock Exchange. Can someone clarify this for me please as the terms used in the US may not be the same


What resistors to use for 60, 8000mcd LEDs, with 4 * 1.5v battery source?

I currently have 60 LEDs in a parallel circuit. I am using 4 1.5v batteries as the source. The LEDs have a forward voltage of 3v-3.4v (8000mcd, wavelength 460nm).   My questions are: Can I just use one resistor at the start of the circuit (as I'd rather not de-solder all 60 LEDs and add them onto each one)? and if so.. What kind (ohm) of resistor should I buy? How, in future, would I figure all this out myself?         – Schematic created using


is this a universal error of all the programming languages

i am facing this problem in python below is the code in python  >>> p=350. >>> p-=0.1 >>> p-=0.1 >>> print p-349.8 -5.68434188608e-14 >>>    i have checked this program many times and i think the output of print p-349.8 should have come 0. i have also tried this in other languages too in c++ , Java and python and i want output to come 0.0 please help


Should I remove the HPlip packages from the Ubuntu repositories before installing the latest version with the HP provided .run installer?

I need the latest version of HPLip on my computer to fully support a new printer. I already have HPLip and HPLip GUI installed from the Ubuntu repositories. HP offers a .run based installer to be run in bash. Should I remove the HPLip deb packages before I run the HP installer, or will the HP installer update current version? I am afraid to just try since I may mess up the printer sub system not knowing how to fix it.


What are hyperref’s PDF bookmarks and how do I use them?

I have very often met the Package hyperref Warning: Token not allowed in a PDF string. Being fed up about it and curious to know what it meant, I was about to ask the n-th duplicate of that questions. Fortunately I bumped into  just in time and solved the problem. Another question was naturally opened in the process: what are these pdf bookmarks, what is their use, and how do I make them appear in the pdf? And since I had a \cdot in a section title, is it possible to have a high dot in a bookmark, as \texttwosuperior seems to make it possible for a 2?


The limit of a sum $\sum_{k=1}^n \frac{n}{n^2+k^2}$ as $n\rightarrow\infty$

How to compute this limit:  $$\lim_{n\to\infty}\left(\frac{n}{n^2+1^2}+\frac{n}{n^2+2^2}+\cdots+\frac{n}{n^2+n^2}\right)$$  Please give me some hint.


Remove the site contents link on the quick launch sharepoint 2010 site

I want to remove the site contents link in sharepoint site.can anyone having idea to delete the sitecontents link in sharepoint 2010?


SQL Syntax highlighter doesn't recognized double-dash comment syntax

-- this is a comment UPDATE Employees SET fired = 1 WHERE noiseLevelInDB > 80


Long transit layover in Montreal: is it possible to leave the airport?

I have a Las Vegas to Rome flight booked with Air Canada, which gives me an 11-hour layover in Montreal. My luggage will go directly through to Rome from Las Vegas, so I won't need to get it in Montreal.  I already have my eTA for transit through Canada. Can I leave the airport for a sightseeing tour of Montreal? Will it be okay with Customs & Immigration? I'll carry just a small carry-on backpack with me.


Average Precision or FBeta & Decision Threshold Tuning for Binary Classifier

I'm working with an imbalanced binary classifier data set (3% positive) in sklearn. The cost of a false negative is extremely high so recall is much more important than precision.  To baseline my model I tuned:   Random Forest depth, minsplitsize & numberFeatures using Average Precision (Area under Precision Recall curve) 5foldCV train on 70% of data, 30% are withheld for test.   Balanced class weights are used to help with class imbalance.   On my test data I get good overall performance but too many false negatives, as a result I lowered my decision threshold until I had near 0 false negatives.  The other approach I was considering was to tune using the FBeta Statistic (Beta = 4) to favor recall over precision upfront with less adjustment to decision threshold thereafter.  1) Of the 2 approaches is one more correct for dealing with False Negatives?  2) In general is it bad to tune a binary classifier on a given metric and then move the decision threshold materially away from 0.5?


Prove $E^{\mathbb Q}[Y]=E^{\mathbb P}[XY]$ if $E^{\mathbb P}[X]=\mathbb P(X>0)=1$ and $ \mathbb Q(A)=E^{\mathbb Q}[X1_A] $

How do I prove the following? I don't know where to start.     If $X$ is a random variable with $E^{\mathbb P}[X] = \mathbb P(X>0)=1$   and $ \mathbb Q$ is the  probability measure defined by $ \mathbb Q(A)=E^{\mathbb Q}[X1_A] $ then $E^{\mathbb Q}[Y]=E^{\mathbb P}[XY]$


Where do the American and Japanese Transformers franchises meet?

The original Transformers TV series was created by the American company Hasbro, and was adapted into Japanese as well. At some point, the Japanese franchise split off into its own continuity, launching its own set of sequels and spin offs.  The questions is: What part of the American franchise is considered canon by the Japanese one? Minor details such as name changes are not to be taken into consideration.


Example of a function $f:\mathbb{R}^2\to\mathbb{R}$ not differentiable at $(0,0)$, but has a directional derivative at $(0,0)$ in all directions

Give an example of a function $f:\mathbb{R}^2\to\mathbb{R}$ such that $f'_u(0,0)$ exists in all directions $\|u\| = 1$, but $f$ is not differentiable at $(0,0)$. You have to show that your example satisfy the above requirement.


A gust of wind made me lose a couple of my hats

Till a couple of hours back I was having a collection of 20 odd colorful hats. All of a sudden now it seems a gust of wind made me lose a couple of my hats. I am aware about :  I fixed a bug in the secret definition of Vexillologist, removed the hat from all users (since a good number who earned it should not have, based on a bug in the sql) and reawarded to all users who should earn it. Anyone who is earning it now will get a new WB inbox notification. So if you are trying to figure out the hat, just look at hats awarded from [now - 5 minutes] and on.  Were there more similar incidences?  PS: I've managed to hide my Vexillologist hats within my cupboard up till now


Need help identifying the fantasy book about a portal to a fantasy land in the basement of a house

I can't remember any names of characters or locations where the story took place but I do remember the basic plot of this early 90's novel; a human man inherits his father's house. In the basement there is a doorway to a fantastic land where adventure ensues. He fights elves and wins their deadly elf swords which he buries under concrete at the end of the novel (because if you don't get rid of them they will come back and get you).  At the end of the novel he must remake the world in his own imagination, turning the tough Elf King into a cobbler and making Jesse Jackson President. I have been looking high and low and have drawn a blank.  Any help would be appreciated. Thanks!


How can a computer keep memory when it runs out of battery?

This very well might be a stupid question, but from my understanding a computer saves his memory using binary bits, so if electricity runs through the bit it is 1 and if there’s no electricity it is 0, my question is if that is how information is stored how does my computer remember things even if I would unplug him for years?


How do Xenomorphs grow up without eating anything in a spaceship?

There is nothing for Xenomorphs to eat in spaceships, but they grow up very fast after they burst out of their hosts. Don't they need any food to live?


Where i can download 32 bit Google Chrome for Ubuntu

I would like to install Chrome on Ubuntu 14.04 32bit, but it's no longer supported.


Why is median the solution to absolute difference, but mean is the solution to squared difference?

What is the value of $a$ and $b$ that minimizes the $L_1$ and $L_2$ norm, respectively? $$  \min_{a} \mathrm{E}  \left| X - a \right| $$ I was told that median is the solution. How do you solve it? Why can't it be the mean instead?  $$\mathrm{E} (X - b) ^ 2$$ I was told that mean $\mu$ is the solution to the squared error. How do you solve it?


Color code sharepoint Online calendar view

I have a custom list in which i have created a calendar view.   I want to color the calendar items based on a choice column. In SP2010, I had a JavaScript doing this but in SP Online, I am not able to achieve this.   Please note: Calendar Overlay option is not available as this is a custom list.


Increase the time to live of a cached plan

I'm looking at the Plan Cache in SQL Server. I've got a simple stored procedure:  CREATE PROC [dbo].[CountDescriptions](@Description varchar(1)) AS     SELECT ID      FROM MyTable      WHERE Description = @Description GO   If I execute it and immediately check the cache it's generally there, but it seems to expire very quickly and get removed.  This is making it a bit of a pain to play with.  Is there a way to artificially change a plan's details to stop the garbage collector (not sure if that's the right word for it) from deleting it so quickly?  Maybe increasing it's cost to compile or something?


How to compute rational or integer points on elliptic curves

This is an attempt to get someone to write a canonical answer, as discussed in this . We often have people come to us asking for solutions to a diophantine equation which, after some clever manipulation, can be turned into finding rational or integer points on an elliptic curve. See , , , , . (This list is biased towards questions I have answered because I remember them best; other people have answered such questions as well.) I would like an answer to which, after one of us has explained the cleverness, we could direct the OP.  An ideal answer would address    How to find both rational and integer solutions Good software solutions. Ideally, it would nice to have a walkthrough for doing these things with , so that people could find solutions without even installing anything. References for how to transform some standard presentations of elliptic curves into Weierstrass form, so that we don't have to write out the algebra every time. I'm thinking of  a cubic in $\mathbb{P}^2$ with a rational point that is not a flex,  $y^2 = \mbox{degree 4 polynomial}$, a $(1,1)$ curve on $\mathbb{P}^1 \times \mathbb{P}^1$, or an intersection of two quadrics in $\mathbb{P}^3$.


Normally, we say      "He was caught with his mistress."   Here, we know that the male is a married person. The meaning is clear.   If he is not married, then we can say     "He was caught with his girlfriend."   But, how to convey that a married female was caught with her lover.     a female was caught with her ____.   Saying that, she was caught with her boyfriend does not clear the air that she is married or not.   So, is there any male-gender specific word opposite of mistress and clears the air that female is cheating her husband?   I googled few words:  lover, sweetheart, loved one, love, beloved, darling, dearest, young man, man friend, man, escort, wooer, admirer etc.  And, from Wikipedia,     "Paramour" is sometimes used, but this term can apply to either partner in an illicit relationship, so it is not exclusively male.   But, none fits the requirement.


A fitting word/description for a person who seems more mature in appearance than most people his age?

I'm trying to describe a person who is young (in his youth 19-24, past teenage years) who at a first glance might look mature or wiser for his age. But if you talk to him you get to know him as a little naive though only in experience but not in wisdom.  So I have a description like "His face is calm and impassive and combined with his white hair makes him look wiser than 19"   Can I use a word or phrase that can define this kind of person without giving away details?  And is the description even correct to explain this kind of person?


What is the best response to explicit, self-admitted revenge downvotes?

I found a number of questions on Meta relating to revenge downvoting, but most of them were discussing the situation in which a user suddenly receives a deluge of malicious downvotes. My situation is different — a single, tit-for-tat downvote in direct response to me downvoting their post, which the other user explicitly admitted in a response to my comment:  me: [explains why their post didn't adequately answer the question] them: [correctly inferring that I downvoted them] "I downvoted your question too then."  I won't lose too much sleep about the -2 rep, but this is clearly not how downvotes are supposed to be used. What's the best response to this situation, or should I simply ignore it?


How can I handle collision detection between many objects efficiently?

I have made a game that runs poorly. I suspect that the way that I programmed the collision detection in the game loop could be the problem.  My game has two player-controlled tanks which fire missiles; there are also power-ups, "gifts", that tanks can collect from the field. At every iteration of my game loop, I detect collisions like this:   Loop through all the missiles on the screen, and update their location (move them). Loop through all of tank 1's missiles, and for every one check if collides with tank 2. Loop through all of tank 2's missiles, and for every one check if collide with tank 1. Loop through all the missiles on the screen, and check if collide with screen boundaries. Check if the two tanks collide with each other. Loop through all of the four "gifts" on the screen, and check if they touch a tank.   This method is presumably inefficient. How can I implement collision detection for all of these objects in a better fashion?


Does every iterative definition (or at least the one describe in the details) require the use of the Axiom of Choice?

One of my books gives the following proof that if the image of a sequence of real numbers $x_n$ has an accumulation point $x_0$, then there exists a subsequence $x_{n_k}$ convergent to $x_0$.  The sequence having finitely many values is a trivial case, so let's consider the case where there are infinitely many points in it.  We consider the intersections between the sequence and the balls of radius $\frac{1}{k}$, $k \in \mathbb{N}$, centered in $x_0:$ $$U_k =B_{\frac{1}{k}}(x_0) \ \cap \ \{x_n\}_{n \in \mathbb{N}}$$  Since $x_0$ is an accumulation point, $U_k$ contains infinitely many points of the sequence, for every $k$.  We define a subsequence as follows:   we choose any point in $U_1$ as our first point, call its index $n_1$; since there are infinitely many points in $U_2$, infinitely many of them have an index greater than $n_1$. Choose one and call its index $n_2$; ... since there are infinitely many points in $U_{k+1}$, infinitely many of them have an index greater than $n_k$. Choose one and call its index $n_{k+1}$; and so on.   The subsequence $x_{n_k}$ converges to $x_0$.  Is the Axiom of Choice needed to justify this definition procedure? I'm used to books always pointing out when they use AC, but in this case my book doesn't.  The book also doesn't mention it, but by the well-ordering of the naturals, the iterative process can be made more "canonical" and less "choosy" by always defining $n_{k+1}$ as the minimal element of the set $\{n \ | \ n>n_k \land x_n \in U_{k+1} \}$.  Would this make AC unneeded? Was it unneeded in the first place, even with the book's procedure?


"Permission denied" when download from script(ruby) file

I want to download a project's dependencies from a script file  in tutorial said: run this comment to download  ./download-dependencies core   my way was like this:  $ cd Documents/ImageProccesing/ $ ./download-dependencies core bash: ./download-dependencies: Permission denied     $   I did this too,but....  $ sudo -i     [sudo] password for amir2:      # cd /home/amir2/Documents/ImageProccesing/     # ./download-dependencies core     -bash: ./download-dependencies: Permission denied     #   in addition... first of download-dependencies file is like this:  #!/usr/bin/ruby  $modules = [:core,             :images2002,             :images2004]  def usage   puts "Usage: ./download-dependencies <#{$modules.join('|')}>" end