I'm using unattended upgrades to patch about 300 ubuntu (16.04 LTS) machines (network appliances really), some are 1 CPU VMs running on ESXi, azure and AWS and others bare-metal quad core Atom IOT devices.  I haven't experienced this issues on the bare-metal machines, but on the VM's, which are powered just enough to do what they need to do, when the machines patch themselves our SNMP monitoring goes nuts and we get high CPU spikes, swap memory alerts, etc..    Rather than work in ways to suppress these alerts (which is not what I'm asking about), are there any ways to let renice patching and just let it take its time patching?   I wouldn't mind if it took 4 hours to patch, unattended that is (I wouldn't want to have patching go that slowly if I kicked it off with ansible or apt directly).

I want to create some control groups using cgroup.  So far I have done the following:   I installed some packages:  sudo apt-get install cgroup-bin cgroup-lite cgroup-tools cgroupfs-mount libcgroup1  Then I created the /etc/cgconfig.conf file with the following content:  mount {   cpuset  = /cgroup/cpuset;   cpu     = /cgroup/cpu;   cpuacct = /cgroup/cpuacct;   memory  = /cgroup/memory;   devices = /cgroup/devices;   freezer = /cgroup/freezer;   net_cls = /cgroup/net_cls;   ns      = /cgroup/ns;   blkio   = /cgroup/blkio; }  group limitcpu{   cpu {     cpu.shares = 400;   } }  group limitmem{   memory {     memory.limit_in_bytes = 512m;   } }  group limitio{   blkio {     blkio.throttle.read_bps_device = "252:0         2097152";   } }  group browsers{   cpu {     cpu.shares = 200;   }   memory {     memory.limit_in_bytes = 128m;   } }   according to the guide , assuming, that the config file resides at the same location and uses the same syntax on Ubuntu, as it uses on CentOS. Then according to that guide I need to start the cgconfig service. I tried with:  sudo service cgconfig restart   But, oh no! A file is missing!:  Failed to restart cgconfig.service: Unit cgconfig.service not found.  After some wondering and searching around, I tried:  ● cgconfig.service    Loaded: not-found (Reason: No such file or directory)    Active: inactive (dead)    So it seems I am simply not having any cgconfig service on my system!  I searched for it using:  sudo aptitude search cgconfig   However, no cgconfig is to be found.  How can I install cgconfig on my Ubuntu 16.04?


I am doing a 3D Anime Character for Blender 2.78c, but when I try to use the mirror on the eye, here is the result:  Could anyone please help?

When I add a mirror modifier it sometimes doesn't mirror correctly, giving me an overlapping mesh. How can I fix this?


Show any maximal ideal is a prime ideal.  I am not sure how to approach this, i know i need to show that for any 'ab' in the maximal ideal, a is in the max ideal or b is in the max ideal.

Could anyone explain to me why maximal ideals are prime?  I'm approaching it like this, let $R$ be a commutative ring with $1$ and let $A$ be a maximal ideal. Let $a,b\in R:ab\in A$.  I'm trying to construct an ideal $B$ such that $A\subset B \neq A$ As this would be a contradiction. An alternative idea I had was to prove that $R/A$ is an integral domain, but this reduces to the same problem.  EDIT: Ergh.. just realized that I've learnt a theorem that states is $A$ is a maximal ideal then $R/A$ is a field


In the following definition of Almond Joy, should "from" or "of" be used?     a type of chocolate bar in the US which is made from/of coconut and almonds   I'd appreciate your help.

(1) Wine is an alcoholic beverage made from fermented grapes or other fruits. (Wikipedia) (2) Tables were made of marble or wood and metal (typically bronze or silver alloys), sometimes with richly ornate legs. (Wikipedia)  Why is 'from' used in (1), whereas 'of' is used  in (2)? Is it a stylistic choice whether to use 'of' or 'from'? Or, in case of chemical changing, differently from changing in shape only, 'from' is preferable?


I have the following string:  s = '''     Gus’s World Famous Fried Chicken     South City Kitchen - Midtown '''   I am trying to match both groups between the s  using the following  regex = re.compile('<a class="biz-name[\w\W]*(.*)') regex.findall(s)   expected:  ['Gus’s World Famous Fried Chicken', 'South City Kitchen - Midtown']   actual  ['South City Kitchen - Midtown']   Why is only the last occurrence being matched?

I have this gigantic ugly string: J0000000: Transaction A0001401 started on 8/22/2008 9:49:29 AM J0000010: Project name: E:\foo.pf J0000011: Job name: MBiek Direct Mail Test J0000020: Document 1 - Completed successfully  I'm trying to extract pieces from it using regex. In this case, I want to grab everything after Project Name up to the part where it says J0000011: (the 11 is going to be a different number every time). Here's the regex I've been playing with: Project name:\s+(.*)\s+J[0-9]{7}:  The problem is that it doesn't stop until it hits the J0000020: at the end. How do I make the regex stop at the first occurrence of J[0-9]{7}?


I have a decorator to retry some operations for 3 times if a deadlock happens, and does some logging in the process:  def retry_on_deadlock(func):     logger = logging.getLogger('test')      @wraps(func)     def decorated(*args, **kwargs):         retry_count = 0          while retry_count < 3:             try:                 return func(*args, **kwargs)             except DeadLockException:                 retry_count += 1                  if retry_count == 3:                     raise                  logger.warning('We are in the decorated function here')      return decorated  @retry_on_deadlock def crucial_function(value):     with value:         do_something()  crucial_function(important_data)   Our logging format includes %(funcName)s which, in this specific case, will evaluate to decorated. Is there a way to make crucial_function appear in the logs instead?  I already tried implementing a logging filter, but the logic it needs became a bit cumbersome, as it needs to inspect the stack, and if the logging happened directly in the decorated function (ie. not in a function called by the original function) it will overwrite funcName on the log record. If this is the only way, though, i will sadly accept it.  Update: This is not the same as  question as i don’t really care about the functions signature (which, in fact, is preserved by the @wraps decorator). I want to instruct the logging library to skip one level from the stack trace when logging the function’s name via the %(funcName)s, %(filename)s, and %(lineno)s.

Suppose I have written a decorator that does something very generic. For example, it might convert all arguments to a specific type, perform logging, implement memoization, etc.  Here is an example:  def args_as_ints(f):     def g(*args, **kwargs):         args = [int(x) for x in args]         kwargs = dict((k, int(v)) for k, v in kwargs.items())         return f(*args, **kwargs)     return g  @args_as_ints def funny_function(x, y, z=3):     """Computes x*y + 2*z"""     return x*y + 2*z  >>> funny_function("3", 4.0, z="5") 22   Everything well so far. There is one problem, however. The decorated function does not retain the documentation of the original function:  >>> help(funny_function) Help on function g in module __main__:  g(*args, **kwargs)   Fortunately, there is a workaround:  def args_as_ints(f):     def g(*args, **kwargs):         args = [int(x) for x in args]         kwargs = dict((k, int(v)) for k, v in kwargs.items())         return f(*args, **kwargs)     g.__name__ = f.__name__     g.__doc__ = f.__doc__     return g  @args_as_ints def funny_function(x, y, z=3):     """Computes x*y + 2*z"""     return x*y + 2*z   This time, the function name and documentation are correct:  >>> help(funny_function) Help on function funny_function in module __main__:  funny_function(*args, **kwargs)     Computes x*y + 2*z   But there is still a problem: the function signature is wrong. The information "*args, **kwargs" is next to useless.  What to do? I can think of two simple but flawed workarounds:  1 -- Include the correct signature in the docstring:  def funny_function(x, y, z=3):     """funny_function(x, y, z=3) -- computes x*y + 2*z"""     return x*y + 2*z   This is bad because of the duplication. The signature will still not be shown properly in automatically generated documentation. It's easy to update the function and forget about changing the docstring, or to make a typo. [And yes, I'm aware of the fact that the docstring already duplicates the function body. Please ignore this; funny_function is just a random example.]  2 -- Not use a decorator, or use a special-purpose decorator for every specific signature:  def funny_functions_decorator(f):     def g(x, y, z=3):         return f(int(x), int(y), z=int(z))     g.__name__ = f.__name__     g.__doc__ = f.__doc__     return g   This works fine for a set of functions that have identical signature, but it's useless in general. As I said in the beginning, I want to be able to use decorators entirely generically.  I'm looking for a solution that is fully general, and automatic.  So the question is: is there a way to edit the decorated function signature after it has been created?  Otherwise, can I write a decorator that extracts the function signature and uses that information instead of "*kwargs, **kwargs" when constructing the decorated function? How do I extract that information? How should I construct the decorated function -- with exec?  Any other approaches?


I've seen a few questions about copying parts from Arrays or list, but I still don't understand the logic behind it... It makes no sense for me that I can get each values by calling them by index, but it is not possible to get a part of the list by calling it by index, too...  x=[0,1,2,3,4,5] >>>x[2] 2 >>>x[4] 4 >>>x[2:4] [2,3]   What I am expecting in the last line would be that the command returns the value with index two,three and four !  >>> x[2:4] [2,3,4]   Is there a command that does it the way I thought it would be?

I need a good explanation (references are a plus) on Python's slice notation.   To me, this notation needs a bit of picking up.   It looks extremely powerful, but I haven't quite got my head around it.


I am unsure whether to use "a" or "an" in the following sentence:  Video games have become a/an ubiquitous part of American culture.  For me, saying the two sentences out loud makes "an" seem like the right choice but Microsoft Word proofing disagrees.

In the following example, is it appropriate to use a or an as the indefinite article, and why?     He ate __ green apple.   I know that in the case of just "apple", it would be "an apple," but I've heard conflicting answers for "green apple," where the noun is separated from the article by an adjective.  Also, which is more appropriate in this case:     He ate  __ enormous Pop-Tart.


I want to hide a section number in the headings of section like this:  \section*{Abstract}   Turns out if I put an asterisk in the section command like this, the number is not present in the heading and also there is no entry  in the table of contents, but I want the heading to remain in the table of contents. How to do this.  Thanks

I'm using the report document class for a thesis, and I need to add things like "Acknowledgements" and an "Introduction". I noticed that there is an \abstract command which would have been wonderful if applied similarly. How do I add these without messing up the chapters' numbering while being picked up by the ToC in proper order and page numbering?


how to create a term-life annuity timeline like this

I was wondering, how can I create a timeline exactly like this one:    on LaTeX?  I am a Finance student, and write all of my notes using LaTeX. These timelines, are giving me a headache. Since we use a lot of different timelines because of annuities. I want to learn how to create one basic timeline, so that I can then change anything I want. But basically, I want something like this, with the arrows and everything.  Thank you so much guys!


I am a Wizard with 1 multiclass level of Cleric. Can I cast a spell if I have my other hand free? I thought I could but the text of the War Caster feat leads me to believe I might not be able to.

I play a wizard and while I am rarely hit due to being in the back I'm still paranoid I will get hit. So I was wondering if, after getting a feat to wield a shield, I can use that with one hand and use magic with the other?


I have seen this result somewhere: If $x$ is a positive real number such that $m^x$ is an integer for all natural numbers $m$, then $x$ is an integer.   It is quite interesting and I have some thoughts on it, but I have not yet solved it. By the way, is this famous?

Supposing that a real number $c$ is given, is the following true?  "If $n^c$ is a natural number for every natural number $n$, then $c$ is a non-negative integer."  Though this seems true, I can't prove that. Can anyone help?


I am currently reading though Peskin and Schroeder and have recently encountered the UV cutoff. Basically, when we encounter an infinity in QFT which is caused by integration over momentum or energy, we can disregard this by limiting our integral as we know our formula is not exact and it is absurd to think that it should work at arbitrary energy.  This got me thinking about singularities. Basically knowing that GR is a not quantum theory and that surely at such high energy density and small volumes as found in black holes, QM effects will become very important, why is it that we are fine saying everything collapses into a singularity rather then saying we don't know and that the formula is invalid at such ranges?

I was thinking of, for example a Schwarzchild metric at r=0, i.e. the gravitational singularity, a point of infinite density. I realise that there are different types of singularities--timelike, spacelike, co-ordinate singularities etc. In a short discussion with Lubos, I was a bit surprised when I assumed they are idealized and I believe he feels they exist. I am not a string theorist, so am not familiar with how singularities are dealt with in it.  In GR, I know the Penrose-Hawking singularity theorems, but I also know that Hawking has introduced his no-boundary, imaginary time model for the Big Bang, eliminating the need for that singularity. Are cosmic strings and other topological defects singularities or approximations of them (if they exist).  In what sense does a singularity exist in our universe? --as a real entity, as a mathematical or asymptotic idealization, as a pathology in equations to be renormalized or otherwise ignored, as not real as in LQG, or as real in Max Tegmark's over-the-top "all mathematical structures are real"?


I do understand the role of the community user - it is a record keeping device that owns all activity that is no longer controlled by a specific named user. Even with that knowledge, however, I found this interesting:     Are unowned hats going to Community as well? How does Community figure out what hat she's (he?) going to wear? Is it random, or, is the Crab intentional? Was this intentional or just an interesting feature? Put another way, are the devs who implemented hats that on top of things that they considered this? If so, well, my hats off to you!

During Winter Bash, users can earn hats. But sometimes it seems that a hat was awarded even though its requirements weren't (yet) met, or vice versa.  What could be the reason for this?


I was reading a paper and the author stated: It is clear that, $cot((1/2) x)sin(nx) = 1+2cos(x)+2cos(2x)+...2cos((n-1)x)+cos(nx)$ it doesn't look like a taylor expansion so how is this true? It is trivial to prove by induction but what do you think the inspiration is? Also, while I am already discussing it: Any formula for $cos(nx)$ or the Tchebyshev polynomials?  The paper by Ramanujan:   see page 3.

How can we sum up $\sin$ and $\cos$ series when the angles are in arithmetic progression? For example here is the sum of $\cos$ series:  $$\sum_{k=0}^{n-1}\cos (a+k \cdot d) =\frac{\sin(n \times \frac{d}{2})}{\sin ( \frac{d}{2} )} \times \cos \biggl( \frac{ 2 a + (n-1)\cdot d}{2}\biggr)$$  There is a slight difference in case of $\sin$, which is: $$\sum_{k=0}^{n-1}\sin (a+k \cdot d) =\frac{\sin(n \times \frac{d}{2})}{\sin ( \frac{d}{2} )} \times \sin\biggl( \frac{2  a + (n-1)\cdot d}{2}\biggr)$$   How do we prove the above two identities?


Every time I start Kubuntu, I get same error. Here is the KSnapshot:      Any suggestions on how to fix it?

gpg: WARNING: unsafe permissions on configuration file `/home/david/.gnupg/gpg.conf' gpg: WARNING: unsafe enclosing directory permissions on configuration file `/home/david/.gnupg/gpg.conf' gpg: external program calls are disabled due to unsafe options file permissions gpg: keyserver communications error: general error gpg: keyserver receive failed: general error   What does it mean and how to fix?


If so, how are they created (roughly speaking). Earlier in the video he says that a laser scanned the surface of the object, which suggests that no physical object needs to be present at the time of viewing the hologram, like what is required for a Mirage toy (seen here: ). Is this right?   I am aware that this is a fictional show, so what they are saying should not be taken too seriously and the hologram effect could be added by CG effects, but I am interested in the actual workings of this type of hologram (as opposed to a "flat" ).

Is there some law of physics that strictly prohibits the projection of 2D or 3D images into thin air (such as holograms in movies) or is a solution to achieve this still up for grabs by an eventual discoverer?


How can we define ageing from a biological standpoint without making an appeal to chronological age?  Related, but less important, are there any metrics we can use to determine someone's biological age other than their chronological age? Telomere length is an obvious candidate, but .

I am looking for an algorithm that shows the exact coefficients some variables that have on a hospital patient's chronological age versus their biological age.   I understand a lot of the variables that go into determining ones biological age (i.e. Blood pressure, diet, family history of disease, obesity etc.) but not the amount of impact that it has on the actual scoring of their age.  I have found many sites that will calculate it, however I need the actual variable coefficients and influence in order to produce a proper score for thousands of patient records.   Thanks in advance for your input!


Is it possible to add/reduce number of nested for loops in a function based on the length of input?  For example: Based on a certain input of length 3, I may need to use 1 nested for loop (for loop inside another for loop). Similar to this,  for i in range(0, len(input)+1):     for j in range(i+1, len(input)+1):   However, when the input length is 4, I could have achieved my result  if I could introduce additional for loop inside the already existing nested for loop, which means,  for i in range(0, len(input)+1):     for j in range(i+1, len(input)+1):         for k in range(j+1, len(input)+1):`   Similarly, if the input length is 5, then I would like to introduce another for loop,  for i in range(0, len(input)+1):     for j in range(i+1, len(input)+1):         for k in range(j+1, len(input)+1):             for l in range(k+1, len(input)+1):`   The pattern is, there will be n-1 number of for loops for an input of length n.  Is it possible create such a function in Python?

I have a list with 15 numbers in, and I need to write some code that produces all 32,768 combinations of those numbers.   I've found  (by Googling) that apparently does what I'm looking for, but I found the code fairly opaque and am wary of using it. Plus I have a feeling there must be a more elegant solution.  The only thing that occurs to me would be to just loop through the decimal integers 1–32768 and convert those to binary, and use the binary representation as a filter to pick out the appropriate numbers.   Does anyone know of a better way? Using map(), maybe?


I'm definitely doing something wrong but can't figure this one out.  When I run rm -rf on directories through find I get a No such file or directory but it does not happen when I do it manually.  Assuming the following directory tree:  [~]$ mkdir -p blueprints/blog [~]$ find . ./blueprints ./blueprints/blog   I create directories and add files to them:  [~]$ mkdir ./blueprints/blog/__pycache__ ./blueprints/__pycache__ ./__pycache__ [~]$ touch ./blueprints/blog/__pycache__/dummy.pyc ./__pycache__/dummy.pyc   I am sure I have them:  [~]$ find . -type d -name '__pycache__' ./blueprints/blog/__pycache__ ./blueprints/__pycache__ ./__pycache__   But removing them causes find to print an error:  [~]$ find . -type d -name '__pycache__' -exec rm -rf {} \; find: ‘./blueprints/blog/__pycache__’: No such file or directory find: ‘./blueprints/__pycache__’: No such file or directory find: ‘./__pycache__’: No such file or directory   They get removed alright but what is happening there?    Doing it in a different way does not provoke the error:  [~]$ mkdir ./blueprints/blog/__pycache__ ./blueprints/__pycache__ ./__pycache__ [~]$ touch ./blueprints/blog/__pycache__/dummy.pyc ./__pycache__/dummy.pyc [~]$ find . -type d -name '__pycache__' -exec echo rm -rf {} \; | sh     Why does find report that error?  As far as I am aware if -exec is present the -print action does not get invoked (that's what I suspected at first).  I have replicated the above using both find 4.6.0 and find 4.5.11

I need to delete all compiled data:   directories called build, directories called obj, *.so files.   I wrote a command   find \( -name build -o -name obj -o -name *.so \) -exec rm -rf {} \;   that goes through all the directories recursively and deletes all I need.  Why do I have such an output at the end? Maybe I should write a different command.  find: `./3/obj': No such file or directory find: `./3/build': No such file or directory find: `./1/obj': No such file or directory find: `./1/build': No such file or directory find: `./2/obj': No such file or directory find: `./2/build': No such file or directory


So, let's say I get deported from the US for doing something illegal (could be a crime, could be anything) and the deportation document says I cannot enter for the next 10 years. Now, in these 10 years, can I visit other countries? Of course the logical answer is, "Yes, if the country you want to go to will admit you".  But, here's the tricky part, how hard does it become to get visas to other countries when you've been deported from the US? Will other countries' visa application ask me about my deportation or travel history (A question like "Have you ever been deported from any country, if yes, please list them" is highly probable")  Also, how will it impact my travel to the UK, Canada, Australia and New Zealand? I ask because US along with these countries is collectively called the "Five Eyes", a term that US Govt uses to list major English speaking nations of the world., not to forget they have strong ties and diplomatic relations with each other.

I was convicted of a felony in the US, and my conviction will not be considered "spent" as of the period in which I intend to travel to the UK. I understand if I were to apply for a standard visa I would be summarily denied. However, if I were to simply go there, would I be denied entry on arrival if I were not to volunteer this fact?  Basically, the question is, could I sneak one by them? One being, namely, myself. I have to use up some frequent flyer miles, and I'd decided on going to the UK before this matter of actually being able to go there came to mind. I've no doubt I'll be able to stay out of trouble while in the country, were I given the opportunity.  It would be nice to know if someone in a similar situation had a result, whether it be positive or negative, in that regard. Lacking that, I would gladly hear any wisdom from knowledgeable but less involved parties.  Edit for clarification: I was imprisoned for 3.5 years for a violent offense. There are no restrictions on my passport. I'm primarily concerned with whether or not there are communications between the relevant agencies in the US and the UK as there are between those in the US and Canada and, recently, the US and Mexico, regarding the movement of convicted criminals between these countries, as the answer would save me certain deportation if that were the case.


I saw this around 7-8 years ago on Toonami/Cartoon Network and I'm still not quite sure it was an anime or an animated TV show. I watched this series completely in Spanish since that's my main language but sadly I was too young to remember anything else about the animation style or quotes from it. The opening is the thing I'm less sure of but it basically recapped the story, and it was something like...     a king having a belt (a belt? could be something else) that had elemental gems on it,   the antagonist tried to get the gems so the king hid the gems all around the world, now the villain's trying to get it back and the heroes are trying to get them so the villain doesn't get them.   I remember 3 episodes, to an extent,     The first was the heroes being trapped on quicksand, and they end up meeting with an old man and an old woman that save them, they spoke in gibberish and gave them food and a place to stay. Some of the protagonists were suspicious about this but were obviously told they were exaggerating. Eventually they found out the old people were speaking backwards and were trying to eat them, the old couple transform into monsters and they defeat them.   Another episode is the heroes looking for the water gem and finding themselves on a beach with a huge castle floating right in the middle of the water. They tried their best to reach it (not sure how they did?) only to have one of them reach the castle and find a huge blue dragon with the gem on it's forehead.   The next episode is just the rest of the characters getting to the castle and defeating the dragon.

Okay so I remember almost nothing of this show. The only thing I know is that I used to watch this show on Cartoon Network and it had a hero who used a sword to fight monsters and a girl who used bow and arrows. Also, the monsters kind of looked like computer generated and there was a book and stones which were somewhat related to the story?


I am a Botswana citizen. In October 2018, I was deemed undesirable by South Africa for overstaying two days and was given a one-year ban.   I have to travel to Malaysia in January 2019. I am concerned whether I will be allowed or face any problems flying via South Africa. I have a flight from Botswana to South Africa, then to Hong Kong and on to Malaysia. Will I have a problem entering South Africa or will they grant me access as long as I am in transit?

I received an undesirable status for overstaying a SA visa while hospitalized for injuries sustained in Lesotho. I had to cross into SA from Lesotho. Now I am banned entry into SA until Feb 2016 and though I have submitted a waiver request to remove the undesirable status, I hear from some the waiver request may take 4-5 months or even take longer than the time of banishment.  I have a pre-paid safari planned in October in which I need to fly through Johannesburg to get to Botswana. The Jburg border control requires tourists to pass through SA immigration even when simply changing planes.  1) Will SA grant me "transit" access if I don't leave the airport?  2) Will SA allow me to spend a night in the airport as the layover is 12 hours>  Thanks for passing on any info.


I’m stuck here and have no idea how to start debugging this. Good thing is I have access to tty via ctrl + alt + F3. How to solve this?

Initially, the computer was showing the error as mentioned in   question. Fixing it resulted in the above error.  Please take look at the last line   Started GNOME display manager... and deal with any system changes..p link was shut down.....     One more thing before all this problem I have edited xorg.conf file to use  as suggested on .  I don't know if that's the reason but I thought it is important to share.


Does  a  barking  of  a dog  diminish the   value  of  a  priest?   The  above  is  an  Idiom  from Indian languages.A  dog  stands metophorically  for  the inferior  people.The  priest  stands for  the  people  who  are intellectually  and  spiritually great.The  meaning of  the  idiom  is that  the  profane people  never  diminish the  greatness  and  holiness  of  great  people simply  by  mocking at them  What  is  the  equal  idiom in  English  apart  from the  saying  of  the  Egyptians.     "A profane person might be tempted to  violate the  tomb"   Edit  :    My  question  is  not  a  duplicate  because the  idiom  is  different  from  other  idioms : it  is  the  tendency  of  a dog  to  bark  at  a thief  or  at  a priest . It  can not  distinguish  between  good  and  bad.Every  new  person  seems  to  be  a thief  to a dog.So  great  people  are  great  people  even if  the  inferior  people  do  not  recognise  them or  mock at them.The  distance between  the  great  and  the  profane  is  always too long

There is a proverb in Hindi language      हाथी चले बाज़ार कुत्ते भौंकें हज़ार    Literal English translation:     Elephant goes to the bazar; Thousands of dogs bark    It figuratively means when a person progresses with something or succeeds, the people often vilify him and protest. (So let them do what they do. A high-level person doesn't need anything to stop progressing or succeeding)


How can I delete the lines from a file containing the character 'H'? The file contains the following column:  H1 N1 H2 C1 H3 H4 C2 H5 H6 N2 H7 C3 H8 H9 C4 H10 H11 N3 H12 C5 H13 H14 C6 H15 H16   Desired output is:  N1 C1 C2 N2 C3 C4 N3 C5 C6

I have a file fileA.txt  Batman.plist Green Arrow.plist Hawkgirl.plist EOPrototypes.plist Person.plist EOPrototypes.plist EOJavellinPrototypes.plist Sinestro Slomon Grundy.plist Batman Beyond.plist EORedRobin EORavenPrototypes.plist   Now if I want to get all the lines that end with plist and does not contain the word Prototype. So far I have   grep -v "Prototype" fileA.txt | grep -E "*plist$"   And the output is   Batman.plist Green Arrow.plist Hawkgirl.plist Person.plist Slomon Grundy.plist Batman Beyond.plist   Which is exactly what I want,  But is there a better way to do this?


I have been testing out ubuntu for a few months now and now I decided to keep it on my system (It's a dual boot with windows 8.1). My question is : If I remove windows 8.1 from my system, will my BIOS also be removed?  I was going to uninstall Windows 8.1 with OS-Uninstaller.   My BIOS is an American Megatrends BIOS. Ubuntu Version : 15.04 Laptop brand : Asus (Notebook PC) Dual Boot with : Windows 8.1 I also have the GRUB2

I want to keep Ubuntu but remove Windows.


Pretty much the title. I've seen it so many times and never really thought until today on what it actually does. A quick google search pulled up nothing in relation to it. An explanation would be much appreciated to get this out of my mind!

What are post-installation triggers?  These are executed when upgrading software.


I was on the PPCG meta site, and suddenly the "3 notifications" appeared. I went there, and the queues are all empty. Refreshing and revisiting the page did nothing.  Is this perhaps showing me notifications for items in the queue that I had already reviewed? The notifications appeared after my most recent reviews.

Since a , I see more than I should:    I see no reason to see 134 posts are awaiting review, when there is literally nothing I can do about them. I think it is a bug, because notification is meant as something that will make me act. When I know I usually can't, obviously I will start to ignore it.  If it's not a bug, please remove bug tag and explain how it is supposed to be useful, or how can I switch to only seeing notifications about things I can act on.  Note that apaprently there are no flags for me, neither. I see only stats, migrated, close, delete, there, as if there was no flags waiting:    If you expect us to click on it every few minutes  just to see personalized numbers next to queues, why don't you simply query for personalized numbers every few minutes and cache them for us? It should cost you similar, in database usage, and will save us a lot of clicking and frustration.  If all this number means is "there might be reviews, or not" or "for sure there are none"  it would be simpler just to hide "review" link in the second case. We don't need two links with the same function next to each other, thank you, one is enough, and meaningless numbers are only irritating.


This  question half covers what I'm trying to do:  Instead of doing man chmod and then /a+x to jump to the first section in the chmod man page that mentions a+x, I would like to know if there is a way to open the man page to a specific search string, similar to how you can do vi +string filename.txt in vi(m).  The chosen answer was man foobar | less +/searched_string  However, when I try man tmux | less +/^format  Less launches but returns  Pattern not found  (press RETURN)  Why is the pattern not being found?  OS - Ubuntu 15.10 % less --version less 458 (GNU regular expressions) Copyright (C) 1984-2012 Mark Nudelman


Have a bunch of urls separated by space in a string:  String urls =  "https://i.ytimg.com/vi/8xjfdGErgUc/maxresdefault.jpg https://i.ytimg.com/vi/9xber0p1bTw/maxresdefault.jpg https://yt3.ggpht.com/-fG6iPki4sFY/AAAAAAAAAAI/AAAAAAAAAAA/2Sbu6OjrBik/s900-c-k-no-rj-c0xffffff/photo.jpg https://yt3.ggpht.com/-YZyzwE3a30c/AAAAAAAAAAI/AAAAAAAAAAA/16qPbHiYJmc/s900-c-k-no-rj-c0xffffff/photo.jpg https://yt3.ggpht.com/-EYlRar9RsEY/AAAAAAAAAAI/AAAAAAAAAAA/JPQTc68e_x4/s900-c-k-no-rj-c0xffffff/photo.jpg https://i.ytimg.com/vi/VttZwjV38H0/maxresdefault.jpg https://yt3.ggpht.com/-7qUTA41fVxA/AAAAAAAAAAI/AAAAAAAAAAA/ZtK1pGLa4vw/s900-c-k-no-rj-c0xffffff/photo.jpg https://i.ytimg.com/vi/KfQBdRcgizc/maxresdefault.jpg https://yt3.ggpht.com/-VGI9T-Sm5xg/AAAAAAAAAAI/AAAAAAAAAAA/AtC93A0H3AQ/s900-c-k-no-rj-c0xffffff/photo.jpg https://i.ytimg.com/vi/aRkceYdlkTo/maxresdefault.jpg"    Attempt at converting to String array produces unexpected output?   String[] urlAry = urls.split(" ");   output  [Ljava.lang.String;@1e5746c0

In Java, arrays don't override toString(), so if you try to print one directly, you get the className + '@' + the hex of the  of the array, as defined by Object.toString():  int[] intArray = new int[] {1, 2, 3, 4, 5}; System.out.println(intArray);     // prints something like '[I@3343c8b3'   But usually, we'd actually want something more like [1, 2, 3, 4, 5]. What's the simplest way of doing that? Here are some example inputs and outputs:  // Array of primitives: int[] intArray = new int[] {1, 2, 3, 4, 5}; //output: [1, 2, 3, 4, 5]  // Array of object references: String[] strArray = new String[] {"John", "Mary", "Bob"}; //output: [John, Mary, Bob]


What is the value of $g$ at the centre of the Earth? Is it zero or infinity? My attempt: I know it's zero but applying law made me on fused.

If you could travel to the center of the Earth (or any planet), would you be weightless there?


I had a couple files missing on my Windows Explorer, despite being able to play files on the device itself.  One tutorial told me to update my MTP driver, through Device Manager, I did, no changes.  I decided to solve this "discussed and known issue" by doing what everybody (here on Android SE) said solved it for them. So I entered into the Apps, and purged cache of two system applications, External Storage and Media Storage, then rebooted.  Allegedly after reboot, I had to leave my phone alone for about 10 minutes, for it to "rebuilt its cache", so I did. After it rebooted, I put it into my pocket, not giving it any extra data, after some 2 hours. I attached my Android to computer, the entire drive is empty, only customized-capability.xml was visible.  Smartphone also lost touch with the SD card, to the point where the music application forgot last played music (understandable) and doesn't detect music from various folders (atypical). I need to use external app called File Commander (which is somewhat comparable to Windows Explorer) to manually navigate to the SD card, after tapping music it will play, so no data is lost, but it is inaccessible to even my own device now.  Windows Explorer and File Commander tell me that there's only 3GB left (which makes sense in my scenario), but Windows won't display the files.  How do I solve this? How can I get phone and my computer to recognize the files?  Android 7.1.1 Sony Xperia Z5  P.S.: Yes, I did look thoroughly, there's no hidden files here.

I am using HuaWeiNova device, and I tried to access it with aft-mtp-cli. $ aft-mtp-cli $ ls DCIM/  I got folders listed here: |-photos |-Camera ....  When I tried to list or download my photos in the Camera/ folder, I got nothing. Only the empty folders are listed and the folders that contains files are not shown at all. I am quite sure my photos are stored in the Camera folder in my cell phone. How come I could not access my photos with my computer ?


I have : 2x Intel(R) Celeron(R) CPU N2840 @2.16GHz .  Will it support 64bit Ubuntu18.04 ?   I have checked using lshw -class CPU that width is : 64bit.   But  says I might require AMD64 etc as mentioned for 64bit. I want to install 64bit, but am not sure if it will work.  Other spec : 2GB RAM.

What is the difference between standard i386 download and the amd64 download of Ubuntu 11.04? I am currently running the i386 on an amd machine, would my system work better with the amd64 download instead? (my machine was running Windows 7 64bit, but I neglected to look at that prior to installing Ubuntu).


What is one(or any other number) divided by zero? I have tried to find this out, but the only answer I could think of is infinity, due to the fact that zero is worth nothing. Nothing can fit into anything infinite times, so this is my logic. I repeat: What is one (or any other number) divided by zero?

I came up some definitions I have sort of difficulty to distinguish. In parentheses are my questions.   $\dfrac {x}{0}$ is Impossible (  If it's impossible it can't have neither infinite solutions or even one. Nevertheless, both $1.$ and $2.$ are divided by zero, but only $2. $ has infinite solutions so as $1.$ has none solution, how and why ?) $\dfrac {0}{0}$ is Undefined and has infinite solutions. (How come one be Undefined and yet has infinite solutions ?) $\dfrac {0}{x}$ and $x \ne 0$, it's okay for me, no problem, but if someone else wants to add something about it, feel free to do it.


What is azimuthal symmetry? When to use azimuthal symmetry and and how to know whether the problem has azimuthal symmetry or not?

What is the difference between cylindrical and azimuthal symmetry, are they the same? I have not been able to find a clear explanation of these terms wrt. a cylinder. I need to know which length I should integrate over to solve the problem below.  A cylinder of radius $R$ and length $L$ has a cylindrically symmetric volume charge density of $\rho(x)$. Calculate the total charge on the cylinder.


Can anyone help me out with this,   This is from a custom object " Quotation", The look up field " Main Driver" is a look up to Personal account object. The below fields are as well exists in the personal account. I need whatever value would be choosen in the main driver, automatically the below values will get pop up on below fields. I need to write a trigger for this ( I cant use formula field, as its depends upon another criteria field, so somtimes the user need to enter values manually in these fields , Process builder also doesnt worked). I tried to write a trigger, but its not working , showing issue as " Error: Compile Error: IN operator must be used with an iterable expression at line 12 column 104 " Can anyone plz rectify my trigger to make it work. Thnx .( I just have taken two fields below for test)  trigger MainDriverRelatedFields on Quotation__c (before insert,before update) {  Quotation__c newQuote=new Quotation__c();  for(Quotation__c obj : Trigger.new){ newQuote=obj ;     }     List<Account> Acc= [SELECT id,Age__c, Acccidents_in_the_last_12_mnths__c FROM Account WHERE Id IN: newQuote.Main_Driver__r];       if(newQuote.Main_Driver__c!=null) {        newQuote.AgeMainD__c=Acc.Age__c;         newQuote.Accidents_in_the_last_12_mnthsMainD__c= Acc.Acccidents_in_the_last_12_mnths__c;          } }

Can anyone help me out with this,    This is from a custom object " Quotation", The look up field " Main Driver" is a look up to Personal account object. The below fields are as well exists in the personal account. I need whatever value would be choosen in the main driver, automatically the below values will get pop up.  I amm trying to write a trigger for this, but just got stuck, Error showing as,      Error: Compile Error: Variable does not exist: Account.Age__c at line   7 column 17   How can i define the Account variable in the Quotation object trigger ?  trigger MainDriverRelatedFields on Quotation__c (before insert,before update) {      for(Quotation__c obj : Trigger.new){          if(obj.Main_Driver__c!=null) {              obj.AgeMainD__c=Account.Age__c;              obj.GenderMainD__c=Account.Contact_Individual_Gender__c;          }      }  }


I'm new to Blender and I finished one scene. Everything is good when I look at the scene in the object mode or rendered preview, but when I actually render the scene, my doughnuts disappear and the icing starts looking very sharp and edgy. Please, look at the attached images. Could someone tell me what I'm doing wrong?

This is meant to solve this problem once and for all. What is every reason an object isn't showing up in a render or viewport in when using the cycles render engine?


The problem is :  Let $\varphi \in \mathcal S(\mathbb R)$ (Schwartz space) with $\int \varphi \ dx = 0$. Then the Hilbert transform of $\varphi$     belongs to $L^1(\mathbb R)$.  I believe this helps $\lim_{|x| \rightarrow \infty} x H(\varphi) (x) = 0$.  But i dont know what to do..  someone can give me a hint ?  Thanks in advance

Given a Schwartz function $f\colon\mathbb{R}\to\mathbb{R}$, define its Hilbert transform by $$(Hf)(x)=\frac{1}{\pi}\left(\int_{|t|\leq 1}\frac{f(x-t)-f(x)}{t}\,dt +  \int_{|t|\geq 1}\frac{f(x-t)}{t}\,dt\right)$$ (the first integral is interpreted as an appropriate limit/principal value).  It can be shown that $Hf$ is continuous and that  $\lim_{|x|\to\infty}x(Hf)(x)=\frac{1}{\pi}\int_{\mathbb{R}}f(t)\,dt=\frac{1}{\pi}\hat{f}(0)$. Using this, it is easy to prove that, if $Hf$ is absolutely integrable, $\hat{f}(0)$ must be $0$. I want to prove the converse.  So assume $\lim_{|x|\to\infty}x(Hf)(x)=0$. This by itself doesn't guarantee integrability of $Hf$, since $Hf$ might behave like $\frac{1}{x\log x}$ at infinity. A stronger decay condition for $Hf$ is needed, but I'm not sure where to get it from. The fact that $f$ is Schwartz should be important; does this imply $Hf$ decays faster than any polynomial?  Note, since this is a homework question, please don't be overly explicit in your answers.


How can I code a Python script that accepts a file as an  argument and prints its full path?  E.g.  ~/.bin/python$ ls ./        ../        fileFinder.py        test.md ~/.bin/python$ py fileFinder.py test.md /Users/theonlygusti/.bin/python/test.md ~/.bin/python$ py fileFinder.py /Users/theonlygusti/Documents/Online/theonlygusti.github.io/index.html /Users/theonlygusti/Documents/Online/theonlygusti.github.io/index.html   So, it should find the absolute path of relative files, test.md, and also absolute path of files given via an absolute path /Users/theonlygusti/Downloads/example.txt.  How can I make a  script like above?

How do I check whether a file exists or not, without using the  statement?


I have reviewed the existing "fixes" or ways to restore and/or recover or remove administrator passwords on Windows 8.1 operating systems on other sites to no avail.  I'm hoping someone in this community can help.  I inherited a somewhat antiquated but functional HP 110-210 AMD A4-5000 64-bit PC running Windows 8.1 from a deceased friend.  Unfortunately, and as is common, he left no record of his passwords.  Also, I have no restore disk or Windows installation disk.  I just need a way to bypass, change or retrieve his Administrator password.  It seems he created a User by using the existing system Administrator account, if that makes sense.  I see no Admin account; just his name which has Admin access. I would like to avoid doing a restore if possible due to the aforementioned lack of OS installation software.  I am pretty well versed in computer science and command line/Windows usage.  However I am leery of many of the posts I have seen due to possible outdated software or hacks that may damage my OS.  I do have access to another PC but it runs Win10.  I am struggling to get a business off the ground and this PC would handle the applications needed to automate and simplify much of the day to day stuff.  Any help would be greatly appreciated.   Best wishes for 2021 to the community!  Sincerely, nomadsxdx

I got a brand new Windows 7 machine, installed the operating system, created one account and forgot its password. What can I do?  There is no external CD, the operating system is loaded from somewhere inside the machine.  I already tried to remember passwords and tried all candidates with all possible combinations of caps lock, num lock etc.


I know how to use PDFs to calculate probabilities, but I don't think I understand them. For example, at $X=0$ the PDF of the standard normal distribution is $\approx 0.4$. Does this have any useful meaning?

On the , there is this line:      $p(\mathrm{height}|\mathrm{male}) = 1.5789$ (A probability distribution over 1 is OK. It is the area under the bell curve that is equal to 1.)    How can a value $>1$ be OK? I thought all probability values were expressed in the range $0 \leq p \leq 1$. Furthermore, given that it is possible to have such a value, how is that value obtained in the example shown on the page?


I am trying to create a table containing only equations. Similar to a tabular environment. I want to be able to set margins in the table like you can in tabular, but there doesn't seem to be a simple way of doing this without going through each entry and specifying maths mode with $.$. Is there something like the following which produces what I describe?  \begin{mathtable}{|c|c|c|} \hline 2\pi     & \phi     & \eta   \\ \sqrt 2  & \lambda  & \sigma \\ \hline \end{mathtable}

\begin{tabular}{|l|l|l|} \hline Column A & Column B \\  \begin{math} x & y \\ \end{math}  \end{tabular}   This won't let me compile and gives a lot of errors, how do I enable math mode in a table without using $ on everything?


I like using option strict, for the "discipline" it forces upon you. However there are a few cases, you just don't find any option strict compatible code. For example when you use WScript, I know no way but a CreateObject ... Is there a way to "disable" option strict on a few lines?

Is there a way to turn option strict off for just a single line of code?    I'm doing some maintenance work and I need to "cheat" in just one place and I don't want to lower the standard for the entire file.


Is there an index of all the man pages that exist?  I know I should not want to learn them all, but I would like to at least take a snapshot view of each of all the man pages that exist. I am a powerful reader and I would not mind go through all of them.

How do I tell man to show me a list of all the 'manuals' installed on my Ubuntu 10.10 system?  Also, is there a specific directory where the manual pages are installed?


I'm having an issue with date format. It shows as short day, month, day number, time. But all my location settings are GB, so I was expecting short day, day number, month, time.  I've tried updating it using dconf but even after restarting nothing changes even if I enter junk.  Clarification: I'm talking about the time/date indicator in the system panel.  date output:  Sat 7 Oct 08:44:55 BST 2017    locale output:   LANG=en_GB.UTF-8  LANGUAGE=en_GB:en  LC_CTYPE="en_GB.UTF-8"  LC_NUMERIC=en_GB.UTF-8  LC_TIME=en_GB.UTF-8  LC_COLLATE="en_GB.UTF-8"  LC_MONETARY=en_GB.UTF-8  LC_MESSAGES="en_GB.UTF-8"  LC_PAPER=en_GB.UTF-8  LC_NAME=en_GB.UTF-8  LC_ADDRESS=en_GB.UTF-8  LC_TELEPHONE=en_GB.UTF-8  LC_MEASUREMENT=en_GB.UTF-8  LC_IDENTIFICATION=en_GB.UTF-8  LC_ALL=

Presently the date is showing as mmm dd hh:mm:ss. Is there any way that I can change it to as per my liking. For example : dd mmm, hh:mm:ss.


I'm working on a GitHub project. It's a text editor built in Python. I need to be able to run error.vbs from test.py.  How or is this possible?

How do you call an external command (as if I'd typed it at the Unix shell or Windows command prompt) from within a Python script?


I tried to overload the ostream << operator to print out a generic-typed variable, however main.cpp can not find the implementation. I am assuming that this is because the implementations exists in a .cpp file. I am aware that template functions must usually be defined in the header files, however this should not be the case for explicitly-instantiated functions. When I copy the implementation into my header file, it works just fine.  I'm thinking that I'm experiencing an issue that is unique to templated friend functions. Here are the relevant parts of my code.   I forward declared my Node class and the operator overload  template <typename T> class Node; template <typename T> ostream& operator<< (ostream&, Node<T>&);   I declared the operator overload in my header file (Tree.h)  template <typename T> class Node {   ...     friend ostream& operator<< <T> (ostream&, Node<T>&);     T data;   ... }   in my .cpp file, I implemented it  #include "Tree.h" template <typename T> ostream& operator<< (ostream& out, Node<T>& node) {     out << node.data;     return out; }   I explicitly instantiated my Node at the bottom of my Tree.cpp file  template class Node<int>;   then finally I called it from main.cpp  int main() {     Node<int>* n0 = new Node<int>(0);     cout << (*n0); }   and I get the following error:  undefined reference to 'std::ostream& operator<< <int> (std::ostream&, Node<int>&)'

Quote from :     The only portable way of using templates at the moment is to implement them in header files by using inline functions.   Why is this?  (Clarification: header files are not the only portable solution. But they are the most convenient portable solution.)


In Better Call Saul episode 4 of season 1 (the one aired on Feb 23, 2015), there's an old guy (Chuck?) in the end, who James hid the newspaper from, and apparently can't go outside without a shield thing. Does he have some sort of disease, if yes, what is it?

On the show Better Call Saul, when someone enters Chuck's house, he asks     Ground yourself?   By which he means to leave watches, mobile phones et cetera outside of the house.  Also, he doesn't have anything electrical in his house.  Why is that?


How can I evaluate the following integral  $$\int {\frac{1}{{4 - 9{x^2}}}dx} $$

Could someone take me through the steps of decomposing  $$\frac{2x^2+11x}{x^2+11x+30}$$ into partial fractions?   More generally, how does one use partial fractions to compute integrals $$\int\frac{P(x)}{Q(x)}\,dx$$ of rational functions ($P(x)$ and $Q(x)$ are polynomials) ?    This question is asked in an effort to cut down on duplicates. See .  Also see .


I am trying to compare old date with today's date but I am not getting output true. Please help me. let today = new Date(); // 2021-02-13T13:28:28.501Z  if ("2020-11-04T08:01:25.698Z" < today){     console.log("True"); }

Can someone suggest a way to compare the values of two dates greater than, less than, and not in the past using JavaScript? The values will be coming from text boxes.


Today, the Sun seems extremely bright; more dazzling than usual, and even the roads seem to be brighter so it's not just when you look up in the sky.  Is more light actually getting through (perhaps there is less moisture in the air than usual to refract the Sun's light?) or is it just because, being winter, the Sun is lower in the sky and I notice it more?  But then, why wouldn't I notice it the same every day in winter?

Background:  I've lived in Philippines for several years, and visited other parts of Asia occasionally (Singapore, Indonesia, Hongkong).  I just moved to Western Australia a few months ago and I realized that the sun is brighter here, in the sense that every after sunrise and every nearing sunset, the sun shines too bright that it is blinding. This happens almost everyday, so this isn't just some one off thing.  In Asia, this never occurred to me. The sun was always bearable to the eyes.  Why is this so?


I'm new in linux, Today I've logged in to my server and found that my 2TB drive is 95% full, which sounds incredible, and all services are down, the only access I have right now is SSH, I did try to find where are this files using df -H  it show me in: /dev/vda1 , but going trough all folders will take ages.  how can I find easily where are the files and what causes the issue?

I'm looking for a linux alternative to . I would like to know what is taking up space on my hard drives.  A program that works on console and doesn't require a UI is preferred .


In some SE sites the  in post are hardly seen particularly in comments. But in some other sites the links have different color and are visible. I think a permanent underline or an appropriate color can show the difference in different browsers and operating systems.

Possible Duplicate:          Maybe this is more for SuperUser website, but as it appears all stack exchange use the same approach I'll ask it globally.  On posts, we can add links to external websites. The link to the various external websites are a light blue with no underline (I mean the HTML a href link). Now, underline in the world of HTML = a link!! Simple as that. Don't get me wrong, I'm a web dev/designer and I rather not use the underline (it's nicer on the eye) but I can't comment now on the amount of time I've replied to a post to only realize I've missed the link in the original question! Well, not only have I waisted the OP time by having to re-alert me I'm repeating his data, I've been marked down (well, it is my fault!) but worse, I may have spent a long time researching the answer!  I also know it could be my screen calibration etc, but, on SuperUser could we either have a darker colour or a rule so links are underlined through out?  EDIT As per Frédéric Hamidi , this has been asked before, but it was asked in 2009 so I'd like this to be a new consideration (if possible).


In some of the resources I have seen online about Java they say that it is not good to use the * in an import statement in Java. For example import java.io.*  I was wondering why this is considered bad practice. Is is solely because it makes it hard for another programmer to know exactly what classes you are using under the java.io package or is there another reason for it?

It is much more convenient and cleaner to use a single statement like  import java.awt.*;   than to import a bunch of individual classes  import java.awt.Panel; import java.awt.Graphics; import java.awt.Canvas; ...   What is wrong with using a wildcard in the import statement?


Is $\nabla \cdot (\nabla\times \textbf{F})$ = div $\textbf{F} $? Where $(\nabla\times \textbf{F})$ = rot $\textbf{F}$. If yes, why?

I am aware of an intuitive explanation  for $\operatorname{curl} \operatorname{grad} F = 0$ (a block placed on a mountainous frictionless surface will slide to lower ground without spinning), and was wondering if there were a similar explanation for $\operatorname{div} \operatorname{curl} F = 0$.


I have this error in cluster event      'Cluster node 'MMPDB1NEW' was removed from the active failover cluster membership. The Cluster service on this node may have stopped. This could also be due to the node having lost communication with other active nodes in the failover cluster'    But now even though my cluster nodes are online and quorum is healthy, still my node 2 database is showing not synchronizing/Recovery pending and in AlwaysOn health events I can see:     'A connection for availability group 'MTCBAG' from availability replica 'node1' with id.. to 'node 2' with id.. has been successfully established.     Should I need to wait until it synchronizes back or anything need to be done to bring back my secondary node?

Current Configuration: I have two SQL Servers, which are connected by the failover mechanism, meaning one is primary and one is secondary. I restarted both services on both servers sequentially. On the secondary server, all the databases are in the "Synchronizing" state. AG replication mode is synchronous. It has been 12hr it's still showing "Synchronizing" state. What I did so far to resolve Drop the database from the secondary server and remove the database from AG group on the primary server and add it back. Any insight on this, I am using SQL Server 2017.


So we bought a new build and found a heat register is directly under the dishwasher. Where the hvac is completely I stalled, the hardwood floor has not been cut and register dropped in.   My question is, should I complete the project or disconnect the supply line? Is it also normal for this placement? The builder says yes.

So we purchased a brand new home in June 2016 and found the builder put a heat vent under the dishwasher. He explained it's pretty normal but after asking HVAC pro's, it isn't.   My question is, should I have a toe kick vent installed? The builder didn't even cut the floor opening for it, but it is installed under the house.


When you asked "You don't love me, right?":  Which word is used to answer, "Right." or "Yes."?   If the answer is "Right":   --> Does "Right" mean "What you said is right, i.e., I don't love you.", doesn't it?  If the answer is "Yes":   --> Which does "Yes" mean, "Yes, what you said is right." or "Yes, I love you."?

I faced a problem to answer a negative question, for example, when someone asks you:      Don't you have any money?   It's a yes/no question but how should one answer the question without ambiguity?  When you answer "yes", does it mean "yes, I don't have any money"? or the other way "Yes, I do have money"? the questioner may think you are agreeing to the negative, that yes, you do not have any money.  I know it's better to answer with "on the contrary" but is it possible to answer yes or no?


I have a late 2014 iMac that is running Yosemite and is ccompatible with Mojave. But I want to upgrade the OS to High Sierra, not Mojave.  How do I do this?

Sometimes it's hard to search for older versions of macOS & OS X  on the App Store.  This is an attempt to provide the canonical QA for this issue, as per the Meta QA -  I expect it to be modified over time to hopefully become a complete information resource.  How can I get any older version of a Mac OS to be able to run as a VM, or to reinstall on my Mac?


I have a query that will update a row in the database, which works fine providing there is a row there to begin with.  How could I say; update if exists insert if doesn't?      require_once('../scripts/includePDO.php');      $who = $_SESSION['who'];     $formText = $_POST['protext'];  $sql = "UPDATE tbl_profiles SET proText = :formText WHERE user_id = :who";      $q   =  $conn->prepare($sql);     $q->bindValue(':who',$who,PDO::PARAM_INT);     $q->bindValue(':formText',$formText,PDO::PARAM_STR);     $q->execute();  header("Location: ../settings/?status=Done");

While executing an INSERT statement with many rows, I want to skip duplicate entries that would otherwise cause failure. After some research, my options appear to be the use of either:  ON DUPLICATE KEY UPDATE which implies an unnecessary update at some cost, or INSERT IGNORE implies an invitation for other kinds of failure to slip in unannounced.  Am I right in these assumptions? What's the best way to simply skip the rows that might cause duplicates and just continue on to the other rows?


May seen an obvious, but informations seems to be contradictory :  If Britain leaves the EU without a deal do we need a Visa for our holiday visit to Lanzarote Our trip spans the exit date 24th March to 4th April?

I am a British citizen and US permanent resident. I rarely need visas. However, I am considering a Mediterranean cruise in the spring or summer of 2019.  Unlike British politicians, I like to plan ahead and be prepared. If I am going to need a Schengen visa, I want to assemble the documentation early next year, so I can apply to the appropriate country as soon as I have an itinerary and it is at most 90 days before travel. Given how things are going, I am preparing for a hard, no-agreement, Brexit.  For trade, that would mean WTO rules. For personal travel, is there a similar fall-back that would allow me visa-free visits to the Schengen countries?


Is there a way to remove specific plugins and themes from showing up from the WordPress Updates page?

Is there any way to disable core and plugin updates? I am modifying a plugin and bit of WordPress Core (I know its a sin to do so), but can't help it.


I plan on applying to graduate school school soon and I'm confident the rest of my application will be pretty solid. However, I'm worried that a quant score of 160-163 will put me below the other applicants. Most have quant scores of 165+. I could break this, but I have a huge problem of making silly mistakes when under pressure and trying to keep a good pace.

When applying to a PhD program in the US, how does the admissions process work? If an applicant is weak in a particular area, is it possible to offset that by being strong in a different area?  Note that this question originated from this . Please feel free to edit the question to improve it.


I had a oil burning candle in a dark room and noticed a small shadow on the ceiling directly above the flame.  Its as though the candle throws light outwards in every direction except straight up.  I'm curious as to why it does this. Perhaps its due to the conical shape of the flame?

Why the intensity of light is more around the region of hot air around the flame of candle in the shadow cast by the light from the collimated source ?    Most of the articles mention it is due to the refraction of light through hot air around the candle's flame. But I'm unable to understand how refraction make this happen.


What I'd like to do is lock the screen and have it wait a set amount of time (eg 20 mins) before it lets me log back in - so I make myself to have a break from the computer.  Is it possible to do this?   Thanks    EDIT: Thanks for the suggestions - but I don't actually want something to remind me to take scheduled breaks. More something I can click when I realise I'm getting distracted and it'll immediately lock the screen for a fixed amount of time. Or even just lock screen if I can find a way to stop it letting me log in for 20 mins or so.

Various health reports indicate that sitting for too long working on the computer is not good for health. I need an app that can tell me to take a break, for example once every hour of continuous work.  It would be optimal if it can automatically detect how long it has been since my display was last unlocked or logged in and count from that time. When I take a break, I will lock the display and unlock it when I'm back.  Is there any such app for Ubuntu which help the user take regular breaks?


Hey I'm supposed to show that the sequence $a_n=(1+\dfrac{1}{n})^n < 3$. Can someone please help me out?

How can I elegantly show that: $(1 + \frac{1}{k})^k \leq 3$ For instance I could use the fact that this is an increasing function and then take $\lim_{ k\to \infty}$ and say that it equals $e$ and therefore is always less than $3$   Is this sufficient? What is a better wording than "increasing function"


Trying to get samples from  to work, I made the following     \documentclass{beamer} \usepackage{tikz-cd} \begin{document} \begin{frame}{Hello Commutative Diagrams}   \begin{tikzcd}     A \arrow{rd} \arrow{r}{\phi} & B \\     & C   \end{tikzcd} \end{frame} \end{document}   and get error on next-to-last line "Single ampersand used with wrong catcode."   I try removing the ampersands or prepending a backslash to them and get "No shape named tikz@f@1-2-2 is known."    I try leaving in the backslashes before the ampersands and wrapping the tikzcd in {...} and preceding it with a \matrix (m) [matrix of math nodes, row sep=3em, column sep=3em,ampersand replacement=\&], which I snipped from another StackExchange answer, and I get "can't nest pgfmatrix environments yet."  I'm out of ideas.

I am having trouble getting a basic example of a matrix of notes to show up in my beamer presentation. I am using the code copied from the pgf manual. Here is a complete working example. The error I get upon compilation is:  "Package pgfbasematrix Error: Single ampersand used with wrong catcode."  \documentclass{beamer} \usepackage{tikz} \usetikzlibrary{arrows,decorations.pathmorphing,backgrounds,fit,petri,positioning,matrix}  \begin{document}  \begin{frame}  \begin{tikzpicture} \matrix (magic) [matrix of nodes] { 8 & 1 & 6 \\ 3 & 5 & 7 \\ 4 & 9 & 2 \\ }; \draw[thick,red,->] (magic-1-1) |- (magic-2-3); \end{tikzpicture}  \end{frame} \end{document}


I installed KUbuntu 16.04.3 LTS in a flash drive and successfully booted to them from my Windows 10 PC . However , every file I make is lost when I restart my PC.  I think i have found the answer I'm looking for in another thread : I have created a live CD/usb that is only used to "try" ubuntu before installing them for real in a hard drive.  So the real question(s) is(are) :  a) is what i just wrote true  b) if it is , can i somehow install ubuntu to my flash drive ? If not , can i save files on my flash drive so I can access them when I restart my PC and boot to kubuntu ?  Kinda unrelated , but if b) isn't true :  I have an 1TB HDD hard drive and an 120GB SSD (the ssd has win10 installed) on in my pc. If I split my HDD to 900GB -124GB and use the 124gb partition to install kubuntu there , will I have to choose what OS I want to boot into every time I start my PC or can I make win10 the default and have to go to the bios every time i want to boot to kubuntu ?  The reason I ask this is because I dont wont to lose the "pc starts in 4 seconds" bonus from having a ssd :(

I want to make a persistent live Ubuntu USB drive with more than 4GB of storage.   I know there is an option of installing directly on the drive but I don't want to do this as it will restrict the drive from working on different computers.   One option is to make an additional partition with extra space but if I do this how can I get newly installed software to be stored on this partition?


Is it grammatically right if I use two predicates without using a conjunction to link them? There are many sentences using this structure when I read a composition. Examples:   He became a teacher, established his own family twenty years later.  I saw nothing decent in him, saw nothing more than a selfish man.    Usage of conjunction:

He called her, emailed her, texted her, tweeted her—all to no use.   Strictly speaking, I would need to write texted her and tweeted her, but I'm omitting and to convey a rhythm and sense of urgency. What do you call this kind of construction, and is it accepted grammar (at least for creative writing, if not in an academic context)?


For example, in Wingdings font:   What are the symbols in boxes used for?   I have checked the wiki pages of , ,  and , but I can't find what I want.

I know this, but I can't recollect at all.   What is this thing called?   They are usually centered in a book or writing and I'm certain they have a name but I can't remember for the life of me. They also come in all shapes, colors and sizes.


i tried to write my program in different ways but i couldnt figure it out .. the program execute only the code under else even even if the condition is verified  can anyone help me please  thanks   here is my code :  table.addMouseListener(new MouseAdapter() {      public void mouseClicked(MouseEvent e) {          int row = table.getSelectedRow();         int col = table.getSelectedColumn();         String path=table.getValueAt(row, col).toString();         String equipementMOID=txt.getText();          if(table.isColumnSelected(4) ){             if(table.getValueAt(row, 3).toString()=="UNIT" ){                 String equipementDate2=comboBox_10.getSelectedItem().toString();                 String xmlFile2=con.XMLSelection(equipementDate2);                 GetNode ne=new GetNode();                 try{                     String equipementXml2=ne.nodeToString(xmlFile2, equipementMOID);                     System.out.println(equipementXml2);                     //GetNodeByPath node=new GetNodeByPath(equipementXml2,path);                 }                  catch (SAXException | IOException | ParserConfigurationException e1) {                     // TODO Auto-generated catch block                     e1.printStackTrace();                 }             }                 else{                 String equipementDate1=comboBox_9.getSelectedItem().toString();                 String xmlFile1=con.XMLSelection(equipementDate1);                 GetNode ne=new GetNode();                 try{                     String equipementXml1=ne.nodeToString(xmlFile1, equipementMOID);                     GetNodeByPath node=new GetNodeByPath(equipementXml1,path);                 }                  catch (SAXException | IOException | ParserConfigurationException e1) {                     // TODO Auto-generated catch block                     e1.printStackTrace();                 }             }                  }        } });

I've been using the == operator in my program to compare all my strings so far. However, I ran into a bug, changed one of them into .equals() instead, and it fixed the bug.  Is == bad? When should it and should it not be used? What's the difference?


I don't know what I am doing wrong but I want to convert a string to a double, using std::stod, but it chops of the decimal points  int main() {   auto value = std::string("321415.1342");   auto val = std::stod(value, 0);   std::cout << val << '\n'; }   this program produces: 321415. The stof also produces the same result. My locale is listed below if it helps.  LANG=en_US.UTF-8 LANGUAGE= LC_CTYPE="en_US.UTF-8" LC_NUMERIC="en_US.UTF-8" LC_TIME="en_US.UTF-8" LC_COLLATE="en_US.UTF-8" LC_MONETARY="en_US.UTF-8" LC_MESSAGES="en_US.UTF-8" LC_PAPER="en_US.UTF-8" LC_NAME="en_US.UTF-8" LC_ADDRESS="en_US.UTF-8" LC_TELEPHONE="en_US.UTF-8" LC_MEASUREMENT="en_US.UTF-8" LC_IDENTIFICATION="en_US.UTF-8"

In my  I was printing a double using cout that got rounded when I wasn't expecting it.  How can I make cout print a double using full precision?


Due some weird issues with my current lubuntu I'm going to do fresh installation. But when I install lubuntu I need to do two things that I probably can't perform because I'm newbie.  I'm going to create 30GB of unallocated space on my SSD. I want to install lubuntu there and I want to create 20GB swap file. Can you please tell me how to do it? Another thing: When I will install Lubuntu I need to do mkling (symlink) hard symlink. I need to move entire /home/ folder from SSD to HDD partition. I don't want temporally link. I want to do move /home/ forever. Please explain me how to create 20GB page file when I install lubuntu and please send me commands and steps that allow me to do /home/ mklink

I have a wonderful running Maverick Meerkat install going on right now. I want to move my /home to another partition as per many suggestions.   How can I go about doing this without reinstalling the entire Ubuntu system? Can I simply create the partition with gparted and then change the mount point of /home in fstab to reflect it or is it a bit more difficult?


package com.mkyong.test;  public class Main {      public static void main(String[] args) {         String something = "";         callSomething(something);          System.out.println(something);     }      private static String callSomething(String something) {         something = "Hello Wrold !";         return something;     } }

I always thought Java uses pass-by-reference. However, I've seen a couple of blog posts (for example, ) that claim that it isn't (the blog post says that Java uses pass-by-value). I don't think I understand the distinction they're making. What is the explanation?


EDIT:  question's top answer talks about different compilation and production environments. The second answer is about fixing it in Eclipse. I am running this code in IntelliJ and I don't have different environments for compilation and production. I am just hitting the Run button in IntelliJ. Also the question is nowhere a duplicate of what is asked there.  I am trying to build a simple Spring program. This is the folder structure:  . ├── firstSpringProject.iml ├── pom.xml ├── src │   └── main │       ├── java │       │   └── com │       │       └── webograffiti │       │           ├── MainClass.java │       │           └── Student.java │       └── resources │           └── applicationContext.xml   Here is the code written in these files:  Student.java  package com.webograffiti;  public class Student {      private String name;      public String getName() {         return name;     }      public void setName(String name) {         this.name = name;     }      public void displayInfo(){         System.out.println("Hello "+name);     } }   MainClass.java  package com.webograffiti;  import org.springframework.context.ApplicationContext; import org.springframework.context.support.ClassPathXmlApplicationContext;  public class MainClass {     public static void main(String [] args){         ApplicationContext context = new ClassPathXmlApplicationContext("applicationContext.xml");         Student obj = (Student) context.getBean("student");         obj.displayInfo();     } }   applicationContext.xml  <?xml version = "1.0" encoding = "UTF-8"?>      <beans xmlns = "http://www.springframework.org/schema/beans"        xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance"        xsi:schemaLocation = "http://www.springframework.org/schema/beans         http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">      <bean id = "student" class = "com.webograffiti.Student">         <property name = "name" value = "Piyush"/>     </bean>  </beans>   I am trying to run MainClass.main(). But getting this exception:  Exception in thread "main" java.lang.NoSuchMethodError: org.springframework.beans.support.ResourceEditorRegistrar.<init>(Lorg/springframework/core/io/ResourceLoader;)V     at org.springframework.context.support.AbstractApplicationContext.prepareBeanFactory(AbstractApplicationContext.java:446)     at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:355)     at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)     at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:83)     at com.webograffiti.MainClass.main(MainClass.java:8)   I have all the dependencies needed to run this code, viz. spring-core, spring-beans, spring-osgi-core. This could be a classpath error but I am not able to figure out a solution.

I'm getting a NoSuchMethodError error when running my Java program.  What's wrong and how do I fix it?


A colleague of mine has macOS 10.15 (Catalina) and complained about the following thing: He uses the search bar in Mail and searches for something. Then in Xcode he presses CMD+F and sees the same email address there as the search input. We have checked and that is not in the system clipboard.  This synchronization of search strings might be a helpful idea, but in practice it does not make sense to search for things across applications. Is there some way to disable this behavior?

Mac OS X has a feature where if you use any search box in any app, it automatically overwrites every other search box with the text you searched.  I find this rarely useful and it often interferes with any workflow where I expect an individual app to stay pre-filled with what I last searched in that app. Is there any way to disable it?  (I've also never seen anyone discuss this feature anywhere. When was it introduced? Does it have a name? Is it mentioned anywhere in the documentation on developer.apple.com?)


My wife has an iPhone with little storage and has iCloud Photo Library enabled on her Mac and iPhone. Recently it's been hitting the limit of the phones storage and breaking other apps.   I would have thought that Photos would be smart enough to keep on thumbnails of the oldest photos, but about 80% of the phone storage is Photos.app and it just keeps downloading more.  What's the best way to handle this? The only options I have come up with are (1) curating photos and videos harder - deleting less good photos etc. (2) disabling iCloud Photo Library completely and only sync certain shared albums.

I’ve recently purchased a new Mac Mini, and I’ve been importing my old pictures into the Photos app.  I want to have these photos backed up to iCloud, along with the photos currently on my iPad. I then want everything synced to my Mac Mini, but not to my iPad, which has limited storage capacity.  Is it possible to have the Mac Mini and iPad set up to backup to iCloud, but only download backed-up photos to the desktop?


By the time data on whether they met the targets are made public, Mr Trump could be long gone.  i) The verb "are" takes which subject ? ii) How to understand/ find out the subject in this type of sentence? iii) what kind of sentence is this and what is the meaning of second clause?

Which sentence is correct:     In this section you can make a payment: verify carefully that all the data submitted is correct and confirm by clicking the Proceed button.   or     In this section you can make a payment: verify carefully that all the data submitted are correct and confirm by clicking the Proceed button.


So I'm writing an exam. It will have some as-yet-unknown number of pages P, and an additional 3 pages of a formula sheet. So the total length is N = P +3.  I need to write "This exam has $P$ pages, plus $3$ pages of formulas, for a total of $N$ pages".  I currently have a label at the end of the exam: \label{lastpage}, and so where I have P, I can write\pageref{lastpage}`.  But is there some way I can get N to be calculated automatically for me? I suspect it might exist in pgfmath, but I haven't used it in a while.

I'm trying to get the second last page as a number but without having to create a hyperlink to it.  What I have now is:  \def\leavesecond#1#2#3!{#2} \makeatletter \AtBeginDocument{%   \expandafter\ifx\csname r@LastPage\endcsname\relax     \newcommand\SecondLastPage{{\bfseries??}}%   \else     \newcounter{butlastpage}%     \setcounter{butlastpage}{\expandafter\leavesecond\r@LastPage!}%     \addtocounter{butlastpage}{-1}%     \newcommand\SecondLastPage{}%     \edef\SecondLastPage{\arabic{butlastpage}}%   \fi}   Which works, the problem is that I'm having some compatibility issues with fancy-preview due to a hyperlink created to the last page. Is it possible to define it without creating the hyperlink?


Consider this sentence :  "I was going down the hill and on my step down I saw a guy who appeared to be disguised".  "I was going down the hill and on my step down I saw a guy that appeared to be disguised".  which is correct usage of English in such case that or who?

I came across this :     Unbelievable as it may seem, many individuals that fought in the   American Revolution were still alive in 1839, the year the world was introduced to photography. (choose the error - the 'answer' is in bold)   It noted that the reason "that fought" is wrong is that 'The relative pronoun “that” may not be used to refer to people (“individuals”) and should be replaced with the relative pronoun “who.”'   I had thought that the word "that" could refer to both people and objects (while which was reserved for objects and who reserved for people). Am I wrong?


A quick google search will give many helpful  and  regarding constant acceleration relativistic rockets, but my question is somewhat different.  What if jerk is the parameter to be held constant in a relativistic rocket?  Two versions of such a rocket: a simple flyby scenario, with beginning and ending accelerations specified, and a destination scenario, that will involve a flip turn at some point (but unlike the constant acceleration situation, not at halfway!).  Initial velocities (and final for the destination scenario) should be zero.  I have just enough background physics to be interested in this, but my college courses never included the relativistic background to work it out easily for myself.  I have a degree in maths so integrals etc. are fine, but space-time metrics may need some explaining if they come up.   A  offers distance, acceleration, max velocity (max lorentz factor), ship/earth times of journey, fuel/payload ratio.  For constant jerk on a destination journey, I would also like to know when/where the flip would take place.  I want to write such a calculator myself, I just need the equations, or a method of deriving them myself.  (Of course I would not say no if someone pointed an existing one out to me.)  I also have the loftier goal of writing (or finding) a calculator that could give the above factors for any well-defined function of acceleration over time (or distance), if anyone knows of one or has been hoarding one on their hard drives.  [For the curious, there are various reasons why one might want to vary the initial and final accelerations that I can think of some offhand.  For the flyby constant jerk rocket, it could set out to rendezvous with another ship having a different acceleration profile and wants its profile to smoothly match upon arrival, or it could depart with inhabitants temporarily acclimatized to one acceleration but with a preference for a "cruising acceleration" at a different level.  For the destination constant jerk rocket, imagine flying from Earth to a Mars-gravity planet 10 light-years away, and having the entire flight as a slow adjustment period; alternatively, it seems to me that a constant acceleration rocket has to be working its engines a lot more in the beginning (when they have much more fuel mass to accelerate) than at the end; by keeping the engines on at full burn for constant thrust, acceleration will increase linearly throughout the flight.]

Describing acceleration in special relativity is in principle straightforward, and for simple cases the resulting transformations are simple. Examples include  and constant acceleration in the accelerating frame (the ). Anything more complicated is going to have to be done numerically, which is fine, but it's not immediately obvious to me how you'd go about this.  Let's call our frame $S$, and our metric is just the Minkowski metric. If we can write down an expression for the trajectory $x(t)$ in our coordinates $x$ and $t$ then everything is straightforward. But this isn't likely to be the case. It's more likely that the aceleration will be given in the accelerating object's frame $S'$ i.e. all we know is $a'(t')$.  So given that all we know is the form of $a'(t')$, how do we set about calculating the rocket's trajectory in our coordinates $S$? General principles will be fine as I'm sure I can work out the fine detail. It's just that I'm not sure where to start.  Assuming I'm not skirting too close to the homework event horizon, this might make a good blog type question. I've been thinking about writing an answer your own question post about acceleration in SR for some time.


I want to list only those directories which are a particular depth from current directory. Let's say depth=2  The directories listed can be:  ./abc/abc ./xyz/xyz   If depth is 3  ./mvd/123/abc   etc.

Festival stores voicepack data in the following example directory structure:  /usr/share/festival/voices/<language>/<voicepack name>  What is the simplest one-liner (preferably using ls) to print out just the <voicepack name>'s, in all the potentially numerous <language> subdirectories?


I downloaded a blender file from online, and all the menues like "view" "select" "pose" options are at the bottom, when they were normally at the top. Is there a way to reset all these UIs? Thanks

I've bougth cup models from internet.   In the ZIP I get the blend file and pressing F12 I can render the project (Do you call it project?)  But I don't see anymore the "Layout" tab, that is what I use the most.   Why and how can I go back to my usual interface?    Like in the Opening Layout:    UPDATE 1  I could open the file with the default layout, however I'm not seeing the objects in there:    UPDATE 2  How to open Collection 1? It's grayed out.


When I turn my Xbox on, the fan spins and the green light comes on, but after 10 seconds the green light goes red. I have got it working before but now its stopped, I can't get it to work anymore.  I have got an Xbox 360 slim 250gb. Is this possible to fix?

I've heard of kits that can fix your Xbox 360 if you happen to get the . Do any of these work, and do they void your warranty? Are there any other noteworthy tips or tricks?


How do I grep recursively in directories and sub directories in ksh on AIX?  I have tried grep -r but this is not available.

Which is more efficient for finding which files in an entire filesystem contain a string: recursive grep or find with grep in an exec statement?  I assume find would be more efficient because you can at least do some filtering if you know the file extension or a regex that matches the file name, but when you only know -type f which is better? GNU grep 2.6.3; find (GNU findutils) 4.4.2  Example:  grep -r -i 'the brown dog' /  find / -type f -exec grep -i 'the brown dog' {} \;


What’s the difference between these two:   I have known her for a long time. I have known her since a long time.   I think that the first one says that we have been friends for a long time but we broke our friendship recently, but that the second one says that we have been friends since a long time and our friendship still continues?  Is this accurate?

When you returned, I had been at home since 10 minutes.   When you returned, I had been at home from 5 minutes.  In such sentences, is it correct to use since or from? When since is used?


code::blocks version 17.12 Ubuntu MATE 19.10 1.22.2 gcc - 4:9.2.1-3.1ubuntu1 libavahi-client3 - 0.7-4ubuntu5 (although probably not relevant)   I have C++ app which uses avahi to communicate across the network. This compiles fine and links with:  g++  -o bin/Debug/Zeroconf obj/Debug/AVAHi.o {...} -lavahi-common -lavahi-core -lavahi-common -lavahi-client     So far, so good. I want to put the AvaHi functionality into a static library to make it easier for other developers. Ideally, I would like to include the Avahi library (among others) in my static library to make linking easier but it looks like the libraries it contains have to be linked by the executable - okay, fair enough.  Building the library works fine and goes off without a hitch and generates libHomeLib.a. Running nm on this shows the calls to AvaHi similar to:           U avahi_address_snprint          U avahi_alternative_service_name   so, not munged into C++ format.  Now, creating a simple C++ executable and adding the library to the linker options along with the Avahi libraries compiles fine and links with:  g++  -o bin/Debug/HomeConsole obj/Debug/main.o  -lglib-2.0 -lavahi-common -lavahi-client  /home/mike/Projects/HomeLib/bin/Debug/libHomeLib.a   (no -l for the library I added?). main () simply referenced a static object declared in the factory:  CHomeFactory *pFactory = CHomeFactory::get_factory ();   However, the link fails with:  /home/mike/Projects/HomeLib/AVAHi.cpp:27: undefined reference to `avahi_client_new' /usr/bin/ld: /home/mike/Projects/HomeLib/AVAHi.cpp:29: undefined reference to `avahi_service_browser_new' ...   and so on, naming all of the functions directly or indirectly called in the library which is odd since I could call any function from the current code without difficulty - I did by by adding a call in main:  avahi_client_new (NULL, (AvahiClientFlags)0, NULL, NULL, NULL);  This time, the compiler only complained:  /usr/bin/ld: /home/mike/Projects/HomeLib/bin/Debug/libHomeLib.a(AVAHi.o): undefined reference to symbol 'avahi_string_list_get_service_cookie' /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/libavahi-common.so: error adding symbols: DSO missing from command line   So I added a call to "avahi_string_list_get_service_cookie(NULL);" to main and got a clean link.  At the risk of being specific in my details but vague in my question, does anyone know what the hell is going on? Why does the link fail to connect the library calls unless they are referenced in the main executable?  It looks almost as if the first stage of the linker sees that the library isn't called in the code and so doesn't bother to include it which leads the final fixup stage to be unable to find the functions.

Why does the order in which libraries are linked sometimes cause errors in GCC?


I have a list of field names in an array:  String desiredFieldList; //'AccountId, Id, FirstName ... 'etc String originObjectName; //'Contact', or 'Opportunity' etc  queryString = 'SELECT ' + desiredFieldList + ' FROM ' + searchObjectName + ' WHERE Id=:searchObjectId';             List<sObject> sobjList = Database.query(queryString);   But for security review I need to check isAccessible() for each one of those fields for the given object. Normally I can do this using something like (Schema.sObjectType.Contact.fields.Email.isAccessible()) {} but in this case, since the list is dynamic, I'm not sure how to go about it. Any ideas?

shows a common way to check access in Apex with a syntax like:  if (!Schema.sObjectType.Contact.fields.Name.isAccessible()){     return ''; }   However, it is very time/space-consuming to check every single field you want to access/update manually one at a time, especially when you are working with tens of fields every time.   I know  automatically does this check and verifies access to fields but I don't see it commonly used in the community. Why?  And what is the fastest/most efficient way to ensure CRUD/FLS security of an app?


I have about 2000 rows to be inserted at a time. Which is Optimized method Multiinsert or insert into .. SEelec colum1, column2 from table . In case if Multi-insert, I will SELECT generate multiple statments in my application. So in short, which is Optimized? INSERT INTO table_name(column_list) SELECT     select_list  FROM     another_table WHERE    condition;  OR INSERT INTO table(c1,c2,...) VALUES     (v11,v12,...),    (v21,v22,...),     ...    (vnn,vn2,...);

Currently, I am trying to copy data from TABLE1 to TABLE2. In terms of insertions performance, would it be the same or faster if I would to do  BULK INSERT manually (i.e BULK insert every 10K records into TABLE2 via INSERT INTO TABLE2 VALUES (1,2), (5,5), ...), versus INSERT INTO TABLE2 SELECT * FROM TABLE1


I have a SanDisk Ultra 64GB (SDDD3-064G-G46) flash drive, which I haven't used in a while. Today I plugged it into my computer (I use Ubuntu Linux 17.04, but dual boot into Windows 10) and found it unable to load the drive. It even crashed the disks application when I tried to inspect it further.   I then booted into Windows 10, but I was also unable to inspect it there. I followed  to identify the causes, but DISKPART wouldn't start. I know that the drive is the problem because removing it caused diskpart to immediately open.  This drive caused two OS's drive inspection programs to fail. I think the drive is just broken, but I would be very happy if you could help me fix it. Thanks so much!

I have a USB flash drive which is no longer recognized by my computer. Windows Disk Management and DiskPart report No Media with no storage space (0 bytes) on the drive and I cannot partition or format the drive:     If the drive appears in Windows Explorer, trying to access it returns an error message indicating that there is no disk inserted, such as the following:     Please insert a disk into drive X:.   Various disk partitioning and data recovery utilities don't recognize the drive or only give a generic name for the drive and cannot access the contents of the drive.  What can I do? How do I recover data from the drive?     This question comes up often and the answers are usually the same. This post is meant to provide a definitive, canonical answer for this problem. Feel free to edit the answer to add additional details.


I have two tables: users and cities.  users               cities ------              ------ id(PK)              id(PK) name                name idCity(FK)   and I want to create that foreign key (idCity) properly. I am using phpmyadmin so I saw that I had to do:   Create an index on the table in which I want to create the foreign key, in this case, users, so I created an index called idCity that represents the column idCity. I went to the structure section and related that index with the id of the table cities.   But I have some doubts in the first step: What index of the five provided should I choose?  After reading  in which I did not clarify my doubts very much, I searched on SO and found this question:  that makes me to clarify a bit more my ideas but I still have some doubts about what I have to choose.  My thoughts of each index type   Primary: Of course I do not have to use it because what I want to achieve it is not a primary key, it is a foreign key. Index: I could not get a very clear idea of what this index it is but what I could understood on the question of SO that I put above it is: the index may contain rows with identical values in all columns of the index.   As my index represents only the column idCity and there could be a lot of users living in the same city, I think this could be the best option. Unique: UNIQUE refers to an index where all rows of the index must be unique. This is the main reason why I have doubts between this one and INDEX option. My index only represents one column and I want that the values in that column could be repeated, so I am not secure if I have to use it or not. FULLTEXT and SPATIAL: I have discarded these options because I saw that on phpmyadmin I have to create my tables as InnoDB type and these types of index are supported in other types of table.   My conclusion  I have doubts between UNIQUE and INDEX types of index. This is because I do not know if when someone refers to: UNIQUE refers to an index where all rows of the index must be unique, for example, when he is talking about all rows of the index, if it refers that all columns of the table do not have to be the same, that is what I would like to get (it can be more than one user living in a city but not two users repeated).  If it refers that all rows do not have to be the same I think the best approach have to be UNIQUE because I do not want that two rows will be the same but in the case that it only refers to the index itself (my idCity column) then I would have to choose INDEX type of index, because I want that more than one user could live in a city.  My questions   Am I creating my foreign key properly on phpmyadmin? I mean, Am I correctly following each step? Which of my conclusions is correct? Or none of them?   Edit: The question that has been provided as possible duplicate answers to my first one question but not to the second one. Please read the full question before mark it as duplicate. Thanks!  Thanks in advance!

I'm setting up a database using phpMyAdmin. I have two tables (foo and bar), indexed on their primary keys. I am trying to create a relational table (foo_bar) between them, using their primary keys as foreign keys. I created these tables as MyISAM, but have since changed all three to InnoDB, because I read that MyISAM doesn't support foreign keys. All id fields are INT(11). When I choose the foo_bar table, click the "relation view" link, and try to set the FK columns to be database.foo.id and database.bar.id, it says "No index defined!" beside each column. What am I missing? Clarification/Update For the sake of simplicity, I want to keep using phpMyAdmin. I am currently using XAMPP, which is easy enough to let me focus on the PHP/CSS/Javascript, and it comes with phpMyAdmin. Also, although I haven't been able to set up explicit foreign keys yet, I do have a relational table and can perform joins like this: SELECT *  FROM foo  INNER JOIN foo_bar  ON foo.id = foo_bar.foo_id  INNER JOIN bar ON foo_bar.bar_id = bar.id;  It just makes me uncomfortable not to have the FKs explicitly defined in the database.


I have flight with stop in HK at 14:30 for 3:30 hrs. Is it possible to get out airport and see something in HK?

I was wondering if there was anything I can do in Hong Kong for a small amount of time, aside from just hanging around in the airport.   Are there nearby places reachable within 30~ minutes of transport or less? Street food, parks, or anything at all?


Given: $\sqrt{\alpha}<x_1, \alpha >0, x_{n+1}=\frac{1}{2}\left(x_n+\frac{\alpha}{x_n}\right)$. Show $\lim_{n\to \infty}x_n=\sqrt{\alpha}.$ I have already shown the this is a monotonic decreasing function. Intuitively, I see in the end I get $\frac{1}{2}\left(\sqrt{\alpha}+\sqrt{\alpha}\right)$ but I'm not sure if I should keep going using $\lim$ notation or if I should switch to the definition of converging sequence.

a) Let $a>0$ and the sequence $x_n$ fulfills $x_1>0$ and $x_{n+1}=\frac{1}{2}(x_n + \frac{a}{x_n})$ for $n \in \mathbb N$. Show that $x_n \rightarrow \sqrt a$ when $n\rightarrow \infty$. I have done it in two ways, but I guess I'm not allowed to use the first one and the second one is incomplete. Can someone please help me?  We already know $x_n \rightarrow \sqrt a$, so we do another step of the iteration and see that $x_{n+1} = \sqrt a$.  Using limit, $x_n \rightarrow x, x_{n+1} \rightarrow x$ (this is the part I think it's incomplete, don't I have to show $x_{n+1} \rightarrow x$, how?), we have that   $$x = \frac x 2 (1 + \frac a {x^2}) \Rightarrow 1 = a/x^2 \Rightarrow x = \sqrt a$$ b) Let the sequence $x_n$ be defined as $x_{n+1}= 1 + \frac 1 {x_n} (n \in \mathbb N), x_1=1$. Show that it converges and calculate its limit. "Tip: Show that sequences $x_{2n}$ and $x_{2n+1}$ monotone convergent to the limit." I didn't understand the tip, how can this help me? Does it make a difference if the number is odd or even? Thanks in advance!