How to set read/write permission for a flash drive?

I have a 16 GB flash drive formatted as FAT. When I plug the flash drive into my Dell Laptop running Ubuntu 14.04, I can read and write with no problem, but when I plug the same flash drive into my Dell Tower running Ubuntu 16.04, it sets up as read only. Below are results for report file system disk space usage (df -Th) and list directory contents showing permissions (ls -la) at each location. I am logged in as user at both locations.  Why are the permissions showing up different at each location? What can I do to set the flash drive to read and write on the Dell Tower running Ubuntu 16.04?  I have tried sudo chmod 666 /dev/sdc1 but that has no effect on permissions. I have also tried sudo chmod 666 /media/user/EBC2-93C8 same thing.  Dell Laptop Ubuntu 14.04  $ df -Th /dev/sdb1      vfat       16G   72K   16G   1% /media/user/EBC2-93C8  $ ls -la /media/user drwx------  3 user user 8192 Jan 16 16:09 EBC2-93C8   Dell Tower Ubuntu 16.04  $ df -Th /dev/sdc1      vfat       16G   80K   16G   1% /media/user/EBC2-93C8  $ ls -la /media/user drwxr-xr-x  3 user user  8192 Dec 31  1969 EBC2-93C8     I tried the solution posted at    Unmount the flash drive from nautilus, but do not remove it.  sudo mkdir /media/flash sudo mount /dev/sdb1 /media/flash -o dmask=000,fmask=111   It did not work right away. I had to unplug the flash drive and plug it in again. Now it works! Will this fix persist even after I reboot?  Thanks!  Follow-up notes......  the media directory now has two sub directories: user and flash.  after I rebooted the Dell Tower Ubuntu 16.04 machine and plugged in the flash drive, it appeared in the user folder.  but it appears read/write privileges have returned.  sudo fdisk -l  Disk /dev/sdc: 15.1 GiB, 16225665024 bytes, 31690752 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0x9c767207  Device     Boot Start      End  Sectors  Size Id Type /dev/sdc1  *     5968 31690751 31684784 15.1G  c W95 FAT32 (LBA)   df -Th  /dev/sdc1      vfat       16G  152K   16G   1% /media/user/EBC2-93C8   ls -la  total 16 drwxr-x---+ 3 root root 4096 Jan 16 17:39 . drwxr-xr-x  4 root root 4096 Jan 16 17:20 .. drwxr-xr-x  3 user user 8192 Jan 16 17:43 EBC2-93C8   what's the little plus sign doing there?  also, I tried several variations of chmod.  sudo chmod 666 /dev/sdc1 sudo chmod 600 /dev/sdc1 sudo chmod 666 /media/user/EBC2-93C8 sudo chmod 600 /media/user/EBC2-93C8   none seem to work. oh well.


if I have a csv file in the following format:  column1,column2,column3,column4,column5,column6,column7,column8   and I want awk to only print columns 2 till 7 I would use:  awk -F',' '{print $2 "," $3 "," $4 "," $5 "," $6 "," $7}' file.csv   and get:  column2,column3,column4,column5,column6,column7   is there a way to concatenate the columns 2-7 to simplify the command. As I'm thinking of a file with quite a bit more columns, my awk command would get horribly long.


Problem with references! Need to line-break urls

I am writing a paper and I have already added the references through bibtex.  There is something I don't like about the online references, they get to stretched out, from one side of the page to the other. And the online link gets out of the borders of the page.  Check the attached picture to understand what I mean. [3] is the problem    this is the bibtex code I use for that reference. Any solution? Suggestions?  @misc{domination, Title = {Heterogeneous Systems Dominate the Green500}, Author = { }, Howpublished = {\url{http://www.hpcwire.com/off-the-wire/two-brains-better-one-heterogeneous-systems-dominate-green500/}}, Month = nov, Year = {2013}, Url = {http://www.hpcwire.com/off-the-wire/two-brains-better-one-heterogeneous-systems-dominate-green500/}}


If $X_1,...,X_n$ are Bernoulli(p) iid then $X_1+...+X_n$ is Binomial(p,n)

How can I prove that if $X_1,...,X_n$ are iid $Bernoulli(p)$, then $X_1+...+X_n$ is $Binomial(n,p)$ ?    Attempt  $$\mathbb P\{X_1+...+X_n=k\}=\sum_{x_1+...+x_n=k}f_{X_1,...,X_n}(x_1,...,x_n)$$ $$=\sum_{x_1+...+x_n=k}f_{X_1}(x_1)...f_{X_n}(x_n)$$ But now, I have difficulty to conclude. How can I do ?  I also did by induction, and it worked, but I really would like to use this method.


Build applications for iPhone using Linux or Windows?

I would like to build an application (in Java preferably) running on the iOS of Apple's iPhone. The thing is, that I don't have an Apple computer. I mainly use Linux, and Windows when I have to.  Is it possible to build applications for iPhone using the Linux platform? What type of software is best to learn the ropes of? Suggestions?


Wireless Driver rtl8812au no longer works in 19.10

I have a D-Link DWA-182C1 wireless dongle which did work in 19.04, the latest update to 19.10 doesn't work. Ubuntu recognizes it, finds the driver and installs it but nothing happens. I am not experienced with Ubuntu and need step by step instructions on how to fix this.


I am using Canon 550D and is going to visit Greece. What lens should I bring if I can afford just one? Appreciate your comments.


I do have a problem with QGIS. I Have to create a map which shows different areas in a city. It is important, that there are labels with names of the streets, so that my clients can work with the map. As Background Map I have to use MapQuest. My problem now is, that the displayed Background in the Composer is different from the background which is exported (Composer: only motorways are labeled, exported: every street is labeled but so small, that nobody can read it. I’m able to label the streets from an external source (OSM) but then there are both labels displayed, the small ones and mine, and this looks terrible. So I think I have two options, first I can export the map without labels, so I can use my extra ones, second I have to reach, that the labels are exported bigger. (both I do not know if and how it is possible) Does somebody have an idea how to solve my problem?


Horizontal grey line or dotted lines in tabular mode?

I am curious if anyone has tried modifying the horizontal lines (e.g. \hline) in tabular environment to get a less severe contrast? Perhaps a grey line or dotted line?


I got logged out on Pokemon Go, but my mom sighned me up so I don't know the username password or email. I don't know if it is a pokemon trainer club account or google. All I know is the Nickname which is JewelsPanda. Is it possible to get my accout back?


64 bit ubuntu studio version for intel pc

Is the "ubuntustudio-12.04.3-dvd-i386.iso" file 64 bit or 32 bit? If I have to download 64 bit version for my Intel PC (which has a 64 bit processor), which one should I download?


One nice feature would be if the source code was automatically hidden when the question is too big, and clicking on something be able to make the code visible.  In  people are asking a lot of data, so the question is currently huge and hard to get an overview. This feature would allow people to see the question from a high-level point-of-view, and see the code as they feel they should.


How to pronounce possession of "coach's umbrella"?

coach /koʊtʃ/      umbrella /ʌmˈbrelə/   But how to pronounce "coach's umbrella"   said "The rules for the pronunciation of a noun with ’s are the same as the rules for pronunciation of plural forms of nouns."  So, Is /koʊtʃɪzʌmˈbrelə/ correct?  If it is correct, then "coach's umbrella" & "coaches' umbrella" sound the same.


I've tried other ones by using invisible armor stands, but when I type my own custom name, it shows the name: Armor Stand.  How do I get it to display my custom name?


Two inequalities for holomorphic functions from $\mathbb{D}$ to $\mathbb{D}$

Let $f$ be an holomorphic function from $\mathbb{D}$ to $\mathbb{D}$ and let $z \in \mathbb{D}$. I have to prove that $$ \frac{|f(0)| - |z|}{1 + |f(0)| |z|} \leq |f(z)| \leq \frac{|f(0)| + |z|}{1 - |f(0)| |z|} $$ and I have thought to use Schwarz-Pick theorem but I haven't obtain any result. Any help? Thank you very much.


Why does holding something up cost energy while no work is being done?

I read the definition of  as  $$W ~=~ \vec{F} \cdot \vec{d}$$  $$\text{ Work  =  (Force) $\cdot$ (Distance)}.$$ If a book is there on the table, no work is done as no distance is covered. If I hold up a book in my hand and my arm is stretched, if no work is being done, where is my energy going?


Is there any Blender Plugin that opens .max file? I am not looking for any Bridge Plugin cause I cannot afford Autodesk 3ds Max. It would be a great help if someone suggested me a solution thank you.


I'm looking at an equation for average power in a signal  $$ p_{avg} = \frac{1}{R} v_{rms}^2 $$  and wondering why it isn't  $$ p_{avg} = \frac{1}{R} |v|_{avg}^2 $$


Every integer is the unique sum of a "decreasing" sequence of binomial coefficients

I need some advice as I am struggling with the following combinatorics exercise.  Let $k$ be a given positive integer. Show that any non-negative integer $N$ can be written uniquely in the form $$N=\binom{x_k}{k}+\binom{x_{k-1}}{k-1}+\dots+\binom{x_1}{1},$$ where $0 \leq x_1 < \dots < x_{k-1} < x_k$.  The exercise is accompanied by this advice:  Let $x$ be such that $\binom{x}{k} \leq N < \binom{x+1}{k}$. Then any possible representation has $x_k = x$. Now use induction and the fact that $N-\binom{x}{k} < \binom{x}{k-1}$ to show the existence and uniqueness of the representation.  I am really stuck and thus grateful for the slightest hint on how to solve it.


I saw him at / in the station a few days ago   I saw a giraffe at / in the zoo yesterday.      What should we use with saw (see)?


How to block number that ends with specific digits?

I am receiving quite a few unwanted calls (6 yesterday), although I am blocking the numbers and , I would rather simply not get them.  All of the phone numbers that are calling me end in "114", and this gave me an idea. Is there any way to block numbers that end with specific digits (or regex based)?


How to stop an infinite kill command loop in a realm server?

I accidentally started a kill loop that kills everyone on the realm. How do I stop this on a realm?


How would evolution explain parastitic wasps?

I read this article about wasps that can do "brain surgery" on cockroaches.   How does evolution create such a thing?   The brain surgery along with many of the other steps in the reproduction process seems to be very precise.  Any error here or there could lead to a bad result Even if by happenstance the first wasp figured out a good way to do brain surgery, how would its offspring know to do the same thing?     Thanks.


If the Sun were to suddenly become a black hole of the same mass, what would the orbital periods of the planets be?

I am interested in theoretical and practical considerations.


How to prove that the radial basis function is a kernel?

How to prove that the radial basis function $k(x, y) = \exp(-\frac{||x-y||^2)}{2\sigma^2})$ is a kernel? As far as I understand, in order to prove this we have to prove either of the following:   For any set of vectors $x_1, x_2, ..., x_n$ matrix $K(x_1, x_2, ..., x_n)$ = $(k(x_i, x_j))_{n \times n}$ is positive semidefinite. A mapping $\Phi$ can be presented such as $k(x, y)$ = $\langle\Phi(x), \Phi(y)\rangle$.   Any help?


Why is the Gamma function off by 1 from the factorial?

Why didn't they define it as $$ \tilde \Gamma(x) = \int_0^\infty t^x e^{-t} \, dt ?$$ Then the definition would have two less characters than the standard definition of $\Gamma(x)$, and we would have $\tilde \Gamma(n) = n!$ for $n$ a non-negative integer.  And this would save a lot of confusion.


How to get a random number/letter combination in Javascript?

i am trying to create a program which puts random numbers/letters in a textbox using javascript (in the browser console). I have tried my best to do it but i just couldn't do it.  my best attempt was:  var key = ((nums[Math.floor(Math.random() * nums.length)].toString()) + (Math.floor((Math.random() * 10)).toString()) + (Math.floor((Math.random() * 10)).toString())); var key2 = ((Math.floor((Math.random() * 10)).toString()) + (Math.floor((Math.random() * 10)).toString()) + (Math.floor((Math.random() * 10)).toString())); var key3 = ((Math.floor((Math.random() * 10)).toString()) + (Math.floor((Math.random() * 10)).toString()) + (Math.floor((Math.random() * 10)).toString()) + (Math.floor((Math.random() * 10)).toString()));   But unfortunately it  only generates numbers. Does anyone know how to randomize both? Would appreciate if anyone could help me .  Regards, 3hr3nw3rt


Your communities list is not visible in mobile web on site where you don’t have an account

If you don’t have an account for some site, you can still see a list of your communities via top bar menu of this site, e.g. on 3D Printing:        But this works only for full web, in mobile web «sign up or log in» is shown:        When you have an account then the list of your communities is shown even for mobile web:


How can I set a filetype to always open with a specific application?  In .local/share/applications/mimeapps.list there was this line - application/x-extension-jap=gedit.desktop;jalbum.desktop;  It always opens with gedit, and jalbum does not appear in the Open with list.  Since jalbum should be (and always used to be) the default application, I changed it to application/x-extension-jap=jalbum.desktop;gedit.desktop;  But that doesn't seem to change anything.  In answers to similar questions "Ubuntu Tweak" has been suggested as a way to manage this problem, but that option seems to have disappeared from current versions of "Tweak".  I tried fixing this using the Nautilus Properties display, but jalbum doesn't show up there as an alternative application.  Is there some other way to fix this?    Update  @JohnnyD It seems that the edit that I described actually worked, but needed a restart to take effect.  But the second app listed in mimeapps.list (gedit) is now not available in "Open with", and if I choose it from "Other applications", then jalbum disappears again!  It also seems that when I originally searched for "Ubuntu Tweak" in the Software Centre I found "Unity Tweak" which appears to be a different animal, so my earlier comments about "Ubuntu Tweak" really applied to "Unity Tweak" instead.  So the immediate problem was resolved, but - with regard to your suggested solutions, I couldn't see any way in "Open with" to insert an app manually that doesn't already appear in the list.   And I couldn't see in "Unity tweak Tool" a way to register a filetype that isn't already in the "File Type" list.


90s movie about astronauts returning a liquid sample from Venus

I think I saw this movie in the 90s on Hungarian TV. It started with a team of astronauts on Venus. There's this thick green liquid and they collect a sample in a thermos bottle. As they do this, a rope snaps and a member of the team falls into a hole. With no way to save them, they decide to return to Earth rather than risks more losses. They return to Earth and land in a desert. There is nobody to greet them. They walk and walk and walk. Everyone is delirious from thirst and tensions rise. They carry a flare gun and the bottle with the sample. They use a few flares but still nobody comes for them. They descend into madness and die one by one. The last astronaut shoots and kills the other one with the flare gun. He walks on alone. He finds a well but it's dry. He ends up dramatically drinking the sample from Venus! Then he arrives in a town? The movie ends.


Blender script import model and render it

I know python well, but I'm not familiar with blender.  Is it possible to use the blender API to do this?  Setup:  Create a scene in which the the lights and cameras are pre-arranged.  Run a python script which:   Imports a model (fbx or obj). Renders from each camera and saves output to a .png file. Returns to step 1 until all models have been rendered.


Why do we say that light travels at a speed?

According to Einstein's theory of relativity, the more speed something has the slower that time passes for it; and presumably when traveling at the speed of light, time stops entirely. So this means that when a photon is created, the rest of existence virtually pauses until the photon ceases to exist, and then the rest of existence begins again. If time is stopped while the photon exists, then what are we measuring when we measure light? In order to measure the actual photon, we would need to take the measurement while time was standing still. Speed requires time, so why do we say that light travels at a speed?


Looking for info on how to add web mapping services from the Ohio Department of Natural Resources website to QGIS.  I've tried nearly a dozen different things online and still can't get results.  Don't normally ask for help in places like this, but decided to attempt this route for fear that it was impossible (permissions issues, etc.). Link to data I want to add is posted below:


How can I fit a video to a certain size, but don't upscale it with FFmpeg?

I need to fit videos to 640x360 (the maximum my phone's player can handle), while also preserving aspect ratio, but I also want the video to be unchanged if it is smaller than 640x360 (no point in up-scaling it after all).  Is there a way to get this behavior using ffmpeg's command line?


I have several dozen points plotted across the UK. Each point represents a facility that serves local people. To estimate the catchment areas of each facility I created Voronoi polygons around them, and clipped the polygons to the UK borders (using a UK shapefile). I then coloured each polygon according to an attribute of the point data.  A cropped part of the map is here: (Wales and Devon/Cornwall)   Is there any way to make the Voronoi respect the natural borders of the UK (i.e. limit them to my shapefile during Voronoi creation)? The white on my map is the sea, and some polygons have crossed the Bristol Channel. This is implausible for a catchment area.  Is this possible, or is there any alternative? I have used QGIS so far, but am open to any option, code or GUI, preferably free.  Edit: There are some questions  and  that talk about building catchment areas from driving times. That is a possibility that I am considering if this is not possible, but a Voronoi algorithm that respects borders would be simpler.


Does the Hunter's Mark spell chain to multiple creatures?

I'm looking to play a ranger. The Hunter's Mark spell says:     If the target drops to 0 hit points before this spell ends. you can use a bonus action on a subsequent turn of yours to mark a new creature.   Does that mean I can keep marking a new enemy each time the last one dies until the hour's up?


I have TeX Live 2013 installed via MacTeX on my Snow Leopard laptop.  I copied the following code from page 247 of version 2.10 of pgfmanual:  \documentclass[a4paper,12pt]{report} \usepackage{tikz} \usetikzlibrary{decorations}  \begin{document}  \begin{tikzpicture} \node (a) {A}; \node (b) at (2,1) {B}; \draw (a) -- (b); \draw[decorate,decoration=brace] (a) -- (b); \draw[decorate,decoration={brace,mirror},red] (a) -- (b); \draw[decorate,decoration={brace,mirror,raise=5pt},blue] (a) -- (b); \end{tikzpicture}  \end{document}   Yet somehow I get this error:  ./Untitled2.tex:11: Package pgfkeys Error: I do not know the key '/pgf/decorati on/brace' and I am going to ignore it. Perhaps you misspelled it.  See the pgfkeys package documentation for explanation. Type  H <return>  for immediate help.  ...                                                l.11 \draw[decorate,decoration=brace]                                       (a) -- (b); ?    Is this a bug?


Finding players: Warhammer Fantasy Roleplay Fourth Edition (Cubicle 7)

How are folks finding players these days? I'm looking for Warhammer Fantasy Roleplay 4th edition enthusiasts. (It was very recently released.) I'm also finding that remote play is more realistic than being able to sit down at a table with others.


I have a problem with the following code. I cut the String "Data1", give it to "Data2" and then I check the String. My Phone always says "ab is not ab", but I do not know why? -.-  Any ideas?  String Data1 = "abc"; String Data2 = "";  Data2 = Data1.substring(0, 2);  if(Data2 == "ab")   {         Toast.makeText(this, Data2 + " is ab" , Toast.LENGTH_LONG).show();   } else   {         Toast.makeText(this, Data2 + " is not ab", Toast.LENGTH_LONG).show();    }   Thanks ...


How can I snap a window in a corner with 18.04?

Super + left/right snaps windows to fit half the screen. I'd like to be able to snap four windows in all corners. CompizConfig Settings Manager doesn't seem to be an option since 18.04 uses the GNOME desktop.


I created a flowchart which is quite big in Tikz. I spans three pages. I used \newpage to create page breaks in between. Some nodes in the first page are connected to the last one and vice versa. So when I try to create arrows to link them, it is not getting connected. Could anyone suggest a better way to create this long flowchart? Outline of the code is as below:  \begin{tikzpicture} \node(1)[]; \node (2)[]; ........ \end {tikzpicture}  \newpage  \begin{tikzpicture} \node(3)[]; \node (4)[]; ........ \end {tikzpicture} \newpage  \begin{tikzpicture} \node(5)[]; \node(6)[]; ........ \end {tikzpicture}  %arrows and flow lines \draw [arrow] (node1) -- (node2); \draw [arrow] (node3) -- (node4);


Prove that $a^2(b+c-a)+b^2(a+c-b)+c^2(a+b-c) \leq 3abc.$

Suppose that $a,b,c$ are the lengths of the sides of a triangle. Prove that $$a^2(b+c-a)+b^2(a+c-b)+c^2(a+b-c) \leq 3abc.$$   Attempt  It's hard to do much simplification here so we are going to have to use that $a > b+c, b>a+b, c>a+c.$ Using that fact we obtain that $$b^2(c-b)+c^2(b-c) > a^2(b+c-a)+b^2(a+c-b)+c^2(a+b-c).$$ Then should I use AM-GM to finish it or what inequality?


Displaying image of type BLOB format stored in external database in Drupal 8

I have created external database on localhost with image stored in one of the columns in BLOB format. Then I interfaced this external database using View Database Connector, created VIEW. I could display other columns like  name, phone etc easily but I could not display the image stored in BLOB format. I used Rewrite Results and wrote <img src='{{ blob_image }}'> where blob_image is the name of the column. I see small green color image icon which we generally see when image is not available. If I store image path in the column and use above Rewrite Result, it works fine. But I need to store image in BLOB format and display in drupal 8 Views. If anyone has any suggestion, please let me know. Thanking you in anticipation. Nilesh Kulakrni


Access compilation element in web.config

I want to be able to determine if the web.config element         <compilation defaultLanguage="vb" debug="false" />   if the property is debug is set to true or false.   Public Shared Function isDebug() as Boolean   ......   ......   ......   ...... End sub   Thanks


I'm new to blender and I started last week. I'm now having trouble with the final results of my render, it looks incredibly grainy.   What I have tried so far is that I changed the resolution to 100% , samples to 500, tried using the 'area light' and i enabled 'multiple importance'.  Here's the link to my Blender file:   UPDATE  I can't find the AA settings:    Update: When I try to render my animation it comes out as nothing.   It also says this:


While reading some   I found sentence 1 . Why can't we use will instead of would like in sentence 2?   Fast forward to 2020, and the signing of the Abraham Accords between Israel, the UAE and Bahrain, which brought Israel_Arab ties to a new beginning. Next, the big question remained whether Sauidis would join this arrangement     Fast forward to 2020, and the signing of the Abraham Accords between Israel, the UAE and Bahrain, which brought Israel_Arab ties to a new beginning. Next, the big question remained whether Sauidis will join this arrangement   What is the difference in meaning between these two sentences??


Does the induced charge on a conductor stay at the surface?

My textbook says that when a conductor is placed in an electric field, the electrons in it realign so that the net electric field inside the conductor is zero. There isn't a proof for this. It merely states that the electrons drift opposite to the applied electric field and create an opposite electric field inside the conductor canceling the external one.   I imagine Gauss's Law would provide a simple proof. If we try enclose a point inside the conductor in a gaussian surface, and note that the enclosed charge is zero, so the flux through the surface is zero and so is the electric field at the surface.   When I looked back at my reasoning, I realized that I had assumed that the charges induced on the conductor always stay at the surface, which I had no way of proving. How do I prove this formally?


What do these numbers represent in this schematic diagram?

What are those 1 4 and 2 3 on both sides of the button? They look like having connected to same places at both ends, it looks like redundant cable to me.  So, what are they representing?


Dry white wine substitute for slow cooker garlic chicken recipe

What would be a good substitute for the wine? I do not know what to do with wine I have never cooked with it and I wouldn't use enough of it to make it worth buying some.  Slow Cooker Garlic Chicken  Ingredients  1/2 cup fat-free, low-sodium chicken broth (certified gluten-free if necessary) 3 tablespoons dry white wine 2 tablespoons cognac 1 (3 1/3-pound) whole chicken, skinned and cut into 8 pieces 1 1/2 teaspoons extra-virgin olive oil 1 1/2 teaspoons butter 1/4 teaspoon salt 1/8 teaspoon freshly ground black pepper 40 garlic cloves, peeled (about 4 whole heads) 2 teaspoons fresh thyme leaves 4 teaspoons chopped fresh parsley (optional)


Getting popup with layer attributes to display after using address search/geocoder widget?

Using Web AppBuilder and ArcGIS Online, I want to let my user(s) enter an address on the "Geocoder Widget" and have an automatic popup that displays. I know how to configure the content of the popup. I know I can change the Geocoder to search for specific features/attributes.   Example: I have three school boundaries (High School districts, Middle School Districts, and Elementary School Districts) that overlap each other. I want to create an app that lets someone Enter their address and it spits out their neighborhood HS, MS, and ES (I will be adding driving directions and descriptions of the schools in the pop up).   asks the same thing I believe but was never answered or commented on.


I have been told that with the conjunction "or" we must apply the following rule: a singular verb is used if the subject that comes after "or" is singular. Is it correct?  I would naturally say the apple or the orange is good. But it seems that we should also say    the apples or the orange is good  but the orange or the apples are good.    Is it correct?  Otherwise, if I am thinking of "this or that or both", is it correct to use the plural? And say the apple or the orange are (both) good.


How do you defeat the Ancient Rock Wraith in the Deep Roads?

Does anyone have any tips or hints on how to beat the Ancient Rock Wraith in the Deep Roads? I've tried battling him a few times and even hiding from his super AoE attack, I still get ground down by the minions, and then he nukes 2 of my team.  I'm running Hawke - Daggers Rogue Varric - Archer Rogue Merrill - Elemental Anders - Elemental + Heal    I think that I really needed to take a tank, but I ideally don't want to have to restart the Deep Roads section.  Does anyone have any tips on how to beat this boss?


We are given a matrix $$A =  \begin{bmatrix} 3 & 0 & 1 \\ -1 & 4 & -3 \\ -1 & 0 & 5 \\ \end{bmatrix}$$   and we are asked to find a matrix $P$ such that $P^{-1}AP$ is upper triangular.   Here, we first find one eigenvalue as $\lambda= 4$. Then the matrix $$ A-4I =  \begin{bmatrix} -1 & 0 & 1 \\ -1 & 0 & -3 \\ -1 & 0 & 1 \\ \end{bmatrix}$$ has basis formed from $f_1 = (-1,-1,-1)^T$, $f_2 = (1,-3,1)^T$. We extend this to a basis of the whole space by adjoining $f_3 = (1,0,0)^T$, and so we have base-change matrix $$ P =  \begin{bmatrix} -1 & 1 & 1 \\ -1 & -3 & 0 \\ -1 & 1 & 0 \\ \end{bmatrix}.$$  Then, by using some computational tools, we find that $$ P^{-1}AP =  \begin{bmatrix} 3 & 1 & 1 \\ -1 & 5 & 0 \\ 0 & 0 & 4 \\ \end{bmatrix}$$  Now, we need to look at $$B = \begin{bmatrix} 3 & 1 \\ -1 & 5 \\ \end{bmatrix},$$ which has eigenvalue $\lambda = 4$. So we have $$B-4I = \begin{bmatrix} -1 & 1 \\ -1 & 1 \\ \end{bmatrix}.$$ So basis for the image of this is $(1,1)^T$. We extend this to the basis $(1,1)^T$, $(1,0)^T$ of $\mathbb{R}^2$. Now, going back to $\mathbb{R}^3$, we have the matrix $$Q = \begin{bmatrix} 1 & 1 & 0 \\ 1 & 0 & 0 \\ 0 & 0 & 1 \\ \end{bmatrix}.$$  Then, by using calculation tools, we get $$Q^{-1}P^{-1}APQ = \begin{bmatrix} 4 & -1 & 0 \\ 0 & 4 & 1 \\ 0 & 0 & 4 \\ \end{bmatrix},$$ which is in upper triangular form.  Now, what I wanted to ask is that is there a way to directly find the matrix $R = PQ$ such that $R^{-1}AR$ is upper triangular, without going through these steps?


How to find x,y,z coordinates of a mesh in edit-mode?

I have ply format mesh in edit mode in blender. When I select some vertices , I need the x y z coordinates to be printed as output. Is it possible?


In Google Webmaster tools, where should you submit a sitemap that contains multiple subdomains?

I work on a site which is structured en.site.com however the site contains subdomains for all its products like product1.en.site.com The sitemap contains all the products on all the subdomains. The problem is that each subdomain in Google Webmaster Tools you need to create a property thus submitting a small sitemap for each property for each product would be impossible. Is it ok to submit the whole site under en.site.com?


Wrong reputation sum after user was deleted

First, here's the screenshot:      Now, what's wrong:    I answered a question today, got 3 upvotes and had the answer accepted (so 45 points in total). Then I deleted 2 user accounts for sockpuppet upvoting (not my accounts, I'm a moderator on that specific website :D ). (Apparently the user that asked the question upvoted my answer from all 3 of his accounts). The upvotes were reverted, but my dashboard still shows 4 actions (instead of 6) and the sum of the points is still 45 (instead of 25). Here is the link to the answer: .    Side note: The total rep for the day is correct.


Is it possible to use a package/macro only locally?

I would like to create a LaTeX file from several different other LaTeX files that might use different definitions of the same macros or might use incompatible packages. Is it possible to have within a same LaTeX file different “preambles” corresponding to different parts? If not, do you suggest any idea? edit Here is what I want to achieve. It is for a webapp: several users type their LaTeX file with their own preamble. They only type the body of the document and maintain two other files: a file of macros and a file of “\usepackages{...}”. Then I want to use their files and put them in a “global” .tex file, with additional content (header, etc.) I want to make this process automatic.


In this complex Fourier transform how is the i factored to the top of the fraction?


Auto Increment Number Based on Another Field

Our customer number ranges are different for each company we acquire. For example, company A has a customer number range that falls between 100,000-199,999. Company B has a number range that may fall between 200,000-250,000.  What we need is a way to automatically set the customer number for the correct company based on a field called Company Code.  Example: We have a new customer for company A. Company A's last customer is #127,002. The new customer number would be #127,003 and company B's number series would remain unchanged.  For right now, we would have this customer number stored in a separate field than the traditional Account Number field, as we are currently transitioning between ERP systems.  Any help would be greatly appreciated. Thank you!


Can you identify telepathically received messages sent through spells like Sending as magical via Detect Magic?

An enemy casts Sending to communicate with a player from far away. In this example, the player character doesn't know anything about the Sending spell and he might think he is just hearing voices or going crazy. Another player casts Detect Magic to scan the area. Can this player detect the presence of the telepathic message inside the first players head via Detect Magic as an evocation spell?


How to get number of nested objects in object?

I have an Object. How to get number of nested objects in a?  a = {     firstNested: {         name: 'George'     }     secondNested: {         name: 'James'     } }   I supposed to use .length which is usually used for arrays. What should I do in this case?


When I run the following code  echo '1' > file.txt echo '2' | paste file.txt - > file.txt   I would expect the content of file.txt be 1   2, because the paste command as it name suggests should put the two strings simply side-by-side. However, it is just 2.  Could anyone of you point me towards additional diagnostics to run in order to pin down the problem.


What is the difference between Gödel's completeness and incompleteness theorems?


Prove the gcd is 1 when a sequence is purely periodic

If the sequence $10^n\bmod m$ (where n>=0) is purely periodic, show that   $\gcd(m,10) = 1$   I know that if the sequence is purely periodic, $a_i=a_{i+P}$ where P is the period. I can show using examples that the gcd(m,10) must be 1 but not generally  I know that if the gcd(m, 10) = 1  10x + my = 1   or  10x $\equiv$ 1 mod m   But from here I'm not sure how to prove the gcd must be 1


Server monitoring software that will show each cpu seperatley

We have been using New Relic to monitor our server load but it aggregates all of the CPUs into one measure. Is there a good tool that is similar but will show individual CPU load?


Why alert from external JS not appearing

Why no alert appear in the following HTML?  My HTML  <!DOCTYPE html> <html> <head lang="en">     <meta charset="UTF-8">     <title></title>     <script src="a.js"/> </head> <body>  </body> <html>   a.js  alert("hello");


If the average resting potential of a neuron is -70 mV, why is there such a high ratio of potassium ions inside relative to out?

My bio teacher was discussing the ratios of different ions inside versus outside the cell.   $$\text{OUT:IN}$$  $$\text{K}^+ (1:20)$$ $$\text{Cl}^- (11.5:1)$$ $$\text{Ca}^{2+} (10000:1)$$ $$\text{Na}^+ (10:1)$$  Can someone provide specific details as to the relative quantities of these different ions relative to each other? In other words, given these ion ratios, provide me with how much of each type of ion there are and show why this adds to to -70 mV. I just want to make sure I have a realistic picture of the concentrations.    I think I am mixing up concentration with the ratio between inside and out. Although for every potassium ion outside there are 20 inside, the charge from the total number of potassium ions must be less than that of chloride or it would not be negative inside, right?


I tried connecting to a server this morning but it said "outdated client". I understand that that means I have to get Minecraft 1.6.4 but I have no clue how to do it. I tried getting it on Minecraft.net but I couldn't find it. Please tell me how to download it and use it.


Do witches and wizards play vinyl records?

In the movie Harry Potter and the Goblet of Fire, there's a scene where the students are preparing for the Yule Ball.   Professor McGonagall is instructing the boys and girls, while Filch is choosing a vinyl record to place in an enormous turntable phonograph with a horn as big as Hagrid.   This has me wondering if the wizarding world, in general, plays vinyl records. Or, if this was just a Muggle artifact that Hogwarts kept as a novelty.   Are there other instances of witches or wizards using or owning phonographs or record players in either the books or movies? If so, what are they? (Examples help to illustrate if this was a one-off or a trend)


How to add sharepoint searchbox in pagelayout and select the scope, "This site"?

I created a custom pagelayout. I would like to add the sharepoint searchbox inside the pagelayout. I would like to set also the default search scope to "This Site".  UPDATE  This is the solution:  <%@Register TagPrefix="SearchWC" Namespace="Microsoft.Office.Server.Search.WebControls" Assembly="Microsoft.Office.Server.Search, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"%>                                  <WebPartPages:WebPartZone                                      runat="server"                                      AllowPersonalization="false"                                      FrameType="TitleBarOnly"                                      title="<%$Resources:Microsoft.Office.Server.Search,LayoutPageZone_MainZone%>"                                      id="MainZone" orientation="Vertical"                                      QuickAdd-GroupNames="Search"                                      QuickAdd-ShowListsAndLibraries="false">                                      <ZoneTemplate>                                         <SearchWC:SearchBoxScriptWebPart ID="SearchBoxScriptWebPart1" DefaultDropdownNodeId="1004" UseSiteCollectionSettings="true" EmitStyleReference="false" ShowQuerySuggestions="true" ChromeType="None" UseSharedSettings="true" TryInplaceQuery="false" ServerInitialRender="true" runat="server" _WebPartId="{2243C4B0-F63F-4573-B39E-3A60BA773508}" />                                     </ZoneTemplate>                                 </WebPartPages:WebPartZone>


Null pointer exception for my method in a LinkedList implementation

I am constructing a FrequencyBag that will take something like an Integer, String or Character, and it will take the data and pair it with its frequency.  For example:   FrequencyBag<Integer> fb = new FrequencyBag<Integer>();    fb.add(cat);   fb.add(dog);   fb.add(horse);   fb.add(cat);   fb.add(cat);   will look like   (cat,3) ---> (dog,1) ---> (horse, 1)   My method getMaxFreq() has no problem getting the max frequency (which is 3 for the example above)  when the bag contains elements, but when I try to return the value 0 for an empty null FrequencyBag() I get this error.  "Exception in thread "main" java.lang.NullPointerException" "FrequencyBag$Node.access$1(FrequencyBag.java:8)"  Here is my method below:      public int getMaxFreq() {      Node<T> currentNode = firstNode;     Node<T> nextNode = firstNode.next;      int compareVal = nextNode.freq;     int maxVal = currentNode.freq;      if (currentNode == null) {         maxVal = 0;         return maxVal;     }      while (nextNode.next != null) {          if (maxVal < compareVal) {             maxVal = compareVal;         }          else {             // Do nothing         }          currentNode = currentNode.next;         nextNode = nextNode.next;     }      if (nextNode.next == null) {         if (maxVal < nextNode.freq) {             maxVal = nextNode.freq;         } else {             // Do nothing         }          return maxVal;     }      return maxVal;  }     Instead of getting a null pointer error, I want to do this when I create an empty bag and call my getMaxFreq() method:   FrequencyBag<Integer> emptyBag = new FrequencyBag<Integer>();   System.out.println("Output: " + emptyBag.getMaxFreq());   Output: 0


Difference between "an application instance" and "instance of an application"

What is the difference between "an application instance" and "instance of an application"? When we prefer the two words version and when the "of" version?


What is the impact of enabling the critical update 'Enable Improved Caching of Org Schema'?

What is the impact of activating the critical update 'Enable Improved Caching of Org Schema' in a Salesforce instance? Do we have a list of things that we need to verify to activate this critical update?  Understand the critical update from  question. But it would be great if we have a list of items that we need to test before activating this critical update.


this code compiled and executed well without using const. Is there a special reason for using const in here?  0   #include <iostream> 1   using namespace std; 2 3   int sum(const int array[], const int length) { 4     long sum = 0; 5     for(int i = 0; i < length; sum += array[i++]); 6     return sum; 7   } 8 9   int main() { 10    int arr[] = {1, 2, 3, 4, 5, 6, 7}; 11    cout << "Sum: " << sum(arr, 7) << endl; 12    return 0; 13  }    code reference: MIT C++ Open Course Lecture Note 4 "Arrays and Strings" URL:


Can the C preprocessor be used to tell if a file exists?

I have a very large codebase (read: thousands of modules) that has code shared across numerous projects that all run on different operating systems with different C++ compilers. Needless to say, maintaining the build process can be quite a chore.   There are several places in the codebase where it would clean up the code substantially if only there were a way to make the pre-processor ignore certain #includes if the file didn't exist in the current folder. Does anyone know a way to achieve that?  Presently, we use an #ifdef around the #include in the shared file, with a second project-specific file that #defines whether or not the #include exists in the project. This works, but it's ugly. People often forget to properly update the definitions when they add or remove files from the project. I've contemplated writing a pre-build tool to keep this file up to date, but if there's a platform-independent way to do this with the preprocessor I'd much rather do it that way instead. Any ideas?


Select a single row when item categorised in two specific categories [MySql]

can I return a single instance of a row after using a join on a categories table.   Entries  | id | Name   |  | 1  | Johnny | | 2  | Steve  | | 3  | Bam    |   Categories  | cat_id | Name        |  | 1      | Season one  | | 2      | Season two  | | 3      | Season three|   Category Posts  | id | cat_id |  | 1  | 1      | | 1  | 2      | | 1  | 3      | | 2  | 2      | | 2  | 3      | | 3  | 1      |   What I want to do is select all cast where members that have been in season 2 and 3, they must have been in both and I only want a single instance returned.   Expected output  | id | Name   |  | 1  | Johnny | | 2  | Steve  |   How would I got about selecting these? I've thought about grouping the user based on their name however because I'm selecting IN ("2", "3") I get some users that have been in two but not three and the expected results are wrong.   Thanks


If I flag a comment from a mod, can the same mod review my flag?


How to compute $\frac{d}{dt} \int_{a(t)}^{b(t)} f(x,t) dx$

I want to differentiate $ \int_{a(t)}^{b(t)} f(x,t) dx$ this integral with respect to $t$ $i.e$,   \begin{align} \frac{d}{dt} \int_{a(t)}^{b(t)} f(x,t) dx \end{align}  I only know for the case of constant $a,b$. For this case how can i differentiatie?


Capitalize common noun when it follows a list of proper nouns?

If I'm listing a series of proper nouns (like the names of counties) that all require the same common noun to follow (like the word 'county') should I capitalize the common noun at the end of the list?   Some examples:   "I traveled to Cook, Fulton, and Columbia Counties" or "I traveled to Cook, Fulton and Columbia counties" "I swam in the Pacific and Indian Oceans" or "I swam in the Pacific and Indian oceans"


Is it safe to drink tap water in Germany?

I just arrived in Germany for the 4th time. I made tea in break of the work meeting, and at the very end of it, I found small solid pieces... I thought that the cup was too old and maybe was starting to lose its "material". A guy told me that this because of the water being "too heavy" here in Germany, and he doesn't drink it, but filters the water through a machine, and then drinks it.  During my first trip, I asked if it is OK to drink tap water in my hotel, and they said yes, but we don't drink it, we buy mineral water from the market. And from all the people I have asked here, this is what I get as an answer, more or less.  My mother told me that the water in Germany is not drinkable, because it has too much iron. I think here they call it kalk, which seems to be some metal in any case.  The knowledge of my mother is likely to be outdated, and while searching the Internet, I see that the situation has changed across the years, and that now it's safe to drink tap water, which contradicts what people say in real life. I am very confused.  So, is it safe to drink tap water in Germany? Nobody gives a boolean answer which makes me worry! If area matters, we travel in Munich and nearby towns, all parts of Bavaria.


` those backticks don't work if there's a space `

Markdown:  ` those backticks don't work if there's empty space `    Rendered:  those backticks don't work if there's empty space   Markdown:  `those backticks work without space`    Rendered:  those backticks work without space   At least in the comment section of webapps.SE, they seem to be working here in post. maybe a bug? I guess in any comment section


Once a version of Ubuntu crosses EOL, can no more packages be installed on it?

I understand that the official ubuntu website says:     When an Ubuntu release reaches its “end of life” it receives no further maintenance updates, including critical security upgrades. It is highly recommended that you upgrade to a recent version of Ubuntu at this point.   Does it mean that I cannot install anymore packages?  I am using Ubuntu 12.10 (EOL - May, 2014).  When I tried to install tmux, doing  sudo apt-get install tmux   The terminal read:  Reading package lists... Done Building Dependency Tree Reading state information... Done E: Unable to locate package tmux


Is the sum of the first $n$ primes a prime infinitely many times?

Define the sequence $P(n)=\sum_{i=1}^{n}p_i$, where $p_i$ is the $i$-th prime number.  I observed for some small $n$ that sometimes this sum evaluates to a prime number, for example $P(2)=2+3=5$ and $P(4)=2+3+5+7=17$ and $P(6)=2+3+5+7+11+13=41$.  So it is natural to ask:     Is it true that there is a sequence of natural numbers $\{n_i:i \in \mathbb N\}$ such that all numbers in the set $\{P(n_i):i \in \mathbb N\}$ are prime numbers?


I have a computer with Windows 8 and I want to delete it and install Linux (I know you can have both instaled, but I want to have Linux only) The question is: Could I reinstall it  later? (I know I could use some eye-parched version, but having the official license...)


Make short timelapse movie from long boring movie?

I have an .mp4 file to turn into a timelapse movie.  How can I encode every n frames from the source movie into a new movie file, preferably using ffmpeg?  Solutions that extract a bunch of stills from the original and then re-encode are not OK, it will use too march hard disk space (but solutions that just use temporary images one by one and pipe them in are OK)  I found the following video filter:  ffmpeg -i in.mp4 -vf select='not(mod(n\,25))' out.mp4  But it seems to need tweaking, my output video is now still the same length but with a very slow framerate.


I have a quick question. Looking at the next GIF that I made, what is the quickier way you can come up with to delete the excess material that goes beyond the wall? It is basically the attachment of the handrail to the wall what is giving me this "problem".    My solution would be using the boolean modifier with a cube or something, so obviously I know how to do it. But I'm looking for the best solution, i.e., does Blender let me select the excess material in any way? For example, is there a quick way to intersect those planes? I read about intersecting planes in Blender and seems like a difficult task (not worth it in this case). So I discarded that solution.  Thanks.


Does there exist any continuous bijection between [0,1] and (0,1) and between [0,1] and IR?

We know that there are bijections between $[0,1]$, $(0,1)$ and $\mathbb{R}$. But my question is can we obtain a continuous bijection between $[0,1]$ and $(0,1)$, and between $[0,1]$ and $\mathbb{R}$?  I think there will not exist but I am not sure.


What should be the ideal saddle height of my bike if I'm 5'10" foot and using a 29" flat bar bike?


The unique style of the diagrams at  has an informative but nice hand-drawn touch. I guess they are actually drawn by hand but just recently on our partner site for Mathematica someone asked how to draw a similar diagram such as this one with Mathematica's plot functions ().    Now without Mathematica this should be possible as well but I have a hard time getting the details right. Can such a diagram be created in TeX with a similar design? My first attempt does not look particularly great but here it is (the font is from ):      \documentclass{standalone}     \usepackage{tikz,color}     \usepackage{pgfplots}     \usepackage{fontspec}     \setmainfont{Humor-Sans}      \begin{document}     \begin{tikzpicture}     \pgfplotsset{every axis/.append style={line width=1pt}}      \begin{axis}[%         axis x line=bottom,         axis y line=left,         xtick={1.2, 2.9, 4.5},         xticklabels={-3 days, -1 day, 5 minutes},         yticklabels={}     ]     % 1st plot     \addplot [cyan!80!white, samples=200, domain=0:6] {0.05*rnd+3+(sin(deg(x))^2)/sqrt(x)*exp(-(x-2))};     % white background for 2nd plot     \addplot [white, samples=200, domain=0:6,line width=4pt] {0.05*rnd+0.4*x+2+x^2*sin(deg(x))^2*exp(-x)};      % 2nd plot     \addplot [red!80!white, samples=200, domain=0:6] {0.05*rnd+0.4*x+2+x^2*sin(deg(x))^2*exp(-x)};      \end{axis}       \node at (2.7,4.6) {downhill};     \draw  plot[smooth, tension=.7,line width=2pt] coordinates {(1.2679,5.5206) (1.9454,5.493) (2.4017,4.9261)};      \end{tikzpicture}      \end{document}


When a user selects a specific option in a picklist, we need an pop up to alert them of their choices ramifications and to allow them to continue to save or not to save the document.  How to approach this?


Changing only non-admin players' gamemode

When a player joins the server, this command block (containing gamemode 2 @a) puts them into gamemode 2/adventure mode. How can I change this so that only non-admin/not "opped" players' gamemode gets changed?


How to split a string (input) and each section used as a dictionary value?

So I want to write a program that checks if the DNA is mutated or not, i'm not quite sure how to explain this, so this is what it says:  Write a program to determine if a patient has a mutation in their DNA sequence which results in a change of amino acid sequence. Your program should work like this:  Enter original DNA: AAT Enter patient DNA: AAC The patient's amino acid sequence is not mutated.  Enter original DNA: AATTGTTCTTCT Enter patient DNA: AACTGCAGCTCA The patient's amino acid sequence is not mutated.  Enter original DNA: TGTCATGCCTTATTAGAAAACGGTGAG Enter patient DNA: TGTCATGTCTTATTAGAAAAAGGTGAG The patient's amino acid sequence is mutated.   And this is part of the text file I use:  The mappings from codon to amino acid are available in a file, called codon_amino.txt, an excerpt of which is shown here:   AAC N AAG K AAT N GCG A GCT A GGA G GGC G GGG G GGT G   So this is my code so far:  n = {} for line in open('codons.txt'):     codon, codons = line.split()     n[codon] = codons   org = input('Enter original DNA: ') pat = input('Enter patient DNA: ')  if n[org] == n[pat]:     print("The patient's amino acid sequence is not mutated.") else:     print("The patient's amino acid sequence is mutated.")   So my code works OK with the first example, where there are only 3 letters being used, but the next two have more than 3, and I was wondering how I could manipulate my code to work with that too? I hope someone understands this question. Thank you in advance!


I have installed Pycharm on Ubuntu 14.04 using  useful guide. However the installation is the Community one and I'd like to get the Pro version for which I have a licence.   Is there any way to upgrade or is it a case of uninstall and then follow  guide which is much more hassle, but compatible with the download available at the Jetbrains site.


Looking for a comic hardback book about an alien ship crashed on earth and a giant humanoid pilot

When I was about 10 I read a great comic hardback.  the story based around the discovery on earth of a crashed alien ship, with a giant human pilot.  I clearly remember a scene where the giant humanoid was on display and scientists on earth were discussing his biology.  There was also a book which needed to be translated and when one of the scientists finally managed to do it, it told the story of three brothers who formed a great city but ultimately fought each other.  The strip had a 1930 to 40s feel and it may have been European, I would love to be able to read it again.


How should I respond to such a question?

M: Amy doesn't speak Korean, right? W: No,* she does speak Korean. She has lived in Korea for three years! M: Amy doesn't speak Korean, right? W: Yes, she does speak Korean. She has lived in Korea for three years!


Why is it not possible to resize ExFAT partitions?

I wonder why no partition editor allows you to shrink or enlarge exFAT partitions without having to actually delete it and make it again.


What is the difference between a process and a thread?

What is the technical difference between a process and a thread?  I get the feeling a word like 'process' is overused and there are also hardware and software threads. How about light-weight processes in languages like ? Is there a definitive reason to use one term over the other?


Data Recovery - How to Restore Deleted / Formatted Files on HD Micro SD Card

Background:    I put in a friend's SD Card to format it because it was having problems. Then I put mine back in and I think my phone formatted my SD Card. I had a ton of pictures on there that are now gone! I put the card into the computer and there's only 2mb of cache files on there and none of the original directories.   I already tried the following freeware recovery applications:         Neither of them were able to retrieve any files. Undelete took 1minute to scan for files and came up with 0 files.  Recuva took 10 minutes for their "deep scan" which doesn't seem thorough enough at all for this 8GB SD Card. I need something that's a lot more heavy duty.  I don't mind paying for an application to get the data back if necessary...   Questions:     Which application can I use to recover my deleted picture files from my 8GB HD Micro SD Card?   Why did Anroid format my SD card?   How can I tell if it's a phone problem, data problem, or SD Card problem?


A sequence that converges normally but not uniformly

Consider the sequence of complex-valued functions $f_n(z)=z^n$, for $n=1,2,3,\dots$. How to show that this sequence does not converge uniformly to $f(z)=0$ on all of the unit disc. However it converges uniformly in every compact subset of the unit disc to $f(z)=0$?


I was able to use the following new environment to number the examples automatically quite conveniently  until yesterday when I updated TeXstudio to version 2.12.8. That is, I only needed to type \begin{in to get the suggestion of this environment and then hit Enter to insert it to the text body. This trick no longer works. Pleases help.  Thanks in advance.  \newenvironment{inlineexample} {\par\vskip\medskipamount     \refstepcounter{theorem}%     {\usebeamercolor[fg]{block title example}\translate{Example}~\theexample}:} {\par\vskip\smallskipamount}


Finding a formula for $1+\sum_{j=1}^n(j!)\cdot j$ using induction

I need help with finding the formula and proving it by induction. Am stuck, but the professor says we should know this by now.     Find the formula for $1 + \sum \limits _{j=1} ^n j! j$, and show work proving the formula is correct using induction.


How can I find which Homebrew package a certain file/binary belongs to (if any)?

I often find myself forgetting what I installed to get a certain command.  On my Arch machine, I can simply run pacman -Qo $(which <command>) and it finds the associated package.    Does anyone know of a way to do this using brew?


ECHO'ing quoted variable from SQL SERVER

What alternatives could I use when displaying quotes " from my SQL Server database? Something that works like *_real_escape_string?  E.g.  $row['details'] has a value of "This is my quoted sentence"   Simply ECHOing this gives:  �This is my quoted sentence�   And I want it to go like this:  "This is my quoted sentence"


How do I install Windows XP on a computer without cd drive?

I need to install Windows XP on a computer without a CD drive I have the following in mind Please suggest on whether it is feasible or not, or if it cannot work for some reason, what else I can try The computer can be booted with USB, and I have the windows XP installation files with me I want to copy the windows XP installation files to the D: of the computer (computer has 1 physical HDD, partitioned into C and D, with Windows XP currently on C: )    This is what I intend to do:    I will create a DOS (or FreeDOS, what ever I can manage) bootable USB, boot in tot the computer with the USB, go to the folder in D drive with the Windows XP setup file, and launch Windows XP setup winnt32.exe from command line    Will this method work? Can FreeDOS launch Windows XP setup, or do I have to make sure I get a version of MSDOS? Will any version of MSDOS work? Once the Windows XP setup is launched in this manner, does it still expect a Windows XP CD to be present on the cd drive? Can this cause any problems during setup?    Please help. Thank you.


Flashing question mark appears after wake from sleep when charging Macbook Pro

My laptop is a Macbook Pro 2017 non-touchbar. When the Macbook goes into sleep mode while it charges, most of the time the flashing question mark appears when I try to wake it up. I can't do anything but to force shutdown when this problem occurs. If I don’t plug in the charger and it goes into sleep mode, everything is normal when it wakes up.


How long will the Universe's hydrogen reserves last for?

I recently became really interested in learning about physics and cosmology, but I still know very little. Hopefully someone with more knowledge will be able to shed some light on my questions.  Here are my presumptions (please correct me if I'm mistaken):   $t_{0}$: Big Bang. The Universe expands (and thus cools) sufficiently to allow the formation of atoms. The early Universe mostly consists of Hydrogen and is not uniform in its geometry. Gravity pushes lumps of matter together until their density (temperature) is so high that nuclear fusion kicks off. The first giant stars are born. Some heavy elements are created in these stars and when they explode, sufficient temperatures are reached to form heavier elements still. All of the successive stars and planets are the product of these original stars.   My questions:   If the amount of Hydrogen is finite in the Universe and each successive generation of stars use up most of their Hydrogen, what is the theoretical maximum number of generations of stars that our Universe can support? A ballpark figure in terms of years is fine too. ;) Are there some special physical processes that occur in the Universe on a large enough scale that are able to break up heavy elements (i.e., Helium) into lighter elements (i.e., Hydrogen)? Kind of like a cosmic recycling operation. If we discount the possibility of a Big Crunch, is the Universe pretty much headed into a time when there will be no more stars and only a bunch of black holes, planets, and other debris?


Better linux version for Dell Optiplex 780

I just got this Dell Optiplex 780 and I'm wondering which linux/ubuntu to install on it and where to find it. Mr. google offered no help to me in this case. + How do I know if it should be 32-bit or 64-bit?


Let $A$ and $B$ be two fixed points on a fixed straight line. Two circles touch this line at $A$ and $B$ respectively and tangent to each other at $M$. When the circles vary, what does the locus of $M$ form?


comma delimited list as a single string, T-SQL

My T-SQL query generates following result set  ID        Date 756 2011-08-29 756 2011-08-31 756 2011-09-01 756 2011-09-02   How can I convert like this  ID                Date 756 2011-08-29, 2011-08-31, 2011-09-01, 2011-09-02   Any suggestion would be appreciated.


I was wondering if someone could tell me what to do with a downloaded Torrent file.


I'm getting a null pointer exception at line   if(names[j].compareTo(names[j+1]) > 0)   and I can't figure out why. It might have something to do with the initialization but I really don't know what it could be  public static void item3(Profitable[] movies, Scanner input) {     int j;     boolean flag = true;     String temp;     String search;     int low = 0;     int high;     int mid;      String[] names = new String[6];      for(int i = 0; i < 5; i++) {         names[i] = ((Movie)movies[i]).getTitle();     }      high = names.length - 1;     mid = (low + high) / 2;      while(flag)     {         flag = false;         for(j = 0; j < names.length - 1; j++)         {              if(names[j].compareTo(names[j+1]) > 0) {                 temp = names[j];                 names[j] = names[j+1];                 names[j+1] = temp;                 flag = true;             }         }     }      System.out.print("Enter your search term: ");     search = input.nextLine();  }


We all know that mostly stars are at the center of planetary systems, but is it possible that instead of a star there was a rocky planet in the center with stars (and other planets and moons) orbiting it?  To be more concrete: Is it possible for a star to have the same mass and radius as e.g. the Moon and orbit a planet like Earth at the same distance (at which Moon orbits Earth in actuality)?  To further distinguish this from similar questions, I want to further ask whether the star will still be able to shine and fuse hydrogen if its mass and radius would be the same as the mass and radius of the Moon. Or is there a lower limit to the size of a star that can shine and fuse hydrogen?


How does a bicycle remain stable when in motion?

I could understand it at a theoretical standpoint but how can one represent the dynamic stability of the bicycle mathematically using a vector diagram ?


Prove that $\lim\limits_{n \to \infty}\frac{x^n}{n!}=0$

Well I can Intuitively see that.  I am wondering If there is a neat way to prove that


Install root certificate authority on Ubuntu

First off I am not sure whether I have the correct terminology. What I mean by certificate authority is a verified certificate distributor such that if I goto a website in my Browser that is HTTPS (with an SSL certificate) it doesn't give a warning that it might be unsafe.  There is two things I need to do here.  I have a Windows XP machine and a Linux Mint (Ubuntu 14 base) machine. The Windows XP machine has a certificate authority installed such that it authorizes use of certificates it distributes so that I don't get any warnings in my browsers. I need to extract this from the Windows XP machine  Second, I need to "install" this onto my Ubuntu machine such that it when I visit a website via any browser on my Ubuntu machine that has a certificate issued by the CA, that I don't get  a warning/have to add an exception.  I hope I have asked the question properly - please say if you don't understand.


I want a piece of code to be monospaced. So I do the following. Commands are highlighted in Eclipse. But as soon as I type \verbatim all inside and the color of the command itself become gray.  \begin{verbatim}   public class main {  public statik void main (string[] args){      for(int i = 0; i < arg.length; i ++){          System.out.println(args[i]);      }    }  };  \end{verbatim}   The following packages are included. \usepackage{verbatim} \usepackage{alltt}  What am I doing wrong?


Is there a specialized Pdf viewer for Latex-Beamer presentations on Linux?

Most of the time when presenting a talk people connect their laptop to a video projector. So they effectively have an extra screen at their disposal. Because of that many Software options for presentations use the extra screen of the laptop to display notes, time left for the talk, a preview of the next slide and such information to the presenter.  I'm using LaTeX-Beamer which outputs a pdf. I'd like to have notes, a preview of the next slide and the time I have left for my talk displayed to me on the laptop screen, while the projector shows the regular presentation slides.  Ideally this program should work under Linux (Ubuntu 12.04). Does such a program exist?


Ideal charging / discharging percentage for maximum battery life?

One of my friends has a relatively new Samsung smartphone. He has this app that notifies him whenever the charging is up to 80%, and tells him to unplug the charger.  He tells me that it will increase the number of charging cycles for his battery. He says that if he lets it charge all the way up to 100%, it will mean he has to replace the battery of the phone more often.  Is this true?  Somehow, I feel this is a thing of the past. I thought the internal architecture of batteries these days was made so that it wouldn't drop too low or too high. (In other words, when the phone is at 100%, it isn't really 100%. It's what the battery can safely be charged to in order not to degenerate too much.)  Here's a  which taught me something about this.


This is my assumption: Is this function $F(h)$ continuous? $$F(h):=\sup_{x\in [a, h]} f(x)$$  where $f(x)$ is continuous in $[a, b]$ and $h\in[a,b]$.  I think this function is continuous. But I don't know how to prove.


Why I am not allowed to delete more than 5 answers in a day

I want to cleanup my answer due to whatever reasons.  I get an error something like I have already deleted 5 post......  Why is this restriction.


I have a Dell laptop with fingerprint reader inbuilt. I just ran lsusb on terminal and got the following result:   Bus 002 Device 003: ID 138a:0011 Validity Sensors, Inc. VFS5011 Fingerprint Reader Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 003 Device 002: ID 046d:c077 Logitech, Inc. M105 Optical Mouse Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 001 Device 004: ID 05ca:1820 Ricoh Co., Ltd Integrated Webcam Bus 001 Device 003: ID 0a5c:21bc Broadcom Corp. BCM2070 Bluetooth 2.1 + EDR Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub   Is it possible to use fingerprint scanning instead of traditional login with 16.04 and Unity ? Thanks.


The following    \usepackage{hyperref}   \newcommand{\mylink}{\href{http://foo.edu/level%20one.html}{Answer}}     gives an error because of the % sign. Is there a work around?


Sometimes ago I installed ubuntu on a drive which is not windows drive, but today Iformatted my windows drive to re-install windows, unfortunately I can not access to ubuntu? please help me!


Yum install php-pecl-memcached - No package found (Have epel-release-6-8.noarch.rpm)

I believed I've downloaded and updated the EPEL rpm but I can't install php-pecl-memcached.. I'm very new to this, any help is appreciated.  #rpm -Uvh epel-release-6-8.noarch.rpm warning: epel-release-6-8.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID 0608b895: NOKEY Preparing...                ########################################### [100%]         package epel-release-6-8.noarch is already installed  # yum update Loaded plugins: fastestmirror, security Loading mirror speeds from cached hostfile  * base: mirror.us.leaseweb.net  * epel: mirror.symnds.com  * extras: mirror.ash.fastserv.com  * updates: mirror.vcu.edu Setting up Update Process No Packages marked for Update   #yum install php-pecl-memcached Loaded plugins: fastestmirror, security Loading mirror speeds from cached hostfile  * base: mirror.us.leaseweb.net  * epel: mirror.symnds.com  * extras: mirror.ash.fastserv.com  * updates: mirror.vcu.edu Setting up Install Process No package php-pecl-memcached available. Error: Nothing to do


How do we get question “owners” to close their question as a duplicate?

I often see comments like:     possible duplicate of XXXX May 27 '13 at 0:35   @abc Thanks, that's exactly what I was looking for.   The question is then left with 1 close vote.  When I review the question in the close queue, as the question has no answers etc and the “owner” has confirmed the “possible duplicate” is correct, I just vote to close as a duplicate without even checking if it is.   There must be a way to prompt the question owner to confirm the duplicate is correct and at least capture 1 close vote from the owner – maybe that vote should be binding, so that no one else need to close vote the given question.  Maybe there should me a message displayed only to the question owner at top of the question like.     This question may already have an answer here:   Grant the OP a binding close as duplicate vote in the new UI 3 answers   Does this fully answer your question? [Yes] / [No]   Perhaps, suggesting that the user can improve their question by providing additional details if they chose [No]. Maybe the question owner could also be given +2 rep in the same way as when they accept an answer.    I don't consider  to be a duplicate as I am asking a wider question,however some of its answers add to the discussion on this question.


update-grub fails /usr/sbin/grub-probe: error: failed to get canonical path of '/cow'

The HD of my computer (/dev/sda) has 3 partitions (/dev/sda1, /dev/sda2, /dev/sda3), each containing a copy of Windows Vista Ultimate (restored from a Clonezilla partition image).  Using an Ubuntu LiveCD (15.04), I successfully installed Grub2 in the MBR of the HD using the following commands:  #sudo su #mkdir /mnt/sda1 #mount /dev/sda1 /mnt/sda1 #grub-install --root-directory=/mnt/sda1 /dev/sda "Installation finished. No error reported."   Running os-prober output the following:  #os-prober /dev/sda1:Windows Vista (loader):Windows:chain /dev/sda2:Windows Vista (loader):Windows1:chain /dev/sda3:Windows Vista (loader):Windows2:chain   However, when I attempt to run update-grub (to generate a grub.cfg file), I receive the following error:  #update-grub /usr/sbin/grub-probe: error: failed to get canonical path of '/cow'.   Can anyone please tell me how I can get update-grub to work using the Ubuntu LiveCD?  If possible I would really like to avoid building my grub.cfg file completely from scratch.  Any and all help greatly appreciated!


Show that $\lim_{n\to\infty}\sum_{n=k}^{2n}\frac{1}{k} = \ln 2$

I would like to show that $$\lim_{n\to\infty}\sum_{k=n}^{2n}\frac{1}{k} = \ln 2.$$ Any tips on how to go about it? I feel like I should use the squeeze theorem but I fail to find convergent lower and upper bounds.


For every $n \in \Bbb Z$, prove there exists $a, b \in \Bbb Z$ such that $n = 5a + 2b$

I was thinking of breaking the $n$ into two cases: one where $n$ is even and one where $n$ is odd. Can anyone give me a hint on how to proceed from here?   Thanks.


Why does this test fail?  import re def test_Items():     items = '''     - item     - item     '''     list_regex = re.compile(r"^- .*\n", re.MULTILINE)     assert list_regex.match(items)   I'm having a hard time understanding the error message:  E       AssertionError: assert None E        +  where None = <built-in method match of re.Pattern object at 0x7f8df4dbe240>('\ n    - item\n    - item\n    ')                                                           E        +    where <built-in method match of re.Pattern object at 0x7f8df4dbe240> = re.co mpile('^- .*\\n', re.MULTILINE).match


I have two Wifi adapters connected to my desktop: a PCI express TP-Link adapter, which is crap, and a USB Netgear adapter. I don't feel like manually taking out the PCI-E adapter, so how can I set the USB one as the default, and disable the internal one?


I see home sound systems rated at 300w, etc. but a 50w guitar amp is massively louder. I assume that the first one is some useless marketing rating, but how are the two figures calculated to be so different?


How does one prove that $\frac{1}{2}\cdot\frac{3}{4}\cdots \frac{2n-1}{2n}\leq \frac{1}{\sqrt{3n+1}}?$

I would like to show that $\frac{1}{2}\cdot\frac{3}{4}\cdots \frac{2n-1}{2n}\leq \frac{1}{\sqrt{3n+1}}$ holds for all natural numbers. I got stuck here:  $\frac{1}{2}\cdot\frac{3}{4}\cdots \frac{2n-1}{2n}\cdot\frac{2n+1}{2n+2}\leq \frac{1}{\sqrt{3n+1}}\frac{2n+1}{2n+2}.$  I would appreciate your help.


Maximum weight an average bicycle can carry?

A few years ago, I've bought  (see edit) bike. At that time I was around 90 kgs and I didn't have any problems.  Today I'm around 120 kgs and I was considering (among other things) starting cycling again. Is this bike "good" enough to carry me? What should I expect? Any tips?  EDIT! Apparently, Drag have renamed some of their bikes in the last few years, so the above information is a bit wrong.  seems to be my bike. At first I didn't recognize much difference, but this one has suspension on the front which mine also has. Does this change anything


MLE of a parameter that lies in a certain range

Suppose $X1$ and $X2$ are iid Bernoulli random variable with parameter $p$ where it is known that $1/3<=p<=2/3$. Find the maximum likelihood estimator $p*$ of $p$ based on $X1$ and $X2$. I could find the MLE and it doesn't include the fact anywhere that the parameter $p$ lies in a certain range. How do I proceed?


2.82a Quad View: Sidebar Region Display "missing"?

I'm trying to have a bit more control of the views while in Quad View (change view. rotate, etc...). I was reading that the controls for unlocking the views in Quad View were in the Display tab of the Sidebar Region - that is from the 2.82 docs. That does not seem to be the case for me. While in Quad View I press "N" and the only tabs available are Tool, View & Edit. Has the Display settings been moved recently. I've had a pretty good look around and don't see any options for unlocking the views. I've tried resetting to factory defaults and still no joy.  Googling brings up older articles pertaining to 2.7*. Thanks! Daf


How do you add integer arrays to an arraylist?

So, I am doing an assignment in a first-year CompSci class, and this array assignment is a little beyond me. I have worked with arrays and arraylists a bit in the past week or two, and for the most part i've been successful, but this assignment is giving me a class (TestArrays) that holds integer arrays, and is asking me to write the code for a class that creates arrays of that TestArrays object. Here is the code I was provided: public class TestArrays {          private int[] testArray;               public TestArrays()     {         testArray = new int[10];         generateRandomArray();     }          public void generateRandomArray()     {         for(int index = 0; index < testArray.length; index++)         {             testArray[index] = (int)(Math.random()*10 +1);         }     }          public int[] getArray()     {         return testArray;     }  And here is the code that I have attempted to write: import java.util.ArrayList;  public class TestArrayLists {     private ArrayList<TestArrays> testArrayList;     /**      * Complete the contructor for the class.  Instantiate the testArrayList      * and call the fillArrayList method to add objects to the testArrayList.      * @param numElements The number of elements in the ArrayList      */     public TestArrayLists(int numElements)     {         fillArrayList(numElements);     }      /**      * Complete the fillArrayList method.  It should fill the testArrayList with       * TestArrays ojects consisting of 10 element int Arrays of random numbers.      * @param numElements The number of elements in the ArrayList      */     private void fillArrayList(int numElements)     {         TestArrays testArray;         for(int i = 0; i < numElements; i++)         {             testArray = new TestArrays();             testArrayList.add(testArray);         }     }             /**      * For each TestArrays object in the testArrayList,      * print out the numbers in the int Array.      */       public void printArrayList()     {         for(int i = 0; i < testArrayList.size(); i++)         {             System.out.println(testArrayList.get(i));            }     } }  I get a null pointer exception when I try to run fillArrayList(), which I know means that I didn't instantiate the testArray properly, but the testArray constructor is supposed to do that (i think) and nothing that I have tried has worked. I would prefer if you didn't just give me the code that I need to do this right, because although i'm sure its an easy fix that I am just not far enough to know about, I would prefer to know how to do this for the future as well. If you would be willing to explain to me what you're doing, I would really appreciate it. Thank you for time.


Suppose that a group $G$ has an involution, then it has an odd number of involutions   My attempt:  Suppose that $g\in G $ is an involution: $g^2=e.$ Consider an element $h$ ($\ne g, e$) in $ G$ of order 2. Then we know that $ \langle g \rangle =\langle h \rangle$ or $\langle g \rangle \cap \langle h \rangle = 1$. So $S:=\{\text{all involutions of } G\} $ is the union of cyclic subsets of order 2 that intersect at the identity element. Therefore, $ |S|=\frac{|G|}2 + 1.$ (adding an extra 1 for the identity element). Order of $ G$ is even, since it contains an involution, this the first term is an even positive integer. This proves that there are an odd number of involutions.   Now, I'm not completely sure about the first term in my solution. This term should represent the number of different subsets of order 2 in $ G$, but I don't think that this is the way to compute it. Does anyone know how to?  Thanks.


How align the qedsymbol after of a big formula in display mode?

Description of the problem My problem is this. For the proof of a math theorem i use the proof environment of the package amsthm. It adds a \qedsymbol in the last line of the proof, but if the proof ends with a displayed formula the qedsymbol appears in the next line leaving an unwanted blank space. The documentation of  teaches to fix this problem placing the command \qedhere after of the displayed formula but inside of the appropriate environment. This works well if the formula is of one line like \[ax^2+bx+c=0.\qedhere \]  but if the proof ends in a matrix, or cases with a "great height" the qedsymbol is fixed in the baseline at right and it this looks higher than expected (for my taste). The result is showed in this MWE \documentclass{article} \usepackage[width=7cm]{geometry} % Only for reducing space in this MWE  \usepackage{amsmath} % For `bmatrix` \usepackage{amsthm} % For `proof` environment \begin{document} \begin{proof} And this proof ends with \[ \begin{bmatrix}     1 & 0 \\     0 & 1 \\     0 & 0 \end{bmatrix}.\qedhere \] \end{proof} \noindent Text \end{document}  that produces  What I want I'd like something like  with the qedsymbol aligned with the bottom of the matrix. Is this possible?


A situation where the adjective being used to describe the noun is actually the opposite of the adjective being used

Forgive me, for I am not very eloquent.   If someone were to tell a bad joke  but in the given scenario it got some laughs and could be recounted as a “good joke” then the joke was _____.   On the surface and out of context, the object of the sentence (in this case the joke) was bad, but in the given situation it was actually good, what would be a word to describe that?   When something could be described as one thing, but in a certain situation it is exactly the opposite. It would be _____.


Wifi automatically disconnects in edubuntu 14.04.5

Wifi signal is very low in ubuntu and if i connect it will automatically disconnects after a few minutes please help me to solve this problem.  $ lspci -knn | grep 0280 -A3 – 0d:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. RTL8723BE PCIe Wireless Network Adapter [10ec:b723]      Subsystem: Hewlett-Packard Company Device [103c:804c]      Kernel driver in use: rtl8723be


What's the Best Way to Shuffle an NSMutableArray?

If you have an NSMutableArray, how do you shuffle the elements randomly?  (I have my own answer for this, which is posted below, but I'm new to Cocoa and I'm interested to know if there is a better way.)    Update: As noted by @Mukesh, as of iOS 10+ and macOS 10.12+, there is an -[NSMutableArray shuffledArray] method that can be used to shuffle. See  for details. (But note that this creates a new array, rather than shuffling the elements in place.)


How would I go about installing Windows 8?

I purchased this laptop a year or so ago and immediately switched to Ubuntu since it was faster and did everything that I needed it for faster.   Except now I would like to dual boot, but can't figure how to hell to run a program to install Windows 8 on a different partition. I don't have the code itself (it's tied to the motherboard), and MS has removed the option for a bootable Win 8 disk. Every other executable I've found (even trying to get Win7 through less than proper means) doesn't work on Ubuntu.


Generic type usage with std::initializer_list

I cannot manage to understand why g++ keeps complaining about iter?  vector.cpp:42:8: error: ”typename” needed before ”std::initializer_list<_Tp>::iterator  This is the code:  template<typename T> Vector<T>& Vector<T>::operator=(std::initializer_list<T> list) {    if ( list.size() > 0 )    {        clear();         for( std::initializer_list<T>::iterator iter = list.begin();             iter != list.end(); iter++ )         {            push_back(*iter);        }    }     return *this; }   Kind regards


Why is lets say HOME recognized by all my scripts but my variable DMENU isn't? I export it in my bspwmrc file which is executed at start up.Also had it in my zshrc. Why do this? DMENU="-h 27 -z 940 -y 4 -x 210 -i" I want to have this variable in my scripts so if later I want to change something I don't have to manually change all my scripts. Could it be that the shebang is #!/bin/sh pointing to dash ? How do i set a global variable then?


If I just use basename {} .txt, it will work:  find . -iname "*.txt" -exec basename {} .txt \;   It will just print xxx instead of ./xxx.txt  if I want use $(basename {} .txt) in the -exec option, it will fail:  find . -iname "*.txt" -exec echo "$(basename {} .txt)" \;   It will just print ./xxx.txt  How can I solve this problem? I hope I can use $(basename {} .txt) as parameters for other cmd. Do I have to do sh -c or pipe -exec basename {} \; with xargs?


How to find what programs are reading my file?

I have a configuration file and want to learn what executables are using it (if any).  I want to catch who is the reader of this file.  If I watch with some interval, I miss it, because the read happens so quickly:  watch -d -n 1 "lsof /home/me/my.conf"   If I try to execute the program I'm pretty sure uses it under the auspices of strace, it fails because of the additional delay strace introduces.  strace -o /tmp/$(date +%s)_myprog.trace myprog   How can I reliably prove that myprog is NOT reading this file?


accountsd process uses all CPU - AMSAccountStoreCache error

the process accountsd is using more than 300 % of my CPU. The error messages in the console that appear are:  AMSAccountStoreCache: [AF547297] An ACAccountStore has no associated media type. Returning the default media type for the current process. accountStore = AMSAccountStoreCache | defaultMediaType = com.apple.AppleMediaServices.accountmediatype.itunes "Cannot check access to a private account type: com.apple.account.AppleAccount"  What I already tried from other questions:  Remove Mail accounts Remove calendar accounts Stop Spotlight from indexing your HDD Kill AppleSpell and delete Spelling folder  Still the same error. Any ideas? Thanks!


Consider the large calculation given below  echo  999999*999999999;   This returns 9.99998999E+14  Is there any way to get the the whole number 999998999000001 instead of the Exponent form?  Please help . Thanks in advance.


How was Snape useful for the Order after the resurrection of Voldemort?

Between the return of Lord Voldemort at the end of book 4, Goblet of Fire, and the end of the series, how was Snape useful for the Order of the Phoenix in fighting against Voldemort?


Software update not working Ubuntu 20.04

I just upgraded to 20.04 on Dell Vostro 1510 laptop Tried to install wine and an application but things have gone wrong!Software won't update from Software updater and I can't remove the Wine packages from Other software it just hangs and gives the same message I get when - see the next bit Tried an update and got the following message in Terminal E:Malformed entry 52 in list file /etc/apt/sources.list (Component) E: The list of sources could not be read.  I gather I need to purge the sources list? but don't know how to go about it


How do i solve this limit? It's about $\frac{\sin(x)}{x} = 1$ and $\frac{1-\cos(x)}{x} = 0$

$$\frac{\sin(x)}{x} = 1$$ and $$\frac{1-\cos(x)}{x} = 0$$  I can't come up with any solution. Could you please help me?  Also: $$\lim_{x\to 0} \frac{1-\cos(x)}{\tan(x)\sin(x)}$$


What is the difference between Fragile and Robust commands?

So I've read a few times about this, the “moving arguments” and all that. But what does it really mean? Could someone explain in a few words what is going on at the TeX level, what is the difference between these two kinds of commands? Furthermore, when do we need to use \protect and why?


I'm creating a database this way:      $db=new PDO('mysql:host='.$db_host.';dbname='.$db_name.';charset=utf8',$db_user,$db_pass,array(     PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC,     PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION,     PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES utf8"));   and at some point I want to insert a string in a table containing strange characters, using prepared statements. for example      $title='vélo';     $db->prepare('INSERT into table (title) VALUES(:title)');     $db->execute(array('title' => $title));   This causes me the string to be stored as v&eacute;lo, even though the whole database,table and entries are encoded as utf8_general_ci.  1)Could I avoid this transformation?  2)If not, how could I then do a case-insensitive search in my database? using       SELECT * FROM table WHERE title LIKE '%velo%'   does not give me any results...


Difference Between PEM vs P12 vs CRT vs JKS vs keystore vs PKCS vs x509 certificates

Sorry noob here. I am so much confused about lot of files used client authentication certificates. Can anyone guide me on the difference between PEM vs P12 vs CRT vs JKS vs Keystore vs PKCS vs x509 certificates?


What's the probability that a given permutation has exactly $k$ fixed points.

Given a random permutation $\sigma \in S_n$ from $[n] \to [n]$ in a uniform probability space, what is the probability that $\sigma $ has exactly $k$ fixed points for a given $k$ between $1$ and $n$?  In other words: what is the probability that $\exists x_1 ,...,x_k \in [n] : \sigma (x_i) = x_i  $ for $\ i\in \{1,...,k\}$ and for every $y \notin \{x_1 , ... , x_k\}$ we get $\sigma(y) \neq y$.  I saw that $\lim_{n \to \infty } prob(A_0) = e^{-1}$ using Inclusion–exclusion principle and i belive that for a given k : $\lim_{n \to \infty} prob(A_k) = \frac{e^{-1}}{k!}$ but I am not sure how to show it.  *$A_k$ stands for the event "k".


Comment disappeared from election but shows in user profile Activity?

A few minutes ago, I posted the comment pictured below on Madara Uchiha's .    Moments later, the comment is no longer visible. Ok, I thought, maybe somebody flagged it and it was removed, but if that was the case it should not .    Can anyone suggest why the comment shows in my profile but not in its intended location? If it was flagged or mod-deleted, I wouldn't expect it to remain in my Activity list.


If I can't delete my own question, why ask us for permission to delete the question?

So I tried deleting a question, my question. I'm not a mod, but I have reputation above 10k. I received this message after hitting delete, asking me to make sure I wanted to:    But after clicking Delete Question, I saw this:    It turns out that because the question has answers, I'm prohibited from deleting it. If I can't actually delete this question at all, could it just tell me immediately, and only show me the warning if I can actually delete it?  This is akin to the following analogy.     You see a flyer in your local paper stating there's a new burger shop   opening.  Great, you think to yourself, and rush over to get yourself   some burgers.  On your way into the parking lot, you see a huge banner   proclaiming one of their newest burgers. You see some employees walk   in and out of the restaurant, with T-Shirt with pictures of burgers on   them.  Great, you think to yourself, and walk in.   You get in line,   and after what seems like ages, you finally make it to the front.  You   look up at the menu.  You see that they also sell sandwiches. No, you   tell yourself, I'm looking for burgers.  You see that they also sell   burritos! No, you tell yourself, I'm looking for burgers.  Then you   see that they sell burgers. Great! You pick out a burger, then tell   the employee at the register, "Sir, I'd like to get a regular burger   please." Immediately, the employee looks up, with a quizzical look on   his face, saying "Sir? We don't sell burgers here.".   It's the same situation. I've come to that prompt so that I can delete a question.  After repeated messages and windows letting me know the consequences of deleting, what will happen after I have it deleted, I am told that the option of having it deleted by my own hand never existed in the first place.


Hilbert once said, “The art of doing mathematics consists in finding that special case which contains all the germs of generality.”  What would be (relatively) simple examples?


What is the meaning "would have" in this sentence?

None of the days in March are the days that I would have gone to office,but for being on annual leave.


check if command succeeded makes shell script very long

I am writing a shell installation script After each command I need to check if the command is successful or not - And I must notify the user what failed. If something fails - installation cannot continue, currently after each command I am adding   if [ $? -eq 0 ]; then     But this adds like 6 lines to every command of the shell script Is there a way to make this checks shorter?  sample:  do some command if [ $? -eq 0 ]; then     echo notify user OK else     echo notify user FAIL     return -1 fi do some command if [ $? -eq 0 ]; then     echo notify user OK else     echo notify user FAIL     return -1 fi


show $p\mid 2^n-n$ for infinitely many $n$

Show that $p\mid 2^n-n$ for infinitely many $n$. $p$ is a prime and $n$ is an integer.    I tried using Fermat's little theorem and got $2^p-p\equiv2\pmod p$ and $2^{p-1}-(p-1)\equiv2\pmod p$. So I can't even find one $n$ that satisfy the condition.   Any helps and hints appreciated. (even just one $n$ that works for every $p$)


While I don't doubt that this question is covered somewhere else I can't seem to find it, or anything close enough to which I can springboard. I however am trying to prove $$\frac{1}{1^2} +\frac{1}{2^2}  + \cdots + \frac{1}{n^2} + \cdots = \sum_{n=1}^\infty \frac{1}{n^2} < 2$$ by induction.  I have seen it many times and proved it before but can't remember what it was I did.  I see that for the first two terms $n = 1, n=2$ I get:  for $n = 1$, $\frac{1}{1^2} = 1 < 2$ for $n = 2$, $\frac{1}{1^2} + \frac{1}{2^2} = \frac{5}{4} < 2$  Now I am stumped, I know I want to show this works for the $n+1$ term and am thinking, let the series $\sum_{n=1}^\infty \frac{1}{n^2} = A(n)$ Then look to show the series holds for $A(n+1)$ But $A(n+1) = A(n) + \frac{1}{(n+1)^2}$  But now what?  If I tried $A(n+1) - A(n) = \frac{1}{(n+1)^2}$ , but would have to show that this is less than $2 - A(n)$.  I am stuck.  Thanks for your thoughts,   Brian


Question about the average number of cycles?

I have 100 cards labelled from 1 to 100. I place this in a row with all the cards face down. On the first turn I flip the first card. Now this card has a number $n$ on it. I then put this card face-up in the $n$-th position, and flip the original $n$-th card. I then continue this process until I eventually get back the card labelled 1. I will call this a cycle. Now I repeat this process by flipping the next card (from the start) that is not yet face up and continue this process until all 100 cards are face up.   After this process is completed, what is the average number of cycles that I obtain? (An example of some cycles could include $1\rightarrow41\rightarrow57\rightarrow79\rightarrow1$, $2\rightarrow65\rightarrow35\rightarrow71\rightarrow2$, $3\rightarrow3$, etc.


Compute $\sum\limits_{n=0}^{\infty}\frac{{x^n}{z^n}}{n\beta + \alpha}$

Known that $\sum_{n=0}^{\infty}{x^n}{z^n}=\frac{1}{1-xz}$.  If we have   $\sum_{n=0}^{\infty}\frac{{x^n}{z^n}}{n\beta + \alpha}$ where $\beta, \alpha $ are element of real numbers but not equal $0$. What is a suitable expression for that summation?


Let's consider an indefinite integral  $$\int \frac{dx}{x\ln x}$$  It can be easily calculated to be $\ln(\ln x)+C$, e.g. via substitution $\ln x=t$ or directly from $\int\frac{f'(x)}{f(x)}dx=\ln|f(x)|+C$. So far so good.  But when integration by parts is employed: $u'=\frac{1}{x}$, $v=\frac{1}{\ln x}$, one gets  $$\int \frac{dx}{x\ln x}=1+\int \frac{dx}{x\ln x}$$  from which $0=1$. Even if we plug an arbitrary constant of integration in the r.h.s. of the last equality, we'll just get that $C$ should be $-1$ for the equality to be an identity (but in general the constant of integration can be put in at the very last step of integration; like  and ), and we'll still know nothing about the integral.  So, my question is: why does integration by parts fail in this case? Are there some assumptions not fulfilled that I have overseen here? An explanation that "it doesn't work so one has to use different methods" is no explanation.


Starting java program and screen with cron at boot

I am trying to run a java program inside a screen session at boot, I am using the following cron, but after reboot screen -ls shows no active screen sessions.  @reboot /usr/bin/screen -dmS myservice "java -jar /home/david/myservice/MyService-0.0.1-SNAPSHOT.jar"   Any idea what I am doing wrong?  EDIT:  I did change it to the following and the screen does start at boot now.  @reboot /usr/bin/screen -dmS myservice && "java -jar /home/david/myservice/MyService-0.0.1-SNAPSHOT.jar"   I added && before starting the java command and not the screen does start at boot. But the program is still not running.  but the program is not running when I attach to the screen. after attaching to the screen all I see is a dollar sign.


Select query, where values have an apostrophe in it

I need to use a select query but my code keeps crashing because some of the names have apostrophes in it. I pull all data into a table and half way through it just stops because it hits a apostrophe.  My select Query:  $query = mysqli_query($dbh,"select * FROM show_invoice where id_show='$get_id' and status='UNPAID' and scratch = 'Unscratched'and show_deleted != 'Deleted' ORDER BY 'class_no' ASC")   There are 3 columns that will possibly contain apostrophes. Any advice on how i can stop it from crashing.


How to upgrade to iOS 5.1.1 on first generation iPad

i have just had this iPad passed down to me. I'm not that familiar yet, I'm trying to download some games, some need iOS 6+ that's fine, but some it tell me I need 5.1.1? I'm probably being daft but I thought that's what I'm on? I'm 1st generation, no frills iPad and am used for web browsing and music/music writing mainly. I have completed the games it had on it already and would like new ones, free new ones lol!    Can you help me please, I've been scanning the web but no joy!                     Thankyou x


If condition not working even when the condition is true

I have been doing the following for a project and could not find the problem with it. I have been trying to find all the mp3 files available in my computer, the code works fine till the if condition if(extension == "mp3")  On debugging I found that the if condition does not execute even when the condition is true.  public class AudioService {      File[] audioFiles;     File[] roots = File.listRoots();     ArrayList<AudioFile> audios = new ArrayList<AudioFile>();         int idIterator = 0;      public List<AudioFile> getLocalAudioFiles() {         for (int i = 0; i < roots.length; i++) {             searchDir(roots[i]);         }         return audios;     }      public void searchDir(File directory) {         File[] filesList = directory.listFiles();         for (int i = 0; i < filesList.length; i++) {             AudioFile af = new AudioFile();             if (filesList[i].isDirectory()) {                 searchDir(filesList[i]);             } else {                 int dotLast = filesList[i].getName().lastIndexOf('.');                 String extension = filesList[i].getName().substring(dotLast+1);                 if(extension == "mp3") {                     idIterator++;                     af.id = idIterator;                     af.name = filesList[i].getName();                     af.path = filesList[i].getPath();                     af.type = extension;                     audios.add(af);                 }             }         }     }      public static void main(String args[]) {         List<AudioFile> af;         AudioService as = new AudioService();         af = as.getLocalAudioFiles();     } }   I don't know where I went wrong, Need some help here. Thanks in Advance.


Camera tracking background is not visible

transparent was checked in render tab but I unchecked now what to do. I am trying to render video within mesh a uv sphere so I can see only sphere not video in render time what to do.