Prove that if $x$ is a multiple of both $a$ and $b$, then $x$ is also a multiple of $\operatorname{lcm}(a,b)$.  I couldn’t write a proper conditional logic statement. Can anyone help me?

Is $$d_1\mid n,d_2\mid n\iff [d_1,d_2]\mid n$$ true ? And if yes, how can I prove it ? I recall that $[d_1,d_2]$ is the least common multiple.  My tries  For the implication : Let $d_1\mid n$ and $d_2\mid n$. Then, $d_1d_2\mid n^2$. By the way, since $d_1,d_2\mid n$, we have that $(d_1,d_2)\mid n$ where $(d_1,d_2)=:\gcd(d_1,d_2)$  and thus $$[d_1,d_2](d_1,d_2)\mid n^2.$$  Question: How can I get $[d_1,d_2]\mid n$ from this?  For the converse, since $d_1,d_2\mid [d_1,d_2]\mid n$, the claim follow.


I have searched all over the internet for an answer to this question and have not found anything. Basically, my iPad is connected to my TV in my room and I don't want to have to get up every time a movie or show ends to go to the next one. This would be my primary use for it, but I'm sure I would find many other uses. I would like to be able to completely control my iPad screen from my iPhone (have it appear fully on the phone). Similar to controlling a PC or Mac from an iOS device. Any suggestions? I have an iPad 3rd gen (not Jailbroken) running 7.1 and an iPhone 5s (Jailbroken) running 7.0.4.

iPhones and iPads both have several apps aimed to be remotes for the PC/Mac -- mostly geared towards specific apps.  That's not what I'm asking about.  I'm interested in any way of using my iPad and iPhone/iPod touch side-by-side where the iPhone presents a menu of commands to control the iPad -- things like shortcuts, or better yet, buttons that invoke user-definable macros.  Does it exist?  Does the iPad have any way of being scripted through an API?  Note: VNC is irrelevant to this question.


I have the following question that I'd like to post somewhere:  What is the cheapest way to print a single copy of a public domain book? The Shabara Bhashya is an important text of Hindu philosophy, containing the traditional proof that Hinduism is true, but unfortunately it's out of print.  It's in the public domain and available as , but I'd like a physical copy of it.  My question is, what is the cheapest way to print a single copy of a book like this? I've found sites where you can print a single copy of a book if you upload a text PDF of the book, but in this case the PDF consists of image scans, not text.  (And OCR would produce a garbled mess, as there are a lot of Indian words in the book.)  So is there any way to print a public-domain book if you have have a PDF consisting of scanned images?  Now if the Stackexchange network had a "Service Recommendations" site, similar to Hardware Recommendations and Software Recommendations, that would be the ideal place.  But there isn't such a site.  So my question is, are there any sites where my question would be on-topic?

Stuff like polls, recommendations based on subjective constraints, puzzles, webcomics etc. do not belong on the serious main SE sites, where professionals should be considered at work and having just a few spare minutes ("code's compiling") to answer questions, so they should not be distracted by such things. However, I'd also like to have a home for these things still using the SE engine. For the reason I mentioned before, this needs to be a separate place though. Let's call it four.[sitename-here].com.


I have got myself stuck in a killing loop with a command block saying this: /kill (my username)  It was supposed to do it once, but instead it is killing me every second. I can't type a command in chat as I get killed before I finish it. Can you help me with this problem?

I set a command block to /tp. It was supposed to activate only if you had 0 time left, and to activate the command block with a hopper clock to keep giving it power.   But it is not checking if you have 0 time left, so it keeps teleporting me. I can't get close enough to the command block to break it, so I'm stuck in a neverending teleport loop.  Any ideas?


I have something like this     aabbabcaabda   for selecting minimal group wrapped by a I have this /a([^a]*)a/ which works just fine  But i have problem with groups wrapped by aa, where I'd need something like  /aa([^aa]*)aa/ which doesn't work, and I can't use the first one like /aa([^a]*)aa/, because it would end on first occurence of a, which I don't want.  Generally, is there any way, how to say not contains string in the same way that I can say not contains character with [^a]?  Simply said, I need aa followed by any character except sequence aa and then ends with aa

I know it's possible to match a word and then reverse the matches using other tools (e.g. grep -v). However, is it possible to match lines that do not contain a specific word, e.g. hede, using a regular expression?   Input:  hoho hihi haha hede   Code:  grep "<Regex for 'doesn't contain hede'>" input   Desired output:  hoho hihi haha


I’ve been googling this and avoiding this error in my bug fix list for a long time now, but I’ve finally reached the end of the list, the last of which I have to make a function return true/false to state whether the validation has succeeded or not.   I'm using ajax to compare certain fields with those that are already in the db and by default the $.post() method does it's operations asynchronously.  I’m setting a variable inside the call onSuccess and the calling method doesn't get a response because of this, so all my js/jquery fails on pageLoad... I would prefer if I could still keep using the $.post method.

I have a JavaScript widget which provides standard extension points. One of them is the beforecreate function. It should return false to prevent an item from being created.   I've added an Ajax call into this function using jQuery:  beforecreate: function (node, targetNode, type, to) {   jQuery.get('http://example.com/catalog/create/' + targetNode.id + '?name=' + encode(to.inp[0].value),    function (result) {     if (result.isOk == false)          alert(result.message);   }); }   But I want to prevent my widget from creating the item, so I should return false in the mother-function, not in the callback. Is there a way to perform a synchronous AJAX request using jQuery or any other in-browser API?


If $x=1+\frac{1}{\sqrt{2}}+\frac{1}{\sqrt{3}}+...+\frac{1}{\sqrt{1000000}}$, what is the value of $\lfloor{x}\rfloor$?  I'm sure I'm supposed to use telescoping series to solve this problem, but I don't know how to start. Can someone give me a hint?

How to calculate the integer part of the value of the following equation?  $$y=1+\frac{1}{\sqrt{2}}+\frac{1}{\sqrt{3}}+\frac{1}{\sqrt{4}}+\ldots+\frac{1}{\sqrt{1000000}}$$  It should be calculated in a special way, after all the equation is so long.


i added a sleep timer to close the app after a specified time entered by the user, everything is ok but when the time finishes the app crashes instead of just close. i have a class for the sleep timer and i added the code for closing the app as showing below. it is  System.exit(0); is there is another thing to do to avoid the app crash.?  private void startTimer() {         mEndTime = System.currentTimeMillis() + mTimeLeftInMillis;          mCountDownTimer = new CountDownTimer(mTimeLeftInMillis, 1000) {             @Override             public void onTick(long millisUntilFinished) {                 mTimeLeftInMillis = millisUntilFinished;                 updateCountDownText();             }              @Override             public void onFinish() {                 android.os.Process.killProcess(android.os.Process.myPid());                 System.exit(0);              }         }.start();          mTimerRunning = true;         updateWatchInterface();     }   when the timer finishes the countdown the app crashes instead of close and I saw below error in android studio Logcat.  **com.elmondal.radiomisr:serviceProcess E/AndroidRuntime: FATAL EXCEPTION: main     Process: com.elmondal.radiomisr:serviceProcess, PID: 22920     java.lang.RuntimeException: Unable to start service com.elmondal.radiomisr.service.PlayerService@2112053 with null: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.content.Intent.getStringExtra(java.lang.String)' on a null object reference         at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:3686)         at android.app.ActivityThread.access$1600(ActivityThread.java:199)         at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1681)         at android.os.Handler.dispatchMessage(Handler.java:106)         at android.os.Looper.loop(Looper.java:193)         at android.app.ActivityThread.main(ActivityThread.java:6669)         at java.lang.reflect.Method.invoke(Native Method)         at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)         at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)      Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.content.Intent.getStringExtra(java.lang.String)' on a null object reference         at com.elmondal.radiomisr.service.PlayerService.onStartCommand(**PlayerService.java**:62)         at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:3667)         at android.app.ActivityThread.access$1600(ActivityThread.java:199)          at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1681)          at android.os.Handler.dispatchMessage(Handler.java:106)          at android.os.Looper.loop(Looper.java:193)          at android.app.ActivityThread.main(ActivityThread.java:6669)          at java.lang.reflect.Method.invoke(Native Method)          at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)          at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)**    in the above error, there is a link for the onStartcommand in the playerservise.JAVA, when i click it it show me below code in the playerservise.JAVA.  @RequiresApi(api = Build.VERSION_CODES.JELLY_BEAN)     @Override     public int onStartCommand(Intent intent, int flags, int startId) {         streamUrl = intent.getStringExtra(AppConstants.STREAM_URL);         channelName = intent.getStringExtra(AppConstants.CHANNEL_NAME);         startPlayer(channelName, streamUrl);         pushServiceToForeground();         initializePhoneStateListener();         playerService = this;         return START_STICKY;     }

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?


I am asking if someone know any tutorial or tools that help me design characters like this in the following image (see the men in the header?):    and thank you so much.

I've got zero experience with drawing in real life and I don't have a tablet. Neither do I know anything about human proportions. But I do know my way around Photoshop & Pixelmator. My goal is to draw people somewhat like:    Are there any good tutorials or books out there which I should check out? I don't want to mess with it until it looks good, I'd rather start bit by bit so I get good at it.  (Image from American Presidents by )


I wanna customize Ubuntu mini CD and sell it to companies (make unique Ubuntu version). Is it legal? I mean we will do absolutely different system, but making it from mini cd.   Yeah, I really have FOSS spirit, and I want to share Linux and make it popular. But for live I need money, so I thought I can make different versions of Ubuntu with my DE and some unique things for each company. So that will be ideal job for me.

I'm starting a business and this is part of what I'm going to be offering. I'm almost complete with my certification in Linux Administration, but I don't know all of the ins and outs of the law Linux is under...


I encountered this question and I need some assistance to solve it.  $T$ is a linear transformation from $V \to V$  We are given that $T^2 = T$  Show that $T$ can be diagonalized.

If I have a projection $T$ on a finite dimensional vector space $V$, how do I show that $T$ is diagonalizable?


I have a continuous variable (total cholesterol mg/dl) and a dichotomous variable (gender). I want to see whether a relationship exists between the total cholesterol level and gender.   The data is non-normal and the assumptions for point-biserial correlation are violated. Is it appropriate to use a Spearman's Rho or a Kendall's Tau when one variable is dichotomous?

I would like to find the correlation between a continuous (dependent variable) and a categorical (nominal: gender, independent variable) variable. Continuous data is not normally distributed. Before, I had computed it using the Spearman's $\rho$. However, I have been told that it is not right.  While searching on the internet, I found that the boxplot can provide an idea about how much they are associated; however, I was looking for a quantified value such as Pearson's product moment coefficient or Spearman's $\rho$. Can you please help me on how to do this? Or, inform on which method would be appropriate?  Would Point Biserial Coefficient be the right option?


I am currently developing an application in salesforce and my application requires that my custom object has a lookup field for Task object. Suddenly salesforce doesn't support this feature. What is the reason why salesforce restrict custom object to create lookup field?

I do not see Task/Activity/Event as an option for a Lookup on my custom Lookup on the Case object.  I know Tasks are treated differently than other object but I cannot find any documentation stating that it is impossible.  Can someone confirm that is it not possible or let me know how to do it?


Longman  defines would as,  6. "would like" is used to say that someone wants something or wants to do something My parents would like to meet you.  But this English teacher said in a  "would like" should be used in specific situation (right-now need). So, I would say "would like" is a formal form of "want" but only for "wanting something in a specific situation" See scenario 1,  A: What do you want to do in your free time? (general "want") B: I would like to see my parents in my free time. (this sentence sounds very wrong to me though I am not a native speaker)  B needs to say: I want to see my parents in my free time. See scenario 2,  A: What do you want to do now? (specific "want", a "want it right now") B: I would like to see my parents right now. (this sentence is fine & sounds more formal than "I want to see...")  So, I would like to ask users, if the following usage is wrong.  A: What do you want to do in your free time? B: I would like to see my parents in my free time

What is the difference between the sentences  "I would love/like to play cricket" and " I want to play cricket." Is there any difference in the moods?


I tried to UV wrap a label to a bottle, but weird white lines appear on the UV wrap (lines in blue circles below). Original image does not have the white lines :    original image (cut):   UV Wrap printscreen:   weird polygon loops appear at upper and lower area:   Anyone can tell me what is the issue and how to fix it?  I am using Blender 2.81a, cycle.   Thanks!

I made a mesh with a decent topology, gave it a subdivision before UVing and UVed it after. Even still, when I subdivide it again after UVing I get some very ugly distortions on my checker textures. How to avoid this sort of issue? Frankly the mesh hardly shifts shape when I smooth, and even still the distortion is disgusting.   Edit:


I made this script for finding the solution to a puzzle. I had to put the numbers 1 to 9 through some arithmetic to get 66. But for some reason I get a list of approximates that include 68.5333333333, 68.6666666667, 69.6 and so on.   Here is my code (I'd be very grateful for peer review as well if that's ok):  def equation():     # intertools gives me the posibility to permutate a list of numbers, floating points for this case so I have decimals     import itertools     permutationlist = list(itertools.permutations([1.0,2.0,3.0,4.0,5.0,6.0,7.0,8.0,9.0]))     # I make a loop for every permutation, the last number is 9! for the last one     for n in xrange (0,362880):         currentlist = permutationlist[n]         # every variable is taken for each item in the current list         a = currentlist[0]         b = currentlist[1]         c = currentlist[2]         d = currentlist[3]         e = currentlist[4]         f = currentlist[5]         g = currentlist[6]         h = currentlist[7]         i = currentlist[8]         # if statement to pick up what computes to 66         # here is the problem, what part of == is not clear to Python?         if ((((((((((((a+13)*b)//c)+d)+12)*e)-f)-11)+g)*h)//i)-10) == 66:             print ('[%s]+13*[%s]/[%s]+[%s]+12*[%s]-[%s]-11+[%s]*[%s]/[%s]-10 =') % (a,b,c,d,e,f,g,h,i), ((((((((((((a+13)*b)/c)+d)+12)*e)-f)-11)+g)*h)/i)-10)         else:             pass         # next list...         n = n + 1  equation()

Consider the following code:   0.1 + 0.2 == 0.3  ->  false   0.1 + 0.2         ->  0.30000000000000004   Why do these inaccuracies happen?


I have a 120 GB SSD and a 500 GB HDD .  In the SSD I have partitioned 98 GB (usable) as C: to start Windows and 19 GB as E: to start Ubuntu. In the HDD I have partitioned 350 GB as D: for Windows data and 116 GB as F: for Ubuntu data.  I have not yet attempted to install Ubuntu and want to ask, will this work?

I'm thinking about installing Ubuntu Desktop, but I don't know what flavor is the best for my system. What are the minimum and recommended hardware requirements? What kind of CPU? How much memory? Should I have Hardware Acceleration? What flavor should I use?  This is an attempt of a canonical answer. My answers have the "official  requirements", the recommended are a mix of official sources and opinion based (along with the answer it's told the source). You can comment or edit if you feel that the information is obsolete or incomplete. It is a good rule of thumb that any system capable of running Windows Vista, 7, 8, x86 (Intel) OS X will almost always be a lot faster with any Ubuntu flavor even if they are lower-spec than described below.


How to make wrap on characters in Labeling layer settings. I tried various solutions, but it works. Does anyone know how to do?

How can I apply Multiline label option in the label property?  Name field contains a lengthy name. I want to wrap it.   My QGIS version is 1.8.


I was reading this Reddit post's comments: '' (NSFW), and came upon  (of sorts), where the plural of "penis" has been suggested to be either: "penises", "penii", or "penes".   I looked it up and   that "The hyperforeign Latinate penii is occasionally used as the plural in modern English."  Is "penii" or "penes" also correct in other contexts (medical or scientific, perhaps)? What are the correct plural forms of "penis"?

English has two grammatical categories of number.  One is the singular, and the other is the plural.  Many nouns in English have different singular and plural forms.  When nouns are borrowed from other languages into English, the plural form in the source language comes with it (at least sometimes).  However, not all languages have the same grammatical number categories that English has.  I think that some don't decline at all for number.  Some have more categories, like the dual and the trial[1].  If you import a noun from a language with more categories, do you use any different dual, trial, etc. forms that the noun has in the source language?  What about if you import a noun from a language that doesn't have grammatical number?  Do you decline it for number using English's "default" -s/-es scheme?  This is mostly or entirely contrived (currently, anyway).   See


How to match a string of array by if method. Means i take some value in a string array and take user input and then input match that string array is right or wrong if right give a value or wrong give other value.And I want to take input use it in loop. I have such a code and i do it without loop can match but can not use loop.   public class third {      public static void main(String[] args) {         Scanner user_input = new Scanner(System.in);          System.out.println("Enter a name:\n");         String first_name;         first_name=user_input.next();         String last_name;         last_name=user_input.next();           if(first_name.matches("Elory"))         {             System.out.println("MR. " + first_name + " " + last_name);         }         else if(first_name.matches("Fred"))         {             System.out.println("MR. "+ first_name+" "+last_name);         }         else if(first_name.matches("Graham"))         {             System.out.println("MR. "+ first_name+" "+last_name);         }         else if(first_name.matches("Amy"))         {             System.out.println("MS. "+ first_name+" "+last_name);         }         else if(first_name.matches("Buffy"))         {             System.out.println("MS. "+ first_name+" "+last_name);         }         else if(first_name.matches("Cathy"))         {             System.out.println("MS. "+ first_name+" "+last_name);         }         else          {             System.out.println(first_name+" "+last_name);         }      }  }

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 have a lot of mp3 files located at various levels of subdirectories inside a single folder and I want to move them all to a single directory, what command could I use to do this?  Thanks!

I have a bunch of .zip files in several directories:  Fol1/Fol2 Fol3 Fol4/Fol5   How would I do move them all to a common base folder?


So a few days ago I tried to install Spotify and it didn't work... I wasn't that upset since I was installing VirtualBox to run another OS (windows or mac) and had a .iso file on my microSD card. I plug the card into the adapter, plug the adapter into the computer, and it says it can't mount. I've read other forums to fix the mounting but it seems like every single command fails because of this line:   E: The list of sources could not be read. E: Malformed entry 1 in list file /etc/apt/sources.list.d/spotify.list   Does anybody have a solution for this?

I have unistalled and reinstalled the Ubuntu Software Center as per info I found in a similar thread and I got the same response about line 91 or something like that.  I just tried to upload a screen shot but since I'm new it won't allow me to.  I also can not figure out how to cut and paste anything so I have to hand type what the error screen says, both when I attempt to open the software center and nothing happens, when I try to enter commands into the terminal to uninstall, reinstall, whatever I get the same following:  COULD NOT INTITIALIZE THE PACKAGE INFORMATION An unresolvable problem occured while initializing the package information Please report t:his bug against the 'update-manager' package and include the following error message: 'E: Malformed line 91 in source list/etc/apt/sources.list (dist parse)  E: The list of sources could not be read.,  E: The package list of status file could not be parsed or opened.   How do I report bugs?  What can be done about this.  I have searched and everything everyone says to do leads me back to the same line error message.  So, I don't know how to get to line 91 in the source list; to tell you what it says. Sorry, I'm really new to this. That is what I need is to find out how to get there and fix what it says. I would really like to NOT have to re partition my hard drive and start from scratch, so I'm really looking forward to getting this problem solved. I need to be able to install new software.


I came to Berlin on December 27 and stayed until now.  My 90 days are almost over but last week I went to Croatia (which is not part of Schengen) for one night and came back to Berlin. My friends have told me that once I'm out of Schengen area I can restart my 90 days again.   Can I stay in Schengen area for another 90 days after leaving it for one day or do I have to leave it for 3 months to restart the 90 days period?

I have searched the web a lot and could not find an answer that fits my situation. Here are two links that are quite contradictory:       My situation:  I've visited Portugal in December 2012 for 29 days on a Schengen visa valid from December 1st, 2012 to February 1st, 2013 for research purposes (I am a Ph.D. student). I want to visit Sweden from February 10th, 2013 to May 10th, 2013 (89 days). I have applied for a Schengen visa again (for research). How will the 90/180 rule work in my situation?


How to do integration by parts when $\mu$ is a finite Borel measure. That this how to integrate by parts \begin{align} \int_0^\infty f(x) g(x) d\mu(x). \end{align}

Let $\mu$ be a general measure, suppose $f,g$ has compact support on $\mathbb{R}$, when does the integration by parts formula hold $$\int f'g d\mu = - \int g'fd\mu?$$ I know in general this is false, we can take $\mu$ to be supported on a point, say $0$, then it is not necessarily true that  $$f'(0)g(0) = -g'(0)f(0).$$  If $\mu$ is absolute continuous w.r.t. Lebesgue measure, we have $\frac{d\mu}{dx} = h$ $$\int f'gd\mu = \int f'gh dx = -\int f(gh)'dx$$ where $(gh)'dx$ might be a measure. but we can not recover the form $\int g'fh dx$.  Thank you very much!


Sorry if this is a naive question.   The independent variables are truly having different scale. They need to be standardized. The question is, does statsmodels.OLS do standardization for us as its first step, such that we don't need to do it ourselves?

In some literature, I have read that a regression with multiple explanatory variables, if in different units, needed to be standardized.  (Standardizing consists in subtracting the mean and dividing by the standard deviation.)  In which other cases do I need to standardize my data?  Are there cases in which I should only center my data (i.e., without dividing by standard deviation)?


If the full stop doesn't belong to the quotation, which punctuation option is preferred in British English?   He said, 'I've finished.'  He said, 'I've finished'.

I already found many related questions, but no sourced and exactly fitting answers, so I have to ask again.  I know there are different standards. I am interested in the British one. I was under the impression that punctuation was to be enclosed within the inverted commas, if and only if it formed part of the utterance. To my understanding, the following sources corroborate my statement (please note the position of the bold face comma):    Example from it:     ‘Economic systems’, according to Professor White, ‘are an inevitable byproduct of civilization, and are, as John Doe said, “with us whether we want them or not”’.     Edit: This one seems to be wrong. Unfortunately, I followed it for months.   Example from it:     "Hello", he said. "How are you today?"   Shockingly, it appears that the following contradicts my interpretation:   namely in the examples:     ‘You’re right,’ he said.   and     ‘I don’t agree,’ I replied.   Am I overlooking something? Is the standard changing? I am very confused!


I want to look for a certain string in several fields of a Model in Django. Ideally, it would go something similar to:  keyword = 'keyword' fields = ['foo', 'bar', 'baz'] results = [] for field in fields:     lookup = "%s__contains"     results.append(Item.objects.filter(lookup=keyword))   Of course this won't work, as "lookup" can't be resolved into a field. Is there any other way to do this?

Given a class:  from django.db import models  class Person(models.Model):     name = models.CharField(max_length=20)   Is it possible, and if so how, to have a QuerySet that filters based on dynamic arguments?  For example:   # Instead of:  Person.objects.filter(name__startswith='B')  # ... and:  Person.objects.filter(name__endswith='B')   # ... is there some way, given:  filter_by = '{0}__{1}'.format('name', 'startswith')  filter_value = 'B'   # ... that you can run the equivalent of this?  Person.objects.filter(filter_by=filter_value)  # ... which will throw an exception, since `filter_by` is not  # an attribute of `Person`.


I try to develop a super basic template language, and I have a problem with RegEx, I try to convert this:  # Tilte ## Subtitle ### Subsubtitle Lorem ipsum b(dolor) sit i(amet), consectetur u(adipisicing) elit   to this:
Title

Subtilte

Subsubtitle
 Lorem ipsum dolor sit amet, consectetur adipisicing elit   But I get this:

TEma 4

Subtitle
 Lorem ipsum Subsubtitle sit i(amet), consectetur u(adipisicing) elit   Here is my code:  input = ARGV[0]  regExes = {      h1: [/^# (.*)$/, "
", "
"],     h2: [/^## (.*)$/, "
", "
"],     h3: [/^### (.*)$/, "
", "
"],     b: [/b\((.*)\)/, "", ""],  }  strFile = File.read input  puts "\t", strFile  for index, regEx  in regExes      actualNode = regExes[index]     print actualNode, "\n"     strFile.gsub! actualNode[0], "#{actualNode[1]}#{$1}#{actualNode[2]}"  end  puts strFile   What should I do?

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 need help with one of the questions on the ESTA application form. 'Is your travel to the US occurring in transit to another country?'  I am flying in on the 3rd February from Sydney Australia to Vancouver Canada, transiting in San Francisco. Then I will fly on 17th February from Vancouver to Boston and staying in Boston.  Do I answer yes or no to this question?  Does the question on the ESTA application form 'Is your travel to the US occurring in transit to another country?' asking about the first entry into the USA? or for the entire trip.  If someone could just let me know whether I answer 'yes' or 'no' that would be much appreciated.

I go to México in some time, and my fly tickets first I go from Peru to the US, because of that I require a visa to enter US.  In my country I can apply for VWP, but I'm a little scared of getting denied, while I'm in México it is possible that I would make a short tourism travel to US but in the ESTA form there is the following question.     Indicate whether your travel to the US is occurring in transit to   another country by selecting yes or no. Answering this question is   required to complete your application.   If I choose yes, definitely I can not enter US?  What scare me a little is, if I select no and then my request is denied, getting the visa would be a little complicated.


I currently use x64 and I tried to install Microsoft Office 2010 Professional x86 & x64 and it failed with Wine and Play on Linux.  It says that it needs MSXML 6 SP1, yet installation fails every time. It says that it is not supported by the processor or that installation could not continue.  I can downgrade to x86, if that means that I can install Microsoft Office 2010?

I want to know how to install Microsoft Office (specifically, Microsoft Office 2010) in Ubuntu?   I am a die hard fan of MS Office and I want to know if there is a way I can use it in Ubuntu.


I've got 4 HD, 1 SSD for the system and 3 SATA HD for data. I had some problems with Windows and I decided to format my system HD (without partitions) and install just Ubuntu. I've installed Ubuntu, and now it can mount only 1 HD. For the other 2 HD I received the following message:  Error mounting /dev/sda5 at /media/arberto/Robetta new: Command-line `mount -t "ntfs" -o "uhelper=udisks2,nodev,nosuid,uid=1000,gid=1000,dmask=0077,fmask=0177" "/dev/sda5" "/media/arberto/Robetta new"' exited with non-zero exit status 14: The disk contains an unclean file system (0, 0). Metadata kept in Windows cache, refused to mount. Failed to mount '/dev/sda5': Operation not permitted The NTFS partition is in an unsafe state. Please resume and shutdown Windows fully (no hibernation or fast restarting), or mount the volume read-only with the 'ro' mount option.   I've read a lot of questions and answers about my problem, but everyone say to deactivate hibernation in Windows 8... but I have no more Windows 8!   I read it could be related to a file, hiberfile.sys. How can I delete it? I don't care about not saved sessions, and after all they are only data disks.  I've already do that:  But I want to write on that disks, and I don't want to mount them every time I start my pc.

Whenever I boot Ubuntu, I get a message that it cannot mount my windows partition, and I can choose to either wait, skip or manually mount.  When I try to enter my Windows partition through Nautilus I get a message saying that this partition is hibernated and that I need to enter the file system and properly close it, something I have done with no problem so I don't know why this happens.    Here's my partition table, if any more data is needed please let me know.     Device Boot      Start         End      Blocks   Id  System /dev/sda1            2048    20000767     9999360   83  Linux /dev/sda2        20002814   478001151   228999169    5  Extended /dev/sda3   *   478001152   622532607    72265728    7  HPFS/NTFS/exFAT /dev/sda4       622532608   625141759     1304576   82  Linux swap / Solaris /dev/sda5        20002816   478001151   228999168   83  Linux


Let's assume that I've got two text file a, b.  $cat a a a a a a a  $cat b b b b b b b   Then, I want to merge these two file vertically by using paste. The merged file is shown bellow  a a a a a a b b b b b b   NOT  $paste a b > AB $cat AB a a b b a a b b a a b b

In a folder containing X files, I need to concatenate Y files (where X > Y) together into a single text file. I have the filenames (of Y files) that I need to concatenate.


I have a Django Model which has a published_at field. I want to execute a function every 24 hrs after the published_at everyday. So if,  publish_at = '5 Feb 2020 12AM'  At 6 Feb 2020 12AM , a set of methods will be implemented At 7 Feb 2020 12AM , a set of methods will be implemented  for x days

I've been working on a web app using Django, and I'm curious if there is a way to schedule a job to run periodically.   Basically I just want to run through the database and make some calculations/updates on an automatic, regular basis, but I can't seem to find any documentation on doing this.  Does anyone know how to set this up?  To clarify:  I know I can set up a cron job to do this, but I'm curious if there is some feature in Django that provides this functionality.   I'd like people to be able to deploy this app themselves without having to do much config (preferably zero).  I've considered triggering these actions "retroactively" by simply checking if a job should have been run since the last time a request was sent to the site, but I'm hoping for something a bit cleaner.


I have to replace multiple words in a string.  my code is like this   var csku = "{len}";  var value = 5;  var finalPrice = "({con}*{len})+{wid}+{fixed_var}+{extra}+{sqft}+{len}"; console.log(finalPrice.replace(csku, value));   Using this code I got this solution   ({con}*5)+{wid}+{fixed_var}+{extra}+{sqft}+{len}   but I want this   ({con}*5)+{wid}+{fixed_var}+{extra}+{sqft}+5   I google it for replacing multiple words in the string using one call I find this   str.replace(/X|x/g, '');   Here / and g is used for multiple replace and in this format I have to add static word but in my code csku is not fixed so how can I replace all words in one call using variable

I would like to create a String.replaceAll() method in JavaScript and I'm thinking that using a regex would be most terse way to do it.  However, I can't figure out how to pass a variable in to a regex.  I can do this already which will replace all the instances of "B" with "A".  "ABABAB".replace(/B/g, "A");   But I want to do something like this:  String.prototype.replaceAll = function(replaceThis, withThis) {     this.replace(/replaceThis/g, withThis); };   But obviously this will only replace the text "replaceThis"...so how do I pass this variable in to my regex string?


Given the following function, f:  f (a b c d e) = (5*a + 4*b + 3*c + 2*b + 1*a) modulo 11  How can I distribute the modulo operation?  In short, How can I compute f without computing (5*a + 4*b + 3*c + 2*b + 1*a) first, and then mod-ing by 11.

For all $n \in \mathbb{N}$, $n > 1$ and $x,y \in \mathbb{Z}$ prove that      \begin{equation}   (x+y) \text{ mod } n   = ((x \text{ mod } n)+(y \text{ mod } n))\text{ mod } n. \end{equation}   Would this be a proof if I say:  Let $x = x' \text{ mod } n$ and let $y=y' \text{ mod } n$. Then  \begin{equation}   x+y = x'+y' \text{ mod } n. \end{equation}  Now, if we look at the current thing we want prove, this will follow:  \begin{equation}   x+y \text { mod } n = (x \text{ mod } n + y \text{ mod } n) \text{ mod } n. \end{equation}    I'm not sure if this is allowed or will count as a "proof" at all. Maybe you can show me some other ways of doing this, more precise ones?


I want to open bottom sheet dialog when i clicked bottom navigation item (Yandex Maps android app like. There is map on background always. Bottom navigation items just open bottom sheet dialog).   However i can not do that. Is it possible and if it is how?  I tried some fragment methods but app is crashing.  activity_main.xml  <?xml version="1.0" encoding="utf-8"?> <RelativeLayout     xmlns:android="http://schemas.android.com/apk/res/android"     xmlns:app="http://schemas.android.com/apk/res-auto"     xmlns:tools="http://schemas.android.com/tools"     android:layout_width="match_parent"     android:layout_height="match_parent"     tools:context=".MainActivity" >      <com.mapbox.mapboxsdk.maps.MapView         android:id="@+id/berkay"         android:layout_width="match_parent"         android:layout_height="match_parent">     </com.mapbox.mapboxsdk.maps.MapView>      <FrameLayout         android:id="@+id/frame_main"         android:layout_width="match_parent"         android:layout_height="match_parent"         android:layout_above="@+id/main_bottom">      </FrameLayout>      <android.support.design.widget.BottomNavigationView         android:id="@+id/main_bottom"         android:layout_width="match_parent"         android:layout_height="wrap_content"         android:layout_alignParentBottom="true"         app:menu="@menu/navigation"         android:background="?android:attr/windowBackground">     </android.support.design.widget.BottomNavigationView>   </RelativeLayout>    Bottom navigation item selection  private BottomNavigationView.OnNavigationItemSelectedListener navListener = new BottomNavigationView.OnNavigationItemSelectedListener() {         @Override         public boolean onNavigationItemSelected(@NonNull MenuItem menuItem) {              Fragment selectedFragment = null;              switch (menuItem.getItemId()){                 case R.id.navigation_map:                      break;                 case R.id.navigation_search:                     SearchFragment searchFragment = new SearchFragment();                     searchFragment.show(getSupportFragmentManager(),"SearchFragment");                     break;                 case R.id.navigation_event:                     selectedFragment = new EventsFragment();                     break;                 case R.id.navigation_profile:                     selectedFragment = new ProfileFragment();                     break;             }              getSupportFragmentManager().beginTransaction().replace(R.id.frame_main,selectedFragment).commit();              return true;         }     };   SearchFragment.java  import android.os.Bundle; import android.support.annotation.NonNull; import android.support.annotation.Nullable; import android.support.design.widget.BottomSheetDialogFragment; import android.support.v4.app.Fragment; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup;  import com.mapbox.mapboxsdk.Mapbox; import com.mapbox.mapboxsdk.maps.MapboxMap;  public class SearchFragment extends BottomSheetDialogFragment {     @Nullable     @Override     public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {         View v = inflater.inflate(R.layout.fragment_search,container,false);         return v;     } }    Logcat Error for SearchFragment case     java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Class java.lang.Object.getClass()' on a null object reference

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?


Is possible to find series  that: $\sum_{n=1}^\infty a_n$ is converges but $\sum_{n=1}^\infty a_n^3$ is diverges  I thought about something with $(-1)^n$ and Leibniz criterion but don't have idea.

Per the title, if $\sum_{1}^{\infty}(a_n)^3$ diverges, does this imply that $\sum_{1}^{\infty}(a_n)$ diverges?   I'd appreciate hints (!) for dealing with this excercise.  EDIT Per the contrapositive, it is not given that $a_n$ converges absolutely, or that it is nonnegative for all $n$.  Thank you!


I know this may seem like a duplicate question but I'm sure IT'S NOT, as I have searched a lot for an answer and I couldn't find one. So everyone is saying that one person cannot bend 2 elements at once, but if anyone else noticed the guy with the third eye in "The Last Airbender" (Combustion Man) he is bending both Fire and Air, how is that possible?

After reading this question  While it seems that it would break one of the rules of the show, that only the avatar can master all four elements. There would also be good reasons as to why someone couldn't learn all four, there is always the opposing element that is hardest for the Avatar to learn. I don't see any reason why someone couldn't learn to bend two elements (not master, but just bend since Thadeus's Answer  to the previous question is apparently the Definitive Answer on the subject.)    Many benders do learn to bend beyond their element such as Toph becoming a metal bender and Katarra bending blood. Now metal is considered part of the Earth but so is sand and it seems that sand is moved more like water. Iroh was able to adapt a water bender technique to fire bending which means it is possible to learn and use different bending styles. Also Iroh spent time connecting to the spirit world and that seems to be the main reason the Avatar is able to bend all 4 elements. So if someone was connected to the spirit world or even their past life that would fulfill that requirement.   Would it be possible to bend two elements?  There do seem to be times where it has been done in the series such as bending mud which is both Earth and Water. And there would definitely be limits such as a Earth bender couldn't bend Air and a Water bender couldn't bend Fire. But why couldn't a Fire Bender learn to bend Air. They both use breath control as a main focus of their bending. It also states on the Energybending wiki entry that all bending used to be done as an inner bending but that it became element bending.   So with new bending techniques being formed all the time, already stated used of combined elements being used, an assumed spiritual connection to a past life or a spiritual journey been taken, energybending rediscovered is it possible that two elements could be bent by one bender who is not the Avatar?


Suppose that a sequence $a_n$ of positive numbers converges to $a$. Show that $$\lim_{n\rightarrow \infty}\left(\prod_{i=1}^{n}a_i\right)^{1/n}=a$$ This seems to be simple using that $x=e^{\log x}$, but I can't go any further after using that.   PS. I'm almost sure that this post is a duplicate, but I wasn't able to find it here. I'm sorry if that's the case.

I would appreciate your help!  How can we show that if a sequence of positive real numbers $a_n$ converges to $a\in\mathbb{R}$ with $a>0$, then $(a_0 a_1\cdots a_n)^{\frac{1}{n}}$ converges to $a$.


#include<stdio.h> #define MYSIZEOF(X) ((X*)0 +1) int main() {     printf("%ld", MYSIZEOF(int));     return 0; }   Can any one please explain how it works ? thanks in advance

Does anyone have any good articles or explanations (blogs, examples) for pointer arithmetic?  Figure the audience is a bunch of Java programmers learning C and C++.


I'm asking about the MCU version of Thanos, but I'll accept answers sourced from the comics if no MCU answer is available (which I think is likely).  Thanos comes from the planet Titan.  We see in Infinity War that Titan was destroyed, presumably in a resource-driven civil war previously predicted by Thanos.  We also see, in Infinity War and in Endgame, that Thanos can fight off even the most powerful Marvel heroes at need.  I'm wondering if the other inhabitants of Titan had strength and abilities similar to Thanos.  Because if there were a whole planet of beings like Thanos, it seems odd that they wouldn't have just seized whatever resources they wanted from others.

The other night just as I was going to bed (10/05/2018 around 12:30 AM), on Free-to-air television in Australia on 7Mate (Channel 63) there was a program called Jabba's Avengers Special where they were talking about the Avengers, The Infinity Stones, Thanos etc.  There was a part where 2 people, a man and a woman (don't know their roles but they weren't actors, might have been part of the production team) were being interviewed about Thanos where the guy said that Thanos was a Mutant so that he was super strong and had super tough skin.  Now I would assume when the guy said Mutant he can't be using the terms that's described the X-Men and other characters with the X-Gene because it was my understanding that because of movie licensing Marvel Studios can't have Mutants (and thus why Quicksilver and Scarlet Witch are Enhanced Humans rather that being Mutants and children of Magneto).  So assuming that the guy is using the more generic form of the word, is Thanos a Mutant among Titans? If so what made him different from other Titans?


Prove the inequality:  $\frac{a}{c+a-b}+\frac{b}{a+b-c}+\frac{c}{b+c-a}\ge{3}$  Where $a,b,c$ are sides of a triangle.  It is clear that $c+a-b$ is positive but how to use it?

Let a, b, c be the three side lengths of a triangle. Prove that  $$\frac{a}{b+c-a}+\frac{b}{a+c-b}+\frac{c}{a+b-c}\geq 3$$  Under what conditions is equality obtained?


I have a function to take in and format user input, but it keeps cutting off the input after the 3rd character. void formatInput(char *input_variable) {     fgets(input_variable, sizeof(input_variable), stdin);     strtok(input_variable, "\n"); }  int main() {     char input_string[255];     printf("Enter input: ");     formatInput(&input_string[0]);     return 0; }  If I enter myinput then it gets stored as myi. If I don't wrap it in this function, then it works perfectly fine.

First off, here is some code:  int main()  {     int days[] = {1,2,3,4,5};     int *ptr = days;     printf("%u\n", sizeof(days));     printf("%u\n", sizeof(ptr));      return 0; }   Is there a way to find out the size of the array that ptr is pointing to (instead of just giving its size, which is four bytes on a 32-bit system)?


I have a question for you. It's a question that came up last night in a poker game and is still being debated by the group. Some say split, some say one winner. Please let me know how you would score this hand (see pic below). Please tell me who won, or if there was a tie, and also what the series of cards would be for the winning hand or tie. Also, if you're aware of any game variations that are played that would make both sides of the debate right (unlikely).   I'm not going to tell you what I think, because I don't want to bias your ruling. Just trying to get to the truth here.   Thanks so much!

I have K8 the other player has K9 K on the board and A comes on the river, who wins the hand


I don’t know how can I ensert the right braces using latex...  Any help is appreciated...

How can I get a brace on the right, not the left, to group cases, using cases? (I know actual cases look better with the brace on the left, but the items I need to group are not literally cases. They are a set of steps in an algorithm which I want to consider as an item.)  The following puts the brace on the left. All I need to do is to flip it to the right.  \begin{align} \begin{cases} a&=bbb\\ c&=ddddddd\\ e&=ffffffffff \end{cases} \end{align}   Thanks for any help with this!


In Windows 7, the new email notification that appears near the Windows taskbar (near running tasks section) contains an "X" that allows you to immediately delete an email message from the notification.  In Windows 8, the notification still appears, but it no longer has the delete button.  Is there a registry setting, or an option from w/in Outlook that can enable deletions?

I've got Microsoft Office 2013 Service Pack 1 running on my Windows 8.1 (with Update 1) laptop, which is a Dell Latitude E6430.  In previous versions of Windows + Office, you could delete an e-mail when the semi-transparent "new e-mail" notification popped up, in the lower right-hand corner of the screen. With Microsoft Office  2013 on Winodws 8.1, this does not appear to be possible.  Does anyone know if there's a way to delete an e-mail from the notification toast that pops up on Windows 8.1?


I've seen multiple solutions to this well-known problem (posed, among other sites, at ). None of the solutions are particularly simple. I was wondering if trigonometry (which the site I mentioned instructs you not to use) would yield an easier solution. Can anybody provide one?  EDIT: Multiple users have marked this as a duplicate question. The question they are referring to is far more general and probably far more difficult. All the answers that were given to it either lacked proofs or were incorrect. I'm looking for a specific, detailed, simple proof for this particular problem that takes advantage of trigonometry instead of elementary geometry.

This question is a "corollary" (if you will) to the  (external website). Formally, this is called Langley's Problem. The objective of that problem was to solve for angle $x^{\circ}$, with the given angles of $10^{\circ}, 70^{\circ}, 60^{\circ}, 20^{\circ}$. Someone presented a  to that problem. Here's also a rather  to a problem like this, but with different angles.  Now, I wanted to generalize this problem, replacing the angles of $10^{\circ}, 70^{\circ}, 60^{\circ}, 20^{\circ}$ with angles of $W^{\circ}, X^{\circ}, Y^{\circ}, Z^{\circ}$, respectively (see below picture).     How can we derive an analytical expression of angle $x^{\circ}$, in terms of $W^{\circ}, X^{\circ}, Y^{\circ}, Z^{\circ}$?


I am trying to find the command line package as I am wanting to install replicator g onto my system as I am involved with a 3d printing package.  But for the life of me I cannot find it I'm a newby at LINUX so need a lot of help. I have tried to locate in all menus and packages and then even tried to download one.   Nigel

A basic question: Where do I find the command line?  There is a lot of information about commands and using the command line, but I'm an absolutely new Ubuntu user: I can't find find the command line.


My code has a directory path incoming, e.g., $D_path from a source.  Now I need to check if the directory path exists and the count of files with a pattern (*abcd*) in that path exists or not in an IF Condition.  I do not know how to use such complex expressions through bash Scripting.

What command can be used to check if a directory exists or not, within a Bash shell script?


This section is from the .     In physics, work is done on an object when energy is transferred to   the object. In other words, work is done when a force acts on   something that undergoes a displacement from one position to another.   Forces can vary as a function of position, and displacements can be   along various paths between two points. We first define the increment   of work $\text dW$ done by a force $\mathbf F$ acting through an infinitesimal   displacement $\text d\mathbf r$  as the dot product of these two vectors:   Is it simply just a very small displacement?

In my Calculus class, my math teacher said that differentials such as $dx$ are not numbers, and should not be treated as such.  In my physics class, it seems like we treat differentials exactly like numbers, and my physics teacher even said that they are in essence very small numbers.   Can someone give me an explanation which satisfies both classes, or do I just have to accept that the differentials are treated differently in different courses?  P.S. I took Calculus 2 so please try to keep the answers around that level.  P.S.S. Feel free to edit the tags if you think it is appropriate.


How do you calculate the sum of this series?  $$ \sum_{n=1}^\infty 0.5n \left(\frac{2}{3}\right)^n $$

I would like to know: How come that  $$\sum_{n=1}^\infty n x^n=\frac{x}{(x-1)^2}$$  Why isn't it infinity?


Dumb Question - Can I undelete files in a directory I deleted in Unix - Centos. Is this possible ?

By accident, I used rm on a file I didn't want to delete. Is there a way that I can get it back under Linux?


I need help pretty major! I have tried UNetbootin and Wubi To intsall Ubuntu 14.10, neither worked, I have an HP 2000 and am running Windows 7 Ultimate (My computer came pre-installed with Windows 8... Its a long story) anyway! I need help! Please!!!   Edit: I don't have a DVD Rom or a USB Stick, so i need to install it without those, Wubi from what I understand is supposed to have an option to install like an application in windows, im not sure if this was removed with an update or anything. Also when I use wubi it attempts to download another .ISO for Ubuntu when the one I have is perfectly fine and all the files are intact. Untebootin just does not work for me for some reason.  Edit: Thank everyone for their help!! But i got it installed! Yayyyyy

I have an older i386 Sony Vaio desktop PC where the BIOS only allows boot from floppy, CD or very specific USB device types, none of which seem to recognize USB flash drives for some reason. Floppy is not an option because the drive no longer works and I have no media for it if it did. I've tried assorted CD and DVD drives, the CD drives all give read errors and DVD drives all say "unsupported emulation".  My next possible option that I would like to try, is to install the hard drive into another machine as a second HD and figure out a way to format it and save an Ubuntu installation to run from that HD once it is moved back into the target machine. IS this possible and if so, how would I go about doing so? The currently running machine uses Windows XP.


I have two users on SE. Both of them are registered in SO, and one of them is tied to other SE communities accounts like Arqade, ELL, etc. How can I sign into SO with one account while signing into other communities with another account? When I log out from one account from one community it seems I'm log out from all communities.

There has been some recent behavior change on SE (around July 2015).  I have two accounts I use, one Google openId based for one set of sites (call it Account-A) and another SE login based for a different set of sites (Account-B).  Used to be that I could be logged into one set of sites with the first user and a different set with the other users.    But now I am logged in with the Account-A on Site-1.  When I go to one of the sites I use the other account for and click "log in" under the SE menu, I go to a page where I only have an option to confirm creation of an account based on my Google login.  It does not present a way to log in with an SE account.    How can I log in with my other account here?  (and before you flag this as a duplicate, please ensure the other question is recent enough and that the answer is relevant.  This behavior has definitely morphed over the years... and I am having trouble finding something that is relevant.  For instance this question  simply points out how to merge the accounts which is NOT what I want  .  This question  talks about presenting different user info on each site but that's not what I want -- I want totally separate accounts).


Let $F$ be a field of characteristic $p>0$ and $a\in F$.   I have an easy question which I'm stuck on.      If the polynomial $X^p-a$ has no zeros in $F$ then is it irreducible over $F$?        Thank you!

Hungerford's book of algebra has exercise $6$ chapter $3$ section $6$ [Probably impossible with the tools at hand.]:     Let $p \in \mathbb{Z}$ be a prime; let $F$ be a field  and let $c \in  F$. Then $x^p - c$ is irreducible in $F[x]$ if and only if $x^p - c$   has no root  in $F$. [Hint: consider two cases: char$(F) = p$ and   char$(F)$ different of $p$.]   I have attempted this a lot. Anyone has an answer?


Does there exist any geometrical description of canonical commutation relation of quantum mechanics $$[\hat{x},\hat{p}]=i\hbar$$  maybe in phase space?  What I meant by geometry is along the lines that since commutator along with normalization condition leads to the discretization of energy of a bound system so does there exist some kind of phase space representation like  which would tell me why and how exactly using the CCR actually leads to the discretization of energy? Also, I would like to avoid going for Wigner representation because if I remember correctly we have commutating functions in WR when plotting phase space? And while we're at it does the phase space of a quantum system has to do anything with connes noncommutative geometry since $\hat{x}$ and $\hat{p}$ do not commute so we cannot do something like  as we do in classical mechanics?

Does there exist any geometrical description of canonical commutation relation (CCR) of quantum mechanics $$[\hat{x},\hat{p}] = i \hbar \, ,$$ e.g. in phase space?  The commutator, along with the normalization condition, leads to the discretization of energy of a bound system, so does there exist some kind of phase space representation as in  which would tell me why and how exactly using the CCR actually leads to the discretization of energy? I would like to avoid going for the Wigner representation (WR) because, if I remember correctly, the RW has commuting functions in phase space. While we're at it, does the phase space of a quantum system has to do anything with connes noncommutative geometry since $\hat{x}$ and $\hat{p}$ do not commute so we cannot do something like  as we do in classical mechanics?


I tried use remove malformed by doing follow this: , but it's not successful.  And after I type: sudo apt update, the result is still not change:  This is:  E: The list of sources could not be read.  E: Malformed entry 1 in list file /etc/apt/sources.list.d/dotnetdev.list (Component)  E: The list of sources could not be read.

I have unistalled and reinstalled the Ubuntu Software Center as per info I found in a similar thread and I got the same response about line 91 or something like that.  I just tried to upload a screen shot but since I'm new it won't allow me to.  I also can not figure out how to cut and paste anything so I have to hand type what the error screen says, both when I attempt to open the software center and nothing happens, when I try to enter commands into the terminal to uninstall, reinstall, whatever I get the same following:  COULD NOT INTITIALIZE THE PACKAGE INFORMATION An unresolvable problem occured while initializing the package information Please report t:his bug against the 'update-manager' package and include the following error message: 'E: Malformed line 91 in source list/etc/apt/sources.list (dist parse)  E: The list of sources could not be read.,  E: The package list of status file could not be parsed or opened.   How do I report bugs?  What can be done about this.  I have searched and everything everyone says to do leads me back to the same line error message.  So, I don't know how to get to line 91 in the source list; to tell you what it says. Sorry, I'm really new to this. That is what I need is to find out how to get there and fix what it says. I would really like to NOT have to re partition my hard drive and start from scratch, so I'm really looking forward to getting this problem solved. I need to be able to install new software.


If $n > 2$, show that $$\left(n!\right)^2 > n^n$$  Although the problem is pretty obvious, I couldn't come up with a rigorous proof. I was thinking some sort of AM-GM, but couldn't build anything concrete.  I have a feeling this problem could be a duplicate, I tried to google, and even searched on the stackexchange network, couldn't find it.

Show that if $n>2$, then $(n!)^2>n^n$.     My work: I tried to apply induction. So, at the induction step, I need to prove, $n^n>(n+1)^{n-1}$ Here, I tried to use induction again without any luck. I also took log of both sides, but I did not get anything. Please help!


When I read asterisk source code, I found a code line like this:   #define ARRAY_LEN(a) (size_t) (sizeof(a) / sizeof(0[a]))    I often use a[0] or (*a), but they use (0[a]). Could you please help me explain more clearly about this?

As Joel points out in , in  (aka: K & R), there is mention of this property of arrays in C: a[5] == 5[a]  Joel says that it's because of pointer arithmetic but I still don't understand. Why does a[5] == 5[a]?


There is one , but I don't get it quite. In fact that answer raised the few additional questions I liked to share.  1. How would you define the tails of the distribution? Seams that this is a fundamental question. In this question you used the mathematical formulation of survival function but I guess you may define the tails based on areas: $(-inf, μ−3σ]$ and $[μ+3σ,inf)$. My hypothesis is if some distribution has "fatter tail" that would be larger area under the PDF curve in that tail area. Is this a good definition of tails of just a simplification? I can agree that on Wikipedia at the moment there are several  at least regarding the fat tailed distribution evaluation based on skewness and kurtosis examination. You confirmed: Please note that moments, like skewness or kurtosis, are not good for characterizing tail behavior. 2. Why the density is not the correct object to study? PDF for continuous functions seams like the best possible function to study because it must add to 1 by definition. So far I meat some distributions like Cauchy that don't have Moment Generating function i.e. don't have moments but how can continuous distribution be without a PDF? Isn't that if we know the CDF ( I like the term cumulative in here) we should know the PDF? 3. CDF should be continuous, and this is the reason for the 2. This is more like helping me to understand the dynamics behind your answer. 4. The terms fat-tailed and heavy-tailed are sometimes synonymous This is from . Would you agree these are synonyms. In here I think the term "long-tailed" is definitely not the synonym with the upper two. Possible confirmation would be fine.

From readings about heavy-, and long-tailed distributions, I understood that all long-tailed distributions are heavy-tailed, but not all heavy-tailed distributions are long-tailed.  Could somebody please provide an example of:   a continuous, symmetric, zero-mean density function that is long-tailed a continuous, symmetric, zero-mean density function that is heavy-tailed but not long-tailed   so I can better understand the meaning of their definitions?  It would be even better if both could have a unit variance.


Can you tell me the link where I can find the ISO Image for the Dell Latitude D410 with a i686 processor Thanks and regards Hermann

I'm thinking about installing Ubuntu Desktop, but I don't know what flavor is the best for my system. What are the minimum and recommended hardware requirements? What kind of CPU? How much memory? Should I have Hardware Acceleration? What flavor should I use?  This is an attempt of a canonical answer. My answers have the "official  requirements", the recommended are a mix of official sources and opinion based (along with the answer it's told the source). You can comment or edit if you feel that the information is obsolete or incomplete. It is a good rule of thumb that any system capable of running Windows Vista, 7, 8, x86 (Intel) OS X will almost always be a lot faster with any Ubuntu flavor even if they are lower-spec than described below.


I'm trying to extract some data from html source code to my java project. The html is taken from "Bing search images" and I wanna get all the images from the  tag. This is the html code:  <a href="/images/search?q=nba&amp;view=detailv2&amp;&amp;&amp; id=FE19E7BB2916CE8B6CD78148F3BC0656D151049A&amp; selectedIndex=3&amp; ccid=2%2f7OBkGc&amp; simid=608035681734625885&amp; thid=JN.tdPCsRj4HyJzbwA%2bgXsS8g"  ihk="JN.tdPCsRj4HyJzbwA+gXsS8g"  m="{ns:&quot;images&quot;,k:&quot;5070&quot;,dirovr:&quot;ltr&quot;, mid:&quot;FE19E7BB2916CE8B6CD78148F3BC0656D151049A&quot;, surl:&quot;http://www.nba.com/gallery/rookie/070727_1.html&quot;, imgurl:&quot;http://www.nba.com/media/draft_class_3_07_070727.jpg &quot;, ow:&quot;300&quot;,docid:&quot;608035681734625885&quot;,oh:&quot;192&quot;,tft:&quot;58&quot;}"  mid="FE19E7BB2916CE8B6CD78148F3BC0656D151049A"  t1="The 2007 NBA Draft Class"  t2="625 x 400 · 374 kB · jpeg"  t3="www.nba.com/gallery/rookie/070727_1.html"  h="ID=images,5070.1">    and this is how i tried to extract it but no succeeded:  public static void main(String[] args) {          String title = "dog";         String url =    "https://www.bing.com/images/search?q="+title+"&FORM=HDRSC2";         try {             Document doc = Jsoup.connect(url).get();             Elements img = doc.getElementsByTag("a");              for (Element el : img) {                 String src1 = el.absUrl("imgurl");                 String src2 = el.absUrl("surl");                 System.out.println(src1 + " " + src2);                   }         } catch (IOException e) {             e.printStackTrace();         }      }   Any idea if it's possible?

I want to parse some HTML in order to find the values of some attributes/tags etc.  What HTML parsers do you recommend? Any pros and cons?


I see countless of people using "can", "could", "will" and "would", simply using them, mixing them up and more. I am not sure and want to be clear of the meaning, usage and difference of these words. These are a few examples: Can and could a) I can check your order and see how is the status. b) I could check your oder and see how is the status. a2) Can you give me a lift back home? b2) Could you give me a lift back home? Will and would a) I will help you with your homework tomorrow. b) I would help you with your homework tomorrow. a2) Will you refund my money? b2) Would you refund my money?

I can work. I could work. I will work. I would work. I shall work. I should work.


Is a P value of 0.4 statistically significant for a Wilcoxon Rank Sum test?

Regarding s, I am wondering why $1$% and $5$% seem to be the gold standard for "statistical significance". Why not other values, like $6$% or $10$%?  Is there a fundamental mathematical reason for this, or is this just a widely held convention?


I accepted an answer to this question:    but the bounty was awarded by Community ♦ to another answer. Why did this happen?

It's possible to offer and award bounties of reputation on questions.   What is a bounty? How can I find questions that have a bounty attached? How do I start a bounty? When can I start a bounty? Why is the system requiring me to choose a bounty amount that's higher than the minimum? Can I use Markdown formatting in the bounty remarks? Can I edit the remark? How long is the bounty period? How do I award a bounty? Can I award a bounty to my own answer? Can I award a bounty to an old answer? If I offer a bounty on someone else's question, can I award the bounty to their answer? After awarding the bounty, can I remove it or move it to another answer at a later time? What happens if there's no answer after the bounty period? What happens if I feel my question is still unanswered? What is automatic awarding? Are bounty awards exempt from the 200 points/day reputation limit? How does Community Wiki mode affect bounties? How does user deletion or post dissociation affect bounties? Can I award a bounty to an answer from a deleted user or one where the author was dissociated? Can I offer a second bounty after the first one has expired? Can I raise my bounty? What happens if a bounty question is closed or deleted? Why can't I vote to close or migrate a bounty question? What happens if I delete my account while I have an active bounty? Do I keep an awarded bounty when I delete my answer? What happens if a question where I awarded a bounty later gets deleted or migrated? Can I cancel my bounty? Can I affect / divide / share part of my bounty to two (or more) users? How many outstanding bounties can a single user have?      See also:  in the Help Center


I've literally tried everything including proofs by cases. If I were to try a an odd integer, then I would get $8k^3 + 4k^2 + 8k^2 + 4k + 1$, which obviously couldn't convert to a $\mod 7$, and I'm honestly not sure what I can do! Does anyone here have any tips?  Note, this is a soft question.

Yeah so I'm kind of stuck on this problem, and I have two questions.   Is there a way to define a number mathematically so that it cannot be a multiple of $7$? I know $7k+1,\ 7k+2,\ 7k+3,\ \cdots$, but that will take ages to prove for each case.  Is this a proof? $$(7k + a)^3 \equiv (0\cdot k + a)^3 \equiv a^3 \bmod 7$$    Thank you.


This has probably been asked and answered elsewhere, but I can't find it, so....  I designed a simple animated logo in Blender, with a spinning earth between two light-emitting text objects, with two point lamps for extra light. I rendered and saved the animation, and then used a gif conversion utility to save it as a gif. That all worked fine, but ...  ... I decided I wasn't satisfied with the lighting. So I did Save As to start a new file, deleted the two point lamps from my original file, then added two Sun lamps (a Sun emitting a golden color from the left, a Moon emitting a pale blue from the right) and two dim Hemi lamps for high- and low-fill.  But when I Render I still get my original lighting. Similarly, if I Render Animation, I still get the original lighting.  How do I refresh the render process so I can see my new lighting?  Here is the Blender file:    UPDATE: Simply, it's not performing new renders. I deleted all of the original render frames, then clicked Render ... and I get a blank screen, because render image it had been displaying is no longer there.  UPDATE2: I went back and reopened the original file, from which I did a Save-As to create this new file ... and the original will not perform a new render either.  If I click the Render button, I get a blank screen, because the previous render (that it had been displaying) has been deleted.  Again, this is not about what I see in my 3D View. I see my lighting changes there. But I can't render a new image, or a new animation, at all.  UPDATE3: The solution was, per the answer below, to turn off Sequencing and Compositing in Properties > Render > Post Processing.  The relighted animation starts with this frame:    In the 180th frame, the earth has almost completed one rotation:    The lighting looks as I'd hoped: warm sunlight from direct left and cool moonlight from direct right, with dim neutral lights along the centerline to mute what would otherwise be a deep shadow at the sunset-moonrise horizon.  In clock terms, it's 12:00 noon on the left rim of the earth, and 12:00 midnight on the right rim. In terms of physics, my moonlight is far too bright; it's 1/2 the intensity of the sunlight, whereas in reality the ratio is about 1:400,000. But with the cooler color, it gives the effect I wanted.

Blender is rendering an older version of my project, not the most recent one. I have made it using the Blender Render but it does not want to render in cycles either. A black and grey screen is rendered as if everything is transparent. Checked general camera, lighting and compute devises in case I messed something up but I can't find anything. All my textures and objects look normal, does anybody know what is wrong or what to check?  Ok added link:


For the shipping fees and sub total, I have declared it as double. However     they just display an amount of 25.0 or 128.0 with just one decimal. I wish to display 25.00 or 128.00 instead. How should I modify my code?  @Override protected void onResume() {     super.onResume();      // Refresh the data     if(mProductAdapter != null) {         mProductAdapter.notifyDataSetChanged();     }      double totalweight = 0;     double shippingfee = 0;     for(product p : mCartList) {         int quantity = ShoppingCartActivity.getProductQuantity(p);         totalweight += p.weight * quantity;         shippingfee = ShoppingCartActivity.getShipping(totalweight);     }      double subTotal = 0;     for(product p : mCartList) {         int quantity = ShoppingCartActivity.getProductQuantity(p);         subTotal += p.price * quantity;     }     if (subTotal >= 150){         shippingfee = 0;         subTotal += shippingfee;     }     else{         for(product p : mCartList) {             int quantity = ShoppingCartActivity.getProductQuantity(p);             totalweight += p.weight * quantity;             shippingfee = ShoppingCartActivity.getShipping(totalweight);         }         subTotal += shippingfee;     }     TextView productPriceTextView = (TextView)      findViewById(R.id.TextViewSubtotal);     productPriceTextView.setText("Subtotal: RM" + subTotal);     TextView productWeightTextView = (TextView)      findViewById(R.id.TextViewSubweight);     productWeightTextView.setText("Shipping Weight: " + totalweight +" kg");     TextView productShippingTextView = (TextView)      findViewById(R.id.TextViewShipping);     productShippingTextView.setText("Shipping Fee: RM" + shippingfee); }

What I would like is a method to convert a double to a string which rounds using the half-up method - i.e. if the decimal to be rounded is 5, it always rounds up to the next number. This is the standard method of rounding most people expect in most situations.  I also would like only significant digits to be displayed - i.e. there should not be any trailing zeroes.  I know one method of doing this is to use the String.format method:  String.format("%.5g%n", 0.912385);   returns:  0.91239   which is great, however it always displays numbers with 5 decimal places even if they are not significant:   String.format("%.5g%n", 0.912300);   returns:  0.91230   Another method is to use the DecimalFormatter:  DecimalFormat df = new DecimalFormat("#.#####"); df.format(0.912385);   returns:  0.91238   However as you can see this uses half-even rounding. That is it will round down if the previous digit is even. What I'd like is this:  0.912385 -> 0.91239 0.912300 -> 0.9123   What is the best way to achieve this in Java?


Background From what I’ve learned during grade school, information which can easily be , you should use an when the following word starts with a vowel:  "An animal" "An alien" "An ewok"  And a when the following noun starts with a consonant:  "A car" "A radio" "A xylophone"  Following these rules seem to ease how we pronounce things. If I reversed the rules and tried saying An xylophone, or a alien, I seem to struggle more than if following the rules.  Confusion When pronouncing the acronym LEA, short-hand for Local Educational Agency Representative, myself and my peers would use "an", such as:  "Do you have an LEA?" "An LEA is required for that."  I’m not sure if this is specific to acronyms, since a LEA may be ambiguous:  a LEA ALEA  However, I’ve seen/used acronyms following an a without issue:  a PHP file exists in the system   Question Would saying an LEA be improper? Is there a documented reason for why this rule complicates how we pronounce our words?

99% of the time, I'm clear on when I should use "a" versus "an." There's one case, though, where people & references I respect disagree.  Which of the following would you precede with "a" or "an," and why?   FAQ FUBAR SCUBA   [Note: I've read the questions  and , but the rules given there don't necessarily apply here.]    [Edited to add]  Here's a shorter (and hopefully clearer) version of the question…  In written English, which is correct (and why): "a FAQ" or "an FAQ"?  Some references with differing opinions:   an: the  and  a: the Microsoft Manual of Style for Tech Publications, 3e either: the  and


I have bad situation.  I applied for residence permit on 23 Sept 2019 and I left italy the next day 24 Sept 2019. I am in my country untill today and its been more than two months since I last left italy.  I want to travel back, I have expired residence permit and receivuta.  Will there be any problem? Kindly let me know, i will be very thankful to you. PS: I could not travel because I had some emergency situation.

I plan on traveling back to my home country for 10 days. I applied for the renewal of my residence permit 2 weeks before it was set to expire. Will it still be a problem? I am asking because in IATA it says: Applications for renewal must be made within 60 days of expiring, otherwise immigration could refuse re-entry, even if holding confirmation of application  Does the above statement mean it is okay to have applied for the renewal within 60 days after expiring? Because in that case, I guess I am safe. I am sorry but for some reason, my English sentence comprehension collapsed when trying to read the above-highlighted sentence


I'm using a program that exports an image to the clipboard. If I goto Finder->Edit->"Show Clipboard" a windows pops up showing the image.  How do I save this image to the Finder?  If I goto the Finder->Edit-> "paste" is greyed out.  Things I've tried:   pbpaste doesn't seem to see the image but the man page seems to insinuate that it only understands Encapsulated  PostScript  (EPS) .ps files New from Clipboard in SnagIt works but I'm guessing that it creates a new file and I'd like to get the original file. Paste into PowerPoint puts the file there...but I can't seem to take it out of there.  IE, dragging the image from PowerPoint to Finder doesn't work.

I have set Command + Shift + 4 to a keyboard shortcut to take a screenshot and save to clipboard, usually, I will paste this image for next usage.  But I want to lower the resolution of the image in the current clipboard because it's too big, how to do this?


I've got a file with with a list of words each delimited by tabs. I'm trying to use grep to search for two of the words, but I can't figure out how to include the tab in the search string. I've tried:  grep -i -e "word1 \tword2"   along with several variations, but I still can't figure it out. Anyhelp?

If you take this code:  echo -e '\t\t\tString' | grep '^[\t]*String'   the result is blank because it doesn't match, yet this:  echo -e '\t\t\tString' | grep $'^[\t]*String'   works. I swear that I must have used the first line's code a hundred times in my scripts and in the terminal, without ever using the "$" character like that, and it's always seemed to work. Has there been some recent change? Why does it need the "$" character? Or am I doing something wrong?


I have a table with a few columns, but only two are relevant to this search:  ITEMNMBR and ALTITEM1  Right now data appears as follows  ITEMNMBR    ALTITEM1 A0001       ABCDEF A0001       GBESJF A0001       SDFJLK B0001       JKHKJF C0001       KLJSDF C0001       MSXNCV   I would like to display the data so only one instance of each ITEMNMBR appears in the column with the corresponding ALTITEM1 values appearing in new columns.  ITEMNMBR    ALTITEM_1    ALTITEM_2    ALTITEM_3 A0001       ABCDEF       GBESJF       SDFJLK B0001       JKHKJF C0001       KLJSDF       MSXNCV   Each ITEMNMBR may have up to 20 ALTITEM1 values. If possible to add these columns dynamically that's great, but I figure that they need to be provisioned in the code...  SQL server 2008 R2

Trying to find some simple SQL Server PIVOT examples.  Most of the examples that I have found involve counting or summing up numbers.  I just want to pivot some string data.  For example, I have a query returning the following.  Action1 VIEW   Action1 EDIT   Action2 VIEW   Action3 VIEW   Action3 EDIT     I would like to use PIVOT (if even possible) to make the results like so:  Action1 VIEW EDIT   Action2 VIEW NULL   Action3 VIEW EDIT     Is this even possible with the PIVOT functionality?


I am puzzled...  This is the *.h-file:  #include <string> #include <vector>  template<typename T> class pvector { private:     std::string filename;     std::vector<T> v;     void readvector();  public:     pvector(std::string fname) : filename(fname) { readvector(); }     void push_back(const T &el) { v.push_back(el); }     void pop_back() { v.pop_back(); } };   And this is the *.cpp:  #include <fstream> #include <string> #include "pvector.h"  using namespace std;  template<typename T> void pvector<T>::readvector() {     ifstream ifs(filename);     for(;;)     {         T x; ifs >> x; if(!ifs.good()) break;         v.push_back(x);     } }       If I want to generate the following object:  pvector<string> myVec("testfile.txt");   ... i get:      pvector.h:24: undefined reference to `pvector::readvector()'   Why???

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.)


Hello I'm trying to use the threeparttable option but as soon as I do so my table gets shifted and is plotted at the left side of my page.. How can leave the table at the center of the page? Thanks a lot for your help]  \documentclass{article} \usepackage{graphicx} \usepackage{booktabs} \usepackage{tabularx}   \begin{table}[!ht]  \begin{threeparttable}   \footnotesize \centering     \caption[Parámetros físicos evaluados en el análisis de sensibilidad]{Parámetros físicos evaluados en el análisis de sensibilidad y coeficiente de variación CV ($\sqrt{\mathrm{MSE}}/\bar{O}$) para las variables $T_{m02}$, $H_s^{(ss)}$, $H_s^{(ig)}$, $R_s^{(ss)}$ y $R_s^{(ig)}$ del caso C15.}          \label{tab:sensibilidad_parametros_caso15}          \begin{tabular}{l|ccc|rrrrr} \toprule Run         & \multicolumn{3}{c|}{Parameters Hydrodynamics} & \multicolumn{2}{c}{Parameters Morphodynmics}                  \\                             & $Eq.$   & $k\textsubscript{str}\,\mathrm{[m^{-1/3}s]}$ & $\nu\,\mathrm{[mPa]}$ & BL\textsubscript{f} & SE\textsubscript{f} \\ \midrule  Eq.1 & FE & 84     & 1.0      &  MPM        &   $\beta_{KF}$                 =1.3 \\                   Eq.2  & FV & 84     & 1.0      &  MPM   &   $\beta_{KF}$ =1.3         \\  \midrule  $k_{str}.1$  & FV & 84    & 1.0      &  MPM   & $\beta_{KF}$ =1.3          \\                   $k_{str}.2$  & FV & 104     & 1.0      &  MPM   &  $\beta_{KF}$ =1.3  \\   $k_{str}.3$   & FV& 64     & 1.0      &  MPM   &  $\beta_{KF}$                 =1.3   \\ \midrule  turb  & FV & 84     & 1.56      &  MPM   & $\beta_{KF}$ =1.3          \\  \midrule  load1  & FV & 84     & 1.0    & MPM   & $\beta_{KF}$ =1.3                 \\   load2  & FV & 84     & 1.0      & V.R   & $\beta_{KF}$ =1.3                 \\   \midrule                     S1.1  & FV & 84     & 1.0      & MPM   & $\beta_{KF}$ =1.3                 \\                     S1.2  & FV & 84     & 1.0      & MPM   & $\beta_{KF}$ =3.5                 \\                     S2.1  & FV & 84     & 1.0      & MPM   & $\phi_{Soulsby}$=36.2$^{\circ}$                   \\                     S2.2  & FV & 104     & 1.0      & MPM   & $\phi_{Soulsby}$=36.2$^{\circ}$                   \\     \bottomrule      \end{tabular}      \begin{tablenotes}      \item \textit{Note: $\phi$ = Sediment intensity;}       \end{tablenotes}      \end{threeparttable}      \end{table}     \end{document}

I know that someone already asked pretty much the same but I cannot solve the problem of centering my table after using threepartatble command for the notes.  Here it is:  \begin{table}[h!tb]  \centering \begin{threeparttable}[b] \caption{Table1} \label{one} \begin{tabular}{l r r r}  \toprule \hline \multirow{2}{*}{country} & region & county & village \\ North Africa & 13.0 & 11.0 & 7.0 \\ Central and South Africa & 2.0 & 5.0 & 7.3 \\ Middle East & 5.3 & 3.0 & 3.0 \\ Asia & 19.0 & 24.0 & 16.7 \\  Southern Europe & 10.6 & 4.0 & 3.0 \\ ACP countries & 43.6 & 43.0 & 46.0 \\ Unallocated & 6.5 & 10.0 & 17.0 \\ \bottomrule \end{tabular} \begin{tablenotes}\footnotesize \item Source: book \end{tablenotes} \end{threeparttable} \end{table}


I know that if matrix $a$ is similar to matrix $b$ then $\operatorname{trace} a=\operatorname{trace} b$.  Does it go to the other side?  Thanks.

If two $n \times n$ matrices have the same characteristic polynomials, determinant and trace, are they similar, EVEN if ($ \lnot \#Spec= 0$)?


When taking a landscape photo with a deep depth of view, the image is not sharp, especially the further away it is. Up close sharpness is fine but not far away. I am using the correct aperture and have a sturdy tripod.  I am currently using a Canon EOS 4000D with its 18-50mm kit lens. I believe this camera has crop sensor, and I am looking for a upgrade that will give me better quality, whether its upgrading the body, lens, or both.   Is it true that full frame sensors have better quality than cropped sensors?   What would be the best thing to do in this situation? (As in upgrading and upgrading to what?)

I'm currently using a Canon 700D with a few EF-S lenses, I like the Canon system, the looks, feel and ergonomics but I'm not happy with the files I'm getting. Whenever I come across a photo that appeals to me from a technical point of view it happens to be shot on a full frame camera or some Sony sensor APS-C. The most important thing I miss in my files is sharpness, overall Canon crop sensor cameras lack in focus and / or sharpening ability when compared to Nikon / Sony / Fuji etc. Would you advise me to upgrade to a full frame 6D or to switch brands to Nikon D7100 / D7200 / possibly Nikon D610? I have just 4 basic lenses so the cost wouldn't be very high. I don't want to ask another question which brand is better, just some opinions on the best / the most efficient way to raise technical image quality. I know I can buy a professional lens like Sigma 18-35, but I have just one body which I'm going to upgrade soon, and I think maybe it would be more wise to buy the Sigma lens for a Nikon body to get optimal results.


I wanted to know the definition of  just like as we define displacement, current etc.    **Note:**There should be no mention of time period or time interval in the definition.

Is time simply the rate of change?  If this is the case and time was created during the big bang would it be the case that the closer you get to the start of the big bang the "slower" things change until you essentially approach a static, unchanging entity at the beginning of creation?  Also, to put this definition in relation to  that "observers in motion relative to one another will measure different elapsed times for the same event." : Wouldn't it be the case that saying the difference in elapsed time is the same as saying the difference in the rate of change.  With this definition there is no point in describing the "flow" of time or the "direction" of time because time doesn't move forward but rather things simply change according to the laws of physics.   Edit: Adding clarification based on @neil's comments:  The beginning of the big bang would be very busy, but if time was then created if you go back to the very beginning it seems there is no time and there is only a static environment.  So it seems to me that saying time has a direction makes no sense.  There is no direction in which time flows.  There is no time; unless time is defined as change.  So we have our three dimensional objects: and then we have those objects interact.  The interaction is what we experience as time.  Is this correct or is time more complicated than this?


Image styles are not being applied. I have the /files/ directory set to CHMOD 777, GD Library is installed. When you upload an image, it just goes to the /files/ directory, none of the styles are generated into their styles folder. Reports -> status report is clean. Image uploads, but it stays in files directory, no thumbnails are generated, all paths are broken to the image even to the thumbnail in the Media page.  Hosted on AWS EC2 Linux/Apache  .htaccess in /files dir:  # Turn off all options we don't need. Options None Options +FollowSymLinks  # Set the catch-all handler to prevent scripts from being executed. SetHandler Drupal_Security_Do_Not_Remove_See_SA_2006_006 <Files *>   # Override the handler again if we're run later in the evaluation list.   SetHandler Drupal_Security_Do_Not_Remove_See_SA_2013_003 </Files>  # If we know how to do it safely, disable the PHP engine entirely. <IfModule mod_php5.c>   php_flag engine off </IfModule>

I am struggling to find a solution for image styles not getting generated. The original pictures get uploaded to the server but no styles or thumbnails are generated.   I have checked folder permission and set it to 775 and even 777 (temporarily) for the /styles/ and its subfolders.   I even set $conf['image_allow_insecure_derivatives'] to TRUE.   Yet I still get access denied for the anonymous users (not verified when I upload images and no styles or thumbnails).   Any suggestions are greatly appreciated.


I recently got an Android HTC G7 phone which claims to be Android 2.2. But I do not see any Google applications installed (market, maps etc). Is there a way to install these libraries and get started?

I have recently installed a custom ROM and cannot find the Play Store. It seems like all apps that belong to Google are missing.  How can I install the Google Apps Package (Play Store, ...) on my Android device?


I have a dual boot with Windows 10.  I was unable to boot Ubuntu from disk.  I have a bootable USB stick and that worked.  I booted from the USB and then booted a recovery Ubuntu option in Grub.  Then, I was able to get into my Ubuntu partition.  I was updating my system when the machine just shut down.  After which, I ran Boot-Repair.  Now, I can boot from my Ubuntu partition, but once I enter my password, the screen is all messed up and I can not Login.  It doesn't seem to recognize my password.  Also, now, I can not boot from my USB Ubuntu Stick.  I made a brand new Ubuntu ISO image and that will not boot either.  (A reinstall previously fixed the screen problem.)    I have tried changing the boot order in the BIOS.  That does not help.  The link to the Boot-Repair log is above.  Any help would be greatly appreciated.

I am trying to boot Ubuntu on my computer.  When I boot Ubuntu, it boots to a black screen.  How can I fix this? Table of Contents:


I cannot find a way to fix this issue. I tried higher sampling but the artifact still appears. If you look at the image, I added a light behind the lens. But there are fireflies/artifacts in the surrounding faces. How can I resolve this issue? Is this something to do with my mesh?  My settings are: Cycles render 75% Render 1000 Sampling Zero Compression 8 Bit

I often use Cycles' built in Glass BSDF shader to achieve realistic refraction effects, but in many cases, it seems that Cycles' glass caustics creates an unfortunately large number of fireflies (pixels that are abnormally bright relative to their surroundings). In some models of mine, even when I render for 3000 or more samples/pixel, my final image is still covered in fireflies. While I can improve this in many cases by increasing the total amount of light available in the scene, this loses a lot of the potency of the refractive effects I'm looking for, especially in scenes with low light levels.  So my question is, how can I reduce the amount of fireflies while using Cycles' caustics without sacrificing the quality of the refractive effects?  Note: I am aware that Cycles' caustics will perform much better once Cycles has full support for bidirectional path-tracing, but it looks unlikely that that will become , unfortunately.


I want to buy US dollar with swiss francs. I have the opportunity to make this change in Switzerland (Geneva), in the USA (Seattle) or in Canada (Vancouver). Where will I likely get the best change?   is a related question that does not contain a third country (Canada) in the list of choice.

Recently my wife and I traveled to Italy and before we left we got about 85% of our money in travelers checks and the other 15% we carried on in cash. When we arrived there, no one would take our travelers checks and many places did not accept credit cards. Eventually, we found some currency exchange places that would take the travelers checks and give us Euro's, but at a 7-15% fee, which was not really a very fun surprise.   While I was under the impression that it is safer to use travelers checks, it seems that they were not really accepted (the usual explanation being fraud). So the question is, is it best to just exchange your currency at home and carry all of it with you when you travel or are there other alternatives to carrying cash that are safer and cost effective?


I have an array configured with students names, IDs, and grades, etc.  I'm writing a method to pull the grades from the array, but I get this "boolean error" because I have a string. How do I correct it?  Here is the piece of code in question:  //code to print the students GPA based off the three grades received in  class public static void print_average_grade(String myStudentID) {     for (Student variable : myStudent)     {         if (variable.getId() = (myStudentID)) //if statement is kicking back error....         {             double gpa = ((variable.getMyGradeA() + variable.getMyGradeB() + variable.getMyGradeC()) / 3);             System.out.println("Student with ID# " + myStudentID + " has a GPA of " + gpa);         }

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?


Once the harvest is in, is it necessary to keep settlers assigned to the Farmer job, or can I assign them to other jobs during winter?

Seasons, especially winter, affect nature a lot and there are jobs, such as the farmer, whose jobs change or even become useless during certain seasons. This is basically as much as I could find in the wiki.  I would like to know which jobs seasons have an effect on, which seasons are the most effective for those professions and if there's a better alternative for those jobs during the weak seasons (swapping farmers to gatherers for the winter, for example)?


I'm currently trying to catch the css images url via regexp. I have this kind of string : #test{background:url(images/prof_01.png);} #test2{background:url('images/prof_01.png');}  I'm using the following exp : /url\(("|')?(.*)("|')?\)/  to catch in both cases "images/prof_01.png". My problem is that in the #test2 example, the url comes with its last quote images/prof_01.png'  How can I get rid of this. Thanks.

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}?


So here is a class:  public class Palya {     Mezo[][] m;      public Palya(Mezo[][] m){         this.m = m; }   And it's derived:  public class PalyaTeszt extends Palya{      public PalyaTeszt(Mezo[][] m) {         super(new Mezo[][]  {                 {new Szikla(),    new Szikla(),     new Viz(),        new Szikla(),     new Szikla(),     new Preri(true)},                 {new Szikla(),    new Szikla(),     new Preri(false), new Preri(false), new Preri(false), new Szikla()},                 {new Szikla(),    new Szikla(),     new Preri(false), new Preri(false), new Szikla(),     new Szikla()},                 {new Szikla(),    new Szikla(),     new Preri(false), new Szikla(),     new Viz(),        new Preri(false)},                 {new Szikla(),    new Szikla(),     new Preri(false), new Szikla(),     new Viz(),        new Szikla()},                 {new Preri(true), new Preri(false), new Preri(false), new Preri(false), new Preri(false), new Preri(false)}         });     } }   In the derived constructor the array is initialized with an other class called Mezo, this Mezo[][] m class has methods that i would like to access to, but there is no name for it, like m.getSomething().  How can this be initialized in the way that i can  use the Mezo's methods? Would it be better if the Palya was just an interface?  The meaning of Palya is a 6x6 fields like chess board just for different purpose.  I would like to have 6 different Palya.

In Java, are there clear rules on when to use each of access modifiers, namely the default (package private), public, protected and private, while making class and interface and dealing with inheritance?