I have a names.txt file with with the top line of text being  51 Pipe-line\Closed3\00001011_-_Portfolio\UW\Old\NID50_Future_022814.xlsx   I would like to write new filenames replacing \ with /  I wrote a script.sh and invoked it using sh script.sh. My first attempt...    while read one two three; do    new=$(echo $two|tr '\\' '/')   echo $one   echo $two   echo $three   echo $new  done < ./names.txt     51 Pipe-lineClosed300001011_-_PortfolioUWOldNID50_Future_022814.xlsx  Pipe-lineClosed300001011_-_PortfolioUWOldNID50_Future_022814.xlsx     This ate the / char. I found out passing a -r will show the / so my next attempt was   while read -r one two three; do    new=$(echo $two|tr '\\' '/')   echo $one   echo $two   echo $three   echo $new  done < ./names.txt     51 Pipe-line\Closed3  Pipe-line/Closed3     This eats half the filename. What is happening? How do I get this to work?


Construction PRG with expansion factor from a length preserving PRF

How can I prove that $F:\{0,1\}^n\to\{0,1\}^n$  is a length-preserving pseudorandom function, then $$G:G(s)= F_s(1)\mathbin\|F_s(2)\mathbin\|\cdots\mathbin\| F_s(l)$$ is a pseudorandom generator with expansion factor $l$. I want to understand how I can solve this type of problems


Is there an option to share posts on LinkedIn and have it count for the Publicist badge?

I have a lot of technical friends from LinkedIn, so I would like to share questions or answers from , but there is no LinkedIn option when I click on the share link beneath the post.   I know I can directly go to LinkedIn and share, but why isn't LinkedIn added as a share option? If I go directly to LinkedIn and share, will it be counted towards the  Publicist gold badge?


triangle free graph $ \sum_{v \in V(G)} deg ^{2} v \leq mn $

I am studying for an exam in a graph theory class. Here is the exercise I need some help with.     Let $G$ a triangle free graph with $n$ vertices and $m$ edges.      (a) Prove that there exists vertices $x,y$ in $G$ such that $  \displaystyle{ \text{deg(x)} + \text{ deg(y)} \leq n}$.      (b) Prove that: $\displaystyle{ \sum_{v \in V(G)} \text{ deg } ^{2} v  \leq mn }$   I have done (a) but I have some trouble with (b).


Querying the database with a variable passed as an argument in SQLite android

I am creating an app Where the user can search database with inputs provided by user through edittext boxes.I am passing them to the database file as string argument to query and I am getting error.attaching the code  This is the button click listener and autoname is Autotextview   b1.setOnClickListener(new View.OnClickListener() {  @Override  public void onClick(View v) {   MyDatabase m =new MyDatabase(getActivity());  Cursor c=m.searchname(autoname.getText().toString());   simpleCursorAdapter = new SimpleCursorAdapter(getActivity(),     R.layout.custom_layout_row, c,                     new String[]{"_id", "name", "phone", "email", "subject"},                     new int[]{R.id.rownumber, R.id.rowname, R.id.rowphone, R.id.rowmail, R.id.rowsubject}, 0);             listView.setAdapter(simpleCursorAdapter);           }     });   This is the code in Mydatabase.java(Database file)      public Cursor searchname(String argument) {     Cursor cursor = null;     cursor = s.query("student", null, "name=?", new String[]{argument}, null, null, null);       return cursor;     }   I am getting error in the query string  if i run raw query   Cursor cursor = db.rawQuery("select * from student where name =?", new String[]{argument});   i got this error:     java.lang.NullPointerException: Attempt to invoke virtual method   'android.database.Cursor   android.database.sqlite.SQLiteDatabase.rawQuery(java.lang.String,   java.lang.String[])' on a null object reference at   com.techpalle.miniproject.MyDatabase.searchname(MyDatabase.java:107)   at   com.techpalle.miniproject.SearchFragment$2.onClick(SearchFragment.java:71)


Can the empty set be the image of a function on $\mathbb{N}$?

I cannot find any example of function $f:\mathbb{N}\rightarrow\mathbb{N}$ of which we can say that  $$ f(\mathbb{N})=\emptyset $$ Does there exists any?


How do I install nVidia driver? I dowloaded the nwest version from official site then I wrote sudo apt-get purge nvidia* then sudo service lightdm stop and what should I do next?


We have a few servers on Google Cloud Platform. I enabled Google stackdriver and it looks like our Solr servers are consistently at 70%+ memory utilization. We can increase the memory if it is likely to speed up queries (our Solr queries are taking a few hundred milliseconds). I tried free and ps (pagefault ) commands and here is the output.      free -h -c 5 -s2               total        used        free      shared       buff/cache   available Mem:           7.1G        4.7G        134M         37M        2.3G        2.2G Swap:            9G        2.5G        7.5G   Output from ps, only first line which is for the Solr process.      ps -eo min_flt,maj_flt,cmd | sort -nr 623846089 4526790 java -server   Will increasing memory help?


Suppose I have simple table. While I want the columns in general to be flush both right and left, there are certain cells that I want to be centered.  \documentclass[12pt,a4paper]{book}  \def\x{This is a paragraph of text that should be flush both right and left. Centering an adjacent cell should not cause this cell to be centered.} \def\y{Centered text}  \begin{document} \centering \begin{tabular}{p{2in}|p{2in}} \x & \y \\ \y & \x \\ \x & \x \end{tabular}  \end{document}   This has the output that I expected.    But what do I do when I want to center the cells that say "Centered text"? I tried to do it with the \centering command,  \def\y{\centering Centered text}   but it comes up with the following error:  ! Extra alignment tab has been changed to \cr.   How can I center individual cells?


How to set meta_query if get_post_meta returns nested array for that key?

I need to get posts with specific post meta.  If I inspect regular loop using following code:  $args = array(     'post_status' => 'published',     'posts_per_page' => 77,     'post_type' => 'post', ); $query = new WP_Query($args); while ($query->have_posts()) : $query->the_post();   $literature = get_post_meta(get_the_ID(), 'popis_literature');  var_dump($literature);  endwhile;    for some posts var_dump gives an array of data like this  array (size=1)   0 =>      array (size=2)       0 => string '32985' (length=5)       1 => string '59956' (length=5)   How can I query posts by one of those IDs? This doesn't give me anything  $args = array(     'post_status' => 'published',     'posts_per_page' => -1,     'post_type' => 'post',     'meta_query' => array(         array(             'key' => 'popis_literature',             'value'   => array('32985'),             'compare' => 'IN'         )     ), );


How to save the data when phone is locked via too many patterns attempted?

I am using Samsung S2, due to my nephew attempting too many wrong patterns in my phone now it is locked and it is displaying "Too Many Patterns Attempted sign in to your Google account".  I want to know if I unlock it by using Google account, will it wipe out my all the data that is in my phone memory? If so, how can I unlock the phone without losing any data from my phone memory?


I've seen the 'derivation' as to why momentum is an operator, but I still don't buy it. Momentum has always been just a product $m{\bf v}$. Why should it now be an operator. Why can't we just multiply the wave function by $\hbar{\bf k}$? Why should momentum be a derivative of a wave function?


What is the reason that Quantum Mechanics is random?

We know quantum mechanics gives a random result when we observe a particle that's in a superposition, but why is it random? One of the explanations I've heard is that because light comes with those discrete energy packets called photons, when a photon is passing through a polarized filter, it must either all pass through or all be blocked. You can't let a fraction of the photon pass through while others are blocked. Is it correct? It seems reasonable, but I couldn't find any proper source about this statement.


Best way to remove/delete all contacts in Marketing Cloud?

Have a large amount of junk contacts that are not part of any data extensions that need to be deleted (400k) from the marketing cloud instance. What is the easiest way to go about doing this? If there is an option to delete all contacts and start with a fresh instance this is also an option we are considering.


When we displace a body from ground to a height we do positive work against gravity and gravity too does work but negative. Do they cancel each other? Or does the external force do extra work?


What is a good mechanics book without calculus

I am very interested in physics and I want to improve my basics especially in mechanics. I have only started high school (junior) so I don't know much about calculus, which is used in most of the books. I am only looking for a conceptual books explained basic concepts nicely.


Where is the storage location of Ubuntu terminal in Windows 10?

I have installed Ubuntu terminal(Ubuntu app) in Windows 10, I have enabled the Windows Subsystem for Linux.   The problem is that I cannot find the path where the files that I am using are getting stored. How do I find them?  I want to install an application through Ubuntu terminal and find its location in my laptop.  Does the Ubuntu application create a folder for storing the files in my computer? If I create a directory where is its location set?


What are these containers called for waste?

There are so many ways to call these containers for waste. (correct me if some of them might sound weird/unnatural to use)     garbage can, trash can, rubbish can, pedal can, garbage bin, trash bin, rubbish bin, pedal bin   I'm totally confused. I know some of them might mean the same thing.   But please tell me which is which based on the following pictures by order? Please also let me know where you are from. (US, UK, Canada, Australia, etc...)  1:   2:   3:   4:   5:


Drupal is fast at develop, but the performance is so poor.  It is hard to reach 50 request per second.  And there are so many SQL queries in a simple web page.  If you test the request time of a form submit in Drupal.org it will always take seconds to finish.  How do you improve the speed of your web site?


Closed form for $1 + 3 + 5 + \cdots +(2n-1)$

What is the closed summation form for $1 + 3 + 5 + \cdots + (2n-1)$ ?  I know that the closed form for $1 + 2 + 3+\cdots  + n = n(n+1)/2$ and I tried plugging in $(2n-1)$ for $n$ in that expression, but it didn't produce a correct result:  $(2n-1)((2n-1)+1)/2$  plug in 3   $(2n-1)((2n-1)+1)/2 = 6 != 1 + 2 + 3 = 9$


If $a, b, c$ are in GP, then the equations $ax^2+2bx+c=0$ and  $dx^2+2ex+f=0$ have a common root if $\frac{d}{a}, \frac{e}{b}, \frac{f}{c}$ are in...  From the question, we know $b^2=ac \implies b=\sqrt{ac}$ $$ax^2+2\sqrt{ac}x+c= (\sqrt{a}x + \sqrt{c})^2=0$$ $$\therefore x=-\sqrt{\frac{c}{a}}$$ But from here, I do not know how to proceed. Please help.


how to hide mesh but keep hair particles

I'm using hair on my mesh but when I comb the mesh the hair goes through it. I don't want the mesh anyways so instead of figuring out how to stop the hair from going through the mesh I'm trying to figure out how make the mesh invisible but not the hair. When I use a transparency node it effects hair and mesh  I added the particle instance modifier like it says in this question  but it didn't hide the mesh.  Thanks in advance


Understanding why p value is uniformly distributed

I know that the mathematically, p values should be uniformly distributed under the null hypothesis. However, what is this null hypothesis (in this context)?   Can someone give me an example please ?


I got an A from Game Theory. But after that i forgot almost all the formulas and theorems. What should i do to prevent that? Do you forget math like i do?


How best to utilize two SSD disks on VPS webserver

I would like to ask you about your opinions how to utilize two SSD disks on webserver.. I read many articles about raid, disk mounting, lvm, disk cache, etc. but still I am not sure how to decide which solution would be best for future using & utilization.. (I don't need do custom backups because of scheduled backups on provider side) See below for a brief description of the server. Thanks in advance for tips  Are there also any other options than RAID? There are any benefits of using SSD disk as cache storage on fully SSD server?  2 threads Xeon 1.70 GHz 8GB RAM 2× 60GB SSD Automatic internal + external backups Snapshots  SW - Debian 8, Apache, MariaDB, ISPConfig  Edit: Server is VPS


Is it secure to post a Windows 7 minidump file online?

I realise it's unlikely that posting the file would cause a problem. However, since I know nothing about what a what's in a minidump file I thought I should check.


Is there any simulation program for electrostatic and magnetostatic fields?

please can any one suggest me a good program for simulating electrostatic and magnetostatic fields (forces,flux density, energy and potential) ?


@Override protected void onCreate(Bundle savedInstanceState) {     super.onCreate(savedInstanceState);     setContentView(R.layout.activity_main);      gridView = findViewById(R.id.grid_view);      MainAdapter adapter = new MainAdapter(MainActivity.this,numberWord,numberImage);     gridView.setAdapter(adapter); //Error showing to this line  //Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.GridView.setAdapter(android.widget.ListAdapter)' on a null object reference I used in build.gradle(:app) implementation 'androidx.gridlayout:gridlayout:1.0.0'  My MainAdapter.java code are as follows: public class MainAdapter extends BaseAdapter { private Context context; private LayoutInflater inflater; private String[] numberWord; private int[] numberImage;  public MainAdapter(Context c,String[] numberWord,int[] numberImage) {     context = c;     this.numberWord = numberWord;     this.numberImage = numberImage;  }  @Override public int getCount() {      return numberWord.length; }  @Override public Object getItem(int position) {      return null; }  @Override public long getItemId(int position) {      return 0; }  @Override public View getView(int position, View convertView, ViewGroup parent) {     if (inflater == null) {         inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);     }     if (convertView == null) {         convertView = inflater.inflate(R.layout.row_item,null);     }      ImageView imageView = convertView.findViewById(R.id.image_view);     TextView textView = convertView.findViewById(R.id.text_view);      imageView.setImageResource(numberImage[position]);     textView.setText(numberWord[position]);     return convertView; }  } And row_item.xml is : <?xml version="1.0" encoding="utf-8"?> <LinearLayout     xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent"     android:layout_height="wrap_content"     android:orientation="vertical"     android:padding="20dp"     android:gravity="center">          <ImageView         android:layout_width="100dp"         android:layout_height="100dp"         android:id="@+id/image_view"/>     <TextView         android:layout_width="wrap_content"         android:layout_height="wrap_content"         android:id="@+id/text_view"         android:text="Numbers"         android:textSize="25sp"         android:layout_marginTop="5dp"/> </LinearLayout>


Is there a name for the title/nickname that some members of royalty get? For example, "King Larry the Kind".


So I have a three switch box and one goes to a light/receptacle outlet on the wall.  The other two go to my ceiling fan.  When I read the wires out when they are switched off I get 0vac. When I turn on the switch circuit that I'm not reading with my meter, I get anywhere from 28-36vac, then I turn on the switch that I'm connected to with my meter I get 115vac.  Why am I getting the 28-36vac on my meter when I'm flipping the other switch on and off?  The wall receptacle does not have any effect on the voltage in the ceiling.


Geographic search with taxonomy structure

I had stored locations in wp with defined taxonomy. I would like implement a search that can take in consideration the location, eg,     search for 'car rental, Maryland'   All car rental are stored as users and every users has a location number in wp_usermeta table that map into location name. This map is done by the theme whenever a user set the field location in is account.  In my taxonomy of locations I have specified all the cities located in Maryland.  So the car rental 'XYZ' in Annapolis must result in the output of the previous search.   How can I exploit the taxonomy structure in the search?


How can I find users from a specific country?

I want to know if I can search Stack Overflow users by their country. For example, I had, like, to see all users who live in the UK.  How do I do this?


Finding homomorphisms of $S_n$ → C* and $A_n$ → C*

My idea was to use the homomorphism theorem for [$S_n$,$S_n$] as for any f:$S_n$ → C* by setting N=[$S_n$,$S_n$] we know that there is exacly one g:$S_n$/[$S_n$,$S_n$] → C*  However we know that $S_n$/[$S_n$,$S_n$]=$S_n$/$A_n$, but $S_n$/$A_n$ ≅ Z/2Z  Therefore there is exacly one g:Z/2Z → C* so all elements of a ∈ C* give us ord(a)|g[Z/2Z] so a can only be -1 or 1.   Now we know that f:$S_n$ → {-1,1}  Aaaaand I'm stuck. :/


how to install plugins to play media files of the following type: MPEG-1 Layer 3 (MP3) decoder?

Videos requires to install plugins to play media files of the following type: MPEG-1 Layer 3 (MP3) decoder


"Only after buying the cottage did we discover..." What is the function of "did" here?

In the workbook that I'm working with, there is a strange structure of sentence for me and I would like to check with you if it's not wrong or mistake such as typo. The sentence is:      Only after buying the cottage did we discover that it was infested with mice"   The location of the auxiliary verb "did" in this  is not clear to me. Normally, when it comes before the pronoun then the sentence is turned into an .   We can use also the auxiliary verb as an emphasizer but in such cases it should come after the verb (e.g. Only after buying the cottage we did discovered that it was infested with mice"). In addition, I do not understand the omission of the past form (ed) from the word "discover".


In , Witten derives the general coordinate variation of a Wilson loop, i.e., equation 3.11. My question is, how does one derive this? I only managed to obtain a similar result by doing a direct variation and integration by parts, the result I obtained had  \begin{equation} F_{IJ}=\partial_I A_J-\partial_J A_I. \end{equation} This is clearly incorrect, since he specifically says that $F=dA+A\wedge A$. I believe I am supposed to vary the path somehow, or that the path ordering somehow gives rise to the term $A\wedge A$, which is just the commutator $[A_I,A_J]$. However, I cannot see how this happens.


If USA is referred as "The USA" ,  why not "The India" ??


In modern English the seasons spring, summer, autumn and winter, don't start with capital letters. However, it hasn't always been thus.  For example,     1667   Milton Paradise Lost iii. 43   The..sight of vernal bloom, or   Summers Rose.   or      1719 D. Defoe Life Robinson Crusoe 124   The Seasons of the Year might   generally be divided, not into Summer and Winter, as in Europe; but   into the Rainy Seasons, and the Dry Seasons.   or         or        or        or     1886   Leslie's Monthly Feb. 203/1   Old Sampson don't like the Summer   gentry.   When did summer lose its capital?


We have updated jQuery to 1.12.4 - please report related bugs here

We have updated the jQuery version that Stack Overflow and Stack Exchange use from version 1.7.1 to 1.12.4 today (Tuesday, September 27, 2016). jQuery is an infrastructure library, and we've been running on an old version for a while because it worked well. However, there are a few improvements and features that made it compelling for us to upgrade, especially since some parts of the site already used a different version.  As a user of our Q&A sites, nothing should visibly change, as this is an infrastructure rather than a feature update. However, with an infrastructure update like this, there is always a chance for things to slip through the cracks.     If you encounter functionality that used to work yesterday and is broken today, please leave an answer on this thread and accept my apologies in advance.   Please be aware of our .  Do note that userscripts that rely on  (like .live() - anything in the 1.7, 1.8, 1.9 and 1.10 category, and if you can in the 3.0 as well to make a future update less likely to break your script) may need to be updated. There were no DOM or other structural changes, so selectors should still be the same.  If you're curious why we're going to jQuery 1.12.4 and not 3.1, this is a matter of incrementally upgrading and making sure things work along the way. Pretty much every 1.x version had major changes, and jQuery recommends upgrading an old 1.x version to the latest 1.12.4 and  plugin first and fix anything that is deprecated. We are in this stage now and want to make sure everything still works.


Finding out whether string can fit into rectangle on the screen

Given a string with known formatting options, and a rectangle of known dimensions in pixels (widht, height), what is the best way to determine whether the string can fit for display in the given rectangle screen size of the current screen?


(Simple) Examples on Non-Commutative Rings

Looks like it is easier to find example of commutative rings rather than non-commutative rings. Prabably the easiest examples of the former are $\mathbb{Z}$ and $\mathbb{Z}_n$. We can find elaborations on these two commutative rings in various literatures including  and . These are quite simple and easy to comprehend.  However, the examples on simple (non-commutative kind) are not that easy. One example is found  and it has been mentioned as "one of the simplest examples of a non-commutative ring". This is also on the easier side.  EDIT: The following two are also commutative rings.  Other examples are given in this . But as you can see, examples like  or  are difficult for starters to comprehend.  Do you think you can give one or two simple examples on non-commutative rings, based on every day numbers?  If it is that difficult, perhaps some insight comments why this is difficult would be welcome.


HP and Goblet of Fire: why didn't Harry use the Summoning Charm for exceptionally significant matters?

Moody was the one who gave Harry the idea of using the wand and summoning charm for the Firebolt to come right after him.  Then, Hermione and Harry tried practicing the charm as much as possible for Harry to be prepared for the first task, The Hungarian Horntail and the Golden Egg.  There was a part in the book where Harry fell onto some kind of trap, dropping the golden egg, and the marauder's map losing within his reach. Harry was already capable of performing the summoning charm, he could swish his wand and point it right on the parchment and say, 'accio' or 'accio parchment' or 'accio marauder's map'.  With that, Harry could prevent Crouch Jr. (without knowing he was using the potion) from borrowing the map and getting himself into more trouble, especially when Snape and Filch came rushing to the scene.  The same with the goblet (which is charmed to be a portkey). Harry, at the time when he wanted to win the Triwizard Tournament, should have reached the cup before Cedric does. Didn't it ever cross his mind to use the Summoning Charm so that Cedric has no chance of winning at all (removing the knowledge about the portkey)?  In a summarized clarification, the Summoning Charm would be a significant benefit for Harry, if he used it properly and for circumstances like this.  Why didn't Harry use the Summoning Charm for exceptionally significant matters?


Manga: magic user gets reincarnated as his descendant

Trying to find a name of a manga about a magic user. After taking a water magic test  he discovers he has weak magic and after a few years he dies. He gets reincarnated as his descendant living in the country with his mother, due to his father and the other women married to him disliking him for being weak, but he has a vast amount of magic making him god-like.


Smallest subring of rationals containing $ p/q$, where $ p$ and $q $ are relatively prime

I am trying to find the smallest subring of rationals containing $p/q$, where p,q are relatively prime. I am constructing the subring from $p/q $ and I think rationals of form $pZ/q^k$ where k is whole number is the answer.  Am I wrong? Is there any general solution for $p/q$?  Edit: I am looking for a general solution for any $p/q$. There is no constraint that 1 should be in the subring.


Using a .BAT file to change a USB drive-letter

Is it possible to use a .bat file to change a USB drive letter or is there a command line to change a drive-letter and place that in a .bat file? All of this is in Windows 7.


Prove that $ \frac{n(n-1)(n-k+1)}{k(k-1)\cdots1} = \frac{n!}{(n-k)!k!}$.  $= \frac{n(n-1)...(n-k+1)(n-k)!}{(n-k)!(k(k-1)...1)(3 \times 2 \times 1)}$  $= \frac{(n(n-1)(n-2)...(n-k+1)}{(k(k-1)....1)}$  $= \frac{n(n-1)..(n-k+1)}{k!}$  My question is how is it that $(n-k)!$ is able to appear in the numerator and denominator on the right side of the equation? This is not obvious to me. What is (n-k)! in expanded form?


Export raster layer in python to specific folder

I am trying to export existing raster layers as tif files. I just want to avoid saving each raster manually. this is the code I am trying to use, but it doesn't seem to work:  from PyQt4.QtCore import * from qgis.core import * from qgis.gui import * import os import sys  layers = iface.layerTreeView().selectedLayers() for layer in layers:     output='Desktop'%layer.name%'.tif'   As specified in a comment below, I modified my code to this:  from PyQt4.QtCore import * from qgis.core import * from qgis.gui import * import os import sys   layers = iface.layerTreeView().selectedLayers()  for layer in layers:      file_name = 'D:\tif' + layer.name() + '.tif'      file_writer = QgsRasterFileWriter(file_name)      pipe = QgsRasterPipe()      provider = layer.dataProvider()       if not pipe.set(provider.clone()):         print "Cannot set pipe provider"      continue       file_writer.writeRaster(         pipe,         provider.xSize(),         provider.ySize(),         provider.extent(),         provider.crs())   I can't seem to get it to work and I am not getting any error.  I already selected the layers and it still does not work.


In  we report and flag spam on the network, and it seems that some of the spam that still passes through the quality filter, has only a URL as title, nothing else. I believe posts like this can be blocked by SE's filter: I've never seen a legitimate post with only a URL in the title (and I also cannot imagine one). Titles that contain a URL can certainly be valid if they have some more title content, but not if there's only a URL. Can posts with URL-only titles please be blocked? That could reduce the amount of spam posts a bit.


How to hook a spline curve to "n" cubes using python?

How to hook a curve to "n" cubes using python, if the center of the cubes are same location with the curve points? I am able to create the curve in the center of the cubes but I can't hook the through python. With the Cube1, Cube2, Cube3 the spline curve selected and in edit mode what do I need to assign the hooks. I would like the code to be for "n" cubes. The solution has to be for "n" cubes.


I have a self made computer amd pros gforce video card 6600gt running xp  and my windows plays youtube fine but when I boot ubuntu it don't can anybody tell why


How to identify the process locking a file?

I want to know the exact process that is using the lock file. I don't want to fix it, but just to know what is my system doing. How can I find out?  For example, this message:  E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable) E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?   Again, I just want to identify the process using it, not how to fix it.


What is a word to describe a person who lies to achieve a personal goals?

I heard a news anchor use a word to describe Donald Trump as someone who lies to accomplish, achieve personal gain.


Solve the equation $\cos^n(x) - \sin^n(x)=1$

Solve the equation $\cos^n(x) - \sin^n(x)=1,n \in \mathbb{N}-\{0\}$     If $n$ is even then $\cos^n(x) = \sin^n(x)+1$ is only possible if $\sin(x)=0$ therefore the solution is $x=k\pi, k \in \mathbb{Z}$.  I'm having problems with $n$ odd case.  UPDATE  For $n=1$ we have $\cos(x) - \sin(x)=1$ and by squaring we get $sin(x)cos(x)=0$ which leads to $x=k\pi$ or $x=\pm \frac \pi 2 + k\pi$. From these solutions, only $x=2k\pi$ and $x=- \frac \pi 2 + 2k\pi$ are valid.  Also $x=2k\pi$ and $x=- \frac \pi 2 + 2k\pi$ are solutions for all odd $n$


Creating a new tag before you have enough rep

I noticed today that I can add a tag to my "favorite tag" list that does not yet exist.  I then went to ask a question using that tag and was told I do not yet have enough rep to create new tags.    So my question is this:    If someone else creates that same tag, do I get any credit for coming up with it first (as shown by the fact that I listed it in my favorite tag list), or is the fact that it appears in my favorite list, even though it doesn't yet exist, just a placeholder for when it does.


Object not appearing in Render View or final render

Thanks for reading.  I started sculpting a mesh and noticed I wasn't in Cycles. After switching, the object no longer appears in the final render or in Render View. The object shows up just fine in the other 3D view options.  Things I have checked:  - The object is selected for viewing in the Outliner.   - The shaders are linked to the Material Output and Alpha is set to 1.  - Viewed by camera in cycles is checked in the Object tab.  If anyone knows a solution to this issue or the reason behind it, the info would be greatly appreciated.  Update: Image as requested. Camera is checked and in position. Shader and Texture Nodes Connected to Object's Material Output. 3 Point lighting using soft hemi's. All objects (even lamps currently, sigh) are on same layer.


WinForms status strip label text inverted

I have a WinForms application with Status strip which shows label on the right. But, when I launch the application and click on some other window to take focus away from it before it has opened, this is what I see in status strip    instead of    I get the correct thing if I wait for the application to open up completely without it losing focus.  Has anybody seen something like this before? Please feel free to ask for any additional information for properties set for form and status strip.  Thanks in advance!


Can't start Blood on Ice. Cant buy Hjerim

It appears I have missed the  for the quest and nothing I do will trigger it.  's door requires a key and talking to the guards and people do nothing.  Talking to  about buying the house only makes him say that there's a mess.  creating new question as    are similar, but don't share my exact symptoms. Also, it looks like some of them have started them and broken them ()


I'm remembering that in my childhood, my brother and I were certain that you had different attributes depending on the driver you chose.  For instance, Toad and Yoshi were a tiny bit faster than the others.  Is this true, or were my brother and I just having illusions about differences between the drivers?


Python - Why does list(set(my_list)) destroy the original order of the data?


Updating Pages after migration of website

My web site was coded in Coldfusion and over the years has obtained a good ranking.  I recently migrated the front-end to a Wordpress site and wanted to know what is ideal way of updating Google and the various search engines of of the updates.   For example, the home page of index.cfm is no longer valid since it's index.php. I've submitted an updated sitemap.xml file to Google. I'm sure my site will slip some while the search engines re-index my site but I'd like to try and minimize this as much as possible with the holidays coming up (my site is a service oriented site that caters to people who travel during the holidays).   Right now, the old .cfm pages are still online but are re-routed to the appropriate Wordpress page (for example, about.cfm is now routed to /about/ using a cflocation tag.).  Not sure if I should pull down the .cfm pages all together or leave them in place until the new pages are picked up by the search engines.  Any advice would be helpful.


Mean value theorem sum of $\frac{1}{f ' (x _k)}$

Let $f$ be a function which is derivable in $[0,1]$ with $f(0)=0$ and $f(1)=1$.  Show that for every $n$ in $\mathbb{N}$, there exists numbers $x_1,x_2,.....,x_n$ all in $[0,1]$ such as \begin{equation} \sum_{k=1}^n \frac{1}{f'(x_k)}=n \end{equation}  I think the mean value theorem should be applied: \begin{equation} \exists\; x_1 \in (0,1): f'(x_1)=\frac{f(1)-f(0)}{1-0}=1 \end{equation} \begin{equation} \exists\; x_2 \in (0,x_1): f'(x_2)=\frac{f(x_1)-f(0)}{x_1-0}=\frac{f(x_1)}{x_1} \end{equation} etc.  We have the sum  \begin{equation} 1+ \frac{x_1}{f(x_1)} + \frac{x_2}{f(x_2)} +....+\frac{x_{n-1}}{f'(x_{n-1})} \end{equation} But than I get stuck. I was wondering if anyone could be so kind to help  Thanks in advance for your time and assistence


Find all the maximal ideals in the ring $\mathbb{R}[x]$.   My work:  If $M$ is maximal, then $\mathbb{R}[x]/M$ is a field. Then if $M$ is of the form $(p(x))$ then $p(x)$ must be irreducible. So the principal ideals generated by irreducible polynomials in $\mathbb{R}[x]$ are maximal in $\mathbb{R}[x]$.  But $\mathbb{R}[x]$ is not a PID. Hence, there are ideals which are not principal. So how can I find all maximal ideals? Can anyone please help me to find it?


How to set flex column child to go full available height?

Consider the following code:    .container {   display: flex;   flex-direction: column; }  .header {   flex: 1;   background-color: red; }  .content {   flex: 1;   background-color: blue;   height: 100%; }

HEADER

CONTENT

     Why is my CONTENT not getting full available height (from HEADER bottom to the bottom of page) ? How to solve it ?


I've come across a number of  on the interwebs showing that if you want to negate an entire regex pattern you can just embed it inside: (?! pattern here )  But instead it catches on nothing for me. I've tried it on a number of  and apps that use regex, but no dice. Here's an example.  Suppose I have these strings:     strangecowfeet       mycow       yourcow       hiddendonkey       cowfishyummy   This pattern matches all except hiddendonkey:  cow   But then If I do:  (?!cow)   It doesn't match on anything. I've tried a bunch of variants I've seen around (trailing .* and .+ and spaces and anchors, etc), but to no avail.  Looks like I've overlooking a very basic flaw.


Prove: $\displaystyle\sum_{k=1}^n k k!=(n+1)!-1$ (preferably combinatorially)   It's pretty easy to think of a story for the RHS: arrange $n+1$ people in a row and remove the the option of everyone arranged to height from shortest to highest, but it doesn't hold up for the LHS.   Alternatively, trying to visualize the LHS, I noticed that it's like a right angle tetrahedra:  1  2!+2!  3!+3!+3!  ...  But it doesn't help to see a connection to the RHS.  Note: no integrals or gamma function nor use of other identities without proving them nor generating functions.


What does "otherwise than" mean in this sentence?     [...]a very extensive territory cannot be governed on the principles of freedom, otherwise than by a confederacy of republics[...]   Is is saying that an extensive territory can be governed on principles of freedom by a confederacy of republics? Or is it saying that an extensive territory cannot be governed on principles of freedom by a confederacy of republics?   If it helps here is a snapshot of the document:


Where do periods go when a statement in parenthesis ends in an abbreviation

I know that the standard use is that an abbreviation at the end of a sentence that would normally end with a period has just a single period.  I also know that a sentence that ends with a statement in parenthesis has a period on the outside of the parenthesis.  However, what happens if I have both?  Do I put one period inside the parenthesis and one outside, just one period outside, or just one inside?  For instance:  I need to go to the grocery store and pick up ingredients (flour, sugar, milk, etc.).  I need to go to the grocery store and pick up ingredients (flour, sugar, milk, etc).  I need to go to the grocery store and pick up ingredients (flour, sugar, milk, etc.)


today I installed Ubuntu 18.04 on my laptop, I installed it from liveUSB and it is dual booted along with Win 10. When I restart my computer and grub shows up, there is no Win 10 option. I tried many things online, boot repair, i tried   sudo update-grub   and   sudo os-prober   , but it doesn't show anything at all. I will provide further details when you ak about them, but please keep in mind I'm a beginner when it comes to Ubuntu. Thank you.  Edit: SecureBoot is disabled (which is the output of the command mokutil --sb-state), when I type   ls /sys/firmware/efi/   it shows  config_table  efivars  esrt  fw_platform_size  fw_vendor  runtime  runtime-map  systab  vars   I don't think I installed Ubuntu in legacy mode, I checked it before but I'm not sure how to check it once again, to be sure.  Edit 2: The result of a command cat /etc/default/grub is  # If you change this file, run 'update-grub' afterwards to update # /boot/grub/grub.cfg. # For full documentation of the options in this file, see: #   info -f grub -n 'Simple configuration'  GRUB_DEFAULT=0 GRUB_TIMEOUT_STYLE= GRUB_TIMEOUT=10 GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian` GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" GRUB_CMDLINE_LINUX=""  # Uncomment to enable BadRAM filtering, modify to suit your needs # This works with Linux (no patch required) and with any kernel that obtains # the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...) #GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"  # Uncomment to disable graphical terminal (grub-pc only) #GRUB_TERMINAL=console  # The resolution used on graphical terminal # note that you can use only modes which your graphic card supports via VBE # you can see them in real GRUB with the command `vbeinfo' #GRUB_GFXMODE=640x480  # Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux #GRUB_DISABLE_LINUX_UUID=true  # Uncomment to disable generation of recovery mode menu entries #GRUB_DISABLE_RECOVERY="true"  # Uncomment to get a beep at grub start #GRUB_INIT_TUNE="480 440 1"   the GRUB_TIMEOUT_STYLE= line was changed by me, original value is hidden, I changet so the GRUB would always appeared on restart, before that it didn't even show up.


Number of votes on duplicate suggestions while asking a question are placed wrongly

While asking a question we get some suggestions for duplicates with the number of votes. But it is not place correctly. Have a look at this:        Those questions are listed as follow:          OS: Windows XP, Chrome 28.0.1500.95 m, Firefox 22.0


How to Set a Short User Password in macOS Mojave and Later (10.14+)

I just installed macOS Mojave and put in my usual short desktop-only password I've been using for years (yes, you read that right). Now though, the operating system rejects setting a password less than 4 characters. It also does not allow having no password at all.  I am completely comfortable using the shell if need be.  How can I change the password policy to allow quite short passwords?


problem installing texlive 2014 on ubuntu

I have tried to remove and install texlive on my PC with Ubuntu 14 (64 bit). But the version that is installed is 2013. Can anybody tell me why?


Where can I ask a question about finding general software that meets certain requirements?

I have a list of requirements for a program, but I don't know what program meets these criteria. That's about general-purpose software, for example, not a programming IDE or statistical workbench, questions about which would certainly go to respective sites.  Is this question appropriate on Stack Overflow? Where should I ask about it? On Super User or elsewhere?


How do you determine if a number is a even Fibonacci number or not?

Rather than computing out the whole Fibonacci sequence and check if $n$ is even and in there, is there a more straightforward way to compute if $n$ is a even Fibonacci number?


Including other people's comments in your answers

Related to   I'm wondering if it's okay to include another person's comments in your answer. See this:     If the person answering the question were to get their answer accepted because of copying another person's comment into their answer, it seems like that might be "rude" (or some such related adjective) to the commenter. Is this a permissible practice?


Why is Grub menu not shown when starting my computer?

I am a new user of Ubuntu 12.04.   I installed Ubuntu and Windows XP, and I want to use both operating systems. When I restart or boot my PC the GRUB menu does not appear.  How can I solve this problem?


What happened to the Hobbits and the Dwarves after the Elves left?

From what I understand, The Lord of the Rings is written as the mythic past of our own world. We are constantly reminded that the race of man is becoming more and more prominent. At the end of The Return of the King the Elves leave Middle-earth to the humans. But what about the other mythical races, primarily the Hobbits and the Dwarves? Did they die out?


Why didn't Lily's blood in Voldemort save him from dying?

In Harry Potter 4 Voldemort takes Harry's blood in order to have the same blood protection Harry has:  "He said my blood would make him stronger than if he'd used someone else's," Harry told Dumbledore. "He said the protection my - my mother left in me - he'd have it too. And he was right - he could touch me without hurting himself, he touched my face." ....... "Very well," he said, sitting down again. "Voldemort has overcome that particular barrier. Harry, continue, please."  Harry and Voldemort should be equally protected now. However, Voldemort still dies. And Harry doesn't. How and why?


TexShop opens pdf file but not the .tex file

I already changed TeXShop as the default TeX application instead of TeXworks, but I see no way of editing my .tex file using TeXShop. Whenever I double-click a .tex file, it will automatically typeset the .pdf and I'm not able to see the code anymore. Any ideas?  Note: I am a total newbie to MacTeX.


C on CodeBlocks: how can I send user input without pressing "enter"?

I'm trying an example from "The C programming language" on Windows with CodeBlock and I don't know how I can get user input without having to press enter. This program counts the number of lines in the input using getchar() and so when I run it "enter" only works as a \n and doesn't allow me to send my input. Is there an alternative way to do it?  EDIT  the problem was with the compiler. Figured it out after looking into it for some time


A word to describe the point of land at the confluence of two rivers?

I'm seeking a word that best describes the point of land created by the confluence of two rivers. The parcel of land in question would be situated in between the two rivers as their flow combined to form one river. Is there such a name?  This is not a duplicate of the question asking about the word confluence. This question refers to the point of land created by the confluence.


An example of discontinuous function on $\mathbb{R}$

Is there any example of a function which is discontinuous on $\mathbb{R}$


How do rocket engines work in EMPTY space?

So I just read this and it didn't make any sense     It is not necessary for the rocket exhaust to push against anything   EXCEPT THE SHIP ITSELF. You see, when the combustion of fuel takes   place inside the rocket (think of a long vertical cylinder with the   'bottom' open) the exhaust gasses produced expand quickly in all   directions. The molecules slam into anything in their path exerting a   small force each. Thus some molecules push against the 'right' side   and some push against the 'left' side, and all these sideways forces   cancel each other out. Some molecules slam against the 'top' of the   cylinder, but since there is no bottom of the cylinder, there is no   force to cancel this out! Therefore the net force will be in the 'up'   direction.   By the very definition; there would be no movement still. Also engines require oxygen to burn which doesn't exist in a non existent environment. up, left, right, are not directions.


Ubuntu installed, but GRUB not showing up

I have installed Ubuntu 16.04 in my Lenovo Thinkpad laptop. I was trying to have dual boot by installing Windows 10 along with the existing Ubuntu. Since I had to reinstall GRUB2, I downloaded boot-repair which finished the reinstallation with an error.     Now system is not booting at all. It is getting stuck at boot menu. GRUB is not showing up.  I tried reinstalling Ubuntu and Windows. Now there is only Ubuntu in the system. Same issue. The system is not booting to Ubuntu.


How to I convert a sqlite command to a python-sqlite command

How would I implement the following command in python:  ALTER TABLE {tableName} ADD COLUMN COLNew {type};     I assume it would look something like the following:  cursor.execute('ALTER TABLE my_table ADD COLUMN COLNEW ... ???   The problem is there are lots of sqlite tutorials for python and lots of sqlite examples. How does one convert a sqlite command to python?


How to test the speed of my server inet connection?

The connection speed our webapp is showing (from my office) is much slower than my connection speed to a SpeedTest.net site in the same city.  I can test my internet using SpeedTest.net to Houston (where our server is): 37 Mb/s And we have a built in test in our app which shows 3.5 Mb/s  I'd like to test both "houston" and $ourDomain with the SAME service. But all I can find are sites that test the actual page, which I assume introduces a lot of extra variables.


Where to find list of census performed in Italy?

I need to know if I can find, online of offline, information about the years that census were performed in Italy.  According to the thread  from the forum at the website  it seems that Ancestry.com could have that information, but I don't have those premier plans.


Probability of having an even number of a specific face value of a die

Here is the question: Given a fair die rolled $n$ times, what is the probability of having an even number of $6$s?  My approach:  $$\Omega = \{(x_{1}, x_{2}, ..., x_{n}) :1 \le  x_{i} \le 6\}$$ So $$|\Omega| = 6^{n}$$ Since the probability is space is a finite uniform one, $$P(A) = \frac{|A|}{|\Omega|}$$ Let $A_{i}$ be the event that there are exactly $i$ sixes in the $n$-tuple. Then, $$A = \bigcup\limits_{i=0}^{\lceil{(n-1)/2}\rceil} A_{2*i}$$ Since these events are disjoint, $$P(A) = P(\bigcup\limits_{i=0}^{\lceil{(n-1)/2}\rceil} A_{2*i}) = \sum\limits_{i=0}^{\lceil{(n-1)/2}\rceil} P(A_{2*i})$$ Now, $|A_{i}| = \binom{n}{i} * 5^{n-i}$. Hence, $$P(A) = \frac{1}{6^n} \sum\limits_{i=0}^{\lceil{(n-1)/2}\rceil} \binom{n}{2i} * 5^{n-2i}$$ As a side note, when I fed this sum into wolfram alpha engine, it couldn't compute it.  The book however says the anwer is $$\frac{1}{2}(1 + (\frac{2}{3})^{n})$$ Any suggestions?


A woman's butt was allegedly touched by a man several times during a commute on the MRT.   How to use butt, bottom, buttock and ass? I am confusing with these words.


Agregate data from multiple rows in one row

I have a SQL server DB for credit card processing system with 5 Tables  MerchantContract  PaymentKey   NVARCHAR(50) ProcessingID INT   DealTrace  Status       NVARCHAR(250) Tag          NVARCHAR(MAX)   DealSummmary  RefNumber    NVARCHAR(100) DealAuthCode NVARCHAR(100)   Processing  Name         NVARCHAR(50)   And Deal with whole bunch of fields of which the most important one are   OriginalOrderId  NVARCHAR(50) MerchantContract INT Amount           INT   Currently I'm querying these tables with such query:  SELECT  d.id,          d.date,          d.ip,          d.panmask,          d.merchantorderid,          d.amount,          d.cardholder,          d.bankhumanname,          d.cardtypeid,          d.bankcountrycode,          d.usercountrycode,          mc.paymentkey as merchantname,          dt.status,          d.merchantcontract,          dt.tag,          d.originalorderid,          ds.refnumber,          ds.dealauthcode,          mc.processingid,          pc.Name as processing,          d.customparams  FROM Deal as d  LEFT JOIN MerchantContract as mc ON mc.Id = d.MerchantContract  LEFT JOIN DealTrace as dt ON d.Id = dt.DealId  AND dt.id = (SELECT MAX(id) FROM DealTrace WITH (nolock) WHERE DealId = d.id)  LEFT JOIN DealSummary ds ON d.Id = ds.DealId  AND ds.id = (SELECT MAX(id) FROM DealSummary WITH (nolock) WHERE DealId = d.id)  LEFT JOIN Processing pc on mc.ProcessingId = pc.id WHERE (d.MerchantContract IN ('13'))  ORDER BY ID desc OFFSET 0 ROWS FETCH NEXT 1000 ROWS ONLY   However for each MerchantContract there might be several rows with OriginalOrderId but different values in other columns. For example  MerchantContract|OriginalOrderID|Status|Amount|... 3|13_Qrta|charge|101|... 3|13_Qrta|refund|94|... 4|15_Utq1|charge|56|...   I would like for each unique pair of MercahntContract OriginalOrderId aggregate data in one row, so above resuklt would look like  MerchantContract|OriginalOrderID|Status|Amount|... 3|13_Qrta|charge,refund|101,94|... 4|15_Utq1|charge|56|...   I was looking around but unfortunately couldn't find solution. I was trying to modify first FROM to   SELECT ... (SELECT * FROM Deal d1 WHERE d1.Id=(SELECT MAX(Id) FROM Deal d2 "+     "WHERE d2.OriginalOrderId=d1.OriginalOrderId)) d  LEFT JOIN ...   But it didn't give the required result. Would really appreciate if anybody could give any hints as to how go about my problem.


Notation on four-vectors using imaginary spacelike components

Can one just change the notation of four vectors so as instead of having $$ X^{\mu} =(X^0, \vec{X})$$we define $$ X^{\mu}=(X^0,i\vec{X})?$$ This way we could use the Euclidean metric instead of $$g^{\mu\nu}=\text{diag}(1,-1,-1,-1).$$


I have JQuery included and all my other click functions work. I have tried to debug and change it from class to ID and both the class and ID name is unique (no other element uses the class or ID).  <button type="button" style="margin-left: 5px; padding: 7px;" class="btn query-btn"> Search Transactions </button>   Here is my code for the HTML and my JQuery is:   $(".query-btn").click(function () {             alert("gets here");  });   I literally have no idea why this isn't working because it works on everything else. Could anyone possibly point me the right direction? I have tried giving it an ID (unique) and changing the . to a # and that does not work either and yes it is wrapped in a:  $(document).ready(function () {  I receive no errors which is what is sort of confusing me. Anything would be appreciated!  Note: The HTML button is actually added by AJAX (A button is pressed and the response is directly inserted using the innerHTML), not default page load. I'm not sure if this would effect it but just a note incase it does.


The standard titlepage is quite simple. I am looking for a very  and need help customizing my title page.  It should match the  classicthesis doctoral thesis template  Below a minimal working example:   \documentclass[12pt,a4paper,footinclude=true,twoside,headinclude=true]{scrbook} \XeTeXinputencoding iso-8859-1 \usepackage[marginparsep=8pt,left=3.5cm,right=3.5cm,top=3cm,bottom=3cm]{geometry}  \usepackage[parts,pdfspacing,dottedtoc]{classicthesis}    \frontmatter  \begin{document}     \pagestyle{scrheadings}        %this is the place to set up my cover sheet.       %*******************************************************      % Abstract     %*******************************************************    %\renewcommand{\abstractname}{Abstract}    \pdfbookmark[1]{Résumé}{Résumé}   \begingroup    \let\clearpage\relax    \let\cleardoublepage\relax    \let\cleardoublepage\relax       \chapter{Résumé}     Résumé de la thèse en français\dots      \vfill      \chapter*{Summary}   Résumé de la thèse en anglais\dots    \endgroup             \vfill     \end{document}


How to solve this limit: $\lim_{n \to \infty} \frac{(2n+2) (2n+1) }{ (n+1)^2}$

$$ \lim_{n\to\infty}\frac{(2n+2)(2n+1)}{(n+1)^{2}} $$   When I expand it gives: $$ \lim_{n\to\infty} \dfrac{4n^{2} + 6n + 2}{n^{2} + 2n + 1} $$ How can this equal $4$? Because if I replace $n$ with infinity it goes $\dfrac{\infty}{\infty}$ only.


Installing (creating?) driver for Wireless adapter

I'm very much a rookie with Linux and recently installed Ubuntu 12.04.  Now I'm trying to stall a wireless adapter, RT5370, but the instructions are completely over my head (plus certain steps like copying a file to etc/Wireless aren't working because I get a permission denied error).  Is there a simple step-by-step guide on how to install a wireless adapter???


Word for a person who starts a project, then starts another one?

What do you call a person who starts projects, doesn't ever finish, then starts another project?


What if a person is put between two identical dense spherical bodies (well, not as dense as black holes, but definitely 100 times more than earth) with mass $M_1=M_2=10^{30}kg$, exactly in the middle between them ( vertical axis parallel with "human height vector" and the line connecting two spheres' centres passes exactly trough person's  centre of mass). Let's say $M_1$ and $M_2$ are mounted onto some very strong poles and they are not approaching each other, but are stationary at $1$ meter.   I am aware that the forces would cancel out at exactly the middle, but human body is not symmetrical and it's mass is not equally distributed across it's volume. Would the human in question be torn apart or would it just deform? What would happen if the human body was completely symmetrical and with equal mass distribution, and could withstand such forces without being deformed? Would the person maybe spin?  I am not sure if this will affect the overall outcome, but let's  say the mass of the person in question is $m=80~kg$.


Says wrong username/or passord when trying to login to Minecraft

I just tried logging in with my usual email and password as I always do. Now all of the sudden it doesn't work. Says Wrong username/or password. What now? anyone else with this issue???? Help


Is there a SATA cable which can connect to multiple disks?

I have a motherboard with just few SATA slots but have to put quite few hard disks in the box, so naturally I easily ran out of free slots.  I wonder if there are forked cables (I have no idea what would be the name for these cables) so I can connect multiple hard disks to a single SATA slot on the motherboard?  PS. Speed is not essential here as all disks contain archived data.


Where are the logs from underneath the splashscreen?

Is there a logfile of the messages that are printed onscreen underneath the splash screen in 16.04?  If so, where are they, or what is the name of the file?


I installed ubuntu with windows, and windows don't load

grub shows that there is Windows, but when I click on it, it showing me a black screen with a dash at top-left; and then sending me back to grub what can I do? please help !!!


I'm using latexian to write my latex file. I need to insert a figure in it. I created a "plots" folder in my Latex folder and my code is as follow:  \begin{figure}[h] \includegraphics{plots/fig1.eps}  \caption{\label{fig1} Reaction/Diffusion process of Ca$^{2+}$ and IP$_{3}$ metabolism included in the model.}  \end{figure}   A file named fig1-eps-converted-to.pdf is created in the "plot" folder automatically. However, the previewed .pdf can not show the real figure.  What should I do to show the real figure in my paper?   This is the figure shown in my previed .pdf. It's not supposed to be like this:    My real figure should be like this.


Interpreting results output from Firth logistic regression in R


Travelling as an unmarried Western couple in Indonesia

Basically  but then for Indonesia.  In the coming year I (male) plan to travel through Indonesia (Java and Sumatra) with my girlfriend. We will probably travel several weeks, aim to stay in the larger cities, but also plan on several multi-day hikes in the nature where we would camp or sleep in smaller villages.  Indonesia is mostly an Islamic country and , meaning that at least there one should adjust their behaviour (compared to how couples behave in Western Europe).  How about the other provinces of Java and Sumatra?  To make this question not too specific I am omitting any possible cities we might visit (itinerary is far from set), in the hope that an extended and broad answer is given that is also useful to others visiting these islands.


Limit of $\left[\frac{a_1^x+a_2^x+\cdots+a_n^x}{n}\right]^{1/x}$ when $x\to0$

I have to calculate the following limit: $$\lim_{x \to 0} \left[\frac{a_1^x+a_2^x+\cdots+a_n^x}{n}\right]^{\frac{1}{x}}$$ I said that as $x→0$ the $a_1^x+a_2^x+\cdots+a_n^x$ are approaching $n$ since we have $n$ terms, so we will get:  $$\lim_{x \to 0} \left[\frac{n}{n}\right]^{\frac{1}{x}}$$ $$\therefore \lim_{x \to 0} \left(1\right)^{\frac{1}{x}}$$ as $x→0$, $1/x→\infty$ $$\therefore \left(1\right)^{\infty}=1$$ But one friend said that it was a false way to calculate that limit, where is my error and what is it's solution?  (where $a_i$ are positive real numbers)


Will a Dell Inspiron 1545 model be able to run Ubuntu 20.04 successfully purely for self hosted cloud storage?

Ive installed Ubuntu 20.04 on my Dell inspiron 1545 model (2010), purely for use as self hosted cloud storage server, but Ive been struggling to get the wifi to work ( I also tried installing virtualbox on it, but because my chip does not support virtualization i cannot use ubuntu on virtual box). I just want to know if ubuntu 20.04 will be able to run successfully on my older dell computer or am I wasting my time trying to set it up ? So far I cannot even pick up the wifi signal with the wifi router a meter away (but it does pick up my neighbor’s wifi for some reason). Im very new to ubuntu and would really appreciate some help.


What is the best word for possessive determiner his/her

Is there any word or any rule that we can use instead of writing his/her all the time for possessive determiners  E.g: Student can come with his/her bag. - Student can come with their bag.   Is it grammatically correct if I can write their instead of his/her?


Consider the equation: $ c_0 + c_1x  + \cdots + c_{n-1} + c_{n} = 0$ where each $c_i \in R$  Given that: $ c_0 + \frac{c_1}{2} + \frac{c_3}{3} + \cdots + \frac{c_{n-1}}{n} + \frac{c_{n}}{n+1} = 0$  Prove that the equation has a root in the interval (0,1).  Hint: Use Rolle's theorem.  I'm stuck with this problem. I would usually attack this kind of problem's using Bolzano, but I don't know how to relate the derivative (as stated in Rolle's theorem) with the roots of the original equation.  Thanks in advance.


Icons for privilege not visible on mobile site/app

Icons for privilege are not visible on mobile site as well as mobile app  (on Android). Android app    Mobile website


How to change visudo editor from nano to vim?

When I use visudo, it always opens it with nano editor. How to change the editor to vim?


How did the T-Rex kill everyone on the boat?

In Jurassic Park: The Lost World, a T-Rex is captured from the island, sedated, and put on a boat for the mainland.  During the trip to the mainland, the T-Rex got free and killed everyone.  When the boat arrives, our intrepid heroes find that in the ship's control room, there are body parts.  How did the T-Rex manage to kill people in that room?  All of the doors look smaller than the T-Rex's head, so how did she eat them?


Using Macro Defined Lists in TikZ/PGFplots

I want to be able to use a macro to specify a list (it is a constant list, i.e. will not change throughout the document) and use this macro rather than hard code the list contents in the TikZ/PGFplots for readability. This problem was mentioned in , but was not the main thrust of that question.   Here is a related question on , and its continuation on the , but these related to specifying coordinates, and not lists.  In the MWE below, Example 1's solution is based on  which suggested to not enclose the macro defined list in a curly brace. This works fine for TikZ, so no problem yet.  However, in PGFplots things are different. The solution in Example 2 to using a foreach is from , and works great as long as I do not use a macro for the list, but I would prefer to use a macro here.  In Example 3, I can easily use a macro defined list for the xtick, but am not able use it for xticklabels.  So, is there a consistent way that I can always define a macro for a list and then use it without having to worry about the context of its use? If not, is there a way to change the definition of the list and/or its use for Examples 2 and 3 that work in those situations.  \documentclass{article} \usepackage{pgfplots}  \newcommand*{\XTickLocationList}{-2, -1, 1, 2} \newcommand*{\XTickLabelsList}{a, b, c, d} \newcommand*{\XTickLocationsAndLabels}{-2/a, -1/b, 1/c, 2/d}  \begin{document} \begin{tikzpicture}   % Example 1 \draw [->][gray, thin](-3,0) -- (3,0) node[blue, right] {$x$};  \draw [->][gray, thin](0,-3) -- (0,3) node[blue, above] {$y$};  %\foreach \x/\l in {-2/a, -1/b, 1/c, 2/d} { % Works %\foreach \x/\l in {\XTickLocationsAndLabels} {  % Does not compile \foreach \x/\l in \XTickLocationsAndLabels {  % Works     \draw [thick, red]         (\x,-2pt) -- (\x,2pt)         node [red, above] {\l}; } \end{tikzpicture}  \begin{tikzpicture}   % Example 2 \begin{axis}[     minor tick num=0,      axis y line=center,      axis x line=middle,      xmin=-3, xmax=3,      ymin=-3, ymax=3,     xlabel=$x$, ylabel=$y$,     xtick={0},  xticklabels={}     ]  \foreach \x/\l in {-2/a, -1/b, 1/c, 2/d}{ % Works %\foreach \x/\l {\XTickLocationsAndLabels}  % Does not compile %\foreach \x/\l \XTickLocationsAndLabels  % Does not compile     \edef\temp{\noexpand\addplot         [mark=none,color=red, thin, samples=2]%         coordinates{ (\x,-0.05) (\x,0.05) }             node [red, below] {\l};     }     \temp }   \end{axis} \end{tikzpicture}  \begin{tikzpicture}    % Example 3 \begin{axis}[     minor tick num=0,      axis y line=center,      axis x line=middle,      xmin=-3, xmax=3,      ymin=-3, ymax=3,     xlabel=$x$, ylabel=$y$,     %xtick={-2, -1, 1, 2}, % Works     %xtick=\XTickLocationList, % Works     xtick={\XTickLocationList}, % Works     xticklabels={a, b, c, d}  % Works     %xticklabels={\XTickLabelsList}  % Compiles, but wrong results     %xticklabels=\XTickLabelsList  % Compiles, but wrong results     ]  \end{axis} \end{tikzpicture} \end{document}


People have been suggesting to use Int32.TryParse but I found out that in case of any string such as "4e",it would give me output 0(i would directly print my input),whereas Int32.Parse would give an Exception. Is  there a  side to using TryParse which I am not able to see? Any help would be much appreciated


Why was Bellatrix unaffected by Harry's Cruciatus curse

In the Harry Potter and The Order of the Phoenix, when Harry used the Cruciatus curse on Bellatrix after she killed Sirius Black, is there any specific reason why she remained almost completely unaffected by it?


I have a laptop with preinstalled Ubuntu. But I want to remove the Ubuntu and install a server in my laptop. Someone says the steps to format and install the windows server or XP.


Any positive integer greater than $11$ is a nonnegative linear combination of $5$ and $4$. New Solution

Let $n\in\mathbb{Z}^{+}$, then there exists $k\in\mathbb{Z}_0^+$, such that $n=5k + i, i\in\{0,1,2,3,4\}$. Now analyzing by cases we have:  If $i=0$, then \begin{align*}         n = 5k \Rightarrow n = 5k + 4(0). \end{align*} If $ i = 1 $, then \begin{align*}        n & = 5k + 1 \\          & = 5k-5(3) +5(3) +1 \\          & = 5(k-3) + 15 + 1 \\          & = 5(k-3) +16 \Rightarrow n = 5(k-3) +4(4). \end{align*} If $ i = 2 $, then \begin{align*}    n & = 5k + 2 \\      & = 5k-5(2) +5(2) +2 \\      & = 5(k-2) + 10 + 2 \\      & = 5(k-2) +12 \Rightarrow n = 5(k-2) +4(3). \end{align*} If $i=3$, then \begin{align*}    n & = 5k + 3 \\      & = 5k-5 + 5 + 3 \\      & = 5(k-1) +8 \Rightarrow n = 5(k-1) +4(2). \end{align*} If $i=4$, then \begin{align*}     n = 5k + 4 \Rightarrow n = 5k + 4(1). \end{align*}  Thus, every positive number can be expressed as a linear combination of $5$ and $4$. Now using that $n>11$, so we have: \begin{align*} n       &> 11 \\ 5k + i  &> 5(2) +1 \\ 5k-5(2) &> 1-i \\ 5 (k-2) &> 1-i \\ k-2     &> \frac{1-i}{5} \\ k       &> 2+\frac{1-i}{5}. \end{align*} So by increasing over the values that $ i $ takes, we have: \begin{align*} k &> 2+ \frac{1-i}{5} \geq 2+ \frac{1-0}{5}\\ k &> 2 + 0.2 = 2.2 \end{align*} But $k\in\mathbb{Z}_0^+ \Rightarrow k \geq 3 \Rightarrow n \geq 15 $. Thus we have that every positive integer greater than or equal to $15$ is a non-negative linear combination of $5$ and $4$. Finally, let's look at the cases that are still unverified, which are $12$, $13$ and $14$. \begin{align*} 12 &= 5(0) +4(3) \\ 13 &= 5(1) +4(2) \\ 14 &= 5(2) +4(1). \end{align*} Therefore, any positive integer greater than $11$ is a nonnegative linear combination of $5$ and $4$. I think this is the correct solution, I await your comments. If anyone has a different solution or correction of my work I will be grateful.


Is It Possible To Move The Earth In A Direction?

According to Newton's 3rd law, when an object moves upward, the Earth moves by a very tiny factor in the opposite of the direction of the object. And when the object falls back, the earth moves back to its original position.  This lead me to think about rockets. When they leave the Earth, many of them don't come back. So, if we were to launch too many rockets with 1000x more speed from the position from which the earth would move towards the Sun (just an arbitrary direction); will it then be possible to move the Earth into the sun considering that none of the rockets which were launched came back?


Everyday vs every day. Do I read stackexchange every day?

I think we commonly use these words every day but we are not clear which word is correct.


Is the past tense correct in "Did you know Fred was a doctor?"

Possible Duplicates:             My wife and I were disagreeing about this today:        Did you know Fred was a doctor?   Did you know Fred is a doctor?      I was arguing for (1) based on what seemed to "sound right."  My wife claimed that, since Fred is currently alive and still practicing medicine, present tense should be used.  However, we agreed that the negation of these sentences uses was:     I didn't know Fred was a doctor.   Here I think everyone would agree that is would sound wrong!  So which is correct between (1) and (2)? And why? Is this some kind of subjunctive?


Can anyone advise of a way to set a universal quit-application shortcut?

I'm moving across from Mac OSX and am quite used to using the Cmd-Q shortcut to quit apps. I appreciate that Linux is set up differently and that different apps have different shortcuts for quitting (e.g. some use Ctrl-Q while others might be Alt-Q, etc.). I'm currently using Ubuntu GNOME.  Would it be possible to create a standard keyboard shortcut for quitting all apps easily and safely in Ubuntu? I'm happy to use a third-party tool or do a bit of further digging.  M


How can one obtain an adamantine weapon?

In the Monster Manual, gargoyles, golems, helmed horrors, and xorns all enjoy either immunity or resistance to:     bludgeoning, piercing, and slashing damage from nonmagical weapons that aren't adamantine   Is it actually possible to obtain a nonmagical adamantine weapon?   Although the Dungeon Master's Guide describes adamantine armor (p.150) and Daern's instant fortress (p.160) as being made of this metal, and provides an AC for destructible adamantine objects (p.246), there's no mention of adamantine weapons. The creation spell (PH p.229) can produce an adamantine weapon that lasts for a single minute. The true polymorph spell (PH p.283) can't turn a regular weapon into adamantine, but it might be able to  for an hour. The only way to obtain a (somewhat) permanent adamantine weapon in the game seems to be to loot one from drow elves (MM p.127). A PC (perhaps even a drow) with proficiency in smith's tools could presumably craft a nonmagical adamantine sword during downtime at 5gp per day (PH p.187), except that unlike silvered weapons, there's no pricing for adamantine.   It's seeming like mugging an NPC drow is the only by-the-book way to tool up against gargoyles.


Disk Utility cannot erase USB drive (error -69877: couldn't open device)

Disk Utility (macOS Catalina 10.15.2) fails to erase my USB drive (64GB key, currently formatted in exFAT).  /dev/disk2 (external, physical):    #:                       TYPE NAME                    SIZE       IDENTIFIER    0:      GUID_partition_scheme                        *64.1 GB    disk2    1:                        EFI EFI                     209.7 MB   disk2s1    2:       Microsoft Basic Data Lexar                   63.9 GB    disk2s2   I've tried a bunch of commands that I've found here and there in the terminal, but none of them worked, like:  ➜  ~ diskutil eraseVolume exFAT MyName /dev/disk2 Started erase on disk2 Unmounting disk Error: -69888: Couldn't unmount disk   ➜  ~ diskutil eraseVolume exFAT MyName /dev/disk2s2     Started erase on disk2s2 Lexar Unmounting disk Erasing Error: -69760: Unable to write to the last block of the device   ➜  ~ diskutil eraseDisk FAT32 MYSD MBRFormat /dev/disk2 Started erase on disk2 Unmounting disk Creating the partition map Error: -69877: Couldn't open device   ➜  ~ diskutil eraseDisk free EMPTY /dev/disk2 Started erase on disk2 Unmounting disk Creating the partition map Error: -69877: Couldn't open device   My USB drive appears as read only when i do CMD+I, I tried repairing the permissions but that failed too.  ➜  ~ diskutil resetUserPermissions /dev/disk2 `id -u` Ready to reset user permissions on disk2 Error encountered attempting to reset permissions for user 501 home directory on disk2: Permissions are not enabled on the disk (-69861)   Thx in advance for the help :)


How to access the field variable of a class through a generic object?

I've been testing out generic programming in Java.   Here is a snippet of my code:  public class Vehicle<T extends Style> {      private T make;     private String color;     private int year;     private String brand;     private String model;      public Vehicle() {         this.brand = make.getMake();     }      public Vehicle(String c, int yr, String mod) {         this.brand = make.getMake();         this.color = c;         this.year = yr;         this.model = mod;     }      public void printInfo() {         System.out.println(this.year + " " + this.color + " " + this.brand + " " + this.model);     }      public void setColor(String c) {         this.color = c;     }     public void setYear(int yr) {         this.year = yr;     }     public void setModel(String mod) {         this.model = mod;     } }   And here is the interface Style that is being extended in the type parameter:  public interface Style {      public String getMake();     public boolean usesGas();     public boolean usesElectricity();  }   This interface is implement by another class called Ford, where the getMake() method is implement like so:  private String make = "FORD";  public String getMake() {     return make; }   In my driver class Test, I am testing all of these things like so:  public class Test{      public static void main(String[] args){         Vehicle<Ford> fordFusion = new Vehicle<Ford>();         fordFusion.setColor("GRAY");         fordFusion.setModel("FUSION");         fordFusion.setYear(2015);         fordFusion.printInfo();     } }   Now, in my understanding, one should be able to access the field variables and methods of a generic object by using an interface, which in this case is my Style interface. And the compiler has no problems with this in the IDE. The program should be accessing the getMake() method and printing out:   2015 GRAY FORD FUSION  However, the console shows:   Exception in thread "main" java.lang.NullPointerException at Vehicle.<init>(Vehicle.java:32) at Test.main(Driver.java:16)  which points to the line where I have this.brand = make.getMake();  So what in the world is going on here? What am I doing wrong?  EDIT: The question that this has been marked a duplicate of does not give a solution to my particular situation. Although the error here is a NullPointerException, it is much different than that older question.   that address the same issue as mine. If the solution to that question is valid, then I should be able to accomplish what I've been trying to do.


If $\operatorname{rank}\left( \begin{bmatrix} A &B \\ C &D \end{bmatrix}\right)=n$ prove that $\det(AD)=\det(BC)$

Let $A,\ B,\ C,\ D \in \mathcal{M}_n(\mathbb{C})$. If $\operatorname{rank}\left( \begin{bmatrix} A &B \\ C &D \end{bmatrix}\right)=n$, prove that $\det(AD)=\det(BC)$.


Since I've just started to use Ubuntu, can you recommend me a good book or anything very useful in pdf format? I have version 18.04, and I would not want to constantly search everywhere on the Internet whenever I have troubles with commands, settings, instructions and stuff like that, but that the most important be in one place, like a good guidelines?  Thanks :)


In the new snapshot of minecraft (13w36b) there is a super secret setting in the options menu. when hitting the button an enderman-ish sounds play. Does it do anything or is it just a sound?


Ability to send mail from alias address?

I have a mail server with Postifx (and dovecot) setup, on which there is an alias address (say alias@example.com) which forwards mail to my main email (myname@gmail.com). This works fine, and all mail I send to alias@example.com gets sent to myname@gmail.com  However, when I reply to an email sent to alias@example.com (using the gmail web interface), to the recipient, it looks like the mail came from myname@gmail.com (or more specifically, the user of myname@gmail.com, eg. Joe Bloggs).  Is there a way to make the email look like it came from alias@example.com, or even just a custom name (such as Alias) rather than coming from Joe Bloggs < myname@gmail.com >?


random number generator for special characters

I am trying to generate random number with special characters   what i do for simple integers is   Random randomGenerator = new Random(); int randomNumber = randomGenerator.nextInt();   what can i do to get some thing like this in my random numbers   String salt = "Random$SaltValue#WithSpecialCharacters12@$@4&#%^$*";   thanks


If $\lim_{n \rightarrow \infty} (a_{n+1}-\frac{a_n}{2})=0$ then show $a_n$ converges to $0$.

I have been stuck on this question for a while now. I have tried many attempts. Here are two that I thought looked promising but lead to a dead end:  Attempt 1:  Write out the terms of $b_n$:  $$b_1=a_{2}-\frac{a_{1}}{2}$$ $$b_2=a_{3}-\frac{a_{2}}{2}$$ $$b_3=a_{4}-\frac{a_{3}}{2}$$ $$\cdots$$ $$b_n=a_{n+1}-\frac{a_{n}}{2}$$  Adding up the terms you get:  $$\sum_{i = 1}^n b_i=a_{n+1}+\frac{a_n}{2}+\frac{a_{n-1}}{2}+\cdots+\frac{a_2}{2}-\frac{a_1}{2}.$$  But a dead end here.  Attempt 2:  For $ε=\dfrac{1}{2}$, $\exists K$ such that $\forall n>K$, $$\left|a_{n+1}-\frac{a_n}{2}\right|<\frac{1}{2}.$$  Now I attempt to prove $\{a_n\}$ is Cauchy and hence converges.   For $m>n>K$, \begin{align*} |a_m-a_n|&=\left|a_m-\frac{a_{m-1}}{2}+\frac{a_{m-1}}{2}-\frac{a_{m-2}}{2^2}+\cdots -+\frac{a_{n+1}}{2^{m-n-1}}-a_n\right|\\ &\leq \left|a_m-\frac{a_{m-1}}{2}\right|+\frac{1}{2}\left|a_{m-1}-\frac{a_{m-2}}{2}\right|+\cdots+\left|\frac{a_n}{2^{m-n}}-a_n\right|\\ &\leq \frac{1}{2}+\frac{1}{2} × \frac{1}{2}+\cdots+\left|\frac{a_n}{2^{m-n}}-a_n\right|\\ &<1+\left|\frac{a_n}{2^{m-n}}-a_n\right|, \end{align*} and a dead end.


A question about 16 bit ADC representation

For a 16 bit ADC with a -10V to +10V analog input range I have read the following:  The resolution \$ \text{delta} = \dfrac{20V}{2^{16}} \$  16 bit 0000000000000000 corresponds to decimal 0 and this means the voltage read by the ADC is between -10V to -9 999.695V.  Similarly 16 bit 1111111111111111 corresponds to decimal 65535 and this means the voltage read by the ADC is between +9 999.695V to +10 000.  But I have couple of questions here where I get confused:  1-) If the ADC samples a voltage of +9 999V, will it register as 65535 or 65534?  2-) How about 32767 and 32768? Do they both represent OV? It seems to me 32767 is registered if the voltage is between -20/2^16V and 0V; and 32768 is registered if the voltage is between +20/2^16V and 0V. Is that correct. If so it means for 0V there are two steps unlike other voltage readings.  3-) Is the resolution \$ \dfrac{20V}{2^{16}} \$  or \$ \dfrac{20V}{2^{16}-1} \$?  EDIT:  I plotted in Python quantization of a sinusoid for a 3 bit ADC.  Which plot below represents better a 3-bit ADC converter quantizing a 10V 1Hz sinusoid input in this case sampled at 512Hz rate:  3 is the number of bits.  Below call it Plot 1, the number of levels are odd i.e (2^3)-1:     And below call it Plot 2, the number of levels are even i.e 2^3:    Which one above represents an ADC quantization better?  EDIT 2:  In response to Dirceu Rodrigues Jr and the transfer function he provided in his answer, I tried to plot it in Python (3 bit ADC for -10 to +10V input versus binary code in decimal):  import numpy as np import matplotlib.pyplot as plt  #ANALOG SIGNAL: va = np.linspace(-10, 10, 10000 ) #Analog input from -10V to +10V fs_p = 10.0 fs_n = -10.0   #DIGITAL OUTPUT CODE:  n=3 #ADC resolution  vd = ((va - fs_n) / (fs_p - fs_n)) * (2**n) #Transfer function vd = (vd).astype(int) #output code  plt.plot(va, vd,'.b') plt.plot(va, vd,'-g') plt.xlabel('Va (Analog input)') plt.ylabel('Vd (Output code)') plt.show() plt.grid()   Here is the output:


Is a PhD from a weak university worthless?

I did my PhD in pure mathematics at a university which does not have a good reputation in mathematics. At that time, I did not know that most British universities are quite weak in maths. Apart from that, my PhD advisor is not a great mathematician. After graduation, all of my applications for a postdoc position failed. My advisor was not helpful in the application process. Could the reason for this be the fact that my PhD has been awarded by a weak institution? Do they consider it as worthless? If so, how can I overcome this problem? A second PhD is not an option for me. At this point I should mention, that my all of my PhD colleagues (working in the same field as me) who were at strong and famous universities were successful in finding a postdoc position.


Are you able to play LAN with your friends on Minecraft even if they don't have the same mods

For example if you got an x-ray mod if your friends don't have that mod will they be able to join in general to play lan in that world?


Ubuntu Uninstall . What partitions I should delete?

Ok, so here is a screenshot of my partitions in GParted:    And I just want Windows 8 but NO MORE Ubuntu at ALL.  I can see a partition that contains linux_swap but how do I delete the sda4 then? (It looks like it is protected :( )  And I should FIRST repair the Boot Loader?  And how do I set Windows 8.1 to boot by default in the Windows Bootloader?  (I only have Windows 8.1 and Ubuntu installed, I am currently using the "Try Ubuntu" option from the LiveCD, but I do have it installed on my PC as a Dual-Boot.)  I installed Ubuntu without WUBI and I do not have UEFI since I did update to Windows 8 then 8.1 and I had Windows 7 with my PC.  I just want to know what partitions to delete and if I should first repair bootloader.  Thanks.


Is there an American English equivalent of the British idiom "carrying coals to Newcastle"?

I'm an American living in the Netherlands who is learning Dutch. There's an idiom in Dutch that describes performing a needless/futile activity, "water naar de zee dragen," which literally translates to "carrying water to the sea." My Dutch parents-in-law asked me if there was an English equivalent, but I couldn't think of one.  In doing   , I found that the English translation given for the this idiom is always "carrying coals to Newcastle." This was the first time I'd ever come across the phrase, and subsequent searches revealed that it was indeed of  , though one site I found did . However, neither I nor any of my culturally American friends have ever heard of this phrase.   Is there an American English idiom or phrase that carries the same connotations for carrying out a futile activity?


How to copy all iPhone voice memos to Mac locally?

I have hundreds of voice memos on an iPhone. How do I transfer all of to my MacBook Air without relying on any cloud-based solution (due to privacy/security needs)?  PS: Older questions and answers talk about iTunes. Those do NOT apply in the year 2020 since iTunes is gone now and Apple recently redesigned how syncing with iDevices work. PPS: I do not want to use iCloud for this.


If $p$ and $p^2+8$ are both prime numbers, then $p^3+4$ is prime.

In the book, "Elementary Number Theory - 6th Edition" written by David M. Burton, I have a question. The problem is  If $p$ and $p^2+8$ are both prime numbers, prove that $p^3+4$ is also prime. (p. 58 problem 3.3 #20)  I don't know how to prove this. Thank you very much if you solve this question.


Hiding language names in "Language switcher" block and displaying only country flags

I would like to hide language names (like "English", "Español", "Magyar", etc.) in the "Language switcher" block, and display only country flags, because I have  module installed, and the flags are unambiguous enough for navigating between different languages.  I already set language elements to be displayed in an "inline" style and hide language switcher block's title in my stylesheet file (in a Zen sub-theme) like this:  #block-locale-0 li{     display:inline;     list-style-image: none; } #block-locale-0 .title{     display:none; }


I would like to "parse" some list of web pages (html), the "parsing" is only about redirecting what's between <title> </title> tags to some specific files. Firstly I did for cycle with wget, secondly came to conclusion (with time of course) that curl is a bit faster in this case.  So it looks like:  for page in $(cat source.txt) do  echo "$(curl -s https://somewebpage/some_sub_page/$page \  | grep '<title>' -A2 | sed -n '2p')" > tmp/$page/index done    And all these subpages contain info I'm interested in on the line after <title> ,  like here   <title> ... </title>   so I'm just applying common shell tools to reach the result.  What's my question. With ~400 pages it takes extremelly a lot of time to load the whole page, then to grep it and so on. Is there some more sofisticated solution to load for e.g. only first 10 lines of html document? I rely on classic bash utilities (curl, wget), but you can recommend what you think fits better in this issue.  UPD: maybe it's not the perfect solution, but adding head after curl decreased script's time in 2 times. (duplicate)


Error mounting 16.10 with non-zero exit status 32: mount: Bad message

After installing ubuntu 16.10 in dualboot with ubuntu 14.04 (which is my prime os) i've suddenly encountered this kind of something:     Error mounting /dev/sdb1 at   /media/nerbellion/4d28c2ff-7649-4dd1-b423-3a48b5c695de: Command-line   `mount -t "ext4" -o "uhelper=udisks2,nodev,nosuid" "/dev/sdb1"   "/media/nerbellion/4d28c2ff-7649-4dd1-b423-3a48b5c695de"' exited with   non-zero exit status 32: mount: Bad message   /dev/sdb1 as /home     Error mounting /dev/sdb9 at   /media/nerbellion/a7a0a95e-8d8f-4486-8d8b-ae4f09aa11e2: Command-line   `mount -t "ext4" -o "uhelper=udisks2,nodev,nosuid" "/dev/sdb9"   "/media/nerbellion/a7a0a95e-8d8f-4486-8d8b-ae4f09aa11e2"' exited with   non-zero exit status 32: mount: Bad message   /dev/sdb9 as /root  What is the solution to this? It's happened after the installation.  By the way, /dev/sdb is my secondary external hdd, not the one, containing main os - 14.04.


When a wizard dies in the Harry Potter series, do all of the effects of the spells they cast die with them?

When a wizard dies in the Harry Potter series, do all of their spells die with them?  When I say die, I mean get lifted.   For example, in Half-Blood Prince, after Dumbledore's death, this happens:  Harry heard Hagrid’s moan of pain and shock, but he did not stop; he walked slowly forward until he reached the place where Dumbledore lay and crouched down beside him. He had known there was no hope from the moment that the full Body-Bind Curse Dumbledore had placed upon him lifted, known that it could have happened only because its caster was dead, but there was still no preparation for seeing him here, spread-eagled, broken: the greatest wizard Harry had ever, or would ever, meet.  As a counterargument, we have the ancient but powerful protective enchantments placed around Hogwarts (probably cast by the founders of the school which were Godric Gryffindor, Salazar Slytherin, Rowena Ravenclaw, and Helga Hufflepuff). We also have the enchantments on the Chamber of Secrets, which were cast by Salazar Slytherin, and by the year 1992 (the 2nd year of Harry Potter whose book name is also The Chamber of Secrets), must have been at least 1,000 years old, but still effectively working. These 4 have been dead for hundreds of years, but their magic still exist in the modern Harry Potter world.


I'm having a problem with the visiblility of an object just in cycles

Im having a problem, an object is invisible in cycles, in eeve and in 3d view the visiblity is normal. For detail, the object is invisible but selectable like its there but not visible and I'm using blender 2.90.1. Thanks in advance.  this second image shows that it doesent have a texture.  I leave the file on a google drive  < (this is the link)


hp@hp-HP-15-Notebook-PC:~$ sudo apt-get install curl sudo: /var/lib/sudo/hp writable by non-owner (040777), should be mode 0700 [sudo] password for hp:  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:  curl : Depends: libcurl3 (= 7.35.0-1ubuntu2) but 7.37.1-1ubuntu3 is to be installed E: Unable to correct problems, you have held broken packages. hp@hp-HP-15-Notebook-PC:~$ curl The program 'curl' is currently not installed. You can install it by typing: sudo apt-get install curl hp@hp-HP-15-Notebook-PC:~$ sudo apt-get install aptitude   I am getting different error


I know this might be stupid for most of the people here. I am starting with set theory and I cannot prove this:A-(A∩B)=A-B  I start by assuming: 1) x∈A & ¬ (x∈A & x∈B)       Therefore I understand I can infer:                2) x∈A                  from 1              3) ¬ (x∈A & x∈B)        from 1              4) ¬x∈A & ¬x∈A          from 3              5) ¬x∈A                 from 4              6) ⊥                    from 2 and 5   I do not know how to turn around this contradiction. At an intuitively level it is very clear to me, but I am not able to formalize it.


Show convergence of $\sum\limits_{n=1}^\infty n x^n = \frac{x}{(1-x)^2}$

The following series converges when $|x| < 1$:  \begin{align*}    \sum\limits_{n=1}^\infty n x^n \\ \end{align*}  Show that it converges to:  \begin{align*}      \frac{x}{(1-x)^2} \\ \end{align*}


Question on Application of Mean Value Theorem

Suppose that g is a function that is continuous on $[0,1]$ and differentiable on $(0,1)$, $g(0)=0$ and $g(1)=1$. Show that:  1) There exists $a_1<a_2$ in $(0,1)$ such that $g'(a_1)+g'(a_2)=2$   2) There exists $a_1<a_2$ in $(0,1)$ such that $\frac{1}{g'(a_1)}+ \frac{1}{g'(a_2)}=2$   3) There exists $a_1<a_2$ in $(0,1)$ such that $g'(a_1)g'(a_2)=1$   I know by the Mean Value Theorem, there exists $a$ such that $f'(a)=1$, but I am not sure on how am I supposed to show the existence of two items satisfying the conditions.  Many thanks for your help on this!


Pakettitietoja ei voitu alustaa  Pakettitietoja alustettaessa tapahtui virhe jota ei voitu korjata.  Ilmoita tästä virheraportilla paketille "update-manager", ja sisällytä raporttiin seuraava virheviesti:  E:Encountered a section with no Package: header, E:Problem with MergeList /var/lib/apt/lists/fi.archive.ubuntu.com_ubuntu_dists_precise_main_i18n_Translation-en, E:Pakettiluettelonn tai tilatiedoston avaaminen tai jäsennys epäonnistui.  English translation (using Google Translate) -     Package information could not be initialized      Initializing the package information An error occurred that could not   be repaired.      Report this error report package "update-manager", and include in the   report the following error message:      E:Encountered a section with no Package: header, E:Problem with   MergeList   /var/lib/apt/lists/fi.archive.ubuntu.com_ubuntu_dists_precise_main_i18n_Translation-en,   E:The package lists or status file could not be parsed or opened.


Set "older" kernel as default grub entry

I installed a mainline kernel for testing purposes. I would like to set grub to boot from the older kernel by default.  I know I can set the GRUB_DEFAULT=0 setting for the first page of grub but how do I set it to boot by default from one kernel in the second page (Advanced page)?  I would prefer doing this without installing other software (ex. grub-customizer).     Related Questions:


Why are most of the main characters White/English in Game Of Thrones?

Okay, I was thinking about the series of Game of Thrones and all the battles and stuff, and I thought why aren't there any characters beside White/English characters that have main/important roles? Can you name any that are alive that are anything else beside White/English?   This is a short list of some of the main characters (all White/English):   Cersei - Queen and important political Lannister. Jaime - Guy who is father to the late king and is King slayer. Tyrion - Short guy in politics who is currently on the run(that's what the wikia told me). Daenerys - Queen who is freeing people and dragon owner.   And the list goes on and on, why aren't there any characters other than Caucasian characters that are in the series?  I've read a lot of articles on the internet about this after Googling around, and none of the articles I read had any scientific evidence or research - it was just conjecture.  So, are there any actors/characters from racially diverse backgrounds? I'm hoping for canon evidence (pictures, links, quotes) from the book and/or TV show. In the case of actors, can you also list their role?    This is not intended as a racist question. I just want to know why, since the story takes place over a large area, there doesn't seem to be any diversity.


Separate vote in favour and against a feature request

tl;dr I propose a system of voting for or against feature requests separate from traditional up/down voting in order to avoid alienating people with well thought out yet unpopular suggestions The problem Often I have seen users who are new to meta make a well written, carefully considered proposal that is none the less deeply unpopular; a stream of downvotes follows. This usually ends in the author leaving with a bad taste in their mouth, the most recent example of which is , in which the author said "This certainly doesn't make me want to use this site in the future or even try to help with the process", never to be seen again. Alienating good users like this doesn't seem like a good way forward. Worse yet many people (such as myself) never vote against well written proposals because they don't feel it deserves traditional downvotes. On the other side; the question ban is basically turned off on meta for this reason, but this allows users who lightly troll (I shall not name names I'm sure you have a few users in mind) or fail to do basic research can avoid a question ban because the algorithm can't differentiate between them and people with unpopular ideas. Proposal I therefore propose that a separate vote be kept for and against a feature request as so;  I realise that this would be developer effort for a feature purely on 1/4 of questions on only the meta sites. But this happens most days and I think its worth considering. Key benefits  Avoids disincentivising users who make well written but unpopular feature requests Allows legitimately bad users to be identified Encourages more people to vote on feature requests; I know many people (myself included) never downvote just because we don't like the idea - giving skewed results Allows more nuanced voting; I disagree but you've clearly thought this through --> upvote + vote against  Closely related  This post similarly proposed agree/disagree buttons but still includes a rep penalty


Flatten / collapse one-to-many table and keep the 'many' attributes separate

I have a data set that contains intersection data.  Each intersection node has up to 6 links which is identified by IN_LINK and OUT_LINK attributes.  I want to create a new dataset that includes the intersection node value (NODE) and all of its accompanying links as a single record.    [NODE] [LINK_1] [LINK_2] etc...  5465    45687    9831    etc...  How would I code this in python?


How to get the terminal text those are overflowed during command execution?

Some commands have very large output texts in terminal. Sometimes some lines of texts goes out of the terminal during command execution. How to get that texts?  Update: I mean the terminal that comes with Ubuntu(12.04).


What is the advantage of using Properties over private fields and get/set methods?

I have been programming classes recently and using private fields and get/set methods to access these private fields, A friend suggested to me that I use Auto Implemented properties as It would save me time programming. I was wondering what the primary differences between these two methods were and whether Auto Implemented properties keep the value of a "field" private at run-time.  For example my friend said I should use this:  public int MyProperty { get; set; }   Previously I was using something similar to this:  private int field;  public void setField(int i) {     field = i; } public int getField() {     return field; }


I want to create Worker and Student tables which contains a lot of similar information (First name, second name etc.), so I'm going to extract another like abstract table named Person, which will contain general information for Worker and Student tables.  Which is the best way to do that?  Also I need that ids will be unique i.e. there isn't the same id in Worker table and Student table.


I have noticed that Blender crashes under certain circumstances. Every time I try to open a separate 3D Window with either Bone or Empty Sphere added to the scene, it just shuts down.   Can you confirm similar behavior?  If it is a bug, how do I report it?  Blender version 2.69 (sub 2), build date: 2013-11-07. I'm using Ubuntu 12.04.  Here is the console output:  connect failed: No such file or directory   Read new prefs: /home/orustam/.config/blender/2.69/config/userpref.blend   Writing: /tmp/blender.crash.txt   Segmentation fault (core dumped)   Contents of the blender.crash.txt file:  # Blender 2.69 (sub 2), Revision: 61181 bpy.ops.object.armature_add(view_align=True, enter_editmode=False, location=(0, 0, 1),  rotation=(0, -0, 0),  layers=(True, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False))  # Operator  # backtrace /usr/lib/blender/blender() [0xbf87d2] /lib/x86_64-linux-gnu/libc.so.6(+0x364a0) [0x7f1c9820c4a0] /usr/lib/x86_64-linux-gnu/libdricore9.0.3.so.1(vbo_save_playback_vertex_list+0x42) [0x7f1c863c9ee2] /usr/lib/x86_64-linux-gnu/libdricore9.0.3.so.1(+0x7e592) [0x7f1c862f4592] /usr/lib/x86_64-linux-gnu/libdricore9.0.3.so.1(_mesa_CallList+0x82) [0x7f1c862f8362] /usr/lib/blender/blender() [0xcdb942] /usr/lib/blender/blender() [0xcdc776] /usr/lib/blender/blender() [0xcde730] /usr/lib/blender/blender(draw_armature+0x93a) [0xce011a] /usr/lib/blender/blender(draw_object+0x3ea6) [0xcd4926] /usr/lib/blender/blender(view3d_main_area_draw+0x697) [0xca56f7] /usr/lib/blender/blender(ED_region_do_draw+0x85d) [0xe6e1ed] /usr/lib/blender/blender(wm_draw_update+0x5bb) [0xbfcc4b] /usr/lib/blender/blender(WM_main+0x28) [0xbf9b78] /usr/lib/blender/blender(main+0xcbf) [0xbc2c0f] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xed) [0x7f1c981f776d] /usr/lib/blender/blender() [0xbf72e9]


How to prove $H_1(\mathbb{C}/\Lambda, \mathbb{Z})$ to the lattice $\Lambda$ ,$\gamma \mapsto \int_\gamma dz$ is well defined?

Let fix an arbitraly lattice of $\mathbb{C}$ and call it Λ. How to prove $H_1(\mathbb{C}/\Lambda, \mathbb{Z})$ is isomorphic to the lattice $\Lambda$ via the map $\gamma \mapsto \int_\gamma dz$ ? If once the map is proved to be well defined, the map is obviously group homomorphism and injection, and surjection may be managed. So, I want to check the map is well defined . Why $ \int_\gamma dz$ is in $Λ$? Thank you for your help.