This is just a curious question, but is the following true?     $$f(x) = f'(x)\iff f(x) = e^x.$$   I can prove that $\dfrac{\mathrm d}{\mathrm dx}\left(e^x\right) = e^x$ from using the the formula, $e^x := \operatorname*{\lim}\limits_{n\to 0}(1+n)^{1/n}.$ For those who are not familiar with the proof, it can be found . Or, you can go  for a similar approach.  However, my question is asking whether or not $f(x) = e^x$ is the only function equal to its own deriv. I suspect it is true, but how can we prove that $e^x$ is the only value equal to its derivative, for any $x$?  I consider it very likely that there exists another question out there, perhaps exactly like this. If so, please comment the link below, and I will go straight to it, delete this post, and give you a muffin. I do not intend on trolling or wasting anyone's time.  Thank you in advance.

This may seem like a silly question, but I just wanted to check. I know there are proofs that if $f(x)=f'(x)$ then $f(x)=Ae^x$. But can we 'invent' another function that obeys $f(x)=f'(x)$ which is non-trivial?


I can choose the location of the render image but I can't find the render button. I find everywhere in the panel but there is no. Please help

So either Google doesn't have the answer, or I didn't know what to search for. But I don't see the render button on the right side of the screen. Every tutorial I see says that I'll find it there, but I don't see it.  This is what I'm seeing


If   ($ x_1$,$ y_1$) , ($ x_2$,$ y_2$) & ($ x_3$,$ y_3$) be three  points on the  parabola    $y^2= 4ax$ and the normals at  these points meet  in a point then prove that  $\frac{ x_1 - x_2}{y_3} + \frac{ x_2 - x_3}{y_1} + \frac{ x_3 - x_1}{y_2}$=0.  Normal Equation:   $y=mx-am^3-2am$  Let (x',y') be common points  We get:  $y'=mx'-am^3-2am$  Let $m_1, \ m_2$ & $m_3$ be the slopes at ($ x_1$,$ y_1$) , ($ x_2$,$ y_2$) & ($ x_3$,$ y_3$).   We get  $ \ y_1=\ m_1 \ x_1+y'-\ m_1x'$  $ \ y_2=\ m_2 \ x_2+y'-\ m_2x'$  $ \ y_3=\ m_3 \ x_3+y'-\ m_3x'$  To arrive at the desired result i used  $y'=mx'-am^3-2am$  After this step i used $ \ m_1+ \ m_2+ \ m_3=0$ as $\ m^2$  coefficient is '0' but to no avail

If $(x_1, y_1), (x_2, y_2)$ and $(x_3, y_3)$ be three points on the parabola  $y^2 = 4ax$ and the normals at these points meet in a point then how will we  prove that $$   \frac{x_1 -x_2}{y_3} + \frac{x_2-x_3}{y_1} + \frac{x_3-x_1}{y_2} = 0? $$  I tried as follows.  Let the normals meet at $(h,k)$. Then, $$am^3 + (2a-h)m + k = 0.$$  After Solving the equation, $$ x_1 y_1(y_2-y_3) + x_2 y_2(y_3-y_1) + x_3 y_3 (y1 - y2) = 0 $$  Substituting $x_k = y_k^2/4a$ for $k \in \{1,2,3\}$  But I am not getting the result.


I have a script that every time creats several tiff files and stores them in the same directory. I want to change it in a way that every time it processes only the new files, to avoid repeating the same processing every time for every file.   I looked the manual and several questions so far, made an if statement with ! -e, ! -f, ! -s (I don't really get the difference but none of them worked anyway), tried to add spaces between all parts of code, tried the filename with "" and without but there is no way I can make it work.   Any suggestions? Here is my code:   FileName=$WORKDIR'/.../name_of_the_file.tif' if [ ! -e "${FileName}" ]; then     ...   fi

I've used the following script to see if a file exists:  #!/bin/bash  FILE=$1      if [ -f $FILE ]; then    echo "File $FILE exists." else    echo "File $FILE does not exist." fi   What's the correct syntax to use if I only want to check if the file does not exist?  #!/bin/bash  FILE=$1      if [ $FILE does not exist ]; then    echo "File $FILE does not exist." fi


Is the statement, that $\lim_{x \to \infty} {\bigg(\frac {\int_a^b{g^{x}(t)dt}}{b - a}\bigg)}^{\frac {1}{x}} = max(g(t))$, where max(g(t)) is the maximal value, taken by function g(t) on [a, b], true for each real-valued function g(t), that is continuous on [a, b] and takes only positive values on it?  I could neither prove it, nor find any counterexamples to it.  Any help will be appreciated.

Suppose that $f$ is a continuous, non-negative function on the interval $[0,1]$. Let $M$ be the maximum of $f$ on the interval. Prove that $$\lim_{n \to \infty}\bigg[\int_0^1f(t)^n \text{dt}\bigg]^{1/n}=M$$  We wrote out some simple examples to show it worked for functions such as $x^2$. We are having trouble finding how to create a general proof. Thanks for any help!


I have simple PHP regex to extract all content within   Regex is   (.*?)<\/body>   This is the text  <!doctype html>      <meta charset="utf-8">     <meta name="viewport" content="width=device-width, initial-scale=1.0">     <meta name="description" content="">     <meta name="author" content="">      <link href="http://localhost//themes/default/../dashboard/css/bootstrap.min.css" rel="stylesheet" type="text/css" />      <link rel="stylesheet" type="text/css" href="http://localhost//assets/cache/default_product_groups_product_groups_mod.css" media="screen" />     <link rel="shortcut icon" href="http://localhost//favicon.ico">
      לרכישה מכאן במחיר 37.01$
      <input id="base_url_special" type="hidden" name="base_url_special" value="http://localhost//"/>            This is the live example

For example, this regex  (.*)<FooBar>   will match:  abcde<FooBar>   But how do I get it to match across multiple lines?  abcde fghij<FooBar>


Certain damage kickers are put into effect at the attacker's option after it is determined that an attack is a hit. Examples include:   The Divine Smite of  and of  The Battle Master's Trip Attack The Combat Inspiration feature of the College of Valor bard Expending charges from several magic staves, including the , , and    The rules on a  seem pretty clear (PHB. 196):     Roll all of the attack’s damage dice twice and add them together.…      … If the attack involves other damage dice, such as from the rogue’s Sneak Attack feature, you roll those dice twice as well.   It seems clear that (a) the player decides to apply the kicker after seeing the die roll, and (b) "all of the attack's damage dice" includes the kicker. But this gives the player quite an advantage to choose to apply a damage kicker on a known critical hit, so I am seeking to confirm (or correct) my understanding.  Can the attacker wait to add optional damage dice until after seeing if the roll is a critical, ?

I'm a bit confused on how extra damage works for critical hits. Let's take the following example: A thief with sneak attack rolls a crit. I'm under the impression he rolls double his normal attack damage dice AND double his Sneak Attack damage dice. Is this accurate? Another example, I finished DM-ing my first campaign recently. The Giant Spider enemy monster has an melee attack that causes a constitution saving throw. If the player fails, the enemy rolls an additional 2D8 of damage. In this situation, if there was a critical hit, and the player failed their saving throw, would I also roll double dice on the additional damage? Or is that considered a separate attack?


My os version is 18.04  I'm trying to install os161 toolkit. I ran the following command  sudo add-apt-repository ppa:ops-class/os161-toolchain   I get the following error  E: The repository 'http://ppa.launchpad.net/ops-class/os161-toolchain/ubuntu bionic Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. sanat   This is my first time using linux and all this is gibberish to me

When updating, I get the following error message:   W: The repository 'http://ppa.launchpad.net/mc3man/trusty-media/ubuntu xenial Release' does not have a Release file.   Here, I find another statement on this error:   This recommends removing certain PPAs; and, I'm not sure if I should do that since it might mean not getting the updates that I need.    Is this what I should do?


I am getting the exception "No mapping exists from object type MyType to a known managed provider native type." How do I provide a mapping?  I am sending the data to SQL Server through ADO.NET. I am basically going to transform MyType into an integer. I don't need it to come back as MyType. It's fine for it to come back as an int, though it would be nice for it to come back as MyType.  EDIT for those who insist on seeing code:  I have a type:  class MyType {     int field1;     int field2; }   And I want to send a variable paramValue of type MyType to the database:  using (SqlConnection connection = new SqlConnection(connectionString)) {     SqlCommand command = new SqlCommand(queryString, connection);     command.Parameters.AddWithValue("@param", paramValue);      connection.Open();     SqlDataReader reader = command.ExecuteNonQuery(); }   EDIT  Let's say I have a function:  class MyType {     int field1;     int field2;      public int dbValue() {         return field1 + field2;     } }   I want to use:   command.Parameters.AddWithValue("@param", paramValue);   instead of:  command.Parameters.AddWithValue("@param", paramValue.dbValue());   Because I don't want to have to put .dbValue() everywhere I send it to the database. This is just postponing the inevitable day that I forget to put .dbValue().

I have a custom type that I created, which should be persisted in a database (in this case, SQL server) as a guid (though this question is just as valid for an object that could be stored as a string, integer, etc).   When I pass this type as a parameter to a DbCommand object, I get an exception:     ArgumentException: No mapping exists from object type [...] to a known managed provider native type.   I have CType operators on the class that allow implicit conversion to a string, or a guid, but .NET doesn't use these since it doesn't know it should convert the type.  Is there a way to add a type to the internal mapping, or otherwise tell .NET how to store my custom type in the database?  I obviously can convert the type myself when passing it to the .NET stuff, but I'd like this to happen automatically, like it does for most of the built-in types.    I've tried to implement a TypeConverter class for my type (inherits from TypeConverter, overrides CanConvertFrom, CanConvertTo, ConvertFrom, ConvertTo, IsValid, and added the System.ComponentModel.TypeConverter attribute to my class), but this still doesn't work.   I'm assuming it's missing a piece telling .NET what type to convert to when storing the value in the database.     My workaround for this, for now, is that I intercept the list of parameters, before I pass them to SQL server, and have a method that changes my custom type into a guid. This is dirty, but it does work for now, but I still think this question is unanswered.


I recently reported a  and the fix was recently pushed as an update. One of the repo maintainers asked me to check if I have  installed or not. How do I check if a particular update package has been installed in my system or not? Is there a way to check via the command line?

I use the dpkg -l command to find out what version of a package I have installed. For example:  dpkg -l network-manager   returns the information on the package:  Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name                      Version                   Description +++-=========================-=========================-================================================================== ii  network-manager           0.8.3~git.20101118t223039 network management framework daemon   As you can see, it returns 0.8.3~git.20101118t223039 which is wrong because it truncates the version (I've picked a long one for the purpose of this question). The way I've solved this in the past is to pass a stupidly long COLUMNS argument to make it expand:  COLUMNS=200 dpkg -l network-manager   which gives me the entire version number, but also a bunch of junk:  Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name                                         Version                                      Description +++-============================================-============================================-======================================================================================================== ii  network-manager                              0.8.3~git.20101118t223039.d60a988-0ubuntu1   network management framework daemon   Now I can see the full version number, which is 0.8.3~git.20101118t223039.d60a988-0ubuntu1.  I get the feeling that this is not the proper way to find the version number of an installed package. This never really was a problem in the past, but with the tacking on of "ubuntu" in the versions and the proliferation of PPAs these strings are getting longer and longer. Is there an easier way?


I've been seeing different articles. Granted some are years old. Is it possible when you are in the same internet connection to play together with mcpe and mc Java Edition and how? I was thinking mainly of using LAN

My kids are playing Minecraft on 2 PCs, creative mode.  They are connected by the way of one of them starts a single player game on the other one than joins that game over the LAN.  Can I, using Minecraft PE on my iPad, join their game as well?


I have a docker installed at OS X and using docker-machine with my host provider server. The server OS is CoreOS, I have 3 lightweight sites with NGINX, Mongo and MySQL instances. Sometimes sites down and provider's support suggesting me with low RAM, but 2GB RAM isn't sufficient for such sort of thing?

This is a  about  Related:      I have a question regarding capacity planning. Can the Server Fault community please help with the following:   What kind of server do I need to handle some number of users? How many users can a server with some specifications handle? Will some server configuration be fast enough for my use case? I'm building a social networking site: what kind of hardware do I need? How much bandwidth do I need for some project? How much bandwidth will some number of users use in some application?


If in the future, Skynet achieved its aim of wiping out all of mankind, what would it do then? Would it just return a "Program complete" code and just stop?

Is it stated in any expanded universe what Skynet's plans were after wiping out the Human race (assuming that was its plan)?  Maybe space travel to colonise different planets or something else entirely?


I was reading my textbook and I encountered a section where it explains that Centripetal Acceleration is not constant, thus, I wonder if  exists in Uniform Circular Motion? The textbook states that it happens due to the continuous change on the vector's direction. So, pretty much. Does jerk manifest? or, if it does not, why?

I can understand the physical existence of centripetal acceleration, the orthogonality of that with the linear (tangential) velocity - but how to physically understand jerk and snap in case of uniform circular motion?


My website is using WordPress with the following robots.txt  User-agent: * Disallow: /cgi-bin Disallow: /wp-admin Disallow: /wp-includes     Disallow: /wp-content/cache Disallow: /trackback Disallow: /*trackback Disallow: /*trackback* Disallow: /*/trackback Disallow: /*?* Disallow: /*.html/$ Disallow: /*feed*  # Google Image User-agent: Googlebot-Image Disallow: Allow: /*  # Google AdSense User-agent: Mediapartners-Google* Disallow: Allow: /*   I updated the robots.txt file 3 days ago and the problem I'm having is when I search for the site on Google or Bing it shows all sub pages but not the home page. Google says the following for the homepage:     A description for this result is not available because of this site's   robots.txt – learn more.   I tested using Google webmaster tools and it shows no errors.  It shows description of home page when is search with site:domainname.com. Is this a WordPress issue or does my robots.txt file have errors.

This is a general, community wiki  question and answer pair intended to address any questions   concerning the reasons a site or specific site contents do not appear   in search engine results.      If your question was closed as a duplicate of this question and you   feel that the information provided here does not provide a sufficient   answer, please open a discussion on .   My site (or specific pages on my site) is not appearing in search engine results.  Why isn't my content indexed and what can I do about it?


I'm having a SEO optimised 7 year old website which rank no. 1 on google for different keywords.  Pages are www.example.com/page1.php , www.example.com/page2.php .  A competitor copied whole website and with few added pages uploaded a website on a very old domain like this;  www.xyz.com/somepages.html  and www.xyz.com//page1.html www.xyz.com//page2.html  He is not using any title and related tags just copied content exactly with same images and all, means only layout is different, otherwise its exactly same website.  Now does I need to let google know this is my content etc? Does it effects my ranking as today i'm on no. 1 and he is on 15th.  Most important question is why he is using two forward slash and .html extension? .html i can understand that someone may think that .html is more beneficial than .php for seo but why //?  Any qlue?

What does double slashes often found in URL's mean exactly?  For example:   http://www.example.com/A/B//C/   Please note that I'm not referring to the beginning right after http:.


Anyone please suggest how can i get the present layout using beamer LaTeX. I want the style as marked (radio buttons for page by page) in yellow circle at the top of the page. Will be helpful if anyone can give best solution

I never used beamer in LaTeX, could anyone suggest how can i get the output using beamer, it will helpful for to proceed my project?


I've seen  and I've seen similar articles such as   I have a computer with OSX Catalina. I've got some 3+hr recordings from 2-DVDs that should be a single length file, and transferred them to two m4v files using Handbrake, using these settings:    Because those articles and questions are over 4 years old, and the state of the art has likely improved, I'm curious if there are better solutions to the problem of "combine two m4v files". I'm also curious if I've transferred them to my computer at a sub-optimal configuration in Handbrake for the media that I am trying to put together.  What if I needed to remove the first, say, 10 seconds from the second file as well before I join them, does that change the tools needed?  I believe my best choices are , QuickTime Player, and QuickTime Pro, yes? I would like to focus this question not on "what programs can also do this" but "what is the best native or near-native solution to joining two files?"   I recognize that shopping list questions are off topic and really don't have a place here, as the technology does change too quickly, so if this is off-topic as well, I understand.  If the other question that I've linked is still the best option to combine two M4V files, then I'll gladly accept a close-as-dupe

Got a bunch of .mp4 videos (info shows H.264 Video + AAC Audio) that are chapters of a larger video.  I'd like to merge them, but not sure which is the best way.  I don't have Quicktime Pro, but I'll get it if that's the best way to do this.  Edit: Just to clariify this is Mac OSX 10.6 I'm on.


First off, I'm fairly new to coding so my apologies if this is very simple, I'm trying to write a program that counts the number of vowels per line from input data and then displays the counts per line. I'm running into an issue when trying to set the initial capacity of the list that will store the total counts, the capacity keeps getting set to zero even though letters.Count = 15. Below is what I have, and thank you for any and all feedback: var letters = new List<string>();         var vowels = new char[] { 'a', 'e', 'i', 'o', 'u'};         string input;         while (!String.IsNullOrWhiteSpace(input = Console.ReadLine()))         {             letters.Add(input);             if (letters.Count == input.Length)                 break;         }          var length = letters.Count;         var total = new List<int>(length);

.NET offers a generic list container whose performance is almost identical (see Performance of Arrays vs. Lists question). However they are quite different in initialization.   Arrays are very easy to initialize with a default value, and by definition they already have certain size:  string[] Ar = new string[10];   Which allows one to safely assign random items, say:  Ar[5]="hello";   with list things are more tricky. I can see two ways of doing the same initialization, neither of which is what you would call elegant:  List<string> L = new List<string>(10); for (int i=0;i<10;i++) L.Add(null);   or  string[] Ar = new string[10]; List<string> L = new List<string>(Ar);   What would be a cleaner way?  EDIT: The answers so far refer to capacity, which is something else than pre-populating a list. For example, on a list just created with a capacity of 10, one cannot do L[2]="somevalue"  EDIT 2: People wonder why I want to use lists this way, as it is not the way they are intended to be used. I can see two reasons:   One could quite convincingly argue that lists are the "next generation" arrays, adding flexibility with almost no penalty. Therefore one should use them by default. I'm pointing out they might not be as easy to initialize. What I'm currently writing is a base class offering default functionality as part of a bigger framework. In the default functionality I offer, the size of the List is known in advanced and therefore I could have used an array. However, I want to offer any base class the chance to dynamically extend it and therefore I opt for a list.


"Would you have a resume I can refer to?" or "Do you have a resume I can refer to?" I want to ask someone for their resume, but I'm confused between would and do? Which one is correct and what's the difference between the two?

As a non-native speaker when I talk to native speakers, I tend to use "Do you want ...." instead of "Would you like....?" e.g. "Do you want we have the meeting in this room?" "Do you want we have lunch in that restaurant?"  My question is do native speakers feel different when I ask them with to want verb? Does it sound unnatural to them? What about "Do you like?" instead of "Would you like?"


I have forgotten my Restrictions passcode.  Is there a way that I can change it without resetting the iPhone? I have tried updating it and have contacted Technical Support, but they suggested that I back up my files to iCloud and restore to factory settings.

I currently have all my DVDs ripped and stored on a Windows Media Centre box.  I am considering moving over to iTunes, and to grab an Apple TV.  This also would allow me to watch my movies on my iPhone / iPad and through these (via an HDMI adapter) on the upstairs TV.  While I can use iTunes to place parental restrictions on content, I have not yet found out how to bypass this restriction (such as through a password) for 'parental' viewing.  I want content restricted for my kids, but want easy access to higher-rated programs for myself.  Can this be achieved on the iPhone / iPad?  How about the Apple TV?


I have a rather unusual problem: I need to be able to download Ubuntu software on an online machine, burn it on a disk, and install it on an offline machine. The software download needs to include all dependencies (and the dependencies' dependencies, and so on) as the offline machine might not have them. In addition, the two machines might not run the same version of Ubuntu (for instance, the online machine might be running version 12 and the offline machine might be running version 13). Also, they might not have the same architecture (one might be 32 bit and the other might be 64 bit). The method of downloading and installing the software could be anything - a python script, a batch script, a program, an existing software, whatever. Any help with this issue would be most appreciated (even hints and guesses as to the right direction).

I have a friend who has got a computer that is not connected to the Internet. Is there any way to install software offline easily?


I'm making a game set on the moon, and I'm currently making the background in blender 2.8. I'm using cycles, which means I can't make a believable-looking sun (cycles doesn't have bloom, and I'm not sure how to apply post-processing to an equirectangular image). My solution is to render my scene with an image of the sun in place of a real object, but searching "image of sun" in google just has darkened, easy to observe "scientific" images, not the blinding light I'm looking for. I'm thinking I should render an image in blender using the eevee engine (which has bloom), but I want it to look realistic--not too perfect--like a camera took it. The problem is, I don't know the first place to start, or of a better method that might exist for what I'm trying to do. TLDR: I need help creating an image of the sun in blender, such as what post-processing shader I should use, what renderer, etc. A pointer to a pre-existing image of the sun would also be incredibly useful. EDIT: I figure it probably would be useful to provide an example of what I'm thinking of:  Note the rays, caused by imperfections in the camera. I'm looking for a picture like this, minus the earth and spacecraft (which I can't find for the life of me on google). I've tried looking at NASA's catalog, but they only have "useful" images of the sun:  Not realistic.

Is there any equivalent option or process to get results equal, similar or better than Eevee's Bloom? If yes, how could I do it? I have an object with Emission Surface on Material in that case it is representing a sun, and the results I need are exactly or a little better than what Eevee's bloom is giving, but, Eevee's mesh render doesn't look as good as Cycles so I was wondering if there was such a thing. Thanks!


I try to display a path including an evironment with: \documentclass{scrreprt} \usepackage{hyperref} \begin{document} Lorem \path{C:\%HOMEPATH%\Documents\} ipsum\footnote{\path{{C:\%HOMEPATH%\Documents\}}. \end{document}   However during compilation I get the following error message: Runaway argument? { \path {C:\%HOMEPATH ! File ended while scanning use of \@footnotetext. <inserted text>                 \par  Any Idea on how to display a path with environments in a footnote?

I have trouble with \url and \footnote  \documentclass[margin=5mm]{standalone} \usepackage{hyperref}  \begin{document}  my text \footnote{\url{https://webbook.nist.gov/cgi/cbook.cgi?ID=C69727&Type=HCOMBS#HCOMBS}}  \end{document}   this is the error message:  ! Illegal parameter number in definition of \Hy@tempa.H ...gi/cbook.cgi?ID=C69727&Type=HCOMBS#HCOMBS}}  Without the &Type=HCOMBS#HCOMBS link portion the code works fine, so I guess the problem lies in & character. Any suggestion?  Thank you in advance


Over at the  page on Chat SE, the users in the "2 comma club" still have their reputation shown in four-digit kays, instead of a nice round M, contrary to  answer:  (Gilles is ahead of Skeet!!)  As there are currently 6 users up there and another two hard on their well-heeled rep marks, should we apply the 1M format to the chat lists as well?

I read on  ()    Shouldn't it be 1.03m or (if we really follow the conventions of the metric system) 1.03M instead?


I want to know how can I use UPSERT or in other words UPDATE if records exists Else enter new record operation in SQL Server using one statement?  This example shows the ways of achieving this in Oracle  But it uses Dual table for it which doesn't exists in SQL Server.  So, Any SQL Server Alternatives (No Stored procedures) please ?

Assume a table structure of MyTable(KEY, datafield1, datafield2...).  Often I want to either update an existing record, or insert a new record if it doesn't exist.  Essentially:  IF (key exists)   run update command ELSE   run insert command   What's the best performing way to write this?


I am writing on behalf of someone else.  But the question will be easier to pose if I put myself in his shoes and speak in the first person.  I will soon graduate with a Bachelor's in economics and mathematics in a Third World country.  I have, however, also studied physics. I actually have more physics than mathematics courses on my transcript.  I want to study for a PhD in mathematical physics in the U.S. I would need support (e.g. TAship).  Where I live, subject GREs are only offered once a year, and one is not permitted to take two different ones on the same day.  It is too far and expensive for me to travel to another country to take a second subject GRE.  Suppose, for the purpose of this question:   I decide to take the Physics GRE, and apply to physics departments I get admission to a physics department, and a TAship I take a combination of both math and physics courses and do well After several semesters I realize I'd rather that my home department were math, instead of physics      How hard would it be to apply to switch over to a math department (either in the same university, or a different one), assuming I had taken sufficient math courses, and done very well in them?   Note: The  is somewhat helpful, but I would like to see a specific focus on the math/physics interface; also, please consider the specific option of pausing at completion of a masters, with a switch of department at that point.

Is it possible to switch from one area of graduate study to another in US universities? For example, suppose someone has enrolled in a computer science phd program. Can he switch over to math(or physics) phd program in the same school later?(or say from applied mathematics to pure mathematics?)  What are the steps for doing for doing that?


If you have an image you want to make bigger(in realife-size for example for printing), I would use the crop tool of Photoshop with WxHxResolution, use centimeters/inches and then set my ppi.  My question is, wether this approach is right and how strong the quality loss then will be, especially when also setting a higher ppi?

Is it possible to make a .jpeg photo larger without losing "quality"?  I have a photo that is 450px x 750px and would like to make it 3 times bigger for web not print?  I've been told that Illustrator is the tool to make it happen and I have Illustrator CS6.


I need to select all from these two tables. Is it possible?

Also how do LEFT JOIN, RIGHT JOIN and FULL JOIN fit in?


As the topic suggests why the raindrop is spherical in shape? Why it is not triangular or bipyramidal or tetrahedral? Is centre of mass or density of water related to it?

Consider a drop of water floating in an inertial frame in STP air (e.g., the ISS). Intuitively, the equilibrium shape of the drop is a sphere.  How would one prove that? Is it equivalent to showing that the minimal surface area for a simply connected volume in $\mathbb{R}^3$ with a sufficiently smooth boundary is that of a sphere, i.e., the result of the isoperimetric inequality?


For example,   Link shown as plain text.

I was approving an edit on DIY when i noticed that the "edit approved" link was not rendering properly on any page I could find     It looks like the node is somehow set to text. FF 64.0.2 (and 65.0.0) draws it as a text node. Chrome 71's inspector shows it like this


I want test my game for retina displays, which has 2048×1536 resulution, but my monitor small and I don't see the whole window. Is it possible make this window smaller and save 2048x1536 resolution of game?

I want to resize my web browser to be a higher resolution than my screen.  I remember being able to do this in Windows 95 by setting the desktop resolution higher than the monitor resolution. How can I do it in Ubuntu?


Is there a way to bring a seemingly in to the moderators notice?   What should I do if I come by such a profile picture?

There are options to flag questions, answers and comments but I do not see any options for flagging a user.   The main reason I can see for that is when someone is suspected of gaming the system or using tactics to force answers or bounties to go their way.


I'm using Ubuntu 12.04 LTS on my machine since long. I installed "Skype 4.2 for Linux". It was working fine till yesterday night. But today when I tried to log-in to skype I'm not able to do it. An error message "Skype can't connect." is displaying when I press Sign in button after filling the Skype Name and Password. I'm damn sure about the Skype Name and Password I'm entering are correct. I tried with the same credentials on a machine running on Windows 7. I was able to log-in over there.   To resolve this issue I tried almost everything, from removing Skype completely to install Skype again and again from 'Ubuntu Software Center', 'By downloading latest Skype .deb file and running it on my machine', 'Disabled the firewall', etc. but every time the result is same.  For your information I'm also attaching the screen shot of the error message to this question.  So can some one help me in this regard please? Thanks in advance.

First of all, I think this question is not duplicated, because I have tried all other solutions I found here, but nothing solved my problem.  I use Ubuntu 14.04 64 bit.  I have tried until now: sudo apt-get install skype -> It didn't work. The error was:   The following packages have unmet dependencies: skype : Depends: skype-bin E: Unable to correct problems, you have held broken packages.   I have tried sudo dpkg add-architecture && sudo dpkg -i skype-ubuntu-precise_4.3.0.37-1_i386.deb but it didn't work either. The error was:  dpkg: dependency problems prevent configuration of skype: skype depends on libqt4-dbus (>= 4:4.5.3); however: Package libqt4-dbus is not installed. skype depends on libqt4-network (>= 4:4.8.0); however: Package libqt4-network:i386 is not installed. skype depends on libqt4-xml (>= 4:4.5.3); however: Package libqt4-xml:i386 is not installed. skype depends on libqtcore4 (>= 4:4.7.0~beta1); however: Package libqtcore4:i386 is not installed. skype depends on libqtgui4 (>= 4:4.8.0); however: Package libqtgui4:i386 is not installed. skype depends on libqtwebkit4 (>= 2.2~2011week36); however: skype depends on libstdc++6 (>= 4.2.1); however: Package libstdc++6:i386 is not installed. skype depends on libx11-6; however: Package libx11-6:i386 is not installed. skype depends on libxext6; however: Package libxext6:i386 is not installed. skype depends on libxss1; however: Package libxss1:i386 is not installed. skype depends on libxv1; however: Package libxv1:i386 is not installed. skype depends on dpkg: error processing package skype (--install): dependency problems - leaving unconfigured Processing triggers for hicolor-icon-theme (0.13-1) ... Processing triggers for gnome-menus (3.10.1-0ubuntu2) ... Processing triggers for desktop-file-utils (0.22-1ubuntu1) ... Processing triggers for bamfdaemon (0.5.1+14.04.20140409-0ubuntu1) ... Rebuilding /usr/share/applications/bamf-2.index... Processing triggers for mime-support (3.54ubuntu1) ... Errors were encountered while processing: skype   I have tried to use after sudo apt-get -f install but it didn't solve the issue.  I have tried to install by using Gdebi. The error was:  Cannot install 'libqtwebkit4:i386'   I have tried to install using Ubuntu Software Center. The error was:  Cannot install 'libqtwebkit4:i386'   I have tried changing the server in "Software and Updates". I have tried to use "Main Server" and "Servers for United States". But it couldn't solve my problem.  Anyone has any idea how to solve that?  SOLVED  Well, I formatted my pc and I installed Skype first of all. Probably another installation that I had done before the Skype installation was the problem, i guess.  Thanks people!


What is the best way to include empty dates for a time series graph generated from a mysql db.  If I run a query to get say all of the red cars sold on a particular day I could run :  SELECT count(car_sale_order) as 'count', DATE(sale_date) as 'sale_date' FROM car_sales WHERE colour = "red";   but the results could have date holes in them i.e.   ------------------ count | sale_date ------------------ 2     | 2017-09-03 10    | 2017-09-04 1     | 2017-09-07 23    | 2017-09-09 45    | 2017-09-10 2     | 2017-09-11 21    | 2017-09-12   when what id really like is :  ------------------ count | sale_date  ------------------ 2     | 2017-09-03 10    | 2017-09-04 0     | 2017-09-05 0     | 2017-09-06 1     | 2017-09-07 0     | 2017-09-08 23    | 2017-09-09 45    | 2017-09-10 2     | 2017-09-11 21    | 2017-09-12   I use PHP so know that i could generate this stuff at that side but it would be really handy to just have the result set include this from the get go....    This isn't the same as   I'm looking for a MySQL only result

I'm building a quick csv from a mysql table with a query like:  select DATE(date),count(date) from table group by DATE(date) order by date asc;   and just dumping them to a file in perl over a:  while(my($date,$sum) = $sth->fetchrow) {     print CSV "$date,$sum\n" }   There are date gaps in the data, though:  | 2008-08-05 |           4 |  | 2008-08-07 |          23 |    I would like to pad the data to fill in the missing days with zero-count entries to end up with:  | 2008-08-05 |           4 |  | 2008-08-06 |           0 |  | 2008-08-07 |          23 |    I slapped together a really awkward (and almost certainly buggy) workaround with an array of days-per-month and some math, but there has to be something more straightforward either on the mysql or perl side.   Any genius ideas/slaps in the face for why me am being so dumb?    I ended up going with a stored procedure which generated a temp table for the date range in question for a couple of reasons:   I know the date range I'll be looking for every time The server in question unfortunately was not one that I can install perl modules on atm, and the state of it was decrepit enough that it didn't have anything remotely Date::-y installed   The perl Date/DateTime-iterating answers were also very good, I wish I could select multiple answers!


I have been reading the Python docs on the CSV module here:   And I noticed that it does not mention any way for a reader object to return the number of the line it is currently reading, or which iteration it is currently at. This seems like it would be a widely needed functionality. So, I am wondering how one can do this:  reader = csv.DictReader(readFile)     for row in reader:         # do something          # now want to find the line number that row corresponds to   Or if that is not possible, why that is the case.

How do I access the index in a for loop like the following?  ints = [8, 23, 45, 12, 78] for i in ints:     print('item #{} = {}'.format(???, i))   I want to get this output:  item #1 = 8 item #2 = 23 item #3 = 45 item #4 = 12 item #5 = 78   When I loop through it using a for loop, how do I access the loop index, from 1 to 5 in this case?


I am trying to install MemSource Desktop, but cannot install by double clicking on  download. Is there another way I can do this?

My PC has both Ubuntu and Windows 7 installed. I have installed all my drivers in Windows like Nvidia graphics, motherboard etc. Shall I install them in Ubuntu too?  I looked on the web for my Nvidia drivers and I have found a .run file. How could I install it on my Ubuntu?


I am not able to add or update any repositories on my PC. The following error encountered when I tried updating using sudo apt-get update E: The repository 'http://ppa.launchpad.net/screenlets/ppa/ubuntu bionic Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details.  This error mentions screenlets repository but I am getting the same error when I try to add any repository.I was getting the same error before adding screenlets repository.  The following are my specs fetched using neofetch: OS: Ubuntu 18.04.4 LTS x86_64 Kernel: 4.15.0-109-generic Packages: 1701 Shell: bash 4.4.20 CPU: Intel Core 2 Duo E7200 (2) @ 2.306GHz GPU: Intel 4 Series Chipset Memory: 1655MiB / 7848MiB It is actually lubuntu 18.04 the question here is that not only I want to add repositories but also update the existing ones. Also, installing applications from snap is also not working but that could be a different thing altogether.

When updating, I get the following error message:   W: The repository 'http://ppa.launchpad.net/mc3man/trusty-media/ubuntu xenial Release' does not have a Release file.   Here, I find another statement on this error:   This recommends removing certain PPAs; and, I'm not sure if I should do that since it might mean not getting the updates that I need.    Is this what I should do?


I noticed that a .blend containing a single material downloaded from  has only 63KB.   The default scene saved with compression already uses 447KB of disk space. How can files with less than 100KB be created?

I have a large blender file.  How can I compress this file and can I split the file into multiple files to ship it?


I'm trying to cite this reference, but whenever I compile it with pdflatex, biblatex and biber, I get the error "! Package inputenc Error: Unicode character  (U+202A)". I already checked my files for special characters, but I think I isolated it to just the reference. Other examples from biblatex work fine with the crossref. When I comment out the crossref, I can compile it, but the bibliography does not include the proceedings. Any guesses why this strange error occurs?  @proceedings{UCAMI2018,   title        = {The 12\textsuperscript{th} International Conference on Ubiquitous Computing and Ambient Intelligence (UCAmI 2018)},   location     = {Punta Cana, Dominican Republic},   series       = {19},   volume       = {2},   publisher    = {MDPI},   year         = 2018,   month        = dec }  @inproceedings{Espinilla2018,   crossref    = {UCAMI2018},   author      = {Macarena Espinilla and Javier Medina and Chris Nugent},   title       = {UCAmI Cup. Analyzing the UJA Human Activity Recognition Dataset of Activities of Daily Living},   doi    = {10.3390/proceedings2191267},  }

im currently writing my bachelors thesis and while inserting some cites and adding something to my bib file the above mentioned error occured. i tried to "fix" it by removing all the steps prior to the occuring error but it still remains and i just cant find any solution. since im a total newbie in latex, i would be grateful for any quick help! i found something that should remove this error but it doesnt:  \DeclareUnicodeCharacter{200}{„ “}   which i insert directly after   \usepackage[utf8]{inputenc}   but that still doesnt solve it  thx in advance guys!


I am a grad student in pure math, wrapping up a thesis in Lie theory. After years of talking to mathematicians and physicists, I've decided that it's time to get some formal training in physics, particularly in particle physics.  I have no formal training in physics. We're talking only a childish understanding of basic mechanics and bits and pieces of relativity and CFT, I have seen Maxwell's equations once or twice, etc. But I know Riemannian/pseudo-Riemannian geometry, the representation theory of compact and semi-simple Lie groups, some PDE, and so forth. So hopefully the math shouldn't be an issue.  With so little physics training (and hence little physical intuition!) what kind of books do you guys recommend?

EDIT:  I was aware of the supposed duplicate.  But I'm interested in a clear and focused path through the basics to advanced theoretical physics such as string theory - a path that avoids studying engineering physics - for a pure mathematician with no physics background.  I can't see in the supposed duplicate where this path is outlined.  ...  I'm a pure mathematics PhD student in Riemannian geometry / geometric analysis.  My main interests are in Einstein manifolds, Ricci flow, harmonic maps, and Yang-Mills theory.    I have no training whatsoever in physics:  I've never even picked up the typical 1,500 page textbook titled Physics for Scientists and Engineers etc.  I've only ever read pure mathematics and can handle any level of pure mathematics to any level of abstraction.  I'd like to learn the background and basics in theoretical physics motivating the above areas of geometric analysis to develop physical intuition: general relativity, gauge field theories, and the standard model of particle physics, etc.  Ideally I also want to learn advanced theoretical physics such as quantum field theory, string theory, and sypersymmetry.  I'd like a structured path through basic to advanced theoretical physics for a mathematician with no physics training.  I have looked at many standard references in these areas but their assumptions on the physics background of the reader does not align with my background.  These standard references all start talking and explaining things in physics notation, terminology, concepts, and intuition that is assumed on the reader.  Question:  As a pure mathematician, how do I learn basic through to advanced theoretical physics in an clear, focused and structured way?  What books should I read?  Are there books tailored to a target audience like myself: a pure mathematician with no physics background?  If required, I'm happy to start from scratch by working through a 1,500 page physics textbooks.  However, after progressing through mathematics one realises that starting with working through the typical 1,500 page calculus textbook, such as Stewart Calculus, is unnecessary because those books are tailored to engineers.  Instead, one can start with a book on set theory, proof, and logic, and then go straight into standard undergraduate books like Rudin Principals of Mathematical Analysis and Herstein Topics in Algebra, etc.  Indeed, many universities offer a streamlined program of study for pure mathematics majors that avoids wasting time on engineering calculus.  Question:  Is it the same situation in physics?  Are those 1,500 page physics textbooks targeted mostly at engineers and is there a focused and streamlined path through theoretical physics that starts at the start of theoretical physics and gets to advanced theoretical physics such as quantum field theory and string theory without having to learn engineering physics?  I would be VERY grateful for someone to provide some book recommendations and possibly a structured path for achieving the above.


Disclaimer: I don't have any formal programming background, and I've been trying to mess with front-end design recently. Excuse me if my questions are trivial or misplaced (at least I didn't find clear answers in other posts)  I've been using Outsystems with responsive design framework to develop a web page. In order to profit from the responsive framerwork, I'm trying to make a web block that will look something like this.    Inside a container with defined dimensions, I would insert a container (which will fit perfectly this parent container), containing other containers of its own. These 3 containers will always fill the parent horizontally, but will have heights according to the proportions I draw there (merely illustrative).  In order to fill the fixed-size parent, the main container would have to be set with height and width equal to 100% (at least I think so). However, the last child container (60%) may have its contents bigger than the appointed size (I put search results in there), so I tried setting 'overflow-y: auto'. However, that doesn't seem to work. From what I understood, that doesn't work because its parent has its height set to 100%, which isn't a defined size, so it ends up being considered as an undefined size when calculating the child containers size, and it ends up setting its height to 'auto' by default, which leads to visible overflow. I ended up changing the first two containers to have fixed sizes at the end (since they're inputs and they need to be at least visible for typing), however I just can't manage to make the last one fill the rest of the parent's container, while creating a scroll when necessary if its content overflow. What works is setting the parent container with 'overflow-y: auto', but I don't want it to work like this.  Is it possible to set chains of relative sized elements within another with .css or does it need to be alternated between fixed-size/relative-size to work? Would I need to use javascript to make calculations and set their heights at runtime?

I am working on a web application where I want the content to fill the height of the entire screen.  The page has a header, which contains a logo, and account information. This could be an arbitrary height. I want the content div to fill the rest of the page to the bottom.  I have a header div and a content div. At the moment I am using a table for the layout like so:  CSS and HTML    #page {     height: 100%; width: 100% }  #tdcontent {     height: 100%; }  #content {     overflow: auto; /* or overflow: hidden; */ }

...

...

     The entire height of the page is filled, and no scrolling is required.  For anything inside the content div, setting top: 0; will put it right underneath the header. Sometimes the content will be a real table, with its height set to 100%. Putting header inside content will not allow this to work.  Is there a way to achieve the same effect without using the table?  Update:  Elements inside the content div will have heights set to percentages as well. So something at 100% inside the div will fill it to the bottom. As will two elements at 50%.  Update 2:  For instance, if the header takes up 20% of the screen's height, a table specified at 50% inside #content would take up 40% of the screen space. So far, wrapping the entire thing in a table is the only thing that works.


How can I get a closed form for:  $$\sum_{i=1}^n \frac{3^i}{2^i}$$  I have just started studying closed forms for summations and I am still lost on this matter so I would appreciate if you guys could explain that step by step or suggest me some references for me to study.  Thanks in advance.

This may be a simple question, but I was slightly confused.  I was looking at the second line $S_n(x)=1-x^{n+1}/(1-x)$.  I was confused how they derived this.  I know the infinite sum of a geometric series is $1/(1-x)$.  I just can't figure out how the partial sums, $S_n(x)$, have $1-x^{n+1}$ on the numerator.  How was this derived?  Thank you.     Example 5.20.   The geometric series   $$     \sum_{n=0}^\infty x^n   = 1 + x + x^2 + x^3 + \dotsb $$   has partial sums   $$     S_n(x)   = \sum_{k=0}^n x^k   = \frac{1 - x^{n+1}}{1 - x} \cdotp $$   Thus, $S_n(x) \to 1/(1-x)$ as $n \to \infty$ if $|x| < 1$ and diverges if $|x| \geq 1$, meaning that   $$     \sum_{n=0}^\infty x^n   = \frac{1}{1-x}   \qquad   \text{pointwise on $(-1,1)$}. $$   (Original image .)


I have enum class like this:  REGULARLY("Regularly"), SOCIALLY("Socially"), RARELY("Rarely"), NEVER("Never");  private  final String name;  Drink(String s) {     name = s; }   How to get value of enum field by its position. For example for position 0 output should be "Regularly". NOT THE "REGULARLY"

I've the enum type ReportTypeEnum that get passed between methods in all my classes but I then need to pass this on the URL so I use the ordinal method to get the int value. After I get it in my other JSP page, I need to convert it to back to an ReportTypeEnum so that I can continue passing it.   How can I convert ordinal to the ReportTypeEnum?  Using Java 6 SE.


I am making program in which I create class for vector and overload different operators. Now I want to make arguments of vector (coordinates) as templates.  When I have all code in one file everything is alright and program is running correctly:  #ifndef VECTOR4D_H_INCLUDED #define VECTOR4D_H_INCLUDED template <typename TYPE> class VECTOR4D{     public:        VECTOR4D (void): X(0), Y(0), Z(0), T(0){};        VECTOR4D (TYPE X, TYPE Y, TYPE Z, TYPE T): X(X), Y(Y), Z(Z), T(T){};        TYPE X, Y, Z, T;         VECTOR4D &operator+=(VECTOR4D &K){            this->X += K.X;            this->Y += K.Y;            this->Z += K.Z;            this->T += K.T;             return *this;        } };   #endif // VECTOR4D_H_INCLUDED   but when I separate implementation and declaration of overload operator I have a problem.  //vector4d.h #ifndef VECTOR4D_H_INCLUDED #define VECTOR4D_H_INCLUDED template <typename TYPE> class VECTOR4D{     public:         VECTOR4D (void): X(0), Y(0), Z(0), T(0){};         VECTOR4D (TYPE X, TYPE Y, TYPE Z, TYPE T): X(X), Y(Y), Z(Z), T(T){};         TYPE X, Y, Z, T;          VECTOR4D &operator+=(VECTOR4D &); };   #endif // VEKTOR4D_H_INCLUDED  //project.cpp #include <iostream> #include "vector4d.h"  VECTOR4D &VECTOR4D::operator+=(VECTOR4D &K) {     this->X += K.X;     this->Y += K.Y;     this->Z += K.Z;     this->T += K.T;      return *this; }   During compilation i have got an error:  invalid use of template-name 'VECTOR4D' without an argument list   How I have to do this to make it correct?

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


I have created function which uses one object list and using that list it created two HashMap values:  public HashMap<HashMap<Integer, List<String>>, HashMap<Integer, List<Long>>> getIONameAndId(         List<LineItemVO> lineItemVOs) {     HashMap<Integer, List<String>> ioNameMap = new HashMap<>();     HashMap<Integer, List<Long>> ioIdMap = new HashMap<>();     HashMap<HashMap<Integer, List<String>>, HashMap<Integer, List<Long>>> ioData =         new HashMap<>();     List<Long> ioIds = new ArrayList<Long>();     List<String> ioNames = new ArrayList<String>();     for (LineItemVO lineItemVO : lineItemVOs) {         ioIds.add(lineItemVO.getInsertionOrderId());         ioNames.add(lineItemVO.getInsertionOrderName());     }     ioNameMap.put(1, ioNames);     ioIdMap.put(1, ioIds);     ioData.put(ioNameMap, ioIdMap);     return ioData; }   I want to simplify this function so it gives exact idea what it returns or should I use Map instead of HashMap?

I want to return two objects from a Java method and was wondering what could be a good way of doing so?  The possible ways I can think of are: return a HashMap (since the two Objects are related) or return an ArrayList of Object objects.  To be more precise, the two objects I want to return are (a) List of objects and (b) comma separated names of the same.  I want to return these two Objects from one method because I dont want to iterate through the list of objects to get the comma separated names (which I can do in the same loop in this method).  Somehow, returning a HashMap does not look a very elegant way of doing so.


$$\lim_{n\to\infty}\sum_{k=1}^n \arcsin\frac{k}{n^2}$$ Any hints on how to approach this problem in the first place? The answer should be $\frac12$.  I tried transforming it so I can use a Riemann sum, but it doesn't seem correct.

Compute $$\lim_{n\to\infty}\sum_{k=1}^n\arcsin\left(\frac k{n^2}\right)$$   Hello, I'm deeply sorry but I don't know how to approach any infinite sum that involves $\arcsin$, so I couldn't do anything to this question. Any hints/tips would be appreciated. I know I have to make it somehow telescopic but I don't know how to use formulas like   $$\arcsin x-\arcsin y=\arcsin\left(x\sqrt{1-y^2}+y\sqrt{1-x^2}\right)$$  My knowledge level is 12th grade.  I tried to put it in between $$\arcsin\frac 1{n^2}< \sum_{k=1}^n\arcsin\frac k{n^2} <\arcsin\frac n{n^2}$$ so then $L=0$, but it's wrong.


Find the Maclaurin series of $f(x)=\dfrac{1}{1+x+x^2}$ and the radius of convergence of the series.  I can't solve this problem.


Say I have some idea about research and I want to suggest it to a potential collaborator (researcher). Assume that I don’t know the researcher personally and have no any ties with him. If I write my idea to him, there is a threat that he will steal it and proceed without me, right? Is there a way to do this in a way that both me and the potential collaborator do not enter that risk?

I have gotten an idea in the field of Computer Science that it can result in a research paper. The problem is that I lack the adequate background in one part needed for this research, mostly mathematical stuff. I have contacted one professor in Europe by email, and asked some mild questions about some topics that could be helpful. The doubt that I have is if I should better tell to that professor about my whole research idea, so maybe he/she would be able to help me more.  Actually I am a university lecturer and independent researcher, but in the university that I am working they do not give any salary or benefits for making research. I am doing this mostly because I like it.  Should I tell to that professor my whole idea? or maybe that person could steal it and because he/she has research funds can do it and leaving me aside?


i have a situation where the user has to select a date while creating a request and that request will be valid upto 90 days from the date he selected.How would i implement this logic in my code? I tried but i guess i had no logic.

I'm working with a date in this format: yyyy-mm-dd.  How can I increment this date by one day?


I have two computers, this one runs Windows 10.  I removed the Ubuntu disk from another computer and plugged in this one. The BIOS can detect the ubuntu drive, but didn't list it as bootable.  I want to be able to boot into ubuntu and windows. I think I have to add an entry to the Windows 10 EFI partition, in that partition there's a /EFI/bootx64.efi, and I'm wondering where's the equivalent for that in my ubuntu disk, and I don't know where I should put it. Should it be named /EFI/Ubuntu/bootx64.efi or what?  (I'm using DiskInternals Linux Reader to access my Linux partition at the moment.)

I want to reinstall GRUB 2 and I found these instructions: . In my case, the boot loader is installed in the EFI partition. If I use the commands provided in this guide, will GRUB be reinstalled to the EFI partition automatically, or will it be installed into the root partition where Ubuntu is installed ? Obviously, I do not want this to happen.


I try to prove if de groups $\mathbb{Z}_{p^{2}}$ and $\mathbb{Z}_p\times \mathbb{Z}_p$ are isomorphic. I was using the fact that $ \mathbb{Z}_ {mn} $ is isomorphic to $ \mathbb{Z}_m \times \mathbb{Z}_n $ if and only if $ (m, n) = 1 $ taking $ m = n = p $,in this case as $ p $ is a prime greater than 1, then $ (p, p) = p \neq 1 $ and so I don't have the isomorphism, but I don't know if this is true.

I'm currently working on a proof, but didn't get the right idea, a hint would be appreciated:  Show that $\mathbb{Z}/n^2\mathbb{Z}$ is not isomorphic to $\mathbb{Z}/n \times \mathbb{Z}/n$  So, lets assume there is an isomorphism between these groups, my first idea to was to construct a contradiction with the homomorphism property. But I don't know how, there should be an element in  $\mathbb{Z}/n \times \mathbb{Z}/n$ which is not in $\mathbb{Z}/n^2$ to reach this kind of contradiction. Of course there is $n \in \mathbb{Z}/n^2$ which is not in the other group but I don't know if this helps.  Thanks


I'm trying to connect to my MariaDB database which is on localhost (using xampp). The first time I connect, the connection is established and I managed to create a table with the two fields "username" "password". Thereafter, when I try to do anything else, the Connection turns null and I cannot insert or execute any queries.  import java.sql.*;  class MyDatabase {     private Connection conn;     private PreparedStatement psAddPerson;       MyDatabase(String host, String user, String password) throws Exception {         Connection conn = DriverManager.getConnection("jdbc:mariadb:" + host,                 user, password);         psAddPerson = null;     }      public void addPerson(String username, String password) {         try{             if( psAddPerson == null ){                 String sqlAddPerson = "insert into users (usern, pass) values (?,?)";                 psAddPerson = conn.prepareStatement(sqlAddPerson);             }             psAddPerson.setString(1, username);             psAddPerson.setString(2, password);             psAddPerson.executeUpdate();         } catch (SQLException e) {             System.err.println("Couldn't create add person");             e.printStackTrace();         }     } }  public class Main {     public static void main(String[] args) {         String host = "//localhost:3306/test";         String user = "root";         String pass = "";         MyDatabase newDb = null;         try {             newDb = new MyDatabase(host, user, pass);         } catch (Exception e) {             e.printStackTrace();         }          String username = "admin";         String password = "password";         if (newDb != null) {             newDb.addPerson(username, password);         }     } }   This code produces a NullPointerException when trying to execute following code:  psAddPerson = conn.prepareStatement(sqlAddPerson);   I want to be able to execute queries to my localhost database.  Picture from phpMyAdmin of server type:   Thanks

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


I have dynamically created element below. how can I attach an event on click when a button is clicked.  Ex: when button tag in ID item1 is clicked. I will get the h5 tag value. and so as item2 when button ID item2 is clicked will get the h5 tag on item2 value.  I try the ff. jquery but it return the h5 of all item1 and item2.  $('#Id').on('click','.myclass', function() {   var text = $(this).parent().text();   alert(text); });

Item1
      <button class="btn btn-primary">Download</button>

Item2
      <button class="btn btn-primary">Download</button>

I have a bit of code where I am looping through all the select boxes on a page and binding a .hover event to them to do a bit of twiddling with their width on mouse on/off.  This happens on page ready and works just fine.  The problem I have is that any select boxes I add via Ajax or DOM after the initial loop won't have the event bound.  I have found this plugin (), but before I add another 5k to my pages with a plugin, I want to see if anyone knows a way to do this, either with jQuery directly or by another option.


My guess is that all derivatives ought to be continuous but perhaps there's some obscure example of a function for which this is not the case. Is there any theorem that answers this perhaps?

Could someone give an example of a ‘very’ discontinuous derivative? I myself can only come up with examples where the derivative is discontinuous at only one point. I am assuming the function is real-valued and defined on a bounded interval.


I've downloaded ubuntu-12.04.1-desktop-amd64.iso via Chrome. Once that was done, I wanted to burn it onto a CD but I can't find the .iso file.   When I opened the Downloads folder, the .iso extension is not there anymore, and it opens with WinRAR for unzipping. I tried unzipping and searching for any ISO files but no luck.   I'm trying to add Ubuntu onto VirtualBox on Windows 7 host OS. Please help.

I've never used Ubuntu before. Just heard from some friends. "IT'S GREAT!!!", they used to say. So i decided to try it. I downloaded WUBI, and ran it but 'twas takin' too much time. So I decided to download the .ISO Image file separately. It couldn't download more after 150 mB, and got interrupted (and cancelled) itself. I just went to , and further went to , and searched for my question. After having found a related one, which told     "try the torrent way"   So I downloaded it through the torrent. And after that when I opened the .rar file, there wasn't any .ISO image file; just some folders with names like .disc, boot, ISOLINUX, etc. I searched for the .ISO file but nothin' there: ANYONE HELP ME, PLEASE!!! or this will drive me into never thinkin' about Ubuntu again.


I need to display some contents in gridview which should be an ajax enabled gridview. how can i achieve this in mvc?

I'm looking for good patterns for implementing a paged table of results in ASP.NET MVC with sorting, filtering, and paging provided via AJAX.  It seems to me that I should have my controller actions provide only the data and not mark up to maintain the separation of concerns -- so the Ajax callback would provide new table data and pager settings which the client would use to re-render the table.  Alternatively, I could use have the controller return a partial view that I simply replace inside a container on the page.  I'm new to the ASP.NET MVC world, so I'd be interested in hearing opinions and other alternatives as well.  How would you go about doing this?  I'm also interested in hearing about jquery table plugins that work well with Ajax.


I have a problem with the different size of parenthesis with multiline (see image). Actually i don't care about the different size of the square parenthesis on M and \bar{M} but I really care about the round square one! I want the same size (and I don't wanna avoid \left and \right since I need the last parenthesis as big as the integral!). Some help?    Code:  \documentclass{article} \usepackage{amsmath} \begin{document} \begin{multline} \left\lbrace q\left( t\right) \right\rbrace = \left[ \Phi \right] \left( \left[ C\left( t\right) \right] \left[ \bar{M}\right] \left[ \Phi\right]^{\textrm{T}}  \left[ M\right] \left\lbrace q_{0} \right\rbrace + \left[ \Omega\right]^{-1} \left[ S\left( t\right) \right] \left[ \bar{M}\right] \left[ \Phi\right]^{\textrm{T}}  \left[ M\right] \left\lbrace \dot{q}_{0} \right\rbrace + \right. \\ \left. \left[ \bar{M}\right] \left[ \Omega\right]^{-1}  \intop_{0}^{t}  \left[ S\left( t-\tau \right) \right] \left[ \Phi\right]^{\textrm{T}}  \left\lbrace e \left( \tau\right) \right\rbrace d\tau  \right) . \end{multline} \end{document}

I have a multi-line equation that I want to have matching sized parentheses. The advice I read online was to use \left( equation \right. \\ left. rest-of-equation \right) . However, this syntax leaves first half of the equation unaware of what is in the second half. For example, if you include a square root term after the break, the second parenthesis will be larger than the opening parenthesis. When you are using the aligned environment to split a long equation this can look somewhat offputting.    Compare the top equation to the bottom one. The parentheses match in size for the bottom equation, but the left hand parentheses for the top one is  noticeably smaller.  Top Code:   \begin{aligned}[t]   \gamma_{\text{u}} + \frac{1}{108}   \left(57\gamma_{\text{er}} \right. &+  38\gamma_{\text{se}}\\ & {}\pm  \left.\sqrt{2601 \gamma_{\text{er}}^2 + 3648  \gamma_{\text{er}}\gamma_{\text{se}} + 1444 \gamma_{\text{se}}^2}  \right)   \end{aligned}   Bottom Code:  \begin{aligned}[t] \gamma_{\text{u}} + \frac{1}{16} \left(9\gamma_{\text{er}}  +  6\gamma_{\text{se}} \pm  \sqrt{49 \gamma_{\text{er}}^2 + 76 \gamma_{\text{er}}\gamma_{\text{se}} + 36 \gamma_{\text{se}}^2} \right) \end{aligned}


I am investigating a game called Rummy Royale. If I set the number of players to $3$, then I can split the deck of $52$ cards into $4$ hands of $13$ cards each. When choosing $13$ cards from a deck of $52$ cards, what is the probability of choosing precisely the cards with the numbers $6,7,8$ of the same suit? For example a $6,7,8$ of heart  or a $6,7,8$ of diamonds, or a $6,7,8$ of spades, or a $6,7,8$ of clubs. All three cards must be the numbers of $6,7,8$ and only of a single suit. These must be among the hand of  $13$ cards. My first thoughts on this question that I only have $4$ possibilities of this happening for the entire deck of $52$ cards. So I thought $(_4 C_1)(_{13}C _{3})$ will account for the possible number of decks that will include cards of $6,7,8$ of all the same suit out of $13$ cards in the hand. And $(_{52} C_{13})$ gives me all the possible combinations of 13 cards from 52 cards.  So this probability that I got would be: $\frac{(_4 C_1)(_{13}C _{3})}{(_{52} C_{13})}\approx 5*10^{-7}$. However I feel something is off. I haven't done probability in over a decade.

Edit: Sorry for not providing more on this question the first time. I tried to solve it. When choosing 13 cards from a deck of 52 cards, what is the probability of choosing precisely a card with a number 6,7,8 of the same suit? For example a 6,7,8 of heart  or a 6,7,8 of diamonds, or a 6,7,8 of spades, or a 6,7,8 of clubs. All three cards must be the numbers of 6,7,8 and only of a single suit. These must be among the hand of  13 cards. My first thoughts on this question that I only have 4 possibilities of this happening for the entire deck of 52 cards. So I thought $(_4 C_1)(_{13}C _{3})$ will account for the possible number of decks that will include cards of 6,7,8 of all the same suit out of 13 cards in the hand. And $(_{52} C_{13})$ gives me all the possible combinations of 13 cards from 52 cards.  So this probability that I got would be: $\frac{(_4 C_1)(_{13}C _{3})}{(_{52} C_{13})}\approx 5*10^{-7}$. However I feel something is off.


Is it possible to tell pgfplots whether or not to consider individual data sets when automatically determining axis limits, or call some sort of "maintain axes limits at their current values from now on" command?  Minimal Working Example:  \documentclass{article}  \usepackage{pgfplots} \pgfplotsset{compat=1.5}  \begin{document}  \begin{tikzpicture} \begin{axis}%     \addplot coordinates { (0,1) (1,2) (2,3) };%Automatically sizes axes (want)     \addplot coordinates { (0,1) (1,4) };%Automatically re-sizes axes (don't want) \end{axis}% \end{tikzpicture}  \end{document}   The application is plotting experimental results vs. simulation --- I want both data sets to be plotted always, but I'd like the experimental data to set the scale, even if the simulation results are extremely different.    I recognize that I could go through and hard-code a reasonable scale myself, but this is for a script that I'm running in batch mode with many different data sets, so it would be more convenient if I didn't have to write a whole other family of scripts for choosing reasonable axis limits.

I would like to add a plot to a pgfplots figure, but such that it doesn't change the automatically computed limits. for example:  \documentclass{article} \usepackage{tikz,pgfplots} \begin{document} \begin{tikzpicture} \begin{axis}%[ymin=-6,ymax=6] \addplot+ {x}; \addplot+ {x^2}; \end{axis} \end{tikzpicture} \end{document}   As written, the secont plot alters the limits. I could manually specify the limits (by removing the comment), but that's precisely what I want to avoid. Is there an option for this? I've found the forget plot option, but that's not quite what I need.


If $\sum a_{n}$ is a real  convergent series then what can we say about the convergence of the series  $\sum  a_{n}^{2k+1}$ i.e. odd power? It is convergent for positive term series. But what about any infinite series  $\sum a_{n}.$ I tried to find counterexample but did't got. Please help me. Thanks in advance.

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


I'm learning Javascript and I've run into this exercise. I need some clue or explanation for understanding and solve the problem.  I assume it's something simple, but I can't see it, and I can only modify the indicated area.  var test_method = function () {     return {         config: {             "test_string": ""         },         init: function () {             alert(this.config.test_string);         }     } }();   // Modifiable area test_method.config.test_string = "Hello";  test_method2 = test_method;  test_method2.config.test_string = "Good Bye"; // END Modifiable area   test_method.init(); test_method2.init();   The exercise says that the alert() must show in first place "Hello" and then "Good Bye", but now only says "Good Bye" two times.

The primitive types (number, string, etc.) are passed by value, but objects are unknown, because they can be both passed-by-value (in case we consider that a variable holding an object is in fact a reference to the object) and passed-by-reference (when we consider that the variable to the object holds the object itself).  Although it doesn't really matter at the end, I want to know what is the correct way to present the arguments passing conventions. Is there an excerpt from JavaScript specification, which defines what should be the semantics regarding this?


How can I access each value of the enum by the index?   for instance,  enum food{PIZZA, BURGER, HOTDOG};   as we all know, the index of the first element starts from 0 unless initialized.  How can I get the string value of the enum from the index?   How can I get it to print the PIZZA?   cout << food(0);   I know it's not correct, but please advise me thanks.

Suppose we have some named enums:  enum MyEnum {       FOO,       BAR = 0x50 };   What I googled for is a script (any language) that scans all the headers in my project and generates a header with one function per enum.  char* enum_to_string(MyEnum t);   And a implementation with something like this:  char* enum_to_string(MyEnum t){       switch(t){          case FOO:             return "FOO";          case BAR:             return "BAR";          default:             return "INVALID ENUM";       }  }   The gotcha is really with typedefed enums, and unnamed C style enums. Does anybody know something for this?  EDIT: The solution should not modify my source, except for the generated functions. The enums are in an API, so using the solutions proposed until now is just not an option.


In the book, bombs that had traveled from another galaxy were causing great damage to human planets. Ultimately, the main character makes a journey to the other galaxy and finds the ruins of the civilization that launched the bombs. It turns out that the aliens were able to catch a glimpse of a future in which we are walking around in the ruins of their civilization and they assume that we destroy them. So they sent out the bombs in the hope of eliminating that future, but it was their bombs that eventually caused us to visit their galaxy and we had nothing to do with the collapse of their civilization.

I read a story--the first part of one, at any rate--years ago, and haven't tracked it down since. It started with a man been sent to a planet under attack to pose as a monk--he arrived in the middle of an assault, but still had to do penance for being late. So he wore a hair shirt, that created an agonising reaction. He was captured by the attackers (who took him for the man he was posing as), who then stood off the planet in their starships and watched as a 'hell burner' weapon tumbled out of deep space and torched the planet. The attackers then explained that they weren't responsible for the hell burner, but every time they arrived at a planet, a hell burner turned up afterwards, at shorter and shorter intervals.  As the story developed, there was some kind of time travelling dimension, and a character turned out to have his organs reversed. I may have got some details wrong, but this was the shape of it.  Anyone know this story, and the author?


I'm new to C++ so I've been having a bit of trouble getting used to and learning how to deal with it. So pretty much, what I'm trying to is write a program that would open a textfile containing 5 lines of text, each with 5 integer numbers separated by spaces, then write to the console each individual integer from each line one at a time followed by a comma and the running average. I've managed to get the console to display the whole line of integers and the running average from the first integer of each line. Any help or advice would be appreciated :)  #include <iostream> #include <fstream> #include <string> #include <stdlib.h> using namespace std;  int main() {     string filename;     string mystring;     double average = 0;     double total = 0;     int i = 1;      cout << "Enter name of file to open: " << endl;     cin >> filename;      ifstream inputfile;     inputfile.open(filename.c_str());      if (!inputfile)     {     cout << "Error opening file: " << filename << endl;     return -1;     }      while (!inputfile.eof())     {     getline(inputfile, mystring);     total = atof(mystring.c_str()) + total;     average = total / i;      cout << mystring << " , " << average << endl;      i++;     }      inputfile.close(); }

I'm trying to iterate over the words of a string.  The string can be assumed to be composed of words separated by whitespace.  Note that I'm not interested in C string functions or that kind of character manipulation/access. Also, please give precedence to elegance over efficiency in your answer.  The best solution I have right now is:  #include <iostream> #include <sstream> #include <string>  using namespace std;  int main() {     string s = "Somewhere down the road";     istringstream iss(s);      do     {         string subs;         iss >> subs;         cout << "Substring: " << subs << endl;     } while (iss); }   Is there a more elegant way to do this?


I have an SD card which is 3 GB, but I only have 4 downloaded apps and the  internal storage almost reach its capacity and thus yet I have an insufficient space problems.

Every time I go to install a new app, I get the message "Insufficient storage", and an unable to install anything!  I am using Samsung GT19060 my internal memory is 8GB. I have not downloaded anything but anytime I try to download something it will tell me low memory space.


When i am opening my Arduino IDE on my Raspberry PI 4, its getting JAVA Error: Exception in thread "main" java.lang.NullPointerException     at processing.app.I18n._(I18n.java:51)     at processing.app.Preferences.init(Preferences.java:210)     at processing.app.Base.main(Base.java:117)  Not sure why this is happening. Please help me to solve this problem.

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


my question is: How can I launch an action after a time of inactivity user in Javascript?, for example, in my app the user can navigate across the content and leave it in a section, lapsed a specific time, return to the homepage. Any idea?

Is it possible to detect "idle" time in JavaScript? My primary use case probably would be to pre-fetch or preload content. Idle time: Period of user inactivity or without any CPU usage


I want to export the selected data from specific columns to the new columns in CSV file for my Magento website.  the current website is using different e-commerce system and I want to export the products data in (Magento compatible) CSV file so I can easily import all the data to Magento  for example:  Old tables / columns:  [old_table_1]  [old_col_pid] (primary), [old_col_1], pold_col_2] 1, abc, xyz   [old_table_2]  [old_col_pid] (primary), [old_col_fid] (foreign), [old_col_3], [old_col_4] 1, 1, 123, 456   New columns in CSV (for Magento):  new_col_1, new_col_2, new_col_3, new_col_4 abc, xyz, 123, 456   Is there any way if I can write a query to match the old columns name to new columns name first and then export the data to the CSV.

In MySql's interpreter, it's very easy to dump a table to the screen along with its field names.   There seems to be no simple way to export a table to a tab-delimted or CSV outfile including its column headers.  I'm trying to do this using only SQL or the Linux command line, without writing a program in another language.  Thank you


I'm running Ubuntu 20.10 with nvidia-driver-460 installed and a GTX 1060 yet Blender 2.8 says "No compatible GPUs found for path tracing" What else do I need to do?

I know that nobody likes duplicate questions, but I haven't found my answer on any of the other questions with this topic.  I built a computer with a  (made by Gigabyte).  It supposedly has 512 CUDA cores.  I followed  tutorial, (which enabled the Nvidia proprietary drivers) and was able to enable dual monitors and all the desktop graphics that are needed.  Unfortunetly, the GPU processing option still doesn't show up in Blender.  I've tried installing nvidia-cuda-toolkit, and that didn't make a difference.  I also tried to update my drivers from nvidia-346 to nvidia-349, and this had no apparent effect either.  What can I do to enable GPU rendering?  (I've tried both blender installed and just downloaded from the site).


I need to know the watching order. I've been wanting to watch all of them for awhile but not unless it is in order.  What is the intended watching order?

Between Muyo, Universe, GXP, and Ryo-ohki, I'm thoroughly confused. Sometimes Tenchi series seem to be related (Ryo-ohki and Universe) and sometimes not (GXP). What are all the Tenchi series, are they related, and if they are, how?


I am attempting my own implementation of the toupper() function in C; my function should work for strings of any length. I am not sure why my compiler is throwing a segmentation error when I attempt to change the contents of the string as seen below. Is there any way around this error? (I have tried using arrays as opposed to pointers, but to no avail.) Note: isLetter() is a function I wrote that determines whether a character is an alphabetical character.   void toUpper(char *s){ while(*s != '\0'){     if(isLetter(*s)&&(*s> 90)){              *s += ('a' - 'A');     }     s++; }   I call the function like this:  char *s = "Hello"; toUpper(s);

The following code receives seg fault on line 2:  char *str = "string"; str[0] = 'z';  // could be also written as *str = 'z' printf("%s\n", str);   While this works perfectly well:  char str[] = "string"; str[0] = 'z'; printf("%s\n", str);   Tested with MSVC and GCC.


Most if the the values of the sine function that I am familiar with are irrational, like $\sin(\pi/3)$ or $\sin(\pi/6)$, or even rational like $\sin(\pi)$ or $\sin(0)$. Surely the sine function must give transcendental values somewhere, so my question is this: is there a way to determine whether the sine function will be transcendental or not? And if so, how?

Show that if $x$ is rational, then $\sin x$ is algebraic number when $x$ is in degrees and $\sin x$ is non algebraic when $x$ is in radians.    Details: so we have $\sin(p/q)$ is algebraic when $p/q$ is in degrees, that is what my book says. of course $\sin (30^{\circ})$, $\sin 45^{\circ}$, $\sin 90^{\circ}$, and halves of them is algebraic. but I'm not so sure about $\sin(1^{\circ})$.  Also is this is an existence proof or is there actually a way to show the full radical solution.  One way to get this started is change degrees to radians. x deg = pi/180 * x radian.  So if x = p/q, then sin (p/q deg) = sin ( pi/180 * p/q rad). Therefore without loss of generality the question is show sin (pi*m/n rad) is algebraic. and then show sin (m/n rad) is non-algebraic.


My problem is the OutPut that Google Calendar's code gives me. If I tell my program to output the next 10 events in a label he shows me only the last (ins't the problem itself though) like :  Event YYYY-MM-DDTHH:MM:SS.Z which would be okay, but I need it to look something like:  Event DD MM (preferably formatted as ('%a %d') 'cause the year is obvious).  WHAT I KNOW  In google's code is this:  for event in events:     start = event['start'].get('dateTime', event['start'].get('date'))   the problem occurs (I think) in the  .get('dateTime' I did a print (events) and besides a bunch of useless code I got this: 'start': {'dateTime': '2018-04-03T15:30:00+02:00'}, 'end': {'dateTime': '2018-04-03T16:30:00+02:00'}. Supposedly when I print the events I print that section of 'dateTime' as it's written there.  Now, how do I tell python to print ONLY the ninth, tenth, sixth and seventh character from the dateTime he extracts?  If any clarification is needed please tell me.

I've got a huge list of date-times like this as strings:  Jun 1 2005  1:33PM Aug 28 1999 12:00AM   I'm going to be shoving these back into proper datetime fields in a database so I need to magic them into real datetime objects.   This is going through Django's ORM so I can't use SQL to do the conversion on insert.


Do these look right to you? I'm pluralizing the following words. In doing so, I'm italicizing the word to be pluralized but not the 's':  ands (instead of and's) wherefores (instead of wherefore's) hiss (instead of his's)

I heard that the plurals of letters, numbers and words could be punctuated - with single quote marks on both sides - in this manner (especially in Britain):  'X's 'd's '5's 'thank-you's 'maybe's 'his's 'as's  I am sufficiently aware that we could italicize the letter, number or word and follow it with an unitalicized apostrophe 's'. We could also use just one apostrophe: x's, thank-you's, maybe's. This makes 'thank-you's and 'maybe's look possessive, not plural. In the two examples I just used in the previous sentence ('thank-you's and 'maybe's), the insertion of a single quote mark before and after each word (followed by an 's') definitively defines the plural of the word as a word. The same logic is applied to individual letters and numbers ('9's, 't's).  Bottom line, is my usage (albeit probably somewhat antiquated) correct?


I need to use the month of actual year, something like this  $mid = new DateTime('YYYY-07-01'); // this is where should work the actual year  echo $mid->modify('second monday')->format('Y-m-d');

I want to put a copyright notice in the footer of a web site, but I think it's incredibly tacky for the year to be outdated. How would I make the year update automatically with  or ?


This is a very simple example, I'm simulating normally distributed data in Python, and performing a Kolmogorov - Smirnov Test on my sample to check the goodness-of-fit(of the sample distribution compared with a Normal distribution) Code: from matplotlib import pyplot as plt  import numpy as np  from scipy import stats  data = stats.norm.rvs(5, 10, size=1000)  plt.hist(data)  print(stats.kstest(data, 'norm'))   KstestResult(statistic=0.57991242997450898, pvalue=0.0)  However, the p-value I get is very small!-> which means I have to reject the Null hypothesis, and conclude that the sample does not follow the distribution. Could someone explain what I'm doing wrong here?

I have a problem with the normality of some data I have:  I've done a Kolmogorov test which says it isn't normal with p=.0000,  I don't understand: the skewness of my distribution =-.497, and the kurtosis =-0,024  Here is the plot of my distribution which looks very much normal ...  (I have three scores, and each one of this scores isn't normal with a significant p-value for the Kolmogorov test ... I really don't understand )


I have an $items array that I was displaying with my template file. Now I want to add a pagination, therefore the code looks like this:      $current_page = pager_default_initialize(count($items), 4);     $chunks = array_chunk($items, 4, TRUE);      return theme('activit_item_list_block', array('title' => $title, 'subtitle' => $subtitle, 'items' => $chunks[$current_page])).            theme('pager', array('quantity', count($items)));    but now im getting error:      Fatal error: Allowed memory size of 1342177280 bytes exhausted (tried to allocate 40961 bytes) in C:\xampp\htdocs\grantexpert\includes\theme.inc on line 1514   Can't find out what I'm doing wrong, the code is identical with few examples that i found on internet. There is only 5 items in $items array.  activit_item_list_block:      <?php $countinrow = 0; $itemcount = count($items); $counter = 0; ?>

<?php echo rip_tags($subtitle); ?>

                  <?php foreach($items as $item) { ?><?php $countinrow++; $counter++; if ($countinrow==1) { ?>
<?php } ?>

<?php echo $item['title']; ?>

                                     <?php echo $item['text']; ?>

                              <a class="button btn-small" href="/<?php echo $item['link']; ?>">Viac informácií
<?php if ($countinrow==4 || $counter==$itemcount) { $countinrow = 0; ?>
<?php } ?>

I have a issue with my Drupal installation, for example:   when I enable or disable the modules, It redirects me to a blank page, when I create a new content type and save it, redirects me to a blank page, when I add a new view and save it, it redirects me to a blank page, when I try to clear the cache, it redirects me back to a blank page, or in similar cases.   Basically all the confirmation pages redirect me to a white screen. When I refresh it again, it shows me the page. I tried to increase the PHP memory value but it doesn't help.  Are there any other solutions for this?  The error which I'm having:      Fatal error: Allowed memory size of 100663296 bytes exhausted (tried to allocate 8192 bytes) in sites/all/modules/views/plugins/views_plugin_localization_none.inc on line 1


I have an object which represents an atom. I want to show a spherical gradient where the cloud is intense in the centre. It fades away to the edge.  I tried emission but not getting the desired output.

I am trying to figure out how to make the space around the sun glow and than fade away into darkness.  The sun was made in blender using cycles render and several noise textures. The glow I have around my sun was made using Blenders Gurus tutorial for earth, atmosphere effect, to create a red glow. The sun will be animated so using composition is not going to work for me (sadly);  I realized one of the reasons why the method is not working is I am using surface rather than a volume shader, but As I tried to do it using volume shaders, I could not figure out what direction to take.


Suggestions for cleanup and optimization request.   This question is a follow-up question on .   Lets assume the range of      1, 2, 3, 4.    This function takes in an array of repeated elements, [1,1,4,4] and the output is [2, 3].   The question marked as duplicate takes an input of [1, 4] and output is [2, 3]. While output is same, the input differs.  Please make a note of this difference between two questions causing confusion.  final class Variables {     private final int x;     private final int y;      Variables(int x2, int y2) {         this.x = x2;         this.y = y2;     }      public int getX() {         return x;     }      public int getY() {         return y;     }      @Override public String toString()  {          return "x = " + x + " y = " + y;     } }       public final class FindMissingRepeating {          /**          * Takes an input a sorted array with only two variables that repeat once. in the          * range. and returns two variables that are  missing.          *           * If any of the above condition does not hold true at input the results are unpredictable.          *           * Example of input:          * range: 1, 2, 3, 4          * input array [1, 1, 4, 4]          * the variables should contain 2 missing elements ie 2 and 3          *           * @param a : the sorted array.          */         public static Variables sortedConsecutiveTwoRepeating (int[] a, int startOfRange) {             if (a == null) throw new NullPointerException("a1 cannot be null. ");              int low = startOfRange;             int high = low + (a.length - 1);              int x = 0;             int i = 0;             boolean foundX = false;              while  (i < a.length) {                 if (a[i] < low) {                     i++;                 } else {                     if (a[i] > low) {                         if (foundX) {                             return new Variables(x, low);                         } else {                             x = low;                             foundX = true;                         }                     }                     low++;                     i++;                 }              }              int val = foundX ? x : high - 1;             return new Variables(val, high);          }            public static void main(String[] args) {             int[] ar1 = {1, 2, 2, 3, 4, 4, 5};             Variables v1 = FindMissingRepeating.sortedConsecutiveTwoRepeating (ar1, 1);             System.out.println("Expected x = 6, y = 7 " + v1);              int[] ar2 = {2, 2, 4, 4, 5, 6, 7};             Variables v2 = FindMissingRepeating.sortedConsecutiveTwoRepeating (ar2, 1);             System.out.println("Expected x = 1, y = 3 " + v2);              int[] ar3 = {3, 3, 4, 4, 5, 6, 7};             Variables v3 = FindMissingRepeating.sortedConsecutiveTwoRepeating (ar3, 1);             System.out.println("Expected x = 1, y = 2 " + v3);              int[] ar4 = {1, 3, 3, 4, 4, 6, 7};             Variables v4 = FindMissingRepeating.sortedConsecutiveTwoRepeating (ar4, 1);             System.out.println("Expected x = 2, y = 5 " + v4);         }     }

Looking for reviewers to suggest optimization and improvements, and to evaluate coding practices.  final class Variables {     private final int x;     private final int y;      Variables(int x2, int y2) {         this.x = x2;         this.y = y2;     }      public int getX() {         return x;     }      public int getY() {         return y;     }      @Override public String toString()  {          return "x = " + x + " y = " + y;     } }  public final class FindMissing {      private FindMissing() {};      /**  * Takes an input a sorted array with two variables that repeat in the  * range. Remaining variable are consecutive. and returns two variables that repeats  *   * eg: for a range of 1,2,3,4, a valid input is [1, 4], [1, 3] etc.  *   * @param a : the sorted array.  */ /*  * Why is start needed ?  * If start is not given then if a1 is empty how do we know if missing numbers were  * [1, 2] or [4, 5] ??.   */ public static Variables sortedConsecutiveTwoMissing (int[] a, int startOfRange) {     if (a == null) throw new NullPointerException("a1 cannot be null. ");      int low = startOfRange;     // calculating the highest value of the range. it needs to be 2 more than length since all elememts are consecutive.     int high = startOfRange + (a.length - 1) + 2;      int i = 0;     boolean foundX = false;     int x = 0;       while (i < a.length) {         if (a[i] != low) {             if (foundX) {                 return new Variables(x, low);             } else {                 x = low;                 foundX = true;             }         } else {             i++;         }         low++;     }      return new Variables(x, high);  }  public static void main(String[] args) {         // unsortedConsecutiveTwoMissing         int[] a6 = {1, 4};         System.out.println("Expected 2 and 3, Actual " + sortedConsecutiveTwoMissing(a6, 1));         // unsortedConsecutiveTwoMissing         int[] a7 = {-4, -1};         System.out.println("Expected -3 and -2, Actual " + sortedConsecutiveTwoMissing(a7, -4));         int[] a8 = {-4, -3, -2, -1};         System.out.println("Expected 0 and 1, Actual " + sortedConsecutiveTwoMissing(a8, -4));         int[] a9 = {5};         System.out.println("Expected 4 and 6, Actual " + sortedConsecutiveTwoMissing(a9, 4));         }      }


Context: I want to enable a normal user to mount a certain cifs mount on his system (Debian Strech). I therefore added the following entry in /etc/fstab (note the added ,user in the options):  //server/share/ /home/user/mountpoint cifs defaults,user,uid=user,credentials=/home/user/.cifs-creds 0 0   Also the credential-file is owned by the user and is readable/writable/executable (700).  Subsequently mounting as root works (i.e. cifs-utils are available on the system, the credential-file exists and is correctly populated)! But mounting as a user does not, resulting in the following output:  user@system: ~$ mount mountpoint mount error(22): Invalid argument Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)   /var/log/kern.log states:  Jun  4 11:36:52 system kernel: [173283.233509] CIFS: Unknown mount option "defaults"   So, somehow, when executed as a user, the defaults option can not be used to mount? When the ,defaults option is removed from the fstab entry, users can mount (without error) but that would leave out a lot defaults (and using the defaults (other than: ,user) should be possible right?).  Hence my question:   What is the advised fstab entry to have users mount a CIFS/SAMBA share to prevent the mount error(22): Invalid argument caused by the CIFS: Unknown mount option "defaults"?   Should I simply leave out ,defaults or is there another method to do this (I tried Googling on this, but every tutorial / explanation I find seems to confirm the method used)?

The  specifies the options of / to be defaults,noatime, but on my installation the default fstab is created with the options of rw,relatime. The  covers the atime issues. What I am curious about is the defaults option. The man page for mount says:  defaults Use the default options: rw, suid, dev, exec, auto, nouser, and async. Note that the real set of all default mount options depends on kernel and filesystem type.  See the beginning of this section for more details.  Are the default options used only if the defaults option is provided or are they used in all cases? Do I need defaults in my fstab?


In his , Ian Thorpe says:     I had swum 1:49.16, the fifth-fastest heat time as it turned out. It meant I had a good lane in one of the semifinals later that night.   This begs the question: What makes a lane "good"?

Upon observing swimming competitions in the Olympics, it is not clear to me whether one of the eight lanes is more advantageous versus another. I've seen vague claims but nothing backed up with science.  In competitive swimming, is there an advantage to being in one lane or another? Furthermore, does the stroke (ie: breast, fly, freestyle, etc.) affect this effect?