Regular module endomorphisms into itself

Let $k$ be a field and let $A$ be an algebra over $k$. Denote by $End_A (A)$ the set of all endomorphisms of the regular $A$-module $A$ into itself. Fix $a \in A$, and define the A-module homomorphism $r_a : A \rightarrow A$ by $r_a(x) = x \cdot a$.  Clearly, $\{r_a: a \in A\} \subseteq End_A (A)$. But, is it true that moreover $\{r_a: a \in A\} = End_A (A)$? If so, how to show this?


I got "yellow card" from StackOverflow with message "Your review on triage/### wasn't helpful".  I do not complain about it.  Purpose of this post is to fill the bug.  The problem is that I knew about getting yellow card wrong way. I became aware of it only when I manually directed browser to review queues page  .  StackOverflow usually invites you to participate in review by displaying red dot on review queues icon. In my case I saw red dot and when I pressed review queues icon I saw message "There are no review queues available to you" (without any clickable URLs). Well, it could be that queue got cleared before I clicked icon or some glitch.  But when I saw it appear again and again with the same message and without any URLs I wondered what could be the case and visited reviews page by directly specifying URL in browser.  Red dot disappeared once I visited review page and saw the warning so it is OK.  The problem is that red dot appears with no actionable URLs or explanation so user has no chances to know that something strange happens.  It would be nice to add some clickable item under message "There are no review queues available to you" or make this message clickable so user could see what is going on.


I would like to use one Ethernet Cable to hook up to two devices

Description: I have a Computer hooked up to a Cable Modem>Router with 4 Ethernet slot> and One slot using Ethernet cable going all the way to other side of house through attic, and I would like that one Ethernet cable to hook up to the PS4 and Laptop in the same room. To avoid having to buy another 100ft cable and going through the attic. Is there a way I can use the current Ethernet cable in room to hook up to two devices? If so, what do I need to buy/how to set it up? Thanks for taking your time to answer my question. If your able to link to what item/items I need to buy, that would help too. (Also my internet connection is 100mbps)


Is there an easy way of forcing mono sound output - for one ear, one earphone, one speaker?


Can I back out of activating an ability where my opponent chooses the target?

Say I have a , and my opponent and I each control other creatures. Magus of the Arena's ability is     {3}, {T}: Tap target creature you control and target creature of an opponent's choice he or she controls. Those creatures fight each other.   Is the following sequence of actions on my part legal?   I declare that I am activating the Magus's ability. I choose one of my creatures as a target. My opponent chooses one of their creatures as a target. Specifically, it is a creature I did not want to fight. I say "I decline to tap my lands for mana" since step 601.2f, only says that I have a chance to activate mana abilies, and not that I must do so. Then I say "I do not have enough mana to pay for the spell" (in step 601.2g). Now, according, to step 717, we back out of activating the ability, and do something else.   This seems to follow the letter of the rules, but it also seems to violate the spirit of the card in question.


A ball is thrown upward in a train moving with a constant velocity. Where will it land?   My intuition tells me that the ball will fall at my back. But my book says that it will return back to the thrower.


How to know the functions included as a part of a module?

I am fairly new to the python. I am using this Seaborn module for instance and I wanted to know is there any way I could know what are all the functions included as part of this module (such as scatterplot, regularplot or any other things which could be used using this module).   I tried using pip list and it gave me seaborn version as 0.10.0. When I am trying the use scatter plot , I am getting error as  "module 'seaborn' has no attribute 'scatterplot'" I tried searching over the internet, but was not able to get any clarity as it was saying some versioning issues. But I wanted to check what are the functions included as part of this module.   Below is the code:   import seaborn as sns  sns.scatterplot(x="A", y="B", data= abc)   Can anyone please help if there is any way to know the functions of a module?


Why does dd from /dev/random give different file sizes?

I am running the following command on an ubuntu system:  dd if=/dev/random of=rand bs=1K count=2   However, every time I run it, I end up with a file of a different size.  Why is this?  How can I generate a file of a given size filled with random data?


Why don't we have Suggest as Answer button near every answer? I see a lot of unanswered questions (With answer, but not marked) everyday. It would be great if system can Accept Answer as usefull automatically if there is like 10 suggestions or something.    I am sorry in advance if this is already suggested, but I really think this could be usefull here (I'm talking about all communities in StackExchange).


Test mail not sending in drupal 7 SMTP configuration in windows 2012 server

I installed and configured smtp module with proper details in drupal 7. I tried to send test the mail in windows 2012 server but am getting the below error. SMTP -> ERROR:  Failed to connect to server: php_network_getaddresses: getaddrinfo failed: This is usually a temporary error during hostname resolution and means that the local server did not receive a response from an authoritative server. SMTP Error: Could not connect to SMTP host. Unable to send e-mail. Contact the site administrator if the problem persists.    Same build is working fine in Windows XP, 07 and ubuntu environments. Not able to find the root cause. Any suggestions are welcome.


Error when joining a Minecraft server :Message: Connection timed out

Everytime I try to join a server, it says this following error: Message: io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection timed out: no further information:. For some reason, it only happens with Aternos servers. I have tried to flush my DNS cache, but it didn't work.


How can I check if /bin/x86_64/bin/ls is a directory in a bash shell script  Here is what I tried:  #!/bin/bash  if [ $# -eq 2 ]; then     if [[ "$1" = /* ]]     then     cd ./bin/x86_64/bin/ls         if [ -d "$1" ]; then             echo "ok"             i="$1"             echo $i         else             echo "error2"             exit         fi     else         echo "error"         exit     fi fi


Exactly as the title, what does "nine-and-twenty" mean? Here's an example of sentence:  Afraid of him! No, indeed! But I wish you will consider that a man of nine-and-twenty won’t relish having his affairs meddled with. Besides, he will very likely wonder what the deuce it has to do with me, and I’m sure I can’t tell him! I wish I had not come. , Georgette Heyer, 1940


How to determine used/free space within SQL database files?

I normally use the following method to determine the free/used space within each file of a database:  Select *, fileproperty(name, 'SpaceUsed') as Used From dbo.sysfiles   This returns total and used space in pages, which I then multiply by 8 to get KB (or divide by 128.0 to get MB).  I found another script than instead uses DBCC showfilestats and dbcc sqlperf(logspace) to return the TotalExtents and UsedExtents, which can then be multiplied by 64 to get KB (or divided by 16.0 to get MB).  Ignoring the extra columns, will these two always give identical values for free/total space? What about sp_spaceused?  Does their accuracy both depend on a recent DBCC UPDATEUSAGE?  Is there another, better method for determining used/free space? (I need this script to work on SQL 2000, 2005, and 2008 servers)  Partially related: Can you have a partially-allocated extent? (only 3 of the 8 pages within an extent are allocated, for example)


Prove that if $w,z$ are complex numbers such that $|w|=|z|=1$ and $wz\ne -1$, then $\frac{w+z}{1+wz}$ is a real number.  Do I substitute $w$ and $z$ for $a+bi$ and $c+di?$ How do I do this?


Rendered an image, rendered an animation (without Suzanne), now when I add Suzanne to my scene, she is not visible in any render.  I must be doing something wrong by can't figure out what. See image, as you can see Suzanne shows up in my layout and in layout render mode but NOT in the render.  I can't figure out why.


Hiding queue counts to avoid the 'Starfish*' effect

Disclaimer: I haven't reviewed in ages. I just see 55k and think, What's the point?  This leads me to wonder if it might not make a psychological difference (and maybe calm the robo-reviewers?) If there was just a simple 'There is something to review' message, and no indication of 'pressure'. (Just imagine if the  had said "2,352,342 images left to label", would you have played?)


I haven't been to my Facebook account in a while and I can't remember my password. When I try to have it reset, it goes to a security question, but I can't remember that either.    Is there anything I can do?


How to get the return username using javascript?

I am trying to store the username return by the variable username using the code below, but it seems nothing is returned (Username:undefined pops up), may somebody advise how to make it works?  var username; siteUrl = 'xxx/xxx';  function getLogonUser() {     var clientContext = new SP.ClientContext(siteUrl);     this.website = clientContext.get_web();     this.currentUser = website.get_currentUser();     clientContext.load(currentUser);     clientContext.executeQueryAsync(Function.createDelegate(this, this.userQuerySucceeded), Function.createDelegate(this, this.userQueryFailed));  }  function userQuerySucceeded(sender, args) {     this.username = currentUser.get_loginName(); }  function userQueryFailed(sender, args) {     alert('request failed ' + args.get_message() + '\n' + args.get_stackTrace()); }   function showName(){     getLogonUser();     alert('Username:' + this.username); }


How do I simulate /proc/sys/kernel/grsecurity/deny_new_usb without grsecurity?

How do I flexibly enable and disable plugging in new USB devices (running driver code responsible for those devices) at runtime without Grsecurity patch?  Are there other approaches or alternative kernel patches with this feature?    Reopen: Differences and comments about the proposed duplicate question    Linked question asks about always selectively accepting some devices, this question asks about accepting all devices in selected moments of time (and denying anything in other moments).  (USBGuard) is a userland solution. It seems to only prevent udev actions. It's unlikely prevent scanning a block device for partitions, creating network interface and querying its metadata or registering some /dev/input/eventX node. In-kernel attack surface seems to be exposed.  partially links to Grsecurity which is explicitly ruled out by this question's statement.   As far as I remember, there were plans to make screen-locked desktop Linux systems not accept any USB devices until screen is unlocked. This means there may be some patches about this somewhere.


mysql group by date(day) not showing if no result in specific day

Here is the query I have  select sender, count(*) as Total, date_format(senttime, '%m - %Y - %d') as Sent_Date  from sendmail sm  left join subuser su     on (sm.sender = su.sub_user)  where senttime <= NOW()    AND senttime >= DATE_SUB(senttime, INTERVAL 7 DAY)  group by date_format(senttime, '%d'), sender   Here is the actual output    It is showing only two dates 21 and 22 but I need 7 dates with total count 0.  How can I do this.


Getting an "Exception in thread "main" java.util.NoSuchElementException" error for the program mentioned below

Here it only executes one time and then gives the error given below. Please help in solving this problem that I'm package project1;  import java.util.Scanner;  public class factorial {  public static void main(String[] args) {     String y;     do {         Scanner sc = new Scanner(System.in);                      int flag = 1;         System.out.println("Print the number:");         int n = sc.nextInt();                      for (int i = 1; i <= n; i++) {                 flag *= i;         }         System.out.println(flag);         System.out.println("Press Y/y to continue");         y = sc.nextLine();                      sc.close();       } while(y == "Y" || y == "y");    } }  Output: (Getting an Exception java.util.NoSuchElementException) Print the number: 12 479001600 Press Y/y to continue  y Print the number: Exception in thread "main" java.util.NoSuchElementException    at java.base/java.util.Scanner.throwFor(Scanner.java:937)    at java.base/java.util.Scanner.next(Scanner.java:1594)    at java.base/java.util.Scanner.nextInt(Scanner.java:2258)    at java.base/java.util.Scanner.nextInt(Scanner.java:2212)    at project1.factorial.main(factorial.java:14)


Seems shady. Here is what has happened so far:  Job offer in newspaper: personal assistant, 10-15 hours per week, $500 per week.  I took the job. Didn't have to fill out any W-2 forms or anything.  Gave them my name, email, and mailing address.  Received a check for ~$1900. Had a note to keep $250 of it, and send the rest to another person via Walmart. I did that.   Now I'm thinking this seems very weird and I'll probably let him know I don't feel comfortable with this and just bail out. What does this look like to you guys?


Do you know how to install google chrome to my desktop?

Can you help me download Google Chrome to my desktop, My OS is Ubuntu Linux, Or is Google no longer supporting it for 32-bit? What comes up after I click install is 64-bit, Will that work, Or is Google no longer supporting 32-bit? Also, Which one do I need 34-bit, Or 64-bit to install it? Can you please help Me?  Leah (Ubuntu Linux user for over a decade)!


Computer auto-reboot. Running Windows 8.1

I run Windows 8.1 because someone told me it's fast. However, after I changed my os from Windows 7 to 8.1, I cannot shut down the machine with only one hit on the shut down option. It always boots up again all by itself. Is this a hardware problem or system one? I've never come across this case when it's running win 7. I often shut down the computer by ctrl alt delete BTW.


Overenthusiastic moderation. Is there a feedback route?

Suppose there is a moderator on an unspecified Stack Exchange community who is sometimes, let us say, a little heavy handed—occasionally with very new members.   I understand that that is only my opinion. This moderator has never, to my recollection, moderated anything of mine so there is no personal axe to grind.    I know that being a moderator is not easy and I would in any case not challenge a decision openly.  Question  Is there a recognised feedback route through which one can express such concerns without disrupting the efficient operation and good-will that exists here?


Better way to go to background in a running command

Actually I do this to bring a running command from the foreground into the background:  ctrl+z  and then  bg   There is a better way?  Because ctrl+z just pause the process and after that I need to run bg to unpause it. But I think this is like a jerry-rig.   Note: don't say to me run the process with &, I want a command for doing this when the command is already running.


How to get back the 'Add ' menu after performing any other action?

I would like to know how I can get back the 'Add ' menu which disappears after performing any action.  I tried F9 key, F6 key and T key which I knew after some Googling but they didn't dork.  I'm using Blender 2.80.


I am using a float inside the text. As I found out, using \intextsep I could set space above and below the float and the texts. But when I am using \setlength{\intextsep}{5mm}, the space below the float is more than the one above it. Why they are not equal?  % Preview source code  %% LyX 2.0.0beta1 created this file.  For more info, see http://www.lyx.org/. %% Do not edit unless you really know what you are doing. \documentclass[english]{report} \usepackage[T1]{fontenc} \usepackage[latin9]{inputenc} \setcounter{secnumdepth}{3} \setcounter{tocdepth}{3} \usepackage{graphicx}  \makeatletter  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LyX specific LaTeX commands. %% A simple dot to overcome graphicx limitations \newcommand{\lyxdot}{.}   %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands. \usepackage{setspace} \setlength{\intextsep}{5mm} \setlength{\belowcaptionskip}{0mm}  \setstretch{2}  \makeatother  \usepackage{babel}  \begin{document} Text Text Text Text Text Text Text Text Text Text Text Text  \begin{figure}[h] \begin{centering} \includegraphics[scale=0.5]{\lyxdot \lyxdot /Pictures/fedora} \par\end{centering}  \caption{}  \end{figure} Text Text Text Text Text Text Text Text Text Text Text Text \end{document}


Shortcuts don't work in Microsoft Word 2013

I have English Windows 8, English Office 2013 and a few keyboard languages.  When I set the English keyboard and start Word, shortcuts work. But when I change the English keyboard to other languages and start Word, shortcuts don't work. I don't have this issue in Excel 2013.  Why might this be?


A non-parametric repeated-measures multi-way Anova in R?

The following question is one of those holy grails for me for some time now, I hope someone might be able to offer a good advice.  I wish to perform a non-parametric repeated measures multiway anova using R.  I have been doing some online searching and reading for some time, and so far was able to find solutions for only some of the cases: friedman test for one way nonparametric repeated measures anova, ordinal regression with {car} Anova function for multi way nonparametric anova, and so on.  The partial solutions is NOT what I am looking for in this question thread.  I have summarized my findings so far in a post I published some time ago (titled: , in case it would help anyone)     If what I read online is true, this task might be achieved using a mixed Ordinal Regression model (a.k.a: Proportional Odds Model).  I found two packages that seems relevant, but couldn't find any vignette on the subject:       So being new to the subject matter, I was hoping for some directions from people here.  Are there any tutorials/suggested-reading on the subject?  Even better, can someone suggest a simple example code for how to run and analyse this in R (e.g: "non-parametric repeated measures multiway anova") ?


Trying to Get the Most Cooling Power out of TEC Peltier Element: Smaller or Larger Peltier?

I am trying to achieve the strongest cooling effect using a TEC Peltier element.    Currently, my set up is two small, 20mm x 20mm peltier TES1-4902 run with a 5V 2.4A USB Battery Pack per peltier.   I need a way to reduce my costs while keeping the same cooling power.   Right now, it is expensive for me to run this set up due to the fact I need two batteries, and I am also looking to improve my efficiency while cutting out an entire battery and/or Peltier. The reason I have two separate battery packs is that I can not find a cheap, small, and thin battery pack that will output 4.8 Amps: however, putting two battery packs in a series may help eliminate one peltier.     So, I have a few branching question that center around a theme:  1) Would a larger Peltier allow for a stronger cooling effect as a result of a larger surface area, say like a 50MM x 50MM peltier, despite the fact (presumably) that it may be more difficult to cool one single peltier than 2 smaller, seperate ones?   2) Is there a Peltier size that would allow me to reduce my power consumption while maintaining a similar cooling effect?   3) Is there a way that I can output 5V 4.8A that is not in two separate USB battery packs that is small and relatively cheap, as battery price:output ability for small scale consumer is quite high and USB battery packs have been the cheapest source of sustainable power for me.    My problem stems from the fact that I am trying to pump as much power and achieve as much cooling power as possible without having to have, say, two battery packs and make the project too expensive. I need a way to reduce my costs while keeping the same cooling power.


How to recover or create deleted 'Documents' folder in Home folder?

I accidentally deleted 'Documents' folder and all its contents in Home folder, is there any step by step way to recover or at least recreate an empty original 'Documents' folder again? I'm using ubuntu 12.04 by the way.


I have recently been reading a lot on this site (@Aniko, @Dikran Marsupial, @Erik) and elsewhere about the problem of overfitting occuring with cross validation - (Smialowski et al 2010 Bioinformatics, Hastie, Elements of statistical learning).  The suggestion is that any supervised feature selection (using correlation with class labels) performed outside of the model performance estimation using cross validation (or other model estimating method such as bootstrapping) may result in overfitting.   This seems unintuitive to me - surely if you select a feature set and then evaluate your model using only the selected features using cross validation, then you are getting an unbiased estimate of generalized model performance on those features (this assumes the sample under study are representive of the populatation)?  With this procedure one cannot of course claim an optimal feature set but can one report the performance of the selected feature set on unseen data as valid?  I accept that selecting features based on the entire data set may resuts in some data leakage between test and train sets. But if the feature set is static after initial selection, and no other tuning is being done, surely it is valid to report the cross-validated performance metrics?   In my case I have 56 features and 259 cases and so #cases > #features. The features are derived from sensor data.  Apologies if my question seems derivative but this seems an important point to clarify.  Edit: On implementing feature selection within cross validation on the data set detailed above (thanks to the answers below), I can confirm that selecting features prior to cross-validation in this data set introduced a significant bias. This bias/overfitting was greatest when doing so for a 3-class formulation, compared to as 2-class formulation.  I think the fact that I used stepwise regression for feature selection increased this overfitting; for comparison purposes, on a different but related data set I compared a sequential forward feature selection routine performed prior to cross-validation against results I had previously obtained with feature selection within CV. The results between both methods did not differ dramatically. This may mean that stepwise regression is more prone to overfitting than sequential FS or may be a quirk of this data set.


Get SQL server instance installation date

I would like to know the date when the sql server installed on the system.  I did try to look in %programfiles%\Microsoft SQL Server\100\Setup Bootstrap\Log\ directory but there are so many files and folder not sure from where I can get the required information.


Finding a derivation of $\vdash{(\lnot\lnot{p}\to{p})}$

I'm reading through Derek Goldrei's "Propositional and Predicate Calculus" book and I've come across an exercise problem that states to show the derivation of "$\vdash{(\lnot\lnot{p}\to{p})}$" using these three axioms:  $$(\phi\to{(\psi\to{\phi}))}$$ $$((\phi\to{(\psi\to{\theta}))}\to{((\phi\to{\psi})\to{(\psi\to{\theta})})}$$ $$((\lnot\phi\to{\lnot\psi})\to{(\psi\to{\phi})})$$  As well as the deduction theorem. I searched through Stack Exchange and found some answers. However, the note the author gives states:     Our private solution includes use of Ax 1, Ax 3, Modus Ponens, and the deduction theorem.   And so far every solution posted here contains solutions that either use lemmas not yet introduced, or the use of other axioms. My question is how would one derive the formula using only the first and third axiom, modus ponens, and the deduction theorem only. This is what I have so far:  $$\begin{align} &(0)\quad\vdash{(\lnot\lnot{p}\to{p})}&&\text{. . .}\\ &(1)\quad\lnot\lnot{p}\vdash{p}&&\text{Deduction Theorem}\\ \\ &(2)\quad\lnot\lnot{p}&&\text{Assumption}\\ &(3)\quad(\lnot\lnot{p}\to{(p\to{\lnot\lnot{p}})})&&\text{Ax 1}\\ &(4)\quad(p\to{\lnot\lnot{p}})&&\text{MP 2, 3} \end{align} $$  I just feel stuck as to where to go next, or if I even started off correctly. A solution is not required, just a step in the right direction could help.


mkpasswd on Centos 7 does not support -m flag

I cannot find how to install grub-crypt either.   How can I generate SHA512 pass hashes on Centos 7?  Edit: I was actually trying to look up how to generate hashes with an adjustable number of rounds. I had done this before but couldn't remember how I did it last time.


Function declarations vs function expressions

As far as I understand,  function sum(x,y){    return x+y; }   and  var sum = function(x,y){    return x+y; };   ...are equivalent with the exception of function declaration hoisting in that:  alert(sum(20,30));   at the top of the script will run in the former case (function declaration) and cause an error in the latter (function expression).  Would it be logical to make a conclusion that it's better to always use function declaration? Or am I missing something? To me it seems that it might be useful if you can use your functions first and then define what they should do.


Multiplying a infinite number with a rational number?

Please do not down vote this question. It may be stupid, but I wonder. Why is it that we cannot multiply $3.99999\cdots$ by $4$ and write $16,....$?


"System is running in low-graphics mode" error

I am very new to working with Ubuntu and working with command line input. Last night I tried to install Netflix desktop app which required wine-compholio, wine-browser-installer and lib(I forget the rest of it). I noticed that when I was installing these, a lot of other programs were removed. After I installed the programs I tried to reboot my laptop. It wouldn't shutdown so I had to hard-shutdown. When turning it on again it gave me a "system is running in low-graphics mode" error. I have tried to solve the problem myself by researching it online but nothing has helped. I've tried using recovery mode, opening a terminal, trying to install nvidia and fglrx, but nothing has worked. Also, I keep getting the following warnings when trying to install anything in recovery mode terminal: caution WARNING: failed to detect canonical device of /dev/sda5 caution WARNING: could not determine root device from /etc/fstab  I really need some help.  Thank you, Edward


When UTF-8 encoded text is sent to database, special characters get corrupted

I have a form that reads some data. And a php file that sends this data to the database. All of the html files and php file are UTF-8. When the form reads the data, I have a check with echo right before the INSERT statement. The echo displays the words correctly. But when it is sent to database, it arrives with broken characters.  For example: I send the word "Būve". echo prints it exactly like that. But in the database I get "BÅ«ve".  I have both of these right after connection as well.  mysql_query("SET NAMES UTF8"); mysql_query("SET CHARACTER SET utf8");   PHP code:  echo $_POST[pasutitajs];  $sql = "INSERT into ligumitable (nrpk, ligums, pasutitajs, parkstisanasdatums, summa,)  VALUES ('$_POST[nrpk]', '$_POST[ligums]', '$_POST[pasutitajs]', '$_POST[parkstisanasdatums]', '$_POST[summa]')";   Tables in the database are utf8 as well, if I unput the data through phpmyadmin, using these characters, everything is fine. It's the INSERT that breaks it. What could be wrong?  EDIT:  This is funny. Thing is, i am not the only one working on the code. And now that I checked it, my buddy used "$conn->query($sql)" and not "mysql_query($sql)". No idea why. I changed it to a regular mysql_query and it works. Thanks everyone, sorry for bothering you with such a simple thing.


Find files systemwide that are created within a date range

Can someone let me know how to use command line to find files systemwide (from root) that are created within a specific date range?  Many thanks


remove sessionStorage after ajax cart is empty

I am using ajax cart on a shopify theme and I have added a countdown timer on the cart drawer. I want the count timer to clear when there are no items left in the cart, the only way I have been able to do that is if I reload the page. How can I achieve the result of once the cart dawer is empty the countdown clears without needing to reload the page? The below code doesn't seem to work.   setInterval(function () {     var cartContents = fetch('/cart.js')     .then(response => response.json())     .then(data => {       if (data.item_count == 0){               sessionStorage.removeItem('count');       }             console.log(data.item_count);     });   }, 1000);


Can I put a 700 x 35 tire on a Cannondale Quick 2 that has a 700 x 28 tire?

I usually ride roads with my 700 x 28 tire, but want to do a trail that has a multitude of surfaces.  So can I put a 700 x 35 on this bike?


Word, Phrase or Idiom for "seemingly OK, but internally bad"

There are things that are seemingly OK but have problems within. For instance a food might seem OK but be poisonous. Or a translation might seem OK but in fact be awful since it has omitted or changed the main message. How can we describe such things? Even people might be seemingly nice but internally wicked!   I am particularly interested for words/phrases/idioms that describe the above-mentioned like translations.   For example:     This translations is the word I am looking for, it seems OK but   actually says something completely different to what the original   sentence says!   I am interested especially in a word with a formal register, which is suitable to be written in an academic text. Is outwardly good/flawless a good fit?


Find digits of n number integer with a mathematical formula.

Consider a number abcde. Here, we have 5 digits in that number. Let, say this abcde = n. Then I want a single mathematical function which tells how much digits are there in n.  They could be 3 or 100.  In programming it's easy but it requires more statements. Is this possible to get a single statement. Generally, I not want this for programming.


I'm going over my quadratic equations for the ACT and I came across this quadratic:  $$(x – 2)^2  – 12$$  My teacher said we could have factored it out into this:  $$x^2 – 4x – 8$$  But I just don't understand where he got the $-4x$! Help?


Fastest way to check if number is in array?

I have to create a function that checks if number is in array. So I've tried this:  function getNumber(x, array) { for (let i = 0; i < array.length; i++) {     if (!x == array[i]) {         console.log(false);     } else if (x == array[i]) {         console.log(true);     } }  getNumber(4, [5, 10, 2, 3, 5]);    It works just if x is in array but if it's not console doesn't show anything  I want to know if there is easier(faster) way to check it


Let $M$ and $N$ be graded $R$-modules (with $R$ a graded ring). $\varphi:M\rightarrow N$ is a homogeneous homomorphism of degree $i$ if $\varphi(M_n)\subset N_{n+i}$. Denote by $\mathrm{Hom}_i(M,N)$ the group of homogeneous homomorphisms of degree $i$. We define $^*\mathrm{Hom}_R(M,N)=\bigoplus_{i\in\mathbb{Z}}\mathrm{Hom}_i(M,N)$. This is a (graded) $R$-submodule of $\mathrm{Hom}_R(M,N)$.      How can I prove that these two modules are equal if $M$ is finite? And do you know a counterexample if $M$ is not finite?


Tapping on hot question in the feed mode is not working

When on feed mode, tapping on any hot question (top line with big blocks) is not working. Nothing happen.     App Version: 1.6.0.10 Device: iPad Air 2 (Wi-Fi) OS Version: Version 10.0.2 (Build 14A456)


I have two folders in Windows 8.1. The first folder, a, has 50 .jpg files numbered 01.jpg through to 50.jpg. My second folder, b, has the same amount of .jpg files named in the exact same manner.   My goal is to merge these two folders, but rename the files in b 51.jpg through to 100.jpg so that they stay in the same order.


Dipole Moment (spherical/arbitrary charge density)

I'm new here. I got to this website while searching for links to fill my gaps on some topics. I have found some amazing posts for many different topics. Just amazing. Anyway, I'm currently dealing with an exercise concerning dipole moments where I'm just stuck. Here's the problem:  a) There's a radially symmetric charge density $\rho(r)$ centered around the origin. Determine the dipolemoment of that charge density. b) Let $\rho(r)$ be an arbitrary charge density now. Under what circumstances does the dipole moment of the displaced charge density  $\rho '(\vec{r}) = \rho (\vec{r}-\vec{b})$ differ from the one not displaced at all.  Alright, here's what I got so far: a) I was thinking of looking at the charge density as some spherical 'electron cloud' and that the charge density is proportional to the distance from the centre out to a distance, let's say R. That is $\rho(r)=kr$ My next step was to find the total charge, meaning I solved the integral: $q = 4\pi \int_0^R kr\cdot r^2 dr = \pi k R^4$. Meaning, that the charge density can be expressed as $\rho (r)=\frac{q}{\pi R^4}r$, right? And here's where I'm stuck. To determine the dipole moment there has to be a field applied to the electron cloud, so that the electron cloud and the nucleus are separated by a distance, let's say d, correct? Rereading the chapter in my workbook I thought of applying Gauss's Law somehow, but I don't know if that's the right way to go. But for completene's sake I'm going to write that anyway (better than nothing): $4\pi d^2 E =\frac{4\pi}{\epsilon_0}\int_0^d \frac{q}{\pi R^4}r\cdot r^2 dr=\frac{qd^4}{\epsilon_0 R^4}$. So I was guessing that the dipole moment would then simply be: $p =qd =R^2\sqrt{4\pi \epsilon_0 q E}$. Would be cool if my results for a) are correct. b) I basically have no idea about this part. I don't even know how to start. I hope some can help me out here.


I charge my phone using my PC all the time, and it's been only a week that since I bought my iPhone 5. Now I can't charge my phone with my PC.  What could be the problem thats causing my phone to not charge while connected to my PC?  The USB charger is new.


Designing Latex title page for Bachelor Thesis

I'm completely new to Latex and would like to design a title page for my Bachelor thesis.  After some research, I've found a title page layout in another post here that I would love to use:     Unfortunately, I don't know how to implement it in Latex and don't understand the instructions given in the other post. I would be grateful for any help!  Currently, this is my preamble and start:  \documentclass[a4paper, 12pt]{article} \usepackage{apacite} \usepackage{verbatim} \usepackage{graphicx} \usepackage{etoolbox} \usepackage[hyphens]{url} \urlstyle{same} \usepackage{amsmath} \usepackage{rotating} \usepackage{dcolumn}  \makeatletter \patchcmd{\@caption}{\csname the#1\endcsname}{\csname fnum@#1\endcsname:}{}{} \renewcommand*\l@figure{\@dottedtocline{1}{1.5em}{4.5em}}  % default for 3rd arg: 2.3em \let\l@table\l@figure % as in article.cls \makeatother  %define the author \author{John Smith}  %define the title \title{Blue Elephants}  \begin{document}  %omits page number \pagenumbering{gobble}   %generates the title \maketitle  \newpage \end{document}   My existing code is mostly copy and pasted from this website to get my thesis layout to work. It's just the title page that I'm having issues with.   This is my first post. I hope I respected any potential rules.   Thank you!


Windows Settings > Storage "Other" listing is completely inaccurate

I have a ACER Laptop with Windows 10 home version 1607.  2GB RAM, and 30GB hard drive.  Of that 30GB I have the following breakdown (from Strorage in Settings):  13.4G System and Reserved 6.24G Apps and Games 4.09G "Other"   All the other categories are insignificant/small.  Clicking on "Other", I see a list of folders, but they do not anywhere near add up to 4.09G.  Where can I find these files?  I'm inclined to believe this UI is useless as I can't solve the problem it's stating I have.


Using CropCoverage Render Transformation in Geoserver SLD (WPS)?

I have yet to find an example on the web (or in code) of anyone using the "Crop Coverage" Render Transformation from a Geoserver SLD.  Does anyone have an example or at least be able to point me to the syntax of using an existing Geoserver hosted layer as a the "crop geometry?"   is one of the WPS Processes used to crop raster layers.  This  to  provides an example of using gs:CropCoverage with a literal crop geometry, but I need to use an existing GeoServer layer as the crop geometry.  It is also possible to chain more WPS processes in a SLD but I cannot find an example of how to use gs:CropCoverage in a SLD.  At the moment I am using Geoserver 2.4.3 on Tomcat 6.


cref refers to chapter instead of figure

I want to cref to a figure but somehow it  gives the chapter the figure is in instead of the figure number. The code I used is written down below:  From which it follows that the vector $\mathbf{\psi}$ has only two independent components as shown in \cref{eq:hhd.13} In \cref{fig:hhd.1} a wave propagating in the x-z plane shown, with a in-plane shearwave SV and an anti-plane shearwave SH.  \begin{equation}\label{eq:hhd.13}  \frac{\delta \psi_y}{\delta y}=-\left(\frac{\delta \psi_x}{\delta x}+\frac{\delta \psi_z}{\delta z}\right)  \end{equation}  \begin{figure}\label{fig:hhd.1}  \includegraphics[scale=3]{./Figures/PSV-SHwaves.jpg}  \caption{P-wave, vertical S-wave (SV) and horizontal S-wave (SH)}  \end{figure}   At the place where I refer to figure 5.1. (as the caption of the figure) describes, latex prints chapter 5.


I have lately become very interested in testing and Im now trying to learn to do unit testing in the best way possible. I use NUnit together with Rhino Mocks. I have also been reading a lot over here at Stackoverflow but havent been able to find a clear answer to my question.  What I wonder is if I have a method like the below, should I mock the OfficeClass dependency and also test GetAllOffices or only use a stub for the dependency and verify that the method GetAllOffices has been called and that I indeed get the offices back that I expected from my  setup for the stub?  public Offices GetAllOffices()  {     try     {         var offices = officeClass.GetAllOffices();         return offices;     } }   Will it make any difference if the OfficeClass is just another POCO or if it is let say a web service in sence of mocking vs stubbing?  Long question short: When to Mock and when to Stub in unit testing?


How to convert milliseconds into human readable form?

I need to convert an arbitrary amount of milliseconds into Days, Hours, Minutes Second.  For example: 10 Days, 5 hours, 13 minutes, 1 second.


How can I express a method (e.g. dir(os)) like a keyword (e.g. dir_ os)? Is it even possible?  The opposite is quite easy to achieve:  # `assert` expressed like a method def assert_(x): assert x assert_(1 == 1)


If I am ok with limits for dev org and I want to use it as commertial app in my business, Is it legal? Does Salesforce track using dev orgs like to determine if they are used as production? And will my data be as safe as in production org? I am starting small business and buying production org is too expencive for me.


bibtex/biblatex citation Missing Number error

I've created a .bib file using Mendeley's bibtex export. I'm now trying to cite this source in my document. TeXmaker recognizes something, because it autocompletes the citation key for me.   But then when I try to compile, I get stuck with      ! Missing number, treated as zero.    errors on the citation line and a      ! Use of \blx@bbl@verbadd@i doesn't match its definition.    error with a line number that doesn't make sense.  Here are the contents of my BibTex/library.bib file:  @misc{Borowicz2016, author = {Borowicz, Wojtek}, booktitle = {Estimote Community Portal}, pages = {3}, title = {{Apps and Projects with Estimote}}, url = {https://community.estimote.com/hc/en-us/articles/207295257-Apps-and-projects-with-Estimote}, urldate = {Mar 3, 2016}, year = {2016} }   Here's the MWE of my document I'm trying to get to work:  \documentclass[11pt,twoside, vi, letterpaper]{report}  \usepackage[backend=bibtex,style=ieee]{biblatex} %style=numeric-comp \bibliography{BibTex/library.bib} \begin{document}  Hi! I am sample text. Here is a citation: \cite{Borowicz2016}.  \printbibliography  \end{document} \endinput   This compiles fine if I comment out the citation line, but fails with it uncommented as shown. Suggestions on how to fix are greatly appreciated!


If you cast Polymorph on yourself, can you continue to concentrate after if the new form has a very low intelligence?

If you cast Polymorph on yourself to turn into a creature with low intelligence, can you/it continue to concentrate and thus remain in the polymorphed state for the duration of the spell? Or would the spell fail almost instantly because the new creature wouldn't be able to concentrate?   The question arose from one of our players wanting to cast Polymorph on himself to turn himself into a Black Pudding (MM p.241). We all looked into the distance pensively.   The spell says it can transform to be a beast, so the "Black Pudding" would be out of the question, but some beasts have an Intelligence of 1, like the Black Pudding, for instance: a Lizard.     This spell transforms a creature that you can see within range into a new form. [...] The transformation lasts for the duration, or until the target drops to 0 hit points or dies. The new form can be any beast whose challenge rating is equal to or less than the target’s (or the target’s level, if it doesn't have a challenge rating). The target’s game statistics, including mental ability scores, are replaced by the statistics o f the chosen beast. It retains its alignment and personality. [...] The creature is limited in the actions it can perform by the nature of its new form, and it can’t speak, cast spells, or take any other action that requires hands or speech.      (PHB p.266)


reinstall windows 7 (with ubuntu and windows7)

I have windows 7 already installed on my computer but I need to reinstall it. I have no data on my windows and I do not care if anything happens to the old windows, but I need to keep my ubuntu safe! I will appreciate if you help me.


Custom template argument binder to use with with template template class

I have a template class taking 3 arguments, I need to bind 2 of them before and pass later that binded version to a "Parent" template template class I inherit from.  (I've searched previously asked questions, but none tries to inherit from the parent.)  How could I make it work ?   Here is a sample code :  template <template<class> class W, class ...D> struct Parent{};  template <class B, class T, class ...D> struct Arg{};  template <class B, class ...D> struct Bind{     template <class T>     using arg = Arg<B, T, D...>; };  template <class B, class ...D> struct DD : public Parent<Bind<B, D...>::t, D...> //compiler complains* { };   * template argument for template template parameter must be a class template or type alias template.   I have tried using typename keyword ; and using a struct inheriting instead of a using directive in the Binder, none worked.


Getting size (not length) of c style string in function

How do I, and is it even possible, get actual maximum size of character array passed to a function as a pointer?  int size=0; while (char_array[size++])   this won't work, as it will return number of characters in the array, and I need its actual size.  Also I cannot use any libraries (specifically string) or my own classes or basically anything useful.  EDIT as it turns out, I will have to explain the assignment quickly. And I am told not to do it in the comments. So here it is:  I have to implement a function that has three character arrays passed as pointers. Cannot change that in any way. First one is a string with commands included in that string (important). The commands are simple: delete x letters, and so on, but some are tricky, like add x letters from second/third character array to the right. Why tricky? Because those arrays may contain more commands, which will then be added to the string I'm working on. So one way to do it is to work on the string passed to a function, but that would be very slow, and I would have to add/delete characters in the middle, which basically means moving the rest of the letters many times. So I would have to have m*n opertions, where n is size of string and m is ammount of commands. But only n operations if I could write to another string. However I don't know how much space would I need, because the commands could add more commands, which would add more letters to initial ammount of characters. Checking the ammount and type of commands beforehand would be slow and make the whole thing rather pointless. However I know that the string passed to the function will have enough space (it's in the assignment specifications). So if I just could access it's size, I could declare another string with same size, knowing it would fit the resulf for sure.  So what will I do? I will declare this local string that I'm writing into with initial size and then if the result is greater I will rewrite it to a bigger string. Which will give me n times z operations, where z is a number of rewrites, which is still better than n times m, but worse than just n.


Nothing can exceed the speed of light but what if we accelerate a particle that contain electron that have a speed near to speed of light?

We all know that speed of light is $3\times 10^8$ $\text{ }\mathrm{ms^{-1}}$. The speed of electron inside the atom is $2.7\times 10^8$ $\text{ }\mathrm{ms^{-1}}$, which is close to speed of light. So there is a machine that can accelerate the particle. Then when the particle move very fast, the resultant velocity of electron inside the particle should exceed the speed of light right?


I replaced windows 8.1 with Ubuntu 16. My windows was in C drive but Now I cannot see my other disk partitions. I am new to Linux . what should I do ?  (I didn't dual booted, I replaced windows with Linux).


Kindly explain this equation for me.I do not understand what it means and from where this equation comes out?it's a diode equation $$ r^{\prime}_d = \dfrac{26\mathrm{mV}}{I_D} + r_B $$


In what interview does Rowling say Umbridge is sentenced to prison?

Multiple webpages claim that after the events of Harry Potter and the Deathly Hallows, Dolores Umbridge was sent to the prison Azkaban with a life-long sentence.  In what interview did J. K. Rowling claim this?    (The sentence isn't surprising, given how she's prosecuted Muggle-born wizards in the Ministry.)


Intuition behind transformations of functions (horizontal shifting)

I know $f(x-c)$ is the graph of $f(x)$ shifted to the right $c$ units, but is there any sort of intuitive way of looking at this?


Better way to define this bijection [0,1) to (0,1)

I have been trying to construct a bijection from $[0,1)$ to $(0,1)$ that my professor was showing me in class.  I think that the function works in terms of being one-to-one and onto. Here's the function  $$f(x)=\Bigl(\dfrac{2^{n+1}-3}{2^n}\Bigr)-x$$ but in order for this function to work (i.e. be 1-1 and onto), we have to have $$x<\dfrac{2^{n}-1}{2^{n}}$$ This is what the graph looks like.  My question is whether or not there a better way to construct $f$ so that $x$ doesn't depend on values of $n$.


Suppose A and B are real numbers, prove following inequality: $$ ||A| - |B|| \leq |A - B| $$  How to prove this inequality？ Thanks.


Timeout a command in bash without unnecessary delay

to  proposes a 1-line method to timeout a long-running command from the bash command line: ( /path/to/slow command with options ) & sleep 5 ; kill $!  But it's possible that a given "long-running" command may finish earlier than the timeout. (Let's call it a "typically-long-running-but-sometimes-fast" command, or tlrbsf for fun.) So this nifty 1-liner approach has a couple of problems. First, the sleep isn't conditional, so that sets an undesirable lower bound on the time taken for the sequence to finish. Consider 30s or 2m or even 5m for the sleep, when the tlrbsf command finishes in 2 seconds — highly undesirable. Second, the kill is unconditional, so this sequence will attempt to kill a non-running process and whine about it. So... Is there a way to timeout a typically-long-running-but-sometimes-fast ("tlrbsf") command that  has a bash implementation (the other question already has Perl and C answers) will terminate at the earlier of the two: tlrbsf program termination, or timeout elapsed will not kill non-existing/non-running processes (or, optionally: will not complain about a bad kill) doesn't have to be a 1-liner can run under Cygwin or Linux  ... and, for bonus points  runs the tlrbsf command in the foreground any 'sleep' or extra process in the background  such that the stdin/stdout/stderr of the tlrbsf command can be redirected, same as if it had been run directly? If so, please share your code. If not, please explain why. I have spent awhile trying to hack the aforementioned example but I'm hitting the limit of my bash skills.


apacite: capitalized significant words of journal title

In APA style all significant words of the journal name are to be captalized, for example: Journal of Personality and Individual Differences. apacite package seems to not do it automatically, so I have two alternatives:   Manually changes all my bibliography entries (but they are too many!); Manually force apacite to capitalize journals (but only significant words).   I don't know how I can carry out point 2. Is it possible? Could someone help me?


I'm having a problem passing parameters through \iftoggle to a \newcommand using \notblank inside; it's much easier to explain by showing a small example:  \documentclass{article} \usepackage{etoolbox}  \newcommand\mycommand[1]{   \notblank{#1}{Value: '#1'}{EMPTY OR BLANK} }  \begin{document}  \newtoggle{flag} \togglefalse{flag}  \begin{enumerate}   \item \mycommand{A}   \item \mycommand{}   \item \mycommand{ }   \item \mycommand{\iftoggle{flag}{X}{}}   \item \mycommand{\iftoggle{flag}{X}{ }} \end{enumerate}  \end{document}   This prints:    while I expected EMPTY OR BLANK string also for list items 4 and 5.  What's wrong with my approach?    EDIT:  It's already been answered in another , anyway here's a solution for this specific case.  We should change mycommand as follows:  \makeatletter \newcommand\mycommand[1]{   \protected@edef\@tmpa{#1}%   \expandafter\notblank\expandafter{\@tmpa}{Value: '#1'}{EMPTY OR BLANK} } \makeatother


regex for comma-delimited list of two possible valid strings

I'm looking to create a regex that would match either xxx or yyy, or any combination separated by commas.  So these would be valid:  xxx yyy xxx,xxx yyy,xxx xxx,yyy,yyy,yyy   But these would be invalid:  xx // must be exact xxx yyyy // must be exact yyy xxx, // trailing comma xxxyyy // no delimiter xxx,,yyy // should only have one comma between ,xxx,yyy // no prepending commas


How to fix 'java.lang.NullPointerException' in SQLiteAssetHelper Android

I am trying to check if any child from Firebase Realtime Database matching data in sqlite database in my app with help of SQLiteAssetHelper. For this I wrote a function to check but it is returning NullPointerException error.   I have Check adding taskId in database manually, but still it is returning null value.  Error  ava.lang.NullPointerException: Attempt to invoke virtual method 'boolean mypackage.CompletedTasks.isComplete(java.lang.String)' on a null object reference   SQLiteAssetHelper Method  public boolean isComplete(String taskId) {     SQLiteDatabase favDatabase = getReadableDatabase();     String masterQuery = String.format("SELECT * FROM completedTasks      WHERE taskId = '%s'",             taskId);     Cursor cursor = favDatabase.rawQuery(masterQuery, null);     if (cursor.getCount() <= 0) {         cursor.close();         return false;     }     cursor.close();     return true; }   Check in onBindViewHolder  if (completedTasks.isComplete(adapter.getRef(position).getKey())) {         holder.taskCard.setVisibility(View.GONE); } else {         holder.taskCard.setVisibility(View.VISIBLE); }


Dual Boot Partitions__To which partition with Linux I should add the free space

My computer has an unallocated free space of 3.69 GB according to Gparted in Ubuntu. Ubuntu is running out of space. I want to add that unallocated space of 3.69 Gb to the Ubuntu. My problem is that when I type a command line in the terminal in Ubuntu I get /dev/sda5 to 8 with Linux. Already, I know it is not /dev/sda6. To which one do I add this unallocated free space ??  Please check the graphics if that helps.


Unable to install gnome-tweaks, you have held broken packages

When I type on the terminal: sudo apt install gnome-tweaks  I get an error: The following packages have unmet dependencies:  gnome-tweaks : Depends: gnome-shell-extension-prefs but it is not going to be installed E: Unable to correct problems, you have held broken packages.  Doing the same for gnome-shell-extension-prefs shows a more detailed error: The following packages have unmet dependencies:  gnome-shell-extension-prefs : Depends: gnome-shell (= 3.36.4-1ubuntu1~20.04.2) but 3.36.6-1ubuntu0.20.04.1~wip1 is to be installed                                Depends: gnome-shell-common (= 3.36.4-1ubuntu1~20.04.2) but 3.36.6-1ubuntu0.20.04.1~wip1 is to be installed                                Recommends: chrome-gnome-shell but it is not going to be installed E: Unable to correct problems, you have held broken packages.  However I have no held packages, apt-mark showhold has empty output. For some reason gnome-shell-extension-prefs depends on WIP dependencies, and something is preventing me from installing them. Do I have to allow dependencies from unstable channels or something like that? What could be the issue here?


Consider the ring $(\Bbb{Z}, +, \cdot)$. Let $I$ be an ideal of the ring that contains the element $-1$. Show that $I = \Bbb{Z}$   Could some one please explain how to solve this.


Are Jordan chains always linearly independent?

Firstly, I know this question might seem slightly vague, but I can't find any examples or specific questions to specify it.   My question is in regards to finding the Jordan Canonical Form of a matrix, more specifically when you have two Jordan chain of length greater than $1$ for a particular eigenvalue. After you've found the eigenvectors, are these eigenvectors always linearly independent? Also, if they are, is it possible to find eigenvectors which form Jordan chains which are 'wrong' because they aren't linear independent?


Unable to install 32bit libraries for Android studio

I am using Ubuntu 14.04 64bit OS and I cannot install 32 bit libraries for Android studio. It shows my packages are broken.  I don't know how to install following code.  It shows dependency issue.  sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0 Building dependency tree        Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:  lib32bz2-1.0 : PreDepends: libc6-i386 (>= 2.9-18) but it is not going to be installed  lib32ncurses5 : Depends: lib32tinfo5 (= 5.9+20140118-1ubuntu1) but it is not going to be installed                  Depends: libc6-i386 (>= 2.4) but it is not going to be installed  lib32stdc++6 : Depends: lib32gcc1 (>= 1:4.1.1) but it is not going to be installed                 Depends: libc6-i386 (>= 2.17) but it is not going to be installed  lib32z1 : Depends: libc6-i386 (>= 2.4) but it is not going to be installed  Anyone can help me please.


I think in the first one, I don't need a comma before "and" cause they are short sentences. In the second however, I'm wondering whether I need the comma before "and" since it is a coordinating conjunction separating two main clauses... What do you say?  1) Yesterday, I went fishing,and John played cards.   2) In 2007, many people worked on the XY-Project, and several people were included in that process.  Thank you! ;)


I can't seem to find which one of these two wordings is correct:     In 2014, the best two submitted runs were from unsupervised systems.      In 2014, the two best submitted runs were from unsupervised systems.   Context: In 2014, multiple runs have been submitted. The first and second rank were unsupervised systems. Is there any difference in both variants? I'm currently using the first one but I'm struggling ;)


How to delete Command Line Tools while keeping Xcode?

I recently purchased a new Mac and I am currently in the process of setting it up as a development machine.  Before installing Xcode I went ahead and installed:   Sublime Text Sublime Merge   While setting up Sublime Merge I was prompted to install the Xcode Command Line Tools (Macintosh HD -> Library -> Developer -> Command Line Tools).  I went ahead and did that, and was able to successfully set up my repos on Sublime Merge.  I then installed Xcode which comes bundled with the Command Line Tools in its own package (Applications -> Xcode -> Contents -> Developer).  Right after installing Xcode I saw that in Software Update I had an update to the Command Line Tools and so I performed that.  I'm striving for a clean set up and was wondering whether or not I now have redundant copies of the Command Line Tools, if so, how do I (or do I even need to) get rid of the old tools safely?


Cantor's method of comparing set size uses one to one correspondence i.e. existence of a bijection. Now, set A = (0, 1) and set B = (0, 2). Using the function x → 2 x, every element of set A can be uniquely mapped to that of set B. This is irrefutable.   However, what also appears correct is that size of set B has to be greater than set A because every element of set A is of the form 0.xxxxxx... and every element can be transformed by replacing 0 with 1, this makes it a member of set (1, 2). Set B consists of this set and the initial set A. Clearly this is also intuitively correct. And therefore set B is larger than set A. What is the explanation of this counter intuitive result? Is it something about our understanding of infinite sets? Has any philosopher seriously considered the possibility that set theory might be just wrong or our interpretation might be skewed?


Would a practice area for question and comment formatting be useful for newbies?

Would it be useful for newbies to have an area for practicing question and comment formatting?  I am thinking of 2 different areas - 1 for each purpose. I think I need it...  Every time (so far) that I've answered a question or added comments, it is a struggle to get the formatting right. Usually I go to re-edit the answer and once, I've collided with some helpful soul, who was trying to "fix" my answer.


Biblatex: Citation in footnotes. When the same reference appears twice, it should use the first footnote number

I am using biblatex and I don't know how to achieve the following structure of referencing.  If an article is referenced for the first time, it should give the full citation in footnotes. Every time an article gets referenced, it should give the footnote number of the first full citation.  I tried the following...  \documentclass[10pt]{article} \usepackage[backend=biber,style=footnote]{biblatex} \begin{document}  Here's the first citataion \cite{ref1}. And here is the same on the same page \cite{ref1}. \clearpage And here is the same one on another page \cite{ref1}.  \end{document}     ...but it creates the following.    First page:  Here's the first citation^1. And here is the same on the same page^2.  First page footnotes:  1) full citation of ref1  2) Ibid.  Second page: And here is the same one on another page^3  Second page footnotes:  3)Short citation of ref1 (see n.1)    How I want it to be is:    First page:  Here's the first citation^1. And here is the same on the same page^1.  First page footnotes:  1) full citation ref 1  Second page: And here is the same one on another page^1  Second page footnotes: No footnotes as no new article was referenced.


If $\lim_{x \to +\infty} f'(x) = L$, then $\lim_{x \to \infty} \frac {f(x)}{x} = L$

I'm trying to solve this question:     Let $f:[0,+\infty) \to \mathbb{R}$ be derivable and $\lim_{x \to +\infty} f'(x) = L$, then $\lim_{x\to \infty}\frac {f(x)}{x}=L$.   I'm trying to solve this question using l'Hôpital rule, but I couldn't use it, because I don't know if $\lim_{x\to +\infty} f(x)=+\infty$.  I need help.  Thanks a lot.


iEquation in Rudin's 1.1.3 (Principles of Mathematical Analysis)

So I've been working on Rudin's 1.1.3 for a while and I think I'm close to a figuring it out.  In the set $A$ there are positive rationals $p$ such that $p^2<2$ and we can find a rational $q$ in $A$ such that $p<q$. So we can also say $q^2<2$.  I want to say that $q=p+x$ where $x$ is very small so that I can say $p^2<q^2$ because $q^2=(p+x)^2=p^2+2px+x^2$ and that's bigger than just $p^2$  Now $p^2<q^2<2$ and I can move things around so that I get $0<q<p+(2-p^2)/(q+p)$ which I can then rearrange into what I have below.  So, unless I'm doing things wrong, I can get $p<q<p-(p^2-2)/(p+q)$  The latter part of that relation is somewhat close to what Rudin has in 1.1.3 but I still have inequalities and my denominator still has a $q$.  =Update=  So reading a helpful reply, I've simplified by attempts:  We know that $q^2<2$ and if $q=p+x$ then we have $(p+x)^2<2$. We can then the $x$ on one side and get this; $x(2p+x)<2-p^2$  But still not sure completely clear what the next methodological step is.  =Update 2=  For some reason I still can't make the connection from $2p+x = p + p +x$ and the $p +2 $. I understand that the latter expression is probably chosen due to elegance in how it will nicely simplify eventually.  For this last stage, I understand that   $0<p^2<q^2=(p+x)^2<2$ and because $(p+x)^2<2$ then either $p$ or $x$ is positive and less than $sqrt(2)$. I suppose we can think of it as $p+x<sqrt(2)$ even though we shouldn't be using sqrt(2). Like, sure, $p+x<sqrt(2)<2$ but then how do we get rid of that inequality when we're replacing that $p+x$ with $2$.  I'm pretty sure I understand the theory of what Rudin's doing and your replies, but the actual computation with the inequalities is messing me up.


Don't understand about the Schengen area visa system, for staying in Denmark specifically?

I have a British passport, I am a citizen, lived there all my life.  Do I need a visa to stay in Denmark? If not, how long would I be allowed stay there (while not working or studying, just on holiday)? Could I stay there longer than 90 days if I am not working or studying, just travelling? And if so, for how long can I stay and would I need any kind of visa for this?   This is for someone not claiming any money or benefits, only for staying with a Danish family and travelling around for a period of time.  Very confused about what is needed/not needed as a British person. I used to think a UK person can just stay there for any period of time as long as they're not working or studying, but so many sites seem to say different things about all the laws, I am getting very confused.  Thanks for any information.  Edit: Thanks for the answers so far. Another question: What happens if you have stayed longer than 3 months but are, as said, NOT working/studying/claiming any benefits and intend to go back to home country at a certain point... But have not registered with any authorities in this time? Is there punishments for this and what to do about it if in that situation?


Difference between echo $(cal) and echo "$(cal)"

I'm using echo $(cal) and echo "$(cal)"in Linux and it gives me different results as in the picture. The double quotes should not interfere with $ in this case, so what gives the echo "$(cal)" that horizontal style comparing to echo $(cal).  This is the result:    echo "$(cal)"  Su Mo Tu We Th Fr Sa                      1    2  3  4  5  6  7  8    9 10 11 12 13 14 15   16 17 18 19 20 21 22   23 24 25 26 27 28 29   30   echo $(cal)   June 2019 Su Mo Tu We Th Fr Sa 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30


I'd like to show/hide a column at runtime based on a particular condition. I'm using "Print when expression" to conditionally show/hide this column (and it's header) in my report. When the column is hidden, the space it would have occupied is left blank, which is not particularly attractive.  I would prefer if the extra space was used in a more effective manner, possibilities include:   the width of the report is reduced by the width of the hidden column the extra space is distributed among the remaining columns   In theory, I could achieve the first by setting the width of the column (and header) to 0, but also indicate that the column should resize to fit its contents. But JasperReports does not provide a "resize width to fit contents" option.  Another possibility is to generate reports using the Jasper API instead of defining the report template in XML. But that seems like a lot of effort for such a simple requirement.


I am interested if there's a more elegant solution to the one posted below.  []$ find ./abc -type f -exec sed -n 's/test/best/pg' {} + ; find ./abc -type f -exec sed -i 's/test/best/g' {} +   The first find sed command prints all found patterns to console. The second find sed command actually substitutes the patterns within file.   The problems I have encountered:   sed -n -i (cannot have multiple command line modifier/arguments) -? someone confirm?  sed does not have a native modifier to print results prior to substitution -? had trouble finding a solution, maybe it exists, and the command can be modified (i.e. below will output nothing, and substitute behind your back!).  find ./abc -type f -exec sed -i 's/test/best/pg' {} +


Installing Ubuntu on older Toshiba's Satellite series laptop

I have a laptop with 2.50 GB of Ram and the CPU being clocked @ 1.46/1.47 GHz running Windows 7. I wanted to install Ubuntu 18.04 on it. Will it be okay to do it?


Which fuels burn the longest in Minecraft?

What's the order of "best fuels"?  Example: Coal cooks less than lava and blaze rods, wood cooks less than coal, etc.  What's the order of fuels based on their 'cooking quantity'?


I have deleted the windows efi partition ( not windows ).I have in my system 2 linux distro and 2 efi partitions.  I am trying to fix windows boot following steps like:   and .  The problem is , that when I enter the command:  bootrec /fixboot   it shows :      The system cannot find the file specified   I tried to run :     bootrec /rebuildbcd   ,so it shows:     Successfully scanned Windows    C:\Windows   Add installation to boot list?   I answer "Yes" and then it again throws me the previous message.  What can I do about that?  (The "This question may already have an answer here" doesn't help since the /fixboot doesn't work..)  ---- UPDATE ----   1) I tried to run : bcdboot c:\Windows and it throws:      BSFSVC Error:Failed to create a new system store   2) I typed active  after assign letter  = v: but it shows :      The selected disk is not a fixed MBR disk   3) I saw that in the directory : C:\Windows\Boot\EFI\ it has the files : bootmgr.efi , bootmgfw.efi  Should I try there all the commands:  bootrec /fixboot , fixmbr or I may do things worse?  ------ UPDATE ---------------------  This post is different from the duplicate one , in that  , when I try to run :  bootrec /fixboot , it shows: The system cannot find the file specified  I think I made this clear.Why do you duplicate this post???  --- UPDATE 2 -------------------------  I tried ( i have only 1 disk in my laptop ):  list disk sel disk 0 list partition sel partition 2 ( it is an efi partition I have created when I installed linux ) active -> gives message "The selected disk is not a fixed MBR disk"    I then followed the same procedure:  list vol sel vol 11 assign letter = v: exit   Now , when I try: bootrec /fixboot , it shows me the message "No element found"   ------UPDATE 3-------------------  I upload screenshots  and . Disk 0 is my laptop disk. Disk 1 I don't know Disk 2 is the flash drive from which I am running repair disk.  As for the partitions , the 2 and 10 are EFI partitions I generated from the linux distros. So, the volumes are 11 and 12. I tried both.  ---------- UPDATE 4 ----------------------------------------------------  I tried :   bootsect /nt60 ALL /force   but still nothing. When I enter : bootrec /fixboot ,it shows :      element not found.   Also, after this:  Successfully scanned Windows installations. Total identified Windows installations: 1 [1]  D:\Windows Add installation to boot list? Yes<Y>/No<N>/All<A>:   I enter Y but I am getting a negative answer ( I don't remember what exactly! ).  The good thing though ,is that now (after updating grub) the windows boot option appeared in my grub menu. But when I select it ,it shows:     The boot configuration data file is missing required information.      File :\BCD    Error Code: 0x0000034   I am not sure what to do from now on.  I saw somewhere to try : bcdboot c:\windows  but I don't know how to access 'C' drive. Ok, I am doing:  sel disk 0 list vol   and in volumes I can see 'C' listed . But I don't know beyond this.  Also,I tried renaming the BCD file and then rebuild but still the same.  -----UPDATE 5--------------------------  Volume 10 contains:  Bin Boot Recovery -> empty RicaTools -> bootmgr,bootmgr.efi .... TFR WinRePartition.ini   Volume 11:  EFI-> manjaro -> grubx64.efi       BOOT-> BOOTx64.efi       Microsoft-> Boot -> bootmgfw.efi                           bootmgr.efi                           boot.stl                           MokManager                           BCD                           ...       ->ubuntu-> grubx64.efi,grub.cfg,shimx64.efi   Volume 12:  EFI-> mint ->grubx64.efi       manjaro-> grubx64.efi   ---UPDATE 6------------------  Finally it worked thanks to Christophe!  Just want to note for anyone who has the same problem , that the last command fixboot gave      Element not found   but it didn't matter!  Of course ,finaly,I had to do an update-grub .


How many different functions are there that are equal to their own inverse?

I know that functions can be their own inverse such as $f(x)=x$ however I thought there were only two $f(x)=x$ and $f(x)=-x$. Is there more?


I work in a company where two companies are under one network. They use same subnet. (We have 50 clients (pc) - 4 servers - total for both companies)   Both companies have own server for domain controller, each company have own employees.   I was wondering is it good solution to set main router (default gateway) to serve as only DHCP, and to remove DHCP from domain controllers ?   Only servers have static IP address. It is hard to manage multiple DHCP servers. Especially in this case where employees use WIFI connection as well  Router model - CISCO RV325  Gigabit Dual WAN VPN Router


What is an efficient way to implement a singleton pattern in Java?


Automorphisms of the ring $\Bbb Z[x]$ of polynomials with integer coefficients

I am trying to find the automorphisms of the polynomial ring $\mathbb{Z}[x]$.  So far, I have shown that if $\varphi$ is an automorphism, then $\varphi(n)=n$ for $n \in \mathbb{Z}$, and $\varphi(x)$ is a polynomial of degree one, say $mx+n$. If we consider what gets sent to $x$ by $\varphi$, we see that $m$ must be a unit of $\mathbb{Z}$, so $m=\pm 1$. So I think the automorphisms fix $\mathbb{Z}$ and send the indeterminate variable $x \mapsto x+n$ or $x \mapsto -x+n$ for $n \in \mathbb{Z}$. Is this correct?


About the probability that the number of Fermat primes is infinite.

I am asking about the probability that the number of Fermat primes is infinite. There is a lot of things similar to the case of Mersenne primes. But it was conjectured that the number of Mersenne primes is infinite and the number of Fermat primes is finite.


I'm using the <string>.replace(/x/g,"y") to replace all instances of a character in a string to a different character, and I get exactly what I need.  My problem is with the syntax of the pattern (i.e. /x/g) that causes issues in a small post-processor I developed for all the javascript files included in my project.  The solution to my problem can be to encapsulate the string replacement within an isolated file that would not undergo post-processing.  (What post-processing does and why I use it is not important here)  My question: Suppose I create a function Switch_All_Chars(In_Str,Old_C,New_C) that replaces all instances of Old_C by New_C in In_str returning the updated string, and it would loo like:  function Switch_All_Chars(In_Str,Old_C,New_C) {     pat = /Old_C/g ;     return In_Str.replace( pat , New_C) ; }   This would not work because par is not properly defined. Is there a syntax that would allow the definition of the pattern using a variable?  Thanks.


Consider the polar equation $f(\theta) = \sqrt{3\sin(2\theta)}$. I notice that this graph only appears in the I and IV quadrants. Is the reason for this because of the square root function only being able to take positive values?


I need to use php5 (5.6) because I'm working on a Drupal 7 project which doesn't support php7. The problem is I recently updated to ubuntu 16.04 Xenial which seems to .   I tried to install it from , however when It try to install it with apt I always get similar errors.  $ sudo apt-get install php5-cli Cependant les paquets suivants le remplacent :   php7.0-cli:i386 php7.0-cli`   Which means it's obsolete. How can I install PHP 5.6 on Xenial?


Does anybody know of a method to trigger an event in Prototype, as you can with jQuery's trigger function?  I have bound an event listener using the observe method, but I would also like to be able to fire the event programatically.  Thanks in advance


I have learned that 1/0 is infinity, why isn't it minus infinity?

My brother was teaching me the basics of mathematics and we had some confusion about the positive and negative behavior of Zero. After reading a few post on this we came to know that it depends on the context of its use.  Why do we take 1/0 as positive infinity rather than negative infinity (we come close to zero from negative axis)?


Please don't show the red dot indicator for review items I can't do

This is not a duplicate of , because this reports different things from that question. That question is specifically about the case where the user has run out of daily reviews; this question reports different problems outlined in the below bullets. While this post also formerly covered that, that has since been edited out. The review queues indicator shows all reviews in a queue a user has access to, no matter if that user is able to review them.  As a result, there are various circumstances where the review indicator gives false information:  There are items in a queue which the user does not have the reputation to review. (I only know of this happening in the suggested edits queue, where tag wiki edits land in the same queue as post edits.) This once . The only pending edits in the suggested edits review queue are the user's own tag wiki edits. (Users with 5,000 reputation but less than 20,000 can review tag wiki edits, but can't bindingly edit them.) There is a single pending suggested edit, which is currently being reviewed by someone else and has been "checked out" to that reviewer. The reviewer has already voted on a post in the queue (e.g. flagging a current Low Quality post as NAA or VLQ externally, or externally voting to close or reopen a post currently in one of those queues) The reviewer has skipped reviews The user has reviewed all items in a queue, but they have not left it yet  There have been numerous calls to fix all different aspects of this, as you can see by the links above. However, at heart it is all one problem: the indicator appears for queues when a user can’t review the items in the queue. I suggest solving this problem once and for all, by making sure that users are not notified for reviews they can do nothing about. So here’s my plea: please don’t show us the indicator for reviews we cannot perform!


Anything I should keep in mind before I start mixing and matching between D&D 3.5e and Pathfinder?  Off the top of my head, the biggest difference is feats every 2/3 levels. Would it affect balance if I picked every 3 levels instead of 2? I think PF options are still pretty solid regardless...


How can I find my Teamviewer ID via SSH?

So I tried doing this command  root@server:~#   teamviewer --info print version, status, id  TeamViewer                      10.0.35002  teamviewerd status              teamviewerd start/running  TeamViewer ID: Try restarting the TeamViewer daemon (e.g. teamviewer --daemon restart)   but apparently it can't find my ID and I must restart the tv daemon, I do this but it still says the same thing?? Is there any way to get my Teamviewer ID without this? I also tried checking the logs but there's nothing in there that's a Teamviewer ID.  My issue is different to others because there is no information in the log files that indicate a client ID whatsoever.


Error: "To run a ssis package outside of sql server data tools you must install [send successful email] of Integration Services or higher."

NOTE that the title of this qusetion is a verbatim error message specific to this user. The error message illustrates a bug in the dtexec application, which substitutes a user variable into the error message string. In this case, the standard message Standard E dition is replaced with send successful email.  The 'standard' error message would be :  Description: To run a SSIS package outside of Business Intelligence Development Studio you must install Standard Edition of Integration Services or higher.    Version SSIS 2012. Package was originally 2005 ver. Package on file system.  DB Engine / Agent on Host 1, SSIS on Host 2.  Execution from Host 2 runs successfully. Execution from Host 1 gives the error in the question subject. Saw , but engine and agent are installed on Host 1. Has anyone seen this? Google returns no results when searching on the exact error (subject line is exact, wording is odd in the error message).  Thank you!


Similar to , I am trying to match a string with *two optional values, both of with are surrounded by parentheses and are of unknown length. Examples of the string in question are: 4 4(2(3)) 4(2(3)(1)) 4(2(3)(1))(6(5)) 1(2(3(4(5(6(7(8))))))) -4(2(3)(1))(6(5))  There is always a digit that may be negative, and at most 2 items in parenthesis. I would like to capture them in groups, so for the last item, the groups would be: group 1: -4  group 2: 2(3)(1)  group 3: 6(5)   Adding another optional group to the regex seems to break down: (-?\d+)(?:\((.*)?\))?(?:\((.*)?\))?     ^        ^             ^    group 1  group 2     group 3


As a D&D5e newbie player, I'm getting to grips with all my skills and abilities and when to use them. One thing that's come up is when we encounter monsters ... what do you roll against when trying to gauge a monsters weaknesses, so we can use fire, water, light, etc, against it? Do different types of monsters require different rolls to understand what their possible weaknesses could be, eg Insight, Nature, Arcana, etc? Some players round the table are GM's themselves and very knowledgeable about what to use against monsters, but their characters wouldn't have a clue, having never encountered them before, so it's difficult to find the right balance as a newbie who doesn't want to buy a monster manual or use an online search!


I have just started using QGIS 3.4 and want to split a polygon with a line from another layer. I can do this in 2.18 but there is no option in 3.4  Is this correct, is the tool not available


Why is Xubuntu 17.04 refusing to update my software? My internet is working fine. This is really frustrating. It also doesn't even show update possibility to 17.10. I get a note to check the internet, but the internet service is fine. It's working for everything else.


(object instanceof C) what is the type of C?

I'm try to do something like this  public void method(Object obj, Class objClass) {     if(obj instanceof objClass) {         //do something     } }   I want to pass Class object or class name and test if that is and instanceof of that. This don't work, anyone know how to do this? Thanks


Teflon pan safe to use after being in an oven?

We put a Teflon pan in the oven at 400° F for about 20 minutes before we realized and took it out.After it cools off outside and we wash it would it still be safe to use on the stove? or should we toss it.


get last day of the month from year month in python

I need to get first and last day of a month based on the given yearmonth value. I am able to get the first day, how do we get the last day of the month here ( in python) :  from datetime import date def first_day_of_month(year,month):     return date(year, month, 1)  print "Today: %s" % date.today() print ("First day of this month: %s" % first_day_of_month(2015,10))   This gives the output: Today: 2015-10-26 First day of this month: 2015-10-01  How to fetch the last day of the month? P.s : I do not want to give 31 as the third parameter for date() function. I want to calculate number of days in the month and then pass on that to the function.


I always had a question in my mind; ever since I have started coding, Stack Overflow has turned out to be a good solution finder for me.    When was Stack Overflow first released?   Who was the first one to register to the site?   I have seen that the site was under maintenance a few days ago, so I thought it's time for me to end the surprise I have been keeping in my mind and shoot.


(This is probably a duplicate, but I couldn't find what I was looking for through search.)  Say for example you have the sentence:     He is referring to himself.   You can replace "he" with "they" (singular), but you can't replace "himself" with "themself" because it isn't considered a real word.  So, would it be "themselves"? Can "themselves" be singular? If not, what would you use instead?     They are referring to __________.   (Singular "they")


Edit: This was not an issue with the template not being defined in the header. This error was caused by not defining a copy constructor.  I tried googling this but I couldn't find anything except for issues with people calling functions without the proper parameters and things along those lines. So, here's a very small chunk from main. I have created a templated container class and initialized test as one to hold strings. sorted.h is included in both .cpp files.  Error here:     // Test assignment operator   // Can test copy constructor by changing following two lines to   //   sorted<string> test(songs);   sorted<string> test;   test = songs; // Error occurs when commenting this line back in.   Here is my overloaded assignment operator. I assume this is what's causing the problem since commenting the line that would use it is what causes the linker error. Anyone have an idea what I'm doing wrong here?  //Overloaded assignment operator. (sorted.cpp) template <class T> sorted<T> sorted<T>::operator=(const sorted<T>& srtd){    if (this != &srtd){     delete [] m_data;     delete [] m_randfinal;      m_data = new T[srtd.m_capacity];     m_randfinal = new T[srtd.m_size];     m_size = srtd.m_size;     m_capacity = srtd.m_capacity;         for (int i = 0; i < m_size; i++){       m_data[i] = srtd.m_data[i];       m_randfinal[i] = srtd.m_randfinal[i];     }   }    return *this; }    Declaration in sorted.h.  // Overloaded assignment operator sorted<T> operator=(const sorted<T>& srtd);


I noticed I have a very faulty rc.local and would like to have the package releasers version right now, and not when it has to upgrade. Can someone hint me to the options, or the full command it needs to renew/reset these essential files?


How many times is it safe to reuse deep frying oil?

How many times is it safe to reuse deep frying oil for things like french fries, falafel, chicken etc.?  Does the food deep fried make a difference in that regard, i.e. is it safer to reuse oil that vegetarian foods were fried in than meats?


Best choice between using \\ or leaving space after each paragraph to end the paragraph

Here is the thing, I have always used a blank space between paragraphs in order to tell latex that there is a new paragraph. But there is someone I work with very often that keeps using \\ to break a line after a paragraph...  This is really annoying so I wanted to know if there is a real advantage of using \\ over just leaving a space.  Note that I am not referring to the paragraph environment, but to the simple term paragraph.


"Had they not intervened" OR "If they had not intervened"

Could someone please explain the grammar used in the text below?     Officers are convinced the bloodshed at the Christian school would   have been worse had Meis and the others not intervened.      Source:    According to what I have learned so far it should be :     Officers are convinced the bloodshed at the Christian school would   have been worse if Meis and the others had not intervened.


Where should i set the environment variable for java in ubuntu？

when i wanta set the environment variable for java: someone said "~/.bashrc" and someone else said "/etc/profile" or "~/.profile"  i wanta know what different from these files?   And why the commod is  "export PATH=$JAVA_HOME/bin:$PATH" but "export PATH=$JAVA_HOME/bin"


Can I use the same save file for different copies of a Switch game?

A friend lent me his copy of Mario + Rabbids to play on my own Switch. I ended up enjoying it a lot and I want to buy my own copy, but I don't want to lose my progress.  If I buy a separate physical or digital copy of a game, will I still be able to play with my save file?


Is there a way to save the file listing from a Windows file search to a text file?

Is there a way to save the file listing from a  Windows search to a text file?  I have had to search from My Computer over 6 drives for a file spec. I can't believe that there is no way to save the results to a file, or is there?


Prove if $a_{n}$ converge to $L$ then $\lim_{n\rightarrow\infty}\frac{a_{1}+a_{2}+...+a_{n}}{n}=L$

Good night. I'm stuck in this prove.  Prove if $\left\{ a_{n}\right\} $ is a sequence and $$\lim_{n\rightarrow\infty}a_{n}=L$$ then $$\lim_{n\rightarrow\infty}\frac{a_{1}+a_{2}+...+a_{n}}{n}=L$$  I make this:  $\mid\frac{a_{1}+...+a_{n}}{n}-L\mid=\mid\frac{a_{1}+...+a_{n}-nL}{n}\mid\leq\frac{\mid a_{1}-L\mid+...+\mid a_{N}-L\mid+\mid a_{N+1}-L\mid+...+\mid a_{n}-L\mid}{n}=\frac{\mid a_{1}-L\mid+...+\mid a_{N-1}-L\mid}{n}+\frac{\mid a_{N}-L\mid+\mid a_{N+1}-L\mid+...+\mid a_{n}-L\mid}{n}$  And I'm stuck, please help!!


How is the Point on surface tool calculated in QGIS

I am interested to know how the  tool works in QGIS 3. I am choosing to use this rather than the  tool which works of the "center of mass" methodology because this creates a point outside the area of the polygon which is not suitable for my needs.  The QGIS documentation does not seem to explain the calculation used but I would like to know so I can test whether it is suitable for my analysis and so I can incorporate an error with my calculations.


How should large table columns be handled on a responsive design?

Related to , I'm interested in what I should do with a responsive design theme where the users have control over the columns which are displayed in a tabular, data rich page. Users are able to manipulate which columns are displayed, so I can't just limit the data to a few columns, as the other question's answers suggest. A potential work-around is to have a custom "mobile" query set up with pre-defined columns which I design for, but I can't control whether the users use this view or not. Right now, I just have each column in each row stacking on top of each other and centered. I think this is not a very good design, as it wastes space and doesn't look organized. How should I best tackle this problem? Desktop:  Mobile View:


Can I use about and for interchangeably? If not, when should I use either? Which is more common?        I'm sorry for/about yesterday.   I'm sorry for/about my bad English.   I'm sorry for/about that.


Integrate $\int \sin (2x) \cos (2x)\,dx$

I have  $$\int \sin(2x) \cos (2x)\,dx = \frac12 \int \sin(4x)\,dx = -\frac18 \cos(4x),$$  but I also have  $$\int \sin(2x) \cos (2x)\,dx = \frac12 \int \sin 2x \cdot 2 \cos 2x \, dx = \frac14 \sin^2(2x).$$  Which one is correct, and why is the other method wrong?


Java beginner's Temperature converter- Not reading string as what it is?

import java.util.Scanner; import java.lang.Math; public class ConvertTemp  {      public static void main(String[] args)      //try making a program that asks if the user wants to convert f to c or vv     {         //declare variables and instantiate         double temp, fahren, cels;         String tempType;         Scanner input = new Scanner(System.in); //try changing this later            //ask user for data         System.out.print("Is this temperature in fahrenheit or celsius (enter F or C)?");         tempType = input.nextLine();          System.out.println(tempType);         System.out.println(tempType=="F");          if(tempType == " F")         {             System.out.print("Enter your temperature in Fahrenheit: ");             temp = input.nextDouble();             fahren = Math.round((9.0/5.0) * (temp + 32.0));             System.out.println(temp + " degrees fahrenheit is " + fahren);         }          if(tempType == " C")          {             System.out.print("Enter your temperature in Celsius: ");             temp = input.nextDouble();             cels = Math.round((temp - 32.0) * 5.0/9.0); //this will round to one decimal bc float param             System.out.println(temp + " degrees celsius is " + cels);         }       }  }   When I run the program and enter F, this is what shows up:  Is this temperature in fahrenheit or celsius (enter F or C)?F F false  Why is it giving me false? Even before I try running through the if statements?


How to make a document compile into two different orders of its parts?

I want to set up a diary that compiles in two different orders: One is work by day, the other is work by project according to tags I give to the particular chunks of work I did each day.   For example, I write my diary as usual in work by day form:  2/2/15  -- bought a new screwdriver (tag: car maintainence)   -- scetched my plan for world domination (tag: world domination)  3/4/15  -- started studying physics (tag: world domination)  -- finished tax declaraction (tag: burocracy)   Compiling by project would yield tags as sections:  car maintainence    -- 2/2/15: bought a new screwdriver  world domination  -- 2/2/15: scetched my plan for world domination  -- 3/4/15: started studying physics  burocracy  -- 3/4/15: finished tax declaraction   I know this is pretty close to the literal programming paradigm the whole LaTex documentation follows: A code chunks in a document can be compiled to two different orders: For human understanding and for use by the machine. However, I want two human readable versions --say pdf-files-- as output. Is there some package that helps?


Redirection to a file instantaneously in linux

I wrote a python file which prints a number every 5 sec and I runned it by using the command python3 filename >> a.txt  But the output comes to the file after the completion of the  program. How to make it redirect instantaneously??


Can one use a conventional microphone as an underground acoustic sensor?

I need an acoustic sensor I can bury to monitor the immediate area acoustically for footsteps. Is it possible to simply bury a microphone and call it a day, or would a more specialized underground acoustic sensor be necessary?


Would it be bad to only speak to a child  in a language in which you are not completely fluent?

My husband and I can speak daily conversational Mandarin, probably at the fluency and vocabulary of a native 3rd grade speaker.  So decent, but not great.  We speak 99% of the time in Mandarin to our son (though we speak English to each other in front of him).  As he is a toddler now and getting older, I find my limited vocabulary more of an issue than when he was younger (e.g. at the zoo, we see a polar bear... I didn't know "polar bear" in Mandarin and had to just call it... a "white bear").  I worry that I will cause him developmental issues since I've read that the amount you speak to children impacts their learning (more is better).  Unfortunately, the studies I've seen are unclear whether it is purely volume or also diversity of words.  Anyone with info or personal experience with this?


custom button and conditional xinput command

I have a dell xps 13 running ubuntu 18.04. Laptop came with a touchscreen which is always active and i can disable with xinput. I have created a custom appication button which I added to favorites and when i click, touchscreen turns off which is very very convenient. My question is: can I further customise this desktop entry in a way that when i click it, if the touchscreen is active it turns off but if the touchscreen is disabled, it turns on... Is there any way to add a conditional statement in the xinput command? text in my dektop entry: [Desktop Entry] Name=touchscreen Comment=nada Exec=xinput -disable "ELAN2930:00 04F3:2930" Type=Application Terminal=false Icon=/home/roland/Pictures/touchscreen.png


How do I show that in a normed space $| (\|x\|-\|y\|) | \leq \|x-y\|$  I need to use normed space axioms but I'm unable to figure it out. I think the scalar axiom and triangle inequality are helpful.


For every 104 male babies, we have 100 female babies and there are statistics which are more reliable. (Those tell us that we have 997 female infants born per 1000 male infants born.) What is the reason for that? Why do we have more male babies than female babies?


ZSH: insert completion on first tab even if ambiguous?

Currently ZSH displays a menu when I first hit tab and the completion is ambiguous. So, if I have 'cd ' in the command prompt and I hit tab, it will show the different available completions. If I hit tab again, it will select the first available completion.   I would like to merge these two steps into a single press of the tab key. So, if I'm at 'cd ' and I tab, I would like ZSH to insert the first available match (when ambiguous) and display the menu, which I can then tab through if the first match wasn't the directory I had in mind.  The ZSH setup tool put this in my .zshrc, in case any of this is affecting the behavior of my shell:   zstyle ':completion:*' completer _expand _complete _ignored zstyle ':completion:*' list-colors '' zstyle ':completion:*' list-prompt %SAt %p: Hit TAB for more, or the character to insert%s zstyle ':completion:*' matcher-list 'm:{[:lower:][:upper:]}={[:upper:][:lower:]}' '' 'm:{[:lower:][:upper:]}={[:upper:][:lower:]}' zstyle ':completion:*' menu select=5 zstyle ':completion:*' select-prompt %SScrolling active: current selection at %p%s zstyle :compinstall filename '/home/robb/.zshrc'


How do I get Siri to pronounce my name correctly?

Siri doesn't pronounce my name correctly. I tried editing the phonetic spelling as it says on many sites, but it doesn't fix the problem. How do I fix this problem?


Why am I forced to give away half the bounty on a question even if the answers are incorrect?

I found a pretty cool question which justified a bounty. I didn't receive a correct answer and the bounty is about to expire. Instead of extending the bounty I MUST pick an answer or half a bounty will be given away on my behalf if the answer got 2 up votes even if it is incorrect or off topic.  I will lose all the bounty regardless of up votes and correctness which also makes no sense. If I found a solution and the community found it useful why not  giving back at least the half of the reward?   It is my rep why can't I decide? I understand that other members of the community may find the answers useful but they have ways to reward answers: they can up vote or they can start their own bounty. It is unclear why their opinion matters if the bounty was mine.   The current bounty mechanism also prevents extending bounties regardless how many people saw the question and how many answers I received.   I could create a new bounty if I am not happy with the answer but it will be automatically given to an existing answer if other people found it useful and no other answer was received.   This question is not about how the bounty system work or what the FAQ says or what the current bounty is by design. It is about whether it is fair or logical to spend it on anything other than it was intended to reward.   I may disagree with the 2 up votes and since it is my rep, given up for a specific purpose it should be up to me if it is given away or not. Other members of the community should use their own reputation or the voting system to reward answers.   Extending the bounty and waiting for a better answer should be an option as well. Losing rep every time it is extended discourages rewarding answers and seems wrong.  Why it is not a duplicate of:   How does the bounty system work? – The question is not about how the system works rather than why.  Please do not auto select answers on bounty questions – This is not even a question. I am asking for a change, I want to know why the bounty system works in a certain way and what are the reasons why the alternative solution I would have used are not used.  Should we allow adding rep to bounties to extend their duration? – Extending the bounty duration would solve the issues I mentioned my question is about why it is not like that