I already have tourist visa to Germany. I stated I will be staying in a hotel, but I am PLANNING to stay with a friend*. I figured I would cancel the hotel reservation AFTER I go through immigration, just in case the immigration officers call the hotel to confirm my reservation.   Is this a good idea or should I just stay in the hotel instead?  *I thought obtaining a "formal obligation" for Schengen visa application was too much of a hassle (when you want to stay in Germany to visit a friend/relative), so I declared that I'd be staying in a hotel instead.

My route trip is Prague-->Berlin-->Vienna. I want to change the route to be Prague-->Berlin-->Paris.  Additionally, I already got my Schengen Visa, but after that I found a good deal in another hotel.    Can I change the first hotel I will visit before I travel?  If yes, is that going to cancel my visa or anything like that? Also I planned to go to Vienna and go back to my home from there. Can I change it and go to Paris instead?


The last couple days I've noticed that I'm not getting the "X New Questions" notification anymore. Is this a result of the changes that were made fairly recently, and can we expect this back?

I am watching the  tag on Stack Overflow. My filter looks like this:    I do not receive notification of new questions. Previously I'd get notifications like this:    This notification does work when watching the  page of Meta.   Are notifications only active for a certain set of filter options? If so, what are they? If not, can we get them back when watching pages other than the main page?


I'm given the series $$\sum_{n=1}^\infty\frac{n+2}{n(n+1)2^{n+1}}$$  I've tried splitting up the fractions to use the telescoping effect, but no terms seem to cancel out. Can someone help me out?

Find out the sum of the following infinite series $$\frac{3}{2^2(1)(2)} + \frac{4}{2^3(2)(3)} +\dots+\frac{r+2}{2^{r+1}(r)(r+1)}+\cdots $$ up to $r\to\infty$.  MY TRY:-  I tried to split $r+2$ as $[(r+1) +{(r+1)-r}]$ so that I can cancel one term from each terms in the numerator. Then I got an expression which was like Harmonic-Geometric series. But I could not do further any more after this.


I have a Nikon D40. I bought it new in 2007ish and I'm still using the stock 18-55 lens that came with it.  In the last month I've noticed a black fuzzy spot in every picture. Below is an example. That is not something on the wall - the dot moves and shows up in other pictures.  It only shows up when zoomed in and gets progressively lighter as I zoom out.  So I assumed it was something on the lens, but cleaning it didn't change anything. I don't visually see any scratch or debris. I don't think I ever took the lens off since 2007, but I removed and gently blew some compressed air into it. No change.  Any other ideas? The camera has never been dropped or damaged.  One other odd thing is that periodically, I'll see an extreme blue tint if I pick the camera up after a long period of time and snap some pictures - that has only happened once or twice in the last couple of years though and could easily be a low battery or temperature issue (I haven't really documented it).

I've been seeing these dark spots in my pictures. They appear a lot more on some pictures than others, but they are in the same place in the image and independent of the lens being used. Is this dust? I've also heard that you can get oil spots on the sensor.  The image is from a Nikon D7000.


I can not find the LaTeX command for the following symbol:  Anyone can help? It is an "X" with an horizontal line. And I need also the command for:

I know what my symbol or character looks like, but I don't know what the command is or which math alphabet it came from. How do I go about finding this out?


I have a query I need to pitch even for once . With this method , but this method did use a lot of CPU and slows the server .   public function setRunningLevelsReadyToRun(){     $interval=5; //seconds     set_time_limit(0);             while(true) {         $now=time();         mysql_query("UPDATE `levels` SET status='running' WHERE 'NULL' not in (uid1,uid2,uid3,uid4) AND status = 'opened'") or die(mysql_error());         sleep($interval-(time()-$now));     }  }   I read  but I want to run this method in separate thread.

Is there a full featured, job scheduling package available for PHP? I'm looking for the PHP equivalent to Java's . I'm fine having things triggered externally from cron to drive the system. The functionality I'd be looking for:   Ability to register task (class/method) to be called at given intervals. Ability to specify whether a given task can be run multiple times (potentially long running methods should not be run multiple times in certain cases). All registered entries/methods could be run in parallel (jobs are backgrounded so that they do not block other timed tasks). Ability to set a timeout for a given task. Ability to update job control dynamically, so for instance you could disable some tasks or change their frequency without code changes.   I know it is a lot to ask, but it seems like a useful batch of features and I thought someone might have put together some portion of them.  If this or some portion of this does not already exist, any pointers to putting one together or an open source project that has a reasonably featureful implementation of some subset of these?


Say if I have the emblem of  (Whenever you draw a card, you may exile target permanent) out, and cast  (Draw three cards, then put two cards from your hand on top of your library in any order). How many times does the emblem trigger?

Is drawing multiple cards an atomic action, or do effects triggered by drawing a card trigger for each card drawn instead?  Consider , which reads:     Whenever a player draws a card, Spiteful Visions deals 1 damage to that player.   If a player were to be compelled to draw more than one card, would that player be dealt the damage all at once, or one at a time? For example, how many times would  need to be activated to prevent all damage?  Furthermore, if there exist additional effects that are triggered by damage dealt in this way, are such effects resolved together atomically or is each resultant effect resolved individually?    How about tutors, or other cards not using the word 'draw', eg:      If you would draw a card, look at the top three cards of your library instead. Put one of those cards into your hand and the rest on the bottom of your library in any order.


Hopefully the title conveyed my request with clarity.  An example:  *     Egalitarianism encompasses feminism.   *  What word describes that relationship? Where the former contains the latter and more (in context to the question).

Bats and rats are mammals. 1 and 2 are positive integers. Oaks and maples are trees. Carrots and cake are food.   I seek a word to describe this, the process of finding a concept that encompasses several given concepts. Is there such a word?


Is there a way to give custom filenames for split command? I am splitting a file that is 100GB into chunks of 128MB. Here is what I am doing  split -b 128000k mydata.csv.  This creates files with following names xaa,xab,xac,.. etc. I am wondering if it is possible to have custom names like mydata_0.csv, mydata_1.csv for each of the splits.

There is a standard command for file splitting - split.  For example, if I want to split a words file in several chunks of 10000 lines, I can use:  split -dl 10000 words wrd   and it would generate several files of the form wrd.01, wrd.02 and so on.  But I want to have a specific extension for those files - for example, I want to get wtd.01.txt, wrd.02.txt files.  Is there a way to do it?


I want to know when the review consensus was different than the one I voted for. For simplicity, I'd call that situation that "I was wrong".  This has nothing to do with audits, I am talking about real reviews.  Right now I click through all items in Actions>Reviews. But that has two flaws:   I need to check every review, not just those where I was "wrong" I need to check multiple times because it takes time for the review to be closed   It would be extremely useful for me to see the results but clicking through all reviews is very tedious. Is there a way? I mark this a feature request because I think there is not.

Today, I started exploring the reviews section on Stack Overflow and specially the Triage queue.  In the  section I can see all my reviews, and also the triage category I chose (for example, 'Looks OK', 'Should Be Improved', 'Skip', etc.), but I can't see the final consensus of each review unless I click on one of them, and I have to select each review manually to see its consensus.  Why doesn't the review's history include the consensus of our each review next to it, so every one will know that he is doing reviews correctly? And how can I suggest that to the community?  Update:  Maybe something like this:    Second Update:  Following Saposhiente's remarks within comments, I want to clarify that the checkmarks in the picture above means that the reviewer's choice matched the consensus.  However, the picture is only a simplified example regarding the emplacement where we can add the consensus column. Thus, I join the opinion of Saposhiente, suggesting to add a:     Consensus column that lists what exactly the consensus was, and   bolds the differing items


If, from the reference frame of an observer at rest outside a black hole, it takes an infinite amount of time for an object to be observed to fall into a black hole, how can black holes ever be observed to grow in that reference frame?

The event horizon of a black hole is where gravity is such that not even light can escape. This is also the point I understand that according to Einstein time dilation will be infinite for a far-away-observer.  If this is the case how can anything ever fall into a black hole.  In my thought experiment I am in a spaceship with a powerful telescope that can detect light at a wide range of wavelengths.  I have it focused on the black hole and watch as a large rock approaches the event horizon.  Am I correct in saying that from my far-away-position the rock would freeze outside the event horizon and would never pass it? If this is the case how can a black hole ever consume any material, let alone grow to millions of solar masses.  If I was able to train the telescope onto the black hole for millions of years would I still see the rock at the edge of the event horizon?  I am getting ready for the response of the object would slowly fade.  Why would it slowly fade and if it would how long would this fading take?  If it is going to red shift at some point would the red shifting not slow down to a standstill? This question has been bugging me for years!  OK - just an edit based on responses so far.  Again, please keep thinking from an observers point of view.  If observers see objects slowly fade and slowly disappear as they approach the event horizon would that mean that over time the event horizon would be "lumpy" with objects invisible, but not passed through?  We should be able to detect the "lumpiness" should we not through?


I have a point table containing values ranging from 0 to 100 and I would like to draw a contour line for the value 70. (See image below)  I know how to create contour lines in QGIS for raster data but now I would like to do it with vector data (my point table) using PostGIS so that it can be integrated in a python script.  Any idea on how to start?  EDIT: This question is different from  as it doesn't involve raster data (neither in the input nor in the output)

I am trying to create contour lines and filled contours from a shapefile of height points using the contour plug in (have tried other tools but with no success).  The data is sourced from the UK Ordnance Survey in tiles of 400 x 400 points (NTF format). Each tile has been opened as a vector layer and then saved as a shp layer. The plug in will run properly with a single tile. However, the area I need is 3 x 3 tiles i.e. 1200 x 1200 points.   Initially I generated contour lines and filled contours for each of the 9 tiles. This is unsatisfactory since the spacing is slightly different for each tile according to its height range resulting in mismatch at tile boundaries. I then merged the 9 shp layers using the mmgis and vector menu merge. Running the contour plug in against either merged file fails with the dialogue box showing 'Not Responding'.  I am running QGIS 1.8 Lisboa on Windows 8 x64 pro with 32gb of memory and plenty of free disk space on all drives. I have had no problems with other imported layers, adding new layers of data. However, this is the first time I have attempted to generate a shaded layer or contour lines. I guess there must be a setting somewhere to allow the plug in to handle the larger data block - I found and increased the cache setting in 'options') or I am using the wrong tool for the job.  My project is mapping local history routes/settlements. The shading is needed to provide context.


I've created a shape object with mesh. It's a side of a POS stand. I need to create sheet cuts for printing purposes. How can i export mesh shape to svg or other vector file ?

I need to export the colored face groups below as vectors so that I can import them into photoshop.  My first approach was to use different colored shadeless materials which I could then turn into selections inside photoshop but it is not an accurate method, I have to have the vectors rendered inside photoshop.


Question is pretty self-explanatory. Either way, a date on a calendar is a date. When it becomes unexpected, it sounds right to me to say an unexpected date instead of a unexpected date. Same for when using expected.  Which one is it?

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


I currently have a lot of old hard drives I am trying to backup. I am backing them up onto a large external hard drive formatted to be HFS+. Each time I do the click and drag method of transferring the folders from the old hard drive onto a new folder I create in the large external, the "Date Modified" attribute inevitably changes each time I click into folders. How can I keep everything intact? Would I rely on dd, changing the permissions of the drives, etc? thanks

I'm interested in combining the files from three Macs by copying the files from each one into a single folder hierarchy of my design on an external hard drive.  In my past experience copying files in OSX, sometimes the files lose their Created and Modified timestamps; i.e. they are changed to the present moment when the file copy happens.  How can I make sure this doesn't happen?


I am trying to delete the second highest salary of an employee from a table but I am not able to find out the correct answer.  delete FROM user  where salary =(select max(salary) from user where salary<(select max(salary) from user));

I have a table story_category in my database with corrupt entries. The next query returns the corrupt entries:  SELECT *  FROM  story_category  WHERE category_id NOT IN (     SELECT DISTINCT category.id      FROM category INNER JOIN         story_category ON category_id=category.id);   I tried to delete them executing:  DELETE FROM story_category  WHERE category_id NOT IN (     SELECT DISTINCT category.id      FROM category        INNER JOIN story_category ON category_id=category.id);   But I get the next error:      #1093 - You can't specify target table 'story_category' for update in FROM clause    How can I overcome this?


I have a rectangle that grid mesh that I want to subdivide, however, all attempts resulted into the subdivided faces being proportional to the rectangle mesh, I would like to be able to have the rectangle mesh be made up of smaller squares, not rectangles; how would I do this?

I have a plane that has a scale of x: 100, y: 5, z: 1, and I want to split it into squares that have a scale of x: 5, z: 5, but when I do subdivide, I get a result like this:     When in reality, I'd rather have something like this:    How can I do this? (Sorry for the badly sketched pictures.)


Is this sentence right?   " I eventually go to that restaurant. Because of the prices I can't afford to go there very often"   Can I start a sentence using "Because of"??  Thanks

Because PaymentX stores the user's credit card details for you and sends your server a token to charge the card, if you use our SDK, your PCI compliance scope is greatly reduced compared to the case when your servers were handling the card details directly.   What's the best way to phrase the sentence above? I know an english rule is to never start a sentence with Because.


I'm trying to add the abbreviation p. or pp. before listing the pages in a glossary. My current MWE is as follows:  \documentclass{article}  \usepackage[acronym]{glossaries}  \makeglossaries  \renewcommand{\glspostdescription}{\emph{ pp.~}}  \newacronym{abc}{ABC}{a contrived acronym}  \begin{document}  \gls{abc}  \printglossaries  \end{document}   This produces the following output:    Note that I redefine \glspostdescription to produce custom text instead of a dot.  This is almost what I want. The only thing I'd like to change to display p. when only a single page is being referenced, like in the example above. When there's a reference to multiple pages, I want to use pp. instead.  How can I accomplish this without manually editing all entries?

I have recently started to use the package glossaries.  When I make the Glossary list, the page numbers show up at the end of the description. So far so good.  I have found information about how to not show the page numbers.  I have found one solution in  how to add the words "page" or "pages". But it had some issues:   The previously existing cross-references disappeared. It used to look like  .  So my question is, can you include the words "page" or "pages" without losing the clickable cross-references? Another problem with the found solution is that it tends to repeat the term "page"      instead of just using it once.   The second issue seems to be solved     in the proposed solution of , but I was not sure how to implement the proposed solution. At least I got error codes when trying to add the  % Columns in acronym table \newglossarystyle{mylong}{%   \setglossarystyle{long}%   \renewenvironment{theglossary}%      {\begin{longtable}[l]{@{}p{\dimexpr 2cm-\tabcolsep}p{0.8\hsize}}}%      {\end{longtable}}%       \renewcommand{\glossentry}[2]{%       \glsentryitem{##1}\glstarget{##1}{\glossentryname{##1}} &       \glossentrydesc{##1}\glspostdescription\space        \pagesfalse       \usepagestag{##1}\space       ##2%       \ifpages         \savepagestag{##1}{pages}%       \else         \savepagestag{##1}{page}%       \fi       \tabularnewline      }%  }   code block from  to my .tex document.  Can anyone help me out with this?  /Lars


How would I go about having the output of a custom command depend on the language chosen (e.g. insert "Example" in English, "Exemple" in French and "Beispiel" in German)? I'm using XeTeX with polyglossia, but it would of course be even nicer to have a solution that would work with babel as well.

I've got a template that is to be used in french or english, is there a name in babel defining the "of" of "page x of yy" than I want to translate automaticaly to "page x sur y"  If not, is there a way of setting a name according to language selected in babel.


I have a folder in the server and when I upload a file overwrite the existing file (means I save the file with the same name).  So when I open my website it should show me the new uploaded file but it shows the old file instead.  Is there any way to hard code directory refresh?   string folderPath = Server.MapPath("~/Resources/Slider/"); if (!Directory.Exists(folderPath)) {      Directory.CreateDirectory(folderPath); }  //Save the File to the Directory (Folder). String extension = Path.GetExtension(FileUpload1.FileName); FileUpload1.SaveAs(folderPath + "slide" + s4 + extension);   s4 = 1 or 2 or 3   This is how the directory that I want to refresh slider folder:

Background  I am writing and using a very simple CGI-based (Perl) content management tool for two pro-bono websites. It provides the website administrator with HTML forms for events where they fill the fields (date, place, title, description, links, etc.) and save it. On that form I allow the administrator to upload an image related to the event. On the HTML page displaying the form, I am also showing a preview of the picture uploaded (HTML img tag).  The Problem  The problem happens when the administrator wants to change the picture. He would just have to hit the "browse" button, pick a new picture and press ok. And this works fine.  Once the image is uploaded, my back-end CGI handles the upload and reloads the form properly.  The problem is that the image shown does not get refreshed. The old image is still shown, even though the database holds the right image. I have narrowed it down to the fact that the IMAGE IS CACHED in the web browser. If the administrator hits the RELOAD button in Firefox/Explorer/Safari, everything gets refreshed fine and the new image just appears.  My Solution - Not Working  I am trying to control the cache by writing a HTTP Expires instruction with a date very far in the past.  Expires: Mon, 15 Sep 2003 1:00:00 GMT   Remember that I am on the administrative side and I don't really care if the pages takes a little longer to load because they are always expired.  But, this does not work either.  Notes  When uploading an image, its filename is not kept in the database. It is renamed as Image.jpg (to simply things out when using it). When replacing the existing image with a new one, the name doesn't change either. Just the content of the image file changes.  The webserver is provided by the hosting service/ISP. It uses Apache.  Question  Is there a way to force the web browser to NOT cache things from this page, not even images?  I am juggling with the option to actually "save the filename" with the database. This way, if the image is changed, the src of the IMG tag will also change. However, this requires a lot of changes throughout the site and I rather not do it if I have a better solution. Also, this will still not work if the new image uploaded has the same name (say the image is photoshopped a bit and re-uploaded).


public class sss {    public static void main(String[] args) {     int[] array = { 1, 2, 3 };     change(array);      for(int i=0;i<array.length;i++)         System.out.println(array[i]);    }    public static void change(int [] array)   {       int[] temp = new int[4];       for (int i =0; i<temp.length;i++)           temp[i] = i;       array =  temp;   }  }   Im trying to change my array, Why is the output is 1,2,3 and not 0,1,2,3 ? Thanks.

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


I use Inkscape to create .pdf_tex graphics. While drawing my figure on Inkscape, I import an .png image, than I save my drawing as PDF and call it in my LaTeX code as follows:  \documentclass{article} \usepackage{graphicx} \usepackage{xcolor} \usepackage[cmex10]{amsmath} \begin{document}  \begin{figure}     \input{C:/latex/dessins-svg-inscape/dessin2.pdf_tex} \end{figure}  \end{document}   However, I don't find the image I imported on Inkscape; I don't find the drawings I made (I drew circles), I find only mathematical formulas that I added.  Please could you help me solve this problem.

I am trying to use pdftex to lay out a document including images made in inkscape.  From inkscape I can output the images as pdfs with accompanying pdf_tex files and put these in a figure environment.  This works if the figures are in the main file. However, I have each chapter in a separate folder with all the images for that chapter. When I include images in a chapter I get the error : "Package pdftex.def Error: File 'peeling_flow_constant_width.pdf' not found."  Googling around (here: ) suggests that if I had all my images in the same folder then I could use \graphicspath. This doesn't work for my case of having graphics in each of the separate chapter subfolders.  I think the problem comes from the fact that the .pdf_tex file automatically generated by inkscape includes the command: \put(0,0){\includegraphics[width=\unitlength]{base_peeling_flow_constant_width.pdf}}%  This command doesn't have any information about the path to the pdf file.  My minimal working example is   \documentclass[12pt,chapterprefix,openright,twoside,a4paper,numbers=noenddot,DIV11,BCOR1cm]{scrbook} %\include{l_preamble} \usepackage{graphicx} % to be able to use \includegraphics \usepackage[rgb]{xcolor} % Needed by pdfcomment  \begin{document}  \begin{figure}[htb] \input{base_peeling_flow_constant_width.pdf_tex} \end{figure}  \include{chapter1/chapter1}  \end{document}   with the chapter 1 file  \section{test chapter1}  \begin{figure}[htb] \input{chapter1/peeling_flow_constant_width.pdf_tex} \end{figure}


I am working with Drupal Commerce using core Drupal 8 and the type of data I am using is Product. When I tag a product with a taxonomy term and visit page for that taxonomy term, I don't see anything. On the other hand, when I tag article with a taxonomy term, I can see all the articles tagged when I visit page for that tag. What influences behavior of taxonomy term and how can I manipulate it to display products?  I believe that it only works with a content type and product is not a content type. In older version of Drupal Commerce there was a product display content type which had Product as reference. That is no longer the case, now product can't be used as reference.  Edit: Product can still be used as reference. You can use it as reference to create something similar to  Product Display in older version of Drupal Commerce Kickstart

Usually in commerce 1 did: Display-products (node), in which field "Catalog" of taxonomy-term. Create a displays. Go to the term page and see all products! Great!  In commerce 2 tried to do but failed, probably because product is not a node, and the view for taxonomy, only works on him and no teaser.  Tell me, how do organized easy catalog on commerce2?  Preferably without the panels and search_api. Thank you.


I'm having some fun writing simple applications that use pthreads. Is it possible for a thread to get information about which core it is running on? I'm trying to play around with the thread affinity of a thread, so it would be really useful to know the details of which core a thread would be running on.

Presumably there is a library or simple asm blob that can get me the number of the current CPU that I am executing on.


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

I'm a citizen of an EU member state traveling to a small city in Vermont. Looking at flight data, it seems that it would be quite a bit quicker to fly into Montreal (Canada) and then drive a rental car to my final destination in Vermont (and back), rather than getting a connecting flight into a small local US airport. I am slightly worried about the trouble I might get myself into by crossing a land border twice, though.  Can anyone give me an idea of what I'd be getting into in terms of:   Crossing time Discomfort Additional paperwork required   For both the outbound (Canada/US) and the return leg (US/Canada) of my journey, when compared to crossing the border at an international airport?  Also, do I need to take any special actions when I'm arranging a rental car if I intend to drive it over to the US and back?


I am new to Ubuntu and Linux in general. I installed Ubuntu 16.04 but I can not install any applications in it. The error messages tell me there are unmet dependencies and tell me to run 'sudo apt-get -f install'. But running it produces the following errors:  Extracting templates from packages: 100% Preconfiguring packages ... (Reading database ... 178237 files and directories currently installed.) Preparing to unpack .../libasyncns0_0.8-5build1_i386.deb ... Unpacking libasyncns0:i386 (0.8-5build1) over (0.8-4) ... dpkg: error processing archive /var/cache/apt/archives/libasyncns0_0.8-5build1_i386.deb (--unpack):  trying to overwrite shared '/usr/share/doc/libasyncns0/changelog.Debian.gz', which is different from other instances of package libasyncns0:i386 Preparing to unpack .../liblcms2-2_2.6-3ubuntu2_i386.deb ... Unpacking liblcms2-2:i386 (2.6-3ubuntu2) over (2.2+git20110628-2ubuntu3.1) ... dpkg: error processing archive /var/cache/apt/archives/liblcms2-2_2.6-3ubuntu2_i386.deb (--unpack):  trying to overwrite shared '/usr/share/doc/liblcms2-2/copyright', which is different from other instances of package liblcms2-2:i386 dpkg-deb: error: subprocess paste was killed by signal (Broken pipe) Preparing to unpack .../libogg0_1.3.2-1_i386.deb ... Unpacking libogg0:i386 (1.3.2-1) over (1.2.2~dfsg-1ubuntu1) ... dpkg: error processing archive /var/cache/apt/archives/libogg0_1.3.2-1_i386.deb (--unpack):  trying to overwrite shared '/usr/share/doc/libogg0/copyright', which is different from other instances of package libogg0:i386 Preparing to unpack .../libsamplerate0_0.1.8-8_i386.deb ... Unpacking libsamplerate0:i386 (0.1.8-8) over (0.1.8-4) ... dpkg: error processing archive /var/cache/apt/archives/libsamplerate0_0.1.8-8_i386.deb (--unpack):  trying to overwrite shared '/usr/share/doc/libsamplerate0/changelog.Debian.gz', which is different from other instances of package libsamplerate0:i386 No apport report written because MaxReports is reached already                                                               Preparing to unpack .../libwrap0_7.6.q-25_i386.deb ... Unpacking libwrap0:i386 (7.6.q-25) over (7.6.q-21) ... dpkg: error processing archive /var/cache/apt/archives/libwrap0_7.6.q-25_i386.deb (--unpack):  trying to overwrite shared '/usr/share/doc/libwrap0/changelog.Debian.gz', which is different from other instances of package libwrap0:i386 No apport report written because MaxReports is reached already                                                               Processing triggers for man-db (2.7.5-1) ... Errors were encountered while processing:  /var/cache/apt/archives/libasyncns0_0.8-5build1_i386.deb  /var/cache/apt/archives/liblcms2-2_2.6-3ubuntu2_i386.deb  /var/cache/apt/archives/libogg0_1.3.2-1_i386.deb  /var/cache/apt/archives/libsamplerate0_0.1.8-8_i386.deb  /var/cache/apt/archives/libwrap0_7.6.q-25_i386.deb E: Sub-process /usr/bin/dpkg returned an error code (1)

I tried to upgrade Intel graphics in ubuntu 16.10 using the official installer. The last stage of unpacking libcairo2 produces an error (see figure).  When I do upgrade I get the same error also:   Preparing to unpack .../0-libcairo2_1.15.2-0intel1_amd64.deb ... Unpacking libcairo2:amd64 (1.15.2-0intel1) over (1.15.2-0intel1) ... dpkg: error processing archive /tmp/apt-dpkg-install-aYhdFd/0 libcairo2_1.15.2-0intel1_amd64.deb (--unpack): trying to overwrite shared '/usr/share/doc/libcairo2/changelog.Debian.gz', which is different from other instances of package libcairo2:amd64 Preparing to unpack .../1-libcairo2_1.15.2-0intel1_i386.deb ... Unpacking libcairo2:i386 (1.15.2-0intel1) over (1.15.2-0intel1) ... dpkg: error processing archive /tmp/apt-dpkg-install-aYhdFd/1-libcairo2_1.15.2-0intel1_i386.deb (--unpack): trying to overwrite shared '/usr/share/doc/libcairo2/changelog.Debian.gz', which is different from other instances of package libcairo2:i386 Errors were encountered while processing: /tmp/apt-dpkg-install-aYhdFd/0-libcairo2_1.15.2-0intel1_amd64.deb /tmp/apt-dpkg-install-aYhdFd/1-libcairo2_1.15.2-0intel1_i386.deb E: Sub-process /usr/bin/dpkg returned an error code (1)   It seems that there is a conflict in thelibcairo releases; if yes, how to resolve it ?


I'm trying to get the following to work:  We have a postfix relay on the edge of our network, accepting all mail from our internal LAN & DMZ. What we are trying to get to work is limiting the maildomains a specific subnet (test & dev) can send mail to. Basically, this:  production-subnet -> relay:25 -> outbound mail all domains        = OK test-subnet       -> relay:25 -> outbound mail all domains        = NOK test-subnet       -> relay:25 -> outbound mail to allowed domain  = OK   I've tried check_send_access maps, but they can only allow or disallow mail from a sender, and can't filter based on recipient domain. In an ideal world where developers check their output, this wouldn't be necessary at all, but we've had a few occasions where dev was copied from production and suddenly people got rogue-mailed by the dev-environment and we want to stop that from happening again whilst still retaining the ability to be able to send mail to our own domain (for cronmail, et al)  I have toyed with the idea of setting up a second relay specific for this purpose, but due to a large (mostly unmanaged by ansible) environment, that would be significantly more work to get this to work, which is why I would prefer to do it on the existing relay on the standard smtp port.

I have 4 servers. prod1.example.com, prod2.example.com, dev1.example.com, and dev2.example.com. They all send their mails to smtp.example.com. This server does the relay. Now I want that dev1 and dev2 send all their e-mails to devbox@example.com except for the e-mails that are sent to admin@example.com. The e-mails from prod1 and prod2 are relayed without any restriction.  I read that in the access file you can define that a server must be handled by a filter instead of a simple RELAY (with FILTER foo:bar). I cannot find how and where I need to define this foo (transport) and bar (destination). Al these different parameters confuse me. Also in what order are the different files handled?  Can anybody help me out?


I have a machine which is hooked up to a physical display and to which I have ssh & root access, but which does not have a mouse or keyboard.  It does not have X installed.  I would like to run some commands such that their output is displayed on the physical display.  My thought was that I should just write to /dev/tty1, as I only needed to send keypresses, not receive data.  And it worked - kind of.  The display is sitting at the login prompt, so running  echo "myusername" | sudo tee /dev/tty1   does in fact cause my username to fill in the field in the physical display!  But it never goes to the password prompt...sending newlines does not seem to be the same as a physical press of the enter key.  I have tried  echo -ne "\n" | sudo tee /dev/tty1 echo -ne "\r\n" | sudo tee /dev/tty1 echo -ne "\0" | sudo tee /dev/tty1   All just seem to add more blank lines to the username field.  Is there a trick?

I managed to do this  echo -n "command" > /dev/tty1  The letters appear, and the cursor moves, but they are "ghosts" – if you hit Enter, nothing happens (they are not in stdin).  Edit:  In the middle of the below screenshot, you see why I see the use of this. (The line with a red caption, right below the line with a yellow caption.) As it is now, you are not really "editing" the note text; you are just asked to write a new text, which will replace the text of the note you are (not really) editing. Thus, I thought it could be remedied by simply pasting the old text into the tty: if the user hits enter, no modification is made. (This program is in Perl/MySQL, but I thought it would be more interesting to ask for a general solution than "how do I do this in Perl".)    Edit 2:  Here is the Perl code, that uses the C code below (works exactly as intended), as well as a new screenshot – hopefully this will clarify things beyond doubt :) Again, look at the middle of the screenshot, where the edit is made to the note text - this time around, the old text is there, for example if you just wanted to fix a typo, you won't have to retype the entire note text.  my $edit_note_text = $edit_note_data[2]; print BOLD, RED, " new text: ", RESET; system("writevt /dev/tty \"$edit_note_text\""); my $new_text = <$in>; $new_text = fix_input($new_text); my $set_text = "UPDATE notes SET note = \"$new_text\" WHERE id = $edit_note_id"; $db->do($set_text);


I want to book a one-way flight from QatarAirways from Tehran(IKA) to Montreal(YUL) and the price is 1100$ for one-way trip but the price of a round-trip from YUL to IKA (YUL to IKA as outbound ~450$ and IKA to YUL as inbound ~350) is 800$ If I notify the airline that I can not join the first leg, and I was not in YUL at all, could I use the inbound flight only? I do not want to refund the first even.

I've a friend that booked a round-trip journey. He booked A-to-B and B-to-A. Somehow he needed to be earlier at location B, so he took a train and did not take the flight from A to B.  When he went to the airport to take the "back home" flight (B-to-A), he was informed that his ticket was canceled because he did not take the A-to-B flight. They canceled the ticket and sold it to someone else.  Is this normal? The company said it was their right to do so, and he could not get the flight back. The company was Iberia.


back in the day (2006-07), before the Intel Mac days, I used an application called NuFile which let me create a "new file" like Windows on the fly. Ever since i've been searching for alternative but have been unsuccessful.   Do you guys know of any new apps that will allow this?

In Windows, one can create a new file using Right Click -> Add New -> Type of File. Is there an analogous action in Lion?  I just want to create a new blank file on my Desktop.


I know it has been asked other times but my problem is a little different: I want to completely delete my account from the stackexchange network (not just from a community) I tried deleting from stackexchange.com in the profile section but there is no option to delete it. What should I do?

How can I delete my Stack Exchange account(s)? Also,  What happens to my content? Can I request it be deleted as well? What if I'm suspended, rate-limited, or banned from posting questions or answers? What will happen to my votes? Will other users be impacted? Why wasn't my account deleted immediately after the timer expiring? What will happen to my pending bounties and close, reopen, delete, or undelete votes? I want my account deleted on all Stack Exchange sites. How do I do this? Will my profile on chat be removed once I delete my site account?   For more information, see "" in the .


I am trying to achieve a scenario where I need to  SSH to ABC server from XYZ server. Public keys will set up already to smooth password less login. Now i just want to exit from script if found that  SSH command prompts for password. It means  public key are not set up.  ssh -o ConnectTimeout=10 user@ABC <<HERE ----- doing some stuff here---- HERE   Ouput-  Password:   Script resides on XYZ. I am running it from XYZ and trying to SSH ABC. If it prompts for password then exit from script by printing a message.

I'm writing an unattended shell script that sets up a new server. Since I may run it multiple times, I want to check whether passwordless SSH access has already been set up. A command like  ssh newhost.example.com /bin/true  will exit successfully if the access exists, but if not, it will hang waiting for a password to be entered.  Is there a way to turn off the possibility of password access for such a command so that it will quickly fail if passwordless access is not yet set up?


In Elements of Statistical Learning, pg 47, at the very bottom, it states that $\hat{\beta}$ and $\hat{\sigma}^2$ are statistically independent. Is this saying that they are independent when conditioned on $X$, or is it saying they're marginally independent? If it is saying they're marginally independent, which seems to be the case in the book, I'm confused because it would seem they're not marginally independent. We know that $$ \hat{\beta} = (X^TX)^{-1}X^Ty$$ $$\hat{\sigma}^2 = \frac{1}{N - p - 1} ||y - \hat{y} ||_2^2 = \frac{1}{N - p - 1} ||y - X\hat{\beta} ||_2^2 $$ By inspection, $\hat{\sigma}^2$ is a function of $\hat{\beta}$, so it's not obvious how the two are marginally independent.

In practice, using a standard T-test to check the significance of a linear regression coefficient is common practice. The mechanics of the calculation make sense to me.  Why is it that the T-distribution can be used to model the standard test statistic used in linear regression hypothesis testing? Standard test statistic I am referring to here:   $$ T_{0} = \frac{\widehat{\beta} - \beta_{0}}{SE(\widehat{\beta})} $$


What is difference between "made in" and "made at"? The example sentences are:   This thing was made in a factory.  This thing was made at a factory.    Are they both correct? Do they mean the same thing?

I usually use "at a company" but I have encountered some articles using "in a company", "in XYZ firm" or "in an organization".  Which one is right?


How can I comment like this in my equations. Any help would be much appreciated!

How do I put big brackets under different parts of an equation so that I can write, e.g., text specific to these parts? For example: f =  x^3 +  2     |___|  |__|        |     |    text 1  text 2


I was working on some 'determine the output' questions in C. I came across this question which looked simple on the face of it, but after running the code left me puzzled.   The output I expected was "True". However upon running, it was "False". And when I checked the value of f using printf(), it showed 0.1. Can someone please explain why f being assigned 0.1 doesn't return true for the IF statement?   There was no explanation for the answer from where I picked the question up, and I wasn't able to find an answer myself.   #include <stdio.h>  int main() {     float f = 0.1;     if (f == 0.1)         printf("True");     else         printf("False"); }

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


I'm using typewriter text to highlight program code within my writing, however, long method names without spaces don't seem to wrap to the next line (see Figure 1).  It is possible to make typewriter text automatically wrap when reaching the edge of a page?  Thanks  % Preview source code for paragraph 1  This is a long method name which does not wrap: \texttt{void ThisIsAnExmpleOfALongMethodNameWhichDoesNotWrap()} Normal text wraps as expected, though.

This question was phrased as a bug report for LaTeX and I thought it would be helpful to be presented here (including an answer).  The person had a lot of "common words" in typewriter font sprinkled around his text and he was surprised that this text would not automatically hyphenate and he had to manually insert \- to mark hypenation points.


Question:   If d is a positive integer, d $\neq 2$ and d divides n, show that the number of elements of order d in $D_{n}$ is $\phi \left ( d \right )$.   How many elements of order 2 does $D_{n}$ have?      Theorem:   If d is a positive divisor of n, the number of elements of order d in a cyclic group of order n is $\left \langle d \right \rangle$.   $D_{n}$ has order 2n.  d is a positive integer and d divides n so there exists a subgroup, say $\left \langle a \right \rangle$, of order d.   Hints are appreciated. Thanks in advance.

If $D_{n}$ is the Dihedral group of degree $n$ (order $2n$) where n is an odd number, can I then conclude that the numbers of elements of order 2 in $D_{n}$ is equal $n?$  I suppose there are the following types of elements in $D_{n}$: b, $a^{i}$, $a^{i}b$ for some $0\leq i < n$ .


Trying to transpose the table like in my MWE. The result is quit nice, but contains first extra row, I'd like to exclude it. Read pgf manual, used skip rows between index={}{}, but without effect.  How to delete this first extra-row (colnames etc...)?  \documentclass{article} \usepackage{booktabs} \usepackage{pgfplotstable} \begin{document}  \pgfplotstableread{ N    Ans 1   -36 2    33 3   -52 4   -22 5    33 6    38 7    48 8  -100 }\mytable  \pgfplotstabletranspose[string type]\mytablenew{\mytable}  \pgfplotstabletypeset[string type]{\mytablenew} \end{document}

I would like to typeset a table with a multicolumn heading only. Here is my current attempt  \documentclass{article} \usepackage{pgfplotstable} \usepackage{booktabs} \usepackage{array} \usepackage{colortbl}  \begin{document} \pgfplotstabletypeset[col sep=&, header=false, every head row/.style={ before row={% \toprule Facteurs & \multicolumn{5}{c}{Niveaux}\\ }}, every last row/.style={ after row=\bottomrule}, display columns/0/.style={string type} ] {% \pgfutilensuremath{\chi} & 8 & 11 & 14 & & 5 & 8 & 11 & 14 & 45 & 2.456 q & 8 & 11 & 14 & & 3 x & 8 & 11 & 14 & 5612345 & 4 b & 8 & 11 & 14 & & 5 } \end{document}   which gives the following result:    How can I remove the headings row circled in red in the picture?


Not sure why i get this, here is the exception:  Exception in thread "main" java.lang.NullPointerException at org.dementhium.model.definition.ItemDefinition.loadMiscData(ItemDefinition.java:126) at org.dementhium.model.definition.ItemDefinition.init(ItemDefinition.java:104) at org.dementhium.model.World.load(World.java:127) at org.dementhium.RS2ServerBootstrap.main(RS2ServerBootstrap.java:43)   here is my loadmiscdata method:      private static void loadMiscData() throws IOException {     BufferedReader reader = new BufferedReader(new FileReader("data/item/poisoningitems.txt"));     String string;     while ((string = reader.readLine()) != null) {         String[] data = string.split(":");         int id = Integer.parseInt(data[0]);         int amount = Integer.parseInt(data[1]);         definitions[id].setPoisonAmount(amount);     }     reader = new BufferedReader(new FileReader("data/item/equipIds.txt"));     while ((string = reader.readLine()) != null) {         String[] data = string.split(":");         int id = Integer.parseInt(data[0]);         int equipId = Integer.parseInt(data[1]);         definitions[id].setEquipId(equipId);     } }   line 126:              definitions[id].setEquipId(equipId);   here is part of my equipids file(wont post all because its huge):  20282:5106 20284:5107 20288:5108 20290:5109 20294:5110 20296:5111 20300:5112 20302:5113 20306:5114 20308:5115 20312:5116 20314:5117 20318:5118 20320:5119 20324:5120 20326:5121 20330:5122 20332:5123 20336:5124 20338:5125 20342:5126 20344:5127   I have no idea why i am getting this exception...  Thanks in advance :)  Sorry i forgot to post definitions here it is:  private static ItemDefinition[] definitions; definitions = new ItemDefinition[MAX_SIZE];   MAX_SIZE = 20792 btw  for the entire class look here:   Thanks again

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 learned in physics that $\langle x^2 \rangle - \langle x \rangle ^2 = \sigma_x^2 \ge 0$ and thus $\langle x^2 \rangle \ge \langle x \rangle ^2$. In the case of continuous distribution, it becomes  $$\int_a^b \! [f(x)]^2 \, \mathrm{d}x \ge \left(\int_a^b \! f(x) \, \mathrm{d}x \right)^2.$$  Does the inequality always hold? Is there a proof of the inequality?

What can be said about a complex valued, continuous function $f$, defined on $[0,1]$, such that: $$ \int_0^1{|f|^2}=\left|\int_0^1{f}\right|^2  $$ I encountered this form as part of an exercise. Obviously, the above holds for any constant $f$, and it seems intuitive that the converse also holds (i.e. that if the above equality is true, then $f$ is constant), but I could not prove it.  Any help will be appreciated.


Firstly, bear with me, I'm relatively new to cryptography. In a recent static analysis scan of our application, one of the findings complained that we are using ECB:     A mode of operation of a block cipher is an algorithm that describes how to repeatedly apply a cipher's single-block operation to securely transform amounts of data larger than a block. Some of the modes of operation include ECB (Electronic Codebook), CBC (Cipher Block Chaining) and CFB (Cipher Feedback).  ECB mode is inherently weak, because it results in the same ciphertext for identical blocks of plaintext. CBC mode does not have this weakness, making it the superior choice.   We are using ECB with RSA.  Our understanding is that RSA doesn't support anything other than ECB as it doesn't permit a block size bigger than the size of the key's modulus, and therefore would only ever encrypt a single block (or throw an exception if breaching block size).   Our suspicion therefore is that the static code analysis tool is searching for 'ECB' in our code base irregardless of the crypto algorithm used.  Given our choice of an RSA crypto algorithm, is there an inherent weaknesses using ECB mode?

Let's say I would like to communicate with my friend using asymmetric/public-key encryption, e.g. RSA.  (Note: I do realize that in practice this is done through an intermediate symmetric key, but this question assumes we only use asymmetric encryption.)  Say I try to do this: I slice up my data into 2n-byte blocks (padding with zeros [edit: padding appropriately] if necessary), append the block index to the block (to prevent the same plaintext from turning into the same ciphertext), then use my friend's public key to encrypt each block separately.  Is this a secure scheme, or does the fact that I'm re-using the key make it susceptible to some kind of attack? If so, is it used in practice in any existing algorithms? If not, is there any way to make it safe, aside from using a symmetric key?


With a bib.bib file:  @article{mycite,   title = {title},   author = {author name},   pages = {45-50},   year = {2020},   url = {https://example.com} }   and an index.rmd file like this:  --- title: title author: author bibliography: bib.bib output:   pdf_document:     latex_engine: xelatex ---  lorem \autocite[48]{mycite}   I get an error when compiling (using Rscript -e "rmarkdown::render('index.rmd')"):  ! Undefined control sequence. l.70 lorem \autocite                     [48]{mycite}  Error: LaTeX failed to compile index.tex. See https://yihui.org/tinytex/r/#debugging for debugging tips. See index.log for more info. Execution halted   (Lorem @mycite, on the other hand, works.)  How to make citing with LaTeX aware of the bib.bib file?  Same question when using a  file to change citation style:  --- csl: chicago-fullnote-bibliography-with-ibid.csl ---   Are csl files and LaTeX compatible?  EDIT: A possible solution:  --- title: title author: author bibliography: bib.bib output:   pdf_document:     latex_engine: xelatex     pandoc_args: ["--biblatex"] header-includes:   - \usepackage[]{biblatex} # \userpackage[]{biblatex-chicago} instead of csl file ---  lorem \autocite[48]{mycite}   Compiles with these warnings:  Warning message: LaTeX Warning: There were undefined references. Package biblatex Warning: Please rerun LaTeX. (biblatex)                Page breaks have changed.       Note: this question is different from  as the errors in that question stem from loading the same package twice. But a possible answer has been found from the question itself. Furthermore, the question uses  which requires familiarity with it.

I am trying to compile a PDF Output with an R Markdown file and build my bibliography with the biblatex package and using R Studio.  Here are my code/files  in index.Rmd  --- title: |    Hello World!  author: |   Juan Pérez  bibliography: refs.bib ---   # Intro  Lorem ipsumLorem ipsumLorem ipsumLorem ipsumLorem ipsumLorem ipsumLorem ipsumLorem ipsumLorem ipsumLorem ipsumLorem ipsumLorem ipsumLorem ipsumLorem ipsumLorem ipsumLorem ipsumLorem ipsumLorem ipsumLorem ipsumLorem ipsumLorem ipsumLorem ipsumLorem ipsumLorem ipsumLorem ipsumLorem ipsumLorem ipsumLorem ipsumLorem ipsumLorem ipsumLorem ipsumLorem ipsumLorem ipsumLorem ipsumLorem ipsumLorem ipsumLorem ipsumLorem ipsumLorem ipsumLorem ipsumLorem ipsumLorem ipsumLorem ipsumLorem ipsumLorem ipsumLorem ipsum.  [@Somoza1968]   In a separate file I have _output.yml file:  bookdown::pdf_document2:   latex_engine: lualatex   includes:      in_header: preamble.tex   keep_tex: yes   citation_package: biblatex   In a separate file I have Refs.bib:  @Book{Somoza1968,   title         = {Argentina, la mortalidad según tablas de vida de 1914, 1946-1948 y 1959-1961},   publisher     = {CELADE},   year          = {1968},   author        = {Somoza, Jorge L.},   address       = {Santiago},   timestamp     = {2018-07-03},   type          = {Book}, }   And preamble.tex  \usepackage[]{biblatex}   Without any other options, it works, but every time that I want to add an option to biblatex (for example style=alphabetic) I get this error message:   tlmgr search --file --global '/biblatex-dm.cfg' ! LaTeX Error: Option clash for package biblatex.  Error: Failed to compile index.tex. See index.log for more info. In addition: Warning message: In parse_packages(logfile, quiet = c(TRUE, FALSE, FALSE)) :   Failed to find a package that contains biblatex-dm.cfg Execution halted   Any ideas what could be the problem? Do I need a specific configuration for R Studio? Any suggestion of which one could be the best practice to build a customized bibliography using R Markdown, is welcome.


I've recently noticed that I keep writing "an 1973 coin", and similarly for all the other dates that start with 1 (e.g. "an 1639 coin"). This does not only apply to coins, obviously, it's just the most common context (in my writing, at least) where an indefinite article comes immediately before a digit numeral. It also does not apply to dates starting with 2 (so "a 2015 coin"). (What's the correct word here for "digit numeral", incidentally?)  It sounds correct in my mind, but I suspect that I might be mentally sounding out digit numerals in my native language (or a form of it) rather than English, and apply the articles based on that. Can that actually happen, what should I do to prevent it, and what is the correct English form (so that, if needed, I could apply it manually)?

I am getting confused while using an article an. Because an is used while referring to vowels (a,e,i,o,u).  But today I read an article where for user they used a user.  My question is, why was an not used?  Could someone explain this with an example?


I'm currently working on a project and I want to teleport an armor stand to a coordinate which is defined by a scoreboard objective(like if the objective value is 3, the armor stand teleports 3 blocks plus on the X-axis). If the objective name is Part1Length and the player name is w, how do I get that value into a /tp (or /teleport) command? Maybe, I can modify the armor stand's data with the /data command to increase the Pos[0] NBT value, but can I get the scoreboard values from a player's NBT data? I work on MC Java Edition 1.15.2

I have just created a Minecraft 1.13.1 server and was wondering if there was any way to give everyone the teleport command even if they are not op. If not, is there a way that I could make them op but only have access to the teleport command?


I'm just trying to install ghc on my computer. I typed  sudo apt-get install ghc   into the terminal. I then was asked did I want to install, I said yes. Then I was asked did I want to install unverified files. I said yes. Then I got a bunch of error 404's and finally an error:  E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?   I tried installing it via the Software Center and I got a pop up saying:     This requires installing packages from unauthenticated sources.   I clicked OK and it just stopped installing.  Can anyone help me just simply install ghc?  After running sudo apt-get update I get this:    When I type sudo apt-get install ghc I get this:

Recently I have installed an older version of Ubuntu on my old machine. Whenever I try to install any software, I get an error saying it couldn't be found:  $ sudo apt-get install vlc Reading package lists... Done                Building dependency tree        Reading state information... Done     E: Couldn't find package vlc


I recently switched to my master branch so I could get the latest updates. While in the 'master' branch I did some work and made changes that I would like to apply to a different feature branch. However, I don't want to commit these changes to the master branch yet. Is there a way with Git that I could apply these changes to a different feature branch without first committing them to the master branch. I also don't want to lose the changes.

How can I do the following in Git?  My current branch is branch1 and I have made some local changes. However, I now realize that I actually meant to be applying these changes to branch2. Is there a way to apply/merge these changes so that they become local changes on branch2 without committing them on branch1?


If $Y_1,...,Y_n$ are a finite collection of compact subsets of $X$, then their union $Y_1\cup....\cup Y_n$ are also compact.  Proof:   Assume that $Y_1,...Y_n$ are a finite collection of compact subsets of $X$  WTS that $Y_1\cup....\cup Y_n$  are compact  In order for $Y_1 \cup...\cup Y_n$ to be compact, their union must be closed and bounded  Lets first prove that the union of $Y_1\cup...\cup  Y_n$ is closed  I will do this using a previous proposition which I learned  Prop: If $Y_1,...Y_n$ are are finite collection of of closed sets in X, then $Y_1\cup...\cup Y_n$ is also closed   (I have the proof of this proposition)   By our assumption $Y_1,...,Y_n$ are a finite collection of compact subsets of $X$. And since they are compact, then they must be closed  Now I have to prove that the union of $Y_1\cup...\cup Y_n$ is bounded   By our assumption $Y_1,...,Y_n$ are a finite collection of compact subsets of $X$. And since they are compact, then they must be bounded  Since $Y_1,...,Y_n$ are bounded subsets of X then by definition  $\exists B(x,r)$ in X which contains $Y_1,...,Y_n$  If $\exists B(x,r)$ in X which contains $Y_1,...,Y_n$ then this means that this ball $B(x,r)$ will also contain $Y_1\cup...\cup Y_n$ (Intuitively, this seems true to me, but I am not sure if it is and how to show this)  Can I please get some help in proving this?

The question is: let $F_1, ... F_n$ be compact subsets of X. Show that $\cup^{N}_{n=1} F_n$ is compact.   know that a set $ F  \subset X$ is compact if every open cover $\mathcal {G}$ of F contains a finite subcover $\mathcal {H}$. Intuitively, I think that since $F_1, .. F_n$ are compact, they contain finite subcovers and so $\cup^{N}_{n=1} F_n$ at most has finite subcovers. I'm just stuck at trying to formally prove this out.   Help would be much appreciated!


The following code generates NullPointerException in Android.   searchResults.setText(searchResultString);   Where:   searchResults is a TextView searchResultString is a String   Can somebody list out the possible reasons why this may be happening?

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?


The constraints given in a question is as follows:     Constraints: 1<=T<=10^3, 1<=N<=10^7 0 <= Ai <= 10^18   Here T is the number of test cases, N is the number of elements in an array and Ai is the ith element in the array.  I want to declare something like:  int ar[100000000]   to satisfy the constraints but, it is not possible. Please help me.

What is the best way to handle large numeric inputs in C++ (for example 10^100)?   For algorithms I usually switch over to ruby and I sometimes use strings.  Any other good methods?


I need to replace a user's laptop to a new one. The guy had to install a shit ton of customers' apps on it and I'd rather not reconfiguring a full windows instance and reinstalling each app.  So I thought about swapping his current hard drive to the new laptop directly. My concern though is about the windows licence on the new computer.  If I'm not wrong, windows 10 licences are tied to the BIOS but how will the swap be handled by the laptop ? Will it keep running flawlessly with the built-in licence or will there be some kind of conflict ? The windows 10 version on each computer are the same (pro).  EDIT : Absolutely nothing in common with the proposed possible duplicate...

This is a  about Licensing.    Questions on licensing are off-topic on Server Fault.  If your question has been closed as a duplicate of this question, then this is because we want to help you understand why licence questions are off topic rather than just telling you "it just is". In all likelihood, this question will not address your question directly, it was not meant to.    I have a question regarding software licensing. Can the Server Fault community please help with the following:   How many licenses do I need? Is this licensing configuration valid? What CALs do I need to be properly licensed? Can I run this product in a virtual environment? Can I downgrade this product to an earlier version? Am I entitled to feature X with license Y?


I want to completely mute specific sounds (not all). Using /stopsound is a quite imperfect way of doing so, because then there's fractions of the "muted" sound(s) sometimes still "slipping through" causing them to not be completely muted. Does anyone know if it is possible to completely mute them, and if so, how?  (Resourcepack may be used, as long as you can tell me how to remove/replace a sound already existing in the game)  Edit: I need an explanation on what to do, I have searched for how to do sound files in resourcepacks, but I need to know how to add sounds (as in, I don't know what name to use for a specific sound in the game). I want all crossbow sounds, music and player sounds all to be muted. But in all 1.14 resourcepacks that I have found up until now, none have sound files for crossbows, usually none at all actually.  In short, I need to know how to name the sound files.

In Minecraft, there are a lot of cool sounds. I decided to find there location and move them to my desktop. I have Ubuntu, and if when I remove them from that folder will Minecraft be unable to play them or is it smart enough to figure out that they are gone and download them again. Before minecraft was installed, it had to download the files. I even moved my favorite song (creative 6) from the sounds. The sounds are not labeled and have seemingly random names like b0b12118a97ddd733a50e9382e91a21652568641 and how will I know what to call them that will be recognized without digging through the index if Minecraft fails to download them? Or do I not have to worry because it will download them again upon launch?  Note: Why does it not label them and call them random names?


I am trying to import the results from an SQL query into a JTable, but when I run it, it tells me that the ResultSet object has no set row? What does this mean? how Can I fix this? here is what I've tried:   import javax.swing.*; import java.sql.*;   public class GUI {       // frame     JFrame f;     // Table     JTable j;      // Constructor     GUI()     {         ResultSet result;         // Frame initiallization         f = new JFrame();          // Frame Title         f.setTitle("SQL to JTable");         try{             String dbURL = "jdbc:sqlserver://DESKTOP-TSKUNOE\\MSSQLSERVER:1433;databaseName=LMD";             String user = "programer151";             String password = "abhinav@123";             Connection connection = DriverManager.getConnection(dbURL, user, password);             String code = "select * from dbo.LMD_Table where [DATE] = '2019-02-01'";             Statement statement = connection.createStatement();             result = statement.executeQuery(code);              // Data to be displayed in the JTable             double[] data =                     {result.getFloat(2), result.getFloat(3), result.getFloat(4), result.getFloat(5), result.getFloat(6), result.getFloat(7), result.getFloat(8), result.getFloat(9), result.getFloat(10), result.getFloat(11), result.getFloat(12), result.getFloat(13)};             ;             String[][] data1 = new String[13][0];              for (int i = 0; i<=13; i++) {                 data1[i][0] = String.valueOf(data[i]);             }             String[] columnNames = {  "data", "data","data", "data", "data","data", "data", "data","data", "data", "data","data" };             j = new JTable(data1,columnNames);             j.setBounds(30, 40, 200, 300);              // adding it to JScrollPane             JScrollPane sp = new JScrollPane(j);             f.add(sp);             // Frame Size             f.setSize(500, 200);             // Frame Visible = true             f.setVisible(true);          }catch (SQLException e){             e.printStackTrace();         }     }      // Driver method     public static void main(String[] args)     {         new GUI();     } }     the output I want is a JTable which gives me the results of an sql query


Planning a  trip overseas that goes from A to B; B to C; C home to A. How do I search flights for this if I don't know best cities for multiple stops on each leg of trip.

Several airline and trip planning sites will allow you to check "I am flexible with my dates" or a similar option.  Is there any way to also search more broadly for location?  For example, if you wanted to leave from YYZ or YKF and arrive at any airport in California, can a search for such flights be done somehow?  I ask because when I plan plane trips, I want the lowest price.  I'm OK with leaving a day or two later if I save $200 (same with the return trip).  There are 3 airports within 80 km of me, I'll leave from the one with the cheapest flight. And I'm also OK with changing the trip to spend time exploring San Francisco instead of lying on the beach near San Diego, and that sort of thing.  Normally this would take dozens of searches, but I'd like to see it all at once.


Let $f_n(x) = (1 + \cos x)^n$ ,$f_n:[0,1]\to\mathbb{R}$ and let $a_n =\displaystyle\int_0^{\frac{1}{2^n}} f_n(x)\,dx$. Calculate the sequence limit or prove that the limit does not exists.  I tried to compute the integral using riemann sum but I got stocked choosing random ci. Can some one help with this question please ?

During our studies on Riemann Integrals we were given the following question in my Calculus II course: $$ \forall n\in\mathbb{N}: \text{let } f_n(x)=(1+\cos(x))^n, f_n:[0,1]\to \mathbb{R}$$ $$\text{ Find}: \lim_{n\to\infty}\int_0^{\frac{1}{2^n}}f_n(x)\, dx $$ I have tried finding the limit using the squeeze theorem. I noticed that the function is defined on $[0,1]$, where $\cos(x)$ is positive and decreasing. I used the following boundaries: $$ 1\leq f_n\leq 2^n \implies \frac{1}{2^n} = \int_0^{\frac{1}{2^n}}1 \leq \int_0^{\frac{1}{2^n}}f_n(x) \leq \int_0^{\frac{1}{2^n}}2^n = 1  $$ but $ \displaystyle{\lim_{n\to\infty}}\frac{1}{2^n} = 0 $ which means I'm unable to apply the squeeze theroem. I've tried using tighter lower boundaries such as $1+\cos(1)$ But it didn't seem to work. I did some trial and error by calculaing the integrals manually for different values of $n$ and it does seem like $\displaystyle{\lim_{n\to\infty}}\int_0^{\frac{1}{2^n}}f_n(x) dx = 1 $ This means that somehow I should find a lower bundary which tends to 1 when $n\to\infty$. Any ideas on how to go forward from here are welcome.


I want to search in a List and my List is look like  List<Employee> oneEmp= new ArrayList<Employee>(); List<Employee> twoEmp= new ArrayList<Employee>();    oneEmp= [Employee [eid=1001, eName=Sam Smith, eAddress=Bangluru, eSalary=10000000], Employee [eid=0, eName=, eAddress=, eSalary=null], Employee [eid=1003, eName=Amt Lime, eAddress=G Bhagyoday, eSalary=200000], Employee [eid=1004, eName=Ash Wake, eAddress=BMC, eSalary=200000], Employee [eid=1005, eName=Will Smith, eAddress= Delhi, eSalary=200000], Employee [eid=1006, eName=Shya Ymwar, eAddress=Madras, eSalary=50000], Employee [eid=1007, eName=Nag Gam, eAddress=Pune, eSalary=10000000], Employee [eid=1008, eName=Arti, eAddress=Delhi, eSalary=10000000]]  twoEmp= [Employee [eid=0, eName=null, eAddress=null, eSalary=100000], Employee [eid=0, eName=null, eAddress=null, eSalary=50000], Employee [eid=0, eName=null, eAddress=null, eSalary=200000]]   I am using code like this:-  for(Employee two : twoEmp){         for (Iterator<Employee> iterator = oneEmp.iterator(); iterator.hasNext(); ) {         Employee e = iterator.next();         if (e.geteSalary() != null && two.geteSalary() != null && e.geteSalary().compareTo(two.geteSalary()) == 0) {             finalEmpList.add(e);         }         }     }   But this still required 2 for loop     I am using JAVA 1.6   My Employee class has attributes:  //Employee class int eid; BigInteger eSalary; String eName, eAddress;   Now I want to get all the objects in List who's Salary = 10000000  result should be :   [Employee [eid=1001, eName=Sam Smith, eAddress=Bangluru,    eSalary=10000000],     Employee [eid=1007, eName=Nag Gam,    eAddress=Pune, eSalary=10000000],  Employee [eid=1008, eName=Arti,    eAddress=Delhi, eSalary=10000000],.........................]  I would like to achieve this without using any loop or minimum loop required because data will be large

I want to filter a java.util.Collection based on a predicate.


Is there any way to gain access to the standard "Insufficient Privileges" page and edit/replace it with custom error?

Is there any way to gain access to the standard "Insufficient Privileges" page that everyone knows and loves(hates), in order to edit/replace it with something else?    I imagine something along the lines of creating a Visualforce page to render in its stead, but I'm not sure how to call it.


I read a book series 12 or so years ago, and I need help getting the title. It's set in the future. Mankind has branched out to the stars and many planets were colonized. Humans started to evolve differently on these planets. Now, I remember the main character as being a "spartan", and he grew up and was trained on an arid planet. His entire people were massacred and he was the only survivor. An advanced alien race took him in and augmented his bones to be unbreakable. I think that these aliens looked like owls, but I am not sure.

I remember that the main character is trying to find the group that destroyed his home planet while he was on a mission. His planet was very difficult to live on and the people became expert in martial arts and were the best soldiers in the galaxy. They were mercenaries and often helped against tyrants. There was a very memorable section in at least one book about an initiation task that the main character had to do in that he had to survive in their wilderness for days. He was at some point surrounded in a old building by thousands of poisonous worm/snake creatures that he managed to survive until rescued by the leaders.


I have an XML response from a SOAP web service. This response has a binary PDF inside a specific tag, something like  <binaryObject>JVBERi0xLjQNCiVET0MxIFJlc2...</binaryObject>   I'd like to extract the binary part and convert it back to a PDF file. So I get the tag content parsing the XML into an org.w3c.Document and using XPath:  String binary = XMLUtils.evalXPath(doc, "//binaryObject//text()");   Which works fine, then tried something like this:          byte[] buffer = new byte[8 * 1024];         // get the binary string as an array of bytes         InputStream input = new ByteArrayInputStream(binary.getBytes("Cp1252"));         int totalBytes = 0;         try {              OutputStream output = new FileOutputStream(PATHDOWNLOAD + File.separator + fileName);             try {                 int bytesRead;                 while ((bytesRead = input.read(buffer)) != -1) {                     output.write(buffer, 0, bytesRead);                     totalBytes += bytesRead;                 }             } finally {                 output.close();             }         } finally {             input.close();             logger.info("Done. " + totalBytes  + " bytes written.");         }   It writes down the file but well, it's unreadable as a PDF. Tried different kinds of encoding, still getting a simple text file and no more. Probably something lost in translation from file to text to file again, but I can't imagine a way to make it work. I'm forced to get the response in String format 'cause I need to get the right tag, but then I can't decode the binary part. Any ideas?  ADDENDUM. If I try to log to console the binary content (when it's still String) it clears the screen and prints out the last part from different points depending on the execution. Don't know if it can help.

I have an image that is Base64 encoded. What is the best way to decode that in Java? Hopefully using only the libraries included with Sun Java 6.


Given two events $A, B$ of which the first is the outcome of flipping a coin and the second is the outcome of a weather forcasting, one will intuitively say that the two events are independent, since the outcome of $A$ in no way would effect the outcome of $B.$ So one could write $P(A|B)=P(A).$ But then I have a problem which is: from the independence must follow $P(A\cap B)=P(A)P(B).$ I guess $A\cap B=\emptyset $ since I dont see what the two events can have in common and so $0=P(A)P(B),$ where $P(A), P(B)$ must not be zero.  What is wrong in these thoughts ? Are two events which have empty intersection independent if the probability of each is non zero ?

In the book "Introduction to Probability" by J. Charles M. Grinstead and Laurie Snell independent events are introduced in the following way: "It often happens that the knowledge that a certain event $E$ has occurred has no effect on the probability that some other event $F$ has occurred, that is, that $P (F |E) =P (F )$". This is then taken as the definition (notice that the setting in which this is done is that of discrete probabilities - if this makes any difference).   But I can't come to terms with this definition, because of the following two reasons:  a) If I have a die then the event of getting a face with one of the numbers $1,2$, if rolling once, seems intuitively to be independent of getting a face with one of the numbers $5,6$. But since these two events are disjoint, but neither is the empty space, by the above definition, they should be dependent, which seems very counter-intuitive.  b) If we chose to somehow "interpret visually" this definition, then that would mean that the sum of the probabilities of all elements in $F$ weighted with the weight $1$ is equal to the sum of all probabilities in $F\cap E$ weighted with $\frac{1}{P(E)}$, because $$\sum_{\omega\in F} \omega=P (F )=P (F |E) =\frac{P(F\cap E)}{P(E)}=\sum_{\omega\in F\cap E} \omega \cdot \frac{1}{P(E)}.$$  Or - if I use the equivalent definition of independence, $P(E\cap F)=P(E) P(F)$ - then the same interpretation of this definition would say that the sum of all elements in $F$ multiplied the sum of all elements in $E$, both  weighted with the weight $1$,   is again equal to the sum of all probabilities in $F\cap E$ weighted with $\frac{1}{P(E)}$.  But both these interpretations seem artificial - out of this I can't deduce, why this definition is calling $E,F$ "independent". Could you please solve this "paradox" for me ?  If I were to give a definition of independent events, I would say that $E,F$ are independent (which, for me, would mean "they don't have anything to do with each other"), if $E\cap F =\emptyset$. Why would this be a bad definition ?


Let's say I use RSA encryption, it's 2048 bits and I use a simple character padding scheme, every character is turned into a 3 digit number and strung together, then encrypted. Saying that no message will be below 40 characters, ending up in a 120 digit number, how insecure is this?   Edit: The public exponent is as small as it could be, let's say 7 in this case

What is the definition of textbook or "raw" RSA?  What are some of the properties of textbook RSA?  How does it differ from other schemes based on RSA?


Since yesterday afternoon I'm getting some GPG key expired errors from the official repositories (I checked my sources.list and the only sources are the official ones).  The URL I'm getting the error from:   And the KEYEXPIRED errors:  KEYEXPIRED 1473479811   KEYEXPIRED 1473479811   KEYEXPIRED 1473479811   KEYEXPIRED 1473479811   KEYEXPIRED 1473479811   KEYEXPIRED 1473479811   KEYEXPIRED 1473479811   I don't know how to officially report this error. Could you help me to report it?

I added some extra repositories with the Software Sources program. But when I reload the package database, I get an error like the following:     W: GPG error:  trusty InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 8BAF9A6F   I know I can fix it using apt-key in a terminal, according to the official Ubuntu documentation. But I would have liked to do it graphically. Is there a way to do this without using a terminal?


When I type:   whereis boost   it shows:  /usr/include/boost   Now I want to list all the files in this directory, so I type:  whereis boost | ls   But it only shows the files in the current working directory. Is there anyway to list all the files more quickly following the idea above (the way can be different but the idea is I want to quickly have a glimpse at a directory which I find with whereis, locate or something like that).

I've a command that outputs data to stdout (command1 -p=aaa -v=bbb -i=4). The output line can have the following value:  rate (10%) - name: value - 10Kbps   I want to grep that output in order to store that 'rate' (I guess pipe will be useful here). And finally, I would like that rate to be a value of a parameter on a second command (let's say command2 -t=${rate})  It looks to be tricky on my side; I would like to know better how to use pipes, grep, sed and so on.  I've tried lots of combinations like that one but I'm getting confused of these:  $ command1 -p=aaa -v=bbb -i=4 | grep "rate" 2>&1 command2 -t="rate was "${rate}


which preposition is correct to use? On graduation day or at graduation day?  Thanks.

I have found the following usage of "on", "at" and "in" on the internet. Is there any other exception and/or rule for that?  Prepositions of Time Use in for  Months: in April / in September / in that month Seasons: in (the) summer / in (the) winter Years: in 1332 / in 1984 / in that year / in the next year Long Period(s) of Time: in former century / in 90's / in the Ice Age / in the past / in the future  Exceptions: in the morning / in the evening Use at for  Time: at 8 o'clock / at 9:30 / at bedtime / at sunset / at dinnertime / at 5:33:10 AM  Exceptions: at Christmas (= during the Christmas holidays but not necessarily on December 25th) / at Easter  / at noon / at night / at the weekend / at the present time / at the moment Use on for  Days: on Monday / on Friday / on Christmas Day (= on December 25th) / on Easter Sunday / on Independence Day Dates: on February 18th / on her birthday / on 21 March 2015 / on  Notice:  We have in the morning and on Monday but we say on Monday morning, not in Monday morning, and so on. When we say last, next, every, this we do not also use at, in, on: She runs next Tuesday. (not on next Tuesday) / He leaves us every Easter. (not at every Easter) / I See you this evening. (not in this evening) Look at these examples for the combination of times in a sentence: We will meet next week at six o’clock on Monday. / I heard a funny noise at about eleven o’clock last night. / It happened last week at seven o’clock on Monday night.   Look at  as well which says:  This all hints at a coherent metaphor: hours and other short periods of time are places; days are surfaces; months and longer time periods are containers.


In , I used the construct:  n=$1 shift   Reading , I understand that the shell will parse that line into two parts - the variable assignment n=$1 and the builtin command shift.  But  state that n=$1 shift does fail in some shells.  I spawned a quick check:  $ for shell in /bin/*[^c]sh; do   printf '=%-17s=\n' "$shell"   "$shell" -c 'a=$1 shift; echo "$a"' "$shell" 1 done =/bin/ash         = 1 =/bin/bash        =  =/bin/dash        = 1 =/bin/heirloom-sh = 1 =/bin/ksh         = 1 =/bin/lksh        = 1 =/bin/mksh        = 1 =/bin/pdksh       = 1 =/bin/posh        = 1 =/bin/schily-osh  = 1 =/bin/schily-sh   = 1 =/bin/yash        = 1 =/bin/zsh         =   All shells, except bash and zsh, worked. But bash in posix mode and zsh in sh emulation do work, too:  $ ARGV0=sh bash -c 'a=$1 shift; echo "$a"' sh 1 1 $ ARGV0=sh zsh -c 'a=$1 shift; echo "$a"' sh 1  1   Using var=value; shift worked in all shells.  So, are those constructs the same in POSIX-compliant shells?

In bash, say you have var=a.b.c., then:  $ IFS=. printf "%s\n" $var a.b.c   However, such a usage of IFS does take effect while creating an array:  $ IFS=. arr=($var) $ printf "%s\n" "${arr[@]}" a b c   This is very convenient, sure, but where is this documented? A quick reading of the sections on  or  in the Bash documentation does not give any indication either way. A search for IFS through  doesn't provide any hints about this effect either.  I'm not sure when I can reliably do:  IFS=x do something   And expect that IFS will affect field splitting.


My son has been in a big boy bed since 14 months. He started jumping out of his crib at will and it scared us a little, so we got the big boy bed and were amazed! He loved it. He never got out at bedtime he was so proud of getting to sleep in his bed.   Two weeks ago, when he learned how to open his bedroom door the game has changed. He will come open his door (with baby locks on them) and run out laughing. I can put him back 100 times he will keep doing it. I have held his door closed physically for 40 min and he never gave up, even when I know he is so extremely tired. Before this, he was never difficult to get to sleep for the night.    This is making me very frustrated, and it's starting to hurt my feelings.  Why is he doing this, and what can I do to solve this problem?  I'm not sure if it's because he knows he can get out of the room or what changed. When he does go to sleep FINALLY he sleeps all night and doesn't wake up.

Lately my 4.5-year-old son has started getting back up after bed time.  Frequently we will go through the entire bedtime ritual, including a bath, pajamas, brushing teeth, books, and then being tucked in.  But after that he will climb down from his loft bed, and come out of his room over and over again.  Sometimes this happens 10 or more times in a single night, and he might not finally go to sleep until well after 11pm.  I'm worried because he doesn't get enough sleep and in the morning he's tired when it's time to get up for preschool.  It's also a big disruption to the limited private time for my wife and I.  What can I try to help bedtime run more smoothly?


I am using overleaf to write a LaTeX document. I want to include some R code blocks with minted, but minted displays my arrows in the code "<-" like this: "¡-". How can I fix this? I encoded both the code and my LaTeX document in utf8. It also omits underscore symbols "_" and brackets "{}. It does not work if I include the code directly \begin{minted}[linenos,breaklines,bgcolor=myLightGray]{r} check_create_dir <- function(path) {     print("using existing folder") } \end{minted}  And if I load a file: \inputminted[linenos,breaklines,bgcolor=myLightGray]{R}{code/test.R}

When typing < or > in LaTeX and compiling with pdflatex, the less than and greater than symbols appear at upside down exclamation points. I'm not in math mode.


On my MacOS Mojave: I'm trying to change the icon of an SMB Windows File server from the old CRT-BSOD icon to something newer like e.g. the NAS icons.  I'm fine with just using the NAS icon (the com.apple.xserve.icns) but I'm not allowed to replace the public.generic-pc.icns file in /System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/  I get an "Operation not permitted" error, even if I sudo cp ....

Apple has introduced , also known as "rootless", with OS X 10.11, El Capitan. I understand this is a step for general protection against malware but as a developer I need write access to some of the files it locks away.  How do I disable this protection?


Prove that $9$ divides $n^3 + (n+1)^3 + (n+2)^3$ where $n$ is a nonnegative integer.  I have seen many questions on this site that contain the answer to this problem and I already know the solution, but I have yet to find offer a clear explanation that I am able to understand.  Can somebody please go through this problem and explain step by step as if talking to an elementary school student how it is solved?   I can get this far:  First, show that this is true for n=0: $0^3+(0+1)^3+(0+2)^3=9$   Second, assume that this is true for n: $n^3+(n+1)^3+(n+2)^3=9k$   Third, prove that this is true for n+1: $(n+1)^3+(n+2)^3+(n+3)^3= 9k−n^3+(n+3)^3=$   This is the part that I get lost. Where do we get 9k-n3+(n+3)3? Why wouldn't it just be 9k?  Many thanks in advance for your generous help!

I'm trying to prove using induction that $9$ divides $n^3 + (n+1)^3 + (n+2)^3$ whenever $n$ is a non-negative integer. So far, I have:   Base case: $P(1) = (1) + (8) + (27) = 36, 36$ can be divided by $9$ so the base case is valid Inductive step: let $P(n)$ be the statement $9$ divides $n^3 + (n+1)^3 + (n+2)^3$. Assume $P(k)$ is true, so $9$ divides $k^3 + (k+1)^3 + (k+2)^3$.   And this is where I'm stuck. I'm not sure how to demonstrate that $9$ divides $P(n)$ when $n = k+1$. If someone could step me in the right direction that would be awesome. Thanks!


I have a Mac Mini, which died due to motherboard and power supply failure. I'd like to know if it is safe to take out the RAM module and check it in another computer too see if it is working. If the RAM module is bad, do I risk breaking the computer I want to test it in?

I recently wanted to add some RAM to my old computer, but unfortunately I mixed together "good" RAM with chips that I extracted from a computer that failed after getting too much voltage. I know it sounds like a bad idea to just plug it into a motherboard, so I figured I'd ask first - is there usually any protection in the motherboards against this kind of faulty chips? Also, how likely is that RAM got damaged when computer got his deadly current or failed for internal reasons (something shorted because of dust, failed components etc.)?


To the best of my understanding 'an' is used when a word starts with a vowel (an occasion), or sounds like it does (an honour). Ukulele sounds like it start with a u, so why isn't it prefixed with an 'an' ?

On a Physics specification, it says:     6.7 Know how to use two permanent magnets to produce a uniform magnetic field pattern.   Isn't it "produce an uniform magnetic field", or is the existing "produce a uniform magnetic field pattern" correct?


I have read similar questions on this forum and as per best of my knowledge it should be considered plural because it's referring to every student of class.   I read this sentence in my grammar book: "My group of tenth-graders is so well behaved?"  But my instincts says the word "is" should not be used. I'm confused now. Please confirm whether I'm right or wrong.

Possible Duplicate:          When I'm referring to a group of multiple things, should it be considered singular or plural for the purposes of applying a verb to it?  For example, which is correct in the examples below?     A sentence is a group of words that is followed by a period.   A sentence is a group of words that are followed by a period.      The group of people constitutes a jury.   The group of people constitute a jury.      A group of crows is called a 'murder'.   A group of crows are called a 'murder'.   My instinct is that it depends on whether the verb is referncing the group itself or the members of the group directly, but is that right?


I uploaded my files on a live hosting server today and upon loading the url, this error was displayed. Fatal error: Uncaught Error: Class 'mysqli' not found in /home3/maalu/public_html/php_action/db_connect.php:9 Stack trace: #0 /home3/maalu/public_html/index.php(2): include_once() #1 {main} thrown in /home3/maalu/public_html/php_action/db_connect.php on line 9 Below is my database connection. <?php     $localhost = "localhost"; $username = "maalu"; $password = "********"; $dbname = "stock";  // db connection $connect = new mysqli($localhost, $username, $password, $dbname);  // check connection if (mysqli_connect_errno($connect))  { // creation of the connection object has some other error     die("Connect failed: ".mysqli_connect_errno()." : ". mysqli_connect_error()); }  ?>  Please kindly help.

I am doing a tutorial and am getting this error:     Fatal error: Class 'MySQLi' not found (LONG URL) on line 8   The code on line 8 is:  $mysqli = new MySQLi($db_server, $db_user, $db_pass, $db_name);   I saw online someone said to see if it was turned on in my phpinfo(), but there wasn't anything listed in there under for "mysqli".  Also, I am running PHP version 5.2.5


I know that in Python 3, print is now a function.  However, I have two variables that I wish to include in a print function.   foo = 5   fee = 3  The following gives an error:  print('Foos present:' + foo, 'Fees present:' + fee)  TypeError: Can't convert 'float' object to str implicitly

I need to find out how to format numbers as strings. My code is here:  return str(hours)+":"+str(minutes)+":"+str(seconds)+" "+ampm   Hours and minutes are integers, and seconds is a float.  the str() function will convert all of these numbers to the tenths (0.1) place.  So instead of my string outputting "5:30:59.07 pm", it would display something like "5.0:30.0:59.1 pm".  Bottom line, what library / function do I need to do this for me?


Other studies, including in the United States, have shown this same   pattern, with girls who begin developing earlier than their peers   vulnerable to depression in adolescence.   Without context, are there two meaning? :   Girls are vulnerable to depression in adolescence. Peers are vulnerable to depression in adolescence.   Put another way: if sentence is      There are girls who begin developing earlier than their peers vulnerable to depression in adolescence.    then is there ambiguity which group is vulnerable to depression in adolescence?


Say, for instance, I'm estimating a model with about 5 million observations using linear regression or MLE. Given that the estimates are consistent, using the standard rule of rejecting the null on a 5% significance level will pretty much never make me entitled to reject the null (of the parameter being equal to zero), i.e. everything is significant.  I should probably use another significance level, which is smaller than 5%, and my question is if there is any literature on picking the right significance level, or how would you guys handle this problem? Should I simply stick with the 5% significance level?  Thanks.

In a  of Amstat News, the authors (Mark van der Laan and Sherri Rose) stated that "We know that for large enough sample sizes, every study—including ones in which the null hypothesis of no effect is true — will declare a statistically significant effect.".  Well, I for one didn't know that. Is this true? Does it mean that hypothesis testing is worthless for large data sets?


I have this document, with problems building my bibliography  \documentclass[12pt, letterpaper]{article} \usepackage[english, spanish]{babel} %\usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{lmodern}  \usepackage{csquotes} \usepackage{xpatch} \usepackage{filecontents} \usepackage{hyperref}  \usepackage[backend=biber, citestyle=apa, bibstyle=authoryear-comp, sorting=ynt, url=false, isbn=false, doi=false, language=spanish, firstinits=true, hyperref=true, backref=true, maxcitenames=3, maxbibnames=10, mergedate=basic, firstinits=true, dashed=true]{biblatex}  %\inputencoding{latin1} \addbibresource{Biblio.bib} %\inputencoding{utf8}  \begin{document}     \parencite{CoaleDemenyVaughan1983}     \parencite{MacInnesPerezDiaz2008} \parencite{Levy1993}  \printbibliography \end{document}   And the bib file is this:  @PhdThesis{PerezDiaz2001,   Title                    = {Transformaciones sociodemogr{\'a}ficas en los recorridos hacia la madurez. Las generaciones espa{\~n}olas 1906-1945},   Author                   = {P{\'e}rez D{\'\i}az, Julio},   Type                     = {Thesis},   Year                     = {2001},   University               = {Universidad Nacional de Educaci{\'o}n a Distancia} }  @Book{CoaleDemenyVaughan1983,   Title                    = {Regional Model Life Tables and Stable Populations},   Author                   = {Coale, Ansley J. and Demeny, Paul and Vaughan, Barbara},   DOI                      = {http://dx.doi.org/10.1016/B978-0-12-177080-8.50005-6},   Edition                  = {Second},   ISBN                     = {978-0-12-177080-8},   Publisher                = {Academic Press},   URL                      = {http://www.sciencedirect.com/science/article/pii/B9780121770808500056},   Year                     = {1983},   Address                  = {New York},   Bdsk-url-1               = {http://www.sciencedirect.com/science/article/pii/B9780121770808500056},   Bdsk-url-2               = {http://dx.doi.org/10.1016/B978-0-12-177080-8.50005-6},   Type                     = {Book} }   So if I build without the inputenc package its fine, but with it, the first reference doesn work when I try to build the bibliography...Im writing in spanish and I export my references from endnote to jabref...Witch its the best process to avoid this problem????

Under biber 2.1 my biblatex produces input encoding errors. The same procedures worked smoothly under biblatex 2.9a/biber 1.9, now that I upgraded to biblatex 3.0/biber 2.1 I get the following message when pdflatex runs after biber:     Package inputenc Error: Unicode char \u8:╠ü not set up for use with LaTeX.   Here is a minimum working example:  \documentclass{article} \usepackage{lmodern} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[backend=biber]{biblatex}  \bibliography{test.bib} \usepackage{filecontents}  \begin{filecontents}{test.bib} @article{rodr, author = {Rodr{\'{\i}}guez, A}, year = {1999} } \end{filecontents}  \begin{document} Rodr\'{\i}guez \textcite{rodr} \printbibliography \end{document}    Any help appreciated!


I have people picker field "Manager" and want it to auto populate in new form with constant value "kumar, brishal" How I can do it using jquery.  I am using below code, when I double click in textbox it show "kumar, brishal" but user will not like this UI. please help  <script  type="text/javascript" src="//code.jquery.com/jquery-1.11.1.min.js"></script> <link  type="text/css" rel="stylesheet" href="//code.jquery.com/ui/1.11.0/themes/ui-  lightness/jquery-ui.css" />  <script  type="text/javascript"   src="https://cdnjs.cloudflare.com/ajax/libs/jquery.SPServices/2014.02/jquery.SPServices-  2014.02.js"></script> <script  type="text/javascript"   src="https://cdnjs.cloudflare.com/ajax/libs/jquery.SPServices/2014.02/jquery.SPServices-  2014.02.min.js"></script> <script   src="https://cdnjs.cloudflare.com/ajax/libs/jquery.SPServices/2014.02/jquery.SPServices-  2014.02.min.js" type="text/javascript"></script> <script type="text/javascript" src="//code.jquery.com/ui/1.11.3/jquery-ui.js"></script>  <script type="text/javascript">  $(document).ready(function() {    var defaultuser = "kumar, brishal"; $('input[title="Project manager"]').val(defaultuser);     });  </script>

I want to set current logged in user to people picker by javascript.  I can retrieve the value of user(lets say in var user).But how to set it to people control. Any help is much appreciated.


Optimum speed without getting a line of muddy water splashing onto your back?   no mud guards 26 inch wheels surface water on the road   calculations to be based on my shirt and shorts remaining dry standard dimensions of an adult bike frame.  I am riding a bike and the water is being thrown upwards off the back tyre onto my back.   The question refers to the initial speed water drops should have when they leave the tyre to be able to reach my back when I am cycling during a rainy day  It does not refer to water splash when riding through a water on the road

I would like to know the following:   What is the angle at which water gets splashed when I ride my vehicle through a water on the road? How does angle of water varies with speed? What is the relation between the distance the water goes with the speed of the vehicle?   Thanks!


Is SO using a vendor available API to show edit history of posts? I have a mongodb setup which implements versioning of documents and I would like to emulate something similar to this:

How does SO's (or other SE sites) versioning work of questions and answers? Do they use some standard piece of code or is it something homebrew?  With versioning I meant if for example a question is edited you'll see all the changes (a diff).