So, they have the Starkiller. Big bang, faster than lightspeed superweapon that blows up planets. Ok. Fine.   But how do they see it?      The good guys are standing on the surface of a planet and look up and see the big red glow and boom.   So were they in the same solar as the target? Was there some other effect letting them see it at FTL speeds? Has no-one making the film heard of the speed of light?

On Takodana,      the main characters and various bar patrons can see the planet Hosnian Prime being destroyed by Starkiller Base with their (respective) naked eyes. How did they see this? Is the Hosnian system close enough to see? If it's not very close and they could just see the explosion, how did the light from it reach them so quickly?


I like to export my whole map which is composed of both raster and vector data to geotiff (or other raster format) in ArcMap 10.1. If I select file->export, only the current view is exported. I want to export the whole map in for instance the 1:100 000 scale.   Does anyone know how to do this?

It my be old issue, but I can't find right solution.  How to produce GeoTIFF from layout view not from data view?  Any simple solution?


I have been looking through the Pokemon Go questions and keep noticing questions about the coins you get for having a Pokemon in a gym. I recently had a Pokemon in a gym for 3+ days and I only got 50 coins.   Have they capped the coins at 50?  Am I missing something?  Have they changed how it works now?

The new gym update , including a limit of 50 coins earned per day. How does this limit work? Is each pokemon limited to accruing 50 coins per day? Are all my pokemon limited to a collective 50 per day? My teammates keep feeding my Dragonite and she has been at the gym for almost a week; will she return with 50 coins for each day she was there? Fewer than 50 for the days I had other pokemon in the gym? Or will she accumulate vast sums of coins over the week, but only deliver me 50 (or fewer) when she comes back based on what I have collected from returning pokemon that day?


She likes ________(to have/having) the birds is as an expensive hobby.   What should we use here ? Infinitive or Gerund? Why?

There is a very small difference in meaning between the two forms. The -ing form emphasises the action or experience. The to-infinitive gives more emphasis to the results of the action or event. We often use the -ing form to suggest enjoyment (or lack of it), and the to-infinitive form to express habits or preferences.    I couldn't understand what they mean by "emphasises the action" and "emphasis to the results". as example, which of the following sentence is correct?        I don't like surprises. I like knowing things in advance.   I don't like surprises. I like to know things in advance.


I'm working on cs50 project1 (js & python), I download the project,  and found this line in it:  engine = create_engine(os.getenv("DATABASE_URL"))   the question is how to set up the DATABASE_URL?

In tcsh, I have the following script working:  #!/bin/tcsh setenv X_ROOT /some/specified/path  setenv XDB    ${X_ROOT}/db setenv PATH   ${X_ROOT}/bin:${PATH}  xrun -d xdb1 -i $1 > $2   What is the equivalent to the tcsh setenv function in Bash?   Is there a direct analog? The environment variables are for locating the executable.


with an SQL Selection Expression against a geometry property like length fails when the source feature class is in an . An otherwise identical model works just fine when the feature class source is in a regular workspace (file-gdb).  ERROR 000358: Invalid expression Shape_Length = 0 Failed to execute (Layer of Zero Length Lines).   I'm using ArcGIS Desktop 10.3.1 but don't believe the issue to be version specific.  Fail:    Success:

My script takes separate 3D feature classes, calculates a field, appends to a target feature class, and then deletes the originals. This is a huge data processing task of over 4700 mass point feature classes appending to a single one. I know it was a big mistake to put so many feature classes into SDE, but given they're in there now, I've got to deal with them there (yes, the sheer fc count is bringing SDE performance to its knees--hence my urgency).  Early on it worked great, in that the merged result showed valid z-values. I was able to build a terrain and it looked great. I'd been running this in the background for weeks, and have just noticed z-values of 0 in the output, where the originals were not 0! Oh no!!! I'm certainly glad I still have the file-based originals!  Pseudocode:     An in_memory feature class is created from a z-aware template      For each fc in the feature dataset:            It is appended to the empty in_memory fc          The TILE_ID field is calculated using a portion of the name of the source fc           It is then appended to the target SDE fc          The in_memory feature class is emptied          Each processed fc is then deleted     When I initially posted, I was curious if it was my use of in_memory that caused this trouble. I had not initially been using it, and only switched to it because performance was far too slow otherwise, and WAY faster in_memory. To find where trouble started, I ran the Add XY Coordinates tool, which proved the trouble started with in_memory use. At that time I had also switched from CalculateField_management to da.UpdateCursor, so that's likely the bigger reason for the performance enhancement. I will now change my code to avoid in_memory.


I'm trying to find out whether sequence $a_n= \frac{n!}{n^n}$ converges or not. My textbook says to compare with $\frac{1}{n}$, and my answer sheet says that $\lim_{x\to \infty} {\frac{n!}{n^n}}\leq \lim_{x\to \infty}\frac{1}{n}$. I don't get this part... Is $\frac{n!}{n^n} \leq \frac{1}{n}$? How did this relationship come about?

I am trying to calculate the following limit without Stirling's relation.  \begin{equation} \lim_{n \to \infty} \dfrac{n!}{n^n} \end{equation} I tried every trick I know but nothing works. Thank you very much.


I have a sentence which means "to use a laser to transfer an image from the computer and have it be imprinted on any material; wood, plastic, glass, metal, anything else" What is the correct way I should say this?   To imprint an image onto the material? To imprint an image into the material?   Or maybe there is some other way? Maybe with words: transfer, apply, put, embed.  I should ask as well, Is there a big difference between the two when we speak about merging two object?   Squeeze the ink into the water?   or    Squeeze the ink onto the water?

I see both used, at times, almost interchangeably. What are the general guidelines?


I tried executing the following code  public class Phonebook {     String name;     long phno; }  public class Store {     public static void main(String args[]) {                 Phonebook p[] = new Phonebook[10];          p[0].name = "vasvi";         p[0].phno = 123456;         p[1].name = "abcd";         p[2].phno = 903747;          System.out.println(p[0].name + " " + p[1].name);     } }   This code when executed gives the NullPointerException. I don't seem to understand why.  I have learnt that classes are user defined data types. So I'm really confused why such an exception would arise?

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?


#!/bin/bash STR1="David20" STR2="fbhfthtrh"  if [ "$STR1"="$STR2" ]; then          echo "Both the strings are equal" else         echo "Strings are not equal" fi

I'm attempting to loop through an array of strings, and do something a little different with one of the values.  The string comparison fails on every element.  arr[0]='red' arr[1]='blue' arr[2]='yellow' arr[3]='green'  ## now loop through the above array for i in "${arr[@]}" do         if [ "$i"="green" ];         then                 echo "i('$i') is equal to green"         else                 echo "i('$i') is not equal to green"         fi  done   I've also tried (with the same result):   if [ "$i"='green' ];   and   if [ $i='green' ];   and   if [ $i="green" ];   Output of each of the above:   i('red') is equal to green i('blue') is equal to green i('yellow') is equal to green i('green') is equal to green   What am I doing wrong with the comparison?


Markdown in comments does not parse backtick code spans with a leading space, e.g. ` foobar`. Markdown in posts does. Example:  Note: I don't know whether this is related to CommonMark, because .

In my comment here:    I needed to have a : symbol with a leading space, but I couldn't figure out how to get it.  And for some reason it converts differently in this question to how it would in a comment - as you can see, in the comment box ` :` wasn't turned into code block at all.  Is it impossible, by design, to have leading or trailing space in a codeblock?


On SO meta a while back I complained about the way downvoting worked because many people were downvoting legitimate, high-quality questions, for other reasons. Usually they didn't either like the idea being proposed, or they didn't like the subject of the post even being discussed because it deviated from the status quo.  The response to this was that I shouldn't take it personally, and that the votes in no way reflected the quality of the post, but were just indicative that the readers disagreed in one way or another with the question or suggestions in the question. They seemed to think this was perfectly normal and ok and conducive to further discussion.  Well, now after proposing an idea, which I thought merited discussion, that was disliked to the tune of -22, I am getting a warning "you are in danger of being blocked from asking anymore".  I thought the purpose of meta was to discuss things and consider new ideas. If everyone who proposes new ideas, gets dozens of downvotes from the status quo crowd, then I would think that would have the effect of discouraging new ideas, or simply banning people who propose new ideas, as appears to be happening to me. The effect of this may be that by a Darwinian process meta participation will be limited to people who like the status quo, and outsiders with new ideas will be greated with hostily and rejection.  Anyway, as this post falls into the category of "things disturbing the status quo" it will probably be given another twenty downvotes, so I will be banned. Thanks for letting me participate while it lasted, and goodbye.

appears to have been question banned because of two unpopular Meta suggestions. (He says so in )  Look at the two contributions that appear to have gotten him banned. Like those of many others, they may not be of perfect quality, but they are not actively harmful to the site, either. As it stands, you can get question blocked on Meta simply for asking questions that aren't popular with the Meta crowd.  Why does the team insist on keeping the question ban active on Meta?  Why can't real problem users be dealt with through manual moderator action? Don't tell me it's a problem of scale; as far as I can see, actually toxic users are very rare on Meta.  People will frequently complain that Meta actively discourages the expression of unpopular viewpoints and suggestions. With the threat of question bans in place, I find those complaints difficult to refute. I hate that.


i have a SHP file of a building converted from a DXF file. This SHP file is unprojected and have no specific coordinates (origin 0,0). I find WGS84 coordinates (lat, long) of this building from Google Maps. My aim is to replace these coordinates to the SHP file on QGIS.  Could you explain the process step by step?  (I read lots of similar questions, about affine transformation. But i don't know the paramaters.)    What i ask is how to make this transformation in QGIS (step by step)?   SHP file coordinates (not projected)  Scale: 1:142.670.713  X1,Y1: 16.70824, 253.74534  X2,Y2: 1.03521,-6.34918  X3,Y3: 244.00248,-7.49189  Target WGS84 coordinates   X1,Y1: 41.047773, 28.896241  X2,Y2: 41.045452, 28.895929   X3,Y3: 41.045436, 28.899039    I need a second vector layer with coordinates. I have just a SHP file of a building converted from a DXF file. That is not projected. I know where this building is, and can find the WGS84 coordinates from Google Maps. My aim is add WGS84 coordinates to this SHP file and export to replace the building on Google Maps.  My Questions are:  1) I think my SHP file has measurements in meters and unprojected. I have WGS84 lat long coordinates from Google Maps. How can i project this SHP file, for being ready to transformation? Right Click -> Set Layer CRS -> Choose WGS84 EPSG: 4326. Is this enough?  2) qgsAffine plugin just need transformation matrix paramaters. But the answer of @Jochen Schwarze is a bit complex for me. Is there a online calculator? (Just give the source XYs and target XYs and calculate the parameters.)    I think, I have a projection problem before affine transformation. I have a DXF file of a building from AutoCAD. I saved this DXF file as a SHP file in QGIS. But this SHP file is converted from a plain DXF file and is not referenced/projected, it is drawn from coordinates 0,0 in AutoCAD in meters. And the drawing has meters, WGS84 has decimal degrees.  When I set Layer CRS as WGS84 in QGIS, the coordinates don't change.  How can I project this SHP file as WGS84 in QGIS?


In the print composer I can print all maps to scale and satisfactory. However, when I add the OpenLayers, usually Bing Aerial, to the project I cannot print it out to scale. I click the scale box, set it to the relevant scale.   The image below is a section of the actual size with OS mapping:    The next image is with the OpenLayers.    Both images cropped to remove client info. It is almost double the size but in-between scales. Is there any way to correct this?  Using Windows 7, QGIS 1.8.0.

I'm having trouble with the OpenLayers Plugin of Qgis and the map composer:  If I create an OSM-background layer and if I want to export this, the OSM-Layer looks perfectly all right in the normal qgis program window. But in the map composer and after export the layer has shifted relatively to my other shape layers (EPSG:32633 - WGS 84 / UTM zone 33N).  The second thing is that the output resolution of the exported osm-layer is very, very poor.   A really bad way of getting around this whole trouble would be to increase the screen resolution and make a screenshot of the map composition window of qgis. But I don't think this would be very professional. It also would cause a lot of pain :)   I'm using Qgis 1.8.0-Lisboa under Linux. The openlayers plugin is version 0.92.


So, in my code I have a dictionary I use to count up items I have no prior knowledge of:  if a_thing not in my_dict:     my_dict[a_thing] = 0 else:     my_dict[a_thing] += 1   Obviously, I can't increment an entry of a value that doesn't exist yet. For some reason I have a feeling (in my still-Python-inexperienced brain) there might exist a more Pythonic way to do this with, say, some construct which allows to assign a result of an expression to a thing and if not possible something else in a single statement.  So, does anything like that exist in Python?

Given a dictionary, how can I find out if a given key in that dictionary has already been set to a non-None value?  I.e., I want to do this:  my_dict = {}  if (my_dict[key] != None):   my_dict[key] = 1 else:   my_dict[key] += 1   I.e., I want to increment the value if there's already one there, or set it to 1 otherwise.


I found this logs in my auth.log  Apr 21 03:36:10 mikigal sshd[18181]: Accepted password for mikigal from MY_HOME_IP_ADRESS port 51814 ssh2 Apr 21 03:36:10 mikigal sshd[18181]: pam_unix(sshd:session): session opened for user mikigal by (uid=0) Apr 21 03:36:10 mikigal systemd-logind[682]: New session 11 of user mikigal. Apr 21 03:36:11 mikigal sshd[18189]: Received disconnect from MY_HOME_IP_ADRESS port 51814:11: Normal Shutdown, Thank you for playing Apr 21 03:36:11 mikigal sshd[18189]: Disconnected from MY_HOME_IP_ADRESS port 51814 Apr 21 03:36:11 mikigal sshd[18181]: pam_unix(sshd:session): session closed for user mikigal Apr 21 03:36:11 mikigal systemd-logind[682]: Removed session 11.   These logs exist on random hour, always from my IP address. At hours of this logs my PC was turned off. I reinstalled sytem on my VPS yesterday, because i thought I have some malware on my server, but logs still exists.  last command output:  mikigal  pts/1        MY_HOME_IP_ADRESS  Sat Apr 21 12:37   still logged in mikigal  pts/1        MY_HOME_IP_ADRESS  Sat Apr 21 11:35 - 12:15  (00:39) mikigal  pts/1        MY_HOME_IP_ADRESS  Sat Apr 21 04:20 - 04:22  (00:01) mikigal  pts/1        MY_HOME_IP_ADRESS  Sat Apr 21 04:04 - 04:05  (00:00) mikigal  pts/1        MY_HOME_IP_ADRESS  Sat Apr 21 04:04 - 04:04  (00:00) mikigal  pts/0        MY_HOME_IP_ADRESS  Sat Apr 21 03:15 - 04:16  (01:01) root     pts/0        MY_HOME_IP_ADRESS  Sat Apr 21 03:07 - 03:14  (00:06) reboot   system boot  4.9.0-6-amd64    Sat Apr 21 03:07   still running root     pts/0        MY_HOME_IP_ADRESS  Sat Apr 21 03:04 - down   (00:02) reboot   system boot  4.9.0-3-amd64    Sat Apr 21 03:04 - 03:07  (00:03)  wtmp begins Sat Apr 21 03:04:01 2018   Login at 03:36:11 from auth.log does not exists in last output. There is no info about this login in fail2ban.log. I have Debian 9. System and packets are updated to the newest version.  Is this normal? I have install fail2ban, disabled root login, custom SSH/SFTP port.

Recently, My SSH log summaries for my Ubuntu 12.04 servers in Logwatch have started showing entries for "11: Normal Shutdown, Thank you for playing [preauth]" along with the "11: Bye Bye [preauth]" and "11: disconnected by user" messages they had been showing previously.  I have not seen this message in my logs before the past few weeks, nor have I seen it on my older servers which are stuck on Ubuntu 10.04. I have googled this message and can't find any clear explanations there either.  The IPs attempting to login and receiving this message are random hack attempts, and judging from the preauth I assume (hope) they are not successful, but I would like to know exactly what this message means and how it differs from others to be sure.  EDIT for additional information: My servers have password authentication and root authentication both disabled


Is there any way of getting to the first 15 reputation (at which point you can actually do something) on Stack Overflow other than by asking questions?  My problem is this: if I see a good answer that works, I can't vote for it (not enough reputation).  I have been programming for many years and often see a question I could contribute, but I can't (not enough reputation).  I so far have never needed to ask a question (I know how to use a search facility, and so can find an already existing answer).    Therefore asking questions can't possibly be the only mechanism to get enough reputation to get started, can it?  Because if it is then as more and more questions get asked on Stack Overflow, the need to ask new ones will diminish, so if this is the only mechanism of gaining those first few reputation, soon all new joiners will never be able to contribute, or will need to re-ask already answered questions (not good for anyone).  Advice on how to get those first few reputation gratefully received.

As a new user, I find it impossible to contribute to the community or to even begin contributing. I know why the reputation system is in place and I respect it, but at the same time it is too hard on new users.  It started with me wanting to upvote a question...     "Vote Up requires 15 reputation"   Just to appreciate a good question that helped me I need 15 rep? OK..., so I find out how I can get reputation points. More or less, I need to ask a question for +5 and add an answer for +10. I don't have any questions at the moment and I don't want to spam a random question, but I did happen to have a slightly different answer to the earlier question that I wanted to upvote. So I try to answer...     This question is protected to prevent "thanks!", "me too!", or spam answers by new users. To answer it, you must have earned at least 10 reputation on this site.   Now... I know this doesn't apply to every question, but at the same time, this means I'm forced to answer yet another question, and I don't want to go around looking for random questions and spam irrelevant answers...  Now I'm stuck. So I try to talk to some other users in the chat rooms about how to go about getting reputation points and how they first started. I entered into a "casual chat room".     You must have 20 reputation on Meta Stack Overflow to talk here.   Yes... I can understand why this is enforced, because we don't want new users to spam chat rooms, but all I wanted to do was ask for help. So I can't even talk to anyone about my newbie problems. So okay, I'll just settle for upvoting comments in the question that helped me. I don't see an upvote hover-over button so I can't even do that.    So now I'm stuck at 1 reputation point, unable to cross that 15 rep barrier, and even after posting this question I'll only have 6 rep points and still unable to do anything, and I'll be forced to look for questions to answer. Yes, I should be contributing to the community, but I shouldn't need to begin answering or making questions to upvote questions and answers. This only spurs more spam/irrelevant answers if anything.   Very, very, very new-user unfriendly.


The > and < preamble options of the array package (and possibly other table packages) allow automatically inserting text and commands before and after each cell of a column, respectively.  Can they be used to insert things like \hyperlink{foo}{ before and } after each cell, or something like that? Attempts so far:   >{  \hyperlink{foo}{  }  c  <{  }  } causes an error because the braces are unbalanced. Escaping the braces by \{ just inserts braces into the PDF. >{  \begin{hyperlink}{foo}  }  c  <{  \end{hyperlink}  } interestingly causes sharelatex to complain about the closed brace between begin and end, but does not cause a latex error.   The problem though is that this results in \begin{hyperlink}{foo}text in cell\end{hyperlink}, adding a hyperlink only to the first letter "t", whereas I need the result to be \begin{hyperlink}{foo}{text in cell}\end{hyperlink}, and for some reason not even surrounding every cell entry by braces manually helps.   Is there a way to achieve this?

This question is a follow up to my :  Is it possible to use > and < to pipe opening and closing braces on each side of a cell's content? To be more specific, what I want is to define the following column:  \newcolumntype{P}{>{\leavevmode\kern-\tabcolsep\bfseries\parbox[t]{\hsize}{}X<{}}}   I want a column type that automatically embraces the cell content in a \parbox.  I enclose a short MNWE:  \documentclass[table]{article} \usepackage{lmodern, microtype, xcolor, tabularx, tabulary}  \begin{document}  \begin{tabularx}{0.5\columnwidth}{>{\raggedright\arraybackslash\leavevmode\kern-\tabcolsep\parbox[t]{\hsize}{ }X<{}}XX<{\leavevmode\kern-\tabcolsep\raggedleft\arraybackslash}}  \rowcolor{lightgray}All this testing is not so funny&test&test\\\hline testing, testing and even more testing &test&test\\ \rowcolor{lightgray}I want to write a noce table in a simple way&test&test\\ \end{tabularx}  \end{document}


I want to find user, size, modified date and full file path of all files in sub-directories starting from a dir. I have got to following so far: nohup sudo \ tree /work/mydir \ -sufiD \ --noreport \ --timefmt="%Y-%m-%d" | \ sed -e 's/ \+/ /g' -e 's/\[//g' -e 's/\]//g' -e 's/\.\///g' -e 's/ /|/g' | \ tail -n+2 \ > usage_mydir.txt &  This gives me the desired output except that it lists all files; i want to filter out files say less than 10MB which will reduce my output file considerably (from over 500 MB to less than 5MB). I am open to any other commands such as find . -type f -size +10M. But I need the owner, size and last modified time of the file.

I want to find files which are greater than 1 GB and older than 6 months in entire server. How to write a command for this?


I have a component that uses the overlayLibrary to pop up a custom modal with a component inside of it.  I extend this component via other components so that I can reuse the overlay library feature and have my function calls all in one place.  I want to be able to set the width of the modal within the context of the component I am dynamically creating inside of it, however, I can't seem to make that happen.  If I set the width within the component I'm creating, the "container" modal window does not expand to show the entire component.  I create the component and modal like this:  showComponentInModal :  function(component, c, params, header, showCloseButton, cssClass, closeCallback){     // component = reference to the view     // c = component to be created within the modal.     // params = the component parameters to pass     var modalBody;     $A.createComponent(c, params,                        function(content, status) {                            if (status === "SUCCESS") {                                modalBody = content;                    component.getSuper().find('overlayLib').showCustomModal({                                    header: header,                                    body: modalBody,                                    showCloseButton: showCloseButton,                                    cssClass: cssClass,                                    closeCallback: closeCallback                                })                            }                        }); }   Is there a way in my cssClass definition that I can tell the modal window to be set at a specified screen width?

My objective is to control the width of the modal provided by lighting:overlayLibrary component. I am trying to do it by overriding the css applied to the slds-modal__container. I was hopeful this would be as easy as adding the override to the style page of the component that contains the modal and applying it at modal creation using the cssClass class param.  I have tried a few variations based on the following with no luck  the component  <component>   <lightning:overlayLibrary aura:id="theModal" />    </component>   the controller  ({   openModal:function(component){         var modalBody;         $A.createComponent("c:pseudoContent", {},                            function(content, status) {                                if (status === "SUCCESS") {                                    modalBody = content;                                    component.find('theModal').showCustomModal({                                        header: "Application Confirmation",                                        body: modalBody,                                         showCloseButton: true,                                        cssClass: "mymodal",                                        closeCallback: function() {                                            alert('You closed the alert!');                                        }                                    })                                 }                             });   }   })  and the sytle  .THIS .mymodal div.slds-modal__container{   width:90%;   max:width:90% }   This produces a page containing

     ...   </div
   but when I inspect the page the styles in the mymodal class are not being applied to the element, I guess it is a scope issue??   Is there a way to get control of the width of the modal?  Your help is appreciated!


The title may seem a bit off topic. I will explain my doubts with an example. Let there be a situation where we are measuring gravity using the formula   Now, if the least count or error in the measurement of $l$ and $T$ is given, I can easily find the net error or relative error by taking a natural log on both the sides of the equation and differentiation.  But how to include the number of trials? For example, I learned somewhere that if the least count of a stop watch is 1 second, and the number of trials, say to measure the oscillation period of a pendulum is 20, then should the error in measuring the time period be cut down to 1/20 seconds?

We have to measure a period of an oscillation. We are to take the time it takes for 50 oscillations multiple times.  I know that I will have a $\Delta t = 0.1 \, \mathrm s$ because of my reaction time. If I now measure, say 40, 41 and 39 seconds in three runs, I will also have standard deviation of 1.  What is the total error then? Do I add them up, like so?  $$\sqrt{1^2 + 0.1^2}$$  Or is it just the 1 and I discard the (systematic?) error of my reaction time?  I wonder if I measure a huge number of times, the standard deviation should become tiny compared to my reaction time. Is the lower bound 0 or is it my reaction time with 0.1?


Is the polynomial $x^n+2x^{n-1}+\dots+nx+n+1$ irreducible in $\mathbb Z[x]$?

Consider the following family of polynomials $$P_n(X)=\sum_{i=0}^n(n+1-i)X^i,\,n\ge 1$$ Let’s write down the first few $$ \begin{align} &P_1(X)=X+2\\ &P_2(X)=X^2+2X+3\\ &P_3(X)=X^3+2X^2+3X+4\\ &P_4(X)=X^4+2X^3+3X^2+4X+5 \end{align} $$ My claim is that this family is a family of irreducible polynomials in $\Bbb{Z}[X]$. I proved it for $n \le 5$ by the Eisenstein criterion after the change of variable $X=t+1$ For $n=6$ after the change of variable the polynomial writes as follows $$Q_6(t)=P_6(X-1)=t^6+8t^5+28t^4+56t^3+70t^2+56t+28$$ and the Eisenstein criterion (only workable $p=2$) doesn’t work anymore. By reducing $\bmod 7$ we prove the claim for $n=6$. I tested with Mathematica and irreducibility is checked for $n\le 150$. I noticed $$P_n(X)=XP_{n-1}(X)+n+1$$ But I am struggling to find a generic proof. I have given up on counterexample. Thanks for your help.


I have tried to search around google, Bing, and Minecraft forums. I wand to ADD a NEW mob to the game. ------------ requirements for the answer -------  it has to be compatible for 1.16.4 it has to be how to add a new mob not change an existing no spam it cannot be a mod to add this to Minecraft I want it to be in my resource pack If I have to create a new pack, that is fine

In Minecraft Java, I am creating many resource packs by myself (no studio or external resource) so, I want to ADD a new file/entity/element/items/etc. to the game to not replace an old item because EVERY item/effect/entity has SOME use in the game. In conclusion: how I can ADD [not replace] a file in the game and give it custom physical and mental properties?


is there a way to limit amount of email per X amount of time to certain domains? for example I have large list of emails and I have thousands of emails for yahoo.com, but if I start sending them all at once yahoo will temporarily defer me thinking that I'm doing something that I'm not suppose to do, yet if I send out only 100 emails an hour they are ok with this volume, so how can I restrict sendmail to send only 100 emails an hour to yahoo.com?

I know, I know, I should switch to Postfix.  But in the meantime, how do I throttle outbound email (especially email to a single domain) in Sendmail?


A couple of days ago I asked a . The question was marked as duplicate. The linked question did not answer my question, so according to the info box, I  (and received a helpful comment before the 2nd question was closed as duplicate of the 1st question). A user commented that I should have edited the 1st question instead of opening the 2nd one. Doing some research, I also found  about reopening question. How can I suggest to change the text on the info box so it clearly states that one should edit the question instead of creating a new one? Btw here is the current text of the info box  Your post has been associated with a similar question. If this question doesn’t resolve your question, ask a new one.

The new closed-as-duplicate banner says:     This question has been asked before and already has an answer. If those answers do not fully address your question, please .   I think it should instead say     This question has been asked before and already has an answer. If answers there do not fully address your question, please  or  to the pre-existing one.   — to discourage re-re-asking the same question. (I also changed "those answers", which has no plural , to "answers there", which doesn't need one.)    As of September 19, 2013, the original text quoted above has returned here.


I have template in my .h file:  template <typename T> void addToolsAreaItem(){     T* item = new T(_image, this);     doSpecifiedStaff<T>(item);     _tools.addTool(item); }   and its specialization in .cpp file:  template <> void ImageWorkspace::addToolsAreaItem<Preview>(){     _preview = std::make_unique<QGraphicsView>(_splitter);     _imagesLayout.addWidget(_preview.get()); }   Class Prewiew is empty and is used only for specialize behavior of one case (when preview button is toggled).   But I get compiler error:  imageworkspace.h:45: error: new initializer expression list treated as compound expression [-fpermissive]      T* item = new T(_image, this);                ^~~~~~~~~~~~~~~~~~~  imageworkspace.h:45: error: no matching function for call to ‘Preview::Preview(ImageWorkspace*)’      T* item = new T(_image, this);                ^~~~~~~~~~~~~~~~~~~   Does compiler see specialization? How to fix it?   Function is called as addToolsAreaItem<Preview>() from sorces.

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


I have this piece of code using Process Substitution.  When I run it, it works fine, but it does not exit - just hangs there waiting for input.   Why and how to overcome?  prepro() {          in=$(< <(cat) )         # capture input         echo -e "$in" }  echo -e "some words" > >(prepro) echo "FINISHED"   Instead if I do this, it exits immediately.  echo -e "$in" >>"test.log"   What am I missing here?  CLARIFICATION: BASH 4.4.19(1)-release  On my pc, I see a difference between running echo -e "$in" and running echo -e "$in" >>"test.log".   The former does not give me a prompt (but I can run commands normally). I get:  user@server:~$ ./test.sh FINISHED user@server:~$ some words █   I have to press ENTER to get my prompt back.  The latter gives me the prompt normally.   user@server:~$ ./test.sh FINISHED user@server:~$ █   I am curious if I am doing something wrong here.

The   echo one; echo two > >(cat); echo three;    command gives unexpected output.  I read this:  and many other articles about process substitution on the internet, but don't understand why it behaves this way.  Expected output:  one two three   Real output:  prompt$ echo one; echo two > >(cat); echo three; one three prompt$ two   Also, this two commands should be equivalent from my point of view, but they don't:  ##### first command - the pipe is used. prompt$ seq 1 5 | cat 1 2 3 4 5 ##### second command - the process substitution and redirection are used. prompt$ seq 1 5 > >(cat) prompt$ 1 2 3 4 5   Why I think, they should be the same? Because, both connects the seq output to the cat input through the anonymous pipe - .  Question: Why it behaves this way? Where is my error? The comprehensive answer is desired (with explanation of how the bash does it under the hood).


I have a CSV file that I'm uploading via an HTML form to a Python API  The API looks like this:  @app.route('/add_candidates_to_db', methods=['GET','POST']) def add_candidates():     file = request.files['csv_file']     x = io.StringIO(file.read().decode('UTF8'), newline=None)     csv_input = csv.reader(x)     for row in csv_input:         print(row)   I found the part of the file that causes the issue. In my file it has Í character.   I get this error: UnicodeDecodeError: 'utf8' codec can't decode byte 0xea in position 1317: invalid continuation byte  I thought I was decoding it with .decode('UTF8') or is the error happening before that with file.read()?   How do I fix this?  ** **  Edit: I have control of the file. I am creating the CSV file myself by pulling data (sometimes this data has strange characters).   One the server side, I'm reading each row in the file and inserting into a database.

I received some text that is encoded, but I don't know what charset was used. Is there a way to determine the encoding of a text file using Python?  deals with C#.


Without using SpamAssasin, or similar, what are your best tips for preventing spam.  Please try and provide config examples :D

This is a  about Fighting Spam.   Also related:                    There are so many techniques and so much to know about fighting SPAM. What widely used techniques and technologies are available to Administrator, Domain Owners, and End Users to help keep the junk out of our inboxes?  We're looking for an answer that covers different tech from various angles. The accepted answer should include a variety of technologies (eg SPF/SenderID, DomainKeys/DKIM, Graylisting, DNS RBLs, Reputation Services, Filtering Software [SpamAssassin, etc]); best practices (eg mail on Port 25 should never be allowed to relay, Port 587 should be used; etc), terminology (eg, Open Relay, Backscatter, MSA/MTA/MUA, Spam/Ham), and possibly other techniques.


Background: If you connect a 2nd monitor/projector by cable to a computer, you often can easy make the screen expand, so each monitor have there own area of the screen, and you can move windows between them. If the screen is far away, a network connection could be easier.  Question: If I want to connect a 2nd monitor/project by network/vnc, can I share an area outside the 1st monitors area? so I can move windows between them. How do I set up the screen size, and what area to share, in a VNC server?  Computers: VNC-server: running kubuntu, open for sugestion for what VNC server software to use. VNC-client: a rasbery-pi, runing Raspbian, and running xtightvncviewer in listening-mode

From a currently running X11 session, I would like to provide/run a  server such that it appears to my system as a second, “virtual” monitor – i.e. so that I can position it using xrandr and drag/position windows onto it.  How, if at all, could I achieve that?  Edit: More info from OP in comments: "Also asked , without an answer. "


In this assignment I have to store a integer string input, "1234", into a integer array and the program must output the array reversely, the sum and the average. It must continue to prompt the user to enter a string unless they enter "end".  Everything works its just the program prints out -14,4,3,2,1,-14, and I dont know how to fix that issue also I dont know what value to enter into the while loop to end the program. Any help would be appreciated   import java.util.*;  public class Assign1 { public static void main(String[] args) {     int sum=0;     String input;      Scanner scan = new Scanner(System.in);  do{     System.out.println("Enter in a string of integers: ");     input = scan.nextLine();      //makes the size of the array according to the length of the user input     int[] intArr =  new int[input.length()];      //loop to store integers in array     for(int i=0; i<input.length(); i++)     {         intArr[i]= input.charAt(i)-'0';      }      //loop to calculate sum of elements in array     for(int i : intArr)     {         sum=sum+i;     }     System.out.println("Sum of array elements is: " + sum);       //calcluates the average of elements in array     double average = sum/input.length();     System.out.println("Average value of array elements is: " + average);       printReversed(intArr);   }   while(input!=" ");  } public static void printReversed(int[] values) {      //loop that prints out elements in reverse order     for(int i= values.length-1; i>=0; i--)     {         System.out.println(values[i]);     }    }  }

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


Ideally, should buttons' icons or state (button clicked or not clicked) represent current or desired behavior? On Android, certain checkbox options may also have a description (below the name of the option itself) - should the description describe: 1. the new behavior that will apply when (un)checking the option, or 2. the behavior when the option is checked (with the implication that the opposite behavior will apply when unchecked)? Thanks.

I have a quick question about buttons that toggle between two states. (Think Play/Pause, or Shuffle/Regular Play.) As the title says, should the toggle show it's current state or the state to which it will transition?  I think people are used to the Play/Pause convention. But the Shuffle/Regular play might be more confusing if you show the transition state instead of current. For example, the built-in music player on the Xbox 360 does it this way: when it's in shuffle mode, it shows the icon for direct play and vice versa and it always confuses me (am I in shuffle mode or straight play).  I see it this way: Play/Pause is more like action as in begin playing or pause playing. Yes behind the scenes it is a state transition but to the user, there is an action. Whereas Shuffle/Straight Play is an option and it's best to show the current state (and possibly have only one icon and change button to show that the option is enabled/disabled). Thoughts?


I run an OLS multiple regression model estimating expected chance of getting a job at a company $X$ for different subgroups.  ${gets~job}_i = \hat{\alpha} + \hat{\beta_1}\cdot talent_i + \hat{\beta_2}\cdot woman_i + \hat{\beta}3 \cdot talent_i \cdot woman_i + \hat{\epsilon}_i$.  $E[gets~job|woman = 0, talent = 0] = \alpha $  $E[gets~job|woman = 0, talent = 1] = \alpha + \beta_1 $  $E[gets~job|woman = 1, talent = 0] = \alpha + \beta_2 $  $E[gets~job|woman = 1, talent = 1] = \alpha + \beta_1 + \beta_2 + \beta_3  $  My question: How do I, by hand and (quickly) in R, test the hypothesis $\beta_1 + \beta_3 = 0$ in words something like "does talent matter for women?".  Dummy data for R:  n = 1e4 set.seed(6) df <- data.frame(gets.job = sample(0:1, size = n, replace = TRUE),                  talent   = sample(0:1, size = n, replace = TRUE),                  woman    = sample(0:1, size = n, replace = TRUE))  ols.m <- lm(gets.job ~ talent*woman, data = df)

How should I define a model formula in R, when one (or more) exact linear restrictions binding the coefficients is available. As an example, say that you know that b1 = 2*b0 in a simple linear regression model.


I have sometimes huge numbers where a 0 is expected: -5.96046e-08, -2.98023e-08 ... Even though it looks wrong, it still take it as a 0 (or maybe undefined?). Can someone tell me what is it, if it's normal, how to avoid, ...  for (int j = 0; j < samplesPerBlock; ++j) {     if (!jobDone)     {         job.amplitude =             (job.elapsed <= job.attack) * (job.velocity / job.attack * job.elapsed) +             (job.elapsed > job.attack && job.elapsed <= job.decay) * (job.velocity - (job.velocity - job.sustain) / (job.decay - job.attack) * (job.elapsed - job.attack)) +             (job.elapsed > job.decay && job.on) * (job.sustain) +             (!job.on && job.elapsed > job.decay) * (job.sustain - (job.sustain / job.release) * job.released);          job.released += (!job.on && job.elapsed > job.decay);          job.amplitude -= job.toChocke * (job.amplitude / job.chocke) * job.chocked;          if (job.chocke == job.chocked)         {             jobDone = true;             DBG(job.amplitude); // <- this is where I get those numbers         }          job.chocked += job.toChocke;     } }

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


In my application I want cropped the image and then convert this to bitmap. For crop image I use this library :   I want when call onActivityResult convert this image to bitmap and for this I write below codes :   @Override protected void onActivityResult(int requestCode, int resultCode, Intent result) {     if (requestCode == Crop.REQUEST_PICK && resultCode == RESULT_OK) {         beginCrop(result.getData());     } else if (requestCode == Crop.REQUEST_CROP) {         handleCrop(resultCode, result);     } }  private void beginCrop(Uri source) {     Uri destination = Uri.fromFile(new File(getCacheDir(), "cropped"));     Crop.of(source, destination).asSquare().start(this); }  private void handleCrop(int resultCode, Intent result) {     if (resultCode == RESULT_OK) {          if (result != null) {             Bundle bundle = result.getExtras();             Bitmap bitmap = bundle.getParcelable("data");             //imageView.setImageBitmap(bitmap);             base64String = ImageConvertBase64.convert(bitmap);              //Edit base64 for site             base64StringForSite = "data:image/png;base64," + base64String;              //Upload image call api             UploadAvatarImageSendData sendData = new UploadAvatarImageSendData();             sendData.setBase64ImageData(base64StringForSite);              profileEdit_avatarProgressBar.setVisibility(View.VISIBLE);              Call<SendCommentResponse> call = api.getUserUploadAvatar(token, "2", sendData);              call.enqueue(new Callback<SendCommentResponse>() {                 @Override                 public void onResponse(Call<SendCommentResponse> call, Response<SendCommentResponse> response) {                     if (response.body().getData() != null) {                         profileEdit_avatarProgressBar.setVisibility(View.GONE);                         getUpdateAvatarImage();                         Toasty.success(context, response.body().getStatusMessage(), Toast.LENGTH_SHORT, true).show();                     } else {                         Toasty.info(context, context.getResources().getString(R.string.retryAgainAgain), Toast.LENGTH_SHORT, true).show();                     }                 }                  @Override                 public void onFailure(Call<SendCommentResponse> call, Throwable t) {                     profileEdit_avatarProgressBar.setVisibility(View.GONE);                     Log.e("uploadImage", "Err : " + t.getMessage());                 }             });         }      } else if (resultCode == Crop.RESULT_ERROR) {         Toast.makeText(this, Crop.getError(result).getMessage(), Toast.LENGTH_SHORT).show();     } }   And this is my method for convert bitmap to base64 :  public static String convert(Bitmap bitmap) {     ByteArrayOutputStream outputStream = new ByteArrayOutputStream();     bitmap.compress(Bitmap.CompressFormat.PNG, 100, outputStream);      return Base64.encodeToString(outputStream.toByteArray(), Base64.DEFAULT); }   But when running application show me below error message in LogCat :      Caused by: java.lang.NullPointerException: Attempt to invoke virtual   method 'boolean   android.graphics.Bitmap.compress(android.graphics.Bitmap$CompressFormat,   int, java.io.OutputStream)' on a null object reference       at com.example.app.Utils.Componenets.ImageConvertBase64.convert(ImageConvertBase64.java:25)       at com.example.app.Activities.ProfileEditActivity.handleCrop(ProfileEditActivity.java:326)       at com.example.appt.Activities.ProfileEditActivity.onActivityResult(ProfileEditActivity.java:192)       at android.app.Activity.dispatchActivityResult(Activity.java:6222)       at android.app.ActivityThread.deliverResults(ActivityThread.java:3627)   How can I fix it? please help me.   I am amateur and really need your help. Thanks

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


I'm modifying some code of a text search box, now I have the following code    $categories = maybe_unserialize(get_option('_fm_categories',array()));     $pluginsurl = plugins_url();     $comcat = '';     $sw = 6;     if($cat_view == 'compact') {         $comcat = "
".''.__('Category:','wpdmap').''.wpdm_dropdown_categories('wpdm-cats-compact', '', 'wpdm-cats-compact', 0)."
";         $sw = 3;     }     $html = '
     <form id="srcp" style="margin-bottom: 10px">
     <input type="hidden" name="category" id="initc" value="'.$category.'" />          '.__('Search Package','wpdmap').':     <input type="text" class="form-control" name="src" placeholder="'.__('Search Package','wpdmap').'" id="src">          Buscar      '.$comcat.'           '.__('Orden por:','wpdmap').'     <select name="order_by" id="order_by" class="selectpicker">     <option value="date">'.__('Publish Date','wpdmap').'</option>     <option value="modified">'.__('Last Updated','wpdmap').'</option>     <option value="view_count">'.__('View Count','wpdmap').'</option>     <option value="download_count">'.__('Download Count','wpdmap').'</option>     <option value="package_size_b">'.__('Package Size','wpdmap').'</option>     </select>               '.__('Orden:','wpdmap').'     <select name="order" id="order" class="selectpicker">     <option value="DESC">'.__('Descending Order','wpdmap').'</option>     <option value="ASC">'.__('Ascending Order','wpdmap').'</option>     </select>

     </form>

     '.__('Inicio','wpdmap').'      '.__('All Packages','wpdmap').'

';   But when I press the enter button to search nothing happened, I solved this issue with a button with the following code  Search   And now it works perfectly when I click that button, but now I want it to work when I enter the text and just press enter.

Well I am trying to submit a form by pressing enter but not displaying a submit button. I don't want to get into JavaScript if possible since I want everything to work on all browsers (the only JS way I know is with events).  Right now the form looks like this:  <form name="loginBox" target="#here" method="post">     <input name="username" type="text" /><br />     <input name="password" type="password" />     <input type="submit" style="height: 0px; width: 0px; border: none; padding: 0px;" hidefocus="true" /> </form>   Which works pretty well. The submit button works when the user presses enter, and the button doesn't show in Firefox, IE, Safari, Opera and Chrome. However, I still don't like the solution since it is hard to know whether it will work on all platforms with all browsers.  Can anyone suggest a better method? Or is this about as good as it gets?


I find this code  I 've done few changes but I have some troubles with color. I would like to have in my List of urls (liste de liens)  "lien 1 : " in black with spaces and the links in blue.  \documentclass{article}    \usepackage[colorlinks=true, urlcolor=blue]{hyperref} \usepackage{pdfescape} \usepackage{filecontents} \begin{filecontents*}{\jobname.mst} % Input style specifiers keyword "\\urlentry" % Output style specifiers preamble "\\begin{theurls}" postamble "\n\\end{theurls}\n" group_skip "" headings_flag 0   item_0 "\n\\urlitem{" delim_0 "}{" delim_t "}" line_max 500 \end{filecontents*} \newcounter{compteururl} \setcounter{compteururl}{0} \makeatletter \newwrite\file@url \openout\file@url=\jobname.idx\relax  \newcommand*{\write@url}[1]{\addtocounter{compteururl}{1}%   \begingroup     \EdefEscapeHex\@tmp{\lien : #1}%     \protected@write\file@url{}{%       \protect\urlentry{\@tmp}{\thepage}%     }%   \endgroup } \let\saved@hyper@linkurl\hyper@linkurl \renewcommand*{\hyper@linkurl}[2]{%   \write@url{#2}%   \saved@hyper@linkurl{#1}{#2}% } \newcommand*{\listurlname}{Liste des liens} \newcommand*{\printurls}{%   \InputIfFileExists{\jobname.ind}{}{}% } \newenvironment{theurls}{%   \section*{\listurlname}%   \@mkboth{\listurlname}{\listurlname}%   \let\write@url\@gobble     \ttfamily   \raggedright   \setlength{\parfillskip}{0pt}% }{%   \par } \newcommand*{\urlitem}[2]{%   \hangindent=1em   \hangafter=1      \begingroup         \EdefUnescapeHex\@tmp{#1}%     \expandafter\url\expandafter{\@tmp}%   \endgroup   \urlindex@pfill   p.\@\space\ignorespaces   #2%   \par } \newcommand*{\urlindex@pfill}{%   \unskip~\urlindex@dotfill   \penalty500\strut\nobreak   \urlindex@dotfil~\ignorespaces } \newcommand*{\urlindex@dotfill}{%   \leaders\hbox to.6em{\hss .\hss}\hskip\z@ plus  1fill\relax } \newcommand*{\urlindex@dotfil}{% from \dotfil of package `doc'   \leaders\hbox to.6em{\hss .\hss}\hfil }    \newcommand\lien{lien \thecompteururl} \makeatother  \usepackage[T1]{fontenc} \usepackage[variablett]{lmodern}  \begin{document} some texte with reference \href{http://abc.com}{\lien} and \href{http://zwy.com/}{\lien}.  \clearpage some texte with reference \href{http://koyc.com}{\lien} and \href{http://pft.com/}{\lien}. \clearpage some texte with reference \href{http://lyc.com}{\lien} and \href{http://at.com/}{\lien}.  some texte with reference \href{http://abc.com}{\lien} and \href{http://abb.com/}{\lien}.  \newpage \printurls  \end{document}   Thanks for your answers.

describes a method for generating an index of URLs that are used in the document, including page number.  However, the URLs are sorted alphanumerically.  I'd like to make a URL index that sorts them per page, in the order in which the links appear on the page.  Furthermore, my links are actually in \hrefs and I would like to include the link text in the index:  p. 1      Wikipedia... http://wikipedia.org      SXE... http://stackexchange.com p. 2      Google... http://google.com   I've created a MWE following the instructions from Heiko Oberdiek in the post I linked to above (compile with xelatex links.tex, makeindex links-url, xelatex links.tex).  Note, the output I currently get is, as expected (but not desired) in alphabetical order rather than page order:        \documentclass[12pt,article]{memoir}  \settrimmedsize{11in}{8.5in}{*} \settrims{0in}{0in} \settypeblocksize{9in}{6.5in}{*} \setlrmargins{1in}{*}{*} \setulmargins{1in}{*}{*} \setheadfoot{\onelineskip}{2\onelineskip} \setheaderspaces{*}{1.5\onelineskip}{*}  \checkandfixthelayout  \PassOptionsToPackage{hyphens}{url} \usepackage[linktoc=all,frenchlinks,pdfborderstyle={/S/U/W .5},citebordercolor={1 1 1},linkbordercolor={1 1 1},urlbordercolor={1 1 1}]{hyperref} \makeatletter \g@addto@macro{\UrlBreaks}{\UrlOrds} \makeatother  \usepackage{filecontents}  \begin{filecontents*}{\jobname-url.mst} % Input style specifiers keyword "\\urlentry" % Output style specifiers preamble "\\begin{theurls}" postamble "\\end{theurls}\n" group_skip "" headings_flag 0 item_0 "\n\\urlitem{" delim_0 "}{" delim_t "}" line_max 500 \end{filecontents*}  \usepackage{pdfescape}  \makeatletter \newwrite\file@url \openout\file@url=\jobname-url.idx\relax  \def\instring#1#2{TT\fi\begingroup   \edef\x{\endgroup\noexpand\in@{#1}{#2}}\x\ifin@}  \newcommand*{\write@url}[1]{%   \begingroup     \EdefEscapeHex\@tmp{#1}%     \protected@write\file@url{}{%       \protect\urlentry{\@tmp}{\thepage}%     }%   \endgroup } \let\saved@hyper@linkurl\hyper@linkurl \renewcommand*{\hyper@linkurl}[2]{%   \write@url{#2}%   \saved@hyper@linkurl{#1}{#2}% } \newcommand*{\listurlname}{List of URLs} \newcommand*{\printurls}{%   \InputIfFileExists{\jobname-url.ind}{}{}% } \newenvironment{theurls}{%   \begin{center}{\Huge \listurlname}% \vspace{.7in}\\ \end{center} {All of these links were active as of \today.} \\ \quad \\ \noindent   %\section*{\listurlname}%   \@mkboth{\listurlname}{\listurlname}%   \let\write@url\@gobble   \ttfamily\footnotesize   \raggedright   \hspace{-1.4em} }{%   \par } \newcommand*{\urlitem}[2]{%   \hangindent=1em   \hangafter=1   \begingroup     \urlpages{#2}%     \EdefUnescapeHex\@tmp{#1}%     \expandafter\url\expandafter{\@tmp}%   \endgroup   \newline } \newcommand*{\urlpages}[1]{% {% \normalfont \space(\if\instring{,}{#1}{pp.\space#1}\else{p.\space\hyperlink{page.#1}{#1}}\fi)} } \makeatother  \begin{document} \href{http://wikipedia.org}{Wikipedia} \href{http://stackexchange.com}{SXE}   \newpage \href{http://google.com}{Google}  \section*{Index of URLs} \printurls \end{document}


I used Google Play Games to connect to Asphalt 8: Airbone. Is there any way to export my progress to the same game on Xbox (Mircosft account)?

I am playing asphalt 8 airbone on my pc which runs on windows 8.1 pro and on my android smartphone. I connected Asphalt 8 with my same facebook account but it doesn't show same career performance, my car pack, etc. Help me out with this.


I have created several space ships using up to 7-8 single images to texture the objects. As I am a blender beginner I did not unwrap the models and create a texture from the unwrap; instead, I just unwrapped the models and used a lot of different images on their faces.  Now that I want to use the model (I use it in Unity 3D) there are a lot of materials on the objects, one for each image I used. For mobile game performance I'd like to have one single image for each model, including all textures I used.  Is there any way to merge all used images (with their UV mapping still intact) to one big image which will be imported as one single material for the model in unity?

I have a finished model where the UV maps overlap - lots of wood that isn't detailed to be particular to the model.    I'd like to re-map the texture so that specific details can be added. I'd like to rebuild the UV map into non-overlapping islands, without losing the current texture application, and preferably without manually pulling apart the islands.  Is this possible?


I want to make a lookup-table/array.  The index values I get are of the form k = 2^n only, where n is an integer. So I want to reduce the arrays size to n and I therefore have to perform an operation on the index values as well.  I want the most efficient way to do this as I am programming on an embedded platform.  Example:  I got the values n = {1, 2, 4, 8, 16, 32}  I have an array defined as:  int myArray[6];   Now I want to convert the values n to m, where m = {1, 2, 3, 4, 5, 6} so I can access array elements:  myArray[m];

what I'm after is something I can feed a number into and it will return the highest order bit.  I'm sure there's a simple way.  Below is an example output (left is the input)  1 -> 1 2 -> 2 3 -> 2 4 -> 4 5 -> 4 6 -> 4 7 -> 4 8 -> 8 9 -> 8 ... 63 -> 32


How do I change my picture? How do I change my name?

I am a new user and I'm using the Android app. How can I set my username? Is this possible at all from the app?


I have a function $f:X \rightarrow Y$, where $(X,d)$ and $(Y,d')$ are metric spaces. I need to prove that $f$ is uniformly continuous on $X$ iff for all $A, B \subseteq X$ such that $d(A, B)=0$ implies that $d'(f(A), f(B))=0$  Necessity is clear. I can't show the sufficiency. I tried by contradiction. Suppose that $f$ is not uniformly continuous. Then, for some $\epsilon_0$ there are sequences $a_n$ and $b_n$ such that $d(a_n, b_n)\rightarrow0$ and $d'(f(a_n), f(b_n))>\epsilon_0$. Therefore, I defined the sets $A$ and $B$ as the set that contains the $a_n$'s and $b_n$'s respectively. So $d(A,B)=0$. By hypothesis $d'(f(A), f(B))=0$.  I can't use this fact.    I proved the continuity of the function on $X$, but it's so hard prove the uniform. I can't show this part.

I have the following exercise: Let $(X,d)$, $(Y,e)$ be metric spaces.  This is the definition of distance of sets used in the exercise:  $d(A,B)=inf\{d(a,b)\colon a \in A, b \in B\}$  $d(f(A),f(B))=inf\{e(f(a),f(b))\colon f(a) \in A, f(b) \in B\}$  The exercise is:   Prove that $f\colon X \rightarrow Y$ is uniformly continuous if and only if, for all non empty sets $A$,$B$ in $X$ such that $d(A,B)=0$ we always have that $d(f(A),f(B))=0$.  If we suppose that $f$ is uniformly continuous, the implication is easy. But the converse is very hard for me. Let me show you what I have tried:  Suppose that for all non empty sets $A$,$B$ in $X$ such that $d(A,B)=0$ we always have that $d(f(A),f(B))=0$, and for the sake of a contradiction suppose also that $f$ is not uniformly continuous.   Then there exist $\epsilon_0>0$ such that for all $\delta>0$, exist $x_\delta$, $y_\delta$ in $X$ such that $d(x_\delta, y_\delta)<\delta$ but $e(f(x),f(y)) \geq \epsilon_0$.   In particular, for all $\delta=\frac{1}{n}>0$ there exist $x_n,y_n$ in $X$ such that $d(x_n,y_n)<\frac{1}{n}$ but $e(f(x_n),f(y_n)) \geq \epsilon_0$  Then $A=\{x_n \colon n \in \mathbb{N}\}$ and $B=\{y_n \colon n \in \mathbb{N}\}$ are such that $d(A,B)=0$.   Then by hypotheses, we have that $d(f(A),f(B))=0$. Then, in particular for $\epsilon_0>0$, there exist $x_n,y_m$ in $X$ such that $e(f(x_n),f(y_m))<\epsilon_0$.   But I get a contradiction if $n=m$ but I don't know how to proceed in case that $n\neq m$.   Any help would be appreciated.


I just picked up Wilhelm Schlag's book A Course in Complex Analysis and Riemann Surfaces, and I've been stuck on a Exercise 1.3:     Let $P(z)=\sum_{j=0}^{n}a_jz^j$ be a polynomial of degree $n\geq 1$   with all roots inside the unit circle $|z|<1$. Define   $P^*(z)=z^n\overline{P}(z^{-1})$ where   $\overline{P}(z)=\sum_{j=0}^{n}\overline{a}_jz^j$. Show that all roots   of  $$P(z) + P^*(z)=0$$ lie on the unit circle $|z|=1$.   Here's what I've worked out so far. By the fundamental theorem of algebra we can write $$P(z)=a_n\prod_{j=1}^{n}(z-z_j),$$ where $z_j$ are the roots of $P$. By definition of $P^*$ we see that $P^*(z)=\overline{a}_n\prod_{j=1}^{n}(1-z\overline{z}_j)$, which immediately yields (again by the fundamental theorem of algebra) $$P^*(z)=\overline{a}_0\prod_{j=1}^{n}(z-\overline{z}_j^{-1}).$$ So we see that the roots of $P^*$ are just the inversions of the roots of $P$ around the unit circle. There is something a little funny about this: if zero is a root of $P$ then there is no associated root of $P^*$ (this makes some sense since polynomials can't vanish at $\infty$), and so the degree of the polynomial drops by one in this case?  Now we can compute $(P+P^*)^*=(P+P^*)$ and so by the above arguments all of the roots of $P+P^*$ are symmetric (in the sense of inversions) around the unit circle. Now here's where I get stuck... I'm not sure how to use the assumption that the roots of $P$ (denoted above by $z_j$) lie inside the unit disk to show that the roots of $P+P^*$ must lie exactly on the unit disk...  Hints on where to go from here are much more appreciated than complete solutions!

I have to prove the following question from "A course in complex analysis and riemann surfaces":     Let $p(z)=\sum_{i=0}^na_iz^u$ be a polynomial with all roots inside the (open )unit disk. Denote by $\bar{p}(z)$ the polynomial $\sum_{i=0}^n\bar{a_i}z^i$. Prove that the roots of $p(z)+z^n\bar{p}(\frac{1}{z})$ lie on the unit circle.   Now it's not hard to see that if $r$ is a root of $p(z)$, then $\frac{1}{\bar{r}}$ is a root of $z^n\bar{p}(\frac{1}{z})$. But that's about as far as I got. I would like a hint on how to prove this.


Sentence:      By 1997 a report in the Journal of the American Medical Association concluded that HRT extended life expectancy for postmenopausal women by as much as three years.   I don’t know if removing the “as much as” will affect the meaning. Why not take the phrase off if it doesn’t add more sense?

“The authors of the study, one of the most closely watched overviews of the global high-end retail market, predicted that such expansion would drive up growth across the global luxury market by as much as 8 percent.”   My question: what does "by as much as 8 percent" mean? Does it mean "by 8 percent" or "by up to 8 percent"?


I came across following if statement which confused me. This is the output of an autogenerated .c file and compiles.  example 1:   while ( ( rvs_tmp_k_363=0,              RVS_DM(363,                   &rvs_tmp_k_363,                   (unsigned int)(Idx < (uint16*)&nvHist_QData[0x00FF])                   )          )        )   example 2.  if ( ( rvs_tmp_k_362=0,        RVS_DM(362,               &rvs_tmp_k_362,               (unsigned int)(RVS_CM(&rvs_tmp_k_362,                                     2,                                    (unsigned int)((nvHist_Queue.DataPtr != (uint8*)&nvHist_QData))                             )


I'm very new to Blender and I'm currently following Blender Guru's donut tutorial. However, I have a problem about my camera perspective that looks like this  And when I render it, it looks like this  Which is different from my camera perspective. What can I do about this?

Zoom Issues,Hello, I am a noob when it comes to blender, so I apologize up front for not being able to communicate the problem better.  I am following blender guru tutorial on how to model a donut with icing and I have the camera zoomed in for a close up of the donut but when I hit render it is in a zoomed out position, the donut is far away.  My clipping distance is .001 so I don't think it's a clipping issue.  It's as if no matter where I position or zoom camera to, the render is operating on it's own and positioning the camera and focal length farther from my object. I've tried with both EEvee and Cycles but still have the same results. I've also tried different focal lengths, 35mm 50mm and 175mm but still resulting in a zoomed out render instead of a close up shot.


I've been seaching for the past few hours and cant find an aswer that still works in blender (all the answers I can find on SE seems to be weofully outdated?) How do I insert a new face with equal distance to all outlying edges? No matter what I do, it always scale relative the scale of the cube (wether I scale the cube in edit or object mode, using scale or dimessions, doesn't matter, I can not for the life of me get it to simply insert the new face x units from all 4 edges.) Please help. Also, bonus question, what's the point of dimessions? as far as I can tell, they do exactly the same as scaling? (Insert and Loop Cut behave exactly identically regardless? ie. you cant use the viewports measurements to anything, since all the numbers are relative the the axies they are scalled along?) Please note in the picture below, the cube was scaled in edit mide before using Insert, and I get the same result if I scale it in Object mode

How can I inset/extrude a face, so that the outer faces have the same width?    Any kind of help is appreciated


I'm using Laravel 5.6, and I can only upload/edit files to/in the root of the website (/public_html). I cannot change the website root to /public_html/public. Is it possible to rewrite all requests (e.g. /, /login, /css/styles.css etc.) internally to /public_html/public/?  I don't know how to write .htaccess files. I tried many different things I found online. The last thing I tried was this in /public_html/.htaccess:  RewriteEngine On  RewriteRule ^(.*)$ /public/$1 [L]

You can make a catch-all rewrite rule for apache that acts somewhat like an alias, but can be implemented in a .htaccess file while an alias can't.  As an example, assuming your document root is a hierarchy like this:  /.htaccess /test/ /test/.htaccess /test/file   You can "Alias" all requests to the test folder by making the root .htaccess contain:  RewriteEngine On RewriteRule ^(.*)$ /test/$1 [L]   And the second .htaccess contain:  RewriteEngine On   This works great, and usually is all you need. It just has one problem - it creates multiple valid urls. Now you can access the file with both /file and /test/file.  Ordinarily this isn't a problem, but if you add a file called /test/test you'll see the problem, as the fake alias stops working entirely. If the subfolder has a complex .htaccess of its own it can cause major headaches.  Is there any way to fake an alias from a .htaccess without the original urls still working? (Any RewriteCond for the subfolder that would check if we've already been rewritten or not?)


What's the difference between INNER JOIN, LEFT JOIN, RIGHT JOIN and FULL JOIN  in MySQL?

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


There's standalone MySQL server 5.5 with no slaves. Daily dump is created using mydumper tool.   Is there any way to verify created dump (all tables are created, integrity, etc.) without restoring dump somewhere, using slaves, etc..?

We've got a cron task backing up our Database using mysqldump - my main concern is corruption, short of manually importing and checking the backups each time whats the best way to check / verify a backup is corruption free ?  Background: We are running mysql 5.5.* and InnoDB. We are running mysqldump straight from the server.  We are not currently using master / slave or master / master but could change if it would help. The DB is small currently <1mb, it will be <50mb for the foreseeable future, so scale dosnt really need to be taken into account in this instance.


I used the below commands to delete a mysql my Ubuntu server 14 on aws amazon.  sudo apt-get purge mysql-server mysql-client mysql-common mysql-server-core-5.5 mysql-client-core-5.5 sudo rm -rf /etc/mysql /var/lib/mysql sudo apt-get autoremove sudo apt-get autoclean   I would like to retrieve data from the /var/lib/mysql.  It's possible?

I have a Toshiba satellite A-200 laptop with a Vista OS on it with 4 NTFS partitions  (C:) Vista  (D:) Entertainment  (E:) Work  (F:) Sources   and I wanted to start using Ubuntu instead. So I tried it first from the live CD and everything was OK and all the partitions were shown and working and so I decided to install Ubuntu to replace Vista on the (C:) drive. After I did that I can no longer find my folders and files on the (D:), (E:), (F:) partitions and the only file system that is shown is one 198 GB although my HDD is 320 GB.  I can't access the lost data on the remaining 120 GB which I hope is still there and not totally lost  I am now working from the live CD but I am unable to install testdisk. Can I recover the Vista partitions by the product recovery CD to get my laptop back to the factory settings? Can I recover the NTFS partitions using a recovery program for Windows or will that make the problem worse?   I need these data badly as I don't have a backup for them.


By using the Force, they can control the minds of their opponents and make them commit suicide. Fighting with lightsabers is more cumbersome in comparison, not to mention using blasters is more efficient.

Jedi are masters of telepathy, telekinesis, and physical combat.  When two or more Jedi attack one target, why do they all crowd around to physically confront him?  The gang should have some Jedi mentally attacking their target, some Jedi using physical force attacks (whether on the target or by smashing things into his legs/face), and some using physical combat.  One example is Qui-gon versus Darth Maul, while Obi Wan had to watch through the laser gate. The Force can cross star systems, so Obi Wan could have done telekinetic nut punches to Maul.  Or, even better for their mission, scanned Maul's brain to learn his secrets while Maul was concentrating on his fight with Qui-gon.


I wanted to change my fstab file to be able to solve "Error mounting" (I tried to delete the last line of fstab file)   # /etc/fstab: static file system information. # # Use 'blkid' to print the universally unique identifier for a # device; this may be used with UUID= as a more robust way to name devices # that works even if disks are added and removed. See fstab(5). # # <file system> <mount point> <type> <options> <dump> <pass> # / was on /dev/sda5 during installation UUID=8a97edce-fb5d-4dfb-8843-1d6a8f40c8ed / ext4 errors=remount-ro 0 1 # /home was on /dev/sda7 during installation UUID=20c4aa72-06e1-47eb-acae-2ca0a53ebc93 /home ext4 defaults 0 2 # swap was on /dev/sda6 during installation UUID=638f2aee-806c-4845-bb1b-3bff47728184 none swap sw 0 0 /dev/sr0 /media/cdrom0 udf,iso9660 user,noauto 0 0 #/dev/sdb1 /media/usb0 auto rw,user,noauto 0 0   But now I need "permissions to save the file."  How to do it?

Are there any special considerations to editing a file as root? What is the safest way to do this?


I know the rules that 0 is equal to empty string '' in javascript. So how to make if statement to differ this? I mean, I have field where I insert amount value. For empty string I need one message to show but for 0 value another. Currently, I always catch 0 == ''.      if (amount == '') {        $("#validation-msg3").addClass("opux-is-visible");         return false;     }     else if (amount < 5) {         $("#validation-msg1").addClass("opux-is-visible");          return false;     }   EDIT. when I use === I do not get condition equals true when field is empty. What does it mean? My amount value is different type than empty string? I parse it like this:  var amount = parseInput($("#amount").val());

I'm using  to go through JavaScript, and it's returning many suggestions to replace == (two equals signs) with === (three equals signs) when doing things like comparing idSele_UNVEHtype.value.length == 0 inside of an if statement.  Is there a performance benefit to replacing == with ===?   Any performance improvement would be welcomed as many comparison operators exist.  If no type conversion takes place, would there be a performance gain over ==?


Problem Imagine I have a base class, e.g. TreeNode with several subclasses deriving from it, possibly with more instance fields (like children for inner nodes). What are current best practices to check against the concrete class Type. I may have something like NumericNode and CharacterNode and a function that accepts both. Solutions One possibility would be of course to use isinstance() but I think this is rather unpythonic. Another solution (which I would like to avoid as much as possible) is to use something like a class constant per subclass and then check against it. This would be similar to the first solution. Or should I encapsulate the isinstance() solution into a dedicated function that hides the real typechecking?

What is the best way to check whether a given object is of a given type? How about checking whether the object inherits from a given type?  Let's say I have an object o. How do I check whether it's a str?


I'd like to center an image (that changes dimensions according to the screen size) horizontally vertically in a div. That div is positioned absolute and has a height of 100%. Under that div, another div is placed.  I made a

     You can't see this without scrolling

    I want to center the test image vertically in the red div.  Thanks!

I want to center a div vertically with CSS. I don't want tables or JavaScript, but only pure CSS. I found some solutions, but all of them are missing Internet Explorer 6 support.
Div to be aligned vertically
   How can I center a div vertically in all major browsers, including Internet Explorer 6?


There is a large quantity of people.   There are a large quantity of people.      Are both correct?

I believe it well established that the choice of whether to use "There is" or "There are" with the phrase "a lot of" depends on the following word. For example, you would say:   There is a lot of wine. There are a lot of cars.   What is the right form to use for a pair of, a bunch of, a group of, etc.?


I read philosophy, and a great deal of philosophical texts, including those by Nietzsche, Plato, Hume, and a great deal of others include a similar grammar that I do not understand: that an independent clause which is a question may begin with a lowercase letter if it is following another question.  Here is an example from Phaedo (by Plato):     "And is the soul in agreement with the affections of the body? [or]   is she at variance with them?   Why is it permissible to lowercase 'or'?  Unfortunately I cannot recall any specific examples of this, but I remember having the exact same question when reading Nietzsche's Genealogy of Morals.   Is there any grammatical rule sanctioning lower case letters at the beginning of questions following other questions (perhaps if that question begins with a conjunction, or is directly related to the preceding question?)?  Not that it matters, but I quite like it. It looks unique and interesting to me.

May I use a question mark in the middle of a sentence? Examples:  Would you like the drapes to be white? or perhaps something off-white? Would you like the logo to be centered? at the bottom? left off entirely?


I've some text in following form  29secs  183.207.224.50      84  flag China    HTTP    High +KA 29secs  120.203.214.206     3128    flag China    HTTPS   High +KA 29secs  183.207.232.193     8080    flag China    HTTPS   High +KA 29secs  60.29.248.142       8080    flag China    HTTPS   High +KA 29secs  211.162.0.162       80  flag China    HTTPS   High +KA 29secs  111.161.126.99      80  flag China    HTTPS   High +KA 29secs  202.119.25.228      9999    flag China    It's just some data from public proxy server provider. I just want to get IP address and Port so I'm using following regular expression  [0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\s+[0-9]{1,5}   Now it's selecting all the IP addresses and Port. But I want to select everything else which is not IP address and Port so that I can delete them to just get IPs and Port. Can someone tell me how can I select everything else which is not fulfilling regular expression requirement?? Thank You!

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


I use same EF query multiple times in my application so I need something like this:  private Expression<Func<Student, bool>> StudentIsActive() {     return (x) => !x.IsDeleted && x.ItemsNumber > 0 && x.Sort > 0 && x.Status == StudentStatus.Active; }  private Expression<Func<Student, bool>> StudentIsBusy() {     return (x) => x.Mode == ModeType.Busy && x.Jobs.Count() > 0; }   I want to use same logic in multiple of my queries, like:   var students = context.Orders.Where(x => StudentIsActive() && StudentIsBusy()).ToList();   Does any one have any idea about this? how could I use AND or OR logic between expression methods?

I have two expressions of type Expression<Func<T, bool>> and I want to take to OR, AND or NOT of these and get a new expression of the same type  Expression<Func<T, bool>> expr1; Expression<Func<T, bool>> expr2;  ...  //how to do this (the code below will obviously not work) Expression<Func<T, bool>> andExpression = expr AND expr2


I have some apps on my HTC One (M8) that want to have access to my camera and microphone (Yahoo Mail app).  I have seen on an iOS device that you can disable this access but still run the app.  Is there something similar in the Android world?

Occasionally I want to install an application which requires certain permissions that I feel it really shouldn't need. Can I install the app without giving it these permissions? For example, GPS location, , internet connection, etc.  Is it possible to change the permissions of an application once it is installed?


Suppose that in $\Bbb Z_p^*$ that for $a \in \Bbb Z_p^*$, $o(a)=m$, then I wish to show that for any integer $k \geq1$, that $o(a^k)=\frac {m} {gcd(m,k)}$.  So if $d=gcd(m,k)$, then $a^{k^{m/d}}=a^{m^{k/d}}=1$. Now to show that $\frac {m} {gcd(m,k)}$ is the smallest such integer is where I am stuck. Hints appreciated.

Let $G$ be a cyclic group of order $m$ generated by an element $a$.  I want to show that the order of $a^k$ is $m/d$, where $d:=\gcd(k,m)$.  I have a simple proof, but want to make sure I haven't overlooked anything since the other proofs I've seen (such as in Dummit and Foote) look more complicated.    The order of $a^k$ is the cardinality of the set $\{a^{ks}: s \in \mathbb{Z}\}$, which equals the cardinality of the set $\{a^{ks} a^{mt}: s,t \in \mathbb{Z} \}$ since $a^m$ is the identity.  But the set $\{ks+mt: s,t \in \mathbb{Z} \}$ is the set $d \mathbb{Z}$ by the basic properties of integers. So we have that the cardinality of the set is $| \langle a^k \rangle| = |\{1, a^d, a^{2d}, \ldots, a^{m-d} \}| = m/d$.


Nothing can go faster than the speed of light, then how at the time of inflation space expanded faster than the speed of light? Clearly universe had already begun at the start (10−36 seconds) of inflationary epoch.

The observable universe is approximately 13.7 billion years old. But yet it is 80 billion light years across. Isn't this a contradiction?


Is there an easy algorithm that outputs a random element of $SO(3)$ distributed according to Haar measure on $SO(3)$?  Or more generally, replace $SO(3)$ with any compact matrix Lie group. Note: I'm looking for something that assumes you can sample real numbers from "standard" distributions, e.g. uniform, normal, etc. (basically anything that's pre-implemented in a modern computer language)

How do I sample a random rotation matrix in $n$ dimensions? Let $M$ be a $n\times n$-dimensional matrix.  $M$ is a rotation matrix if $\|Mx\|_2 = \|x\|_2$ for all $x \in \mathbb{R}^n$.  I want to sample uniformly at random from the rotations, in the following sense.  Let $\mathcal{S}=\{x: \|x\|_2=1\}$ denote the perimeter of a sphere of radius $1.$  I want a distribution on $M$ so that, if you fix any point $x \in \mathcal{S}$, then $Mx$ will be uniformly distributed on $\mathcal{S}$. How can I sample a matrix $M$ from this distribution?  I am looking for an algorithmic procedure I can use to sample such a matrix randomly. I believe this corresponds to sampling uniformly at random from $O(n)$ (the ).  I am fine with either a procedure for sampling uniformly at random from $O(n)$ or $SO(n)$; it should be easy to convert between the two of them.


Some months ago my scanner stopped working with the message that I need to install driver software.  My printer is a HP Officejet 6210 All-in-one.  So have attempted to load HPLIP 3.18.6 but get the error message:  The following packages have unmet dependencies.  libsane-dev : Depends: libsane (= 1.0.25+git20150528-1ubuntu2.16.04.1) but 1.0.25+git20150528-1ubuntu2.16.04.2 is to be installed E: Unable to correct problems, you have held broken packages.

After upgrading from 10.04 to 12.04 I am trying to install different packages.  For instance ia32-libs and skype (4.0).  When trying to install these, I am getting the 'Unable to correct problems, you have held broken packages' error message.   Output of commands:  sudo apt-get install -f Reading package lists... Done Building dependency tree        Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.   After running this:  sudo dpkg --configure -a foo@foo:~$ sudo apt-get install -f Reading package lists... Done Building dependency tree        Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.


Is it correct to say 'He is the one that did it' instead of saying 'He is the one who did it' ?

I often get confused when trying to use who vs that.  Some examples that often confuse me:  That     The person that went to the store.      The people that went shopping.      The persons that went shopping.      The group that went shopping.   Who     The person who went to the store.      The people who go shopping.   Please explain when to use either for plural subjects and singular subjects.  Animate and inanimate objects as well.


The below for loop produces a collection of lambda expressions.    Callable<String>[] tasks = new Callable[messageCount];  for (int i = 0; i < count; i++) {    tasks[i] = () -> msg;  }   Trying the same with stream forEach produces nulls.    Arrays.stream(tasks).forEach(t -> {    t = () -> message;  });   What am i missing? How do I fix this?

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?


In 10.10 that I was using before 12.04, you could use Alt+F9 to minimize a window to the task bar.   In 12.04 Meta+Ctrl+↑/↓ maximizes and unmaximizes a window. If you have a numeric keypad you can use Ctrl+Alt+0 to minimize to launcher.   On my netbook I don't have a numeric keypad and the normal numbers do not work with the above shortcut. How can I minimize windows with a keyboard shortcut?

What are the hotkeys for switching the current window between maximized, normal, and minimized states? If some of these don't exist, can I set them somewhere?


I am using git (bitbucket) for source control. I develop on IBM integration bus and some of its files like mappings, message flows, etc.. are best viewed graphically. (example: )   I was wondering if there is a tool for comparing the changes side by side, displayed in a graphic view, because as text those files aren't so meaningful.  Thanks!

When I type git diff, I want to view the output with my visual diff tool of choice (SourceGear "diffmerge" on Windows). How do I configure git to do this?


i'm using dataTable plugin.   i want to edit or delete the particular row, so onclick on <td> iam planning to    capture id.   but the problem  when i go to next tab onclick is not working. it is working only for the present item.  here is a fiddle :   Please click on the item and see the alert. Then go to next tab, click but will not work? Why?

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


Is there a way to view the list of questions I have recently viewed?  When just browsing the site, I will often look at new questions that I can't answer but am interesting in knowing what the answer is. If there isn't an good answer yet, I'll then browse on to other questions. The problem I run into is that sometimes it is hard to go back and find question after a few minutes or hours. I can also think of other use-cases where I would find this useful.  I know I can tag questions as favorites and locate them in my profile. At the risk of sounding  lazy, I find this to be too much work unless it is a question that I am really, really interested in.  It would be really handy if there was a way quickly see a list of last X (maybe 10) questions that I have viewed. For ease of access, it would be nice if this list was displayed in the side bar.   I don't see this functionality available, so I'm tagging this a feature request. If it already exists, I could use a nudge in the right direction on how to find it.

I'd like to see a list of questions that I've recently viewed. This might go on the user page (but only for the user - not for all to see).   This would be different from favorites, as it would only be recently viewed. This would not be redundant with browser history, as it would persist across computers (so I can see at home what I was looking at from work). This would not be redundant with recent activity, since I may not have had any activity on a question I recently viewed.   Any takers?  Perhaps show recently viewed questions where the Related links currently are, and slide everything else down?


If I have an independent event E with two possible outcomes x and y with their own probabilities p(x) and p(y) and I then repeat event E a certain number of times (n), how can I calculate the probability of that sample of n events containing at least one sequence of consecutive identical results at least L occurrences long?  So for example, if I roll a fair 6 sided die each morning and consider it a "win" when I roll 5 or 6, how do I calculate the chances that if I do this for a year, I will have at least 9 "wins" in a row at some point?  So in my above example:  E: Rolling a fair six-sided die x: Rolling 5 or 6 y: Rolling 1, 2, 3 or 4 p(x): 1/3 p(y): 2/3 n: 365 L: 9   Can I show for any values of these variables how to determine the probability of there being at least one instance of L consecutive occurrences of x within my n quantity of trials of E?

I thought of this question lately, but I'm not satisfied with the answer I got:  If I flip a coin 100 times, what is the probability that I will get a streak of at least ten of the same side?  The way I thought of solving it was just: $\left(90 \times 0.5 ^ 9\right) = 0.0879$, but this has to be wrong because, for the probability of getting a streak of at least 4 in the same scenario, it yields: $\left(96 \times 0.5 ^ 3\right) = 12$, which obviously doesn't make sense.


is there any difference between the follow exemples?  ProjNum int      CONSTRAINT nn_ProjNum NOT NULL          CONSTRAINT C_ProjNum CHECK (ProjNum >= 10)   and  ProjNum int NOT NULL      CHECK (ProjNum >= 10)   Thanks.

I have some auto-generated T-SQL, which is probably valid, but I don't really understand.  ALTER TABLE [dbo].[MyTable] WITH CHECK CHECK CONSTRAINT [My_FORIEGN_KEY];   I know what a foreign key constraint is, but what's the CHECK CHECK?


The general formula for gravitational red shift is given by: $$ \newcommand{\p}[2]{\frac{\partial #1}{\partial #2}} \newcommand{\f}[2]{\frac{ #1}{ #2}} \newcommand{\l}[0]{\left(} \newcommand{\r}[0]{\right)} \newcommand{\mean}[1]{\langle #1 \rangle}\newcommand{\e}[0]{\varepsilon} \newcommand{\ket}[1]{\left|#1\right>} \f{\omega_r}{\omega_e} =\f{p_\nu(r)V^\nu(r)}{p_\mu(e)V^\mu(e)}$$ where $p_\nu(r)$ represents the 4-momentum of the photon at the receiver, $p_\mu(e)$ is its four momentum of the photon at the emitter, $V^\nu(r)$ and $V^\mu(e)$ represent the 4-velocities of the emitter an reviser respectively.    This formula holds because  $$E(r)=p_\nu(r)V^\nu(r)$$ where $E(r)$ is the energy as measured by someone moving with the receiver (and analogous for the emitter). I can see that this equation hold true if both the emitter and receiver are in a locally inertial frame (i.e. free fall) since here the laws of special relativity must hold. However, I cannot see by what argument it is true for the receiver and emitter in arbitrary motion.  Thus what argument can be use?  (A source would be helpful)

Assume that a particle is moving with four-velocity $u^\mu$ through a spacetime with metric $g_{\mu\nu}$ ($-+++$ signature).  Let us also assume that there exists a time-like vector field $t^\mu=(1,0,0,0)$.  Is it generally true that the energy $E$ of a particle is given by the following expression:  \begin{eqnarray*} E &=& -mt_\mu u^\mu\\ &=& -mg_{\mu\nu} t^\nu u^\mu\\ &=& -mg_{00}u^0\\ &=& -mg_{00}\frac{dt}{d\tau}? \end{eqnarray*}  In the special case that $t^\mu$ is a Killing vector and $u^\mu$ is tangent to a geodesic then $E$ is a constant of motion of the particle. But the energy of a particle need not remain constant in the general case - is that true?  If $E=-mt_\mu u^\mu$ is indeed the particle mass/energy then does it act as a source of spacetime curvature given that it depends on the $00$-component of the spacetime metric ifself? I suppose that is not a problem.


Is there an easy way to convert TTL/CMOS output signals to 0 and 5V? For example, if an ic outputs 0.1V as "0", I'd like to convert it to 0V and if it outputs something like 3.9V as "1", I'd like to convert it to +5V. Thanks.

Is there any IC that interfaces any 3.3V Input/Output to 5V Output/Input? I need it primarily for an Arduino Due but if there any bidirectional IC that works like that it would be great.  Some people advised me to use the SN74AHC125 and CD4050 ICs, but I don't understand how they work or how to interface with them.


If I were to attack with my creatures, 5 1/1's for say, and my opponent chooses not to block, could I then boost those creatures with an instant to make them more powerful?

My friend has a green  deck. When he declares a creature to attack and I allow it to go through unblocked, he suddenly plays all these Instants that 'pump' the creature up, and because of Infect, it's an instant loss most of the time. We solved that issue (without really understanding the full rules) that it wouldn't make sense to pump his creature up for an instant win without allowing me to block, although recently, my friend told me that 'Instants' can be played 'anytime' so once I allow a creature to deal me damage, technically, he's allowed to play all those Instants.  I'm really confused about it all, and would like to get an answer once and for all for this.   Also, once he has stacked all the pumps for his creature and attacks me (after I initially let it pass to hit my life because I did not expect the pumps) am I allowed to play ?


I am writing code for Linux kernel driver.   The    The first rule that everyone needs to follow is to use the Tab character rather than spaces, to indent code. Also, the Tab character should represent eight spaces. Following along with the eight-character Tab indentation, the code should not flow past the 80 character line limit on the right of the screen.  Can you please tell me how can I change to use TAB character to space in emacs for indenting?  And use a eight character tab indentation?

I want to make emacs insert either 4 spaces or a tab when I press the tab key. Nothing else. I don't want smart indentation, I don't want it to auto-align itself or try to do anything smart. I just want it to output 4 spaces (or a tab). =


I am not in IT infrastructure team. But I have a SQL database server. We are having this intermittent problem with Dynamics SL and everyone in the company sort of pointing the finger that the server is too busy, working too hard, ect2. I disagree with the assessment and would like to get some concrete data from the server to give to my co worker   I was thinking to capture batch request per second and presented the data.  My Question:   Do batch request per second the right approach to see how busy/overloaded/overworked the server is? if yes then how do I capture this?  do I have to keep SQL profiler open and save the data daily?  is there an automated way that allow me to capture some sort of metrics on how much request is hitting the server?  If batch request per second is not the right data, then what would be the right info to get? and how to get it?   thanks

I would like to see the activity on of the SQL server. So I can run a query when the server load is low. I know there is an activity monitor in SQL server but my company doesn't want me to give the rights to use this tool. Apparently you can kill other people queries and this is too dangerous.  Is there a way to check the status of the server with code? (Or view the activity without needing those rights so I can manually run them?)


I use TeXstudio to compile my documents and in the following case I keep receiving "error - Extra }, or forgotten $" followed by "error - Missing } inserted".  \begin{filecontents*}{source.bib}     @article{Geiger1908,        title = {An Electrical Method of Counting the Number of $\alpha$-Particles from Radio-Active Substances},        author = {Rutherford, E. and Geiger, H.},        journal = {Proceedings of The Royal Society A},        volume = 81,        issue = 546,        pages = {143 -- 161},        year = 1908,        url = {http://rspa.royalsocietypublishing.org/content/81/546/141}      } \end{filecontents*}  \documentclass{article}  \usepackage{amsmath,amssymb} \usepackage[style=phys,sorting=none,backend=bibtex]{biblatex} \addbibresource{source.bib}  \begin{document}  \cite{Geiger1908}  \printbibliography  \end{document}   From deleting contents section by section, I am certain the error come from the title field of the Geiger1908 entry. But what is giving the error?

I just spent a while identifying that this one reference in my bib file was preventing compilation after running bib mwe.  I get the error: ! Extra }, or forgotten $.. I found that it would compile when I changed the style to certain ones but not ieee nor phys.  The problem is the greek character \lambda in the title.  How can I get this citation to work with these biblatex styles?  \begin{filecontents}{\jobname.bib} @article{qiu_saltdependent_2011,   title = {Salt-Dependent DNA-DNA Spacings in Intact Bacteriophage $\ensuremath{\lambda}$ Reflect Relative Importance of DNA Self-Repulsion and Bending Energies}, % ieee does not like math mode commands   % title = {Salt-Dependent DNA DNA Spacings in Intact Bacteriophage lambda Reflect Relative Importance of DNA Self Repulsion and Bending Energies}, % runs fine   author = {Qiu, Xiangyun and Rau, Donald C. and Parsegian, V. Adrian and Fang, Li Tai and Knobler, Charles M. and Gelbart, William M.},   journal = {Phys. Rev. Lett.},   volume = {106},   issue = {2},   pages = {028102},   numpages = {4},   year = {2011},   month = {Jan},   publisher = {American Physical Society},   doi = {10.1103/PhysRevLett.106.028102},   url = {http://link.aps.org/doi/10.1103/PhysRevLett.106.028102} } \end{filecontents}  \documentclass{article}  \usepackage[ %  style=phys,       % ! Extra }, or forgotten $.   style=ieee,       % ! Extra }, or forgotten $. %  style=chem-acs,   % this one works %  style=science,    % this one works %  style=nejm,       % this one works %  style=nature,     % this one works %  style=chem-rsc,   % this one works %  style=chem-angew, % this one works   backend=biber ]{biblatex}  \addbibresource{\jobname.bib}  \begin{document}  test text here \cite{qiu_saltdependent_2011}.  \printbibliography  \end{document}   I compile this using the commands:  rm *.blg *.bib *.bbl *.aux -f && pdflatex mwe.tex && biber mwe && pdflatex mwe.tex