Is "I have and always will eat food" proper English? Can you conjugate eat for the future only?

The original sentence is:     I have eaten and always will eat food.    If you cut out the first eaten, is the sentence still grammatical?:     I have and always will eat food.   How about:     I have, and always will, eaten food.   Is this sentence grammatical? If not, why not?


I have to restart my Oracle database because of view changes in the SPFile. I tried to shutdown and startup, but I don't know how to startup in the right way again.


Volume calculation of truncated cones with elipses as base and top

I wish to calculate the volumes of a truncated cone whith asymetry over all axes and ellipses as base and top - how do I do that?  I have height and radii of the corresponding ellipses. (I assume correctly I need the geometric means of the 2 radii describing the ellipsis.)  Kind Regards


Is it ethical/acceptable to give a lighter penalty to students who admit to cheating?

I am at the moment dealing with an academic dishonesty incident in a class I'm teaching (a few groups of students submitting identical code, when the class policy forbids getting help from another person on a graded assignment).  When I noticed indications of plagiarism, I emailed each affected student something along the lines of:     The code you submitted is nearly identical to another student's work. Can you comment on this?   Their reactions mainly fall into three categories:   "I made a mistake and I take full responsibility for it, I hope you will let me make it up but I understand if you can't." "I talked about the assignment with another student, but I didn't copy anyone's code." But then when I inform them they're getting a zero grade for the assignment, they don't argue. "I didn't do it! You can't give me a zero grade for the assignment when I didn't cheat, I refuse to accept a zero grade."   Assuming I have evidence that all of these students cheated, is there a good reason to adjust the penalty based on whether students own up to their misconduct, or continue to lie about it?  On the one hand, I appreciate honesty, and doubling down on a lie seems like something that should be punished. On the other hand, I've never heard of anyone adjusting penalties like this, so I'm wondering if there's some reason I shouldn't.   It's also not clear to me what the relative difference in penalties should be, if there is one. I thought about it and it's hard for me to come up with one penalty that's appropriate for Group 1, another penalty that's appropriate for Group 2, and a third penalty that's appropriate for Group 3.  I would very much appreciate answers based on research and/or experience with policies like this, rather than just opinion.  (My school has no official policy on the matter.)


If $[G:K]$ is finite, then $[H:H \cap K] = [G:K]$ iff $G = HK$ (Hungerford Proposition 4.8, Proof)

The following is from Hungerford's graduate algebra book, Chapter 1, Section 4, Proposition 8.    The proposition states that: If $H$ and $K$ are subgroups of a group $G$, then $[H:H \cap K] \leq [G:K]$. If $[G:K]$ is finite, then $[H:H \cap K] = [G:K]$ if and only if $G = HK$.  I am trying to work my way through the proof (the book only provides an outline). I have show that $[H:H \cap K] \leq [G:K]$. I am now trying to show the second part, that $[H:H \cap K] = [G:K]$ if and only if $G = HK$. The outline says that to show this we prove two things:  1.) $[H:H \cap K] = [G:K]$ if and only if $f$ is surjective, where $f$ is the map given by $(H \cap K)h \rightarrow Kh$ (I have shown this part).  2.) $f$ is surjective if and only if $G = HK$.   I am stuck on showing the second part.   Thank you in advance for any help you can give.


Is there a way to uninstall all packages that were installed in a span of time between 1 min? I tried using the synaptic package manager but I can't find any filter to be able to check only the packages that were installed at that time.


Procedure to cut an Harmonic oscillator to two first level to obtain a qubit

Let us consider a (quantum) Harmonic oscillator: $$H=\frac{p^2}{2m}+\frac{1}{2} m \omega^2 x^2$$ Using the annihilation/creation operators defined as: $$a=\sqrt{\frac{\hbar}{2 m \omega}}(x+\frac{i}{m \omega}p)$$ $$a^{\dagger}=\sqrt{\frac{\hbar}{2 m \omega}}(x-\frac{i}{m \omega}p)$$ I end up with $H=\hbar \omega a^{\dagger} a$ Now, let's assume that for any reason I know that the dynamic should be restricted to the two first levels only. One way that I should we could do is to consider: $a \to \sigma_-, a^{\dagger} \to \sigma_+$ Then, we find: $$H=\hbar \omega \sigma_+ \sigma_-=\hbar \omega |1\rangle \langle 1|$$ But what confuses me is that if I do the replacement in $p$ and $x$, I don't find the same. Indeed we have: $$p=i\sqrt{\frac{\hbar m \omega}{2}}(a^{\dagger}-a)$$ $$x=\sqrt{\frac{\hbar}{2 m \omega}}(a^{\dagger}+a)$$ Performing the replacement there, I find: $$p=\sqrt{\frac{\hbar m \omega}{2}}\sigma_y$$ $$x=\sqrt{\frac{\hbar}{2 m \omega}}\sigma_x$$ And as $\sigma_y^2=\sigma_x^2=I$, I would end up with $H \propto I$ from the first Hamiltonian I wrote. Another annoying example. Imagine that my oscillator as in addition an interacting term of the form: $$H_{\text{int}}=p^2*F(t)$$ Where $F(t)$ is a driving field for instance. With the two level approximation and the mapping considered, as $p^2 \propto I$, the interaction would disappear. What is the procedure to cut to its two first level an Harmonic oscillator to get a qubit. I feel like I don't understand anymore. Typically to what the momentum and position should be mapped to ? How to solve the "paradox" I get to ?


Let M be a (0, 1) matrix; that is, a matrix where each of whose entries is either a 0 or a 1. A line in M is either a row or a column of M. Use Dilworth's theroem to prove that the minimum number of lines containing all the 1's of M is equal to the maximum number of 1's, no two of which are in the same line. I realize this is the Konig's theorem basically. I started the proof out by: Let G be a bipartite graph with vertex bipartition {X, Y} , such that A is an adjacency matrix of graph G, where X is a set of vertices corresponding to the rows of matrix A, and Y is the vertex set corresponding to the columns. Any hint after this would be great! I know we have to introduce the concept of chains and antichains, but how do we connect that with the matrix entries?


`\hfill`-like spacing in math mode without using `align`

In , a way of getting \hfill-like behaviour in the align environment is described, but for my purposes, I need one that works in the equation environment. (I want to display some commutative diagrams next to each other, but for some reason, tikzcd does not like being inside align.)    Why does TeX ignore \hfill inside displayed mathematics? How can this be worked around?   I suppose I could in principle just put the various blocks inside $...$, but for consistency, it would be probably be better to have all displayed mathematics in equation or similar environments.


I have a table table and the first column is a multirow. The multirow column text exceeds the column with.   \documentclass{article}  \usepackage[dutch]{babel} \usepackage{ragged2e} \usepackage{ltablex, multirow, makecell, caption}  \begin{document}  \keepXColumns\setcellgapes{3pt}\makegapedcells \begin{tabularx}{\linewidth}{|p{25mm}|*{3}{>{\RaggedRight\arraybackslash}X|}}   \caption{My caption}   \label{my-label} \\    \hline  Onderwerp & Persoonlijk niveau & Professioneel niveau & Samenlevingsniveau \\ \hline     \multirow{4}{*}{Perspectief: Wat is het hogere doel}      & Wat is jouw hoge doel in het leven?  & Wat is jouw hoge doel in je beroep? &  Wat is jouw hoge doel in de samenleving? \\ \cline{2-4}     & & & x \\ \cline{2-4}   \hline  \end{tabularx}  \end{document}     How can I make the text wrap and go to next line when the line is longer then the column width like the other columns?


How to set the character limit limit in three UITextfield

I have three Textfield.  1.textField1 = 15 charecter  2.textField2 = 50 charecter   3.textField3 = 50 charecter  Code snippet     if (textField1 .text.length <15 && textField2 .text.length <50 &&   textField3 .text.length <50) {      return YES;              }else{          return NO;     }    How to set the limit of three UITextfield.  Thanks in advance


I followed the beginner steps for creating a .  The child theme was created and it appears as an option on my Themes page. But unlike the other Themes on the page (including its parent), there is no preview.  The other themes ("Twenty Twelve," "Twenty Thirteen," and "Twenty Fourteen") are all listed with an image preview.  My child theme ("Twenty Fourteen Child") does not have any image. The child theme can be applied without issue.  This issue arises when I create child themes from other themes as well. Any ideas why this is happening and if I can resolve?


How to pass Dynamic ID to href link in Lightning web components

I am trying to Preview and download document from LWC, From apex controller i am returning Map<> contains ID and Document name, and iteration that map data in html file and passing map.key value to href url, but dynamic is not populating in URL.    <template for:each={mapData} for:item="mapkey">                            Test: {mapkey.key}                                                         <lightning-button-icon key={mapkey} icon-name="utility:download"  variant="bare" alternative-text="Settings"></lightning-button-icon>                                {mapkey.value}                          </template>    JS Code:      .then(data => {            /// var conts = data;                   console.log('data map--->'+data);     if(data){     // eslint-disable-next-line guard-for-in     for(let key in data) {    this.mapData.push({value: data[key], key:key}); //Here we are creating the array to show on UI.    }       } })   Apex Code:   @auraenabled /* Method will return a Map Contains Document ID and Name */ public static Map<string,string> getUrls( string searchstr){     Map<string,string> contdocidandtitle = new Map<string,string>();     system.debug('searchstr'+searchstr);             For(Document cd :[select id,folderid,name from document where folder.name =:searchstr]){         contdocidandtitle.put(cd.id,cd.name);                 }     return contdocidandtitle; }   Error is: sfc/servlet.shepherd/document/download/%7Bmapkey.Key%7D?operationContext=S1 in URL "mapkey.key" priniting instead of ID Help me with valuable suggestions.


I'm running a SAMBA file store for our Windows users, and I'd like to automatically generate windows LNK files linking to other network shares that the user needs access to.  I've done quite a bit of googling and I can't find a way of creating windows links on Linux, or through Perl. I did find a perl module that looked promising in CPAN, but it will only run on Windows unfortunately.  If it's not possible to create .LNK files, perhaps there is an alternative solution people can suggest to allow the users to click on a file in one SAMBA store to be linked to a different SAMBA share?  Thanks,  Bart.


How to redirect a URL to a custom IP address?

I have an Ubuntu machine that I'm using as my home Internet router.  It uses a USB mobile broadband modem as its Internet connection, and shares this with another router (via the router's "Internet" port) which I use as my LAN.  How do I redirect requests from within my LAN for a given URL to a custom IP address (ex have google.com redirect to x.x.x.x)?


In the theory of generalised linear models, you may use the exponential family to find the mean and variance of certain distributions. How would the mean and expectation of the zero-truncated Poisson model be calculated from the exponential family?  f(y; θ, φ) = exp  {[yθ − b(θ)]/φ + c(y, φ)}  f(y; λ) = (e^−λ*λ^y)/ y!(1 − e −λ)


Casting vs using the 'as' keyword in the CLR

When programming interfaces, I've found I'm doing a lot of casting or object type conversion.  Is there a difference between these two methods of conversion?  If so, is there a cost difference or how does this affect my program?  public interface IMyInterface {     void AMethod(); }  public class MyClass : IMyInterface {     public void AMethod()     {        //Do work     }      // Other helper methods.... }  public class Implementation {     IMyInterface _MyObj;     MyClass _myCls1;     MyClass _myCls2;      public Implementation()     {         _MyObj = new MyClass();          // What is the difference here:         _myCls1 = (MyClass)_MyObj;         _myCls2 = (_MyObj as MyClass);     } }   Also, what is "in general" the preferred method?


Can I use the sentence "have you got an umbrella" or anything else to ask someone whether he got it or not?


Calculate $\lim_{x \to 0} (e^x-1)/x$ without using L'Hôpital's rule

Any ideas on how to calculate the limit of $(e^x -1)/{x}$ as $x$ goes to zero without applying L'Hôpital's rule?


If I define a simple class  class someClass():     var = 1  x = someClass() someClass.var = 2   This will make x.var equal 2. This is confusing to be because normally something akin to this like:  a = 1 b = a a = 2   will leave b intact as b==1. So why is this not the same with class variables? Where is the difference? Can call all class variables mutable? In a way the class variables work more like assigning a list to a=[1] and doing a[0]=2.  Basically the problem is how is x.var acessing someClass.var it must be something different then is used when two variables are set equal in python. What is happening?


Why are user permissions modifications not taken into account in a tmux session?

I am SSH'ing into a debian server, and to avoid having multiple connections at the same time, I use tmux.  I changed the permissions of a directory (here, /opt/syncserver), and set the owner to the group and user www-data.  The permissions of this directory are equivalent to 770 in chmod, which means rwxrwx--- (read/write/exec to owner and group).  I then added the main user (that we will call user1 here) to the group www-data, because he wasn't in it previously. I then tried to cd into the newly modified directory, without success (Permission denied error).  Creating a new shell in the same tmux session does not solve the problem either as it should (see the probable duplicate of this question).   I tried launching another SSH session, still with the same user, and had no problem going into the directory.  How can new shells created in a tmux session not take in account the modifications of permissions ? Is there a way to fix this, or am I just completely mistaken and did something wrong at the beginning ?  Creating a new tmux session (with the other one still attached) does not solve the problem either. I guess restarting completely tmux should solve the problem, but I would like to avoid this and to know why does this happen.


How to make executable file independent of Eclipse

I have one library, one txt file for import some things with it and one output file to show the result. Only have one java file without any interface. With eclipse all is running well - I am writing into the input file and then it shows the result into the output file. Now I want to make this all independent program (without need to run with eclipse).  How to make it?


What is a reliable MP3 editor where I can set singer / band album, name of the song, year aired,


How much does armour weight affect stealth?

I read somewhere, I think in a loading screen tip, that the weight of your armour negatively affects your stealth when sneaking. How much does it affect it? I'm playing a stealthy sniper type character, and I'm trying to figure out whether I'm okay to use the heavier armour I'm finding, or whether I should switch back to some lighter armour.


Pass a linux variable into oracle script

I am trying to pass mount_point details in my oracle script. I am able to pass integer variable using below code but not able to send mount point details in oracle script: sed "s/@@pqr@@/$space/g" tablespace_extend.sql | sqlplus -s "/ as sysdba"                                                               BEGIN space:="@@pqr@@"; dbms_output.put_line(space); END; /  When I am using same code to pass mount point details, it is not working. it returns this error message: sed: -e expression #1, char 13: unknown option to `s', mount_point = /u08/dbname/


What are the steps to remove reimageplus virus manually?

What are the steps to remove reimageplus virus manually(as in without using any third party software)? I tried using adwcleaner but it seems to keep coming back or something. How to completely remove it?  I am on Windows 7. I don't know it got contracted.


How do i dynamically assign a name to a php object?  for example how would i assign a object to a var that is the id of the db row that i am using to create objects.  for example   $<idnum>= new object();   where idnum is the id from my database.


Winter bash hat issue in mobile profile page

I noticed that my Winter bash hat, which is hovering over my profile picture on the profile site, has the following issue:  When scrolling down on the page, the hat scrolls with you as if it had a 'position: absolute' on it. This is weird I think it's worth fixing.  Does anyone else see this behavior?


Does product sigma algebra of n B(R) (borel) coincide with B(R^n)?

My question comes from different modes of probability law, which I met. I see two options in equality: set belonged to $B(\mathbb R^n)$ and cartesian product of B belonged to $B(\mathbb R)$.


In my usage list(settings>general>storage & iCloud usage>manage storage), there is an app that registers as (null) with no icon, a version number that doesn't match anything I've previously downloaded, and it's taking up storage space. I first noticed it about a week or two ago. And no, I can't download recent apps to find the one that it is, because I downloaded multiple apps recently, and didn't notice the (null) app until my storage was critically low and I was looking to delete something. I am running iOS 9.2.1 on an iPhone 5C.


Is a sample covariance matrix always symmetric and positive definite?

When computing the covariance matrix of a sample, is one then guaranteed to get a symmetric and positive-definite matrix?  Currently my problem has a sample of 4600 observation vectors and 24 dimensions.


Square bracket notation for anti-symmetric part of a tensor

I know that  $A_{[a} B_{b]} = \frac{1}{2!}(A_{a}B_{b} - A_{b}B_{a})$  But how can write $E_{[a} F_{bc]}$ like the above?  Can you provide a reference where this notational matter is discussed?


According to :  The scalar absolute value (magnitude) of velocity is called speed  and according to :  Accelerations are vector quantities (in that they have magnitude and direction)  thus I am wondering, How is called the magnitude of acceleration?


So, I am trying to solve a problem which involves finding the maximum depth of a tuple (for example, depth(('a',('b','c','d'),('e','f','g'))) should return 2 and depth(('a', ('b',), ('c', ('d', ('e',), f), ('g', 'h', 'i')))) should return 4. I am trying to use recursion to solve the problem where I use a counter 'c' to keep track of depth of each tuple (within the main tuple). The problem is,I get the following error, local variable 's' referenced before assignment.  My code is something like:  s=0 def depth(tuple):      do something      s=s+1      depth(some_nested_tuple)      return   What am I doing wrong?


Match country code and phone number validation using regex in Laravel

I'm trying to validate an phone number using regex. Basically, i don't know more about regex :) I want to validate it with country code and only numeric value Like: +1-1234567891  I'm using below code to make validation:  'phone_no' => 'required|regex:/^([0-9\s\-\+\(\)]*)$/',   But it's not working for country code, but it's work for only numeric value.  Can anyone have an idea how to make this validation without creating custom validation?  Many thanks!!


I looked at this beautiful picture for 3 hours, and I would really like to how to this with tikz. If someone have an idea.


In pgfplots, pos=a , with a between 0 and 1, refers to the relative x coordinate on a plot. I was wondering if there is an equivalent construct that accept the absolute x coordinate rather than the relative value?


There are a lot of people telling how to make a bootable disc to other people who must understand a lot more than I do.  I try to read those answers and I say "OK, now tell me how to make bootable usb for dummies.  It would make Ubuntu much more popular if you did not need to be a computer hacker to figure out how to install it.  Why do you think Windows is popular?  You put in the disk and click install and 1 hour later you are surfing the web and emailing.  I need Ubuntu to be much easier to install than it is now!  Why not make a file to download that you copy to your USB then just reboot?  I would like to try an alternative to windows if someone could do a much simpler explanation to make a bootable USB, or even a bootable dvd.  Please help.  Thanks for your time!


Replacing Unicode non-breakable spaces by normal spaces

I am using the Neo keyboard layout, which uses all kinds of modifier keys to input all kinds of characters (e.g. Greek letters and mathematical symbols). It also has shift+Mod3+space mapped to Unicode 0A, no-break space. From time to time it happens that I mistakenly press these buttons (while entering a space between other symbols with the same modifier keys).  Unfortunately [Lua|Xe]TeX obeys these spaces as unbreakable spaces both in normal text and in mathmode (using fontspec and unicode-math). However my editor (vim) shows the symbol like a normal space, so it is impossible to see where I made a mistake.  Is there an easy way to tell [Lua|Xe]TeX to treat no-break spaces like normal spaces?


Mitigating drow light sensitivity on Perception to avoid getting ambushed

I created a Drow rogue and my Roguish Archetype is an assassin for 5e. I have been running into the problem of disadvantage rolls on Perception. This wouldn't bug me as much, but since there's only one person in the party that doesn't take disadvantage during the day and her Perception rolls are not that good most of the time, it's getting annoying when a random NPC pack gets the drop on us.


How can black hole get mass if nothing can pass its event horizon?

External observer will never see any mass crossing event horizon - any object near it would appear frozen, red-shifted and then disappearing. In this case - how black hole can possibly get any mass from the point of view of external observer?


Term for people who are in the same city

I found the term "fellow citizens", but the term I'm looking for should also refer to people who are not be a citizen of the city but are located there.


Explanation of result for Double.valueOf

I want to know the reason why i am getting so many decimal points while doing this sum of double numbers   System.out.println(Double.parseDouble(".56")); double dvalue=1.12+Double.parseDouble(".56"); System.out.println(dvalue);   output is as follows  0.56 and  1.6800000000000002  why second summation is adding those decimals it  should simply  1.68


BSD sed: Replace only the Nth occurrence of a pattern

Using BSD sed;  How can I perform the following substitution?:    Before:  hello hello hello hello hello hello  After:  hello world hello hello hello hello  In other words; how can I replace only the Nth occurence of a pattern? (Or in this case; the 2nd occurrence of a pattern?)


Ever been asked to send money to this man?

Has anyone ever been contacted by someone named Richard Atul who claims to be an orthopaedic surgeon working for the UN in Yemen. He's asked me to send money to help him get home because they won't grant him emergency leave. He won't give me specific information I can use to verify his identify like his home address, the organization that issued his MD license, or the exact UN department he works for, so I suspect this is a SCAM.   Any advice would be helpful.  Thank you!


How can legend entries be obtained from different plots in a groupplot?

I would like to place a legend outside an axis using symbols from multiple plots within a groupplot.  Trying it the way I show below doesn't seem to work, just the last entry is shown.  How can this be done in a way such that all entries are shown?  \documentclass[crop]{standalone}  \usepackage[svgnames]{xcolor} \usepackage{pgfplots} \usepgfplotslibrary{groupplots}  \begin{document}    \begin{tikzpicture}     \begin{groupplot}[       group style={         {group size=2 by 2}},       legend to name=grouplegend]        \nextgroupplot[title=One]       \addplot+[color=Blue] coordinates {(0,0) (1,1) (2,2)};       \addlegendentry{A}        \nextgroupplot[title=Two]       \addplot+[color=Red] coordinates {(0,2) (1,1) (2,0)};       \addlegendentry{B}        \nextgroupplot[title=Three]       \addplot+[color=Gray] coordinates {(0,2) (1,1) (2,1)};       \addlegendentry{C}        \nextgroupplot[title=Four]       \addplot+[color=Orange] coordinates {(0,2) (1,1) (1,0)};       \addlegendentry{D}      \end{groupplot}      \node (l1) at ($(group c1r2.south)!0.5!(group c2r2.south)$)       [below, yshift=-2\pgfkeysvalueof{/pgfplots/every axis title shift}]       {\ref{grouplegend}};    \end{tikzpicture}  \end{document}


I was wondering if the following statement is true or not. Let $G$ a group and $H \triangleleft  G$  $$ G/H \cong G  \implies H = \left \{ 1 \right \}$$  I know it is true if $G$ is a finitely generated abelian group, as you can see . Nevertheless, my intuition says it should be not true in the general case. Actually, I was trying to find a counterexample, taking G as a free group. However, I haven't found anything.


How do I find the sum of the following infinite series: $$\left(\frac12+\frac14-\frac23\right)+\left(\frac15+\frac17-\frac26\right)+\left(\frac18+\frac{1}{10}-\frac29\right)+\cdots$$ The series definitely seems to be convergent.


Do Skyrim Special Edition mods work with the original version?

Will Skyrim mods that are labeled for use with the Special Edition of Skyrim work with the original version, specifically the Legendary Edition, since it has all the content the special edition does?


How is it that angular velocities are vectors, while rotations aren't?

Does anyone have an intuitive explanation of why this is the case?


Shell script to verify if file is equal to a number n

I am quite new at bash programming. Here is my full problem: Write a shell script that takes pairs of parameters (a filename and a number  n) and for each pair will verify if the size of the file equals the number n.  Here is what i tried to do:  #!/bin/bash   for i in {$1..${@:(-2):1}..2}     do for j in {$2..${@: -1}..2}     do     if [$(stat -c%s "$i") -eq $j ]            then          echo $i is $j     else         echo $i is NOT $j     fi     done done   I am trying to put into variable i the filename from each pair and in j the number n from each pair. I am then comparing the size of my file with j (the number n). I'm not sure what i;m doing wrong, i did some researsh and tested parts of my code to see if it works but something is wrong with my for statement because it kind of prints the whole . Output:   [: -eq: unary operator expected {c.s..c.s..2} is NOT {12..12..2}   Thank you.


lvmetad error when I turn the computer on or off

I am using Lubuntu 17.10 and every time I start the computer, after Lubuntu boots it shows this error:  WARNING: Failed to connect to lvmetad. Falling back to device scanning.  /dev/mapper/lubuntu--vg-root: clean, 239554/9674752 files, 19597960/38680576 blocks   When I turn off the computer the same error appears and after that it shows a blue screen and gets stuck in this position (doesn't turn off).


Is it possible to see questions tagged with ONLY the tag(s) I specify?

I want to see if it is possible to see questions tagged with only the tag(s) I specify and no others?  Lets say, I want to be able see new questions with only the [c#] tag only and no others.  I just want to see questions with that single [c#] tag.  I don't want to see question tagged with say, [c#] and [asp.net]  Is this possible?  In a similar question I found the following suggestion but it does not work for me:  "You can build a bookmarlet using 'or'. Here is an example which shows the questions tagged 'C' along with the questions tagged 'C++':  http://stackoverflow.com/questions/tagged/'c'%20or%20'c++'"   The problem is this provides others tags also.


How can I convert all video files in nested folders? (batch conversion)

I have lots of large video files of my kids (.MTS format). Now I would like to convert them into divx / xvid to save hdd space and also have the ability to watch on my TV set.   Video files are stored in nested folders on my hdd (based on shooting times or special events). So, keeping the existing folder structure I would like to convert all the videos (which may take some days I believe) automatically.  I will appreciate if you can guide me how to achieve it?


Intercept service method calls using metaprogramming in groovy/grails

I have a several Grails services that are invoked from Flex code using Spring BlazeDS integration. I wanted to add some general debug logging using the groovy metaClass. I have the following in a bootstrap class:  class MyBootStrap {  def grailsApplication  def init = { servletContext ->         initServiceCallLogging() }  def destroy = { }  private def initServiceCallLogging() {     grailsApplication.serviceClasses.each { serviceClass ->         serviceClass.metaClass.invokeMethod = { name, args ->             log.debug "Method $name invoked"             def metaMethod = delegate.metaClass.getMetaMethod(name, args)             def result = metaMethod.invoke(delegate, args)             return result          }     } } }   This works fine as long as the Service method is called from e.g. a Grails Controller or Service but when directly called from Flex (via BlazeDS), the method calls are not intercepted.  Anyone an idea how this can be solved or is this not possible via metaprogramming and should Spring AOP be used?  Thx


Ubuntu 18.04 How to merge & unmerge apps in dash

I am Using Ubuntu 18.04.  When I click "Show Applications" icon, I see "Frequent" & "All".  When I click "All", I can see some apps icons individually and some merged into "Utilities".    How can I control merging and unmerging and also create new group and putting some apps in this group & removing. Is there a way?


Solving quasi-linear PDE, $x \frac{\partial{u}}{\partial{x}} - u\frac{\partial{u}}{\partial{t}} = t$ , $u(1,t) = t$, $-\infty < t < \infty$

I am trying to solve the quasi-linear PDE $x \frac{\partial{u}}{\partial{x}} - u\frac{\partial{u}}{\partial{t}} = t$ , $u(1,t) = t$, $-\infty < t < \infty$ using method of characteristics.  $\frac{\frac{dx}{dt}}{x} = \frac{\frac{dy}{dt}}{-u} = 0$, implying $(\frac{1}{x})\frac{dx}{dt} = -\frac{1}{u} \frac{dy}{dt}$ implying $\frac{1}{x}\frac{dx}{dt} + \frac{1}{u} \frac{dy}{dt} = 0$ or $\frac{d}{dt}(\ln|x|) + \frac{1}{u}\frac{dy}{dt} = 0$.  Seems like I messed up somewhere but unable to find it out? There is no $u$ dependence in  the RHS of the PDE, it is only $t$.  Follow up questions like to discuss -   After finding the solution to this PDE, I am trying to look at the maximal region where the solution is defined.   Iis the IVP wellposed? Are there some regions where the solution is not single-valued?


Are the Marvel Star Wars Legends comic books canon?

On the 8th of April Marvel released the Star Wars Legends epic collection volume 1. Many people say any Star Wars comics that come under legends are not canon, but people also say that any new Star Wars comic is canon. I've also heard some of the expanded universe is canon, is this the comic book of what is canon in the legends comics?


how to prove $a+b< (a^{\alpha}+b^{\alpha})^{\frac{1}{\alpha}}$ when $0<\alpha<1$.(Im not suure if is for every a,b) I am really dont try anything, but i think that maybe is using integration in some region, i will appreciate if you give me one hint, thank you so much.


The population size does not affect the sample size?

I used the following formula to calculate the sample size. n = Z^2 * K * p * (1-p) / i^2;  (k = 2, Z = 1.96, p = expected proportion, i = 0.03)  I noticed that the sample size is not related to the population size, it means whatever the population size is small or large, the sample size is still the same! I do not assimilate? My idea is that if the population size is important, certainly the size of the sample increases and vice versa. Is there a requirement to use this formula?


I did search a bit and couldn't find this specific one. So decided to ask. The question is the following. We want to test the mean of a normal population. Suppose that $X_1,\dots,X_n\overset{i.i.d.}\sim N(\mu,1)$. Suppose that we are testing $H_0:\mu = \mu_0$ against the alternative $H_1:\mu\neq \mu_0$. We are looking for a rejection region of the form $|\overline{X}-\mu_0|>c$. Therefore \begin{eqnarray*} P_{\mu_0}(|\overline{X}-\mu_0|>c) &=& \alpha\\ P_{\mu_0}(\sqrt{n}(|\overline{X}-\mu_0|)>c\sqrt{n}) &=& \alpha \end{eqnarray*} This implies that $c\sqrt{n} = z_{{\alpha}/{2}}$. Thus we arrive at a test that calls for rejection of the null-hypothesis if $\sqrt{n}(|\overline{X}-\mu_0|) >z_{{\alpha}/{2}}$. In this test, why is the p-value $P(|Z|>\text{TS})$, where $\text{TS} = \sqrt{n}(|\overline{X}-\mu_0|)$?


Cannot get local GeoJSON file to load features on server hosted Leaflet map

The answers I have tried prior to asking this question:            I have created a map using Leaflet and included GeoJSON data in the same directory as my program. I am testing this code by opening in both Firefox and Chrome, both show my map in the proper location, neither show the geometry of my features.  I am using a local file which can be seen in my script. Below is the relevant includes and code:   <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap.min.css">  <link rel="stylesheet" href="css/mapinfo.css">   <link rel="stylesheet"  href="https://unpkg.com/leaflet@1.6.0/dist/leaflet.css" /> <title>GeoArchive</title>    Code:

GeoHistory Archive

This is a guide to all historical events which took place in your selected area. Select a point on         the map to see if any events took place there!

         {{ search }}

{{ output }}

All Resources Attributed to Wikipedia & SFData

   I am attempting to use AJAX to load my GeoJSON layer onto 'map' but have continuously had no luck over the last week.  Is there anything obvious I could be doing wrong? I have seen that there may be a problem using a local file on the test server in Visual Studio Code, but I am testing via Firefox as well which has been stated does not suffer from that problem.  Below is the output given by my console upon running my code via flask which is my web framework for the overall application:  $ python main.py  * Serving Flask app "main" (lazy loading)  * Environment: production    WARNING: This is a development server. Do not use it in a production deployment.    Use a production WSGI server instead.  * Debug mode: off  * Running on http://127.0.0.1:5000/ (Press CTRL+C to quit) 127.0.0.1 - - [19/Dec/2019 17:02:46] "GET / HTTP/1.1" 200 - 127.0.0.1 - - [19/Dec/2019 17:02:46] "GET /css/mapinfo.css HTTP/1.1" 404 - 127.0.0.1 - - [19/Dec/2019 17:02:46] "GET /css/mapinfo.css HTTP/1.1" 404 -     Through suggestions in the comments below, I have narrowed down the problem using the Network Tab on the Google Chrome Developers tools (F12) to determine that my AJAX.js file is not being located on the webpage giving me the two following error codes:  ajax.js:1 Failed to load resource: the server responded with a status of 404  (NOT FOUND)  Uncaught TypeError: L.GeoJSON.AJAX is not a constructor at (index):58   This is a locally loaded file.


I am using this function to reverse text but I am having a little issue with speed. for testing I have 130,000 characters text and its taking about 10 seconds. is it possible to speed it up? This questions is different than C# as its a vb.net  Function ReverseString(ByRef strString As String) As String         Dim NextChr, TempString As String, StringLength, Count As Integer, NewString As String = Nothing          TempString = strString         StringLength = Len(TempString)         Do While Count <= StringLength             Count = Count + 1             NextChr = Mid(TempString, Count, 1)             NewString = NextChr & NewString         Loop         ReverseString = NewString End Function


I have a scene where a large number of redundant cycles materials have accumulated. I'd like to have them removed so that there's nothing left remaining in the materials slots at all.   I've tried all the methods I could find of deleting them so that they don't show up in the slots like this but none have worked so far.  That is selecting all objects w an active object as well and 'copy material to others', saving, closing re-opening, no luck. And the Ctrl L method as well.  Thanks in advance


Delete white spaces after certain character

I'm using this sed command to delete the word --More-- :  sed 's/--More--\s*/ /' tabladetallada.dat   the original file looks like this:  Device ID: BIOTERIO   IP address: 148.228.83.189 Interface: GigabitEthernet1/0/6,  Port ID (outgoing port): GigabitEthernet0/1  --More--         Device ID: N7K-LAN(JAF1651ANDL)   IP address: 148.228.4.192 Interface: GigabitEthernet1/0/1,  Port ID (outgoing port): Ethernet7/23 Device ID: LAB_PESADO   IP address: 148.228.131.130 Interface: GigabitEthernet1/0/11,  Port ID (outgoing port): GigabitEthernet0/1   IP address: 148.228.131.130 Device ID: Arquitectura_Salones   IP address: 148.228.135.61 Interface: GigabitEthernet1/0/9,  Port ID (outgoing port): GigabitEthernet0/49   IP address: 148.228.135.61 Device ID: CIVIL_253   IP address: 148.228.132.253  --More--         Interface: GigabitEthernet1/0/4,  Port ID (outgoing port): GigabitEthernet1/0/52   IP address: 148.228.132.253 Device ID: Arquitectura   IP address: 148.228.134.253 Interface: GigabitEthernet1/0/3,  Port ID (outgoing port): GigabitEthernet0/1   IP address: 148.228.134.253 Device ID: ING_CIVIL   IP address: 148.228.133.251 Interface: GigabitEthernet1/0/7,  Port ID (outgoing port): GigabitEthernet0/2   IP address: 148.228.133.251 Device ID: ING_CIVIL_DIR   IP address: 148.228.4.188 Interface: GigabitEthernet1/0/10,  Port ID (outgoing port): GigabitEthernet0/2 Device ID: Ingenieria_Posgrado   IP address: 148.228.137.253 Interface: GigabitEthernet1/0/8,  Port ID (outgoing port): GigabitEthernet0/1   IP address: 148.228.137.253 Device ID: Biblio_Barragan   IP address: 148.228.136.61 Interface: GigabitEthernet1/0/2,  Port ID (outgoing port): GigabitEthernet0/1   IP address: 148.228.136.61 Device ID: Electronica_Edif_3  --More--           IP address: 148.228.130.253 Interface: GigabitEthernet1/0/5,  Port ID (outgoing port): GigabitEthernet0/1   IP address: 148.228.130.253   Once the word is deleted the white spaces after it are still there How can I delete them?  Device ID: BIOTERIO   IP address: 148.228.83.189 Interface: GigabitEthernet1/0/6,  Port ID (outgoing port): GigabitEthernet0/1            Device ID: N7K-LAN(JAF1651ANDL)   IP address: 148.228.4.192 Interface: GigabitEthernet1/0/1,  Port ID (outgoing port): Ethernet7/23 Device ID: LAB_PESADO   IP address: 148.228.131.130 Interface: GigabitEthernet1/0/11,  Port ID (outgoing port): GigabitEthernet0/1   IP address: 148.228.131.130 Device ID: Arquitectura_Salones   IP address: 148.228.135.61 Interface: GigabitEthernet1/0/9,  Port ID (outgoing port): GigabitEthernet0/49   IP address: 148.228.135.61 Device ID: CIVIL_253   IP address: 148.228.132.253            Interface: GigabitEthernet1/0/4,  Port ID (outgoing port): GigabitEthernet1/0/52   IP address: 148.228.132.253 Device ID: Arquitectura   IP address: 148.228.134.253 Interface: GigabitEthernet1/0/3,  Port ID (outgoing port): GigabitEthernet0/1   IP address: 148.228.134.253 Device ID: ING_CIVIL   IP address: 148.228.133.251 Interface: GigabitEthernet1/0/7,  Port ID (outgoing port): GigabitEthernet0/2   IP address: 148.228.133.251 Device ID: ING_CIVIL_DIR   IP address: 148.228.4.188 Interface: GigabitEthernet1/0/10,  Port ID (outgoing port): GigabitEthernet0/2 Device ID: Ingenieria_Posgrado   IP address: 148.228.137.253 Interface: GigabitEthernet1/0/8,  Port ID (outgoing port): GigabitEthernet0/1   IP address: 148.228.137.253 Device ID: Biblio_Barragan   IP address: 148.228.136.61 Interface: GigabitEthernet1/0/2,  Port ID (outgoing port): GigabitEthernet0/1   IP address: 148.228.136.61 Device ID: Electronica_Edif_3              IP address: 148.228.130.253 Interface: GigabitEthernet1/0/5,  Port ID (outgoing port): GigabitEthernet0/1   IP address: 148.228.130.253


How to decrease nrf24l01 transceiver range?

I've just got my Nrf24l01 but then I found out that the working signal range for the module is 100m and above. Our real intention for the module is to let the nrf24l01(Receiver) out of range for about 5m in order to activate the alarm.   The purpose of our project is for anti-theft alarm which sounds the alarm if the module is out of range. We only need a short distance in order for the alarm to work since our research project is only for personal use.  We have an idea which we want to clarify if it is possible, it works by having the (receiver) to reach a fixed distance value in the coding of the arduino and when the (receiver) goes beyond that value, it will activate the alarm or beep. We want to ask if our idea is possible and if yes, can you help us how to code the arduino?.   I don't have any background in making a code for arduino but I know how to program an arduino using a ready-made code from the internet.


Using or switching between two USB power sources, one being data USB

This is what I need:   What's the best way to achieve this without damaging my car's audio?  I want to connect my iPhone to my car's audio and charge it at up to 4.2A iPhone will draw up to 2A instead of 500mA.  Or would it be easier to use a USB hub with external power source, such as 2A?  Unless it's possible to "bump up" the car's audio current to more than 500mA.


Robot on a grid. Find if it can reach a certain position.

We have a robot that can move : (+2, - 1) (-2,  +1) (+1, +3) (-1, - 3) .  I have to show whether it will reach a certain position (x,  y)  I've done that on a computer,  recursively,  but  I can't  find  a recurrence formula.  Any ideas ?


I just bought a Core i7 second generation machine which shows the processor in the BIOS as:     Intel Core i7-2620M CPU @ 2.70Ghz   I have seen i7 3rd and 4th generation processors on Google but I don't understand the suffix (i.e. what is meant by M). I have also seen other processors with suffixes like MQ* and **QX.  What do these suffixes mean?


How to check a signature using crypto class when you only have access to the "signature and public key" (i.e. not the private key)?

In the salesforce there is a function Crypto.sign() that computes a unique digital signature for the input string, using the specified algorithm and the supplied private key.  What I want to do is the reverse , I mean that I want to check if the signature is authentic. So if I have a public key and the signed data , how can I do to check the authenticity ?


How to completely disable the Windows taskbar?

I've installed Taskbar eliminator, while it works most of the time, alerts being the taskbar back.  I've also installed object dock which can disable the taskbar, object dock appears during window changes.   Has anyone had any luck permanently removing, hiding the taskbar in Windows 7?  Update  I found an application that seems to be working here:    Second update  I took the leap and installed a shell replacement (). So far so good.


Differences/ Similarities between different kinds of geometries.

I have been struggling some days now to understand the more general concept behind the abstract definition of geometry (probably the old-fashioned one due to Klein). As far as I know there are different kinds of geometries like euclidean, spherical, hyperbolic, elliptic, projective, affine etc. Although I've been looking around for the differences/similarities of them, didn't manage to sort it out clearly on my own, hence I think is a good place to ask here my query.   What I have so far is that projective geometry is a kind of extension of the Euclidean (and that does make sense in my head), and elliptic geometry is just the generalization of spherical in higher dimensions. But what's going on with the others? Is the projective geometry the general stage under which every other geometry can be built up? The Wiki article I think says for instance that projective space shares locally the same properties as models of spherical geometry, but don't really get that.. (as many many others unfortunately).  Frankly, I' m quite confused and a thorough answer behind the general philosophy of the aforementioned things (or probably a concise reference) it's really appreciated.  Also what can be said about the most recent definition of what Klein called geometry in his Erlangen Program?  I' m quite new here, so if I have done any mistake please feel free to remedy them! Thanks


Consider the estimator of the variance given by the formula: $(S')^2 = \frac{1}{n} \sum_{i=1}^{n}(Y_i − µ)^2$      Is this   a biased or unbiased estimator?   I'm not sure if it is possible to prove this without any additional information. Is there something missing?


Picklist population from design resource in lightning

I am populate a pick list value from design resource.But it is not loading value in the picklist. component:  <aura:attribute name="Recordtype" type="String" access="global"/> <aura:handler name="init" value="{!this}" action="{!c.doInit}"/> <ui:Inputselect aura:id="Recordty" value="{!v.Recordt}"/><br/>   Controller js:  doInit : function(component, event, helper) {     var opts = [];             var inputsel = component.find("Recordty");             var recur = component.get("v.Recordtype");             for(var i=0;i<recur.length;i++){             opts.push({"class": "optionClass", label: recur[i], value:recur[i]});         }         inputsel.set("v.Recordt", opts);     }    Design resource:  <design:component> <design:attribute name="Recordtype" datasource="Account,Contact,Lead,Opportunity"/>  </design:component>


Do you prefer "if (var)" or "if (var != 0)"?

I've been programming in C-derived languages for a couple of decades now.  Somewhere along the line, I decided that I no longer wanted to write:  if (var)    // in C if ($var)   # in Perl   when what I meant was:  if (var != 0) if (defined $var and $var ne '')   I think part of it is that I have a strongly-typed brain and in my mind, "if" requires a boolean expression.  Or maybe it's because I use Perl so much and truth and falsehood in Perl is such a mine-field.  Or maybe it's just because these days, I'm mainly a Java programmer.  What are your preferences and why?


How do I know if I'm in a jail, container, snapshot, etc. environment?

I received a machine (Ubuntu 12.04 server) from a coworker when he left the company. I created my own user as sudo/admin and used the machine for months via SSH. After rebooting for the first time since I was given the machine, I discovered that my user and everything I installed were missing. My user wasn't in the /etc/passwd file and the /home/myuser directory was missing. When I recreated the user and reinstalled everything, I didn't get any suspicious errors.  I suspect that I might have been in a snapshot/jail/container environment the whole time before rebooting, but how can I tell?


Setting env var on launching shortcut doesn't work

I'm looking at  and trying to apply it in my scenario.  My batch file is as follows:  @echo off REM // https://stackoverflow.com/a/39084914/122687 set QT_OPENGL=angle start "D:\ProgramFilesOnD_NoSpaces\Qt\Qt5.7.0\Tools\QtCreator\bin\qtcreator.exe"   And I've created a shortcut (pinned to the Windows 7 start menu) that points to this batch file.  When I click the shortcut, the following happens:   а command prompt window appears for an instant, then it disappears another command prompt windows appears. It doesn't disappear, and it looks like this:      Nothing else happens.   Any idea what's going wrong?


Which theoretical or experimental results provide us that we should calculate with massless gluon fields. Or in other words, what forbids gluons from having mass?


Is there anyway to remove denied permissions from a group for a folder if I dont have access?

I'm hoping the answer is yes.  Due to my ignorance, I denied the 'Everyone' group all read access from one of my folders containing needed information because I did not want people on my network being able to view my data.  I didn't realize that I could not remove myself from the everyone group, and therefore I can no longer view the data/files in the folder.  I can view all other information on the c:\ drive and such, just not this folder.  Is there anyway to remove the denied rights from the 'Everyone' group on this folder?  My account is an administrator, however from the GUI it will not let me edit security information on the folder when I right-click it and go to the security tab.  Windows OS : Vista


Prove that $\exists$ $f:(a,b)\to [a,b]$ such that $f$ is Bijective.

Let $a,b \in \Bbb{R}$ such that $a<b$ Then Prove that $\:\exists\:$ a continuous function $f:(a,b)\to [a,b]$ such that $f$ is Bijective. I am not sure how to prove formally, But i tested the claim for $f(x)=x$. It is of course injective but not surjective since codomain is different from range. EDIT: As per the link given in the comment section, this is what i understood. First let us assume $f:(a,b)\to [a,b]$ is onto. So $\exists$ $c,d \in (a,b)$ such that $f(c)=a,f(d)=b$. Without loss of generality let $c<d$. Now Since $f$ is continuous, by IVT we have: $$f\left([c,d]\right)=[a,b]$$ But $(a,b)-[c,d]\ne \phi$ So $f$ cannot be injective. Hence if $f$ is Surjective, $f$ cannot be injective. This implies that: If $f$ is Injective, $f$ cannot be surjective. The best example for $f$ to be continuous and injective is $f(x)=x$. But I am unable to find example for $f$ to be continuous and surjective.


Making a mobile battery charger for smart phones

i want to make a mobile charger and charge multiple mobiles at a time  therefore i select a 5V 2A adapter and a USB hub with 4 ports check the image  what i am going to do with this adapter and USB hub is, i will remove the USB HUB circuit so that electricity goes directly to USB port and just use the USB ports for chargers by making a series connection directly from adapters to USB ports so that each port supply 5V constant and 2A if incase only 1 mobile is connected   Now my question is what i am going to do is correct ?  Is there any other safe way to do this ?  what is the safest way to make a charger ?  Should i remove the USB HUB circuit or no need ?  Just with this 2 items i can charge multiple mobiles at a time and charge it with 2ampere ?


How do I defeat the Kayran in the first chapter of the Witcher 2?

In the first chapter you are supposed to slay the Kayran, this enormous beast:    I'm having a hard time with it. I drank the Mongoose potion for poison resistance and I have the Kayran trap, but it just hits me too often with its tentacles. Especially when the Kayran swings a tentacle sideways, not from above, I have a very hard time evading it.  Is there any trick besides not getting hit by the tentacles?  With a lot of luck I'm getting as far as the point where it's throwing stones. Any idea what I'm supposed to do then?


FATAL ERROR: Allowed memory size of 268435456 bytes exhausted (tried to allocate 8192 bytes)

Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 8192 bytes) in /home/---/domains/---/public_html/---/system/storage/cache/e0/e04e1f01ecc413b48d48f7d0acd02b41afe20667628afe21e97945b89e1c590a.php on line 51   I have this error, when I load this in controller/common/header.php:  $this->load->controller("account/login");   My php.ini:  magic_quotes_gpc = Off register_globals = Off default_charset = UTF-8 memory_limit = 64M max_execution_time = 36000 upload_max_filesize = 999M post_max_size=999M safe_mode = Off mysql.connect_timeout = 20 session.auto_start = Off session.use_only_cookies = On session.use_cookies = On session.use_trans_sid = Off session.cookie_httponly = On session.gc_maxlifetime = 3600 allow_url_fopen = On ;display_errors = 1 ;error_reporting = E_ALL


I have heard, that  will have  enabled by default. How will this be done? By adding a discards option to the  mount options or by running a cron-job?   Will the default options for Trim be automatically compatible with the  and encryption layers of the standard Ubuntu-system encryption?  It would be great to see some details about this.


grep for a text in a line. But if it has a comment only at its beginning then exclude it from the grep

I'm trying to grep for a instance "test" in /etc/oratab. But wanted to display only the line that doesn't begin with a comment. Below are the lines from /etc/oratab file:  #test:/u01/appl/oracle/test/db/tech_st/12.1.0.2:N test:/b001/app/oracle/testrac/db/tech_st/12.1.0.2:N         # line added by Agent   This is how I'm trying to get the details I'm interested in (placed the below in a shell script:  DB_NAME=test env_var=`cat /etc/oratab |grep $DB_NAME |grep -v '#' |cut -d":" -f 2` echo $env_var   The problem here is, as the 2nd line also has a comment at its end, it is also being ignored.   Please help.  Regards, RA


Editor with python compatible regular expressions

I am searching an editor which supports the regex syntax like python does.  I want a GUI like gedit.  The old school editors vi, vim, emacs are no solution, since the editor should be easy to use.  I use PyCharm for software development, but sometimes I just want to do a a simple re.sub() on some content from the clipboard.  The tool gedit is not bad (except pressing ctrl-f again does not do what you usually intent) but unfortunately it does not support the python regex flavour.  I know that gedit support regular expressions. But Python flavor regex syntax is required!


How do we explain the behavior of \rput, \psGetNodeCenter and saveNodeCoors?

Introduction  I am writing a tutorial on a short introduction to PSTricks for newbies. I got obstacles to explain how  a node A (for example), \rput, (!\psGetNodeCenter{A} A.x A.y) and (!N-A.x N-A.y) work by design.  I have read the pst-node documentation as shown below.      And the following is taken from page 35-36:    The manual says:   The transformation matrix will be reset by \psGetNodeCenter. (!N-A.x N-A.y) is not affected by \rput.   Even though I read it many times, I still get confused. The statements are too short.  Problem  Please consider the following figure for the remaining discussion.     Case 1  A node A is defined outside \rput and a dot is translated by \rput.   with (!\psGetNodeCenter{A} A.x A.y)  \pnode(2,2){A} \rput(1,1){\psdots(!\psGetNodeCenter{A} A.x A.y)}  with (!N-A.x N-A.y)  \pnode(2,2){A} \rput(1,1){\psdots(!N-A.x N-A.y)}    The results are different. \rput only affects (!N-A.x N-A.y). Case 2  A node A is defined inside \rput and a dot is translated by \rput.   with (!\psGetNodeCenter{A} A.x A.y)  \rput(1,1){\pnode(2,2){A}\psdots(!\psGetNodeCenter{A} A.x A.y)}  with (!N-A.x N-A.y)  \rput(1,1){\pnode(2,2){A}\psdots(!N-A.x N-A.y)}    The results are identical. \rput affects both. Case 3  A node A is defined inside \rput and a dot is defined outside \rput.   with (!\psGetNodeCenter{A} A.x A.y)   \rput(1,1){\pnode(2,2){A}}  \psdots(!\psGetNodeCenter{A} A.x A.y)  with (!N-A.x N-A.y)   \rput(1,1){\pnode(2,2){A}}  \psdots(!N-A.x N-A.y)    The results are different. \rput only affects (!\psGetNodeCenter{A} A.x A.y).   The MWE is given as follows.  \documentclass[margin=12pt]{standalone} \usepackage{pst-node} \addtopsstyle{gridstyle}{gridlabels=5pt} \psset{saveNodeCoors,linecolor=red} \everypsbox{\color{blue}} \begin{document}  \begin{psmatrix} \begin{pspicture}[showgrid=bottom](3,3)     \rput(1,1){Case 1-A}     \pnode(2,2){A}     \rput(1,1){\psdots(!\psGetNodeCenter{A} A.x A.y)} \end{pspicture} & \begin{pspicture}[showgrid=bottom](3,3)     \rput(1,1){Case 1-B}     \pnode(2,2){A}     \rput(1,1){\psdots(!N-A.x N-A.y)} \end{pspicture} \\ % case 2 \begin{pspicture}[showgrid=bottom](3,3)     \rput(1,1){Case 2-A}     \rput(1,1){\pnode(2,2){A}\psdots(!\psGetNodeCenter{A} A.x A.y)} \end{pspicture} & \begin{pspicture}[showgrid=bottom](3,3)     \rput(1,1){Case 2-B}     \rput(1,1){\pnode(2,2){A}\psdots(!N-A.x N-A.y)} \end{pspicture} \\ % case 3 \begin{pspicture}[showgrid=bottom](3,3)     \rput(1,1){Case 3-A}     \rput(1,1){\pnode(2,2){A}}     \psdots(!\psGetNodeCenter{A} A.x A.y) \end{pspicture} & \begin{pspicture}[showgrid=bottom](3,3)     \rput(1,1){Case 3-B}     \rput(1,1){\pnode(2,2){A}}     \psdots(!N-A.x N-A.y) \end{pspicture} \end{psmatrix} \end{document}   Question  How do I have to explain their behaviors to the newbies as the statements in the documentation seem to be unclear?  Note: As (!\psGetNodeCenter{A} A.x A.y) is identical to (A), (A) will not be discussed here.     If you are a teacher, how do you explain it to your   students?


I have a string array : Arrays.asList("str1", "str2", "str3", "str4");  And I want converti it as string with delimmotors, like this :  "str1,str2,str3,str4"  How I can do it without iterating my list ?


Hi, I'm having trouble with the mesh on this mug handle

I was following Blender Guru's tutorial on making a cup and I ran into this issue with the mesh. I deleted the interior faces and for some reason it still doesn't look good. I'm not sure what else would be wrong?


Minor Bug with "Closed Without Comment" Flags

With the new close reasons, there is of course the option to close a question with the "custom off topic" reason. When you fill in the box, what you typed as the OT reason gets left as a comment. It seems this gets done right after the "Closed Without Comment" flag is auto-generated, though, because when I do this I immediately get a flag popup on the question telling me I haven't left a comment explaining the closure.  Of course I have; the custom OT box posted my comment. But the flag is generated anyway, so I have to dismiss it.  This isn't a huge bug; it takes me all of a second to dismiss the flag. (Should I tell Community♦ it's being unhelpful, since the flag was incorrect? ;)). But on larger sites where questions might be closed by users more often, I think these invalid flags might pile up in the queue and end up wasting a good amount of a moderator's time. So I thought this was something that The Powers That Be should be aware of :)


For Ubuntu 16.04 LTS version , I search up something about starting terminal window, but Ii think these are not updated,  When I search,     I go the way to open terminal automatically by GUI but from the line command not up-to-date, Could you help how to do complete this task over terminal,  Thanks, solfish


Is there a tool to monitor what processes open what files on the system so you can track down which process keeps touching a specific file?  Lsof can find out if you run it while the process has the file open, but if it is a short lived process that runs every once in a while, you can't catch it with lsof.  Need something that uses kernel tracing.


Command line program to test DHCP service

Is there a simple ping-like command to test whether a DHCP service is running on a network? ...on Linux


cd rom copy How can I copy music direcly to my computer and not a cd

How can I copy a cd into my computer? I tried extract juicer but it doesnt have the mp3 option and when i choose another it brings the cd but when i put extract it doesn't do it. how can I do this, is it posible in ubuntu as in windows. or itunes to just extract tracks directly into your computer without having to burn a cd? thanks in advance for your help.


I have this function using Python :  def myFunction():     """     function which return 2     """     return 2   And I would know how can I do to display the comment of this function ?  Thank you !


Calculate distance of galaxy 13 billion years ago

How can I calculate the distance of a point from Earth now vs 13 billion years ago? The excerpt below claims it is 8 times further now. Can someone provide relevant equations ?


Publishing approaches that do not outperform the state of the art on the field

In the papers I usually read, it is common to present a new idea or an optimization of an existing idea that outperforms the known approches in the field.   Can a paper reporting that a new Idea or method (presented in this latter) doesn't outperform the existing approaches on the same fields be accepted for publication?  I'm asking this because I think that such papers could help the community to know that these approaches cannot improve the current state of the art on the field.


I have two materials here and i want to mix them to have a smooth border between them.(but not just put them one after another like layers). Explain me please how to do it.


Number of idempotent functions $F: \{1,2,3,4,5\} \to \{1,2,3,4,5\}$

PROBLEM: Find the number of functions $F: \{1,2,3,4,5\} \to \{1,2,3,4,5\}$ such that $F(F(x))=F(x)$. My approach: I tried to approach in a logical manner But for small cases $F: \{1,2\} \to \{1,2\} = 4$ (no of such functions) $F: \{1,2,3\} \to \{1,2,3\} = 13$ ( no of such functions) I think via combinatorics we might get the answer I wasn't able to do it Can you please help me. Answer is $196$


Why can read only users create objects inside postgres database?

I've just started working with Postgres and I noticed the following.  If I create a user they automatically have the ability to do whatever they want inside the database. User was created with:  CREATE ROLE read_access      NOLOGIN NOSUPERUSER INHERIT      NOCREATEDB NOCREATEROLE NOREPLICATION;   So I tried:  REVOKE ALL ON DATABASE dbname FROM USER username ; GRANT CONNECT ON DATABASE dbname TO username ;   I expected the user should be able to connect to the db with no further privileges on the underlying objects. But this user is still able to create objects inside the database. What am I missing here?


\left and \right not working in multiple line equation

I want to recreate the following:    What I have is this:  \begin{equation} \label{eq1} \begin{split} \nabla f(x_i) = \nabla f(x_i, y_j, z_k) & \approx ( \dfrac{1}{2} \left( f(x_{i+1}, y_j, z_k) - f(x_{i-1}, y_j, z_k) \right), \\  & \phantom{abc} \dfrac{1}{2} \left( f(x_{i}, y_{j+1}, z_k) - f(x_{i}, y_{j-1}, z_k) \right), \\   & \phantom{abc} \dfrac{1}{2} \left( f(x_{i}, y_j, z_{k+1}) - f(x_{i}, y_j, z_{k-1}) \right) ) \end{split} \end{equation}   Which produces this:    When I try to change the size of the first and last bracket with \left and \right I get an error. How else could I adjust the sizes of the first and last bracket?


$GL_n(\mathcal{F})$ is a finite group if and only if $\mathcal{F}$ is finite

Show that $GL_n(\mathcal{F})$ is a finite group if and only if $\mathcal{F}$ has a finite number of elements.  These are my thoughts.  The order of the group $GL_n(\mathcal{F})$ is $|GL_n(\mathcal{F})| = n^2$ because the matrices in the set are $n.n$ matrices and which would mean each matrix has $n^2$ entries.   I thought of somehow arguing $\mathcal{F}$ has $n^2$ elements which would show it's finite. Perhaps I need to show $\mathcal{F}$ is a finite. Could you clarify if I'm on the right track or not. Could you help get started on th right track on what the main idea of this proof? I'm stuck and don't if my assumptions are right and how to use them.


I was making some changes recently, trying to rename my user account from the macOS High Sierra System Preferences, and it seems I've locked myself out from making any changes to Users & Groups now.  When I click the lock icon (Click the lock to make changes) I am prompted for a User Name and Password. No matter what I input in these fields I am unable to unlock the preferences. I am sure I know my user account, otherwise I wouldn't be able to log into the computer, and there is only 1 user on my Mac.  I've also tried with:  sudo dscl . -merge /Groups/admin GroupMembership <username> Password: <username> is not in the sudoers file.  This incident will be reported.   So it seems the name change is causing a mismatch between what's in the sudoers file, so I basically have no user with admin access right now.  Does anyone know how I can reset these, even from the command line? Thanks in advance!


$\operatorname{tr}(A^m)=0\implies A$ is Nilpotent

$\newcommand{\tr}{\operatorname{tr}}$Let $A$ be a complex $n\times n$ matrix such that $\tr(A^m)=0$ for each $m=1,\ldots,n$. Show that $A$ is nilpotent.  My attempt: Since $A$ is a complex matrix, there exists a diagonal matrix $D$ and a nilpotent matrix $N$ such that $A=D+N$. Furthermore, this decomposition is unique and $D$ and $N$ commute. So we wean to show $D=0$. Since $DN=ND$, $A^2=D^2+2DN+N^2\implies \tr(A^2)=\tr(D^2)+2\tr(DN)+\tr(N^2)$. Since $N$ is nilpotent, $N^2$ is nilpotent $\implies \tr(N^2)=0$. Also, since $D$ and $N$ commute, $DN$ is nilpotent, so $\tr(DN)=0$. Hence $0=\tr(D^2)=\lambda_1^2+\cdots+\lambda_n^2$, where $\lambda_1,\ldots,\lambda_n$ are the diagonal entries of $D$. This implies each $\lambda_i=0$ and so $D=0$, which completes the proof.  I'm a little unsure though because I didn't use the fact that $\tr(A^m)=0$ for $m>2$. Is my argument correct, or does someone see a flaw?


Vector spaces with complex field as scalar.

Sorry for stating the question informally. If we have a vector space whose scalars are the field $\mathbb{R}$, if we change the field to be $\mathbb{C}$ and "adapt" the addition and scalar multiplication operations, does it necessarily yield a new vector space?  Are there theorems developed in this manner or similar tests?


Ubuntu on a USB stick - boot in both BIOS and UEFI modes

I'd like to have Ubuntu installed on a USB stick, that I could plug in (almost) any computer and boot from it, and that I could use (almost) normally, as if it was installed on that computer. I'd also like to have a data partition on it that could be used by (almost) any computer, mostly to store some portable apps, just in case.    I've been told that if I installed Ubuntu in BIOS mode, I wouldn't be able to boot from a computer in UEFI mode, and vice versa.  Since I'd like to be able to boot on any computer, it's a big problem.  What can I do to be able to boot on computers in BIOS or UEFI modes in my case?  I've been searching for solutions but most of them are for specific needs that are different than mine, so it's difficult to extract the minimum requirements from those solutions to apply them to my problem.  Is there a simple, "clean" and quite generic solution to this problem?  I'd appreciate some explainations about the reasons why a specific solution is good or a specific step is needed.    My current setup:   USB stick:  OS: Xubuntu 16.04 i386 installation: full install (from a Live USB built with Rufus) drivers: none proprietary file systems:    partition table:    2: , /boot/efi, 128 Mio, FAT32, [boot,esp] 3: , 128 Mio, HFS+ 4: , 2 Mio, [bios_grub] 5: swap, 512 Mio 6: , /, 24 Gio, ext4, defaults,errors=remount-ro,lazytime,commit=60 1: , /media/data, ~3.6 Gio, FAT32, defaults,lazytime,check=strict  RAM:   /tmp, tmpfs, defaults,nosuid,nodev,noexec,mode=1777   swap:    vm.swappiness=5 swap partition: 512 Mio, for emergency zRAM swap files:    /var/swap/hib.swp: same size as RAM, for hibernation, generated by a script at startup /var/swap/opt.swp: if needed, generated by a script   overprovisioning: ~5.6%   built-in: ~1.2 Gio (apparently) added: 512 Mio  scheduler: deadline


Sufficient and necessary condition for a linear map to be a scalar multiplication

Let $V$ be a finite dimensional vector space, and let $T\in\mathscr{L}(V)$ (where $\mathscr{L}(V)$ is the set of linear maps $V\to V$). Show that $T$ is the identity multiplied by a scalar iff $TS = ST$ for all $S\in\mathscr{L}(V)$.   This problem is taken from , by Sheldon Axler (Ch 3), and is given before the concepts of eigenvalues, eigenvectors, operators and inner products are introduced. Up to this point only vector spaces, subspaces, bases (spanning and linear independence), linear maps, matrices and the correspondence between them are introduced.  I have no idea how to approach this problem, and looking for hints that may help me solve it. Any help will be appreciated.


How can i customize the title of a single section that would be different from the titles of the other sections, for example, frame the section title exercises. Something like this picture :


What content type to force download of text response?

I need to stream a file to the Response for saving on the end user's machine.  The file is plain text, so what content type can I use to prevent the text being displayed in the browser?


Getting Integer value from a String using javascript/jquery

These are the strings I have:  "test123.00" "yes50.00"   I want to add the 123.00 with 50.00.  How can I do this?  I used the command parseInt() but it displays NaN error in alert box.  This is the code:   str1 = "test123.00";  str2 = "yes50.00";  total = parseInt(str1)+parseInt(str2);  alert(total);


Sum of all the numbers that can be formed using all the digits $2, 3, 3, 4, 4, 4$

Find the sum of all the numbers that can be formed using all the digits $2, 3, 3, 4, 4, 4$.  It is a P&C related problem so the word all means it is a six-digit number. Hence the number of terms is $\frac{6!}{3!2!} = 60$.  How do I calculate the sum?


I want to read a text file from last line because it could be big size and just want to check today's log content.   I'm using File.ReadLines() and success to read last line.  How can I read the previous line?  Or is there any way to get the current line number so that I can subtract the number?  foreach (string f in Directory.GetFiles(sDir, "*.log", SearchOption.AllDirectories)) {     string last = File.ReadLines(f, Encoding.Default).Last(); //read Last Line here      if (last.IndexOf("error", StringComparison.OrdinalIgnoreCase) > 0)     {         WriteError(last);     } }


Is it possible to render a single image on multiple machines (split the render load)?

Since rendering breaks up an image into separate chunks for each thread, would it be possible to offload some of those threads into the network and have other machines do the work?


If we have a real valued function $f$ continuous at some point $a$, is it necessarily true that $f$ is Riemann integrable on the interval $[a - \delta, a + \delta]$ if a $\delta > 0$ exists?


Mod Rewrite appends Document root in rewrite rules

Previously my host provider gave an option of setting up rewrite rules in apache configuration files. At that time below rule worked fine.  # Non WWW URLs to WWW URLs RewriteCond %{HTTP_HOST} ^example\.com$ [NC] RewriteRule ^(.*)$ http://www.example.com$1 [R=301,L]   Right now I am moving all these rules to .htaccess and in every redirect, it adds the document root like /var/www/sites... in URL.  Why is this behaving differently ?


Class newlfm letter does not have bottom margin for the second page

I'm writing a letter with class newlfm and I have a somewhat big issue, the second page does not seem to have the bottom margin.  First page bottom:    Second page bottom:    This is my code:  \documentclass[12pt,stdletter,orderfromtodate,sigleft]{newlfm} \usepackage{lipsum, xfrac} \usepackage{amsmath} \usepackage[shortcuts]{extdash}   \newlfmP{dateskipbefore=-100pt} \newlfmP{sigsize=0pt} \newlfmP{sigskipbefore=0pt} \newlfmP{sigskipafter=0pt} \newlfmP{sigsize=0pt}  \newlfmP{Headlinewd=0pt,Footlinewd=0pt}  \namefrom{name Surname}  \dateset{May 6, 2019}  \greetto{To Whom It May Concern,}  \closeline{Respectfully yours,}  \begin{document} \begin{newlfm}  \lipsum \lipsum  \end{newlfm} \end{document}   Thank you in advance


Show on $\mathbb{N}$ there are $2^{\aleph_0}$ nonisomorphic linear orders.

How can I attack this problem?  My idea is for $X \subset \mathbb{N}$ set up a linear order $O_{X}$ such that if $X \not =Y$ then $O_X \not = O_Y$.


what can I do to be member of the ubuntu community?

I want to be member of the ubuntu community.What can I do,please help me


Passing Account ID to my Visualforce Page

As the user goes into an account, there is a custom button that they can click that will redirect them to my Visualforce page.  How can I capture that account id  in my controller?  Thanks  public myControllerCBR(){     breachRecord = new List<wrapperClass>();      AccountTeamMember uId = [SELECT UserId FROM AccountTeamMember WHERE AccountId =:ApexPages.CurrentPage().GetParameters().Get('id') and TeamMemberRole = 'Sales Engineer' limit 1];      List<User> uName = [SELECT Name, Manager__c, MANAGERID, Email, MOBILEPHONE FROM User WHERE Id =:uId.UserId limit 1];       for(User rept : uName){         breachRecord.add(new wrapperClass(rept));     }  }   See button setup:


dpkg error: firefox-locale-en list missing

When I do anything with apt or dpkg I get this error:   dpkg: warning: file with the list of files from package 'firefox-locale-en' is missing;   Does anyone know how to fix this? I already did:  sudo apt-get update sudo apt-get upgrade sudo apt-get autoremove sudo apt-get -f install sudo apt-get -m install sudo apt-get install -f sudo apt-get install -m sudo apt-get purge firefox sudo apt-get install firefox sudo dpkg --configure -a   And I still get the same problem!  This could be seen as a duplicate of: , But it is not. That has other packages so completely other solutions than mine.


I am looking at setting up several Centos machines in my network and would like to have them update from a centralised server on the network. I am hoping to save bandwidth by not having to update each OS from the internet.  The solutions I have found require me to mirror the entire centos repository, which I find to be a terrible waste of storage considering that I would only ever be using a fraction of the packages available.  The solution I am looking for would allow all machines to point to a local yum server for packages and if the latter doesn't have the requested package, get it from the www and cache it for the next request.


Install ONLY Ubuntu OS on SSD (22gb) [Samsung NP530]

install ubuntu on the SSD and all apps and documents in the HDD. Can i?


Integral of exponential function with polynomial arguments with degree two $\int_{-\infty}^{\infty}e^{-ax^2}e^{-2bx}dx$.

I have been using the following definite integral of exponential function for ages  without knowing how to show it.     $$ \int_{-\infty}^{\infty}e^{-ax^2}e^{-2bx}dx=\sqrt{\frac{\pi}{a}}e^{\frac{b^2}{a}}. $$   Can anybody give some hints?


I got my article with major revision from "Renewable Energy" but as per my knowledge the major revision are seen to be like minor questions were asked by the two reviewers. After submitting my revised manuscript, after 15 days my status was in "under review" the next day it was changed to "required reviews completed". Now so far, for 16 days my article still in "required reviews completed". Why is the editor taking very long time after the second review completed? Please, any one of you gives me the answer.   Why you all people have marked the duplicate of an existing question. My question may be old to everyone, But this question what I raised is new to me....if you are willing to give the proper answer to the question, I am very thankful to them. But don't say existing question for what I asked


Highlight every occurrence of a list of words?

In order to revise a draft, and identify related sections, I would like to identify similar words (by color of text, highlight, underline, or otherwise) according to topic.   For example, I would like all uses of the terms "foo" or "bar" highlighted red and all uses of "biz" and "baz" highlighted green.  There might be four or five groups of words or word roots that I want to specify. This is only for revision, so it can be rather crude.  For example, replace this:    with this:    (In the example, it is hard to see the green text; perhaps bold+color or underline would be more useful)  Update A  provides an answer using XeLaTex. My document does not compile with XeLaTex, I would prefer a solution compatible with pdflatex if available (since that is what I use), though my document also compiles with luatex.  Other related questions:    (answer is not generic - requires seven lines per string to be replaced)  (only provides xelatex solution)   (uses chickenize, replaces string but does not add color)


How should I calculate the entropy of a password?

If part of the password is a whole regular English word, does the entropy of that part depend on the number of English words in existence, the number of English words known by the choosing algorithm, the number of English words assumed by the attacker?  Does the language matter, is the average entropy per word in German, French, Italian, or Spanish significantly different from the average entropy in English?  Does a numeric digit always have an entropy of $\log_2(10) = 3.321928$?


I'm working on a theme that has a number of image sizes defined correctly using:  add_image_size( 'name', 500, 200, true );   I would like to override these defined sizes from the child theme:  add_image_size( 'new-name', 400, 300, true );   I know I can add new sizes, but if I add the same name i.e:  add_image_size( 'name', 400, 300, true );   Then the parent function call is used - the child one is ignored - adding extra rules adds extra images which will never be used - it's not so bad, but it's not efficient.  Is there a function to de-register an added image size?  Cheers!  Ray


How do a make a kMyCustomName = 1 and kMyOtherCustomName = 2 global in my code?

I have the following function:  + (int)isCorrectOnServer:(int)num {  // some code performs here...  if (this) {     result = 2; } else if (this2) {     result = 1; } else {     result = 0; }  return result; }   I want it to return like this instead:  + (int)isCorrectOnServer:(int)num {  // some code performs here...  if (this) {     result = kOnServer; } else if (this2) {     result = kWrongType; } else {     result = kNotOnServer; }  return result; }   So anywhere in my code I could just call:  if ([Helper isCorrectOnServer:276872] == kOnServer)   to make my code cleaner and not show 0, 1, or 2 as the result. What is the best way to go about doing this?


Recovering Very Important Lost Data From Ntfs Partition

I have a 230 Gigs HDD on my laptop, i have 50 gigs extended for my linux, i have 80 gigs empty ntfs partition, and 100 gigs ntfs partition where i store all my important data, (i have about 50 gigs of important things) today i mounted the 100 gigs partition took something from it, unmounted it back, and then when i mounted it again it was EMPTY !!! all the data is gone !!!! i used to mount it via the terminal : sudo mount ntfs /dev/sda5 /media/E where E is a dir that i make (when i make it i change the permissions of media to 777 then after creating the dir, i change it back to normal)  Guys you cant imagine how much this data is important to me, Plz HelP,  thnx in advance


I am trying to run an executable file from a network drive on Windows 7 Professional (64-bit) in order to install a program, but, each time I try, it doesn't run and the following message appears:  {path-name} The specified path does not exist. Check the path, and then try again.   I am definitely connected to the network drive as I can see all of the directories and files, and can even open non-executable file types. Also, I am fairly confident that this is neither a firewall nor a permissions issue.


Proving that $7n+3$ is prime infinitely often?

The Question is: "Prove that there are infinite values of natural $n$ for which $7n+3$ is prime. Edit: I have realised that this is a direct consequence of Dirichlet's Theorem, but the proof of this theorem is beyond me at the moment. Is there any simple/elementary way to prove this statement?


Unsplit/Dissolve multiple touching lines in Stream Network using ArcGIS Desktop?

I am trying to dissolve multiple lines for stream networks into individual features. The dataset contains many stream networks so a complete dissolve of the whole dataset wont do as I would like to only dissolve streams that are in the same network (illustrated in the pictures below).  I've tried using the Unsplit Line tool and the Dissolve tool in ArcGIS 10. The tool will only join two lines together, i.e. lines that share a common end point. This is illustrated in the screenshots below.    Here is the orignal dataset with the lines split, a single line feature is highlighted    This is the same feature highlighted after using the unsplit/dissolve tool. As you can see it has only joined two lines together rather than all of the lines that are touching.  The features in the same network do not have a common attribute either.


Task  I have the following function  $f(x)=x^2+1$  I need to prove, according to the $\epsilon - \delta$ definition of a limit, that $f(x)$ is continuous at $x = 2$.  Step 1  $\forall \epsilon > 0 \enspace \exists \delta > 0 : |f(x) - L| < \epsilon, \mbox{ when } 0 < |x - c| < \delta \Rightarrow \lim_{x \to c}f(x)=L$.  If a function is continious at a given point, the value of the limit and the function must be equal, so:  $\lim_{x \to c}f(x)=f(c)$.  And in this case - $f(2) = 2^2 + 1 = 5$.  Which means that $\lim_{x \to c}f(x)=5$.  Step 2  Try to define $x$ in terms of $\delta$.  $0 < |x - 2| < \delta \\ 2 - \delta < x < \delta + 2$  Step 3  Try to define $x$ in terms of $\epsilon$.  $ |x^2+1 - 5| < \epsilon \\ 4- \epsilon < x^2 < \epsilon + 4 \\ \sqrt{4- \epsilon} < x <  $  Step 4  Expressing $\delta$ in terms of $\epsilon$.  $ \sqrt{4 - \epsilon} \leqslant 2 - \delta \\ \sqrt{4 - \epsilon} -2 \leqslant - \delta \\ 2 - \sqrt{4 - \epsilon} \geqslant \delta $  And  $ 2 + \delta \leqslant \sqrt{\epsilon + 4} \\ \delta \leqslant \sqrt{\epsilon + 4} - 2 $  Step 5  I can now say that $\forall \epsilon$ I have a $\delta$ (two deltas?) and you can find them in terms of epsilon:  $ \delta \leqslant \sqrt{\epsilon + 4} - 2 \mbox{ and } \delta \leqslant 2 - \sqrt{4 - \epsilon}  $  Questions   Is this sufficient proof? What does the double $\delta$ definition mean? How should I format my final proof statement in this case (double deltas)?


How to fix Incorrect filesystem property information?

My hard drive has four partitions.    Windows 80gb  Ubuntu Linux 70gb  Storage 530gb  Recovery 14gb   I used Gparted (booted Linux from pen drive) to remove 30 GB from storage and subsequently re-allot it to Ubuntu Linux (Yes that's 100 for Linux, a lot, I know. Just don't worry about it lol. I'm new.) That finally finished and my partitions show up as their respective new sizes, however, the properties of my "storage" partition still show it holding the extra 30gb.   The partition is 500gb but the filesystem properties still says 530gb like before, how do I fix this?


C++ Confusing problem with relational condition, what am I not getting?

code below.  I'm writing an algorithm that sums the series 1.2 + 2.3 + 3.4 + 4.5 + 5.6 + 6.7 + 7.8 + 8.9 + 9.1 + 10.11...  as it is relatively short I shall post the whole code:      #include <iostream>  using namespace std;  int main() {     int num;     double dec = 12, sum, denom, temp;     cout << "input the last integer between 1 to 98 without "         << "fraction you want to add: ";         cin >> num;     for (int i = 1; i <= num; i++)     {         denom = 10;         dec += 11;         temp = dec/denom;         //cout << temp - int(temp) << endl;         if ((temp - int(temp)) == 0.9)         {             dec -= 9;         }         cout << dec/denom << " + ";     } }   what I am confused about is this bit here:  //cout << temp - int(temp) << endl;         if ((temp - int(temp)) == 0.9)   removing the comment shows that temp - int(temp) does eventually = 0.9 yet the conditional statement does not seem to ever become true. what am I missing??  I am not asking for a better method, or solution, just an answer to this specific problem. Thank you.


Number theory: $(a + b)^p ≡ a^p + b^p\pmod{p}$

I'm just a little stuck on this problem. I think the solution must incorporate something like Fermat's theorem, but I'm struggling with getting it exactly correct.   Show that if $p$ is a prime number and $a$ and $b$ are natural numbers, then   $$(a + b)^p \equiv a^p + b^p \pmod{p}$$


The report I'm writing requires citations to be in authoryear style ie (Smith et al 1999.) except for cases where there are two authors in which case both names should be listed ie (Bloggs and Carlson 1998). To achieve this I'm using biblatex:  \usepackage[citestyle=authoryear, bibstyle=apa, apamaxprtauth=20, sorting=nyt, maxcitenames=2, maxbibnames=99]{biblatex}   This works perfectly except for specific authors, in which case it lists extra authors for no apparent reason. These authors all have multiple papers cited in my report so I'm guessing that biblatex is thinking that they're different people, but in each case their name is written exactly the same in each entry in the .bib file. I've tried adding uniquename=false and that does nothing. Can anyone help?


I have Java 8 and Ubuntu 18.04. I'm using NetBeans and when tried to make some program, it couldn't be done because JavaFX is missing.  I installed Java JDK with NetBeans from Oracle's site and thought everything is included but obviously I didn't check it well.   What should I do, what should I install? I'm not so good at this and don't know if problem is with Ubuntu or Java. :(


How can I open an online .pdf to a specific page from a LaTeX generate .pdf from footnote?

I'm try to open a .pdf to a specific page from my pdf generate using pdflatex, this is a valid urlthat do what I want in my browser:    #page=4 indicate the page I want to open, but it seems that when I use it in a \footnotedoesn't work:  \footnote{\url{http://www.icomos.org/charters/venice_e.pdf#page=4}}   In my LaTeX document, doesn't work I've got this error:  Illegal parameter number in definition of \Hy@tempa.<to be read again>p ....icomos.org/charters/venice_e.pdf#page=4}}  Caused by #page=4. This is a MWE:  \documentclass[12pt,a4paper]{book} \usepackage{hyperref} \begin{document} words words words \footnote{\url{http://www.icomos.org/charters/venice_e.pdf#page=4}} \end{document}   How can I solve the problem?


I am trying to add roman numerals to the sections of a paper and then letters to denote the subsections. It seems the default is arabic numbers for both.  So what I have currently is:     1.        1.1        1.2   2.   2.1   And I would like:     I.       I.A       I.B II.       II.A   Currently I am just using \section and \subsection, so I guess the default is numbers, but not sure how to modify section and subsection labelling for the case of roman numeral-letters I would like.  Thank you


Spring security Authentication parameter in @Controller handler method

I have the a spring boot method app, and one method has the following singature:  @GetMapping("{accountId}/component/{id}") public Component getComponent(@PathVariable("accountId") String accountId, @PathVariable("id") String id, Authentication auth) throws Exception {     // }   I understand all parameters except the last parameter : Authentication auth. Where/how does it get passed into the method?


Calculating the magnitude of magnetic field created by magnets

If there is a charge in space, it is possible to calculate the magnitude of electric field generated by the charge at a point in space by using the formula $E = {{kQ}\over{r^2}}$ However,  If there is a permanent magnet in space, how is the magnitude of magnetic field (B) calculated at a certain distance away from the magnet?  For example, if there was a neodymium magnet graded at N42, how do we calculate the value of magnetic field $0.1 $m away from the center of the magnet?


Will items dropped on the ground ever disappear?

With the Thieves Guild missions to steal X worth of items from Y, I find myself with a lot of useless items that aren't even worth selling.  So usually I just stop and drop everything on the ground. Unfortunately, this means that Riften now has random piles of plates and goblets and other random garbage everywhere. I guess they don't have sanitation workers in Skyrim.  Will these items eventually disappear or will I have to do a special thief "mission" to steal all the garbage off the ground and dump it in a container?


How to add matplotlib from python3.6 to Blender?

In Window, I installed python3.6 and, installed matplotlib by commandline:  pip install matplotlib   After installation, I was running matplotlib in python console,  import matplotlib.pyplot as plt --> not error import matplotlib.pylab as plb --> not error   In python36\lib\site-packages    I want in blender to use the matplotlib library in python, Can I copy the matplotlib in python36\lib\site-packages of Python into the Blender\2.78 \python\lib\site-packages?  I tried copying but only importing matplotlib, but when `import matplotlib.pylot as plt the error is as follows    I do not know how to fix it, please help me  Thank you so much!


C Program Crash when Dimension of 2D array exceed 700x700

Wrote C program to generate random 2D array of to represent adjacency matrix of for non-directed graph,  It works fine when V is smaller or equal to 700,  Once exceed, it crashes during run-time  Any specific reason? any modification can be made so that it could possibly generate bigger matrix?  #include <stdio.h>  #include <stdlib.h> #define V 700 int main(){      //CREATE FILE     char v[4] = {'7','0','0','\0'};      FILE *fPointer;      fPointer = fopen ("adjMatrix.txt","w");     fprintf(fPointer,v);     fclose(fPointer);       int graph[V][V];      int i;     int j;      for (i=0;i<V;i++)     {         for(j=0;j<V;j++)         {             if(i==j)             {                 graph[i][j] = 0;             }             else             {                 graph[i][j] = rand()%10;                 graph[j][i] = graph[i][j] ;             }         }     }       //append file     fPointer = fopen ("adjMatrix.txt","a");      for (i=0;i<V;i++)     {         fprintf(fPointer,"\n");         for(j=0;j<V;j++)         {             fprintf(fPointer,"%d ",graph[i][j]);         }     }       fclose(fPointer);     return 0;  }


I like some of the features provided by the Vim-LaTeX suite, but not all of them.  In particular, I dislike all of the mappings like [[ = \left[ \right] and the automatic placeholder stuff with <++>. I am a very fast typist but with that comes more typing mistakes, which I correct almost instantly by pressing backspace. Unfortunately, if something has automatically added a bunch of place-holders or expanded some expression, I then have to move around the document and remove more characters than necessary. For example, if I accidentally press [ twice, instead of only having to delete one character, I have to delete 10.  Having already looked through the documentation, and some of the source, I have managed to disable some of these "features", but not all of them:  In particular:  let g:Tex_SmartKeyBS = 0 let g:Tex_SmartKeyQuote = 0 let g:Tex_SmartKeyDot = 0   (Turn off maps for backspace, double quote and triple dot.)  let g:Imap_UsePlaceHolders = 0   (Turn off <++> placeholder insertion.)  But I can't seem to find a way of turning off the other stuff. Anyone have any suggestions?  Edit: I was able to "disable" some more things by setting:  let g:Tex_Leader = '`tex' let g:Tex_Leader2 = ',tex'   (Which stops some expansions but still not all. It's not really disabling it but just making it less likely that you're going to type in `texa as opposed to the potentially more common `a, for example.)  PS: Personally, I think it is very poor practice to make an optional package that, when installed, greatly changes the default handling of your system. I don't mind some intelligent source highlighting etc, or some new commands (that don't clobber any old ones), but it seems unhelpful to enable this drastic kind of key remapping by default.


All the ads for my website have been disapproved last week due to malicious (third party) software. I checked the whole website and noticed the third party script on the header section related to Localmed. But I have removed all scripts and scanned the whole site again and found no malware now. But my ads are still being disapproved again and again. Can you please help me as I am losing my business due to this reason. I have also attached the screenshot for your reference.


Is there any online resource that can tell me what visa rules are for passport holders of a specific country?

When thinking about travelling, I often have to think about a place to visit, and then look up visa rules for that particular country. This can be a fairly painful process because official government sites can often be hard to find, and advice on (say) guidebooks or Wikitravel tends to be generic.  Is there any resource where I can enter my nationality/residency, and then look up a list of visa rules for various countries?


I have been trying to send String to my mainActivity from a fragment. I don't know if I done this right, but I start new mainActivity Intent after user presses button in fragment.  What I want to do is when application is opened fragment needs to be loaded instead of mainActivity if there is no String message sent from fragment. At the start of the main Activity I tried to check if the message is not null but I get an error and application don't want to start because I'am trying to access null object      java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.audriusalekna.camerapht/com.example.audriusalekna.camerapht.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.os.Bundle.getString(java.lang.String)' on a null object referenc   Should I take a different approach on doing that?  Here is my code   Intent intent = getIntent();     if(intent.getExtras().getString("tagsText") == null){         Fragment fragment = TagsFragment.newInstance(tagsText, "blah");          FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();         transaction.replace(R.id.fragment, fragment).commit();         cameraBtn.setEnabled(false);         cameraBtn.setVisibility(View.GONE);         firstTime = false;     }     else{         tagsText = intent.getExtras().getString("tagsText");         Log.v("MESSAGE", tagsText);     }


How do I unlock Rosalina in Mario Kart Wii?

How do I unlock Rosalina from Super Mario Galaxy as a playable racer in Mario Kart Wii?


Is there a way to disable recovery mode so it won't be possible to factory reset your phone?  Basically what I am trying to do, is that it should be impossible to factory reset the phone as there is no recovery partition.  (Example format the recovery partition, or hide the option of factory reset on the recovery menu, build a custom recovery etc.)  P.S.. I was thinking of maybe removing a system app (example package installer) and making it a user app, and therefore when you factory reset the phone it won't start cause the system app is missing, but when I tried that, the phone wouldn't start even without resetting it, as the system needs the system app to start, ( I thought that maybe even though I removed the app from being a system app, the phone would still start as it's still there as a user app, and only after resetting the phone - that the user apps get deleted, the phone won't start as it's missing the app).  Thanks in advance


Can I get SSD rw performance while keeing data security if I combine SSD & HDD in btrfs RAID1

I have 2 storage devices; classical slow HDD (750GB, /dev/sda) and faster SSD (128GB, /dev/sdb). Currently I have installed Ubuntu & Mint on same btrfs partition on SSD (/dev/sdb5). My btrfs pool consists of /dev/sdb5.  What I want to achieve is data replication on HDD while keeping SSD performance: Something like this:  For read case it would be ideal for procedure to go like this:   read from SSD check checksum if it verifies.. awesome, give me the data if not, fetch data from HDD and perform error correction through duplicate data   I'd manually run (some tool I'm not sure which one... btrfs check --repair perhaps?) every month or so to check HDD checksums and correct them via SSD data against bitrot.  For write case:   write to SSD sync to HDD when write requirements are low, thus not slowing down the system.   Is this possible and how would I do it?  Bottom line is, I like btrfs and would like it to duplicate data across HDD & SSD drive automatically while keeping SSD excellent performance.   Using SSD as write cache is not an option since it's missing data duplication and security.


Getting null pointer exception while trying to write in xlsx file

I am getting following error while writing values to last column of the row. The last cell has to be created new.  java.lang.NullPointerException     at com.dnb.util.WriteExcel.writeXLSXFile(WriteExcel.java:37)    at com.dnb.reducer.ComparisionReducer.reduce(ComparisionReducer.java:47)    at com.dnb.reducer.ComparisionReducer.reduce(ComparisionReducer.java:1)     at org.apache.hadoop.mapreduce.Reducer.run(Reducer.java:176)    at org.apache.hadoop.mapred.ReduceTask.runNewReducer(ReduceTask.java:566)   at org.apache.hadoop.mapred.ReduceTask.run(ReduceTask.java:408)     at org.apache.hadoop.mapred.LocalJobRunner$Job.run(LocalJobRunner.java:216)  My Code is  public class WriteExcel {      public void writeXLSXFile(int row, String value) throws IOException {         try {              FileInputStream file = new FileInputStream(new File("C:\\Users\\582092\\Desktop\\Inputs\\Book2.xlsx"));              XSSFWorkbook workbook = new XSSFWorkbook(file);              XSSFSheet sheet = workbook.getSheetAt(0);              Row r = sheet.getRow(row);              int col = sheet.getRow(row).getPhysicalNumberOfCells();              Cell cell = r.createCell(col);              cell.setCellValue(value);              file.close();              FileOutputStream outFile =new FileOutputStream(new File("C:\\Users\\582092\\Desktop\\Inputs\\Book1.xlsx"));              workbook.write(outFile);              outFile.close();          } catch (FileNotFoundException e) {             e.printStackTrace();         } catch (IOException e) {             e.printStackTrace();         }     }  }   My Question is i have a excel file with 12 columns. I am going to do some validation with this 12 columns and i want to write the result of this validation in 13th column of each row.  When i try to do this I am getting NullPointer Exception.  Actually I am getting this error in this line      cell.setCellValue(value);