centos rely access denied postfix send mail

I am trying to send mail from my centos using postfix configuration but getting error as   554 5.7.1 <dummy@gmail.com>: Relay access denied   my postconf -n shows belog information  alias_database = hash:/etc/aliases alias_maps = hash:/etc/aliases command_directory = /usr/sbin config_directory = /etc/postfix daemon_directory = /usr/libexec/postfix data_directory = /var/lib/postfix debug_peer_level = 2 home_mailbox = Maildir/ html_directory = no inet_interfaces = localhost inet_protocols = all mail_owner = postfix mailq_path = /usr/bin/mailq.postfix manpage_directory = /usr/share/man mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain mydomain = dummy.com myhostname = dummy.com mynetworks = all mynetworks_style = host myorigin = $mydomain newaliases_path = /usr/bin/newaliases.postfix queue_directory = /var/spool/postfix readme_directory = /usr/share/doc/postfix-2.6.6/README_FILES sample_directory = /usr/share/doc/postfix-2.6.6/samples sendmail_path = /usr/sbin/sendmail.postfix setgid_group = postdrop unknown_local_recipient_reject_code = 550   What configuration I have to perform to send mails from my server.


How to compute $\int_0^{\pi/2}\frac{\sin^3 t}{\sin^3 t+\cos^3 t}dt$?

Calculating with Mathematica, one can have $$\int_0^{\pi/2}\frac{\sin^3 t}{\sin^3 t+\cos^3 t}\,\mathrm dt=\frac{\pi}{4}.$$   How can I get this formula by hand? Is there any simpler idea than using $u = \sin t$?     Is there a simple way to calculate $$ \int_0^{\pi/2}\frac{\sin^n t}{\sin^n t+\cos^n t}\,\mathrm dt $$ for $n>3$? Could anyone come up with a reference for this exercise?


If $A$ is a $2 \times 2$ matrix with complex entries, then $A$ is similar over C to a matrix of one of the two types   $$           \left[ {\begin{array}{cc}              a & 0 \\              0 & b \\                 \end{array} } \right]   $$  $$           \left[ {\begin{array}{cc}              a & 0 \\              1 & a \\                 \end{array} } \right]   $$  When For $2 \times 2$ matrix $N$ such that $N^{2} = 0$, $N$ is similar to  $$           \left[ {\begin{array}{cc}              0 & 0 \\              1 & 0 \\                 \end{array} } \right]   $$  The source of the problem is  by Hoffman and Kunze.


Where does 'pay through the nose' come from?


What happens if we exert more force on an object which would be travelling at near maximum light speed?

If we exert force on an object which would be travelling at near light speed, to an extent to make it move greater than speed of light in vacuum, what would happen? If object doesn't move faster than light, what happens to that excess force?  Is this experiment been done? What would happen if we exert force on light travelling at its maximum speed?


MySQL - maximum of sum over different months with ties over multiple years

This question was inspired by  [closed] and is virtually identical to this  but using different RDBMS's (PostgreSQL vs. MySQL).  Suppose I have a list of tumours (this data is simulated from real data):  CREATE table illness (nature_of_illness VARCHAR(25), created_at DATETIME);  INSERT INTO illness VALUES ('Cervix', '2018-01-03 15:45:40'); INSERT INTO illness VALUES ('Cervix', '2018-01-03 15:45:40'); INSERT INTO illness VALUES ('Cervix', '2018-01-03 15:45:40'); INSERT INTO illness VALUES ('Cervix', '2018-01-03 15:45:40'); INSERT INTO illness VALUES ('Cervix', '2018-01-03 15:45:40'); INSERT INTO illness VALUES ('Lung',   '2018-01-03 17:50:32'); INSERT INTO illness VALUES ('Lung',   '2018-02-03 17:50:32'); INSERT INTO illness VALUES ('Lung',   '2018-02-03 17:50:32'); INSERT INTO illness VALUES ('Lung',   '2018-02-03 17:50:32'); INSERT INTO illness VALUES ('Cervix', '2018-02-03 17:50:32'); -- 2017, with 1 Cervix and Lung each for the month of Jan - tie! INSERT INTO illness VALUES ('Cervix', '2017-01-03 15:45:40'); INSERT INTO illness VALUES ('Lung',   '2017-01-03 17:50:32'); INSERT INTO illness VALUES ('Lung',   '2017-02-03 17:50:32'); INSERT INTO illness VALUES ('Lung',   '2017-02-03 17:50:32'); INSERT INTO illness VALUES ('Lung',   '2017-02-03 17:50:32'); INSERT INTO illness VALUES ('Cervix', '2017-02-03 17:50:32');   You want to find out which particular tumour was most common in a given month - so far so good!    Now, you will notice that for month 1 of 2017, there is a tie - so it makes no sense whatsoever to randomly pick one and give that as the answer - so ties have to be included - this makes the problem much more challenging.   The correct answer is:    Year    Month  Tumour count      Type   2017        1             1    Cervix  -- note tie   2017        1             1      Lung  --   "   "   2017        2             3      Lung   2018        1             5    Cervix   2018        2             3      Lung   A further bonus would be to have the month name appear as text rather than an integer.  I have a solution but it's quite complex - I'd like to know if my solution is optimal or not. The MySQL fiddle is !


When performing callouts from Salesforce to various remote endpoints, we'll occassionally/intermittently receive a "bad_record_mac" error.  Sometimes they are persistent and don't go away after a period of time, othertimes the next callout works without a problem.  Doing some Googling, it doesn't see to be an uncommon issue in the Java world, but the resources that are more Salesforce centric are very few in number.  Those resources revolve around enabling or limiting various forms of SSL on the server (SSLv3, TLSv1, etc), but there's not a lot of information around the cause and as you imagine, no difinitive solution or response from Salesforce about it.  Does anyone successfully debugged these issues or have more information about why these Salesforce originating responses are dropping at the endpoint?  Thanks in advance!  Hoping to get to the bottom of this and ultimately have more information available to other users that experience this in the future.  Also posted in the SF Dev Community:    Note:  This was marked as a duplicate of:  .  That post did not have a response - I was requested to start a new question.


How exactly does the curvature of space-time cause objects to "fall" into another object

Let me preface this by saying that I'm a high school student so my knowledge of GR might be seriously flawed.  As far as I'm concerned, Einstein's theory of GR states that matter curves the fabric of space-time so instead of there being an imaginary "tug," objects are simply falling in.  My question is, how do the objects "fall" in because in real-life simulations of the curvature of space-time, the force that's causing objects to "fall" in is Earth's gravity. In other parts of space, what causes objects to "fall" in. Does the Newtonian "tug" of gravity still exist within Einstein's theory because, without it, I can't seem to understand why curving space-time would cause stuff to "fall" in?


I have two versions of windows 7 installed in two partitions C:\ and D:. The files of the system in partition C:\ were corrupt. And I forgot which version of windows was installed there and I need this to provide the suitable version of windows 7 to recover and repair the system. Is there any in C:\ that contain information about the version of the system installed that I can access it from the other version of the system without accessing the damaged os?


cakephp mysql encoding issue when move from 5.4 to 5.3

I have a project developed in PHP 5.4.35 using CakePHP, When I insert some unicode string into database,     Example : Bệnh suy giảm trí nhớ   After insert into database, this is the database content of record :      Bá»‡nh suy giáº£m trÃ nhá»›   If I use php 5.4 it display perfectly on website :     Bệnh suy giảm trí nhớ   I also develop an api in json format for this project and the api response when I get this data is:  B\u1ec7nh suy gi\u1ea3m tr\u00ed nh\u1edb When client (mobile client) get this data and display, it is displayed perfectly same as website.  But when I move to a hosting with php 5.3.23, it is displayed on website just like on database:     Bá»‡nh suy giáº£m trÃ nhá»›      And the api response : B\u00e1\u00bb\u2021nh suy gi\u00e1\u00ba\u00a3m   tr\u00c3\u00ad nh\u00e1\u00bb\u203a It is dislayed : Bá»‡nh suy giáº£m   trÃ nhá»› on mobile device (which displayed perfectly if I use php5.4   for api)   ;  then I tried to use utf8_decode function of php after get it from database and this is result:  utf8_decode($record);      B��?nh suy giảm trí nh��?   I thought that maybe this string was encoded before inserted to mysql in php5.4 and then decoded right after get it from the database, but in php5.3 it keep the string when insert and get from database. and the encoder, decoder of utf8 in php 5.3 and 5.4 is different??? I guest.   I'm using cakephp 2.5.3 and it use PDO to insert and get data from database I've tried all the way to change charset, collate .... but it take no effect like :  PDO -> exec ('SET names utf8'), PDO -> exec (' Set names utf8 collate utf8_unicode_ci'); .... I've also set the charset of header, html meta tags....  my database use utf8_unicode_ci collation in both environment no different in database version It's just I found no way to resolve the problem, so if anyone know about this please give me some solutions Thanks


Haven't received association bonus on Arqade

I have over 200 reputation in  for a long time now.  On all sites I joined, I got the association bonus, e.g. in  I got it when joining back in July 2017.  Also, on sites I joined before getting 200 rep on SO, I got the bonus on June 17th 2015, e.g. .  However, my reputation on  is still 1, and I didn't get the bonus there for some reason.  Can this please be fixed so that I get the 100 rep association bonus on Arqade?  This is not a duplicate of , because I created my Arqade account before I could've gotten the association bonus, but after I became eligible for that bonus I did not receive it.


Downloading a file in Internet Explorer through Selenium

I have to automate a case in which I have to download an Excel file using Selenium IDE.I have done this in Firefox by using custom profile feature which automatically downloads file and saves it into a user-defined folder. To do the same in Internet Explorer (IE), is there anything in IE like custom profile and preferences? how do I prompt IE to automatically download a file? I am using Java for automation. Kindly help. *If you guys use java selenium, this article will be useful Selenium WebDriver で IE11/Edge のファイルダウンロードを自動化する （IE11/Edge file download process automation by Selenium WebDriver）


Solving $(\cos x-\sin x)\left(2 \tan x+\frac{1}{\cos x}\right)+2=0$

Please help me to solve this question  $$(\cos x-\sin x)\left(2 \tan x+\frac{1}{\cos x}\right)+2=0$$  I tried to open the whole LHS expression and the tried to bring it in square format. Something like this $$\left(\cos x +\frac32\right)^2 - \left(\sin x+\frac12\right)^2-(\sin x-\cos x)^2 =2$$ But after this I am not able to proceed forward.


I am trying to create JButtons and add them to a JScrollPane as well as a vector of JButtons. When I try to add them to the vector the program throws an exception.  Here is the code:  public class DirectorySelectionWindow extends JFrame {  Vector<JButton> directoryButtons; String selectedDir;  DirectorySelectionWindow(){     super("Select Directory");     this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);      String cwd = System.getProperty("user.dir");     System.out.println(cwd);      File currentDirectory = new File(cwd);      String filesInDir[] = currentDirectory.list();      JScrollPane pane = new JScrollPane();      for (int i = 0; i < filesInDir.length; i++) {         if (filesInDir[i] != null) {             if (!filesInDir[i].toString().startsWith(".")) {                 System.out.println(filesInDir[i]);                 JButton button = new JButton(filesInDir[i]);                 directoryButtons.addElement(button);                 pane.add(directoryButtons.elementAt(i));             }         }     }      this.add(pane);     this.pack();     this.setVisible(true);     }   I catch the exception when I try to add the button to the vector (the directoryButtons.add() line).


"SSL connection error" in Firefox after updating to ubuntu 16.04 LTS

I updated my laptop to 16.04.LTS but now I cannot open google, gmail, youtube, anything google related. It gives me "SSL connection error". I can open other sites just like before the updating. Can anyone help?  Thanks  p.s. I inherited this laptop from my son. Have no knowledge about ubuntu. So I would appreciate it greatly if you can provide step by step fixes in your answer. Thanks


How many integers between 1 and 10,000 are neither squares nor cubes?

Question in proofs class. No idea how to figure this one out. I've been giving all questions an honest effort - this seems unorthodox.   Please help get me started


How to prove the Taylor series converges for a smooth function with nonnegative derivatives?

Suppose $f\in C^{\infty}[a,b]$, and for any $n\geq 1$, $f^{(n)}(x)$ is non-negative. Prove that $$f(x)=\sum_{n=0}^\infty \frac{f^{(n)}(a)}{n!} (x-a)^n\,,\, \forall x\in [a,b]\,. $$ Hint: using $R_n(x)=\frac{1}{n!}\int_a^x f^{(n+1)}(t) (t-a)^n dt $ and $f^{(n)}(x)$ is increasing.  I have tried in the following way: $$\begin{aligned} R_n(x)&=\frac{1}{n!}\int_a^x f^{(n+1)}(t) (t-a)^n dt \\&= \frac{1}{n!} f^{(n+1)}(\xi) \int_a^x  (t-a)^n dt\\&\leq \frac{f^{(n+1)}(b)}{(n+1)!} (b-a)^{n+1}. \end{aligned}$$ But I don’t know how to prove last step, which is $\frac{f^{(n+1)}(b)}{(n+1)!} (b-a)^{n+1} \to 0$ as $n\to\infty$. Or there is another method to solve this problem, looking forward to your answers! Thank you!


Is there a QGIS functionality or a plugin that I can use to 'move' polylines in a shapefile with a certain offset to the right or left of its original position and save the result in a new shapefile?  (In Avenue I would use: aPolyline.ReturnOffset(aDistance) )


I'm trying to make a method to remove spaces in a given String. this is my code right now:  public class sorter {      public static String nameConvertion(String name) {         name = name.replaceAll("\\s","");         return name;     }        public static void main(String args[])     {          String name = "    123 123 123 123  ";         nameConvertion(name);         System.out.println(name);     } }   But it doesn't remove the spaces, what am i missing?


distribution of the ratio of two gamma random variables

Assume that $X \sim Ga(\alpha_1, \beta_1)$ and $Y \sim Ga(\alpha_2, \beta_2)$. Define $Z= X/Y$. What 's the distribution of $Z$?


Change file system from case-sensitive to case-insensitive

I have a CentOS bare metal with 1TB SSD and, a couple weeks after having my application in production, we noticed it needs to be case-insensitive.  Is there any easy way to accomplish this? Also, should we expect a long downtime?  Reason for wanting a case-insensitive file system:  We use Dropbox API as the core of our application to get files and store them in our server.   The API doesn't tell, in an efficient way, when a file has uppercase letters. From Dropbox API best practices: A common thing that trips up new developers is that the Dropbox 'file system' is case-insensitive, meaning that A/B/c.txt is the same file as a/b/C.txt and is the same file as a/B/c.txt.  and  Note: Dropbox treats file names in a case-insensitive but case-preserving way. To facilitate this, the <path> values above are lower-cased versions of the actual path. The last path component of the <metadata> value will be case-preserved.  More  and .  While we can have some workarounds in the app itself to make this work, the best alternative for us was having the file system case-insensitive.


Hiding a Field User-Based - 50 Users Assigned to same Profile, hide ONE Filed only to ONE User

Hide a Field from ONE PARTICULAR USER out of 50 Users having the same Profile I have 50 Users assigned to a Profile called Sales. I have a Custom Object called "Commission". I have a Field called "Comission Amount" this field contains confidential data and the Management would like to HIDE this ONE Field from ONE User who is one amongst the Users with Sales Profile. What we want to achieve is that out of 50 Users with Sales Profile, we should HIDE this ONE Field from this Object to this ONE particular user who has Sales Profile.  How to achieve this? The User can have access to Read / Write View the Object and have access to all the other Fields on this Object except for this One Field called Comission Amount.. What's the best Solution? Note: We do not want to create a Custom Profile for this Particular User.


Top K Frequent Words using heaps in Python

I'm trying to solve the  in O(N log K) time and am getting an undesirable result. My Python3 code and console output are below: from collections import Counter import heapq  class Solution:     def topKFrequent(self, words: List[str], k: int) -> List[str]:                  counts = Counter(words)         print('Word counts:', counts)                  result = []         for word in counts:             print('Word being added:', word)             if len(result) < k:                 heapq.heappush(result, (-counts[word], word))                 print(result)             else:                 heapq.heappushpop(result, (-counts[word], word))         result = [r[1] for r in result]                  return result  ----------- Console output -----------  Word counts: Counter({'the': 3, 'is': 3, 'sunny': 2, 'day': 1}) Word being added: the [(-3, 'the')] Word being added: day [(-3, 'the'), (-1, 'day')] Word being added: is [(-3, 'is'), (-1, 'day'), (-3, 'the')] Word being added: sunny [(-3, 'is'), (-2, 'sunny'), (-3, 'the'), (-1, 'day')]  When I run the test case ["the", "day", "is", "sunny", "the", "the", "sunny", "is", "is"] with K = 4, I find that the word the gets shifted to the end of the list (after day) once is is added even though they both have a count of 3. This makes sense since the parent need only be <= the children and the children are not ordered in any way. Since (-2, 'sunny') and (-3, 'the') are both > (-3, 'is'), the heap invariant is, in fact, maintained even though (-3, 'the') < (-2, 'sunny') and is the right child of (-3, 'is'). The expected result is ["is","the","sunny","day"] while the output of my code is ["is","sunny","the","day"]. Should I be using heaps to solve this problem in O(N log K) time, and if so, how can I modify my code to achieve the desired result?


How has Stack Overflow implemented related tags functionality (Data Structure + Method)?

I want to know how to implement related tags functionality on a site like Stack Overflow.  I have questions coming with a set of tags (maximum of 5) as input for training the system. I then have to find out related tags given a single/double/triple tag as input.   Example -    A user lands on page . Observation: User can see list of related tags along with the counts for the tag 1 - solr (in this case)  The user clicks on one of the related tags, . Observation: The user now sees questions related to both the tags and related tags to both two tags selected together as an entity.   I just need to know an efficient data structure and method to implement the same and am not looking for complete code here. I want to know the implementation part and not the way related tags are defined.  The duplicate suggested question discuss about how those related tags are calculated, not how they are implemented. When we talk about implementation, it means taking about data structures and methods. I know already that it's based on occurrence. Please note that difference.  Let me know if I am unclear in asking my question.


I'm trying to achieve real time reflections in the game engine, possibly using the render to texture module if needed, but am not sure exactly how to go about it. Faking reflections using cube maps, etc, are simple enough, but that doesn't achieve a true reflection. I want to be able to see a true reflection of my character if he/she moves in front of the mirror.  If you're still confused, take a look at a real mirror. That is what I want to simulate. Any tips are appreciated.


I would like to write page numbers like this '7/9' in all minted environments of my document. The first number ('7') is the current page and the second number ('9') is the maximum number of page breaks the source file has been split into.  I was planning to use the package totcount but I realized that it was only considering the last value of the counter at the end of the document and it couldn't manage counters locally to an environment.  Here is a totally stupid example, but it illustrate the problem:  \documentclass{report}  \usepackage{totcount} \newtotcounter{sectnum}  \let\oldsection\section \renewcommand{\section}{%   \setcounter{sectnum}{0}%   \regtotcounter{sectnum}%   \oldsection% }  \let\oldsubsection\subsection \renewcommand{\subsection}{%   \stepcounter{sectnum}%   \oldsubsection% }  \begin{document}  \section*{One}  \subsection*{SectionOne} \thesectnum / \total{sectnum}  \subsection*{SectionTwo} \thesectnum / \total{sectnum}  \subsection*{SectionThree} \thesectnum / \total{sectnum}  \subsection*{SectionFour} \thesectnum / \total{sectnum}   \section*{Two}  \subsection*{SectionOne} \thesectnum / \total{sectnum}  \subsection*{SectionTwo} \thesectnum / \total{sectnum}  \end{document}   Gives:    Where we would have liked to have: '1/4', '2/4', '3/4', '4/4' and '1/2', '2/2'.  So, is there a way to get this kind of feature ?


I've got a complex equation with 4 roots that I am solving. In my calculations it seems like I am going through hell and back to find these roots (and I'm not even sure I am doing it right) but if I let a computer calculate it, it just seems like it finds the form and then multiplies by $i$ and negative $i$. Have a look:   Here's me going bald:


How to create a hole in a polygon in QGIS?

I'm trying to use the tool "delete ring" in order to create a hole in a polygon. The geometry of the hole is another feature of the same shapefile   I cannot manage to delete the part of the polygone. Does someone have a tutorial or some explanation?


I'm running an embedded poky linux (linux-yocto v3.13) on a beagleboard. However, I'm having trouble when logging in over a serial using PuTTY: the terminal does not resize at all. Usually, the terminal resizes automatically when the PuTTY windows is resized. Not so in my case. The terminal stays at 80x24.  dmesg says  [    0.000000] Console: colour dummy device 80x30   at the beginning. However, when I start e.g. nano right after boot, it's actually 80x24.  When I do  stty columns 200 stty rows 50 reset   manually, the terminal still stays at 80x24. However, the stty changes do carry over when using a program, e.g. nano. So nano will be the correct size (200x50), but the actual terminal will stay small.  SET yields (even after the stty commands above!)  COLUMNS=80 LINES=24 PS1='\u@\h:\w\$ '   Now, I wouldn't have a problem with 80 columns per sé. However, long commands don't wrap to the next line, they just overwrite the beginning of the current line for some reason.  opqrstuvwxyzabcdefghijkl^Cmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmn   I googled far and wide and the only "answers" that came up had to do with PS1 containing stray color codes that throw off the width calculation. However, that's not the case here.  I'd much appreciate some help in this matter, as I'm losing my sanity over this...


Is there a reason why ls does not have a --zero or -0 option

This question was prompted by questions about ls' -1 option and the recurring tendency of people to ask question and answers that includes processing the output of ls.   This reuse of the output ls seems understandable, e.g.: if you know how to sort a list of files with ls you might want to use the output in that way as input for something else.  If those Q&A don't include a reference to the file name list produced consisting of nicely behaving file names (no special characters like spaces and newlines), they are often commented upon by someone pointing out the danger of the command sequence not working when there are files with newlines, spaces etc.  find, sort and other utilities solve the problem of communicating "difficult" file names to e.g. xargs by using an option to separate the file names with the NUL character/byte which is not a valid character in file name (the only one in addition to /?) on Unix/Linux filesystems.  I looked to the man page for ls and the output for ls --help (which has more options listed) and could not find that ls (from coreutils) has an option to specify NUL separated output. It does have a -1 option which can be interpreted as "output file names separated by newline")  Q: Is there are technical or philosophical reason why ls does not have a --zero or -0 option that would "output file names separated by NUL"?  If you do something that only outputs the file names (and not use e.g. -l) that could make sense:  ls -rt -0 | xargs -r0 …   I could be missing something why this would not work, or is there an alternative for this example that I overlooked and that is not much more complicated and/or obscure.    Addendum:  Doing ls -lrt -0 probably does not make much sense, but in the same way that find . -ls -print0 does not, so that is not a reason to not provide a -0/-z/--zero option.


Compare integer in bash, unary operator expected

The following code gives      [: -ge: unary operator expected   when   i=0  if [ $i -ge 2 ] then     #some code fi   why?


Detect 415 HTTP code while loading an iframe

The issue is quite simple, I've got a form which targets an iframe. When the form is submitted the load event fires off, so I can use it as a ajax fallback for upload picture functionality for IE8/IE9.  $('#iframe').load(function () {     // do something });   This works ok, however the load event fires off even if I get 415 http code back and no response.  How can I retrieve the HTTP status code from the loaded iframe? A solution that doesn't need any server-side adjustments would be really helpful.


Why the soliders in Aquaman can't live without water but others can?

In the movie Aquaman, we saw that all those soldiers who came to attack both Aquaman and Mera, have water filled up in there suits. In one scene, when Mera broke one of the helmet of a soldier, he immediately went for the "toilet water", apparently can't breath air. But others, like Aquaman, Mera, Vulko, Orm etc can breath underwater as well as on ground.   Why is it so? As it was explained in the movie that when Atlantis went down, everyone got the ability to breath underwater. So everyone should also be able to breath above water as well, they were all "grounders" before Atlantis drowned?


Removing lines from text file that contain string at beginning and string at end - and keep one

It took me a while to word this best.  Problem 1:  Is there a way to find lines in a text file that have the same string at the beginning and the same strings at the end?   Beginning and end strings not necessarily equal to each other.  Text between the two strings is not consistant in number of characters or number of hyphens.  A hyphen is in between notable strings (which I added to my large text file).  For example:  File:    AAAAA-tjhut-ghyut-FILE1.txt   BBB-fhuj-dnbhg-frt76-FILE2.txt   AAAAA-ghtujukr-hgute7gr-xhyutt-FILE1.txt   AAAAA-VGYT-4d7tt-xhyutt-FILE1.txt   CCCC-fjuk-dryy-fhuj-FILE3.txt   Lines to detect:    AAAAA-tjhut-ghyut-FILE1.txt   AAAAA-ghtujukr-hgute7gr-xhyutt-FILE1.txt   AAAAA-VGYT-4d7tt-xhyutt-FILE1.txt   Problem 2:  Is there a way to remove all but one of the lines containing the duplicate strings at the beginning and end from above?  Before:    AAAAA-tjhut-ghyut-FILE1.txt   AAAAA-ghtujukr-hgute7gr-xhyutt-FILE1.txt   AAAAA-VGYT-4d7tt-xhyutt-FILE1.txt   After:    AAAAA-tjhut-ghyut-FILE1.txt   Big thanks for any advice.  Note: I think using the occurances of the first hyphen and last hyphen can be used to locate the duplicate strings.


When editing an answer, the "new revision" message is shown for a short moment. This makes no sense because the revision you just created is automatically displayed anyway.


Crossing US border from Canada and back with rental car

We are Germans traveling to Toronto but want to visit friends in the US as well. We plan to pick up a rental car at Toronto airport (and return it there). I don't find any car rental service that explicitly "allows" crossing borders but some say it is not allowed and some may hide it deeper in their terms and conditions.  Does anybody know...   rental agencies that explicitly allow this? what happens if I cross the border violating their terms? why they might have problems allowing this? I mean we're not going to Mexico ;)


Prove that $f'(a)=\lim_{n\to\infty}\frac{f(b_n)-f(a_n)}{b_n-a_n}$ under some conditions

Prove that $f'(a)=\lim_{n\to\infty}\frac{f(b_n)-f(a_n)}{b_n-a_n}$, with $f: (k_1,k_2)\to\Bbb R$ differentiable at $a\in (k_1,k_2)$, $\lim b_n=\lim a_n=a$, and $a_n<a<b_n$.   My attempt: Im trying to write the above equality as a particular case of this other equality that hold by any interior point $a$  $$f'(a)=\lim_{h\to 0}\frac{f(a+h)-f(a-h)}{2h}$$  Because $a_n<a<b_n$ then I can write  $$f'(a)=\lim_{n\to\infty}\frac{f(b_n)-f(a_n)}{b_n-a_n}=\lim_{n\to\infty}\frac{f(h_n+a)-f(a-j_n)}{h_n+j_n}$$  Where $h_n=b_n-a>0$ and $j_n=a-a_n>0$, where these two new sequences tends monotonically to zero.  Now my problem: my thought is that $h_n$ and $j_n$ are particular sequences then I can build a sequence $k_n$ such that $j_n$ and $h_n$ are subsequences so I can write:  $$\{h_n:n\in\Bbb N\}\subset\{k_n:n\in\Bbb N\}\text{ and }\{j_n:n\in\Bbb N\}\subset\{k_n:n\in\Bbb N\}$$  (I can build this $k_n$ by example doing $k_{2n}=h_n$ and $k_{2n-1}=j_n$) and then I have the desired expression  $$f'(a)=\lim_{n\to\infty}\frac{f(b_n)-f(a_n)}{b_n-a_n}=\lim_{n\to\infty}\frac{f(k_n+a)-f(a-k_n)}{2k_n}$$  My question:   Is this proof right? In particular Im unsure of the implicit statement "if the limit exist for $k_n$ then it must exist too for the particular case with $h_n$ and $j_n$". The use of two sequences, $h_n$ and $j_n$ in the limit make me unsure about the validity of this manipulation and assumption. There is a simpler/different way to prove the same?   Thank you in advance.


Prove that every bilinear form $f:\mathbb R^n \times \mathbb R^n\rightarrow \mathbb R$ has a basis $\{v_1,\ldots,v_n\} \subset \mathbb R^n$ such that $f(v_i,v_j)=-f(v_j,v_i)$ for every $i\neq j$.  I have no idea how to start thinking about this one. Should I actually "build" the required basis or what? Any ideas ?  thanks


Hi my EOS 6d mark ii camera will not focus when I am trying to get a close up photo but will focus on a far away object. Please help.


Center of Heisenberg group- Dummit and Foote, pg 54, 2.2

Let $H(F)$ be the Heisenberg group over the field $F$ introduced in Exercise 11 of Section 1.4. Determine which matrices lie in the center of $H(F)$ and prove that $Z(H(F))$ is isomorphic to the additive group $F$.   Section 1.4 defines the Heisenberg group $H(F)$ over the field $F$ to be the group of all upper-unitriangular $3\times 3$-matrices $\begin{pmatrix} 1 & a & b \\ 0 & 1 & c \\ 0 & 0 & 1 \end{pmatrix}$ with entries in $F$.  When I worked out the elements in the center, I got its elements such that the diagonal was multiplied by a scalar and the element in the first row,third column possibly non-zero. So, you see that my problem was compounded as I just did not see how the center was isomorphic to only F.  Thanks for any help that I might receive.


getActivity return null when using googleMaps

I've bought an app, everything works ok, but location is not working, when user is tapping on Location, then popup with googlemaps is displayed and closes with app crash.  I was able to connect device + app to AndroidStudio and found following problem  to activity {com.test.app/com.test.app.ui.activity.BaseActivity}: java.lang.NullPointerException: intent must not be null   And problem here:  if (requestCode == 101) {             if (resultCode == RESULT_OK) {                 place = PlaceAutocomplete.getPlace(getActivity(), data);                 getAddress(place.getLatLng().latitude, place.getLatLng().longitude);              } else if (resultCode == PlaceAutocomplete.RESULT_ERROR) {               HERE IS A PROBLEM ->>>  Status status = PlaceAutocomplete.getStatus(getActivity(), data);                 // TODO: Handle the error.                 Log.e("Tag", status.getStatusMessage());             } //            } else if (resultCode == RESULT_CANCELED) { //                // The user canceled the operation. //            }         }     }   And also saying something went wrong in BaseActivity   @Override     protected void onActivityResult(int requestCode, int resultCode, Intent data) {         super.onActivityResult(requestCode, resultCode, data);         switch (requestCode) {             case REQUEST_CHECK_SETTINGS_GPS:                 switch (resultCode) {                     case Activity.RESULT_OK:                         getMyLocation();                         break;                     case Activity.RESULT_CANCELED:                         break;                 }                 break;         }     }   Does anyone can help fix this issue?   Thanks!


Is residue class of $x$ irreducible in $\mathbb{R}[x,y]/(x^2+y^2-1)$?

I have been trying to prove that the residue class of $x$ is irreducible in $\mathbb{R}[x,y]/(x^2+y^2-1)$. I have tried by assuming say $X=\bar{x}$ is reducible. So $X=p(X,Y)q(X,Y)$ where $Y= y +(x^2+y^2-1)$. But calculations are getting very difficult. How do I prove this ? Is there any other way to do this than to assume $X=p(X,Y)q(X,Y)$ and proceed ? Please help. Thanks in advance.


Clocks for multiple timezones in GNOME Shell

I looked everywhere but I couldn't find a way to display multiple clocks in GNOME 3. In classic GNOME and Unity, it is possible. Also, for some strange reason, additional timezones cannot be added to the clock using the time-date applet in classic GNOME. Any solutions?


Is it true every ideal of $\mathbb{Z}[x]$ is finitely generated?

Let $I$ be any ideal of $\mathbb {Z}[x]$, and $I=\left<{f_1,f_2 , ...}\right>$.  Without loss of generality, $f_1$ has minimal (absolute value) coefficient of constant term (if there exist).  Then, let $g$ be any element of $I$ .  We have for some integer $m$ that $g - mf_1$ is element of $I$ (minimal coefficient and division algorithm).  I guess this process terminate finitely, but I don't know how can I do next step.  ( ex. $g-mf_1, g-mf_1-nf_2, ...$)  Please help me and thanks for in advance.


Calculation of determinant using its properties

The task is to calculate the following determinant by using the properties of a determinant: $$\begin{vmatrix}         n^2 & (n+1)^2 & (n+2)^2 \\         (n+1)^2 & (n+2)^2 & (n+3)^2 \\         (n+2)^2 & (n+3)^2 & (n+4)^2 \\         \end{vmatrix}$$ Hint: The result is $-8$.


Display the original question beneath the answer edit form

Often when I edit one of my answers, it's because I want to better address the original question. The only problem is that I can't see the original question while I'm editing my answer!  I'd love to see the original question text beneath the "answer edit" form. This way I could scroll down slightly to read it if I wanted to, or just ignore it if not.  Current workaround is to click the 'return to answer' link and hope that you remember to launch it in a new tab/window, then tab back and forth.    Imported from this uservoice item:


i'm using Textmate and MacTeX (texLive 1.12). There is the option in MiKTeX (Windows) to use the command -aux-directory=DIR and -output-directory=DIR. The output part works in TeXLive, but the PDF does not auto open, and there are still an aux-file in the main folder, and also a .fdb_latexmk file.   Does anybody know if there is an -aux-directory=DIR command for TeXLive?


Syntactic tree with tikz-qtree and annotations and labels over multiple lines

I am going mad trying to draw syntactic trees using the tikz-qtree package. Here is what I have come up with:  \begin{figure} \centering \begin{tikzpicture}[every node/.style={align=center},level distance=1.5cm] \Tree [.S            [.{NP\\($\uparrow$~{\sc subj})~=~$\downarrow$}               [.{N\\$\uparrow$~=~$\downarrow$}                   [. John                    ]                ]           ]           [.{VP\\$\uparrow$~=~$\downarrow$}               [.V                   [.{saw\\$\uparrow$~=~$\downarrow$}]                   ]               [.{NP\\($\uparrow$~{\sc obj})~=~$\downarrow$}                   [.{DET\\($\uparrow$~{\sc def})~=~+}                   ]                   [.{N\\$\uparrow$~=~$\downarrow$}                       [. boy                        ]                   ]               ]           ]       ] \end{tikzpicture} \caption{test} \end{figure}   However, tex keeps complaining about a runaway argument, and I can't seem to be able to spot what I'm doing wrong. It seems to me that I need to use curly braces because the labels on the tree span multiple lines. Any ideas?


This question comes off the back of an answer to  where there was reference to a retraction of an article in The Lancet based on inaccuracies and fraudulent data. As a lot of research (if not all) are funded by interested parties such as pharmaceutical companies, the legal profession, etc. I was wondering if there are any articles released which has results in opposite to the best interest of the funding organisation(s)?  involves using Vagus Nerve Stimulation (VNS) to treat difficult-to-treat depression (DTD).  Due to the amount of research with conflicts of interest concerning manufacturer(s) of VNS equipment, it is hard if not impossible to find any research completely free of the possible influence the manufacturer(s) have had so far. Here I am looking for any examples which will show that there is medical research which is completely impartial and not necessarily just the example here.


I'm having trouble completing a proof that for positive integers a and b, that the least common multiple of a and b is ab/gcd(a,b).This is how I've approached it so far:  For  s = lcm(a,b) we have the following definition: i) a|s and b|s ii) for any integer k where a|k and b|k, s|k  Thus the proof comes down to proving that s satisfies these two properties. For i) let gcd(a,b) = d. Thus s = ab/d. Since gcd(a,b) = d, it follows that b/d is an integer so a|ab/d since ab/d = ta for t = b/d. The same conclusion can be made for b so i) is satisfied. Now comes the confusion. I'm not not sure how to prove that if a|k and b|k then ab/d|k. I tried using am = k and bn = k for integers m and n but it lead to no avail. Should I approach the problem som other way?


Correct verb patterns for the verb 'recommend'?

Which of the last three verb patterns apply to the verb 'recommend'?      I recommend that you wait. (present subjunctive, American usage)     I recommend that you should wait. (substitute for present subjunctive, British usage)     I recommend waiting. (subject of the gerund not mentioned)     I recommend you/your waiting (subject of the gerund mentioned)     I recommend to wait. (subject of the infinitive not mentioned)     I recommend you to wait. (subject of the infinitive mentioned)


I have problems understanding a specific notation of the gradient, more specifically the following question  What is the meaning of the gradient notation grad_x H where H is a function?  My attempt at answering this question is:   Assume that H = H(x,y) then we know that grad_x ( H(x,y) ) = d/dx ( H(x,y) )  Is this correct?


Status Bar updates - Sent by server or periodically checked by client?

I want to know whether the Status Bar of any StackExchange site (the topmost bar with the search window, chat, main, about, etc links) updates periodically by the requests/checks by the client i.e. users or does the StackExchange Server send these updates to online clients? Just curious about the implementation.  If the client checks for the updates periodically, then the server risks getting abused by constant requests.  While, if the server sends the updates it would be efficient but one would have to write quite some code for the server side.  EDIT -


$\sup_{x \in \mathbb{R}, x \neq 0} \frac{\|Ax\|}{\|x\|}$ equivalent to $\sup_{\|x\| = 1} \|Ax\|$

I have seen it mentioned in many places that for some matrix $A \in \mathbb{R}^{n \times n}$  $\displaystyle\sup_{x \in \mathbb{R}^n, x \neq 0} \frac{\|Ax\|}{\|x\|}$ is equivalent to $\displaystyle\sup_{x \in \mathbb{R}^n, \|x\| = 1} \|Ax\|$.  I can see why this makes sense intuitively, but it is possible to prove it formally?


How to show lightning toast on top of modal (quick action)?

I have created lightning quick action to add my component for some functionality.   so from my quick action. When I do some validation like       var opp = component.get("v.objOpportunity");     if(!opp.Name.length || !opp.CloseDate.length )     {         var toastEvent = $A.get("e.force:showToast");         toastEvent.setParams({             "message": 'Opportunity name and close date can not be empty.',             "type": "Error"         });         toastEvent.fire();         return;     }   So the toast message display behind the modal. Please check below screenshot.   Any solution for this issue? I don't want to write custom error message functionality to display to user.


I have Ubuntu 20.04 installed on my laptop. I want to go back to Windows 8.1, but it doesn't work. When I put in my install USB it doesn't work. It says "Insert proper boot device". I checked the Windows installation USB on an another PC and it worked there.


Optical illusion of car wheels, speeding up

Perhaps it is some free moving spinner attached to the wheel, but as opposed to this question:  I have seen car wheels that appear to spin backward both while speeding up, and moving at a constant rate.  Am I just confused, or is there a reason for this?


How do I improve my Test Idea generation ability?

I have always tried to improve my test coverage as a black-box tester. Still, I believe that I need to improve my ability to generate practical and highly-usable ideas to test better so that I find serious bugs easily.  What are some models, theories, heuristics that have really helped you to find any kind of bug in any web-application. Kindly share some black-box testing heuristics for an enterprise web application.


How to host multiple countries website on single domain?

I would like to use single domain for multiple countries web site. So, instead of using second level domain for each country like:  us.mysite.com  uk.mysite.com  fr.mysite.com  de.mysite.com   I would like to use same top level domain mysite.com but for each IP connected from US it will return US content, for IP connected from GB - GB content and so forth. Same for scan robots, google, bing etc.  What are advantages and disadvantages of using that way, especially for SEO?  Appreciate any response! Thank you!


Sometimes, during a League of Legends match, it happens to see on screen and heard a message that says a particular champion did an ace. But what does it mean?


Are gods treated as creatures before they enter the battlefield?

Gods, such as  or , are not creatures if your devotion is not high enough.  Does this count when casting them? If, for example, an opponent tries to counter with  when the player casting a god doesn't have the required devotion, is the god a valid target?  Or, if Purphoros is on the battlefield and the controller tries to cast another god, for which they don't have the required devotion, do opponents suffer the 2 damage?


Is MacBook Pro warming during gaming normal?

I have a 2010 MacBook Pro MC371 (Core i5, GeForce 320M, 4Gb RAM).   When I launch a game either new one (i.e. Starcraft 2) or rather old (Unreal Tournament 2004, bootcamped) my MacBook gets rather warm, even hot in the top left corner, around the place where magsafe charger is plugged in. The temperature is more than 40C. The fact that confuses me is that this warming occures even when I play old games.  Is that OK?


Naive question - Is Magnetic generator (like this) not a 'perpetual motion machine'?

Perhaps a question that is too naive to be on Physics.SE but I let the experts here decide (and downvote at will), but there seem to a certain company that claims to have created what it calls a "magnetic generator" where, if the machine is powered externally long enough (which is in seconds or minutes) allowing an electro-magnetic contraption to reach a certain RPM, it can start producing enough electricity to keep turning the contraption, without the aid of the external power while generating surplus electricity. This sounds like perpetual motion machine, yet a bit "snake oilish". The website of this company is done very professionally, they have some slick youtube vidoes -- but scamsters can and do pull impressive illusions off. Is there plausible physics behind this setup ?  Please note that I have no interest in the company or the product, but quite interested to know if there is some real physics behind it.  Here's a  that describes the product.


suppose $n$ people are in a party and every two of them have exactly one common friends,prove that there is one who is friend to all.  I suppose there is no one who is friend to all,I want to show that the graph with this assumption is strongly regular graph and then show that two parameters $f,g=\frac{1}{2}(n-1 \pm \frac{(n-1)(\lambda - \mu)+2k}{\sqrt{(\lambda-\mu)^{2}+4(k-\mu)}})$ are not non negetive integers,my problem is when I suppose there is no one who is friend to all,I can't see that it is strongly regular graph.  of course this Idea was an help that was said in class,any other ideas will be great!  thanks.  something I must add is in this case every two adjacent or non-adjacent vertex has a common friends so $\lambda =\mu =1$ (if I am not wrong )now question is what is $k$? but it seems no matter what is $k$ ,because if $\lambda =\mu =1$ then $f=\frac{1}{2}n-\frac{1}{2}$ and it is not integer,I don't know what I am saying is right or wrong,please help me about this.


show that closure of $c_{00}$ is $c_{0}$ in $\ell$-infinity

Let $x=(x(1),x(2),…,x(n),…) \in c_0$.  So for any $\varepsilon>0$ there exists a $n_0 \in \mathbb{N}$ such that $|x(n)| \to 0$ as $n \to \infty$ for all $n \geq n_0$.  Now for all $n \geq n_0$ , $||x_n − x||_\infty = \sup \{|x(m)|: m \geq n_0 \} \to 0$ as $m \to \infty$.  I have a doubt that regarding the last line.    That is, how can we say that                                                                          $$\sup \{ |x(n+1)|, |x(n+2)|, ......... \} = \sup \{ |x(m)|:m > n \} \to 0$$ as $m \to \infty$ ?                                                                            (because we dont know the supremum of this set (i.e. $\sup \{ |x(m)|:m>n \}$ ), it can                                                                         be infinity also).  So how can we say that $\sup \{ |x(m)|:m>n \} \to 0$ ? What makes it possible?


I wanted to understand dangers of lock(this) with some code example. With the code, if everything works well I expect to see 1000 at the end of program. And that's what I get every time I run it even though I am using lock(this). Why lock(this) works well here?  class Program     {         static void Main(string[] args)         {             Test t = new Test();             for (int x = 0; x < 100; x++)             {                 Thread[] threads = new Thread[10];                 for (int i = 0; i < 10; i++)                 {                     threads[i] = new Thread(t.ProtectedMethod);                     threads[i].Start();                 }                  for (int i = 0; i < 10; i++)                     threads[i].Join();                  Console.WriteLine("Done with {0}", t.i);             }          }     }      class Test     {         public int i = 0;          public void ProtectedMethod()         {             lock (this)             {                 i++;             }         }     }


Prove the roots of $z^7+7z^4+4z+1=0$ lie inside a circle of radius $2$.

Problem: Prove that all the roots of the equation $z^7+7z^4+4z+1=0$ lie inside the circle of radius $2$ centered at the origin. This question came in the roots of unity section of a summer course. My attempts have been to factor and hope something nice pops out, which ended up in the following: $$z(z^3+2)^2+3z^4+1=0$$ $$\frac{z^8-1}{z-1}+3z^4=(z^4+z)(z^2+z-3).$$ They all look horrendous. Other thoughts would be to use some inequality to prove $|z|<2$ (am-gm, cauchy, etc. seem to fail me). Not entirely sure what to do from here.


Bash script read a string with whitespace

I am trying to write a quick bash script to automatically git push to multiple branches at once. My issue is, when I enter my commit message as a read variable, bash and git freak out at the use of whitespace.  Here is my current script:      #!/bin/bash echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" echo "Pushing To all branches" echo "What is your Commit Message?" read message  git add * git commit -m \"$message\" git push origin .... (push to other branches) ...  echo "Done!" echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"   And this works perfectly if my commit message is only one word. However, this is often not the case. For example, if I enter:  Testing test case   as my commit message, I would get the following errors:  error: pathspec 'test"' did not match any file(s) known to git. error: pathspec 'case"' did not match any file(s) known to git.   Does anyone have any ideas on how to fix this so that my bash script can handle whitespace?  Thanks so much!


WHY is eevee not supported ? A few days ago new versions of Blender supported it. But suddenly it disappeared (under eevee or viewport shading)


How is Area 51 initial reputation gained?

I am a new to the Stack Exchange family and I got to see Area 51 - the staging area.  But, for any action I need to do (either ask a question, answering, proposing, etc.) in that except for the editing of tag wikis needs at least 5 reputation. What are options for me to gain that initial reputations in Area  51?   Can it be through some activities in Area 51 itself? Do I need to wait for the association bonus of 100 reputations to be credited once I make a 200+ reputation in any of the Stack Exchange sites? Is some other option existing, like reputation sharing with some other sites in this family?


Run command recursively through subdirectories

I am trying to convert a bunch of images to thumbnails that might be in several subdirectories, and save a copy of the image as a thumbnail inside the subdirectory, but I can't figure out the syntax. Any advice would be welcome.   convert test/*/*.jpg -50x50 test/*/*_thumb.jpg


Prove that $\int_{-\infty}^{\infty} e^{-x^2} H_m(x)H_n(x)dx$

$\int_{-\infty}^{\infty} e^{-x^2} H_m(x)H_n(x)dx=\left\{\begin{matrix} 0, & m \neq n\\   2^n n! \sqrt{\pi},& m = n \end{matrix}\right.$ Thats a Hermite polynomials. I need a hint, i really didn't get that at all.


What is the definition of potential energy?

I have problems with this equation: $$U_G ~=~ G\frac{m_1m_2}{r}.$$  It's for potential energy of say something placed on Earth.  But it intrigues me. $r$ is the distance from the very center of the Earth to its surface. But anything placed on the surface of Earth will never fall any deeper into the earth. So I think there will not be any potential energy for anything placed at the very lowest point possible on Earth. Though it's no where close to the core of the Earth.


I work in this new place that host applications that should serve a specific type of organisation in the country. We usually have downtime. These servers are of heavy capacities. It was discovered last time we had downtime that the server had issues handling about 8000 request per second. The solution to this was to revert to backup server and immediately add more RAM to the server and the server was restarted. Currently we are handling like 15% of the organisations and I believe that in the next 5 - 10 years the organisations being handled will increase to 50 - 80%.   To me, we can't continue adding RAM, restarting server and buying high end server. I wouldn't know the policy guiding the purchase of servers in this organisation because I am new here.  My question is:  1. What need to be done to these servers and their applications in order to avoid such downtimes and also to anticipate for heavier loads in the future? I am not too experienced in server management. 2. Since this is not my call and department, how best should a solution to these issues be passed to the management. I hope I am asking this question at the right stackexchange site.


Rep line graph: Say "only 200+ accounts displayed" at all times

As discovered/discussed , the cross-site reputation graph doesn't show accounts that have less than 200 reputation. The problem is that, unless you have zero accounts over that bar, it doesn't tell you that. I think the "Accounts must have a minimum of 200 reputation to appear in this graph" notice should appear either (A) at all times or (B) if you have any accounts below 200.


Do SQL Server 2016 Web Edition have CAL License?

I am looking for information of SQL Server 2016 Web Edition if it have CAL license but have not found any. Background: I have a web application for 20 concurrent users. We are planning to have SQL Server 2016 Web edition because its cheaper than the other edition. Then my concern is on the CAL user license OF SQL Server 2016 WEB EDITION. Do I need it? I try look around the internet but no info on this. Mostly its on Standard or Enterprise edition. So my question is, do I need CAL user license for SQL Server 2016 WEB EDITION, how many do I need, and how much per CAL? Thank you.


Why do people have darker skin in sunnier climates?

I don't understand why darker skin is advantageous in hotter climates. Wouldn't it absorb more of the heat? I have heard that it reduces the incidence of cancer, but I would think absorbing more radiation would increase the risk?


What does the size of the font translate to exactly?

I have a 40 pixel font that I'm trying to translate into custom images. I'm trying to match the size of the image exactly, but I'm having some problems getting exactly the right size. Basically, what it comes down to is this. When a font says it is X pixels, what does this physically mean?


Sharing labels and have multiple leader lines for like features in ArcMap?

I have many labels in ArcMap and want to use one label with multiple leaders to call out features whose labels would end up being the same. Is this possible?   As it is right now it is not possible for me to fit all labels without being able to do this.  Using arcmap 10.3


Square of a normally distributed variable

Suppose X is normal ($\theta$, 1). What is the distribution of X$^2$?


Unable to understand the issue "call By Reference"

In Java, object reference is used for call by reference and variables are used for call by value.  Here’s an example:  class Foo{     int x;     int y; }     public class CallByRef {     public static void main(String[] args) {                     Foo foo = new Foo();         foo.x=5;         foo.y=10;         System.out.println(foo.x+", "+foo.y);         getFoo(foo);         System.out.println(foo.x+", "+foo.y);     }         static void getFoo(Foo f){         f.x=2;         f=new Foo();         f.x=10;     } }   Output:      5, 10     2, 10   Why this is happend?  x should be 10 as I modified its value with f.x=10  Is it correct that f=new Foo() will create new object in heap and not point to prevoise reference?


Why is this handle flipping back and forth?

This gif of some kind of handle being spun in zero gravity has been doing the rounds:    Why is it flipping back and forth? It seems odd that it flips, then seems to rotate around one axis in a reasonably stable manner before suddenly flipping about entirely.


I tried to follow this link to use Biblatex [ However, when i tried to build it as pdflatex biblatex, pdflatex*2, i didnt get anything with errors shown as Process started  This is BibTeX, Version 0.99d (TeX Live 2015/Debian) The top-level auxiliary file: biblograph.aux I found no \citation commands---while reading file biblograph.aux I found no \bibdata command---while reading file biblograph.aux I found no \bibstyle command---while reading file biblograph.aux (There were 3 error messages)  Process exited with error(s)  After some research online without any success, anyone has any suggestion?


How can I get the latest VLC if its not available from the VLC download page and its PPA

The latest  had just been released - jeej - but, the  doesn't contain packages for 13.04 only 13.10. The  just says to sudo apt-get install vlc.     2.1.0 Highlights      With a new audio core, hardware decoding and encoding, port to mobile   platforms, preparation for Ultra-HD video and a special care to   support more formats, 2.1 is a major upgrade for VLC.      Rincewind has a new rendering pipeline for audio, with better   effiency, volume and device management, to improve VLC audio support.      It supports many new devices inputs, formats, metadata and improves   most of the current ones, preparing for the next-gen codecs.      Rincewind fixes around a thousand bugs, in more than 7000 commits from   140 volunteers.   How can I get the latest vlc, if it's not available from the vlc download page or the PPA?


Boundary of a bounded open set under an entire function

Let $f$ be entire and $B \subset \mathbb C$. Let $Bd( B)$ denote the boundary of $B$. What you can conclude about $f(Bd( B))$ and $Bd(f(B))$, where $B$ is open and bounded. Is there any result available in case of unbounded sets?


Installing and maintaining software on multiple Linux servers

I have somewhat of a general question, and I hope this is the right place to ask.    We currently have 11 (9 Red Hat/2 Centos) servers, which have been purchased at different times over the last 5 years, and although they all have Linux OS, there are hardware differences between them, simply because they were bought at different times.  However, we need a core set of bioinformatics software installed on all of the machines to allow users to have the same environment.  In the past we have used a shared mounted drive, but we have run into problems when software does not work on a given machine because not all necessary libraries were installed, etc.    Long story short, I’m looking for tips and advice as to the best approach to this problem.  Do you think working on a shared drive and troubleshooting issue as they occur is the best path, or is there an improved method I’m not privy to (software/ theoretical).  Ultimately I feel that trying to maintain each machine independently has to be the most painful method.


Why does my program's memory usage rise quickly and then go flat?

Hi everyone I'm making a C# WinForms application that searches for duplicate images in a directory. It starts by calling a constructor with every image in the directory.  There is a lot of files in the directory and memory was quickly rising to 2gb and then the program would throw an out of memory exception.  Now I've added a check in my for loop to check if the memory has exceeded 800 Megabits and I force a garbage collection. But I've noticed after the first forced collection the memory no longer rises. (The forced garbage collection occurs at loop ~180 out of ~800 then it never occurs again)   (It looks a little like a shark fin swimming through the water leaving waves in its wake.)  I'm stumped as to why this is happening and have come here in search of help.  private void GeneratePrints() {     for (int i = 0; i < files.Count; i++)     {         if (imageFileExtensions.Contains(Path.GetExtension(files[i])))             prints.Add(new FilePrint(directory + "/" + files[i]));          //800 Megabits         const long MAX_GARBAGE = 800 * 125000;          if (GC.GetTotalMemory(false) > MAX_GARBAGE)         {             GC.Collect();             GC.WaitForPendingFinalizers();         }     }      Console.WriteLine("File Prints Complete."); }   GeneratePrints() is called 1 time, once a directory is selected.  I will also show you the constructor for the FilePrint class. I'm pretty sure this all has something to do with the MemoryStream object.  public FilePrint(string filename) {     Bitmap img;      using (var fs = new FileStream(filename, FileMode.Open))     {         using (var ms = new MemoryStream())         {             fs.CopyTo(ms);             ms.Position = 0;             img = (Bitmap)Bitmap.FromStream(ms);              ms.Close();         }          fs.Close();     }      this.size = img.Size;     img = ResizeImage(img, 8, 8);     img = MakeGrayscale(img);      //I do some basic for-loop arithmetic here      //calculating the average color of the image, not worth posting.      img.Dispose(); }   So basically I'm wondering how can I make it so that the 'shark-fin-like' memory usage spike at the start never happens so that I do not have to force a garbage collection.  Here is a memory snapshot I have taken when the forced garbage collection occurs (Am I not disposing of the MemoryStreams properly?):    Thank you for your replies, ideas and answers in advance!


I am considering closing a question that was downvoted. Can I suspend it instead of deleting it?

It is really self-explanatory. Just see my last question that was downvoted as a reference  see  question: Can I ask other stack overflow members to consider remving their downvote after a post has been deleted?


Where are the nightly builds of Blender made available?

With the new website, it seems impossible to find the svn builds. Where can they be obtained now?


Estimating the error in the standard deviation

Sorry, my stats is rusty and I'm failing to find a quick answer to what is likely to be a very basic question.  If I take n measurements of a property that has an inherent mean mu and standard deviation s, I would estimate mu from the sample mean, and quantify the uncertainty in this estimate with the standard error. But what about the standard deviation? (I guess this is sort of a population s.d., though of a potentially infinite population) Presumably I'd estimate it from the sample standard deviation, but what is the right way to quantify its uncertainty? Clearly a value based upon 5 values is less reliable than one using 500.


Book about a group of kids abducted from various historical disasters and then live in a time loop of 9/11 have to stop neo-nazis

This was a book where several kids who died in several historical disasters were given a choice by an old man about if they wanted to die in that disaster or come with him and be sort-of "time police", the only catch is that they would be locked into that role. There was a boy who was on the Titanic, a girl who was on one of the 9/11 planes, and I think one or two more. They are taken to this secret hideout which is in New York during a time loop of 9/11. When they are there, every day is the same day, September 11th 2001, and the reason for this is because it keeps them away from prying eyes. The current timeline, not the time loop, is in the future, where time travel technology is invented, and the old man and the kids serve to stop anyone from misusing time travel. In the current time, the future, a group of heavily armed Neo-Nazis raid a museum, maybe the natural history museum?, to abscond with the first time machine, which is on display, so they can go back and have the Nazis win World War 2. The Neo-Nazis succeed in their goal and go to Hitler's bunker in the Winter and show him all of their future technology. This book was part of the series, and the second book concerned dinosaurs.


How to change the "User License" type for customer portal users using a script?

We want to move a large number of customer portal users (users who self-register via a pre-existing Contact record) from one "User License" type to another. But I note that in the User edit page the "User License" field is not editable (whereas it is for other license types) and in any case as thousands of users are involved we would like to automate the process.  Can this be done via an Apex script? Or can this be done via a Salesforce support request?


How can I print out the exact dimensions of my images?

Please note that while there is an existing question titled "How do I get the exact dimension of a picture in LaTeX?", that question is actually asking something different.  I have a document that contains several high-resolution png images, included as usual with commands like  \includegraphics[width=0.85\columnwidth]{landscape2.png}   within figure environments. However, my publisher is asking me for a version where each image is at "no more than 300 dpi, scaled at 100%".  This means, I think, that I have to manually resize all my images. I would like the document to look the same afterwards, so to do that I need to know exactly how much LaTeX is scaling them, or equivalently, the exact dimensions of the image as it appears in my document. That is, I need to know the numerical value of 0.85\columnwidth in inches, and if possible the height of the image in inches as well.  How can I find this out? I tried \showthe\columnwidth, but this gives the following extremely informative error message:  ?   Is it possible to print the exact dimensions of an image, or the scaling ratio used, to the console?


Is it possible to make SharePoint lists accessible cross domain using REST API?

Is it possible to make SharePoint 2013 resources accessible via internet using REST API? Say I want to do CURD with a list from outside of SharePoint. How we can manage credentials for this situation? I've seen some sites (yammer) uses SSO by redirecting users to their company website and get credentials from there. Can we use the same approach with REST API for credentials? If yes, please explain how? (Just the credentials part)


nginx reverse proxy setup to handle graceful deployments of upstream servers

My current setup is nginx as a load balancer, in front of a bunch of upstream servers.  I want to be able to deploy with no change in user experience. This means no 502s and no increase page times.  My understanding is that when nginx -s reload is issued, nginx will gracefully spawn new threads to handle new connections for the new configuration, but will still finish handling requests that were in-flight at the time of reload. Moreover, I have read somewhere that marking an upstream as down in the upstream block, and reloading, will take that upstream from the rotation, but will still finish any in-flight connections to it.  Is any/all of this correct?  The current plan is to have a small process in the nginx host, that will basically mutate nginx configuration and issue these graceful reloads when asked to do so through an internal REST API.  My deployment tool will then connect that process and add/remove my upstreams from nginx config in sequence, after graceful shutdown and boot up/warm-up for each upstream is complete.  Does this make sense? How are other people doing this? Are there any already available tools for this?  I haven't had a lot of luck searching for info on this...


I'm a software engineer, have a passion for philosophy. But I have no background in human science, but I guess I'm good at logic. Can you provide a profound study path to philosophy? What are the best authentic, accurate and comprehensive resources?  I need resources that are written in a not convoluted but interesting style to keep me moving.


Am I too old to reach to the point of a ground-breaking research and achieve it?

I am sorry if I am posting this question here; I thought that since I am looking for historical evidences of successful people in mathematics, so may not this question be an opinion-based one. And also not duplicate as it is not about getting PhD at later age or the like.    I am 30 years old; I have studied physics to masters degree, even though I liked physics but I left it mostly because I didn't find any strong talent to do a great thing in physics and I thought that I can achieve it in mathematics. It's been a few months that I have started mathematics from scratch and I am spending average 14 hours a day learning maths. Though I have found mathematics more fascinating than any other things but my strong stimulus to go ahead especially as a self-learner is hope to do a ground-breaking research and be successful in that.   My questions are:  1- Will my mind be biologically too old to do comparable to what Fields medalists or other brilliant people have done or maybe more (like Perelman's work)?   2- Would you let me know even one person in history who started or turned to maths at their 30s or late 20s, but did famous works?  Some notes:    My question is not about getting a PhD in late ages or be successful in finding an academic position (including research), although soon or late I have to get a PhD in math as well, especially because of being in math community and other advantages. BTW, works that are not considered breakthrough or even writing books in math for students are as invaluable as e.g. Perelman's work, I believe. Please consider that my questions are not about comparisons.      There were some people in history who got their academic degrees at old ages but they were 'in' mathematics from theirs youth or even childhood; so examples of these people aren't relevant since by starting math now I mean that I am 30, and I am just starting undergraduate books in maths.  Physics is not math or even close! For example, I learnt differential forms in general relativity texts but it was just about 10 pages in 430-page physics text. And now I see that almost everything in a simple topology text is new for me.    Thanks to everyone for reading and taking the time for the great responses. Really appreciate it!


Why does rotated (R) shapes, that I copy and duplicate (Cmd+D) around a circle, get disordered?

Hey, guys, i got this problem and it's really bothering me, when I make a shape, like a single rectangle and i want to rotate/duplicate it all 360º around a circle shape, the ones that are at the central parts (0º, 90º, 180º and 270º) always move a bit.  But it isn't all, when I MOVE (or expand something, for example) my groups ALL together, no exclusions, sometimes (almost every time) those same shapes move different than the other objects :/  WHY!? (Although it isn't such a big deal at simple sight, but it is when you try other stuff) Please help me if you know any tip or at least answer: why does this happen? :/ I would like to thank you in advance.  So, this are my "View" settings.  Then, i'll show you how i duplicate this shapes:  I draw my circle and put a pair of guides to intersect at center. (And just look! I don't know why I can't align precisely sometimes, it makes me go mad.)   Then i make my shape guiding from the center of the circle, like this. (And it won't go aligned from the center of the shape to the center of the circle).   Next step, I press (R) to bring out Rotate tool, then press alt/option key and click in the center of my circle to pop up this window, I edit the options for example as this, check preview option and hit Copy instead of OK.   This is what I have. Then...   ...I just press Cmd+D and duplicate al the shapes till i get the complete circle. From here you already are able to see my problem, first and last shapes are not aligned.     This is how they look selected and I made a group of this.   For example, I make that group a 'compound path', then copy/move (alt>click+move) it to the right and it makes more evident the issue if you look well.   Another example is that this last object moved to the right, I color it gray for you to distinguish the "original" from these other copies scaled from center (alt key)... AND THIS IS WHAT I GOT JUST FOR SCALING IT!! ARGH! Look at this, the bigger one has those shapes I mentioned before Thin, the original has them out of alignment and finally the smaller has those same shapes thicker.   WTH!?


Inexplicable NullPointer error in my android app

I just want to have a simple clickable button but I'm getting a NullPointer and I dont know why. Maybe does it matter if this button is placed in a table layout? My Code: package com.christoph.memo; import android.os.Bundle; import android.view.View; import android.widget.Button; import com.google.android.material.bottomnavigation.BottomNavigationView; import androidx.appcompat.app.AppCompatActivity; import androidx.navigation.NavController; import androidx.navigation.Navigation; import androidx.navigation.ui.AppBarConfiguration; import androidx.navigation.ui.NavigationUI;  public class MainActivity extends AppCompatActivity {      Button buttonChangeFontColor;      @Override     protected void onCreate(Bundle savedInstanceState) {         super.onCreate(savedInstanceState);         setContentView(R.layout.activity_main);         BottomNavigationView navView = findViewById(R.id.nav_view);         AppBarConfiguration appBarConfiguration = new AppBarConfiguration.Builder(R.id.navigation_memo, R.id.navigation_options).build();         NavController navController = Navigation.findNavController(this, R.id.nav_host_fragment);         NavigationUI.setupActionBarWithNavController(this, navController, appBarConfiguration);         NavigationUI.setupWithNavController(navView, navController);          //Here is the error         buttonChangeFontColor = findViewById(R.id.button);          buttonChangeFontColor.setOnClickListener(new View.OnClickListener() {             @Override             public void onClick(View v) {                 //...             }         });     } }  My Error: E/AndroidRuntime: FATAL EXCEPTION: main     Process: com.christoph.memo, PID: 3672     java.lang.RuntimeException: Unable to start activity ComponentInfo{com.christoph.memo/com.christoph.memo.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.Button.setOnClickListener(android.view.View$OnClickListener)' on a null object reference         at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3270)         at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3409)         at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:83)         at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)


"error: invalid use of void expression" when using a function as parameter of another

I get this error when trying to compile: `error: invalid use of void expression  I get this error at the penultimate line: queueDump(f, q, printToken(f, e)); and I don't understand why. I'm trying to code the function printToken that prints the token pointed by e  void queueDump(FILE *f, Queue *q, void(*dumpfunction)(FILE *f, void *e)) {     fprintf(f, "(%d) --  ", q->size);     for (InternalQueue *c=q->head; c != NULL; c = c->next)         dumpfunction(f, c->value); }  void printToken(FILE *f, void *e) {     Queue *q;     if (!f) {         printf("Erreur d'ouverture du fichier\n");         exit(1);     }     fprintf(f, "Infix : ");     queueDump(f, q, printToken(f, e));     fclose(f); }


Where do I place the comma in this sentence?     I am in the process of renewing my insurance policy however I don't know the correct amount.


What is sum of $\sum_{x=1}^n x \log (x)$

What would be the closed form of $$\sum_{x=1}^n x \log (x)$$?  I know the summation of $\sum \log x$, but how do I use this series to the $$\sum_{x=1}^n x \log (x)$$?$


How do i fix a non static method being called in Main?

I want to call a non static method in Main, but thats against coding rules, so now i cant do the things i want. How can i fix this?  public static void main(String[] args)     {         Scanner input = new Scanner(System.in);         System.out.print("Enter infix expression: ");         String userInput = input.next();         System.out.println("Summary");         System.out.println("-------");         System.out.println("Infix: " + userInput);         System.out.println("Postfix: " + infixToPostfix(userInput));         System.out.println("Result: " + evalPostfix(infixToPostfix(userInput)));     }   I'm getting the error:  non static method infixToPostfix(java.lang.string) cannot be refranced from a static context   and   non static method evalPostfix(java.lang.string) cannot be refranced from a static context   I need to use them here to get the correct answers printed.


Can employees please provide some indication that a lower-priority request is being looked into or has been internally reported?

This is not a duplicate of . That specifically refers to high-profile requests that receive a lot of votes, and the answer there addresses that specifically. This, on the other hand, is for more minor things that don't receive lots of votes and views, that the SE team deems of low priority. Additionally, the "response" there refers to a decision and a status tag; this, on the other hand, refers to something to the effect of "we're looking into/discussing this and will make a decision regarding status".  Sometimes, when people post a bug report or feature request here on meta, the SE team decides it's of lower priority, and decides not to respond to it for the time being. More than likely, they place it onto their internal issue tracker and possibly give it a "low" priority.  But from the outset, it appears that such requests are being completely ignored. I'm willing to make the good-faith assumption that each of these requests is in fact being looked at by an employee, who decided not to take action at that time.  Ideally, it would be great if SE opened up their internal issue tracker to the public, to see what priorities the team has assigned to every request, but I can see some issues with that (e.g. "why is my important issue low priority?").  I think it would be great for SE's relations with the community if they at least, for example, commented on each request that gets logged in their internal issue tracker with a comment to the effect of "we're aware of this issue and are looking into it". This way, it's clear to everyone that SE is listening to people on meta. This was an important point in , which said that despite all the internal chat that surrounds an event, it makes it seem like no action is being taken:     I know through internal channels that you’re thinking about how to respond more to all this. But internal channels do nothing for the public record.   Yes, I'm aware that sometimes employees are busy handling things, but a simple comment to this effect takes very little time.


Why does python allow escaping quotes in rawdata string?

I'm trying to understand why python has this unheard of behavior.  If I'm writing rawdata string, it is much more likely that I won't want escaping quotes.  This behavior forces us to write this weird code:  s = r'something' + '\\' instead of just 's = r'something\'  any ideas why python developers found this more sensible?  EDIT:  I'm not asking why it is so. I'm asking what makes this design decision, or if anyone finds any thing good in it.


In java method why we need to initialize a variable if we want to return it

I have the following code what I am not getting here is why I need to initialize deleteStatus to false. I know default value if false.  Below is the method definition. I am trying to return a boolean here. But I am unable to understand why we need to initialize it?   public boolean delete(xyzObject selObject) {         ResultSet rs = null;         PreparedStatement stmt = null;         Connection conn = null;         boolean deleteStatus ;         try{            logger.debug(" : Deleting data from the database.");             conn = db.getConnection();            stmt = conn.prepareStatement(QUERY_DELETE_XYZ);            stmt.setString(1, selObject.getxyz());            stmt.setString(1, selObject.getabc());            int update = stmt.executeUpdate();            if(update > 0 ){                logger.debug(" : Deleted xyz:" +selObject.getxyz() + " and xyz:" + selObject.getxyz());                deleteStatus = true;            }else {                logger.debug(" : Failed to delete xyz:" +selObject.getxyz() + " and xyz:" + selObject.getxyz());            }          }catch (Exception ex) {             logger.error(ex.getMessage(), ex);         } finally {             if (rs != null) {                 try {                     rs.close();                 } catch (Exception e) {                     logger.error(e.getMessage(), e);                 }                 rs = null;             }             if (stmt != null) {                 try {                     stmt.close();                 } catch (Exception e) {                     logger.error(e.getMessage(), e);                 }                 stmt = null;             }              if (conn != null) {                 try {                     conn.close();                 } catch (Exception e) {                     logger.error(e.getMessage(), e);                 }                 conn = null;             }         }         return deleteStatus;     }


I was trying something and I ran into this problem:  <?php     echo 100 - 99.9; // gives: 0.099999999999994   can anyone tell me why this happened and how can I fix this?


Greatest and Least Resistance and Current Characteristics of Parallel vs Series circuits

Which type of circuit would have the greater resistance?  Which type would have the greater current? and Why?  My book says that parallel has the greater resistance than current as parallel wiring if thought as water pump tubes has greater resistance during water flow.  Contrary to my book, if I make up numbers to solve for which has the greater resistance, i find that  series has greater resistance.  Equivalent resistance of 2 Ohm resistor in series is greater than that of 2 resistors with 2 ohms in parallel. I


I have a JSON Object   {scope:{results:{...}}}   And I have a String named  "data.one.url"   Now I want to set the value inside the JSON Object. Normally I would do it like this:   scope.results.data.one.url = "hello";   But how to do it when I only have the string mentioned above?


Change Windows sound volume via the command line

Is it possible to change the volume in Windows XP via the command line?


WordPress 3.9 - Trouble Editing TinyMCE 4.0

With WordPress 3.9 coming soon it's bringing along TinyMCE 4.0. I'm running my plugins and functions through some testing and found that one of my functions seems broken / not working with the new TinyMCE function myformatTinyMCE( $in ) {     $in['theme_advanced_buttons1'] = 'bold';     $in['theme_advanced_buttons2'] = 'formatselect';     $in['wordpress_adv_hidden'] = false;     return $in;  } add_filter( 'tiny_mce_before_init', 'myformatTinyMCE' );  The above function used to limit the buttons in the tinyMCE to specific buttons, I've simplified it a bit to make it easier for testing. If I print out $in it shows the correct values in the correct spots, but when I actually load up a page it just defaults to the normal buttons. I've also tried to use the example in the  which also didn't seem to have any effect. I'm using the  Plugin and I do have  installed but disabled. With the new TinyMCE how can I continue using / customizing, and are there any 'Gotchas' that have changed from the previous TinyMCE Version? EDIT Looks like $in['wordpress_adv_hidden'] = false; is not longer being used - No idea how to unhide the Kitchen Sink.


Why inductors can not be integrated into IC?

If passive components like resistor and capacitor can be integrated into an IC, why not inductor?


Bisection Method - Number of steps required proof

I am currently reading $\textit{Scientific Computing: An Introductory Survey}$ by Michael Heath. In Section 5.2.1 when talking about the Bisection Method it is said that the number of iterations $n$ required to achieve a tolerance $tol$ is   $$ n = \left\lceil log_{2}\left( \frac{b-a}{tol} \right)\right\rceil $$  where the starting interval is $[ a, b]$.  $\textbf{I would like to prove this claim but can't figure out where to start}$.   I know I need to prove that  $$n - 1< log_{2}\left( \frac{b-a}{tol} \right) \leq n  $$  and I also know that the length of the interval after $k$ iterations is $\frac{b-a}{2^{k}}$ but I don't know where to go from there.  Could anyone please give me a hint?


Relating the base-p periodic expansion of a rational to its p-adic representation

Suppose you have a rational number $0 < r < 1$, and you want to express it in some prime base $p$. Then assuming the denominator r has a periodic expansion in the base, we might ask how the base-p real expansion and the p-adic expansion are related. Messing around with a few examples here has led me to the following conjecture: Conjecture: given some rational $0 < r < 1$ that has a periodic expansion in some base $p$, the period is identical to that of the $p$-adic expansion of $-r$. Examples:  12/13, base 2 real expansion: $0.\overline{111011000100}...$ -12/13, 2-adic expansion: $...\overline{111011000100}$ 12/17, base 3 real expansion: $0.\overline{2010011202122110}...$ -12/17, 3-adic expansion: $...\overline{2010011202122110}$  and so on. This all seems intuitive enough from experimenting around with p-adic solenoids back in the day, which can be thought of as having infinite expansions to the left and right of the radix point, but where all periodic sequences infinite in both directions are equal to zero (for example, in the 2-adic solenoid, $...11111.11111... = 0$. However, I'm not quite sure how to prove this rigorously. Under what conditions does this hold, and how does one prove this formally? Can this be extended to rationals outside of the range mentioned?


This is my sentence:     The A & P’s regular customers are depicted as "scared little pigs in a chute."  Daily,  they live the same monotonous existence.    Microsoft word insists that there should be a comma after "depicted".  I don't think it makes sense.  What say you?


I installed ubuntu about a year ago and yesterday I deleted the partition, because my parents were annoyed with the startup menu. I didn't know that I had to fix the 'mbr'.    Now every time I try to boot the computer the grub menu pops up and says that the partition  cannot be found. I made an ubuntu dvd but it doesn't turn on automatically and I have no clue how to do it manually.   Please help me, I have no clue what to do. Could someone at least tell me how to retrieve data or documents.


How does a word come to have two completely opposite meanings?

Words like cleave and egregious have meanings that are completely opposite to other meanings of the same word. How did such a bizarre, confusing state of affairs ever develop?   I mean, I just can't work out how one and the same word could come to mean two distinct things that are completely opposite! Is it the same root? What did the root mean and how did it come to be used to mean the opposite?


Im using dell vostro 3546. Just before i was install successfully ubuntu. Before it has windows8.1. Now i did restart my laptop and doesnt showing dual boot and it showing only ubuntu. I donot know how to resolve this issue. Please help me


How can I summon a Villager with custom trades, and have the items have custom names in 1.14

I have a villager that has custom trades, in this case a gold ingot for a piece of paper. I would like the paper to have a custom name. How can I do this? I am in 1.14


I need to do whast I describe as a "reverse join" -- that is, I need to create a list of rows in table A that are NOT in table B, where A.FNAME like B.FNAME and A.LNAME like B.LNAME. The point is to extract mailing list entries that were overlooked in a prior mailing. Unfortunately the primary keys are not consistent between the two tables. Table B failed to copy them from Table A when it was created originally, due to an inexperienced operator.  None of the search responses returned for "reverse join" seem to address this situation; am I trying to "prove a negative" here? I thought I could create a temporary table of the full mailing list, then DELETE from it each row that had a matching FNAME and LNAME in the shorter list, but I do not seem to be able to do this without destroying the shorter list in the process.


Geometrical combinatorics with $(n+1)^2$ points inside a square that determine a triangle

Consider a square with the side of length n and $(n+1)^2$ points inside it. Show that we can choose 3 of them to determine a triangle (possibly degenerate) of area at most $\frac{1}{2}$. I think that I know how to solve the problem for the cases $n=1$ and $n=2$: For $n=1$ we can easily prove that the triangle formed by those 3 points has the area at most $\frac{1}{2}$,like here: For $n=2$ we can divide the square into 4 smaller squares (by uniting the midpoints of the opposite sides),each of them with the length of the side equal to 1.By pigeonhole priciple we know that at least one of those squares contains at least 3 of the 9 points inside it.From here we can use the same proof from the case $n=1$ to prove that those 3 points determine a triangle of area at most $\frac{1}{2}$ This idea doesn't work for the other cases because we would need $2n^2+1$ points instead of $(n+1)^2$ Can you help me please with the other cases? Source:book:Combinatorics Advances,by Charles J. Colbourn


Secret to long-lasting relationship: Shut Down or Close Lid?

The guy at the Apple store was like: "I just close the lid, and that works fine for me. I also shut it down every 1 (or 2) weeks, to clear the RAM".  That makes sense, but it sounds like his personal experience. Is there anything official/unwritten law on what we should do when we are done with our Macs, at night for example.  I am a person that almost accesses the laptop (MacBook pro 15'' Retina) every day. It's brand new and I wish for a long-lasting relationship with it!


I have a CO2 sensor that output signal values 30-50 mV. I need to translate these voltages to 0-5 V for my microcontroller with the highest resolution. I understand that I can amplify the voltage using a non-inverting op-amp circuit, as shown, to a range of 3-5 V, but is it possible to expand that range to 0-5 V in order to get better resolution of sensor values?


New 16GB of RAM installed yet I see 15.3 on my system. Why?

Just switched 4GBs to 16GBs of RAM. However, when I look at how much memory I have, it says 15.3. I'm just wondering why did my memory drop down when I just installed 16 GBs of RAM.


I try to update the image after reading it from the database and throws                        java.lang.NullPointerException SQL Error     at java.io.FileInputStream.<init>(FileInputStream.java:130)     at tprison.Tprison.lambda$startgu$21(Tprison.java:947)   It will work if i choose an image using file chooser but what is this can't I change a person name or age something like that without changing the person image.  i understand the file is null but how, while it is having an image.  here is the code that will hold the image in the layout   browse = new JFXButton("browse");      browse.setOnAction(e -> {      fileg = filechooser.showOpenDialog(stageg);      if(fileg != null){         imageg = new Image(fileg.toURI().toString(),130,140,true,true);           rectangleg = new Rectangle(130,140);          rectangleg.setFill(new ImagePattern(imageg));           rectangleg.setArcWidth(10);          rectangleg.setArcHeight(10);           bpgu.setTop(rectangleg);          BorderPane.setAlignment(rectangleg, Pos.TOP_LEFT);          bpgu.setMaxSize(130, 140);          bpgu.setPrefSize(130, 140);          bpgu.setVisible(true);   here is the code that retrieve the image from the database and display.  InputStream is = rsgf.getBinaryStream("Pic");          OutputStream os = new FileOutputStream( new File("photo.jpg"));                byte[] content = new byte[1024];             int size = 0;             while((size = is.read(content)) != -1){                 os.write(content,0,size);             }             os.close();             is.close();              imageg = new Image("file:photo.jpg", 130, 140, true, true);             rectangleg = new Rectangle(130,140);             rectangleg.setFill(new ImagePattern(imageg));              rectangleg.setArcWidth(10);             rectangleg.setArcHeight(10);              bpgu.setTop(rectangleg);             BorderPane.setAlignment(rectangleg, Pos.TOP_LEFT);             bpgu.setMaxSize(130, 140);             bpgu.setPrefSize(130, 140);             bpgu.setVisible(true);   and finally here is the the code that update the image to the database and where the error points(fileg is null).   pica = new FileInputStream(fileg);  pstgu.setBinaryStream(10,(InputStream)pica, (int)fileg.length());


Why current directory doesn't change in makefile?

I'm trying to run a simple script- clone a git repository into a certain directory, then cd to this directory in order to execute an installation script.  This script is in a Makefile.  But the cd seems not to be working. It doesn't find my installation script.  I added a pwd after the cd in the script, and it shows me the directory from where I'm executing the script, not the directory where I cd into.  What's the problem?  git clone http://somerepo ~/some_dir cd ~/some_dir/ pwd python myscript.py install   =>   pwd: /hereIsPathToDirectoryFromWhichIRunTheScript     python: can't open file 'setup.py': [Errno 2] No such file or directory   It also doesn't work with ./setup.py.  If I enter the absolute path ~/some_dir/setup.py the script fails later because it's trying to access resources in the same folder.


Does intelligence depend more on environment than on genetic factors?

Many have argued that the test of IQ is simply a test of language. The application of the test consists of asking a number of questions. The person should understand the question presented to them and should be able to answer the questions properly. If a person does not understand the question or do not know to answer or give a wrong answer it results in a negative point.   is there a genetic component in this equation?


Calculate the sum of infinite series with general term $\frac{n^2}{2^n}$.

Please explain different methods to calculate the sum of infinite series with $\dfrac{n^2}{2^n}$ as it's general term i.e. Calculate   $$\sum_{n=0}^\infty \dfrac {n^2}{2^n}$$  Please avoid the method used for summation of arithmetic geometric series. It is very tedious approach. Does any other simpler approach exist?


How do the following options differ in what they imply?  Option 1  The real question is: what do you want to achieve?  Option 2  The real question is, "What do you want to achieve?"  Is there an existing convention for this pattern? If so, what is it? My options are specifically quotes and colons.


difference between /bin/false and /sbin/nologin

I am learning server stuff and I have one chapter about /etc/passwd  i have this:  root:x:0:0:root:/root:/bin/bash bin:x:2:2:bin:/bin:/bin/sh sys:x:3:3:sys:/dev:/bin/sh sync:x:4:65534:sync:/bin:/bin/sync games:x:5:60:games:/usr/games:/bin/sh man:x:6:12:man:/var/cache/man:/bin/sh lp:x:7:7:lp:/var/spool/lpd:/bin/sh mail:x:8:8:mail:/var/mail:/bin/sh news:x:9:9:news:/var/spool/news:/bin/sh uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh proxy:x:13:13:proxy:/bin:/bin/sh ...some otehrs... irc:x:39:39:ircd:/var/run/ircd:/usr/sbin/nologin whoopsie:x:105:114::/nonexistent:/bin/false vmail:x:150:8:Virtual maildir:/var/zpanel/vmail:/sbin/nologin   I want to know what is the difference between /bin/false - /sbin/nologin and /usr/sbin/nologin


Examples of provably${}^n$ unprovable statements

Given any statement $A$ and a classical theory $T$ which we assume is at least as strong as Peano Arithmetic ($\sf PA$), we have that $T\vdash A$ implies $T\vdash T\vdash A$ (that is, if a statement is provable, then it is provably provable). Let $T_1=T$ and $T_{n+1}=T_n+{\sf Con}(T_n)$. (We need stronger theories if we want to prove unprovability.) Given this, simply by considering the truth values of the relevant statements, we get the following classification of statements by unprovability:   $T\vdash A$ ($A$ is provable) $T_2\vdash T\not\vdash A$ ($A$ is provably unprovable) $T_3\vdash T_2\not\vdash T\not\vdash A$ ($A$ is provably unprovably unprovable)       ...      $\omega$. For all $n$, $T_n\not\vdash\dots \not\vdash T_2\not\vdash T\not\vdash A$ (we can't say anything about $A$'s provability)  We can refine this hierarchy by also considering the status of $\lnot A$. Let's call a class $m,n$ statement one such that $A$ is at level $m$ above and $\lnot A$ is level $n$ in the list. Since $T\vdash\lnot A$ implies $T_2\vdash T\not\vdash A$, the only nonempty classes at level $1$ are the class $1,2$ statements (provable statements) and the class $2,1$ statements (refutable statements). Independent statements are in class $2,2$. The class $1,1$ is nonempty iff the theory is inconsistent.  My question is: Are there any (preferably "natural") statements that fall further into this hierarchy? I know many examples of independent statements, like the continuum hypothesis or the axiom of choice relative to $\sf ZF$, or the Paris–Harrington theorem relative to $\sf PA$. But I know no examples of even any class $2,3$ statements. I expect there may also be natural examples of $\omega,\omega$ statements. My guess is that all the classes $m,n$ with $m,n\ne1$ are nonempty, but examples elude me.


Can the newly discovered mass of the neutrino explain in part, the missing matter

This question is related to the recent discovery of the neutrino mass 0.320 ± 0.081 eV/$c^2$. Could this account for at least some of the Dark Matter/Missing matter of the universe?


R is a quasi-semi-local ring, I is ideal of R. Prove Jac(R/I)=(JacR + I)/I

R is a quasi-semi-local ring (R has finitely many maximal ideals), I is ideal of R. Prove Jac(R/I)=(JacR + I)/I, in which Jac is Jacobson radical.   It's a problem in my teacher's book. I think we should divide maximal ideals of R into $M_1,...,M_k$ and $M_{k+1},...,M_n$, the first set consists of maximal ideals containing I. But I don't know what to do next


Exclude a single module from a Drush update?

Is there a way to exclude a module from a Drush update so it can be ignored when running eg 'drush up' ?  I ask because Rules 2.8 is causing problems with Drupal Commerce but it would be great if everything else could still be updated with Drush.


I am 13 and I have an assessment on G.I.S soon and I don't have a clue what it is.


A complete orthonormal system contained in a dense sub-space.

Let H be a separable complex Hilbert space. Let A be a dense sub-space of H. Is it possible to find a complete orthonormal system for H that is contained in A?