For those who have finished Attack on Titan season one: If you take all that you know into account and rewatch the first episode up to the the first 3 minutes, you will see that Eren was dreaming about the titans before he had ever met one. Do you think that Eren can live in another world or subconsciousness? Is there any explanation for him seeing this dream?

I can't believe I missed this three times. I went back to the beginning of AoT in episode 1 and noticed these scenes that occurred at the beginning of the episode. Eren is having some type of daydream or nightmare before waking suddenly with Mikasa leaning over him. Here are the still shots of it.                 What exactly were these visions? Were they some type of compressed/hidden memories? What was the farm house we saw? I am also pretty sure this wasn't in the anime but manga answers are welcome also. ;)  Note: I couldn't find a video link to give but there is a animated GIF version of it that I made . Also helpful but it is quite easy to see the scene if you want to since it occurs straight after the opening of AoT in episode 1.


I would like to know what model diagnostics I should be checking to ensure that a negative binomial (NB) regression for overdispersed data has meet all of the required assumptions. There is a very helpful post , however this post does not clarify what I should be looking for in the various plots (for example the residual plots). I would appreciate any clarification/confirmation on the following points:  1) What are the residual plots meant to look like? I understand that a negative binomial does not assume homogenous variances, so should I expect patterns in the residual plots?  2) Is it assumed that the residuals of a negative binomial model are normal? I have read conflicting information.  3) Do you check for influential points in the same way as for a ordinary linear regression (for example by using Cooks, dfbetas etc)?  4) I assume that muliticollinearity can still be an issue in a NB regression and should be checked. Is this correct?  5) Are there any other assumptions/diagnostics that I have missed?  I am working with R.

What diagnostic plots (and perhaps formal tests) do you find most informative for regressions where the outcome is a count variable?  I'm especially interested in Poisson and negative binomial models, as well as zero-inflated and hurdle counterparts of each. Most of the sources I've found simply plot the residuals vs. fitted values without discussion of what these plots "should" look like.  Wisdom and references greatly appreciated. The back story on why I'm asking this, if it's relevant, is .  Related discussions:


I am relatively new to programming and have started using VS 2013 instead of C# Express 2010.  I was curious what is the difference between debug and build folders in the bin directory?

Continuing from my , is there a comprehensive document that lists all available differences between debug and release modes in a C# application, and particularly in a web application?  What differences are there?


I have this bash script that prepares and sends an email using SSMTP. The line that sends the message looks like this:  /usr/local/sbin/ssmtp -vvvv $recipients < $mail_file   $recipients: the recipient list $mail_file: the mail file  How would I attach a "/var/logs/foo.log to this mail? NB: An SSMTP-only solution is needed.

I can send email from my gmail account by ssmtp in Linux now. But how can I attach files to the email?


I just love the technology and design underlying Stack Overflow. They way questions are written, answered, evaluated, the way users get reputation and privileges, how tags are created in a  way, etc.   I wonder if Stack Exchange has made part of this technology available to webmasters who would like to add a similar Question & Answer (Q&A) engine to their sites. I have seen that Stack Exchange has an , but as far as I know it is just for querying the websites and databases owned by the Stack Exchange team.  Does anybody know if Stack Exchange has released its Q&A engine, or if there is any similar technology available for free?

Do the SO admins have any plans to release the underlying code for SO at all? I appreciate that the code may be part of their competitive advantage, but it strikes me that the underlying system would work for any topic, not just programming.  I am not advocating this, just curious really, but figured it might be under consideration as most of the value in SO is in the questions and answers, which have been released under a relatively open CC license.


I know that questions related to 'limit' have been asked before here, and I have already referred to them. My question is somewhat different.  Here's my query:  select id,somecol from sometable where someval=2 order by id desc limit 3   I'm getting an error saying 'SQL command not properly ended'. How do I resolve this? If you need additional information, feel free to tell me so.

Is there a way to make an Oracle query behave like it contains a MySQL limit clause? In MySQL, I can do this: select *  from sometable order by name limit 20,10  to get the 21st to the 30th rows (skip the first 20, give the next 10). The rows are selected after the order by, so it really starts on the 20th name alphabetically. In Oracle, the only thing people mention is the rownum pseudo-column, but it is evaluated before order by, which means this: select *  from sometable where rownum <= 10 order by name  will return a random set of ten rows ordered by name, which is not usually what I want. It also doesn't allow for specifying an offset.


Assuming your company doesn't have 401(k) match, is it really a good idea to put money in 401(k)? Everyone says it's a good idea but I don't think so.   Why not save your money and buy a house/apartment instead (can rent it out for extra money)?  Some people even suggest to max out your 401(k), which is insane to me. I feel like ANY investment is better than dumping it in 401(k) in the long run (eg: dump into S&P 500)

Long time lurker, first time asker here.  I've seen some similar questions to mine here, but nothing exactly in the same circumstance.  I've seen almost near-consensus that the ordering for investing should be as so:   Fund an employer's 401(k) up until the point that you get the most out of their match. Fund a Roth IRA until you hit the yearly maximum. Fund your 401(k) until you reach that maximum. If you have further cash to invest, you have to put it in an account that is not tax-sheltered.   Right now, I'm contributing 10% of my paycheck to the company-sponsored 401(k), but the company does not offer any sort of match right now, but it is planned to resume in the near-future.  Given that there is no match, I was wondering if it would be a better idea suspend or reduce the amount I'm contributing to the 401(k) and move that into another investment vehicle, like a Roth IRA.  I also have the option in my 401(k) plan to put a portion of my money in a Roth 401(k).  I'm currently 22 and have no major debts --just daily expenses put on a credit card, which is always paid off at the end of the month.  I'm in the US.


In Grand Theft Auto V, how do you buy special cars? I just went into my garage and it said press right on the d-pad and it showed one special car. I was wondering how to buy more.

I went to the Garage that isn't the one at the safe house. I noticed that there was a prompt to press D-pad Right to access Special vehicles. So a list of one car opened and I selected it. This spawned me outside in a Eleghy RH8. Now not matter what I do to the car, I can go back to the garage and spawn a new one (Nothing custom saved from the previous afaik). So this seemed like a good way to always have a car other than the standard your Character has.  What I want to know, I how do I increase that list? Is that where buying cars comes into it?  So if anyone has already increased that special vehicle list, Please let me know how you did it :).


I am loading (appending) some html content to a page via jQuery, like below.  var html = "
"+content+"
"; var parent = "some element name";                    $('#'+parent).append(html);   When I try to attach an event (click) to above li element, it is not working. say li id is "event".  $('#event').click(function(){     alert('clicked'); });   Above code is not working. Can someone give me a solution or a workaround for this problem?

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.


I have an object which contains some data. How to know the memory occupied by the object in bytes in java?   SomeClass obj = new SomeClass(); obj.initialize(Data);   Here I have sample object 'obj' of SomeClass

I have an application that reads a CSV file with piles of data rows.  I give the user a summary of the number of rows based on types of data, but I want to make sure that I don't read in too many rows of data and cause OutOfMemoryErrors.  Each row translates into an object.  Is there an easy way to find out the size of that object programmatically?  Is there a reference that defines how large primitive types and object references are for a VM?  Right now, I have code that says read up to 32,000 rows, but I'd also like to have code that says read as many rows as possible until I've used 32MB of memory.  Maybe that is a different question, but I'd still like to know.


Is there a single word which means "of or relating to a particular era"?  I am looking for a word which means that something is limited to a particular era, as opposed to being universal.  Preferably it should be conjugated from the word era, but doesn't have to be.  As an example, things that only existed during the Stone Age, or practices that were only practiced before World War II, or beliefs that were prevalent before the Industrial Revolution, or technology which existed after the advent of computers, could be said to be [insert word here].  EDIT:  I have made several attempts to clarify what I am asking for, and I seem to be having trouble communicating.  "Particular" can mean "an individual object, as contrasted with a universal" - see definition 11 .  I am looking for a word that says a noun belongs to any one era, as opposed to belonging to all eras.  "Food" would not be described with this term, as "food" belongs to any era.  "Automobile" would, as "automobile" only existed during the Modern Era and not before.  "Uncharted territory" only existed in the era before satellite imagery (at least as far as Earth is concerned).  I am not looking for a word which is confined to any one particular era.  I am looking for a word which is confined to any one era in the set of all eras.

I've been wondering if there is a word to express that something was current at the time of its creation. It (in bold) should plug-in into a sentence similar to:     The results are based on an analyses that deal with the then-current methods.   As far as I can tell, both "contemporary" and "current" refer to now, whereas I would like to express something was "current" in the past.


I have encountered a problem or atleast that's what I think, I have recently started an ec2 instance and I changed my A records at Godaddy to point to my new elastic ip and it worked fine and then I signed up to Route 53 and changed the name servers at Godaddy and imported the DNS zone file to Route 53 and it all worked fine, but for some reason when I do whois search for my domain I get Godaddy's ip address, but my site loads fine.  Here is the link for whois records:   The reason this question aries in my mind is because I have seen other site's whois with ec2 and route 53 and they seem to be normal here is the example:   Thanks in advance  Ankit Yadav

It's often the case that I want to change name servers because my site is messed up.  Well, it takes a very long time for the name server to propagate.  Is there something in DNS, or registrar or anything I can do to speed that up.  Flushing my dns server using  and it rarely works


This gets the value of whatever is selected in my dropdown menu.  document.getElementById('tester').value   I cannot however find out what property to go after for the text that's currently displayed by the drop down menu. I tried "text" then looked at W3Schools but that didn't have the answer, does anybody here know?  For those not sure, here's the HTML for a drop down box.  <select name="tester" id="tester">     <option value="1">A skill</option>     <option value="2">Another skill</option>     <option value="3">Yet another skill</option> </select>   Thanks

This gets the value of whatever is selected in my dropdown menu.  document.getElementById('newSkill').value   I cannot however find out what property to go after for the text that's currently displayed by the drop down menu. I tried "text" then looked at  but that didn't have the answer, does anybody here know?  For those not sure, here's the HTML for a drop down box.  <select name="newSkill" id="newSkill">     <option value="1">A skill</option>     <option value="2">Another skill</option>     <option value="3">Yet another skill</option> </select>


When i run the query:  select * from table where UserID='21';   My sql result shows as below:  UserID FName  LName  StatusID  Company   Notes  21     Sam    Jones  21        AT&T      Applied 21     Sam    Jones  32        Verizon   In Process 21     Sam    Jones  36        T-Mobile  Applied   Is there a way for me to get the result in the following manner ?  UserID FName  LName  StatusID   Company                 Notes 21     Sam    Jones  [21,32,36] [AT&T,Verizon,T-mobile] [Applied,In Process,Applied]   Any tips in the right direction would be of great help too. Thanks.

Using MySQL, I can do something like:  SELECT hobbies FROM peoples_hobbies WHERE person_id = 5;   My Output:  shopping fishing coding   but instead I just want 1 row, 1 col:  Expected Output:  shopping, fishing, coding   The reason is that I'm selecting multiple values from multiple tables, and after all the joins I've got a lot more rows than I'd like.  I've looked for a function on  and it doesn't look like the CONCAT or CONCAT_WS functions accept result sets.  So does anyone here know how to do this?


I need to find a bounding box given 4 lat/long points and a bearing (as seen in the example picture). I always know which two points are lined up by the bearing (1 and 2 in the example), so I will always know the length of the bounding box.  The width however is arbitrary, with the points being anywhere along the lines (3 and 4 in the example).    My first thought is that I'll have to calculate the angles between the points (1 & 3, 1 & 4, 2 & 3, 2 & 4) and then use a series of "law of cosine" equations to calculate the corner points.  Is there a simpler way?  Would that even work?

As you see in the figure,  the question is:    How to find the minimum-area-rectangle (MAR) fitted on the given points?    and a supporting question is:    Is there any analytical solution for the problem?    (A development of the question will be to fit a box (3D) to a cluster of points in a 3D point cloud.)  As a first stage I propose to find the convex-hull for the points which reforms the problem (by removing those points are not involved in the solution) to: fitting a MAR to a polygon.  The required method will provide X (center of rectangle), D (two dimensions) and A (angle).      My proposal for solution:     Find the centroid of the polygon (see )   [S] Fit a simple fitted rectangle i.e., parallel to the axes X and Y   you may use minmax function for X and Y of the given points (e.g., polygon's vertices)  Store the area of the fitted rectangle Rotate the polygon about the centroid by e.g., 1 degree Repeat from [S] until a full rotation done Report the angle of the minimum area as the result   It looks to me promising, however the following problems exist:   choose of a good resolution for the angle change could be challenging, the computation cost is high, the solution is not analytical but experimental.


Because of English's lack of a gender neutral third person singular possessive pronoun, whenever the need for such a referent presents itself in the course of writing, we seem to be left with alternatives that are either cumbersome or otherwise awkward. There is the informal gender neutral "himself", and the informal singular "themself", and of course there is the more formal "himself or herself" which is both grammatically and politically correct but has the disadvantage of being incredibly annoying to write very quickly.  Are there any other ways to truncate this expression, particularly (but not limited to) ways that stay within the bounds of standard correct English usage and grammar?  For example, I thought of shortening it to "his or herself", but upon second thought this feels akin to what mathematicians would call can .

Is there a pronoun I can use as a gender-neutral pronoun when referring back to a singular noun phrase?  Each student should save his questions until the end. Each student should save her questions until the end.


How can I rotate matrix   |3 4 5 6 8| |5 4 3 2 6| |3 3 7 8 9|   to    |8 6 9|             |6 2 8| |5 3 7| |4 4 3| |3 5 3|   Because all algorithms I've seen was for N*N matrix.

Inspired by , say you have a 4x4 two dimensional array, write a function that rotates it 90 degrees. Raymond links to a solution in pseudo code, but I'd like to see some real world stuff.  [1][2][3][4] [5][6][7][8] [9][0][1][2] [3][4][5][6]   Becomes:  [3][9][5][1] [4][0][6][2] [5][1][7][3] [6][2][8][4]   Update: Nick's answer is the most straightforward, but is there a way to do it better than n^2? What if the matrix was 10000x10000?


<Code For Termset> [System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint.Taxonomy") $site = Get-SPSite http://invi28apps9c $session = New-Object Microsoft.SharePoint.Taxonomy.TaxonomySession($site) $termStore = $session.TermStores["Managed Metadata Service"] $group = $termStore.Groups["KB"] $termSet = $group.TermSets["IPS Document type"]      $terms = $termSet.GetTerms(100) $term = $terms | ?{$_.Name -eq "Docset"}     $web = Get-SPWeb http://invi28apps9c/DemoTeamSite $list = $web.Lists["KBDocument"]  $query = New-Object Microsoft.SharePoint.SPQuery  $query.ViewAttributes = "Scope='Recursive'"; $query.RowLimit = 2000  $caml = "<Where>    <Eq>      <FieldRef Name='DocIcon'/>      <Value Type='Computed'>.zip</Value>    </Eq>     </Where>"  $query.Query = $caml     do     { $listItems = $list.GetItems($query) $spQuery.ListItemCollectionPosition = $listItems.ListItemCollectionPosition  foreach($item in $listItems) {      $spItem = [Microsoft.SharePoint.SPListItem]$item;       $taxField =     [Microsoft.SharePoint.Taxonomy.TaxonomyField]$spItem.Fields["Document Type"]      $taxField.SetFieldValue($spItem,$term)     $spItem.Update() }    }   while ($spQuery.ListItemCollectionPosition -ne $null)   This code override the all old value with new value i need a code to append the new value with oldone.

I want to add one more value from the termset in the existing column value using Powershell script.     [System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint.Taxonomy") $site = Get-SPSite http://invi28apps9c $session = New-Object Microsoft.SharePoint.Taxonomy.TaxonomySession($site) $termStore = $session.TermStores["Managed Metadata Service"] $group = $termStore.Groups["KB"] $termSet = $group.TermSets["IPS Document type"]      $terms = $termSet.GetTerms(100) $term = $terms | ?{$_.Name -eq "Docset"} $web = Get-SPWeb http://invi28apps9c/DemoTeamSite $list = $web.Lists["KBDocument"] $query = New-Object Microsoft.SharePoint.SPQuery $query.ViewAttributes = "Scope='Recursive'"; $query.RowLimit = 2000 $caml = "<Where>          <Eq>          <FieldRef Name='DocIcon'/>          <Value Type='Computed'>.zip</Value>         </Eq>         </Where>" $query.Query = $caml   do {     $listItems = $list.GetItems($query)     $spQuery.ListItemCollectionPosition = $listItems.ListItemCollectionPosition     foreach($item in $listItems)     {         $spItem = [Microsoft.SharePoint.SPListItem]$item;         $taxField =     [Microsoft.SharePoint.Taxonomy.TaxonomyField]$spItem.Fields["Document Type"]         $taxField.SetFieldValue($spItem,$term)         $spItem.Update()     } } while ($spQuery.ListItemCollectionPosition -ne $null)


says it is a cookieless domain, but according to muMatrix sstatic.net is requesting 2 cookies

According to :  This is a fast, cookieless domain intended for static content delivered to the   However, all responses from the server set a cookie anyway: $ http https://sstatic.net/ HTTP/1.1 200 OK CF-RAY: 162b88245bc406be-LHR Cache-Control: max-age=604800 Connection: keep-alive Content-Encoding: gzip Content-Type: text/html Date: Sun, 31 Aug 2014 19:11:04 GMT ETag: W/"d5474fdfb5c3cf1:0" Last-Modified: Fri, 29 Aug 2014 18:20:12 GMT Server: cloudflare-nginx Set-Cookie: __cfduid=db60cc6f3e7f6482e37f1f2b85c9dc5881409512264375; expires=Mon, 23-Dec-2019 23:50:00 GMT; path=/; domain=.sstatic.net; HttpOnly Transfer-Encoding: chunked Vary: Accept-Encoding [...]  Is this intentional, or just funny? Edited to add: I understand that the cookie is used to track visiting browsers so that cloudflare can distinguish them from misbehaving hosts using the same or a nearby IP address. However, if the policy is intentionally to serve cookies, then the self-documentation of sstatic.net as a "cookieless domain" is incorrect.


Let $x_1= a(>0) , x_{n+1} = x_n+\frac{1}{x_n}$ for $n \in \mathbb{N}$. Determine whether $(x_n)$ converges or diverges.   We have $x_1= a > 0, x_2= a+\dfrac{1}{a},  (\dfrac{1}{a} >0)$  which implies that $x_2 > x_1$  Then assume for induction: $x_k < x_{k+1} < a+1 $ (since $\dfrac{1}{x_k} < 1$)  $$x_k + \frac{1}{x_k} < x_{k+1}+ \frac{1}{x_{k+1}} < a + 1$$  $$\implies x_{k+1} < x_{k+2} < a + 1$$  This shows that that $x_k < x_{k+1} \Rightarrow  x_{k+1} < x_{k+2}$. Therefore $x_n < x_{n+1}$ for all $n \in  \mathbb N$.  It follows by the monotone convergence theorem that $x_n$ is increasing and bounded.

Let $x_1=a>0$ and $x_{n+1}=x_n+\frac{1}{x_n} \forall n\in \mathbb N$.   Check whether the following sequence converges or diverges.   When I was in UG my teacher used derivative test for monotonicity.  $f(x)=x+\frac{1}{x}, f'(x)=1-\frac{1}{x^2}>0(x>1).$ So, $f(x)$ is increasing. How to prove the sequence is monotonic? Differentiation is coming after the sequences and series. By AM-GM inequality sequence is bounded below. $x_{n+1}=x_n+\frac{1}{x_n}\ge 2\sqrt{x_n.\frac{1}{x_n}}=2  \forall n\in \mathbb N$. How can I judge whether the sequence bounded above or not? Please help me.


I'm writing my thesis, and there are two sections that I do not wish to include in my table of contents: the abstract and the acknowledgements. Of course, LaTeX makes all the right choices for me, so that works out of the box.  However, several PDF viewers render a table of contents outside the document that allows for easy navigation while you're reading it. By default, this seems to be taking the table of contents from the document verbatim, and it works quite nicely. It would seem appropriate to include my abstract and acknowledgements in this list, though, for completeness..  Is there a way to do that? Or is this list really an exact copy of what I'm including in my LaTeX table of contents?

I would like to add a bookmark to the table of contents.  shows a method, but \pdfbookmark is not recognised as a command. This is my document header:  \documentclass[a4paper]{report} \usepackage[pdftex,bookmarks=true]{hyperref} \usepackage[pdftex]{graphicx} \usepackage[utf8]{inputenc} \usepackage{array}   I'm compiling the document with TexMakerX's PDFLaTeX option.


I'm looking for a way to group whilst also concatenating rows into a comma separated string. Example:  Name            Place Steve Jones     New York Steve Jones     Washington Albert Smith    Miami Albert Smith    Denver   to ...  Steve Jones    New York, Washington Albert Smith   Miami, Denver   Greatly appreciated

Consider a database table holding names, with three rows:  Peter Paul Mary   Is there an easy way to turn this into a single string of Peter, Paul, Mary?


In the seventh book, when Harry is escaping from Malfoy Mansion he grabs three wands from Draco Malfoy and uses a spell against the snatcher Scabior. The effects are described as more powerful than a single wand spell.  What is the downside to this "strategy", for it to not be commonly used among wizards as one can seemingly create more powerful spells?

As far as I am aware, in Harry Potter, a wand is simply a means of channelling magic.  In Harry Potter and the Deathly Hallows, at Malfoy Manor, Harry grabs three wands from Draco and performs a triple-spell on his enemy. The force of the triple spell wasn't divided by three. Instead, the books mentions that it was multiplied by three.  Thinking about it, he increased his magical power by channelling it through not one but three wands simultaneously. If this can be done by wands, why didn't wizards think of congregating wands into one single powerful tool? Or maybe using some special Wand-like tools to increase channeling of magic through a Wand?  I'm not sure if what Harry did was a pure accident but had I seen this effect produced by three wands then I think I'd have bound multiple wands together with rubber tape.


I create a two side document for a book. When I insert a image  after some text and frame that not fit on the page, the text between frame and image starts in bottom of  the page and created extra vertical space. But if I use for example the command \documentclass{report} this problem solved and the text starts immediately after frame no vertical space. How do I use the command \documentclass[11pt,twoside]{book}  does not create a vertical distance? This is the document:   %\documentclass[11pt]{report} \documentclass[11pt,twoside]{book}  \usepackage[a4paper, landscape, top=3cm,headsep=10pt, textwidth=15cm, right=3cm,  outermargin=7cm,     marginparwidth=5cm,        marginparsep=10pt]{geometry}  \usepackage{color} \usepackage[framemethod=TikZ]{mdframed} \usepackage{mdframed} \usepackage{fancyhdr}    \usepackage{graphicx} \usepackage{color} \usepackage{tikzpagenodes}                       \newmdenv[skipabove=7pt, skipbelow=7pt, rightline=false, leftline=true, topline=false, bottomline=true, backgroundcolor=black!5, linecolor=red, innerleftmargin=5pt, innerrightmargin=5pt, innertopmargin=5pt, leftmargin=0cm, rightmargin=0cm, roundcorner=0mm, linewidth=2pt, innerbottommargin=5pt]{dbox} \begin{document} some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text  \begin{dbox} some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text  \end{dbox} some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text  \begin{center}  \includegraphics[width=0.5\textwidth]{example-image}    \end{center}  \end{document}

I use \documentclass{book}.   If I use \flushbottom, I get messages of the sort Underfull \vbox (badness 10000) has occurred while \output is active []. See . These messages disappear when I use \raggedbottom but then of course the height of page content varies form page to page.   So there seems to be no optimal solution but a trade off between to "evils" ... What is the point of view of LaTeX pros on this matter? Which option should be chosen in this situation?


How can I set Thunderbird to launch automatically in the minimised or hidden-in-Launcher state?  First component of problem is starting it. I do not know which 'Command' is needed.  Second component of problem is keeping it minimised, or hidden from Launcher (given that it's unlocked from Launcher).

to set start Thunderbird in minimized mode at startup, but it wasn't helpful.   After following the instructions, I could not even start Thunderbird. So I was forced to start TB in safe mode to delete the "FireTray Plugin" and fix this issue. After that it started to work but it deleted all my email accounts and I had to do that chore all over again .  So is there any working way to start Thunderbird minimized on start-up?


I am trying to loop through all the players and   1> Output a line 2> Create an object  based on certain conditions. But I am getting a Stackoverflow error.  public void refuteSuggestion(Weapon w, Character c, int currentPlayerNumber) {     for (Player p : game.getPlayers()) {         if(currentPlayerNumber != 6) {             if (p.getNum() == currentPlayerNumber + 1) {                 Set<Card> cardSet = new HashSet<>();                 cardSet.addAll(p.getPlayerCards());                 Card card = (Card) getRandomObject(cardSet);                 System.out.println(card.getName(0));             } else {                 refuteSuggestion(w, c, currentPlayerNumber + 1);             }         }         else{             refuteSuggestion(w, c, 0);         }      }     System.out.println("No one refuted..."); }

What is a StackOverflowError, what causes it, and how should I deal with them?


If you take a look at , I think the context and content of the photo is okay, they are just all blurry. I'm using a tripod, 15 second exposure with a 18mm lens with the focus cranked all the way back, 1600 ISO.  Why is the sky out of focus? Anyone know any tips to help me out?

On the kit 18-55 lens that came with my Nikon D5100 I have noticed that when trying to focus on infinity for shots in dark conditions (star-trails, etc) the lens tends to move past infinity out of focus and need to be brought back a little to get a clear infinity focus point.  Is there a good trick for getting a clear infinity focus when in pitch dark conditions?


This question is from Calculus by Spivak, Chapter 8 on Least Upper Bounds:     Suppose that $f$ is a function such that $f(a) \leq f(b)$ whenever $a<b$.  Prove that $\lim_{x_\to a^-} f(x)$ and $\lim_{x_\to a^+} f(x)$  both exist.     Worked on it for a while but didn't get anywhere.   Any help would be appreciated.

Show that one-sided limits always exist for a monotone function on an interval $[a,b]$.  Me attempt:  1) If a function is monotone on an interval $[a,b]$, then $f(a)\le f(x) \le f(b)$ for $x\in[a,b]$. Therefore if there exists left-hand (right-hand) limit of this function at a given point, then it must be finite. Now we must show that a both left-hand and right=hand limits exist. We use the fact that if we take a sequence $(x_n)\rightarrow c^{+} \in [a,b]$ then $f(x_n)$ is bounded and monotone and therefore it is convergent.


Please help me understand a difference between phrases "resources monitoring" vs "monitoring of resources", "characteristics of devices" vs "devices characteristics" and the like.

I would be very grateful for some advice on how to decide whether to use an attributive noun or the "of genitive" (periphrastic genitive).  It seems to me that an attributive noun is generally preferable, except when it leads to ambiguity, often due to the combination of several modifiers with mixed dependent relationships.  Additionally, the of-genitive, when used stand-alone, seems to impart a more formal tone, a higher register.  Simple examples (preferred first, less-preferred second):  The department secretary vs. the secretary of the department.  But:  The excellent secretary of the department vs. the excellent department secretary.  Any additional guidelines would be most welcome.


I am learning openssh and I found that the fundamental of openssh has 3 components.   Cipher - to encrypt the data Message Authentication Code (MAC) - to ensure data integrity that is data is not changed while it was doing a journey to the end user. Key exchange -  It is used for session  key exchange.   Questions:   Is there any other important part for configuration in openssh? While generating the openssh key, how I do I tell what cipher, MAC and key exchange it should use?

Security team of my organization told us to disable weak ciphers due to they issue weak keys.    arcfour   arcfour128   arcfour256   But I tried looking for these ciphers in ssh_config and sshd_config file but found them commented.   grep arcfour * ssh_config:#   Ciphers aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc   Where else I should check to disable these ciphers from SSH?


I've got a .txt file like this:    I want to get it like this:    I'm thinking I need to replace /(beginning of line)(new line character)/.

I want to remove all empty lines from a file. Even if the line contains spaces or tabs it should also be removed.


When I go to type a new question in any Stack Exchange site, it automagically suggests 'Questions that may already have your answer'. What technology is this leveraging to generate these results on the fly? Boolean search? Word or doc2vec?  Example:

When I complete my title of question, the related questions are listed below. I am confused how can SO select the questions, there are no key words or someting like that.


hi,i know these, my mean that the magnitude magnetic field B formule that i find here  my question is that we consider Coulomb force in  but don't consider the electromagnetic field? An accelerated charge has  magnetic field according Maxwell's theory.   Why don't we consider the electromagnetic field in the equations of Bohr's theory of atoms?

I'm having trouble understanding the simple "planetary" model of the atom that I'm being taught in my basic chemistry course.   In particular,    I can't see how a negatively charged electron can stay in "orbit" around a positively charged nucleus. Even if the electron actually orbits the nucleus, wouldn't that orbit eventually decay?  I can't reconcile the rapidly moving electrons required by the planetary model with the way atoms are described as forming bonds. If electrons are zooming around in orbits, how do they suddenly "stop" to form bonds.     I understand that certain aspects of quantum mechanics  to address these problems, and that there are  of atoms. My question here is whether the planetary model itself addresses these concerns in some way (that I'm missing) and whether I'm right to be uncomfortable with it.


When checked in calculator it is 1. But how to prove it? Also it is not a normal addition like $x+ \frac1x$ which needs direct rationalization. So I just need something to proceed.

Tell me please, how calculate this expression:  $$ \sqrt[3]{2 + \sqrt{5}} + \sqrt[3]{2 - \sqrt{5}} $$  The result should be a number.  I try this:  $$ \frac{\left(\sqrt[3]{2 + \sqrt{5}} + \sqrt[3]{2 - \sqrt{5}}\right)\left(\sqrt[3]{\left(2 + \sqrt{5}\right)^2} - \sqrt[3]{\left(2 + \sqrt{5}\right)\left(2 - \sqrt{5}\right)} + \sqrt[3]{\left(2 - \sqrt{5}\right)^2}\right)}{\left(\sqrt[3]{\left(2 + \sqrt{5}\right)^2} - \sqrt[3]{\left(2 + \sqrt{5}\right)\left(2 - \sqrt{5}\right)} + \sqrt[3]{\left(2 - \sqrt{5}\right)^2}\right)} = $$  $$ = \frac{2 + \sqrt{5} + 2 - \sqrt{5}}{\sqrt[3]{\left(2 + \sqrt{5}\right)^2} + 1 + \sqrt[3]{\left(2 - \sqrt{5}\right)^2}} $$  what next?


In the first book of the Harry Potter series we are told that Harry has piles of galleons inside his vault at Gringotts. Why didn't Harry draw a few gold coins from his safe and sold them in the muggle world to earn some money? That way he could've improved his quality of life in the muggle world quite a bit  I know the subject has been approached in other questions, but the closest answer I got was what would happen if Harry bought silver in the muggle world and sold it for gold in the magic world. I want to know what would happen exactly in this case.

Why doesn't the huge difference between the muggle and wizard gold exchange rates lead to the collapse of the wizard economy?  We know, that 17 silver Sickles is worth a golden Galleon. However, in the muggle world, you can get more than 50 kg silver for one kg of gold.   Even if Sickles were the same size as Galleons (if I remember correctly, they are much smaller), and the gold content of Galleons was the same or even less than typical muggle gold coins, it would still be highly profitable, to buy silver in the muggle market, exchange it for gold in the wizard market, and sell the gold in the muggle market.  How is it that no one does it? It could ruin the wizarding economy in a very short time, or at least draining most the gold out of it and altering the exchange rates between Galleon and Sickle?  We all know that magic can't create money or precious metals...


I need to run a SOQL query (in Workbench) to identify Profiles that contain particular User Permissions (for example, "Manager Internal Users", etc). I assumed this would be simple, but I'm having a tough time of it. Has anyone done this before?

Profile has a setting "Modify All Data". How can we access "Modify All Data" in apex and in which object it is stored.


I have been attempting to run Raring Ringtail (13.04) on my Windows 7 computer, just to see how it is. I'm not going to replace my whole OS... (yet.) Anyway, my BIOS doesn't support boot from USB so I am attempting to burn to DVD. I have it downloaded and used the Windows Disc Image Burner to attempt to burn it to my DVD. When I try to burn it, it gives me this error:     The selected disc image file isn't valid.   Any thoughts?

I've just downloaded a CD image of Ubuntu. I know the installer has a check CD option, but how can I check that the image is good before burning it to CD?


I am beginner in Laravel. I make my project in Laravel 5.8. I have website in domain:   I need .htacess with options: - redirect from http to https, - redirect from www.myname.com to myname.com  How can I make this?

I would like to redirect www.example.com to example.com. The following htaccess code makes this happen:  RewriteCond %{HTTP_HOST} ^www\.example\.com [NC] RewriteRule ^(.*)$ http://example.com/$1 [L,R=301]   But, is there a way to do this in a generic fashion without hardcoding the domain name?


I'm trying to optimize a chunk of C code I'm writing and I've noticed that products are way faster than divisions. This is a well known issue and very well explained pretty everywhere.  With that optimization in mind, given that I'm dividing by the same number over and over again, I tried to compute the inverse of that number just once and then multiply by it. However, I noticed that the results were not exactly the same.  I'va managed to write a really simple example in which the differences I'm talking about are clear:  #include <stdio.h>  int main(){     double D = 1.1891;     double Dinv = 1./D;      double a = 23123.1234;     double b = 156.123871;      printf("1/D    = %.60f\n", 1./D);     printf("Dinv   = %.60f\n", Dinv);     printf("1/D == Dinv? %s\n\n", 1./D == Dinv ? "True" : "False");      printf("a/D    = %.60f\n", a/D);     printf("a*Dinv = %.60f\n\n", a*Dinv);     printf("a/D == a*Dinv? %s\n\n", a/D == a*Dinv ? "True" : "False");      printf("b/D    = %.60f\n", b/D);     printf("b*Dinv = %.60f\n\n", b*Dinv);     printf("b/D == b*Dinv? %s\n\n", b/D == b*Dinv ? "True" : "False"); }   As you can see, I test whether a/D is equal to a*Dinv, where Dinv = 1/D, and the same test with b. The output of this code in my machine is the following:  1/D    = 0.840972163821377516335076052200747653841972351074218750000000 Dinv   = 0.840972163821377516335076052200747653841972351074218750000000 1/D == Dinv? True  a/D    = 19445.903120006725657731294631958007812500000000000000000000000000 a*Dinv = 19445.903120006729295710101723670959472656250000000000000000000000  a/D == a*Dinv? False  b/D    = 131.295829619039608360253623686730861663818359375000000000000000 b*Dinv = 131.295829619039608360253623686730861663818359375000000000000000 b/D == b*Dinv? True   As you can see in the output, the tests results are different: we can see that a/D is not equal to a*Dinv but that b/D is exactly the same as b*Dinv. This behaviour changes with the numbers tested (a and b are not numbers I'm really interested in, they are just examples I tested). My questions are:   Why are a/D and a*Dinv different? Why some numbers pass the test and others don't? Can we say something about the accuracy? I mean, given a/D and a*Dinv, can we say any of them is more accurate than the other?   Thank you!

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


Note to moderators: this is not a login item. This is not a LaunchAgent. Please stop marking this as a duplicate. Thank you. Apple has seemingly given 3rd party app developers more control over my OS than me, the user and owner of this computer. Can someone please explain how to disable 'modern login items'? The only work-around I know of currently is to edit the app bundle which did work with one app but I cannot guarantee will work with others, plus Apple will probably get POed that users have control over their Macs and close this loophole.

Spotify auto-launches even if I tell it not to from within its own preferences. It does not seem to be started through any of the "classic" means of auto starting a program - i.e. Login Items or user or global launch agents. Is there any way to turn off this sort of 'modern login items' in general? (official name: shared helper applications) Extra points for preventing auto-launching of any apps, especially after MacOS crashed.


After I did: apt install git  terminal said that: After this operation, 43.3 MB of additional disk space will be used.  I agreed. After installation I did: df -h  and saw that 43.3 MB was really used. Then I did: whereis git  and found out two paths where git is placed: git: /usr/bin/git /usr/share/man/man1/git.1.gz  To know how much space does it take on my hdd, I did: ls -la /usr/bin/git -rwxr-xr-x 1 root root 3212468 Apr 19 20:19 /usr/bin/git ls -la /usr/share/man/man1/git.1.gz -rw-r--r-- 1 root root 15170 Apr 19 20:19 /usr/share/man/man1/git.1.gz  So, I found approximately 3 MB in first path and 15 KB in second path. The question is: Where is the place of other 40 MB that git installation used on my hdd?

I want to know where I can find my installed application when I installed it on Ubuntu using package manager.  I installed RabbitMQ and ran locate rabbitmq which gave me following result:  /home/anupamg/.m2/repository/com/rabbitmq /home/anupamg/.m2/repository/com/rabbitmq/amqp-client /home/anupamg/.m2/repository/com/rabbitmq/amqp-client/1.7.2 /home/anupamg/.m2/repository/com/rabbitmq/amqp-client/1.7.2/_maven.repositories /home/anupamg/.m2/repository/com/rabbitmq/amqp-client/1.7.2/amqp-client-1.7.2.jar /home/anupamg/.m2/repository/com/rabbitmq/amqp-client/1.7.2/amqp-client-1.7.2.jar.lastUpdated /home/anupamg/.m2/repository/com/rabbitmq/amqp-client/1.7.2/amqp-client-1.7.2.jar.sha1 /home/anupamg/.m2/repository/com/rabbitmq/amqp-client/1.7.2/amqp-client-1.7.2.pom /home/anupamg/.m2/repository/com/rabbitmq/amqp-client/1.7.2/amqp-client-1.7.2.pom.lastUpdated /home/anupamg/.m2/repository/com/rabbitmq/amqp-client/1.7.2/amqp-client-1.7.2.pom.sha1 /home/anupamg/Downloads/rabbitmq-server-generic-unix-2.4.0.tar.gz


First Name  Phone Number Email  Address    For the above values, what would be the   Type Length Collation Index   And why, as well as - is there a guide somewhere that I can use to determine these answers for myself?  Thanks!

Do you know a good source to learn how to design SQL solutions?  Beyond the basic language syntax, I'm looking for something to help me understand:   What tables to build and how to link them How to design for different scales (small client APP to a huge distributed website) How to write effective / efficient  / elegant SQL queries


Consider a vector space $V$ of dimension $d$, and suppose you are given $d-1$ linearly independent vectors $v_1, \dots, v_{d-1}$. Is there a simple explicit expression for a vector $v_d$ which completes the basis?  In dimensions two and three this is easy, for example in three dimensions one can just take the cross product. But I don't know what to do in, say, four or five dimensions.  To make the answer less arbitrary let's say the vectors $v_1, \dots, v_{d-1}$ are already orthonormal and you are trying to find the last orthonormal vector $v_d$ (there should only be two possibilities).  What I'm looking for is an explicit formula that can be easily computed, like the three-dimensional case.

In 3 dimensions it is possible to find a vector c (one of infinitely many) perpendicular to two vectors a and b using the cross product. Is there any way of extending this to 4 dimensions, i.e. given three vectors a, b, and c finding a vector d perpendicular to all of them?  I realize that this can be done by solving the equation system:  dot(a, d) = 0 dot(b, d) = 0 dot(c, d) = 0   and imposing an additional constraint, for instance setting the length of d to or one of its components to 1, but is there a way of doing this that does not involve solving an equation system?


I am having trouble with the following proof:     For every positive integer $n$: $$1 + \frac{1}{4} + \frac{1}{9}+\cdots+\frac{1}{n^2}\leq 2-\frac{1}{n}$$   My work: I have tried to add $\frac{1}{(k+1)^2}$ to $2-\frac{1}{k}$ in the inductive step and reduce it down to $2-\frac{1}{k+1}$ but cannot do so. I am beginning to think that my entire approach is wrong.

Question:     Let $P(n)$ be the statement that $1+\dfrac{1}{4}+\dfrac{1}{9}+\cdots +\dfrac{1}{n^2} <2- \dfrac{1}{n}$. Prove by mathematical induction. Use $P(2)$ for base case.   Attempt at solution:  So I plugged in $P(2)$ for the base case, providing me with $\dfrac{1}{4} < \dfrac{3}{2}$ , which is true.   I assume $P(n)$ is true, so I need to prove $P(k) \implies P(k+1)$.   So $\dfrac{1}{(k+1)^2} < 2 - \dfrac{1}{k+1}$.  I don't know where to go from here, do I assume that by the Inductive hypothesis that it's true?


A few weeks ago my chromebook got crazy and its OS got corrupted for an unknown reason. I'd like to instal Ubuntu 12.04 64bit on it using a bootable USB pendrive, but since it is not the usual installation that I am used to on PCs/laptops....I am a bit stuck and dont even know where to start. I'd simply like to make a pendrive that I can make bootable for my chromebook and do the installation.

I have installed Ubuntu 13.04 on my desktop (runs like a charm). Then I used Crouton to install Ubuntu 12. 04 on my chromebook samsung (ARM). It also works quite well.  Here comes my question. Can we have a true Ubuntu (preferably 13.04) on my ARM chromebook?  It seems that the Crouton/Ubuntu is not 100% the real thing.  The best option would be to have the full Ubuntu 13.04 and remove the Chrome OS.


Can I marry a british citizen  while I am in UK on standard visitor visa  though rules say I can't?

I am planning to go to the UK with a standard visitor visa.  I will meet my girlfriend there. If we all of a sudden decide to marry, can we?   My girlfriend is Lithuanian who just works and lives there; she doesn't have a residence permit. I am a Palestinian who lives in Lebanon


According to  , it's a O(1) operating for an array to get length in java. As String is an array of char, I think it is the same.  But when I do a simple test:  public static void main(String args[]) {     String a = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa";     for (int i = 0; i < 23; i++){         long start = System.nanoTime();         int l = a.length();         long end = System.nanoTime();         System.out.println("length: " + l + " cost: " + String.valueOf(end - start));         a = a + a;     } }   And get  length: 100 cost: 395 length: 200 cost: 395 length: 400 cost: 395 length: 800 cost: 394 length: 1600 cost: 395 length: 3200 cost: 394 length: 6400 cost: 395 length: 12800 cost: 394 length: 25600 cost: 394 length: 51200 cost: 395 length: 102400 cost: 789 length: 204800 cost: 789 length: 409600 cost: 1974 length: 819200 cost: 790 length: 1638400 cost: 3158 length: 3276800 cost: 3553 length: 6553600 cost: 4342 length: 13107200 cost: 3552 length: 26214400 cost: 2368 length: 52428800 cost: 6711 length: 104857600 cost: 3158 length: 209715200 cost: 1974   It seems the length operating cost much more when there are more than 400000 characters.  Did I miss or misunderstand something?

How do you write (and run) a correct micro-benchmark in Java?  I'm looking for some code samples and comments illustrating various things to think about.  Example: Should the benchmark measure time/iteration or iterations/time, and why?  Related:


I currently have a graph with no numbers on the axis and I wish to have '0' and 't' on the x axis where '3' and '11' should be, thanks in advance. Current graph:  \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{pgfplots} \usepackage{tikz} \begin{document}  \begin{tikzpicture} \begin{axis}[domain=1:11, xmin=0, xmax=15, no marks, samples=100, xlabel=time $t$, ylabel=space $x$] \pgfplotsset{ticks=none} \addplot {sqrt(x)+sin(\x r/2)}; \end{axis} \end{tikzpicture}  \end{document}

I'm very new to the TikZ environment. I'm trying to replace the "4" in the following graph by a Greek letter (ideally a \tau^{*}). Any idea ? Thanks in advance  \begin{document} \begin{tikzpicture}[     declare function={             gamma(\x)= 0.25*\x*\x*exp(-0.5*\x);     } ]  \begin{axis}[   no markers, domain=1:13, samples=200,   axis lines*=left, xlabel=$\tau$, ylabel=$V(\tau)$,   every axis y label/.style={at=(current axis.above origin),anchor=south},   every axis x label/.style={at=(current axis.right of origin),anchor=west},   xtick={4}, ytick=\empty,   enlargelimits=false, clip=false, axis on top,   grid = major,       xmin=0, ymin=0, ] \addplot [very thick,cyan] {gamma(x)};  \end{axis} \end{tikzpicture}  \end{document}


Let $X$ be a set.  What is the set of functions from $\emptyset$ into $X$ .  What is the set of functions from $X$ into $\emptyset$.  My answers:    It is not a function because there is not a any element in set of domain. It is empty set because for all $x\in X$ there is no any element in the set of range.   Can check you my answer?

$(a)$ How many functions are there from a nonempty set $S$ into   $\emptyset$?      $(b)$ How many functions are there from $\emptyset$ into an arbitrary   set $S$?   This question seems very simplistic but I don't know the answer. I think for $(a)$ that there isn't a function that maps a set $S$ into a empty set? For $(b)$ I assume it to be all function that map the empty set to an arbitrary set since all sets contain the empty set?


Hi I am sorry if this is a repeat, I tried to find a similar problem but I could not. I am making Cayley tables and I quite like the ease of the code I am using, but something strange keeps happening. I put the code in for the table, then write some words and then put the code for another table, but when I compile, both tables are above the words that were supposed to be in the middle.   example:  \begin{table}     \begin{tabular}{r|r|r|r|}     + & e & a & b\\     \hline     e & e & a & b\\     \hline     a & a & ? & ? \\     \hline     b & b & ? & ? \\     \hline     \end{tabular} \end{table}  words words words  \begin{table}     \begin{tabular}{r|r|r|r|}     + & e & a & b\\     \hline     e & e & a & b\\     \hline     a & a & ? & ? \\     \hline     b & b & ? & ? \\     \hline     \end{tabular} \end{table}  But when I compile the tables are on top and the "words words words" is under both tables.   Any help would be appreciated. This is my first post so I hope I did everything correctly.

How to influence the position of float environments like figure and table in LaTeX?   This is a general question and should collect useful answers for all users. I hope we can use this as a reference


I need to use the point "." as a decimal separator, but something strange happens, I write: \documentclass[oneside]{scrbook} \usepackage[spanish, es-tabla]{babel} \usepackage{pgfplotstable}  \begin{document} \pgfkeys{/pgf/number format/.cd,fixed,precision=2,dec sep={n}} \pgfmathprintnumber{12.3456} \pgfkeys{/pgf/number format/.cd,fixed,precision=2,dec sep={.}} \pgfmathprintnumber{12.3456} \pgfkeys{/pgf/number format/.cd,fixed,precision=2,dec sep={,}} \pgfmathprintnumber{12.3456} \end{document}   the first one works as expected, but the others only show me the comma, why does this happen? am i forgetting something?, I tried also with use period,but it is the same.

I'm using Babel for writing a document in spanish.  However, it uses a comma instead of a period as a decimal marker (i.e. 3,14 instead of 3.14).  Is there any way to reverse the behaviour? I prefer the period, as it's done in english.   Also, I'd prefer it if it's something that can just be added to the preamble, instead of having to do it each time I want to write a number with a decimal part (like putting the period between brackets, for instance).


When I read a moderator inbox item, like this one:    … it still shows as an unread inbox item in chat and the mobile view:    I read the question, so it should be marked as such in the "old style" inbox.

Whenever you receive a (noteworthy) badge, answer notification, bounty reminder, etc. you get either a new message in your top-bar global inbox or an achievement notification. These events all used to be sent to the old 'notifications' message box in the previous top-bar design.  Looking at the inbox or achievements drop-down marks those events as read. However, when you visit a Stack Exchange site on mobile, the mobile notifications box still shows all of these events as unread. The same is also true in the other direction, looking at the notifications on mobile first leaves the same messages unread on the main site.  Clearly the mobile UI still uses the old notifications architecture, and this doesn't talk to the new achievements / inbox channels.  Can the mobile notifications be marked as read when I look at them on the main site, and vice versa?


I have 2 lists:   name = ["Stirling","Lana","Cyril","Pam","Ray","Cheryl"]  alias =["Duchess","Truckasaurus","Chet","Cookie Monster","Gilles de Rais","Cherlene"]   I need to create a dictionary such that the name is the key and alias is the value, in this particular way:  Stirling : Duchess   Also I have to use the for loop to do so.

Imagine that you have the following list. keys = ['name', 'age', 'food'] values = ['Monty', 42, 'spam']  What is the simplest way to produce the following dictionary? a_dict = {'name': 'Monty', 'age': 42, 'food': 'spam'}


This is what I'm trying to do:  Write a Java program that reads a sequence of student records and prints the total score for each student. Each record has the student’s first and last name, followed by a sequence of test scores and a sentinel of –1. The sequence is terminated by the word END. Here is a sample sequence:    Harry Morgan 94 71 86 95 -1  Sally Lin 99 98 100 95 90 -1  END     Please note:  • Hint: you need nested loops  • Validate the user’s entry as needed • Don’t use arrays, you don’t have to save your values.   Here is my code so far(when I run it, it infinitely loops, my "END" won't stop the loop):      import java.util.Scanner;      public class loopshelp {            public static void main(String[] args) {                    Scanner keyboard = new Scanner(System.in);                    Scanner input = new Scanner(System.in);                     String name = "0";                    while(name != "END") {                         int sum = 0;                         String f_name = "";                         String l_name = "";                         System.out.println("Enter student's first name[enter 'END' when done]");                         f_name = input.next();                         System.out.println("Enter student's last name[enter 'END' when done]");                         l_name = input.next();                         name = f_name;                         int value = 0;                         while (value != -1) {                              System.out.println("Enter a value[enter -1 to stop]");                              int num = keyboard.nextInt();                              sum = sum + num;                              value = num;                              }//while value != -1                        System.out.println(f_name + " " + l_name + ": "+ (sum + 1));                        }//while f_name != end                    keyboard.close();                   input.close();                   }             }

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


I am currently trying to change the colour of an imageview. I am trying to do this from a fragment, and it works fine until I switch activities. When I return to the fragment that I use to change the colour of the image I get this error,  Attempt to invoke virtual method 'int android.content.Context.getColor(int)' on a null object reference   I use the following code to change the colour of my image,  imgUpvote.setColorFilter(ContextCompat.getColor(getContext(), R.color.lGrey));   Anyone know a fix? This error only occurs when I switch activities, thanks for any answers.  EDIT:here is where code is located,  firebaseRecyclerAdapter = new FirebaseRecyclerAdapter<postsGetInfo, postsGetInfoViewHolder>(postsGetInfo.class, R.layout.posts_layout,postsGetInfoViewHolder.class,postRef) {                 @Override                 protected void populateViewHolder(final postsGetInfoViewHolder viewHolder, postsGetInfo model, int position) {                     final String postKey = getRef(position).getKey();                     UpdateTheDisplayVotes(postKey); //Displays the votes at the start of creation                     postRef.removeEventListener(VoteListener);                      defaultVote = VotesRef.addValueEventListener(new ValueEventListener() {                         @Override                         public void onDataChange(DataSnapshot dataSnapshot) {                             if (!dataSnapshot.hasChild(postKey)) {                                 VotesRef.child(postKey).child(current_user_id).child("votes").setValue("none");                             }                             String voteStatus = dataSnapshot.child(postKey).child(current_user_id).child("votes").getValue().toString();                            if (voteStatus.equals("upvoted")){                                 ImageView btnUpvote = viewHolder.myView.findViewById(R.id.imgUpvote);                                 ImageView btnDownvote = viewHolder.myView.findViewById(R.id.imgDownvote);                                btnUpvote.setColorFilter(ContextCompat.getColor(getActivity(), R.color.lBlue));                                 btnDownvote.setColorFilter(ContextCompat.getColor(getActivity(), R.color.lGrey));                             }if (voteStatus.equals("downvoted")){                                 ImageView btnUpvote = viewHolder.myView.findViewById(R.id.imgUpvote);                                 ImageView btnDownvote = viewHolder.myView.findViewById(R.id.imgDownvote);                                 btnUpvote.setColorFilter(ContextCompat.getColor(getActivity(), R.color.lGrey));                                 btnDownvote.setColorFilter(ContextCompat.getColor(getActivity(), R.color.Black));                             }if (voteStatus.equals("none")){                                 ImageView btnUpvote = viewHolder.myView.findViewById(R.id.imgUpvote);                                 ImageView btnDownvote = viewHolder.myView.findViewById(R.id.imgDownvote);                                 btnUpvote.setColorFilter(ContextCompat.getColor(getActivity(), R.color.lGrey));                                 btnDownvote.setColorFilter(ContextCompat.getColor(getActivity(), R.color.lGrey));                             }                         }

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?


Im very stuck on where to go with this question. The examples in class used complex numbers, where as this doesn't seem to need them. Im aware that Zs = Zl, but does Zl=Cl+Rl? Any help with how to approach this question would be great

So I've done this so far, and  know one of the components is a 50ohm resistor. However I dont know where to go from here. How do i decide if its an inductor or a capacitor? This is a past paper exam so im aware the other component is a 125nH inductor... but how do i get to that?


When I press the downvote button and when the message pops up, it should overlas the tag(s). But in Arqade, some parts of the tag sticks out from the blue pop up and making it a bit ugly. I don't know if it occurs on other sites, but in Arqade there's this bug. (Please see the .)

When you vote 35 times in a day and you only have five votes left, you start getting a warning popup that you are almost at your limit.  When this warning appears in the same place as the tags, part of the tags shows through it.        This screen shot was taken on webmasters.    This is also a problem on Web Applications: :        and :        This also happens on  as described .  Here is a .  It is also happening on the meta sites associated with the sites that have the problem.   For example, here is web apps meta site:    This a minor annoyance that has been around for at least a couple years.


So I want to play Pubg lite, is there anyway to play it using ubuntu?  And if I installed windows 10 in virtual box is it possible to play it smoothly?   Ubuntu version is 19.04

Currently I am using Windows 8. I have a virtual box with Ubuntu set up for development. Aside from that I sometimes just want to relax and enjoy a game (Battlefield 3, Skyrim, Saints Row: The Third, etc) after hours of research and development.   I want to have my main machine with linux, and install windows on a virtual box.   What I want to know, from those who have tried or seen it:   How is the performance? I've never been clear on this but, even if I install the correct drivers on the windows box, will it matter? At least on this part, I'm just curious how it offload. Which drivers will matter the most.  Mouse and Keyboard integration, I'll be honest, sometimes the mouse integration in Virtual Box is a bit frustrating, mouse cursor disappears, etc.    I'm not sure if this is the right place to ask. I'm merely trying to come back to linux, yet I'm a PC gamer so I can't throw away Steam. I'm aware of the linux client, but most of those games won't work.   If there's a right place to ask this whether StackExchange sites or any other site let me know.   Cheers and I hope those in the same position find a middle ground.


I was wondering if there is a formula that could generate the values of the sides of a triangle where his area equals to his perimeter. I only found that if the triangle is equilateral then  $$l=\frac{12}{√3}$$ where $l$ is the side of the triangle.  Thanks for support  Peterix  P.S. There is a similar problem

Find all triangles of which perimeter and area are numerically equal. I have got    solution for right angle triangles but not of others


I have a Triban RC500 bike. Apparently it's wheels can take wider tyres. A lot of internet info suggests that this  is a good thing to do for comfort and perhaps for better rolling resistance too? My questions is, will I need to change to different inner tubes or the current tubes are OK to go from 28mm to 32/35 mm tyres?

I recently got a puncture and when I went to replace the inner tube I discovered that I'd bought the wrong size tube. My tyre is 700 x 40c, the tube is 700 x 28-35c.  What is likely to happen if I use this tube? Will the tube explode when I attempt to inflate it?


I have the following method:     public Object[][] getTableData(JTable table) {     DefaultTableModel dtm = (DefaultTableModel) table.getModel();     int nRow = dtm.getRowCount(), nCol = 3;     Object[][] tableData = new Object[nRow][nCol];     for (int i = 0; i < nRow; i++) {         tableData[i][0] = dtm.getValueAt(i, 5);         //System.out.print(tableData[i][0] + " ");         tableData[i][1] = dtm.getValueAt(i, 4);         //System.out.print(tableData[i][1] + " ");         tableData[i][2] = (dtm.getValueAt(i, 2)) + " " + `(dtm.getValueAt(i, 3));`         //System.out.print(tableData[i][2] + " ");         //System.out.println();     }     return tableData; }   I also have the following method:      public Object[] head(JTable table) {         JTableHeader th = table.getTableHeader();         TableColumnModel tcm = th.getColumnModel();         Object[] headdata = new Object[3];          headdata[0] = tcm.getColumn(5).getHeaderValue();         headdata[1] = tcm.getColumn(4).getHeaderValue();         headdata[2] = tcm.getColumn(2).getHeaderValue();         //System.out.println(headdata[x]);         list = new ArrayList<>(Arrays.asList(headdata));//list refers to column names //System.out.println(list.get(0) +" "+ list.get(1) +" " +  list.get(2));         return headdata;     }   I want to combined the 2 methods into a single method however one return type is Object[] and another return type is Object[][]  How could i combine the methods so i bring back 2 return types and bring back return tableData and return headdata from the same method.  I am 2 years amateur experienced in Java.

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


Why does find . -name "*.jav" work while find . -name *.jav does not work if there are more than 1 .jav files? What do the " " do and why is the "*.jav" not interpreted as a literal string?

Imagine a source tree. There are xml files everywhere.  But since there is a XYZ.xml at the root of this tree it won't find my xml files.  find -iname *.xml   returns  ./XYZ.xml   instead of  ./XYZ.xml ./a/b/c/bob.xml ./b/d/top.xml


I have been trying to 'range standardise' or normalise my raster values from 0-100 and I know how to do this mathematically:     ("raster"-min("raster"))/(max("raster")-min("raster"))*100   and I have input this equation into the raster calculator using both the min() and max() and the .minimum and .maximum syntax.   Why are these not working for me? ArcGIS 10.3.1

In ArcGIS 10.1 I'm trying to normalize a section of a DEM (digital elevation model) from original values to values ranging from 0 to 100. First I clipped the raster DEM with an irregulary shaped polygon. Now I'm tying to change all the values to a range of 0 to 100 for further analysis.  I'm using the Raster calculator tool with this equation:  ("DEM" - min("DEM")) * 100 / (max("DEM") - min("DEM")) + 0    I keep getting TypeError: 'Raster' object not iterable. This is the log I get:      ERROR 000539: Error running expression: rcexec()      Traceback (most recent call last):       File "<expression>", line 1, in <module>       File "<string>", line 5, in rcexec     TypeError: 'Raster' object is not iterable   I also tried running the command on the unclipped raster, unsuccessfully.


From the main site Stack Overflow, there is a link in the footer to 'mobile', which, when clicked, displays the page as a mobile page. The resulting mobile page footer has a link back to 'full site'. All the other links in the footer show the cursor as 'pointer' when hovered except this link.  Am I correct in assuming that this is due to the footer anchor html missing a href?  full site   which should (apparently) be:  full site   Also, (to be picky) would I be correct in saying that there are unnecessary spaces in the onclick="" script?  This is seen using Chrome v63.0.3239.84 on windows OS.

When (accidentally) clicking "mobile" in the footer, one gets the mobile site in a regular browser too. To switch back, one can click "full site" in that same footer:    However: when hovering it, the mouse is changed as to select text, rather than to indicate one can click (even though it's clickable).  All other links do change the mouse into a pointer.  (Not a big deal, except when somehow  getting into the mobile mode, I guess.)


I have as a definition of the closure of a set $E$ in a metric space $(S,d)$ that $E^-$ is the intersection of all closed sets containing E (Elementary analysis the theory of calculus by Kenneth Ross). I have as a hunch that the closure of $E = \{\frac{1}{n}: n \in \Bbb N\} $ is $[0,1]$ since this set seems to contain every element in $E$. How can I prove this to be true?

In $\mathbb{R}$ with standard topology the closure of the above set $M$ is $M \cup 0$. I fail showing this by purely topological means. I.e. not using the fact that this holds in the reals as a metric space and deduce it for the induced topology.  I assumed that there exist a closed subset $A$ containing $M$ but not 0. Hence, the complement of $A$ is an open subset containing 0. Does this already yield a contradiction or do I need a different approach?  Could you help me on this?


I want to be able to like rotate to new desktops on ubuntu.

I have read several questions regarding how to fix an already enabled desktop cube or the problems it had in 11.04. But in 11.10, how can I correctly enable desktop cube in Unity 3D?


Currently I'm converting .flv flash files to .webm and .mp4 files to be used with an HTML5 video player.  _  I use this ffmpeg command for WEBM: ffmpeg -i filename.flv -vcodec libvpx -acodec libvorbis filename.webm which works great and the file size stays relatively the same (imporatant).  _   For MP4 I'm using the following: ffmpeg -i filename.flv -sameq -ar 22050 filename.mp4  It converts to .mp4 fine and prevents any quality loss but the file size almost triples in size.  What ffmpeg formula could be used to convert to MP4 without losing too much quality and preventing a much higher file size?

Im trying to use ffmpeg to convert my flv files to mp4 to play them on iOS devices but the converted video has a much worse quality than the original one.  Here is the command i use:  ffmpeg -i input.flv -ar 22050 output.mp4   I would really appreciate if someone could provide me with the best settings for flv to mp4 conversion.


It's known the the derivative of exponential function  $a^x$ is $xa^{x-1}$.  If I play $e$ as $a$, we'll get $(a^x = \operatorname e^x)' = x \operatorname e^{x-1}$.  Why does $(\operatorname e^x)' = \operatorname e^x$?

When we take a derivative of a function where the power rule applies, e.g. $x^3$, we multiply the function by the exponent and subtract the current exponent by one, receiving $3x^2$. Using this method, why is it that the derivative for $e^x$ equal to itself as opposed to $xe^{x-1}$? I understand how the actual derivative is derived (through natural logs), but why can't we use the original method to differentiate? Furthermore, why does the power rule even work? Thank you all in advance for all of your help.


Are sites proposed on Area 51 allowed restrict access to a group of people smaller/more specific than "the general public"?  For example: only registered users of an existing web app?

Is the Stack Exchange engine that powers Stack Overflow available to download or install internally for an enterprise or company?  I think Stack Exchange's engine is very great and could be very cool to use for internal enterprise patterns and practices, like the engine of Wikipedia.


I get that Draco was the true master of the elder wand, and by disarming Draco, Harry becomes the wands true master.  However...  When Harry is hit by Voldemort's killing curse in the forbidden forest, does Voldemort not, technically, defeat Harry? If that's the case, shouldn't the wand see Voldemort defeating it's master and then switch allegiance to Voldemort?

There's a lot of emphasis on Harry becoming the master of the Elder Wand after he defeats Draco. But what constitutes a “defeat”?  It seems that Harry wins a wrestling match with Draco, so now he’s the master of the Elder Wand.  But lots of other stuff happens to Harry: Nagini almost kills him, and he escapes just in time, but his wand breaks. The Snatchers chase him through the forest. He and his friends practically surrender (and Hermione even tries to disguise Harry). Voldemort almost kills Harry in the Forbidden Forest (or actually does, depending on how you look at it).  Why are none of these considered to be “defeats”?


In researching a possible answer to , I read .  The article talks about wiping the cache partition via Android System Recovery and performing a Factory Reset.  Question: Does an Android Factory Reset also clear the cache partition?  Or does it only clear the data partition?

According to ,      /data ... Wiping this partition essentially performs a factory reset on your device, restoring it to the way it was when you first booted it, or the way it was after the last official or custom ROM installation. When you perform a wipe data/factory reset from recovery, it is this partition that you are wiping.   What about /boot, /system, and /recovery, and /cache?    If Factory Reset wipes only /data, then I wish it were called something else, because if you've rooted your phone, it will still be left with whatever custom ROM you flashed even after a Factory Reset.    On the other hand, if Factory Reset does indeed wipe /boot, /system, and /recovery as well, especially /boot, what does it restore those from?  Do all phones come with stock images in a real internal ROM somewhere that it can re-flash those images from?    I can somehow imagine manufacturers not wanting be burdened with the extra cost that such a spec for hardware-recoverable images might have cost them, so it got left out of the standard and left out of most phones, which is why it's so easy to brick them.  So, instead, they give you the option to wipe /data and /cache only, and call that a "Factory Reset" because you're not supposed to be foolish enough to root your phone in the first place according to their way of thinking.  Since rooting my Android and reading hundreds of posts, I've found that many of the terms I learned and accepted as a Computer Science grad student in the 80's don't quite mean the same thing anymore so I have to verify what everything really means before I do something.    Comments to  answer the first part of my question.  But they don't really answer the second part of my question which is really a complaint:  Why call it "Factory Reset" if it doesn't really restore your phone to it's stock factory state?    At this point, the question is merely rhetorical.  I think I already answered this in my question, unless someone can correct me.


I downloaded a bus model from a website that came with a fbx file and a folder containing 226 png texture files. I just don't know how to apply all those texture files to model. The screenshot shows the shading editor with a purple coloured bus (indicating that textures have not yet been applied I guess). On the left side are some of the listed textures.

I created some texture maps in MindTex to use in Blender, but I can't figure out how to properly hook them up. The maps I have:  - Diffuse  - Normal  - Height   - Specular   - Gloss   - Self Illumination  - Reflection  - Ambient Occlusion   MindTex (left) vs. Blender (right)  As you can clearly see it's a pretty big difference.  is my material node setup in Blender. In the examples I don't actually use self illumination or reflection images, but including this in the answer would be helpful.


In this sentence, the noun savings is in plural form:     I have one savings account.   It is like a gerund or maybe it is a gerund, I am not clear about it. But when I searched the Internet, I found somewhere claiming that a gerund is always singular, but somewhere else claiming that some gerunds do have plural forms.  I am confused. As far as I understand it, saying that a gerund is a verbal noun means that it is a verb as well as a noun at the same time, but that it is also not a noun.  The Internet suggests that gerunds iwth plural forms like drawings, meanings , and so one do not seem to be gerunds at all but they do seem to be nouns.  I want to know:   Do gerunds have plural forms?  If so, could you please give me some examples? Are the nouns drawing, meaning, etc. actually really gerunds, or are  they actually really nouns? What is the difference between a gerund and a noun?

In what cases does the gerund stemming from a transitive verb take the direct object of that verb and when is a prepositional complement used?  For example:    Brown's deft painting of his daughter is a delight to watch (it is a delight to watch while Brown deftly paints his daughter). Painting his daughter is an outlet for his energy. Securing safety for prisoners is the main problem for the penitentiary system. The widely discussed problem of the securing of prisoners' safety was given priority.


I have big with tags(parsed xml)  How to remove from string this elements:      <Error>                  <Text></Text>         <Severity></Severity>     </Error>   just   xml = xml.replaceAll("<Error>.*</Error>", "")   not works, error still in string..

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


I'm logged in to Physics.SE, I have 73 rep, and yet I noticed I can't answer :  Supposedly the reputation requirement is only 10, yet I'm prevented from posting:  Since I hardly use this account, here's the entire /reputation: total votes: 6 -- bonuses   (100) -- 2011-08-18 rep +100  = 101         8    128510 (-50) -- 2014-08-19 rep -50   = 51          16   200654 (2) -- 2015-08-16 rep +2    = 53         -- 2016-07-18 rep 0     = 53          2    199721 (10) -- 2017-03-16 rep +10   = 63          2    199721 (10) -- 2017-06-03 rep +10   = 73         -- 2020-06-11 rep 0     = 73          ** rep today: 0 ** rep this week (2020-09-20 - 2020-09-26): 0 ** rep this month (2020-09-01 - 2020-09-30): 0 ** rep this quarter (2020-07-01 - 2020-09-30): 0 ** rep this year (2020-01-01 - 2020-12-31): 0 ** rep from bonuses: 100 ** total rep 73 :)  days represented 7 rep cap was reached via rep from upvotes *only* on 0 days earned at least 200 reputation on 0 days earned 2 reputation from suggested edits

I'm asking this question because of :  For the purposes of your reputation "on this site", Stack Exchange has calculated the following:  Registered an account: 1 rep earned (total earned: 1, total rep: 1) Association bonus: 0 rep earned (total earned: 1, total rep: 101) Question upvotes: 40 rep earned (total earned: 41, total rep: 141) Suggested edits: 2 rep earned (total earned: 43, total rep: 143) Bounty offered: -100 rep earned (total earned: -57, total rep: 43)   I have known that association bonus is ignored, and just knew that bounty is also considered in the calculation; I don't have any problems with that. One thing that strikes me is, the poster is the author of the question. In this case, I think it's an edge case since the author also put a bounty, making their earned rep without the bonus go negative. (This might be discussed further, since  ). However, what if a new user (1 rep) asks a question, then for some reason beyond their control, their question gets protected? In this case, the author cannot self-answer their own question because of the minimum required reputation. If it is, then honestly, I feel bad for the author if they get penalized for something that wasn't their fault. Some may argue that this will defeat one of the objectives of protecting questions (from ):  Some questions are protected because they are expected to attract either spam or users -- often new users -- who may mistake the site as a traditional forum, posting "noisy" answers such as "thank you", "this worked for me", or "I'm also having the same problem".  (Emphasis mine) Honestly, I haven't thought that this might be a big issue (I observed many NAAs from random users, but from authors themselves, I found it rarer, as authors are prompted to edit or comment before they can self-answer). I could think of a new feature request to put answer-ban on particular question and by particular user, but that might be not feasible due to bigger change that might be too complex. If any of you have better suggestion about this, then feel free to chime in! I think this is similar to , but that question focuses more on the former 8-hour restriction for new users to self-answer.


I have learnt that temperature is literally measure of KE. But I don't see a fan which increase gas's temperature. I was wondering, why?

In my undergrad physics classes, temperature was described as "the average kinetic energy of molecules".  By simple, and probably naive, logic, one could then conclude that wind, which is basically just moving air, would raise the temperature of the air.  However, this seems too simple to be true.  Does wind actually slightly raise air temperature?  I can see a couple potential arguments against this idea:   It could be the case that the macroscopic wind and the microscopic kinetic energy of the air molecules don't really "interact", for lack of a better word. It could be the case that the macroscopic and the microscopic motions do "interact", but since the macroscopic wind is on such a large scale compared to the average kinetic energy of individual molecules, any system in which we use the average kinetic energy of the molecules is so small that the wind is effectively constant, and so it could be ignored. Regardless, I'm guessing that the temperature only depends on the relative motion of the air molecules, so the wind just isn't even relevant   Can anybody provide some more educated input?


I'm having some weird issues with GNU coreutils date v8.4 (CentOS) that aren't occurring in v8.21 (Ubuntu/Mint).  On v8.4, I get the following output (I'm in PST):  $ date --version | head -n 1 date (GNU coreutils) 8.4 $ date -d '2014-11-08' Sat Nov  8 00:00:00 PST 2014 $ date -d '2014-11-08T00:00:00' Fri Nov  7 09:00:00 PST 2014   I'm assuming it's trying to timezone-correct for UTC, even though I didn't request it and this behavior doesn't occur on my local Linux Mint machine.  Okay, so I'll add a timezone specifier, as specified by . On my machine:  $ date --version | head -n 1 date (GNU coreutils) 8.21 $ date -d '2014-11-08T00:00:00-0800' Sat Nov  8 00:00:00 PST 2014 $ date -d '2014-11-08T00:00:00-08:00' Sat Nov  8 00:00:00 PST 2014   Great. But on CentOS:  $ date --version | head -n 1 date (GNU coreutils) 8.4 $ date -d '2014-11-08T00:00:00-0800' date: invalid date `2014-11-08T00:00:00-0800' $ date -d '2014-11-08T00:00:00-08:00' date: invalid date `2014-11-08T00:00:00-08:00'   EDIT: Another one that doesn't work, using date's own output:  $ date -d "$(date -Ihours)" date: invalid date `2014-11-08T13-0800'   The following does work:  $ date -d '2014-11-08 00:00:00 -08:00' Sat Nov  8 00:00:00 PST 2014   but, due to completely unrelated requirements, I can't have any spaces in my date string.  I'm quite perplexed. I looked for  but didn't see anything that looks promising.  My question: How can I get date to either not change my timezones at all (preferable), or accept timezone input from a human-readable string without spaces?

I'm trying to use the date command to generate a file timestamp that the date command itself can interpret.  However, the date command does not seem to like its own output, and I am not sure how to work around this.  Case in point:  sh-4.2$ date Fri Jan  3 14:22:19 PST 2014 sh-4.2$ date +%Y%m%dT%H%M 20140103T1422 sh-4.2$ date -d "20140103T1422" Thu Jan  2 23:22:00 PST 2014   date appears to be interpreting the string with an offset of 15 hours.  Are there any known workarounds for this?  Edit: this is not an issue of display:  sh-4.2$ date +%s 1388791096 sh-4.2$ date +%Y%m%dT%H%M 20140103T1518 sh-4.2$ date -d 20140103T1518 +%s 1388737080 sh-4.2$ python Python 3.3.3 (default, Nov 26 2013, 13:33:18)  [GCC 4.8.2] on linux Type "help", "copyright", "credits" or "license" for more information. >>> 1388737080 - 1388791096 -54016 >>> 54016/3600 15.004444444444445 >>>    It's still off by 15 hours when displayed as a unix timestamp.    EDIT #1  Maybe I should pose this question a little differently.  Say I have a list of ISO8601 basic timestamps of the form:   YYYYMMDDThhmm YYYYMMDDThhmmss   What is the simplest way to convert them to the corresponding Unix timestamps?   For example:  - 20140103T1422   = 1388787720 - 20140103T142233 = 1388787753


I have a code that lists all 38 weather data using a foreach() from openweathermap.org (JSON). I would like to have only the next number of first x entries in foreach() to give xh forecast. Where x may be 3 or something that low.   Here is my code I have so far:  namespace ConsoleApp2 {     public class RootObject     {         public List<myWeather> list { get; set; }     }     public class myWeather     {         public Main  main { get; set; }         public Clouds clouds { get; set; }         public string dt_txt { get; set; }     }     public class Main      {         public float temp { get; set; }         public float humidity { get; set; }     }     public class Clouds     {         public float all { get; set; }     }     class Program     {         static void Main()         {             using (WebClient client = new WebClient())             {                  Console.WriteLine("ACCESSING jsonWeather ...");                 string jsonWeather = client.DownloadString("http://api.openweathermap.org/data/2.5/forecast?q=Auckland,NZ&APPID=45c3e583468bf450fc17026d6734507e");                 var myweather = JsonConvert.DeserializeObject<RootObject>(jsonWeather);                  string localtime = DateTime.Now.TimeOfDay.ToString();                   foreach (var json in myweather.list) /// how to limit the number of data to x coming out here?                 {                         Console.WriteLine(json.dt_txt);                         Console.WriteLine(json.clouds.all);                         Console.WriteLine(json.main.temp);                         Console.WriteLine(json.main.humidity);                 }                    Console.ReadLine();             }         }     } }   This is the output it generates (time is in UTC):  ACCESSING jsonWeather ... Time 2019-12-24 03:00:00 Coverage 7 20.7499938964844 50% Time 2019-12-24 06:00:00 Coverage 3 17.8300109863281 66% Time 2019-12-24 09:00:00 Coverage 0 12.9699951171875 89% Time 2019-12-24 12:00:00 Coverage 0 12.7700134277344 93% Time 2019-12-24 15:00:00 Coverage 21 13.4299865722656 94% Time 2019-12-24 18:00:00 Coverage 48 15.0500122070313 89% Time 2019-12-24 21:00:00 Coverage 81 19.4999938964844 66% Time 2019-12-25 00:00:00 Coverage 63 22.8300109863281 51% Time 2019-12-25 03:00:00 Coverage 0 21.5700012207031 57% Time 2019-12-25 06:00:00 Coverage 0 18.9399963378906 67% Time 2019-12-25 09:00:00 Coverage 3 13.7499938964844 92% Time 2019-12-25 12:00:00 Coverage 8 13.2000061035156 92% Time 2019-12-25 15:00:00 Coverage 33 12.9399963378906 93% [...]

I would like to use Linq to query a bus schedule in my project, so that at any time I can get the next 5 bus arrival times. How can I limit my query to the first 5 results?  More generally, how can I take a slice of a list in C#? (In Python I would use mylist[:5] to get the first 5 elements.)


I've been looking for a stack where I can ask questions regarding the stock market and other recent happenings in the economy like how will Brexit affect the economy.  A new site regarding this type of themes will be of great use to many people.

I have an idea or subject that should have a Q&A, and want to propose a new site. How can I do this?  Related:


This might be a strange physics question, but I am curious about it. Are there any physics equations that involve exponents $\geq$ 5?  There are plenty of equations with square exponents. Inverse square laws are the most obvious to me, like the universal gravitational force law. $$ F = \frac{GMm}{r^2}$$  I've seen some equations with an exponent of 3, like  in a fluid:  $$ P = \frac{1}{2}\rho v^3 A C_d $$  And also various cube-square laws like the semi-major axis related to the :  $$ a^3 = \frac{GMT^2}{4\pi^2} $$  I've also seen an equation with an exponent of 4. It's the  for black bodies, usually used for star luminosity: $$ L = \sigma A T^4 $$  There are also various  involving the 4th power of length, like a simple beam supported at both ends:  $$ \delta _{max} = \frac{5qL^4}{384EI} $$  But that might be considered more engineering than physics.  Anyway, I have never seen a physics equation involving an exponent of 5 or more. Do they exist? Is there some reason why they are super-rare or non-existent?  Admittedly, there is some arbitrariness in this question. For example, we could take any law we want, like Hookes Law, and take both sides to the 5th power...  $$ F = -kx $$  $$ F^5 = -k^5x^5 $$  But that's way too arbitrary. I guess the best way to avoid that is to say we want a physics equation in its most simple or most useful form.  Also, you could say that the hypervolume of a cube in 5 dimensions is equal to $x^5$. That is a little too arbitrary too. Not even sure if that's physics or just plain geometry.

Most physical laws seem to only have low integer exponents for their variables - in my experience I've never seen a physical law containing variables raised to a power greater than 3 or occasionally 4. Are there any physical laws containing variables raised to large integer exponents (i.e. powers of 5 or higher)?


I have a problem (BIG PROBLEM) with SPAM.   All the emails my mail server (Debian 8.2 and ispconfig latest stable) send, end up in spam. I'm using Google Apps.  I did a test on spamscorechecker.com and the error message is:   0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid domain   My domain is ambrabaiocchi.it (with valid DKIM and SPF record) and more 3  For more info please check this:  and this: .  How can I solve the problem?  Thanks and sorry for my bad english.

This is a  about how to handle email sent from your server being misclassified as spam.  For additional information you may find these similar questions helpful:                    Sometimes I want to send newsletters to my customers. The problem is, that some of the emails get caught as spam messages. Mostly by Outlook at the client (even in my own Outlook 2007).  Now I want to know what should be done to create "good" emails. I know about reverse lookup etc., but (for example), what about a unsubscribe link with an unique ID?  Does that increase a spam rating?


I have been trying to install software from the Ubuntu software center & I have not been successful with anything. :-(   Does anybody have any suggestions?  I noticed that they stopped supporting Ubuntu 10.04 in 2013.

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


On the search result page if you exclude tags in filter, for example, , there is not translated word "not".         I didn't find this string neither in Transifex nor in traducir. Could you add it? So we will be able to translate this string.  Related discussion on SOru: .

Currently when you search for a combination of tags in localized Stack Overflow you get some text in English. For example in Stack Overflow en español:       Etiquetadas con [python] or [php]        Etiquetadas con [python-3.x] not [python] not [bla]   Same in SOru:     С метками: [python-3.x] not [python] not [bla]   Looking for the text in traducir.win I could not find it, so I assume it is somehow hardcoded. Could you include it in Transifex?


I have installed UBUNTU 16.04 LTS. Now I want to install multiple DEs (i.e. GNOME3 and KDE in addition to UNITY already installed) on my system. My questions are the following:   Is it a good idea? or should I use a distro that uses GNOME or KDE? What problems should I expect as an average user? I have not explored UNITY in depth (i dont know its full capabilities) however I like the feel of GNOME and KDE better. Should I switch or stay with UNITY?   Thanks in Advance.

I am using Ubuntu 12.04. I want to try out KDE and other desktop environments.   But I'm not sure if I'll like them enough to switch permanently. I want to be safe and make a transition in a piecemeal fashion.  Is it possible to install KDE on Ubuntu and yet not do away with the default Unity shell?  Could I install multiple desktop environments and switch between them by tweaking some startup configuration and then rebooting?


There are a lot of good videos on a simple Diffie-Hellman in the internet but unfortunately that is susceptible to the MITM attack. I understand how with DH  the two parties are able to calculate a shared secret (shared private key?)  So now i am trying to understand the authenticated version, which should be safe from the MITM attack. Unfortunately i have not found a simple explanation to how it should work.   As I understand it requires the use of some certificates (pre existing keys?). Having some pre existing keys does not make a lot of sense to me, since the whole purpose of DH is key exchange. And vice versa: If i can just generate a private and public key for both parties and transfer the public keys than why do i need DH at all? Is an entirely secure method available to establish a connection between the two parties who don't have some preexisting knowledge of each other (by using authenticated DH)? If so then how does the authentication scheme work?

Diffie–Hellman offers secure key exchange only if sides are authenticated. For authentication, sides are using public/private key. So if side A knows the public key of the side B, then A can simply use that key to encrypt the message (or the new session key).  Why bother to use separate key exchange algorithm?


There was running malware in a host. It was using rundll32.exe to call the malware If I check in scheduled task, I got this rundll32.exe AAA.XX BBB I am sure AAA.XX is a malware file probably the type is DLL file and BBB is the command line. The problem is I cannot find the location of AAA.XX. There is no such a file in system32. I cannot use search because I access the host using remote shell with limited actions. Do you have suggestion, where's the exact location of AAA.XX?

What should I do if my Windows computer seems to be infected with a virus or malware?  What are the symptoms of an infection? What should I do after noticing an infection? What can I do to get rid of it? how to prevent from infection by malware?   This question comes up frequently, and the suggested solutions are usually the same. This community wiki is an attempt to serve as the definitive, most comprehensive answer possible. Feel free to add your contributions via edits.


Can we find the idempotents in $(\mathbb{Z}_n,+,\cdot)$ for any $n$?  Is there a general rule?  Note: Trying to consider the prime factors!

Let $R$ be a ring. An element $x$ in $R$ is said to be idempotent if $x^2=x$. For a specific $n\in{\bf Z}_+$ which is not very large, say, $n=20$, one can calculate one by one to find that there are four idempotent elements: $x=0,1,5,16$. So here is my question:     Is there a general result which tells the number of the idempotent elements of ${\bf Z}_n$?