How to use files copied in Windows File Explorer on the command line?

In Windows File Explorer, you can highlight several files and then click the "Copy path" button from the menu. Show below is an example. I'd then like to process these files on the command line, preferably in a PowerShell terminal. I've tried enclosing them in more quotes, single quotes, and backticks, to no avail. Here's an example of the files copied to the clipboard:  "C:\Users\me\100_0909.jpg" "C:\Users\me\100_0521.jpg" "C:\Users\me\100_0519.jpg"  I'd like to be able to take the files above and include them in a command like:  magick "C:\Users\me\100_0909.jpg" "C:\Users\me\100_0521.jpg" "C:\Users\me\100_0519.jpg" +append new.jpg  command-line powershell


Query after parametric geometries in a GDB

When you create an circle or ellipse in a GDB it is rendered as a parametric geometry storing x, y, radius, etc. and not as a polygon with nodes.    I have a layer with both polygons and parametric geometries (circles/ellipses). How do I make a query in ArcGIS 10.3 that returns only the parametric geometries and not the 'normal' node based polygons?


Why am I not getting error when I store values of different types in an array in C language?

This is the code:      int a[3]={3,5,'s'};     printf("%d%c",a[1],a[2]);   I compile it with gcc like this      gcc test.c -o test   and it is working without a problem, output:      5s   I thought I should get an error because I have a character in an integer array. What is happening here?


Could information about my votes be used against me by moderators?

Recently one post was deleted (not mine) on  as inappropriate. But before deletion I've up-voted it.  I can't share the full conversation with moderators, but they used the information about my vote against me.  I've found several related conversations:        But they say, that moderators can't see who votes on questions.   So:   Has something changed? Can moderators/CM/SE employees see the list of voters? If so, can they use this information against members?


Can someone explain Importance Sampling to me?

So even the combined efforts of my professor, my book and the internet have not been able to make me understand the concept of Importance Sampling.  I know that it is a way to help with estimating the probability of the occurance of very rare events, however, I have no idea how it works.  For instance, let's assume I start a random walk at $x_0=1$ and $x_i = x_{i-1}+y_i$, where $y_i=1$ with chance $p=0.2$ and $y_i=-1$ with chance $1-p=0.8$. Therefore, the random walk will probably go to lower values. I am told that IS is useful if we want to estimate the probability that the random walk will reach a high value (for instance, $100$), before reaching $0$ (the chance for this is of course at most $0.2^{100} \approx 1.27 \cdot 10^{-70}$). How would IS help for a problem like this?


What is the polite word describing a person who unreasonably says and does things to make a person happy?

Assume a powerful or rich person (like a boss in an office) and assume there is guy who wants to get some benefits from that person. He always does every thing and says every lies to make the powerful guy happy. I know an impolite phrase to describe this person, which has something to do with kissing certain part of the body of the powerful guy. But, I was wondering what is the polite and literal way to call this type of individuals and what is called this action?


How can I download Social engineering tool for 13.10

I used to use backtrack 5r3 before switching to Ubuntu. I want to use the Social engineering tool but couldn't find one . Is the mentioned tool same as for Ubuntu 11.10 or 12.10.


Passing cin values from a function to the main function

The program allows the user to choose what operation to use first before the user can input 5 numbers. im trying to lessen my line of codes by creating a function that will get 5 numbers of user inputs so i can just call that function every time it is needed instead of typing it all 4times inside my if else statement. the problem is when i called the inputs function inside my if else statement it does not read the values inputted inside the inputs function. this is my code. #include <iostream> using namespace std;  int main() {     char Choice;       cout << "MATH OPERATIONS\n[+]\tAddition\n[-]\tSubtraction\n[*]\tMultiplication\n[/]\tDivision";     cout << "\nEnter you Choice: ";     cin >> Choice;      if ( Choice == '+') {         inputs();         double answer = num1 + num2 + num3 + num4 + num5;         cout << "Sum : " << answer << endl;     }     else if (Choice == '-') {}     else if (Choice == '*') {}     else if (Choice == '/') {}     else {} } int inputs(int num1, int num2, int num3, int num4, int num5) {     cout << "1st Number: ";     cin >> num1;     cout << "2nd Number: ";     cin >> num2;     cout << "3rd Number: ";     cin >> num3;     cout << "4th Number: ";     cin >> num4;     cout << "5th Number: ";     cin >> num5; }


Which system calls are called when file is updated from gedit?

If any file is updated using gedit then internally which system calls are called or which algos are called ??   What is the way of getting that list of operations occurred when file is updated from gedit.


Show that the set of nonpositive rational numbers is countable

Can someone show that the set of nonpositive rational numbers is countable ?


Moderators should be able to see deleted posts in the Activity tab on a user's profile

As a moderator I can see deleted posts in a profile, but -- without visiting each one -- I can't see when they were deleted.  This came up because I came across a user with a small number of posts, all deleted, and I wanted to know if I was looking at a rage-quit.  If deletions caused entries in the "activity" tab on a profile this would be easy to check; instead I had to visit each post to see what was going on.  But even beyond suspected rage-quits, it seems like this would be a helpful addition to understanding a user's activity -- for example, in detecting a pattern of deleting questions as soon as an answer comes in.  Since deletions that produce reputation changes have to be tracked on the "reputation" tab, it seems like deletions already produce some per-user record-keeping.  Is it feasible to add information about self-deletions to the record of the user doing the deletion?


Scalar field Derivative. Real vs Complex

From Churchill - Complex Variables and Application it's shown that in order to get Cauchy-Riemman equations, we just asume a derivable function $w(z)$ and go for the limit definition. $$    w'(z_0) = \lim_{z \to z_0}\frac{w(z) - w(z_0)}{z - z_0} = L $$ Because a complex function can be seen as a $\Re^2 \to \Re^2 $ vector field, (from the z-plane to the w-plane) as $w(z) = w(x + iy) = u + iv$, with $u$ and $v$ scalar fields. Thus, we can extend the limit, into the real and the imaginary part. So, here is my problem. For C-R Equations we say that, as $L$ exists, we say that is valid, for any arbitrary choice of trajectory that is continous at $z_0$. We choose the real and imaginary axis, simplify the limit and get the C-R. This means that for any complex function $f(z)$, we can indeed have a derivative $f'(z)$ which is not so intuitive from multivariable calculus. If we have an scalar field, and derive it by limit definition and apply the exact same trick, the limit would depend on the choosed trajectory, givin birth to the partial derivatives of $f$. So Why do we assume, in the complex case, that this does not hold. And that if $f$ is derivable, at a point $ z = z_0$, it's "partial derivatives" should be the same. I know in complex analysis everithing is kind of weird, but I don't see the rationale behind that.  Is just by definition? The gradient in the Real case, would be "analogous" to the complex derivative? Is valid due to the division between complex numbers?


Realizing an XOR expression using NAND gates

I've been trying really hard to understand the construction of a logical circuit using only NAND while also trying to minimize the number of gates. The minimization of gates is what is really confusing me, so my thought process is like so.   1) Start with the desired expression of the end 2) Work backwards with the understanding that the output(s) were also derived from a NAND 3) Run intermediate expression through K-Map to get most simplified form 4) Attempt to convert to an AND if it isn't already using DeMorgans law  5) Rinse and repeat steps 2-5    I attempted this approach with XOR using only NAND and did indeed get 4 gates, but it's different than ones I see online and just wanted to validate if it's correct or not and if not, where my errors are.    I'm worried that the first NAND where I feed the output into two separate gates isn't valid, so looking for some confirmation on that as well.  Thanks.


Compute and graph the LDA decision boundary

I saw an LDA (linear discriminant analysis) plot with decision boundaries from :   I understand that data are projected onto a lower-dimensional subspace. However, I would like to know how we get the decision boundaries in the original dimension such that I can project the decision boundaries onto a lower-dimensional subspace (likes the black lines in the image above).  Is there a formula that I can use to compute the decision boundaries in the original (higher) dimension? If yes, then what inputs does this formula need?


Can't boot Windows 10 after installing Ubuntu

I installed Ubuntu alongside Windows 10, followed the instructions without deviation and now I can't boot Windows. The error message is boot loader is missing. I can still access my Windows files through Ubuntu, but booting Windows is not an option since installing Ubuntu. How can I fix this?


Compared to    Simple memory access Disk access Memory access on another computer(on the same network) Disk access on another computer(on the same network)   in C++ on windows.


how to develop multiple pages registration form

I want to develop a registration form employees based on different steps like company,salary,interview,pors and crons etc. they are pages for the registration process. Can anyone tell me how to develop this kind of functionality?


Python3 Convert list of HEX values to Bytes

I have a list of bytes that are represented in string format, for example, when I print the list in Python3.3 I get the following output:  DATA =  ['FF', 'FF', 'FF', 'FF']   I would like to convert these into bytes, for example 0xFF,0xFF,0xFF,0xFF. I have tried the bytearray() function but this returns an error.  I'm guessing that I am missing something simple here, but I have looked around SO and Google and have so far had no luck  Thanks!


Show that, for $t>0$, $\log t$ is not a polynomial.

How can I show that? I've tried to reverse the logarithm to it's exponential form in a trial to show that but I got no success. Can you help me?


I am modeling a laser beam in blender, and I was wondering exactly how to achieve the "beam" look of the laser.  I don't exactly want to use a bright red lamp, or an emission shader, because obviously laser dots don't really change in size as you increase the distance between it and the producer.   Here is an reference image of a beam similar to what I am trying to achieve:   There are a couple questions similar to this one, but they obviously do not give information about achieving the volume of the laser, or the bright "star" at the end.  A detailed node setup for a type of projection like this would be the correct solution to this question.  Part of the problem: When I tried the laser lamp node setup for my lamp, it had no effect except for color.   Here is a picture of the lazer lamp's node setup with the model of the lazer case in material view:   This is in rendered view with a volume cube surrounding everything. (Lamp is still selected): This is my model of the laser case:  Here is the .blend if you want to work with it:


Does a faster processor noticeably increase speed in web page serve and load from localhost?

I am a web developer getting a new computer. Right now I am deciding between two laptops - one that has 32gb ram but a slower processor, and one with 16gb ram (can't be upgraded further) but a faster processor, and I want to know what is going to give the biggest productivity increase.  The main purpose of upgrading RAM, in my opinion is to allow me to run more programs at once.  But if the processor change is going to make a noticeably faster page load speed, that would be important to me because I have to reload the same page time after time after time since I like to test at very short intervals. To keep my question non-subjective, I want to ask what is the difference in performance in reloading and initializing a web page served from localhost using these two processors or similar.  If not, I would appreciate it if someone would explain where the biggest slowdown is.  Here one is nearly 25% faster according to general benchmarks.    I would guess that the major blockage would be a slow hard drive for anything like this, but I think a faster processor might be significant in rendering the page, initializing AngularJS, etc.  If the processor speed difference isn't going to matter much, then I'll just go with the extra RAM  Thanks for your help! If you want to downvote, please at least write a comment as to why.  Note: this is NOT a duplicate because this question refers specifically to both serving and browsing from localhost.


What is the advantage of using a struct in C++ when you have class? I cannot find any literature on the subject. I have been told to just use class and is the correct


The other day I and my friend were having an argument. He was saying that there is no real life application of Topology at all whatsoever. I want to disprove him, so posting the question here.  What are the various real life applications of topology?


Commas inside or outside the parenthetical?

Should the comma after "tacalcitol" go inside or outside the parenthesis?   "Rotate therapy with topical vitamin D analogues (calcipotriene, tacalcitol,) retinoids, anthralin, or tar preparations."


Variables in batch file not being set when inside IF?

I have two examples of very simple batch files:  Assigning a value to a variable:  @echo off set FOO=1 echo FOO: %FOO% pause echo on   Which, as expected, results in:  FOO: 1  Press any key to continue . . .   However, if I place the same two lines inside an IF NOT DEFINED block:  @echo off IF NOT DEFINED BAR (     set FOO=1     echo FOO: %FOO% ) pause echo on   This unexpectedly results in:  FOO:  Press any key to continue . . .   This shouldn't have anything to do with the IF, clearly the block is being executed.  If I define BAR above the if, only the text from the PAUSE command is displayed, as expected.    What gives?    Follow up question: Is there any way to enable delayed expansion without setlocal?   If I were to call this simple example batch file from inside another, the example sets FOO, but only LOCALLY.   For example:   testcaller.bat   @call test.bat  @echo FOO: %FOO%  @pause    test.bat   @setlocal EnableDelayedExpansion  @IF NOT DEFINED BAR (      @set FOO=1      @echo FOO: !FOO!  )    This displays:   FOO: 1  FOO:  Press any key to continue . . .    In this case, it appears that I have to enable delayed expansion in the CALLER, which may be a hassle.


Have you seen this Sci Fi movie\show before? (Reptilians)

Does anybody know from what show\movie this picture is from? , It looks like some Sci fi show in the 80s-90s I am not sure and also if anybody knows the name of this actress it would be very helpful.


how to make an object mask, which fades in and out?

I need to exclude some part of my model. A mask seem to be the way to go. How do i make it smoothly fade in, if it's possible?


Does Expertise double all of a skill's modifiers or just the ability bonus?

hi all I have a quick question, to get my +n in the skills column for proficient skills do i add the multiplier from the attributes list ie my charisma is +3 do i then add my proficiency bonus of +5 to get +8 in my skills list and then when I get expertise in a skill do I double the entire thing or just the base score of +3 then add the +5 bonus? sorry it's just very unclear in the PHB


I am having trouble with how to begin with this problem from Abstract Algebra by Dummit and Foote (2nd ed):  Let $R$ be a commutative ring with 1.  Let $p(x)=a_nx^n+a_{n-1}x^{n-1}+\cdots+a_1x+a_0$ be an element of the polynomial ring $R[x]$. Prove that $p(x)$ is a zero divisor in $R[x]$ if and only if there is a nonzero $b\in R$ such that $bp(x)=0$.   Hint: Let $g(x)=b_mx^m+b_{m-1}x^{m-1}+\cdots+b_0$ be a nonzero polynomial of minimal degree of such that $g(x)p(x)=0$. Show that $b_ma_n=0$ and so $a_ng(x)$ is a polynomial of degree less than $m$ that gives 0 when multiplied by $p(x)$. Conclude that $a_ng(x)=0$. Apply a similar argument to show by induction on $i$ that $a_{n-i}g(x)=0$ for $i=0,1,\cdots,n$ and show that implies $b_mp(x)=0$.  My attempt:  Suppose $p(x)$ is a zero divisor. Let $g(x)=b_mx^m+b_{m-1}x^{m-1}+\cdots+b_0$ be a nonzero polynomial of minimal degree of such that $g(x)p(x)=0$. Then $g(x)p(x)=(b_mx^m+\cdots+b_0)(a_nx^n+a_{n-1}x^{n-1}+\cdots+a_1x+a_0)=b_ma_nx^(m+n)+\cdots+b_0a_0=0$ by the assumption. so $a_ng(x)$ is a polynomial of degree less than $m$ that gives 0 when multiplied by $p(x)$. Thus, $a_ng(x)=0$ because $R$ is commutative then the polynomial ring is, too. thanks cba


Why do people so often use "jive" when they actually mean "jibe"?

I often hear people use the word "jive" when I'm pretty sure they mean "jibe."  It's a subtle sound difference so it's hard to catch.  But why do so many people mix these two up?


How to detect if a function is called as constructor?

Given a function:  function x(arg) { return 30; }   You can call it two ways:  result = x(4); result = new x(4);   The first returns 30, the second returns an object.  How can you detect which way the function was called inside the function itself?  Whatever your solution is, it must work with the following invocation as well:  var Z = new x();  Z.lolol = x;  Z.lolol();   All the solutions currently think the Z.lolol() is calling it as a constructor.


DataSnapshot value doesn't get stored in the variable

I'm trying to get a boolean value from firebase database into my Android application. I've got it in a boolean variable but when I use this boolean value, it says a null object reference.  I'm trying to start a particular Intent based on the data in the firebase database. But It gives me this following error   public class SplashScreen extends AppCompatActivity {  Boolean rec_res; @Override     protected void onCreate(Bundle savedInstanceState) {         super.onCreate(savedInstanceState);         setContentView(R.layout.activity_splash_screen);         FirebaseDatabase database = FirebaseDatabase.getInstance();         DatabaseReference rootRef = database.getReference();          rootRef.child("rec_res").addListenerForSingleValueEvent(new ValueEventListener() {             @Override             public void onDataChange(@NonNull DataSnapshot dataSnapshot) {                 rec_res = dataSnapshot.getValue(Boolean.class);             }              @Override             public void onCancelled(@NonNull DatabaseError databaseError) {              }         });          int SPLASH_TIME_OUT = 2000;         new Handler().postDelayed(new Runnable() {              /*              * Showing splash screen with a timer. This will be useful when you              * want to show case your app logo / company              */              @Override             public void run() {                 // This method will be executed once the timer is over                 // Start your app main activity                    ConnectivityManager connectivityManager                         = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);                 NetworkInfo activeNetworkInfo = connectivityManager.getActiveNetworkInfo();                 boolean isConnected = activeNetworkInfo != null && activeNetworkInfo.isConnected();                  /* if(String.valueOf(rec_res).equals("true")) {                     Intent k = new Intent(SplashScreen.this, RecruitRegActivity.class);                     startActivity(k);                 }*/                  if (rec_res && isConnected) {                          Intent i = new Intent(SplashScreen.this, RecruitRegActivity.class);                         startActivity(i);                  } else if(!isConnected){                     Intent i = new Intent(SplashScreen.this, NoInternet.class);                     startActivity(i);                 } else {                     Intent i = new Intent(SplashScreen.this, HomePage.class);                     startActivity(i);                 }                  // close this activity                 finish();             }         }, SPLASH_TIME_OUT);     This is the error I get  E/AndroidRuntime: FATAL EXCEPTION: main     Process: com.smec.tam, PID: 12815     java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.Boolean.booleanValue()' on a null object reference         at com.smec.tam.SplashScreen$2.run(SplashScreen.java:99)         at android.os.Handler.handleCallback(Handler.java:751)         at android.os.Handler.dispatchMessage(Handler.java:95)         at android.os.Looper.loop(Looper.java:154)         at android.app.ActivityThread.main(ActivityThread.java:6316)         at java.lang.reflect.Method.invoke(Native Method)         at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:872)         at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:762)


Movie about hostile robots disguised as footballs

I saw this on TV in mid 90s I think. One or more people travel to another celestial body (might or might not be the/a moon or mars), they find an American football. The football transforms into a robot that is hostile. They later find LOTS of these footballs/disguised robots.  Since there are lots of robotic projects with "football robots" or " robots", it is very hard to filter search results using Google etc.


Area interpretation of integrals for the floor function

Use the area interpretation of integrals to prove that; $$\int_{0}^n \lfloor t \rfloor dt = \frac{(\lfloor n\rfloor-1)\lfloor n\rfloor}{2}$$ for all integers n $\ge$ 0, and hence find a formula for $\int_{0}^x \lfloor t \rfloor dt$.  I assume for the second part that the formula is  $$\int_{0}^x \lfloor t \rfloor dt = \frac{(\lfloor x\rfloor-1)\lfloor x\rfloor}{2}$$  For the first part I have assumed that since n is an integer $\lfloor n\rfloor$ = n  Therefore we have $$\int_{0}^n \lfloor t \rfloor dt = \frac{(n-1)n}{2}$$ This is the solution to that summation of (i-1) from i=1 to n if I am remembering correctly, and matches the area of all the rectangles from 0 to n right?  Any help would be greatly appreciated!  Edit: Okay just to clarify I am confused with the first at of how to actually use the area interpretation. The duplicate only really deals with the second part!


Why $\gcd(12,30)$ equals the number of homomorphisms from $\Bbb Z_{12}$ to $\Bbb Z_{30}$?

The following is a snippet from Gallian's Contemporary Abstract Algebra:  Chapter 10-Example 10:  We determine all homomorphisms from $\Bbb Z_{12}$ to $\Bbb Z_{30}$. By  $\phi(g^n) = (\phi(g))^n$ for all $n\in\Bbb Z$",  such a homomorphism is completely specified by the image of $1$. That is, if $1$ maps to $a$, then $x$ maps to $xa$.  By Lagrange’s Theorem and by " If $|g|$ is finite, then $|f(g)|$ divides $|g|$"  we require that $|a|$ divide both $12$ and $30.$ So, $|a|$ can be  $1, 2, 3$, or $6$. Thus, $a = 0, 15, 10, 20, 5,$ or $25.$ This gives us a list of candidates for the homomorphisms. That each of these six possibilities yields an operation-preserving, well defined function can now be verified by direct calculations. [Note that $\gcd(12, 30) = 6.$ This is not a coincidence!]  Can someone please explain why $\gcd(12,30)=6$ isn't a coincidence? I mean to ask why $\gcd(12,30)$ equals the number of homomorphisms from $\Bbb Z_{12}$ to $\Bbb Z_{30}$.


Vertically align a child div element with parent div having dynamic height

How do I vertically align a child element with the parent having a dynamic height.    CSS code:  parent{     height: 400px; } .child{     position:relative;     top:50%;     transform: translateY(-50%;); }   This sets the child once, then doesn't change.  How do I change it so that it changes with the dynamic height of the parent?


How to change default user in WSL Ubuntu bash on Windows 10

I installed the WSL Bash on Windows 10 and set my user to e.g. 'abc' but now I want to change it to something else.  How can I change the user name of the user I'm logged in as?  When I open bash it automatically logs me in with my current user.


Is there any way to remove fireflies from the edges on a glossy direct pass? (At the very edges of the popcorn container and haloing the popcorn kernels in the front)  I set the samples to 2000 and filter glossy: 0.5 in the render below. The light is set to multiple importance on.


Is a file system just the layout of folders?

I have used Windows since childhood, and when I hear the phrase "Windows filesystem" I think of directories (folders) within directories, a folder called SYSTEM, a folder called PROGRAM FILES etc. Is this what the system is? Just the layout of the folders?  And then I recently started using Linux, and my reference book says in the linux filesystem everything starts at root and branches off from there. How is that really different from Windows? I mean, it seems the linux system and the windows system are just two ways of setting up a directory tree.  Is this what file system means?


Fire custom submit handler in form embedded in node edit form

I have a form that is being inserted inside of a node edit form and the inserted form is given a custom submit handler. The inserted form's submit button is defined as follows:     $form['decision_select']['update'] = [       '#type' => 'submit',       '#value' => $this->t('Select Segment Set'),       '#submit' => [[$this, 'updateSegmentSet']],       '#limit_validation_errors' => [],       '#ajax' => [         'callback' => [$this, 'updateSegmentSetAjax'],         'wrapper' => $wrapper_id,       ],     ];  However, when I click 'Select Segment Set' the entire node form is submitted to the backend (I've verified this by printing the request/route objects sent to the backend). Is there any way to press that submit button and have only the inserted form sent to the backend along with this custom submit handler? The idea is to have this inserted form filled with values given to it via ajax before the node form is ever submitted to save the node.


Call Base Default constructor Template Class

The question is how to call the base constructor from an inherited template class. I want to create a FixedQueue and overload some function in std::queue. Therefore std:queue is the base class. The keyword using, since c++11, can be used to call the base and it works if this is a specialised class, but I cannot get it working with a template class.   Furthermore I tried it to use the old c++ standard in which I simply invoke the defined constructors in std::queue. However it doesn't work.   h file  #ifndef _HEADER_FIXED_QUEUE_ #define _HEADER_FIXED_QUEUE_  #include <queue> #include <iostream>  template<class T>  class FixedQueue : public std::queue<T> {   //using queue<T>::queue<T>;    public:     FixedQueue();     FixedQueue(const T &initial_var);     void foo() { std::cout << "inside\n"; }  };  #endif   cpp file  #include "FixedQueue.h"  template<typename T> FixedQueue<T>::FixedQueue() :   std::queue<T>() {    std::cout << "Default Constructor FixedQueue\n"; }  template<typename T> FixedQueue<T>::FixedQueue(const T &initial_var) :   std::queue<T>(initial_var) {    std::cout << "Specialized Constructor FixedQueue\n"; }   main file.  #include <iostream> #include "FixedQueue.h"  int main() {   FixedQueue<int> d_frameSlices;     std::cout << "I want to do something with my queue\n"; }   The question is thus. How do I chain the constructors to the defined constructors in the base class std::queue. The template thing is killing me.  This is the error message I obtain from clang, which is the usual undefined reference.  Undefined symbols for architecture x86_64:   "FixedQueue<int>::FixedQueue()", referenced from:       _main in main-lqoFSA.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)   If someone knows how to do this with "using" or the old fashion way I am happy with both. Thanks in advance


Most of the places, examples for merging of cells in tables are given. But, I could not find a merging of cells in complicated fashion as shown below. This question may summarize all the possible methods of merging and may serve as the reference for all future questions on merging of cells. Experts can add much more complications if required.


How to connect to a specific BSSID via Terminal?

My internet provider has a service where I share part of my wifi connection with other subscribers and in return I can use their wifi connection when I'm close to a subscribers router. It's very similar to .  However, I'm sometimes at a location where there are three subscribers (A,B and C) nearby. All of them have the service enabled.  The service shows up with the same SSID (let's name it ISP-Free), regardless of who the providing subscriber is. In the above case only one SSID shows up in my airport menu, and then my Mac decides by itself to which router (A,B or C) it connects.  This decision is not always perfect and it often connects to a router that has a weak signal. Using the Wireless Diagnostics tool (option+click on the airport icon) I can find the BSSID of the strongest ISP-Free router, but I can't connect to it.   does not help me as this permanently changes the BSSID to which the SSID ISP-Free will be associated. I don't want that as I connect to the ISP-Free network at other locations as well where the automatic router selection works fine.   is not working for me either as it works based on the SSID, not the BSSID.  So how can I connect to a specific BSSID without a changing the behaviour of the SSID permanently without third-party software? I assumed Terminal would be the only solution, but maybe there's a hidden Apple tool somewhere.


The following packages have unmet dependencies:  vlc : Depends: vlc-plugin-video-output (= 2.2.4-13) but it is not going to be installed E: Unable to correct problems, you have held broken packages.   This is what I am running into. To be honest, I'm new to  Ubuntu and to Linux in general so any help would be very much appreciated.  W: The repository 'zppa.launchpad.net/ed10vi86/video/ubuntu zesty Release' does not have a Release file. N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use. N: See apt-secure(8) manpage for repository creation and user configuration details. W: The repository 'zppa.launchpad.net/videolan/stable-daily/ubuntu zesty Release' does not have a Release file. N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use. N: See apt-secure(8) manpage for repository creation and user configuration details. E: Failed to fetch zppa.launchpad.net/ed10vi86/video/ubuntu/dists/zesty/main/binary-i386/Packages  404  Not Found E: Failed to fetch zppa.launchpad.net/videolan/stable-daily/ubuntu/dists/zesty/main/binary-amd64/Packages  404  Not Found E: Some index files failed to download. They have been ignored, or old ones used instead.


How to Resolve Inconsistent OpenLayers vector position Over Google map

I have an OpenLayers map with a Google base layer and an OpenLayers vector layer on which people can draw their own bounding boxes using the DrawFeature control.  I have found that, as you zoom in, the vector is not plotted covering the same co-ordinates at each zoom level. Rather it seems to zoom at a different ratio to the underlying layer.  Strangely, if I resize the browser window, the vector then stays at a consistent position through all the zoom levels (i.e. becoming larger or smaller but covering the same geographic range, as one would want it to), but slightly offset from the position it was initially drawn at. The remains the case even if I make the browser window full size again.  See example below:   I draw a vector touching the Belgian border.  I zoom out and the vector is now well within Germany.      I resize the browser window and the box anchors to a consistent set of co-ordinates but offset from its initial position, now overlapping the Belgian border    Please note that this is not the same issue as the vectors scrolling more slowly than the map when dragging the map. The vectors seem to stick to the same area when dragged, but zooming causes them to move relative to the underlying Google layer.  Is this a known issue and can anyone help resolve?  In answer to the question about my initialisation of the layers, my code is as follows:  var miny=-2000000; var minx=6000000; var maxy=600000; var maxx=10003750;      // allow testing of specific renderers via "?renderer=Canvas", etc var renderer = OpenLayers.Util.getParameters(window.location.href).renderer; renderer = (renderer) ? [renderer] : OpenLayers.Layer.Vector.prototype.renderers;    //define the layers needed     g_phys  =   new OpenLayers.Layer.Google("Google Physical",{type: google.maps.MapTypeId.TERRAIN, numZoomLevels:20}, {isBaseLayer:true});     g_sat   =   new OpenLayers.Layer.Google("Google Satellite",{type: google.maps.MapTypeId.SATELLITE, numZoomLevels:20},{isBaseLayer:true});     bboxes  =   new OpenLayers.Layer.Vector("Bounding Boxes", {rederers:renderer});    //delete feature on select bboxes.events.on({"featureselected":function(e){bboxes.removeFeatures(e.feature); erasefeature(e);}}); //refresh on visibility change bboxes.events.on({"visibilitychanged":refreshMap}); //do stuff on modification of vector bboxes.events.on({"afterfeaturemodified":modbox});   //create new set of option for the map var options = {             projection: new OpenLayers.Projection("EPSG:3857"),             units: "m",             maxResolution: "auto",             maxExtent: new OpenLayers.Bounds(miny, minx, maxy, maxx),             theme: null,             layers: [                 //define the base layers for the map                 g_phys,                 g_sat,                 bboxes                      ]          };   //create new map object based on "map" div map=new OpenLayers.Map('map',options);


Can I list the filesystems a running kernel can support?

I'm trying to detect what filesystems a kernel can support. Ideally in a little list of their names but I'll take anything you've got.  Note that I don't mean , just ones that the current kernel could, theoretically support directly (obviously, fuse could support infinite numbers more).


Copy Text to clipboard using HTML button

How do I actually copy some fixed text to clipboard using javascript? This is my code and it's not working maybe there's another way and I don't know. <button onclick="Copy()">Copy</button> <script> function Copy() { document.execCommand("copy","Some text here"); }     </script>  I want to copy some fixed text using just button, so I don't have to select texts manually and copy them. Thanks.


HDD unpluged for a long period of time goes bad?

I have two HDD's unplugged for two years. It's from my old pc. I have some important files in there but I'm wondering about this problem.  Will the HDD's turn on and I'll be able to access all my files or there a possibility of these HDD's goes bad because I let them off for a long time?


Is it true that $ \sum_{n=1}^{\infty}\sqrt{a_{n}} $ converge $ \Rightarrow\sum_{n=1}^{\infty}a_{n} $ converge?

Let $ a_n $ be a non-negative sequence, such that $ \sum_{n=1}^{\infty}\sqrt{a_{n}} $ converge. Is it true that  $ \sum_{n=1}^{\infty}a_{n} $ converge? I think that it is. But I want to make sure because it appeared in my final exam. Here is my reasoning: Since $ \sum_{n=1}^{\infty}\sqrt{a_{n}} $ converges, $ \sqrt{a_{n}}\underset{n\to\infty}{\to}0 $ and thus $ a_{n}\underset{n\to\infty}{\to}0 $. So there exists some $ n_0 $ such that, for all $ n>n_0$, it follows that $ 0\leq a_{n}<\frac{1}{2} $. Thus, for each $ n>n_0 $ we have $$ a_{n}<\sqrt{a_{n}} .$$ So, from the comparison test, we get the convergence of $$ \sum_{n=1}^{\infty}a_{n}. $$ Do you agree?


How can I plot points with proportional circles, but also by colour from another attribute?

I have point data of population density that I have plotted to show density with proportional circle symbols. This is straightforward with many ways of achieving this in different software and packages. But I would also like to use colours to show not only density by proportional symbol but also have the proportional symbols coloured to represent different values from another map layer, a raster map.  So for example, I want the largest symbol size to be coloured red, orange or yellow depending on the value of the spatially corresponding raster cell. So each symbol size will have different colours depending on the raster.  Is there an existing R function that does this (I cannot find one)? Or is there a way of clipping the (coloured) raster map by a point map that is displayed with proportional circles?


Trying to send multiple text attachments via mail message

Running this script on: "Red Had Enterprise Linux Server release 5.11 (Tikanga)"  Mail is: version 8.1 6/6/93 (appears quite old).  Have tried various things and cannot seem to get this to work..  echo "Email message" | mail -a /home/user/checks/notprocessed.txt -a /home/user/checks/dirlist.txt -s "Subject" recipient@company.com /home/user/checks   Resulting message:     mail: invalid option -- a   mutt is not installed and I have limited access to this system as it is owned by the company I work for.  I could add in other components, but has to go through change management, and related processes.  uuencode is not available either.  Here is what I am using today and I am trying to add a second file to:  if grep 'Not Empty' /home/user/checks/notprocessed.txt    then    echo "files were found";     SUBJECT="NIGHTLY DIRECTORY LISTING OF FILES SENT TO VENDOR";    FROM="SENDER<sender@company.com>"    # EMAIL="JOHN DOE<recipient@company.com>"    EMAIL="MARY DOE<recipient@company.com>";    /bin/mail -s "$SUBJECT" "$EMAIL" -- -f "$FROM" < /home/user/checks/notprocessed.txt /home/user/checks/dirlist.txt     exit -20 fi   And..  /home/user/checks/dirlist.txt is not attached or included as part of the e-mail.  I would like /home/user/checks/dirlist.txt to be actually an attachment  This actually does work - but includes the notprocessed.txt as the body of the email..  if grep 'Not Empty' /home/user/checks/notprocessed.txt    then    echo "files were found";     SUBJECT="NIGHTLY DIRECTORY LISTING OF FILES SENT TO VENDOR";    FROM="SENDER<sender@company.com>"    # EMAIL="JOHN DOE<recipient@company.com>"    EMAIL="MARY DOE<recipient@company.com>";    /bin/mail -s "$SUBJECT" "$EMAIL" -- -f "$FROM" < /home/user/checks/notprocessed.txt     exit -20 fi


Editing Terminal promt with dynamic text derived from pwd

Question ported from  since it's more suited here. Short version Use this prompt to get this green color:  With this line: export PS1="\w: \[$(tput setaf 2)\][GREEN]\[$(tput sgr 0)\] \$ "  But to work inside a function so my_function(){   echo -e "\[$(tput setaf 2)\][GREEN]\[$(tput sgr 0)\]"   # echo "\[$(tput setaf 2)\][GREEN]\[$(tput sgr 0)\]" } export PS1="\w: \$(my_function) \$ "  Unfortunately I get this prompt : ~/Work/temp/prompt_test: \[\][GREEN]\[\] $  *You mustn't use $(my_function) instead of \$(my_function) - why? elaborate explanation below. Elaborate explanation I'm trying to satisfy 2 conditions: Condition 1 I can add color to prompt with this code: export PS1="\w: $(tput setaf 2)GREEN$(tput sgr 0) \$ "   But then If I enter a long command, then click home + end- something become messed up - to replicate behavior:  export PS1="\w: $(tput setaf 2)GREEN$(tput sgr 0) \$ " type a long command (no enter): longg command with many charterssssssssssssssssssssssssssssssssssssss click home click end Try deleteing all chars using backspace   I can fix that adding \[ and \] before and after color commands: export PS1="\w: \[$(tput setaf 2)\]GREEN\[$(tput sgr 0)\] \$ "  That solves the problem. Lets call "preventing that problem" Condition 1 Condition 2 To have the PS1 line evaluate dynamically with every directory change. so given the following structure (basically making two folders: mkdir blue red) two folders:   +-- red   +-- blue Then a simple bash function to check whether pwd contain blue or red then add color to prompt so whenever I change to folder with blue path I get blue, same with red change_color2(){   local my_pwd=$(pwd)   if [[ $my_pwd == *"blue"* ]]; then # path containing 'blue'     echo "$(tput setaf 4)<BLUE>$(tput sgr 0)"   elif [[ $my_pwd == *"red"* ]]; then # path containing 'red'     echo "$(tput setaf 1)<RED>$(tput sgr 0)"   fi } export PS1="\w: \$(change_color2) \$ " cd red cd blue    Notice this doesn't work if I use $(change_color2) instead of \$(change_color2) I'm trying to satisfy both conditions at once but I'm unable to- can you please help? Thank you. Ubuntu 20.04 /bin/bash


Citing papers, that are cited within a paper?

I am reading a paper which discussing the change in a specific idea in a field of science over time. I would like to basically summarize the points in the paper but in a smaller fashion by taking some quotes and explaining how they relate to my situation.   For instance, in the paper I am reading the author said "in 2002, Stanley and Miikkulainen [SM02b] argued that the topology of a neural network also affects their functionality" where the tag [SM02b] is a reference to a entry in the author's bibliography.   Is it sufficient to only cite the author of the paper, or do I need to cite both the author of the paper and the author of the paper the author cited in the paper?


(Read the normal print for an amusing story, skip to the bolded text for more important info)  To begin, I'm a scallywag.  I saw that card offer in the mail and did some digging because I'm not used to credit cards. 0 percent APR for 12 months and APR is the interest that builds up if you don't pay on time. I pay on time. I wait until the last second but always on time so I'm decent with that. But how awesome would it be to have a card that I don't have to pay off for 12 months? I'm not even a spendthrift, ask my mom, I'm frugal as hell. Still, 12 months of not having to think about paying the bill. Nice.  So I get the Bank of America card, I'm approved, it shows up two days ago. And I'm reading through the pack of stuff because I'm plain like that. And I look at the interest and fees section - because I really don't know what I'm doing and if this 0 APR thing is legit.  It doesn't seem like it is. Or at least the way this is worded is a bit confusing to me.  The APR is 0.00% through to my statement Closing Date in February 2018, so almost 12 months. I have an Introductory Offer ID that I don't know what to do with, after which the APR will be 20 something percent. Same with Balance Transfers.  So then I go to the fees section. Promotion Offers are temporary offers, yada yada yada, but then at the bottom, not even bolded, it says:  "If you revolve your balance to take advantage of a Promotional Offer, all transactions and balances, including purchases, will be charged interest."  Huh?  So I look up "what is revolving a balance?" It's basically not paying on time, revolving the balance by waiting another month or so, at least I think that's what it means.  But isn't that the entire point of having 12 months with 0 percent APR? That can't possibly be right or else why would anyone get excited - knowing that they have to pay their bill by the end of the following month anyway or else they'll be charged interest? I googled more about "what 0 APR means/revolving balances/dangers" but nothing useful came up.  Then I thought, "maybe only certain cards allow you a 23-25 day grace period, and this one doesn't, so they offer you 12 months of paying your bills "on time" and ignoring any daily interest. But, that's not true, becaus e my due date is at least 25 days after the billing cycle.  Basically I don't understand how having 0 Percent APR helps anyone if you basically have to pay the bill on time anyway to reap the benefit.    Thank you for any answers and for


check all boxes checked when click on parent checkbox only with Javascript?

I am building a tree traversal in vue.js. When I click on parent checkbox, it will check all child checkbox. This is work fine for in jquery, but is this possible to construct only with javascript ?  My jquery code is :   $(".clickevent").click(function() {     $(this).closest('ul').hide();     $(this).parent().children().toggle();     $(this).toggle(); });   This works fine for me, but I need to know whether is this possible in vue.js without jquery ? If this possible, how to do this ?  Update :   My HTML Code is here :

Parent1

child1

child2

child3

child4


I am particularly confused at the the difference(s) when translating conditional statements into english. For instance the statements below from a question I found online. I will go to the movie if I complete my assignment. I will go to the movie only if I complete my assignment. I will not go to the movie if I do not complete my assignment.  I understand the differences between the first two in simple english, but how can I express this in propositional logic using the conditional (or bi-conditional) arrows?


Where to ask questions about Microsoft Word Features

I have a question about how to do something in Microsoft Word. I'm not sure which Stack Exchange site to use. Any tips?


Can we divide two vector quantities? For eg., Pressure( a scalar) equals force (a vector) divided by area (a vector).


Please suggest me some tools for Android and iPhone app automation testing. I have searched some, like - Appium, Calabash, MonkeyTalk, Selendroid, Robotium, etc.  I am confused to choose any one from above. Please assist me in choosing best automation testing tool so that I can start with better tool which should have following features:   Support for Android and iPhone as well (Android is highly needed, iPhone is optional) Support for Continuous Integration Tool should be Open Source and Free Supported scripting language should have Java Community should be active   Suggest some Android and iPhone mobile app automation tools.


If photons have no acceleration, how can they have energy and momentum?

The change in speed of a photon with respect to time is 0 as photons travel at $c$ forever. If no change in speed exists, how can photons have momentum and acceleration? I guess they don't work like classical mechanics particles.


I tried to install Django with python3-pip When I run  pip3 install Django or sudo pip3 install Django  It gives this error message  Traceback (most recent call last):   File "/usr/bin/pip3", line 9, in <module>     from pip import main   File "/home/amir/.local/lib/python3.5/site-packages/pip/__init__.py", line 26, in <module>     from pip.utils import get_installed_distributions, get_prog   File "/home/amir/.local/lib/python3.5/site-packages/pip/utils/__init__.py", line 27, in <module>     from pip._vendor import pkg_resources   File "/home/amir/.local/lib/python3.5/site-packages/pip/_vendor/pkg_resources/__init__.py", line 3018, in <module>     @_call_aside   File "/home/amir/.local/lib/python3.5/site-packages/pip/_vendor/pkg_resources/__init__.py", line 3004, in _call_aside     f(*args, **kwargs)   File "/home/amir/.local/lib/python3.5/site-packages/pip/_vendor/pkg_resources/__init__.py", line 3046, in _initialize_master_working_set     dist.activate(replace=False)   File "/home/amir/.local/lib/python3.5/site-packages/pip/_vendor/pkg_resources/__init__.py", line 2578, in activate     declare_namespace(pkg)   File "/home/amir/.local/lib/python3.5/site-packages/pip/_vendor/pkg_resources/__init__.py", line 2152, in declare_namespace     _handle_ns(packageName, path_item)   File "/home/amir/.local/lib/python3.5/site-packages/pip/_vendor/pkg_resources/__init__.py", line 2092, in _handle_ns     _rebuild_mod_path(path, packageName, module)   File "/home/amir/.local/lib/python3.5/site-packages/pip/_vendor/pkg_resources/__init__.py", line 2121, in _rebuild_mod_path     orig_path.sort(key=position_in_sys_path) AttributeError: '_NamespacePath' object has no attribute 'sort'   what can I do?!


The image has 2 labels (1) and (2) with red arrows Is it possible to do this in Latex or should I try something else to achieve similar result.


Every subspace of a separable metric space is separable.

I want to know if this is an adequate proof.  Proof: Let $X$ be a separable metric space and let $A$ be a subspace of $X$. Since $X$ is separable, it contains a countable dense subset $D$. So $\forall$ neighborhood $U$ of $x$ in $X$, $\exists$ a $d \in D: d\in U$.     Let $x\in A\implies U\cap A$ is a neighborhood of $x$ relative to $A$. Which implies that $\exists d\in D:d\in U\cap A$.  Let $D^{*}$ represent all elements of $D$ which are also elements of $U\cap A$.  This implies $D^{*}$ is dense in $A\implies A$ is separable.


Looking for a dystopian book with handicapped people

I read a short Dystopian story in middle school, with a society where everyone is equal. People are given mental and physical handicaps to make sure everyone is equal. A kid named Harrison (I think) tries to overthrow the government. He is huge and Godlike. He gets shot at the end. That's all I remember.


Can the value of $c$ be calculated from Relativity?

I have three related questions about what theories or equations can calculate and what is an input parameter/constant to the theories. This question is not about parameter units (as another similar question) but calculations.   Can the value of $c$ be calculated from the theory of Relativity (or Maxwell’s equations)?  Can the value of $h$ be calculated from Quantum Mechanics?   Can the value of $G$ be calculated from Newtonian Mechanics?


How to draw arrows between circled coefficients of polynomials using tikz

After reading Gonzalo's answer to , I thought  I would be able to modify it so that I could have the corresponding coefficients circled and an arrow going from one circle to the next. For example, I would like the coefficient of x^2 on the left, a, circled and the coefficient of x^2 on the right, 5 circled, then a curved arrow drawn between the two circles. How might I achieve this? Also, how would I add some text along the path of the arrow? I reproduce his code here.  \documentclass{article} \usepackage{amsmath} \usepackage{tikz} \usetikzlibrary{calc}  \newcommand{\tikzmark}[1]{\tikz[overlay,remember picture] \node (#1) {};}  \begin{document}  \begin{equation}   a\tikzmark{a}x^2 + bx + c = 5\tikzmark{b}x^2 + bx + c.   \begin{tikzpicture}[overlay,remember picture,out=315,in=225,distance=0.4cm]     \draw[->,red,shorten >=3pt,shorten <=3pt] (a.center) to (b.center);   \end{tikzpicture} \end{equation}  \end{document}


Use Eisenstein´s criterion to show that $P(x)=x^n+5x^{n-1}+3$ is irreducible.

Since Eisenstein´s criterion ist not directly applicable we look at the polynomial P (mod 5), which then reduces to  $P(x) = x^n + 3$ (mod 5) ... is this correct? Now I can apply the Eisenstein Criterion with prime number 3: The leading coefficient of $x^n$ is 1 and not divisible by 3. The other coefficients, 0 and 3 are divisible by the prime 3. Further, the constant, 3, ist not divisible by the square of the chosen prime, $3^2 = 9$. Therefore, $P$ is an irreducible polynomial. Is this correct? Have I understood the E.C. correctly?


Should I increase my partition size when the volume “Filesystem Root” has only few disk space remaining?

My question differs from , for mine is specific about managing disk space on multiboot devices  From time to time, the system shows this warning message:     I have a dual-boot with Windows 10 and Ubuntu 16.04. Here's what fdisk shows:  mike@mike-thinks:~$ sudo fdisk -l [sudo] password for mike:  Disk /dev/sda: 931,5 GiB, 1000204886016 bytes, 1953525168 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disklabel type: dos Disk identifier: 0xc3c0f778  Device     Boot      Start        End    Sectors  Size Id Type /dev/sda1  *          2048    1026047    1024000  500M  7 HPFS/NTFS/exFAT /dev/sda2          1026048 1743806463 1742780416  831G  7 HPFS/NTFS/exFAT /dev/sda3       1743806464 1782867967   39061504 18,6G 83 Linux /dev/sda4       1782870014 1953523711  170653698 81,4G  5 Extended /dev/sda5       1782870016 1798492159   15622144  7,5G 82 Linux swap / Solaris /dev/sda6       1798494208 1953523711  155029504 73,9G 83 Linux  Partition 4 does not start on physical sector boundary.  Disk /dev/mapper/cryptswap1: 7,5 GiB, 7998013440 bytes, 15621120 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes mike@mike-thinks:~$ sudo df -h Filesystem           Size  Used Avail Use% Mounted on udev                 3,9G     0  3,9G   0% /dev tmpfs                789M   20M  770M   3% /run /dev/sda3             19G   17G  418M  98% / tmpfs                3,9G   58M  3,8G   2% /dev/shm tmpfs                5,0M  4,0K  5,0M   1% /run/lock tmpfs                3,9G     0  3,9G   0% /sys/fs/cgroup /dev/sda6             73G   63G  6,2G  92% /home tmpfs                789M   60K  789M   1% /run/user/1000 /home/mike/.Private   73G   63G  6,2G  92% /home/mike   What would you advise me to do ?


Recently, I installed Ubuntu 10 Netbook edition (on my netbook, yes, obvious). My battery died literally, while I was using Ubuntu.   Now, when I restart the computer, it seems that GRUB has duplicated all of the entries in the MBR that pertain to the partition that houses my Ubuntu install. For example:  Ubuntu ... Ubuntu ... (Recovery Mode) Ubuntu ... Ubuntu ... (Recovery Mode) Memtest ... Memtest ... Windows (Vista loader) Windows (Windows 7 starter loader)    When I try to access either of the two Ubuntu instances in the boot loader it presents me with an error akin to this:   ...numbers... Kernel panic ... VFS unable to mount...   What I would like to do is:  Wipe out grub, and Ubuntu, and then reinstall Ubuntu (I really only use it for emacs and ess for R so there's nothing in the home directory that I need to backup)  How would I go about "resetting" my system? Or fixing the issue that I have.   Thanks in advance!   BEB


Why the arabic characters encoding changed automatically?

I uploaded a website 7 days ago. The website contains Arabic Language and other languages also(in DATABASE). I used <meta charset="UTF-8"> for encoding in php pages and the Database was also uploaded in UTF-8 Everything was fine and I edited the files and pages several times the last 7 days, everything was fine. But it's changed automatically as you can see some queries from database below:  INSERT INTO `languages` VALUES ('2', 'es', 'EspaÃ±ol', '1'); INSERT INTO `languages` VALUES ('3', 'sq', 'Shqiptar', '1'); INSERT INTO `languages` VALUES ('4', 'ar', 'Ø§Ù„Ø¹Ø±Ø¨ÙŠØ©', '1'); INSERT INTO `languages` VALUES ('5', 'be', 'Ð±ÐµÐ»Ð°Ñ€ÑƒÑÐºÑ–', '1'); INSERT INTO `languages` VALUES ('6', 'bg', 'Ð±Ð°Ð»Ð³Ð°Ñ€ÑÐºÑ–', '1'); INSERT INTO `languages` VALUES ('7', 'ca', 'CatalÃ ', '1'); INSERT INTO `languages` VALUES ('8', 'zh-CN', 'ä¸å›½ç®€ä½“', '1'); INSERT INTO `languages` VALUES ('9', 'zh-TW', 'ä¸åœ‹å‚³çµ±', '1'); INSERT INTO `languages` VALUES ('10', 'hr', 'Hrvatski', '1');   and so on...  But it was fine before but now it's like this, I opened the SQL file in notepad still got the same result.  Please help! :'(


Short story where everyone must be equal

I am looking for a short story about a dystopian society that I read in a High School English Lit book. I am pretty sure it was my Jr. year, circa 1991, the book was a few years old, probably published in mid to late 80s. I went to High School in Oklahoma, the story was in English.  I do not know the name of the author either, but I don't believe it was anyone well known (or at least not well-known to an 11th grader in the early 90s).  The story is set in a world where everyone must be equal. The powers that be implement this by handicapping people that have "better" qualities. For instance, I believe there was a ballet dancer on the TV, and the narrator comments that she must be really pretty to have to wear such an ugly mask.  The narrator was a man watching TV at home. His wife seemed to be kind of dull, and he was periodically hit with a shock collar or something to keep him from thinking too deep a thought (he was above average intelligence and this was his handicap).


Ubuntu 16.04 will not install alongside Windows 7, but 14.04 will

I have an Acer Predator G3610 desktop with Windows 7 - the last computer I have without Ubuntu as either dual-boot or sole OS.  I shrunk the Windows partition so there's a good 300GB of unallocated space on the 1TB hard drive.  I popped the Ubuntu 16.04 live cd in, click Install, and get this:  16.04 install attempt:   Ubuntu detects my Win7 install but will not give me the option to install Ubuntu alongside it.  So, just for a goof, I pop in my old 14.04 live cd and get... this :    the option to install alongside Win7. What gives? And yes, I checked to make sure there wasn't any funny UEFI issue -Both liveCDs boot from BIOS just like the Windows partition.   I have half a mind to just install 14.04 and upgrade later at this point, but I'd really like figure out why 16.04 hates my Windows partition so much.


What good did Snape do anyone by infiltrating the Death Eaters?

OK, first of all, my Harry Potter knowledge is a bit rusty so I may be forgetting something.    In The Half-Blood Prince Dumbledore made Snape kill him (I know he was going to die anyway) so he could gain Voldemort's trust. In The Deathly Hallows, his portrait instructs Snape to provide Voldemort with the correct date on which Harry was to be moved, again, to gain Voldemort's trust.   Why did Dumbledore want a spy in Voldemort's inner circle so badly?   Would anything have been different if Snape had not been in Voldemort's inner circle?


what does it truly mean for there to be a max speed?

Firstly, I apologize if this is the wrong place to post this question; I'm not a scientist, just curious. So: if the speed of light (299 792 458 m/s according to Google) is an absolute limit even for relative speeds, then what happens if I throw a rock such that it achieves the speed of light, and then throw another in exactly the opposite direction (at any speed I guess, but lets say speed of light)? What is their velocity relative to one another?


Show a function for which $f(x + y) = f(x) + f(y) $ is continuous at zero if and only if it is continuous on $\mathbb R$

Suppose that $f: \mathbb R \to\mathbb  R$ satisfies $f(x + y) = f(x) + f(y)$ for each real $x,y$. Prove $f$ is continuous at $0$ if and only if $f$ is continuous on $\mathbb R$.  Proof: suppose $f$ is continuous at zero. Then let $R$ be an open interval containing zero. Then $f$ is continuous at zero if and only if $f(x) \to f(0)$ as $x \to 0$. Then $|f(x) - f(0)| < \epsilon$. Can anyone please help me? I don't really know how to continue. Thank you.


I'm trying to make a GUI that has a Title Panel, Information Section Panel(InfoSect), and later on a panel where the user will type and change the values in the information section. Right now I'm stuck on just trying to get the panels to display. I keep getting errors for the InfoSect panel where I have an array of JLabels. I think I'm initializing wrong but I'm not sure how or why. It seems to also be affecting the more simple Title panel from displaying as well. Would appreciate some help to get this panel to display in the GUI.  import java.awt.BorderLayout; import java.awt.Color; import java.awt.FlowLayout; import java.awt.Font; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JPanel;  public class GUI extends JFrame{      private JPanel main;     Title tle1;     InfoSect is;      public GUI() {           main = new JPanel();         tle1 = new Title();         is = new InfoSect();          main.setLayout(new BorderLayout());         main.setBackground(Color.GRAY);          add(main);         main.add(tle1, BorderLayout.NORTH);         main.add(is, BorderLayout.CENTER);          setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);         setSize(900,700);         setVisible(true);     }      public static class Title extends JPanel{         private JLabel title;          public Title() {             title = new JLabel("Change the Values");             setLayout(new FlowLayout());             add(title);         }     }      public static class InfoSect extends JPanel{          private JLabel[] info;         private int COL = 4;          public InfoSect() {             info = new JLabel[COL];             setLayout(new FlowLayout());             displayInfo();             add(info[COL]);         }          public void displayInfo() {             for(int col=0;col<COL;col++) {                 Font font1 = new Font(Font.SANS_SERIF,Font.PLAIN,10);                 info[col].setFont(font1);                 info[col].setText("Holder");                 add(info[col]);             }         }     }  }   Exception is:  Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException  at build001.GUI$InfoSect.displayInfo(GUI.java:59)  at build001.GUI$InfoSect.<init>(GUI.java:52)  at build001.GUI.<init>(GUI.java:20)


When I want to turn on the computer, this message appears on a black background: /dev/sda7: clean, ..... files, .... blocks I have tried to press Ctrl + F3  + Alt in order to enter my username and password and then reboot the system. However, the next time I turn it on, the problem is still there and the message appears again. What should I do? I have also tried running the following codes but it didn’t work: sudo apt-get update sudo apt-get install xserver-xorg-video-intel


Is the clasped-hand strike seen in Star Trek part of a real/fictional martial art?

I'm less familiar with Enterprise and Voyager, but in TOS, TNG, and DS9 I have repeatedly seen Star Fleet officers engaged in melee combat perform this awkward and slow-looking attack where they clasp both hands together and swing at their opponent. At times it looks like they are trying to chop wood with no axe, hitting the opponent from the side. Other times, it looks like they are playing volleyball extra vigorously, uppercutting their enemy with both hands.  If this were just in TOS, I would assume it was just the choreography of the day. However, it is still present in the more modern incarnations of the show. Is this part of a fictional martial art that is used by Star Fleet (and possibly others? I can't recall if, for example, I have ever seen klingons use this technique), or is it part of a real martial art? If there is no canon explanation (i.e. this move is not part of either a real or a fictional martial art), then why did they continue to use such awkward choreography in the more modern series?


Short story collection about Transporter "Doors"

I'm looking for a short story collection about different uses/inventions of transporter doors. I think it was just a single author collection, that I read in the early 2000s.  In each story these Transporter Doors exist, I seem to remember them being described as blank grey sheets. You step through them and come out somewhere else. The forward to the book talked about early Rocket stories where the launch of a spaceship would be the end of the tale.  Plots of the individual stories:  Two men one of whom's home is inside an asteroid are discussing the use of Base12 in their society and if it is because they have 12 fingers, one says that "people" used to use base10. The implication is that a different species arrived through the doors and replaced humans.  A man puts the code for his home into a door and is instead transported to prison where he's accused of murdering his wife, which he strongly denies.   Two scientists and a pilot take a probe ship deep into Jupiter's atmosphere, the will return to base via a door that they need to construct while they are down there. The scientists dislike each other and don't work well together. When they finish the door, the hamsters seem woosy out the other side, but the scientists insist it is ready. The pilot says he will go first as he can't fix it if it's wrong. When he arrives on the far side he's mentally damaged and the scientists have to get along without him acting as a buffer while the try to save themselves.


Trapezium rule for integration using TikZ

I have problem to draw graphic with LaTeX (especially TikZ)?  Like this:


What happens to spells on the stack when a player leaves the game?

Let's say, in a multiplayer late-game (3+ players) I want to cast/activate anything during another players turn. Everyone is rather low on life, and in response to my spells/abilities on the stack another player reduces the life of the player whose turn it currently is to 0 or below, because of which he loses the game.  It is obvious, that anything that player controls/owns is taken from the stack and the battlefield and his turn ends immediately. But what happens to my stuff on the stack? Does it fizzle or still resolve?


Show that if $f,g:\Bbb{N}\to \Bbb{C}$ are multiplicative, then so is $f*g(n)=\sum_{d|n}{f(d)g({n\over d})}$.   What I did is: Let $m$ and $n$ be co-primes. $m's$ divisors=$\{1,m_1,...,m_s,m\}$, $n's$ divisors=$\{1,n_1,...,n_r,n\}$, therefore:  $f*g(mn)=f(1)g(mn)+f(m_1)g({mn\over m_1})+...+f(m_s)g({mn\over m_s})+f(m)g({n})+f(n_1)g({mn\over n_1})+...+f(n_r)g({mn\over n_r})+f(n)g({m})$.   Denoting ${m\over m_i}=m_i'$ and given $f,g$ are multiplicative:  $f*g(mn)=f(1)g(m)g(n)+f(m_1)g(m_1')g(n)+...+f(m_1)g(m_s')g(n)+f(m)g({n})+f(n_1)g(n_1')g(m)+...+f(n_r)g(n_r')g(m)+f(n)g({m})$.  Now, the problem is when I try to calculate $(f*g(m))\cdot (f*g(n))$: there are many factors of which I can't get rid!  I would appreciate your help a lot.


I'm running Debian testing and can't get a simple cron to run a symlinked PHP script.  I've a php script in a subdirectory in my home folder /home/foobar/dir/script.php (which starts with the following shebang #!/usr/bin/env php).  I've created a symlink which points to it:  sudo ln -s ~/dir/script.php /usr/local/bin/whatever ls -la /usr/local/bin lrwxrwxrwx 1 root staff 24 Feb 27 17:46 whatever -> /home/foobar/dir/script.php*   And added the following rule to my crontab (execute whatever every minute):  crontab -e * * * * * whatever   But it doesn't work, I get the following error:  cat /var/mail/foobar ... /bin/sh: 1: whatever: not found   While pointing to the script without using the symlink works:  crontab -e * * * * * /home/foobar/dir/script.php   Any idea?


Master database is corrupt, instance won't start - what are my options?

Help! My master database is corrupt, I can't even bring the SQL instance online! What are my options to get my server back up?   I do have a backup of master, but the  asks me to start the instance in single-user mode, which I can't do!  (Note: I'm leaving this question unspecified as to SQL version, so as to be a more widely-applicable reference. There are some similar questions on DBA.SE, but none that involve the server unable to start.)


I have been thinking about Mary.   vs     I have been thinking of Mary.   Is there any slight difference? I think the above two sentences are almost the same.  Let's say that the speaker broke up with Mary two years ago, and that since then the speaker has been missing her. In this situation, which of the two sentences highlighted above better expresses the speaker's feelings?


Selecting a color that will be readable overlapped upon another?

I've got random circles from random colors of RBG (assume they can be any combination of values). I have some text I want to write on top of them but I want the color to be readable on it no matter the color of the bubble. How can I pick a complimentary color?


How can I explain why we use 'having' in 'consider having' and 'have' in 'I'd rather have'?

I'd like a simple explanation as to why we use present continuous in some phrases and present simple in others. For example 'I recommend you consider having it remodeled' vs 'I'd rather not have it...' or 'I recommend putting it...' vs 'I recommend you to put it..'   Thanks!


How do anti-virus programs start at Windows boot?

When performing some testing, I noticed that after installing Avast and checking in both my "Run" registry key and my "Startup" folder that a startup entry wasn't present in either location. Taking this into account, in which location do the majority of anti-virus programs locate themselves so that they will automatically start at OS boot time?


proof $S_n$ has no subgroup of order $ \frac {n!}{4}$for $n>5$.  We know only subgroup of index $2$ in $S_n$ is $A_n$ and $A_n$ is simple group  And we know every  non trivial subgroup of $S_n$ has atleast one even permutation now let $K$ be subgroup of $S_n$ with order $ \frac {n!}{4}$ then $K \cap A_n$ is not trivial and $K \cap A_n$ is subgroup of $A_n$ but how we can show $K \cap A_n$ is not normal in $A_n$ ?


I have just seen an article in FT with the title      Iran’s Mahan airline defies sanctions in shadowy aircraft deal   It seems to me that an article is missing in this sentence. Namely, it should be "in a shadowy deal". Is this correct? If yes, why the article is missing here?


How can I supress zero values in a LibreOffice line line chart?

I'm making a line chart counting users of various releases of a piece of software over the years. This is a very spiky line chart, where as new versions come into existence and then retire, lines should start arbitrarily along the X axis. However, instead, since there is a "0" in my data for the periods where that version didn't even exist yet, I instead get all values starting at 0,0, with a flat line along the bottom.  It's not a big deal, but it's irritating my sense of chart aesthetics. How can I suppress this? I found various options to not show zero-value cells in the data itself (either on-screen or when printing), but they don't seem to affect the line chart.


Why does `*.ext` work in finding a file with extension 'ext'

Shouldn't it be .*\.ext to match files ending with extension "ext", from the aspect of regular expression?  I have tried ls *.sh, which can show all the shell script file. But if I change to ls .*\.ext, it doesn't match the shell script file though.


Inerfacing switch & led with any controller

I am trying to interface switch and led. I want to write a program in which if I press and release the switch led should glow and if I again press the switch led should turn off. I am not able to write logic for it as I am newbie to embedded system. Can anyone just help me writing the logic for it.? Thanks.  This is my code of turning on and off led using switch CODE  int main(void)  {     DDRC |= (1<<PC0); //Makes first pin of PORTC as Output     DDRD &= ~(1<<PD0);//Makes firs pin of PORTD as Input      while(1) //infinite loop     {         if(PIND & (1<<PD0) == 1) //If switch is pressed         {             PORTC |= (1<<PC0); //Turns ON LED             _delay_ms(3000); //3 second delay             PORTC &= ~(1<<PC0); //Turns OFF LED         }     } }


How can you schedule a computer to boot at a specific time?

Usually BIOSes have an option to schedule a time to which to boot at. Is there a Unix/Linux interface to specify the scheduled boot?


I have to ssh twice to two servers, both with usernames and passwords (user1@server1 with password pwd1 and user2@server2 and password pwd2), before reaching my target remote directory. I've read  but I don't know how to combine this with rsync since the syntax I've been using is just rsync -aP user@server1:/src /target. How do I change the syntax taking into account that the two ssh require different passwords?


I am not even sure where to start with this question. Any help would be much appreciated! Thanks! We are not allowed to use Mathematical Induction!


cannot install Ubuntu (message about PAE)

I received the error message below on the black terminal screen after waiting for a reboot.. I tried to find "forcepae" in the available options but couldn't. Can Anyone please help?  ERROR: PAE is disabled on this Pentium M (PAE can potentially be enabled with Kernel parameter "forcepae" - this is unsupported, may cause unknown problems, and will taint the kernel) This kernel requires the following features not present on the CPU: pae Unable to boot - please use a kernel appropriate for your CPU


Proof: For any positive integer $n$, there exists a prime whose first digits are the digits of $n$

Conjecture:      For any positive integer $n$, there exists a prime whose first digits   are the digits of $n$.   Proof:  The infinite set of integers starting with the digits of integer $n$ is distributed as $1$ sequence of consecutive integers for each power of $10$. For example, the integers starting with the same digits as $2$ are those between $20$ and $30$, between $200$ and $300$, between $2000$ and $3000$ $…$ Now let's say $n=1245$, and let's look at much larger integers than $n$. For example, all integers $x$ in the following interval starts with digits $1245$: $$ 12450000000000000000000000000 ≤ x <12460000000000000000000000000 $$  A range of this magnitude is proven to contain at least $1$ prime number, so whether $n$ is a single digit or a million digits long, we only need to add the proper number of zeros to reach an interval where having no prime is impossible.  Questions:   Is my proof valid ? Did I miss something ? Is there other existing proofs of that ?   Of course any suggestions/edits to make it more clear or professional are welcome, I'm still a newbie at proof writing!


Let $i=\sqrt{-1}$  $$\frac{1}{\sqrt{-i}}=\frac{1}{\sqrt{(-1)i}}=\frac{1}{i\sqrt{i}}=\frac{-i}{\sqrt{i}}$$  And  $$\frac{1}{\sqrt{-i}}=\sqrt{\frac{1}{-i}}=\sqrt{\frac{-1}{i}}=\frac{i}{\sqrt{i}}$$  However,   $$\frac{-i}{\sqrt{i}}\ne\frac{i}{\sqrt{i}}$$  Where did I go wrong?


$T$ is a compact operator from $\ell^p$ into $\ell^p$ iff $\lambda_n \to 0$?

Let $E = \ell^p$ with $1 \le p \le \infty$. Let $(\lambda_n)$ be a bounded sequence in $\mathbb{R}$ and consider the operator $T \in \mathcal{L}(E)$ defined by$$T(x) = (\lambda_1x_1, \lambda_2x_2, \dots, \lambda_nx_n, \dots),$$where$$x = (x_1, x_2, \dots, x_n, \dots).$$How do I see that $T$ is a compact operator from $E$ into $E$ if and only if $\lambda_n \to 0$?


Should there be a difference in the relative sizes of the buttons in a confirmation dialog?

I understand the idea behind having the more likely to be used action on a page slightly larger or in a different style in order to guide the user to it (for example having a button for save but a small text link for cancel).  When say an administrator hits delete I have a confirmation dialog appearing asking if they are sure they want to do that and presenting them with two options, 'Yes, Delete this' and 'No, Keep this'.  At the moment these are the same size and style and therefore the same weight on the page.  I was wondering if that should be the case or should I assume that the administrator is not an idiot and that if they have hit delete confirming this action is the most important part of his next step and therefore should be given a greater weighting on the page?


Is it possible to get a fully transparent window in Pygame (see the desktop through it)?  I've found how to create a window without a frame, but there doesn't seem to be any obvious way to make it transparent.  I'd be willing to tie into system-specific technology/frameworks as long as there are solutions for both Windows and Mac OS X, but I'm not sure which direction to be looking.  The only topic I was able to find , which isn't something I can do for this particular project (needs to be Pygame).


Solve the recurrence relation  $$f(n) = 2f(n - 1) + f(n - 2)$$ with initial conditions $f(0) = a, f(1) = b$. (here a and b are fixed, arbitrary integers).  Can anyone show me how to solve this? a and b are fixed, arbitrary integers. Does it mean I can put any value for a and b?


MacBook [Pro] - how many displays, what resolution/frequency?

How do I find out the number, type, resolution & refresh rate of additional monitors I can attach to my MacBook or MacBook Pro?  This is an attempt at a canonical QA, as per the Meta QA -   to try prevent the myriad "same but different" questions we get on every possible combination of computers, cable & monitors There are perfectly good resources out there that Ask Different should not have to duplicate the efforts of.


Why the heck installing pop theme turned my whole ubuntu into pop os?

I installed pop theme in my ubuntu 20.04. But after next system update my whole ubuntu turned into pop os. Now how I am supposed to get my good old ubuntu back?


I am totally stumped for what to do here, any help would be appreciated.   1) What happens if you apply the method of steepest descent to $f(x)=x_1^2+x_2^2+x_3^2$?  2)Lagrange multipliers method- Find the dimensions of the rectangular box open at the top of greatest internal volume, given the surface area of the five faces is $108 \, \mathbb{cm}^2$.  Thanks


Prevent Word from Including Bullet Letter when Copying Text

I'm copying quite a bit of text from Word into a text-based application, line by line.  The word text is structured like this:        Topic      a. Item A      b. Item B      When I highlight Item A, copy, and then paste into the text-based application, I get a.    Item A rather than just Item A as desired.  How can I prevent Word from including the bullet letter when copying?


Java getting a .wav file to run inside a .jar

I am trying to get my .wav file to run from inside a .jar file once I have exported the program, and have researched extensively on the solution, but have found nothing that works.   Here is my current code:           Clip clip = AudioSystem.getClip();         clip.open(AudioSystem.getAudioInputStream(new File("soundfile.wav")));         clip.start();   What can I do to fix this?


//To all those marking this as a duplicate, I did search before and found some similar ones, however, those did not fully answer my question and I'm still not sure how to answer the question I have included in this post. I need someone nice enough to explain their difference a little bit more in depth.  What is the difference of #include < something > and #include "something.h" ?  Also can someone tell me why the 3rd option is right in the multiple choice question below?   Suppose you wanted to make use of terminal control routines I gave and all your codes are put in yourprog.cpp. The interface for terminal control is declared in term control.h and the implementation is stored in term control.cpp. Which of the following include lines should be put in yourprog.cpp so your program can use the terminal control routines?   include <term control> include <term control.h> include "term control.h" include <iostream>


Smallest AES implementation for microcontrollers?

Can anyone recommend a small, free implementation of AES-128 Rijndael for microcontrollers. Ideally, for the PIC18, though a general implementation in C would be useful.  Compiling the  for PIC18 and encrypting/decrypting a block requires 6KB ROM and 750b of RAM.  Compiling  for PIC18 and encrypting/decrypting a block requires 28KB ROM and 0.5KB RAM.  Compiling  for PIC18 and encrypting/decrypting a block requires 19KB of ROM and 190 bytes of RAM.  Are there better optimised PIC specific variants available?  (updated RAM requirements for axTLS version)


How to find a fundamental solution to Pell's equation?

It is quite straightforward to find the fundamental solutions for a given Pell's equation when $d$ is small. But I am unable to solve this equation, as I'm unable to find the fundamental solutions:  Solve: $x^2-29y^2=1$ and $x^2-29y^2=-1$ with $y\not=0$.  Could you please guide me through the solution


What determines deal price on stock exchange?

Let's say I'm interested in buying some shares, and I place an order to buy at 80c. At the same time, someone is willing to sell his shares at 40c.  Now I'm told by the bank that they have a best execution policy: i.e. if I want to buy at 80c but it can be bought at a lower price, then the actual price may be lower than what I specified. However, the seller's bank most likely has a similar execution policy.  With that reasoning, although a match is made and the deal may be done, it may be executed at any price between 40c and 80c. How does the stock exchange determine which price to use?


Literature with Biber generates strange citations: firstnames appear erratically

I had been using bibtex and then biblatex for quite some time. For the newest edition of my book I moved to biber. I happened t notice that firstnames are sometimes generated and sometimes not. Has this been observed by others?   I have tried to make a minimal example but without success. Using the following code, which shows all the commands related to biblatex I have in my preamble I could not get the firstnames to be shown. Even with the stylefile I made for this book (second line) the error did not occur.  I have a dropbox with the latex files for the book available. I can give access to these.   What do you propose?  \documentclass[fontsize=10pt,twoside]{scrbook} \usepackage{hormonbuch} \usepackage[%   style=authoryear%   ,natbib=true%   ,sorting=nyt,backend=biber,doi=false,isbn=false,url=false]{biblatex} \addbibresource{../Literatur/EndokrinologieKundeNourl.bib}  \renewcommand*{\bibpagespunct}{\addcolon} \DeclareFieldFormat{pages}{#1}  \renewrobustcmd*{\enquote}{}  \renewbibmacro{in:}{%       Herbert Voss auf http://tex.stackexchange.com/questions/10682/suppress-in-biblatex   \ifentrytype{article}{}{%   \printtext{\bibstring{in}\intitlepunct}}}  \renewbibmacro*{journal+issuetitle}{%   \usebibmacro{journal}%   \setunit*{\addspace}%   \iffieldundef{series}     {}     {\newunit      \printfield{series}%      \setunit{\addspace}}%   \usebibmacro{volume+number+eid}% %  \setunit{\addspace}%   \newunit}  \renewbibmacro*{volume+number+eid}{%   \printfield{volume}% %  \setunit{\addcolon\space}%   }% % \renewbibmacro*{note+pages}{%   \printfield{pages}%   \newunit} % \begin{document}  \citet{CRT+88,FDe+85} \citep{CRT+88,FDe+85} \cite{CRT+88,FDe+85}  \printbibliography  \end{document}


When I try to draw a 2.5 mile buffer around a point in QGIS, the entire screen is filled with the buffer.  I have changed the projection of the shapefile and the project, as you can see from the screenshots.  This is using QGIS 3.8.0


How to parse a string into a nullable int

I'm wanting to parse a string into a nullable int in C#.  ie. I want to get back either the int value of the string or null if it can't be parsed.  I was kind of hoping that this would work  int? val = stringVal as int?;   But that won't work, so the way I'm doing it now is I've written this extension method  public static int? ParseNullableInt(this string value) {     if (value == null || value.Trim() == string.Empty)     {         return null;     }     else     {         try         {             return int.Parse(value);         }         catch         {             return null;         }     } }      Is there a better way of doing this?  EDIT:  Thanks for the TryParse suggestions, I did know about that, but it worked out about the same.  I'm more interested in knowing if there is a built-in framework method that will parse directly into a nullable int?


Can a 20V 4.51A power supply be used with a computer that requires a 19V 3.42A power supply?

I have a laptop that says it needs a 19V 3.42A power supply. I have a Dell 20V 4.51A power supply.  Can I use this power supply with my laptop, or will it destroy the machine?


Kubernetes requires Docker 18.09 but CentOS yum upgrades it to 19.03

Kubernetes seem to require docker version 18.09 even if newer versions exist such as 19.03...  When installing on CentOS, I made sure to pass the right version to yum.  Unfortunately, I did a yum update / yum upgrade after and it upgraded docker's version to the newest...  In Kubernetes documentation, it is specifically written to use 18.09, and I also get some warnings after issuing the kubeadm init command.  2 questions here...   Why is still the newest K8s version not supporting 19.03? How can I make sure CentOS doesn't update 18.09?   Thank you very much!


I am trying to re design a plugin to run multiple iterations of data loaded from a file. I am using QT creator to develop the GUI. How would I design a load data input box so users can select a data file and then run the plugin.   The plugin initially uses single coordinate inputs i wish to use multiple.


How does melting of Antarctica's ice cause rise in sea level?

It is clear from Archimedes Principle that, floating ice when melts completely does not cause any rise in water level , then how sea level is rising?


Linker error when compiling C++ source file, undefined reference to class functions

I created a sample minimal directory structure with which I am able to re-create my linker error problem. Below is the directory structure I am having:  satyam@sat:~/cpp/build$ ls -R .: src  template  ./src: main.cxx  main.o  ./template: tmp.cxx  tmp.hxx  tmp.o   Content of each of the file is as below:  tmp.hxx  template <typename T> class Array { private:     T *ptr;     int size; public:     Array(T arr[], int s);     void print(); };   tmp.cxx  #include <iostream> #include "tmp.hxx"  using namespace std;   template <typename T> Array<T>::Array(T arr[], int s) {         ptr = new T[s];         size = s;         for(int i = 0; i < size; i++)                 ptr[i] = arr[i]; }  template <typename T> void Array<T>::print() {         for (int i = 0; i < size; i++)                 cout<<" "<<*(ptr + i);         cout<<endl; }   main.cxx  #include <tmp.hxx>  int main() {     int arr[5] = {1, 2, 3, 4, 5};     Array<int> a(arr, 5);     a.print();     return 0; }   First I moved to template directory and made object file of tmp.cxx with below command:  satyam@sat:~/cpp/build/template$ g++ -c tmp.cxx   Then I moved to src directory and made object file of main.cxx with below command:  satyam@sat:~/cpp/build/src$ g++ -c -I ../template/ main.cxx   Finally I tried to make binary in /cpp/build directory with below command and got this linker error:  satyam@sat:~/cpp/build$ g++ -o prog template/tmp.o src/main.o src/main.o: In function `main': main.cxx:(.text+0x4e): undefined reference to `Array<int>::Array(int*, int)' main.cxx:(.text+0x5a): undefined reference to `Array<int>::print()' collect2: error: ld returned 1 exit status   I tried looking on other threads of SO and found that including tmp.cxx file in main.cxx will resolve the problem, but I really don't want to go with that option as it doesn't looks right. Not sure where to look further.  Any help regarding this would be great.


Why can't strings be mutable in Java and .NET?

Why is it that they decided to make String immutable in Java and .NET (and some other languages)? Why didn't they make it mutable?


Unix - df output is /var 98% but just 374mb used in du output

Here is my df -g output:  df -g /var Filesystem    GB blocks      Free %Used    Iused %Iused Mounted on /dev/hd9var        3.50      0.10   98%     6376     18% /var   But if a enter in the mount point and issue du command, I get the following output  ux-zzz02:/var>du -sm . 374.38  . ux-zzz02:/var>   How can this happen? I have only 374mb being used but df command says it's used 98% of 3.50gb


Is the EmDrive, or "Relativity Drive" possible?

In 2006, New Scientist magazine published an article titled 1 [] about the  [] which stirred up a fair degree of controversy and  that New Scientist was engaging in pseudo-science.   Since the original article the inventor claims that a "Technology Transfer contract with a major US aerospace company was successfully completed", and that papers have been published by Professor Yang Juan of The North Western Polytechnical University, Xi'an, China. 2   Furthermore, it was  that the Chinese were going to attempt to build the device.  Assuming that the inventor is operating in good faith and that the device actually works, is there another explanation of the claimed resulting propulsion?  Notes:  1. Direct links to the article may not work as it seems to have been archived. 2. The abstracts provided on the  website claim that they are Chinese language journals which makes them very difficult to chase down and verify.


Solving Equations $x^3+x+1=0$ with Complex Solutions

I have to solve the equation $x^3+x+1=0$, i know that there must be complex roots, but I do not know how to do it. I tried to use Cardano's formula... Maybe you have any ideas?


Can I charge a computer through its USB port?

Can I charge computers by inducing 5-volt into their USB connectors? Is this possible? I noticed that when my EeePC 900 is off but plugged in charger, there is power coming out of the USB port. Can this be a sustainable way of charging a PC, or a flaw in design?


Why are there both Static and Kinetic Friction?

When dragging an object, there is a greater start-up force than the force it takes to keep it moving. Why is this? Why are there two different values for friction?


Dual Booting with Ubuntu (GParted Problem)

I wanted to dual boot Debian with my Ubuntu machine, but I cannot seem to create a partition using GParted. I go to "Create a Partition" but it's greyed out and I can't click "New".  I'm sorry if this is a stupid question, I'd just started using Linux and I've used Windows all my life.  Thank you!  EDIT: Going into a live usb didn't work.


How to disable the on screen keyboard in 17.10

Everytime I touch the screen, even in a non text entry area, this keyboard pops out.  How can I disable it?  It is very jarring


I'm taking Calculus II next semester so I don't have all the tools from it to back me up but something came up in a discussion this evening that asked me to prove that the following sequence converges. As I'm new to formal math I'm hoping someone can verify my proof, especially step $6$. I must prove that $$\lim_{n\to\infty}P_n=b$$ where $$P_{n+1} = P_n + \frac{b-P_n}{2}$$ $$P_0 = a$$ and $a,b \in \mathbb{R}$ such that $a>b$ My proof goes as follows:   We must prove that $$\lim_{n\to\infty}P_n=b$$  That is, $\forall\epsilon>0$ there exists a $\delta$ such that there exists an $n$ satisfying $$n>\delta \iff b-P_n<\epsilon$$  First, let us prove that $P_n$ is bounded by $b$ by contradiction. Let us choose an $i$ such that $P_i < b$ and $P_{i+1}>b$. Then we have $P_{i+1} = P_i + \Delta P$ where $\Delta P > b-P_i$. but this is impossible because by the definition of the recurrence $\Delta P = \frac{b-P_i}{2} < b-P_i$. Therefore, $P_i$ is bounded from above by $b$.  Additionally, it is trivial to show that $P_{i+1} > P_i$.  With this in mind, choose an arbitrary $\epsilon$. We need to show that there exists an $n$ such that $P_n > b-\epsilon$. Assume the contrary, that $P_n$ is bounded by $\epsilon$.  Using a similar argument to what which was used before, assume $P_n$ is bounded by $\epsilon$ and then there exists a $P_i$ such that $P_{i+1}\not > P_i$. But this results in a contradiction with (4)  Therefore, $P_n$ is not bounded by $\epsilon$ and we have proved what we want to prove.


A fair coin is tossed $n$ times by two people. What is the probability that they get same number of heads?

Say we have Tom and John, each tosses a fair coin $n$ times. What is the probability that they get same number of heads?    I tried to do it this way: individually, the probability of getting $k$ heads for each is equal to $$\binom{n}{k} \Big(\frac12\Big)^n.$$ So, we can do $$\sum^{n}_{k=0} \left( \binom{n}{k} \Big(\frac12\Big)^n \cdot \binom{n}{k}\Big(\frac12\Big)^n \right)$$ which results into something very ugly. This ugly thing is equal to the 'simple' answer in the back of the book: $\binom{2n}{n}\left(\frac12\right)^{2n},$ but the equality was verified by WolframAlpha -- it's not obvious when you look at it. So I think there's a much easier way to solve this, can someone point it out? Thanks.


So in noticed every time I edit a text file with gedit, i get a hidden file in this directory with the same name except in the end this file has this symbol ~  So why does the system or gedit creates such files and can I safely delete them.  Interesting thing is that even after i delete the main file this files do not get deleted.


How to remove a newline from a string in Bash

I have the following variable.  echo "|$COMMAND|"   which returns   | REBOOT|   How can I remove that first newline?


Since $$\lim_{n\to\infty}(\frac{n-k}{n})^n=e^{-k}$$ We can predict that: $$\lim_{n\to\infty}(1^n+2^n+…+n^n) /n^n=\sum_{k=0}^\infty e^{-k}=\frac{e}{e-1}$$ However, I think the solution is NOT strict enough. Although I have a rigorous proof for this, I want a easier solution.$$$$My solution as follows:


What is the relationship between the volume form and the divergence operator?

While researching how to derive the divergence theorem from the generalized Stokes' theorem, I ran into the , which claimed that the divergence of a vector field $X$ on a manifold $M$ could be defined as the unique scalar function which solves $$(\textrm{div}X)\omega = d(X \;\lrcorner\;\omega) \quad (1)$$ where $\omega$ is the volume form of $M$ and $X \;\lrcorner\;\omega$ is the interior product with $X$. Stokes' theorem then implies that $$ \int_{M} (\textrm{div}X)\omega = \int_{\partial M}X \;\lrcorner\;\omega \quad (2)$$  This is claimed to be a generalization of the .   Why is $(1)$ a "good" definition for divergence? How does it connect to the usual definition? How should I (intuitively) interpret the relation with the volume form? How does $(2)$ restrict to the usual statement of the divergence theorem? I'd assume there's some way to transform $X \;\lrcorner\;\omega$ into $(X\cdot n) \alpha$ where $\alpha$ is the volume form on $\partial M$, but I don't know how to derive it.


Dereferencing a post-incremented pointer vs incrementing pointer and then dereferencing?

In C, I find that the following produces different results although in my mind they should do the same thing:  Say I have the function int main (int argc, char* args[]) and I want to switch on the value of the second character of the first argument.  This works as expected:   args[1]++;  switch (*args[1])  { //...   But this doesn't (always falls back to default:)  switch (*(args[1]++)) {  //...   Could a 'C' master explain what's going on?


Tense for an event that occurs as you read it

I came across this sentence today in a wait screen for a twitter client:  Did you know that this wait is actually Twitter's fault, not ours?  Is "Did" correct usage in this case? I didn't know it earlier, but I became aware of it as I read it. Hence this seems logically correct. But a  Do you know that this wait is actually Twitter's fault…?"  sounds more natural in this case. What tense would be correct in this case?


I have a trigonometric function and I'm interested to know whether or not it has a period. At this stage I'm fairly certain that it is not periodic. However, I don't know how to prove it. Can anyone help?  This is the function:  $$g(x) = \sin(2 \pi (x-a) \times b \times \cos(2 \pi (x - a) \times c)) + d$$  Thanks


off-center PDF page in XeTeX using pdfpages package

I am trying to include a page of another pdf (in another folder) into a TeX file as it compiles. The other document has spaces in the title as well as in the path.  \documentclass[12pt]{article} \usepackage{grffile} \usepackage{pdfpages}  \begin{document} \includepdf[pages=6]{../AP Exams/2005 Form A/2005AFRQv2} \end{document}    I end up with an off-center image of the page preceded by the path in the command on the left side. Does anyone know how to fix this? I'm using XeLaTeX for reasons not shown in this MWE.


MacBook on macOS Catalina 10.15.7 not returning disk space after deletion

So I believe I have a drive requiring FSCK or a version of this for Catalina. This started first of all when I was trying to get rid of purgeable space by creating lots of files using the dd if=blah blah of=/users/user/bigfiles/bigfile1 etc etc. When I deleted these files I didn't get my disk space back. Even now deleting large video files has no effect, in fact any deletion gets only minimal space recovery or none at all. I have tried all the usual tricks "First Aid" (in recovery mode) and all the disk checks I know how to do, booted into single user mode etc, and run utilities like ONYX, but even though it didn't fix my disk it seemed to find something wrong. Can anyone please shed some light of the results? Also some people have suggested this is a local Time machine backup issue so I deleted all my local backups and verified there are none there. As you can see I have some errors when I scan disk Macintosh HD - Data, I get a bunch of warning: xf: INO_EXT_TYPE_DSTREAM: found unexpected stream associated with non-regular file  and then a load of warning; FOUND ORPHAN DSTREAM IDOBJECT (id 384942334 (or whatever) refcnt 1)  The volume /dev/rdisk2s1 appears to be ok As you can then see from the next screen shot 478GB used and 600MB free Rebooting into multi user mode I looked at the local snapshots. I had already deleted all my local snapshots and can show there are none left with: sudo tmutil listlocalsnapshots / ....and get nothing listed... Next I run Daisydisk and you can see 0.5GB free so I scan the disk and see that: 498GB total used but if you add the items shown you only get approx 260GB so apparently 240GB has been eaten by the system and hidden somewhere. Any ideas? Regards P.S. so I couldn't work out how to insert multiple files (screen shots and a PDF) so here is a link to a Onedrive directory with them in it.


verbatim environment does not work with powerdot

I'm trying to include a verbatim environment in a powerdot slide as follows, but that does not work:  \documentclass{powerdot}  \begin{document}  \begin{slide}{title of the slide}   \begin{itemize} \item  \begin{verbatim}            abcdefghijklmnop...        \end{verbatim} \end{itemize} \end{slide}   \end{document}   I get the following message in the log :  ! Argument of \verbatim@ has an extra }.