I'm confused about the interpretation of interaction terms in poisson regressions. Here's a hypothetical dataset  Id  Group  Condition   Error rate 1   A      X           1 1   A      Y           2 2   B      X           3 2   B      Y           6   Imagine that individuals 1 and 2 are duplicated a number times (with random noise) to make two groups. If we analyse this data using a poisson regression (as it's count data) there will be no Group by Condition interaction (in both groups, error rates increase by 100% in condition Y, i.e. an Incidence Rate Ratio of 2). If we analyse this data using an ANOVA (and don't transform data) it is likely to yield a significant Group by Condition interaction (I've simulated this). While the poisson regression looks at proportional differences across conditions, the ANOVA is more sensitive to absolute differences.  It seems to me that because the poisson regression uses a multiplicative scale (via log transformation), an additive effect under the poisson regression will become multiplicative when the same data is analysed using OLS (or ANOVA).  So which interaction term is more "truthful"? Is it just a matter of interpretation? Or are there any a priori reasons for choosing one over the other. For example, could you argue that because count data exhibits ratio properties we should be analysing ratios and not intervals (according to Stevens)?  Thanks and hope this makes sense.


This question has always haunted me, so I decided to settle it for good. Suppose I am saying "We provide space-and time-efficient algorithm for approximating [the number of cats in apartment building]". Here, is my us of hyphen in "space-and time-efficient" correct?  EDIT: So, one way of saying this is "Our algorithm is space efficient, and also time efficient". Now, I would like to shorten this by something like "space-and time-efficient". My question is, do I need a hyphen after "and"? Or, how to correctly hyphenate in this particular case? Although the links in the comments do deal with similar problems, their case is just that -- similar, but not identical to mine.


Is the comma before the verb "completed" used properly? The excerpt from Barron's SAT Practice Test - Test 3.?

In an excerpt from Barron's SAT Practice Test - Test 3.     A tiny pestle and mortar for color-grinding, and a cup of water in which to clip and wash the brush, completed the apparatus of the student.    I know that you cannot separate the subject from its verb. I wonder why there is a comma before the verb "completed". Doesn't it separate the verb from its subject A tiny pestle and mortar for color-grinding, and a cup of water in which to clip and wash the brush, where we are given a list of items in the following form: A and B, and C?


How to set default web page while opening new tab in Microsoft Edge?

I am using Microsoft Edge, Version 88.0.705.53 (Official build) (64-bit). When I opening a new tab the following content is displayed:  But now I want to specify my default page when opening a new tab (like  ). Please guide me. Thanks.


What's a good substitute for onion for someone with an onion allergy?

I am an allium lover with a strong allergy to all alliums. It is technically a sensitivity, as it isn't an instant reaction, but spending an hour in the bathroom because of one stray piece of red onion warrants a scarier word then "sensitivity". For those not familiar with plant taxonomy, alliums are the plant family that holds garlic, onions, chives, and leeks.  My allergy is progressively getting stronger and I can no longer lie to myself. I need a good substitute for that fantastic allium taste. Right now I can still eat garlic in reasonable amounts (thank god), but red onions are out, and everything else from white onions to leeks is somewhere in between. Any and all preparations of allium trigger the allergy, so no onion powder.  I am desperately looking for a non-allium onion substitute. My hope and dream is something that tastes like onion but isn't an allium. I would accept any strongly flavoured class of plants to switch addictions to.


Does the pointer get from sqlite3_column_blob() method need to be delete?

Like this: const void * test = sqlite3_column_blob(stat, 1); Can I delete or delete[] test?


I need to extract out this text "start_time":"2018-08-05T17:41:29.933Z" form this string:  BLAH text BLAH text "start_time":"2018-08-05T17:41:29.933Z" blah TEXT BLAH text  I tried this: \[\"start_time\":\"(.*)\"\]  But it did not work. What am I missing here?  Thanks!


Whilst starting to learn lisp, I've come across the term tail-recursive. What does it mean exactly?


Casting: (NewType) vs. Object as NewType

What is actually the difference between these two casts? SomeClass sc = (SomeClass)SomeObject; SomeClass sc2 = SomeObject as SomeClass;  Normally, shouldn't they both be explicit casts to the specified type?


Failed attempt to fetch logical page - tempdb

At least 2 times a week I get an error as the tempdb should be corrupt.     Failed attempt to fetch logical page xxxx in database 2.   This on all my 8 SQL Servers 2008 R2.  The strange thing is that after the error, users can continue to work without any problem. And using the corrupted tempdb for months... I don't find any topics where you talk about this, is this a bug? Or real corruption?  I found as only solution people reccomend restarting the service, something I don't want to do.


To catch a thief: intentionally leaving something of value out to entice a thief to steal

One trick to catch a thief is to intentionally leave something of value out in an effort to entice a thief to steal. For example, you might leave a sparkly set of cuff links out on your desk at work to see if anyone has stick fingers.  Two-part question:   Is there a word which identifies the item left out to entice the thief? "Bait" comes to mind, but I hope for a word more specific to this situation. Is there a word/phrase/idiom which identifies this technique? The action of leaving something out to entice a thief to steal.


I put a 64-bit ELF file in my unprivileged user's home directory. I wonder which permissions do I need to have only possiblity to rename this file being logged in as unprivileged user. From what I understand I only need execute permission for user to whom file belongs to, set for parent's directory. Is that right?  So if path to my file is /home/Simon_dir/zip and I wrote chmod 0100 /home/Simon_dir and file permissions are set to 0000, should I have rights to rename the zip file being logged in as unprivileged user?


"Could not identify document class." error when trying to count words

I'm trying to count words in a cyrillic LaTeX document with .  I run the command perl texcount.pl index.tex and get following output:  D:\wd>perl texcount.pl index.tex  !!! Could not identify document class. !!! File: index.tex Encoding: utf8 Words in text: 0 Words in headers: 5 Words outside text (captions, etc.): 0 Number of headers: 1 Number of floats/tables/figures: 0 Number of math inlines: 0 Number of math displayed: 0  (errors:1)   index.tex starts with following line:  \documentclass[a5paper,pagesize,10pt,bibtotoc,pointlessnumbers, normalheadings,DIV=9,twoside=false]{scrbook}   So documentclass tag is present.  How can I fix this error?


wifi on ubuntu works slower than wifi on windows for my laptop

So the problem is this:  My laptop has a dualboot setup. It has windows-10 and Ubuntu-16.04 LTS on it. When I boot into windows and connect to the WIFI at my home, and then go to "FAST.com", I get the speed of about 30Mbps.  Now, when I boot into Ubuntu, connect to the same access point and then again test the speed at the same website, I always get approximately half of what I was getting on windows, i.e., ~15Mbps.  Can you suggest the probable cause of this issue?  EDIT: here is the output of of the requested command:  $ lspci -knn | grep Net -A2 07:00.0 Network controller [0280]: Intel Corporation Wireless 3160 [8086:08b3] (rev 83) Subsystem: Intel Corporation Dual Band Wireless AC 3160 [8086:8470] Kernel driver in use: iwlwifi


How to avoid change of textsize when using underbrace?

I'd like to use underbrace in a formula:  \begin{IEEEeqnarray}{r/C/l?s} P_{a} \left( a | \gamma, \epsilon, \hat{K} \right)  & = & \frac{1}{1 + \frac{\gamma}{\epsilon} \times \underbrace{  \frac{\alpha_{X} \left( p_{f} | \hat{K} \right)} {\alpha_{Y} \left( a | \hat{S} \right)} }_{\Gamma \left( a | \hat{K} \right)} }  & \IEEEnonumber \end{IEEEeqnarray}   Compared to the formula without underbrace, the the underbraced part is enlarged:  \begin{IEEEeqnarray}{r/C/l?s} P_{a} \left( a | \gamma, \epsilon, \hat{K} \right)  & = & \frac{1}{1 + \frac{\gamma}{\epsilon} \times % \underbrace{  \frac{\alpha_{X} \left( p_{f} | \hat{K} \right)} {\alpha_{Y} \left( a | \hat{S} \right)} % }_{\Gamma \left( a | \hat{K} \right)} }  & \IEEEnonumber \end{IEEEeqnarray}   How can I avoid the change of the font-size when underbracing parts of a formula?


What does p value 2.5e-0.5 mean? If it is 2.5 × 10 ^0.5 then it is way above the statistically significant p<0.005.. learning this to interpret the results of one study..


I am trying to prove that the ideal $J=<x+1>$ is prime in the ring $\mathbb{Z}[x]$. I know that if the generator is prime, then the ring modulo the generator is an integral domain. I can show that this is true in this case after a bit of work. However, I was wondering if there was a quicker way to do this. Any thoughts?  Thanks


How to properly quote variables, which are then no longer considered if omitted

I am a bit at a loss right now as to why a script of mine does not work as I perceived it.  Since id3v2 is a bit complex to use, I tried to simplify its uses by writing a script around it.  The parts which are mine work perfectly fine, but coming to handing the collected information over to id3v2, it fails when any of the switch values have spaces in there, even though I forced quotations inside the variables.  The usage for id3v2 requires each switch to be followed by a value.  Everything else is considered a file.  So, in order to define the title the switch would look like this:  --TIT2 "Beautiful Stranger"   The switch without and the value with quotation marks to cope with whitespace.  To be able to fully omit any switch without building a new command line inside the script, I thought it would be smart to submit the variables without quotations with forced quotations inside the value, which I hoped where unwrapped.  Consider the following:  ... sTitle="--TIT2 \"Beautiful Stranger\"" ... /usr/bin/id3v2 ${sTitle} ${sArtist} ${sAlbum} ${sTrack} ${sYear} ${sGenre} ${sGrouping} "${aFiles[${iFile}]}"   However, while the result looks good using the above line with echo, using id3v2 provides me the message Couldn't stat file 'Stranger"' (basically, the second part of my title plus finalizing quotation cannot be found, which is obviously correct).  Disappointed that id3v2 apparently does not adhere to the unwrapped forced quotations, I modified my script to split the variables from the switches and quoted them on the target command line instead:  ... sTitleHead="--TIT2" sTitle="Beautiful Stranger" ... /usr/bin/id3v2 "${sTitleHead}" "${sTitle}" "${sArtistHead}" "${sArtist}" "${sAlbumHead}" "${sAlbum}" "${sTrackHead}" "${sTrack}" "${sYearHead}" "${sYear}" "${sGenreHead}" "${sGenre}" "${sGroupingHead}" "${sGrouping}" "${aFiles[${iFile}]}"   This works as long as all variables are used, but fails if one (or more) variables are omitted.  The error message there is Couldn't stat file ''.  It seems that it still finds the quotes on the command line and tries them as a file name, even though when I omit a variable, I typically unset or set them as zero-length string (tried both).  I also tried to remove quotations from my ...Head variables, just in case they are not properly detected as parameters, but the result is the same.  Does anyone know how to convince id3v2 on how to take the command line parameters without giving out?  Alternatively, if there is a easier scriptable program around, I am also thankful.


How to develop a System Indicator for Unity?

This is not a duplicate of . I'm looking for system indicator not application indicator.  Backgound:  From these two questions:       I learned that there are two types of indicators:   System: sound, keyboard, application,... (try: ps ax | grep indicator) Application: nm-applet, sysmonitor,... and almost all which are listed in    All application indicators are handled/showed by indicator-application (a system one). System indicators are showed directly by Unity panel.  Both questions are about adding/removing indicators from login & lock screen. The first was a straight forward setup (when dealing with system indicators). The second was a tough setup (when dealing with app indicators), which needs modifying the source of panel service (unity package) for lock screen and the source of unity-greeter for login screen.  As the case of sysmonitor, to me that was workaround. The best solution is to implement a system indicator instead of an application one.  Topic:   Is there a unified API for system indicators (Preferably: Python then C/C++)? Please, reference to the official documentations. Most system indicators are written using Vala programming language. Could any one write small demo for a system indicator using Python or C?   Update:  I found few links that may give a push:   In  project page, They listed links to AppIndicator-0.3 API ( & ) used for application indicators.  They listed also Indicate-0.7 API ( & ). What is this? Well, it is a DBus messaging channel between Desktop Applications. On other hand, in  project page, they mentioned:     System Indicator APIs         Messaging Menu using libindicate.   Sound Menu using libunity.   Date/Time Indicator using Evolution-Data-Server      They seem listing Data API not Indicator Development API like for Evolution-Data-Server. But not sure about libindicate & libunity. Did any one work with these two libraries?  Try apt-cache rdepends libunity9 libindicator7 libindicator3-7 to see which indicator is relaying these libraries.   Update2: This to keep interested users updated.  From what I have collected till now, here is the order of possible solutions:   libindicator3-7 (high, Many indicators depend on it)  I found some test examples in the source, some dummy indicators that I have tried, could be installed in /usr/lib/indicators3/7/, they are shared lib .so. I  could get them displayed in Login & Regular Session but Not in Lock Screen.  However there are some test indicator services, which seems like Unity system ones. I haven't tried them yet. libindicator7  From same source as libindicator3-7, from rdepends:  mate-indicator-applet lxpanel-indicator-applet-plugin   It seems to be used to make container for indicators in panels. libunity9 (low)  No research yet


In D&D 5e is it possible to add a breastplate to leather armor for an AC bonus?

I just started playing D&D, and I'd like to know if it is possible to add a breastplate to leather armor for an AC bonus?


Book where girl is raised in history museum to believe she as actually part of the time period her exhibit is based on

So, I remember being read a book in elementary school (so it was at least written by 97-98). It was about a girl in the 1700-1800's who found out she was actually part of an exhibit in a history museum - The entire younger generation thought they were actually in the time period, while all the adults were in on it. Could someone help me identify this story?


How can you separate sub atomic particles and manipulate them?

Say, in Large Hadron Collider how can people separate a proton from an atom and then accelerate it and what is even more miraculous to collide it with another proton? It sound like impossible. Especially when you consider a particle to be a wave and a particle.


Deriving the square of the angular momentum operator in spherical coordinates

I'm having some trouble in deriving the square of the angular momentum operator in spherical coordinates. So the squre of the angular momentum operator is $$ L^2=L_x^2+L_y^2+L_z^2 \tag{1}. $$ And I'm able to derive both $L_x$, $L_y$ and $L_z$ in spherical coordinates $$ \begin{align} L_x &= -i\hbar\left(-\sin\phi\frac{\partial}{\partial\theta}-\cot\theta\cos\phi\frac{\partial}{\partial \phi}\right), \tag{2}\\ L_y &= -i\hbar\left(\cos\phi\frac{\partial}{\partial\theta}-\cot\theta\sin\phi\frac{\partial}{\partial \phi}\right), \tag{3}\\ L_z&=-i\hbar\frac{\partial}{\partial \phi}. \tag{4} \end{align} $$ Thus I'm thinking that I should be able to get $L^2$ in spherical coordinates by simply substituting (2), (3), and (4), into (1). By doing this I find that $$ L^2 = -\hbar^2\left(\frac{\partial^2}{\partial \phi^2}+ \frac{\partial^2}{\partial \theta^2}\right). \tag{5} $$ This is nothing like the expression of what it is supposed to look like, which is $$ L^2 = -\hbar^2\left[\frac{1}{\sin\theta}\frac{\partial}{\partial\theta}\left(\sin\theta\frac{\partial}{\partial\theta}\right)+\frac{1}{\sin^2\theta}\frac{\partial^2}{\partial\phi^2}\right]. \tag{6} $$ Where do I go wrong? Shouldn't I be able to do the substitute that I did and end up with (6) instead of (5)? Edit: I'm most likely correct, but I expect that I have made some calculation error.


My question is around Error handling in a WCF service and passing error information back to the calling client. I do know that we can use the FaultContract as part of the ServiceContract while defining the interface.  What if i dont want to use the FaultContract and as part of my DataContract response i include the Error response or success response as an object of type Result?   What is the difference in the two approaches? Especially in terms of internally any extra channels used?   I have tried both approaches and both work. What i know so far is that approach 2, does not need the client to know what error to trap, he can just investigate the Result object to see.  Example of a FaultContract Code  public interface ICalculator {     [OperationContract]     [FaultContract(typeof(MathFault))]     int Divide(int n1, int n2); }   My Error Handling Code  public interface ICalculator {     [OperationContract]     Result Divide(int n1, int n2); }  [DataContract] public class Result  {     [DataMember]     public bool Success { get; set; }     [DataMember]     public string ErrorNumber { get; set; }     [DataMember]     public string ErrorMessage { get; set; }  }


Why do my maxed out dwellers get radiation damage in the wasteland?

I have a couple of dwellers with maxed out stats by now. When they go out to level up, they will not take red radiation damage for several days. The maximum I have so far managed was around five days without needing a radaway.   However, when I send the same dwellers out the second time when they are already 50, they get radiation damage. It's slow and not enough for them to use a radaway on two days, but there is red damage.  I assumed with Endurance on 10 that would not happen at all. Why are they not immune to radiation?


Calculation for getting dimension of object in image

I am trying to calculate the dimensions of an object in an image. This is a sample image I took to get height of the brown box.  I have this white box which measures 16cm and I would like to know the height of the brown box (in meter). This using only the focal length and the size of the camera sensor of my phone. Focal Length: 3.99mm Focal Length In 35mm Size: 29 mm Sensor size: 4.8mm * 3.5mm Height of the image: 4032px Size of the brown box in pixels: 1459px Distance between the sensor and the box: 1.8m  I did this:   So I found boxheight = 0.78m In reality, this brown box measures 0.75m, so I want to know if it’s possible to obtain a more accurate result by using the fact that I know the exact size of the white box next to it. Does anyone know ? Thank you


General Relativity posits that matter curves spacetime, such that geodesics point towards the object in question, hence, gravity. Now, how does matter do this? What is spacetime "made of", anyway, such that it should interact with matter, being bent by it and forcing it to accelerate (via gravity)?


Residuals in a linear model are independent but sum to zero; isn't it a contradiction?

The sum of the residuals in a linear model equals zero. The residuals in a linear model are independent.   Isn't it a contradiction?


2008 R2 file server shared folders are displaying hex names

I have a very strange issue.    on one of my 2008R2 file servers that has been around for years  yesterday about half of the folders in one of the shares started showing hex values instead of the folder names.  the subfolders still show their correct names.   example ,,  share/ {14270683-1693-1584-1493-948150471693}\finance PO   this is affecting about 1000 folders on a 7tb share drive    All other folders in that share are listed by their names.   windows 2008R2 fiber connected SAN,   Symantec AV,  SCCM client installed.


Reading large files backwards (from end to start) in C#

I have a text file which contains a sequence of price Data. The problem could match any long history of historical data such as Temperature, Air Humidity, Prices, Logfiles, ...      The Head of my history file looks like the following:   If I want to read and process a file too large for memory, I would normally choose the following code:  using (FileStream fs = File.Open(path, FileMode.Open, FileAccess.Read, FileShare.ReadWrite)) using (BufferedStream bs = new BufferedStream(fs)) using (StreamReader sr = new StreamReader(bs)) {     string line;     while ((line = sr.ReadLine()) != null)     {         // Process Data     } }   In my case a record is created every 1000ms. The most recent data is at the end of the file.  The issue arises when trying to process the most recent data.   Example: I want to generate an average of the last 30 days. It would be most efficient to start at the end of the file and move towards the beginning until the X days threshold is met. The sample code above would read through the whole file which is barely usable in this scenario. A worst-case every time I need to update recent data indicators.  This issue of course applies to any operation where you want to process the last x elements.  Is there a functionality to read from end to start of the file?


Where to ask questions in regards to a needed website module?

I need a plugin or script that helps me find broken embedded YouTube videos on my website.  Which is the correct section on Stack Exchange to ask this?


How do I determine if my integrated Intel graphics support "Shader Model 3"?

I am trying to play a Steam game on Ubuntu.  The game requires "Graphics: Shader model 3".  How do I determine if my integrated Intel graphics support Shader Model 3?  At present, when I launch the game, I hear the audio, but the screen is entirely black.  Running glxinfo | grep OpenGL yields:  OpenGL vendor string: Intel Open Source Technology Center OpenGL renderer string: Mesa DRI Intel(R) Haswell Mobile  OpenGL core profile version string: 4.5 (Core Profile) Mesa 18.2.2 OpenGL core profile shading language version string: 4.50 OpenGL core profile context flags: (none) OpenGL core profile profile mask: core profile OpenGL core profile extensions: OpenGL version string: 3.0 Mesa 18.2.2 OpenGL shading language version string: 1.30 OpenGL context flags: (none) OpenGL extensions: OpenGL ES profile version string: OpenGL ES 3.1 Mesa 18.2.2 OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.10 OpenGL ES profile extensions:   I am not sure which (if any) of the above lines answer my question.


Cancelling booking on Booking.com due to COVID-19

We are non-EU citizens and are banned to travel to Europe during this time. We had made non-refundable reservation of Ibis Styles Paris Meteor Avenue d'Italie via booking.com.  However we're not allowed to make a refund due to the Coronavirus situation and Schengen border closures.  The reschedule of booking are offered until December 31, 2020. A free cancellation is preferred as we are not sure on our travel plan.  Under the FC conditions apply for the above booking? Should we get a full refund from booking.com?


I'd like to run multiple MySQL queries and save them to specified files. Queries are saved in a bash script, queries.sh, e.g.:  cat queries.sh mysql -u <user> -p <DBname> -e "select Col1 from Table1 where Condition;" > /home/<user>/queries/Col1Table1Cond mysql -u <user> -p <DBname> -e "select Col5 from Table2 where Condition;" > /home/<user>/queries/Col5Table2Cond   Executing the script is not enough, since <user> has to input his password at each query and this is compromising the script flow.


How is quantum mechanics consistent with statistical mechanics?

Let's say we have an harmonic oscillator (at Temperature $T$) in a superposition of state 1 and 2:  $$\Psi = \frac{\phi_1+\phi_2}{\sqrt{2}}$$ where each $\phi_i$ has energy $E_i \, .$  The probability of finding each the $i$ state would be 50% in this case. However, approaching this problem with statistical mechanics the probability would be proportional to $e^{-E_i/k_BT}$  What is wrong with my approach?


Make LaTeX ignore line breaks in the source

I would like to be able to write a few lines like:  a b c   in my LaTeX source code file, and have it come out as abc instead of a b c. (This is because in my use case, each line is a long and complicated thing, so concatenating all the lines in the source code ends up being completely unreadable.)  Is there a magic thing I can add at the end of each line to make it ignore the next line break?


How to make bootable USB for Ubuntu in Windows 7?

I downloaded the Universal USB Installer 1.9.5.2 from   But when I am running it, the Create icon is not working and I am unable to figure out what the problem is? I even formatted the pendrive (8GB) but the result was same.


I have HTML code like this :
        Link A1        Link A2        Link A3

        Link B1        Link B2        Link B3
   When user clicks a link from above HTML, I want to get the jQuery object of the corresponding  element, and then manipulate its sibling. I can't think of any way other than creating an ID for each  element, and passing that ID to an onclick event handler. I really don't want to use IDs.   Any suggestions?


How can I simplify $(n\,\mathrm{ mod }\,b^{k+1})\,\mathrm{ mod }\, b^k$?

I am trying to simplify an expression I've found that is related to converting from a number base to another: $$n\,\mathrm{ mod }\,b^{k+1} - (n\,\mathrm{ mod }\,b^{k+1})\,\mathrm{ mod }\, b^k$$ In this sense I mainly want to simplify the second term. I know, for instance, about the identity $$(a\,\mathrm{ mod }\,b)\,\mathrm{ mod }\,b = a\,\mathrm{ mod }\,b$$ But I don't know if it could actually help.


Different template for second page result for Ajax-loading new pages

Everytime I enter a posts page, index.php is called. Now on the site I load next pages (page2, page3...) with Ajax and insert the posts (just the posts) from the Ajax result inside my page. This works perfect but I was wondering if it is possible to have a different page template for second-pages so I would just load the articles in those (no scripts or styles or parent-innecesary divs).  This way the Ajax call would be faster.  A thing to consider is that if it would be possible, it wount just be for the page number different to one, as the user might enter directly in the fourth page (this one should have all the styles and divs) and then load the fifth, sixth by this second-Ajax template.  EDIT2:  I realized about   if (strcasecmp('XMLHttpRequest', $_SERVER['HTTP_X_REQUESTED_WITH']) === 0)   EDIT:  <?php get_header(); ?>
      <?php if (have_posts()) : while (have_posts()) : the_post(); ?>          <article id="post-<?php the_ID(); ?>">          ...
      <?php endif; ?>
  <?php get_footer(); ?>   And then I load via javascript Ajax next pages:  $.ajax({      url : page_to_load,      success : function (data) {          $('#main').append($('#main>article', data));      }  });   If Im right, every time an Ajax page is called all the page is actually downloaded (scripts,etc.)  I was sondering if it would be possible to have a different page template for this second page, something like:      <?php if (have_posts()) : while (have_posts()) : the_post(); ?>          <article id="post-<?php the_ID(); ?>">          ...
      <?php endif; ?>   So ONLY articles are loaded, no header,scripts,styles or anything extra.  Thanks.


How can i copy an object in javascript correctly?

I'm trying to copy an object in other using spread operator but wheni change one item from array in a copy object, the original is changed to. Any one knows how can i make the change only in object 2 ? Follow a simple example: let obj1 = { a:'hello', b:'hi', c: [1,2,3] } let obj2 = { ...obj1 } obj2.c[1] = 44   EDIT: This thread has the answer :)


How long will spaghetti and meat sauce last in the refrigerator?

Today, I accidentally forgot that I had brought my lunch in - leftover spaghetti noodles and a meat sauce (sauce from a jar, meat cooked fresh and added to the sauce) that we had last night. They are in separate containers.   I'm going on an anniversary trip with my wife this weekend, so this lunch will be left in the office fridge for the next three days - one of which is a work day where people will be putting things in and taking things out of the fridge, but I won't be there.    Will my spaghetti and meat sauce lunch, that was cooked on Thursday, put in the company fridge Friday (today), and will be left in there until Tuesday (four days) still be safe to eat?  Or should I toss it when I get back?


The wiki says that Hashirama died shortly after the creation of Konohagakure.  Do we know how he died?  I mean, he was powerful enough to stand up to Madara, so I feels like it would be no small thing that could kill him.


I Got somewhere these Interesting Hashing password codes   One is   $user_passcode = SHA1(MD5($_POST['user_passcode']));   and The Other is  $user_passcode = SHA1(SHA1(MD5($_POST['user_passcode'])));   From Security perspective,Is this approach acceptable???


Flat tire after inflating to max pressure

Bought a used mountain bike for mom. The bike  wasn't used in quite a while . Mom used it for 3 weeks , tire pressure was  ok but it needed some air. So I pumped air in both the tires to max recommended psi on the tire.  After sometime ,  both the tires were flat. I did not hear any sound of leaking air right after I pumped it. I tried it again, this time  I heard a hissing air leaking sound.  What could have happened ?Not sure if anything in the valve is stuck. How can I determine what is wrong ?  Thanks in advance.


How to make the mesh not bumpy? On subsurf modifier

How to make the mesh not bumpy? (Like the images below) It has subsurf modifiers and adding loop cut isn't work anyone know how to handle it thanks


How do I access my previous StackExchange myOpenId account?

I've an existing StackExchange account with the following myOpenId: sidharth-panwar.myopenid.com  But I'm not able to log in with this account. Whenever I try to log in it gives me the following error message:       No OpenID endpoint found.     I've logged in with a temporary account (using my GMail account). Is it possible to link my GMail account with my myOpenId account so that my profile remains intact?  I've gone through the following threads already before posting:


Ubuntu install on Chromebook ARM (samsung)

Alright so I installed the crouton Ubuntu thing on my Chromebook while following . After getting it installed it would not let me set a password and now I can't update the system so I'm wondering how to fix it. I'm kind of noobish at this.  This is what is displayed-  (precise)redeyeschivo@localhost-$ sudo password set [sudo] password for redeyeschivo:


I live in South Africa and would like to visit France and Italy. I was hoping to enter in Paris and fly back home from Rome. It it possible to exit the Europe from a different country of entry?


I have a simple question regarding Google Maps. I am not signed in with Google, and don't use their services anymore, yet, when I start Google Maps I get the following:    How can I completely eliminate that account that Google shows me?


Limit of a sequence defined by a sum: $\lim_{n\to \infty} \frac1{2^n}\sum_{k=1}^n \frac1{\sqrt k}\binom nk$

$\lim_{n\to \infty} \frac{1}{2^n}\sum_{k=1}^n \frac{1}{\sqrt k}\binom{n}{k}$  Could it have a connection to Euler summability?


Showing that a Sylow subgroup of a group of order $p^{2}q$ is normal.

Suppose that I have a group $G$ of order $p^{2}q$ for two distinct primes $p$ and $q$.  I need to first show that one of its Sylow subgroups is normal.  I start by letting $H$ be a Sylow $p$-subgroup and $K$ be a Sylow $q$-subgroup.  If $K$ is not normal, then letting $r$ denote the number of Sylow $q$-subgroups, I have that $r|p^{2}$ and $r\equiv 1$(mod $q$).  I also have by the second Sylow theorem that $r\neq 1$.  So $r = p$ or $p^{2}$.  If $r = p^{2}$, I can write out the Sylow $q$-subgroups, and count their combined elements to show that $H$ is uniquely determined and then again imply Sylow number $2$ to obtain that $H$ is normal.  But if $r = p$, then I cannot see how to proceed.  Can anyone give any advice?  Thank you.  ( I am happy to provide more detail for the $r = p^{2}$ case if it is desired or appropriate. )


How can I convert a recursive equation to a non-recursion one?

While I am aware of several other similar question which have been asked in the past, my mathematical education only extends through calculus, making them beyond my comprehension, and I believe this specific problem is harder because of the (2n) component.  I would like to convert the below function into a non recursive one (to reduce its compute time), and would greatly appreciate any explanation for how to do so, especially if they don't require advanced knowledge, or the solution.  Thanks!     $$\begin{align}  R(0) &= 1   \\  R(1) &= 1   \\  R(2) &= 2   \\  R(2n) &= R(n) + R(n + 1) + n \quad\quad (\text{for } n > 1)  \\  R(2n + 1) &= R(n - 1) + R(n) + 1 \quad\quad (\text{for } n \ge 1)  \\ \end{align}$$   (n is a whole number)  Edit: Here is a list of the first 40 elements. [1,1,2,3,7,4,13,6,15,11,22,12,25,18,28,20,34,22,42,27,44,34,48,35,55,38,59,44,62,47,69,49,72,55,81,57,87,65,90,70]


Prove that the set $S=\{f \in C[0,1]|d(f,0)=1\} \subset C[0,1]$ is not compact

My question:  Define the distance on $C[0,1]$ by $$d(f,g)=\max_{x\in [0,1]}|f(x)-g(x)|.$$ Prove that the set $S \subset C[0,1]$ is not compact, where $S=\{f \in C[0,1]|d(f,0)=1\}$.  My idea: For this, I assume that if I choose a sequence $\{f_n\}$ in $S$, that is Cauchy, but the limit of $\{f_n\}$ is not continuous. This implies $S$ is not compact. I chose $f_n(x)=(-1)^{n}$. The limit points of $f_n(x)$ are $f(x)=1,$ and $-1$. I observed that this sequence is not Cauchy, so I cannot use my idea. I choose another example, $f_n(x)=x^n$, but this is also not Cauchy. Can anyone suggest an example of this case that works?


Automating the scanning of graphics files for corruption

Does anyone know of a way to check graphics files (particularly JPEG, GIF, and PNG) for corruption (preferably in an automated way)?    Explanation:  A few days ago, a command worked incorrectly and ended up deleting thousands of graphics files from a FAT32 volume that was practically out of space. I’ve used several different file/photo-recovery programs, but naturally, they are limited in how much they can recover (though fortunately the volume has 8KB clusters, which helps somewhat).  Anyway, some of the larger files, that were fragmented, are now corrupt. Some of them are not even real files at all (the recovery software merely dumped the clusters that were pointed to by now-overwritten directory entries), while others are broken because of fragmentation.  Moreover, because some picture formats embed a smaller version of the picture as a thumbnail, scanning the thumbnails for corruption is not reliable because it may be intact while the actual file (i.e., the picture when viewed full-size), could be corrupt.    Here are a couple of examples:      Here’s the second one. It’s so damaged that it doesn’t display anything.    (A third one wouldn’t even upload because it doesn’t even have the correct header!)


Finding the right ideals of $M_{n\times n}(\mathbb{F})$ (matrices over a field $\mathbb{F}$)

I'm trying to figure out all the possible right ideals of $M_{n\times n}(\mathbb{F})$.   I know that the two-sided ideals are only the trivial ones, and the proof uses the fact that we can operate on the rows and line of a matrix to make $E_{ij}$ - the matrix that has one in ij and zero in the rest of it.  Does anyone have any idea(l)?  Thanks.


Equivalent definition of normalizer of a group. Need help in proof.

The definition of normalizer of a non-empty set $A$ in group $G$ is given by $$N_G(A) = \{g\in G\:|\:gAg^{-1} = A\}$$  This definition is from Abstract Algebra by Dummit and Foote.  Another definition I have seen around the internet ( and in this ) is $$N_G(A)=\{g\in G\:|\:gag^{-1}\in A\:\forall\: a\in A\}$$  I try to prove these equivalent. So we need $$gAg^{-1}=A \iff gag^{-1}\in A \:\forall\: a \in A$$  Here is my partial proof:  Assume $gAg^{-1}=A$. Then $gag^{-1}\in gAg^{-1}=A \:\forall \:a \in A$.  Conversely, assume $gag^{-1}\in A \:\forall\: a \in A$. Let $x\in gAg^{-1}$. Then, $\exists\:a_x \in A$ such that $x=ga_xg^{-1}\in A$. It follows that $gAg^{-1}\subseteq A$.  Now , let $y \in A$. This implies $gyg^{-1} \in A$. (This is where I'm stuck).   If I could somehow prove $y \in A \implies g^{-1}yg\in A$, then the result would from the hypothesis. Please let me know if I'm headed in the wrong direction.  I have seen this . The definition of the normalizer is a slightly modified version of the first one stated here. However, I would like to know how I can proceed from where I'm stuck.


My lecturer has used some notation that I've never seen before: it is a (matrix) product symbol with a left-to-right arrow over the top. Does anybody know what this means?  Thanks in advance.  Edit: It looks like this:


why would there be a load of 5 if there are zero processes in the runq?


Roth IRAs for Residents of Puerto Rico with No Income within the continental US

Can anyone help?  I've looked for this info all over but have not been able to find any answers.  Are Puerto Rican residents allowed to open a Roth IRA while living and working in Puerto Rico? If so, what set of laws applicable that Roth IRA must the account owner follow? Are Puerto Rican residents able to invest their Roth IRA assets in any investment company in the continental United States?


A film or TV series about classic monsters getting together

This would have been a children's film or TV prog, and I probably saw it in the mid 1980s.  It was filmed with puppets (stop motion or marionation, I don't remember), and was about a gathering of classic movie monsters (Dracula, Frankenstein's monster) at the lab or home of some respected member of their group. I think he was an old man who was dying or retiring, and the gathering was about naming a successor.  I remember a couple of moments fairly clearly:   Dracula - possibly aboard a ship? - looking at the old man's castle in the distance, then saying in a very stereotypical 'vampire' accent, "Now you vill see ze original batman!", then turning into a bat and flying to the castle. The old man's assistant/daughter scheming behind his back and telling at least one of the other monsters that they were not going to be chosen as successor. The assistant/daughter, probably at the end, tearfully confessing to her love interest that she can't love him because she's a robot, saying something along the lines of "My heart is just a pump that circulates coolant".   That's about as far as I can go. Does it ring any bells for anyone?


Setup Exchange OWA / Activesync on Android or iPhone

I'm wondering whether there's a way I can configure my phone sync my corporate emails and calendars?   Sometimes when I'm away for meetings all day, I am not informed of any last minute meeting changes, or I could have forgotten about certain meetings during the day. It can get quite challenging and embarrassing managing such situations especially during days when I'm very mobile. I'm sure my boss isn't too happy about it.   The challenge is, my company has disabled the activesync feature on our corporate Exchange server.   The only solution I have now is to access OWA via my phone periodically to check my email. However, I can't possibly do that all the time. I found out also that there are phone apps that could do this, but I would need to pay for them. And in time to come, my company is going to disable OWA altogether, and that would render my small investment in the app worthless.   This makes me wonder whether is it really so complicated to configure one's phone to perform something so simple?  Since I could configure my personal laptop to download my corporate emails, there must be a workaround to still sync my phone to the Exchange server. However, there's no feature for me to configure certain settings on my phone which I could on my Outlook. For instance, "Exchange Proxy Settings" and "Only connect to proxy servers that have this principal name in their certificate". Does anyone know if there a way to force your phone to allow the same Outlook configurations?  Otherwise, is it possible to perform activesync natively via OWA instead?  If all else fails, I guess I could only either throw in the towel and find some other non-geeky ways to resolve this problem.


Ideal generated by two monic polynomials in $\mathbb{Q}[x]$ and the GCD of their degrees

Let $a$ and $b$ be positive integers with GCD $d > 0$. Show that in $\mathbb{Q}[x]$, the ideal generated by $x^a - 1$ and $x^b - 1$ equals the ideal generated by $x^d - 1$.   Here is what I have so far: since $\mathbb{Q}$ is a field, $\mathbb{Q}[x]$ is a Euclidean domain. So $\mathbb{Q}[x]$ is also a PID and $(x^a - 1,x^b - 1) = (\alpha)$ for some $\alpha$. Furthermore we can write $\alpha = p(x)(x^a - 1) + q(x)(x^b - 1)$ for some $p(x), q(x) \in \mathbb{Q}[x]$. Using the norm $N(\alpha) = \text{deg }\alpha$, we have $N(\alpha) = ma + nb$ where $m = \text{deg }p(x)$ and $n = \text{deg }q(x)$. This seems to imply $\text{deg }\alpha = d$, but I am not sure what else to do here.


Search text in fields in every table of a MySQL database

I want to search in all fields from all tables of a MySQL database a given string, possibly using syntax as:  SELECT * FROM * WHERE * LIKE '%stuff%'   Is it possible to do something like this?


I want to know how is possible to enable gtk (gtk2 engine) in this case for sudoers? When I start an application using gksudo or it run elevated, the application doesn't benefit from the engine while if I am normal user everything is okay.  Does it have something related with /usr/share/themes and people who use it?  Ubuntu Mate Edition 14.04


Mission control shortcuts stopped working, how do I restart it?

I have the mouse gestures such as four finger swipe up shows mission control, or four finger swipe down shows current application's windows.  Occasionally after the computer has been on for a while, the shortcuts just stop working. Is there a way I can fix it without having to restart my entire computer?


How to increase the width and height of the Rich Text area field in Visual force Page?

I know this question has been asked earlier. but did not see proper responses so asking again.  <apex:pageBlockSection title="Preview Pane" columns="1">     <apex:inputTextarea richtext="true" id="EmailBody" label="EmailBody"            cols="1" ondblclick="false" disabled="false"           value="{!emailTemplateSelected.htmlValue}"/> </apex:pageBlockSection>   I have tried to set the column value for the pageblock section. As well as for the inputtextarea. Still the column width dose not span the entire page.    <apex:inputTextarea richtext="true" id="EmailBody" label="EmailBody" cols="1"     ondblclick="false" disabled="false" value="{!emailTemplateSelected.htmlValue}"     style="height:200px;width:200px;"/>


how to break first foreach loop from second nested foreach loop in c#

how to break first for each loop from second nested for each loop in c#,I want to check some conditions in the second for each loop then try to break the parent for each loop  foreach(//do some stuff) {      foreach(//do some stuff)      {           if(//check some condition)           {                 break;//but want to break first foreach loop           }      } }


How would you evaluate the following limit:   $$\lim_{x\to \infty}\sqrt[6]{x^{6}+x^{5}}-\sqrt[6]{x^{6}-x^{5}}$$   I tried to use this formula: $a^{3}-b^{3}=(a-b)(a^{2}+ab+b^{2})$,  It didn't work.  Any hints?


Going to the US and Mexico with two different passports

I have two passports, Brazilian and Swedish (dual nationalities). I am flying from Brazil to the US  (Miami) and would like to use my Swedish passport with approved ESTA. During my vacation in the US (16 days) I will fly to Mexico (Cancun for 8 days) and would like to know if I can leave the US and enter Mexico with my Brazilian passport (Brazilians don't need a Visa to enter MEX). When flying back from Cancun to the US (Miami) can I enter with my Swedish passport again?  My concern is:   I will enter the US with my Swedish passport (valid ESTA), and from the US fly to MEX with my Brazilian passport. Is that ok? Can I leave the US with my Brazilian passport (which doesn't have a valid US visa) to enter MEX? I will enter MEX with my Brazilian passport (no visa required), and from MEX fly to the US with my Swedish passport (valid ESTA). Is that OK? When I return to the US the second time, will I have a “departure stamp” or will the officer only see one “entry stamp”?


Ralink rt3290 wifi driver is not working in Ubuntu 14.04

I recently upgraded from ubuntu 13.10 to ubuntu 14.04. Wifi (with ralink rt3290 card) was not working in ubuntu 13.10, but after the following the guide here, , it worked fine. But in ubuntu 14.04, no matter how much I try it does not work. Can anyone please figure out what the problem is and how to solve it.


Any two dimensional orientable manifold is complex

Let $M$ be a $2$-dimensional orientable manifold. Is $M$ a Riemann surface? If it is true, how can I show it? Thank you very much.


Math book: Exercise - Solution environment

If I use this code provided by a question formulate of Sebastian .  \documentclass{article} \usepackage[most]{tcolorbox} \usepackage{lipsum}  \newtcolorbox[auto counter]{problem}[2][]{% breakable, blankest, enhanced, attach boxed title to top left={yshift=-\tcboxedtitleheight}, left=\tcboxedtitlewidth+1mm, top=0pt, colback=white, fonttitle=\bfseries\sffamily, coltitle={cyan!60!black}, colbacktitle=white, colframe=white, title=\thetcbcounter,  overlay unbroken and first={% \node[fill=gray!30, inner sep=1pt, minimum width=\tcboxedtitlewidth,  outer sep=0pt, text=cyan!60!black, anchor=north] at(title.south)  {\foreach \i in {1,...,#2}{\if#2gt1{\,}\fi$\bullet$}};},#1}  \begin{document}  \lipsum[1]  \begin{problem}{1} \lipsum[2] \end{problem}  \begin{problem}{4} \lipsum[3] \end{problem}  \begin{problem}{2} \lipsum[4] \end{problem}  \end{document}   How could we create solutions environment, so we have at the end of the book solution of the exercises where each one have reference to chapter, page, number of exercise with the corresponding level of difficulty?


Can someone please verify this?     Show that if $B \subseteq C$, then $\mathcal{P}(B) \subseteq \mathcal{P}(C)$   let $x \in \mathcal{P}(B)$.  Then, $x \subseteq B$  This implies that $$\forall a \in x, a \in B$$  This further implies that $$\forall a \in x, a \in C$$  Therefore, $$x \subseteq C$$  This implies that $$x \in \mathcal{P}(C)$$


I want to define a command which prints \newpage if the  on the current page is below a certain size, e.g. 200pt.  I tried to adapt the snippet to my needs. The problem is that the if condition always produces an error message and I have no idea why.  \documentclass{article}  \newdimen\spaceleft \spaceleft=\textheight \multiply\spaceleft by -1  \newcommand{\conditionfornewpage}{     \advance\spaceleft by \pagetotal     \multiply\spaceleft by -1     % the following if condition produces an error     \ifdim(\spaceleft < 200pt)         \newpage         \else     \fi }  \usepackage{blindtext}  \begin{document}      \blindtext[3]      \conditionfornewpage      \blindtext[2]  \end{document}   EDIT  Thanks to David's command I found a great solution for my problem. But I'll accept the answer which explains why I have an error in my code.


Let $\mathrm{X}$ be a random variable with $\mathbb{E}$[$\mathrm{X}$]=0 and $\mathbb{V}$ar[$\mathrm{X}$]=$\sigma^2$, and $\mathcal{a}$ $\gt$ 0. Prove that  P($\mathrm{X}$$\ge$$\mathcal{a}$)$\le$$\frac{\sigma^2}{\sigma^2+\mathcal{a^2}}$  My attempts: I started with Chebyshev's inequality, which gave P($\vert$X$\vert$$\ge$$\mathcal{a}$)$\le$$\frac{\sigma^2}{a^2}$, then I considered the random variable Y=X+t, and ended up with P($\vert$X+t$\vert$$\ge$$\mathcal{a}$+t)$\le$$\frac{\sigma^2(1+2t)}{(a+t)^2}$.  Any help is appreciated


How to display a view in the first time the app is opened?

How can I display some view in the first time the app is opened like an instructions/tutorial page? Thanks


Trying to connect to a server on my network

I was trying to connect to a server that is running on another pc in my house. I've tried all the other ip's in the ipconfig in the cmd and doesn't work. I need help with this. When I try to join using the external ip it just times out the server is port forwarded. I've had other people join to test to see if they can get in and they can but I can't.


I am trying to add an item to a list of card objects, and I get a nullpointer exception if I run this code. I believe I can't add to a 'null' list, but how do I fix this? (The error occurs at 'cards.add(...);')  public class Deck {      private List<Card> cards;     public Deck(String[] ranks, String[] suits, int[] values) {         for (int i = 0; i < ranks.length; i++) {             for (int j = 0; j < suits.length; j++){                 cards.add(new Card(ranks[i], suits[j], values[i]));             }         }     }


Why does asterisk produce unexpected results in find?

I'm new to Bash. From the :     You want to find every file in ~/mydir and all its subdirectories, recursively, with a file extension of .htm (or .HTM or .Htm...) and delete it. I've seen a lot of attempts like rm -rf ~/mydir/*.htm which really don't come close. The correct solution is  find ~/mydir -iname '*.htm' -exec rm {} \;       -iname says that you want to do a case-insensitive search on the filename. '*.htm' is in single quotes to prevent bash from expanding the *, which will produce unexpected results.      Question: What does asterisk produce with and without the quotes? Why would you decide to use quotes versus not?


Execute python dictionary keys/values as commands in shell

How would I execute python dictionary key/values as commands in a linux kernel? For example:      keys = {             "echo" : "hello",             "touch" : "nothing"             }   and I wanted to run the first key/value pair to run in the shell "echo hello".  I've tried using the json module, but don't know where to go from there.  Thanks.


I try desesperately to push an app with adb  on the /system/app folder (to install the PlayStore on my low cost tablet). So i tried to remount the /system partition with root rights :  mount -o remount,rw /system    But it give me everytimes the same response :   mount: Read-only filesystem   And i tried also with this command :  mount -o remount,rw -t ext4 /dev/block/actc /system   but it's the same thing... And i don't understand really why, even with the root user, i can't modify this...  So if someone have an idea, it could be save one person in distress :p


How can I get the string of a variable name passed by reference?

It's possible to pass a reference to a variable (rather than just its value) into another function with the keyword ref. It's also possible to get a variable name with nameof(variableName). However, I'm not sure how to solve my current problem.  With Unity saving/loading, it's not uncommon to have a line like:  level = PlayerPrefs.GetInt("level", level);   I feel that rather than typing level three times in a line, I should have a short little function like:  LoadPref(ref level);  void LoadPref(ref int pref) {     pref = PlayerPrefs.GetInt(nameof(pref), pref); }   Then every new pref can be added with another simple LoadPref call, writing it once and removing any potential issues with magic strings. However, the problem is that nameof(pref) returns pref, even though I really want it to return the name of the referenced variable.  Is there a way to get the name of the referenced variable as a string?  This is not a duplicate of , as for that nameof(pref) would be the solution - though I can see why their title causes confusion. The question here is if there is a way to get the name of the original reference from ref.


Count total number of files in particular directory with specific extension

I want to count the total number of files in particular directory that ends with ".mp4" extension.  I am getting following command:  ls -F |grep -v / | wc -l   It count all the files in particular directory, but I want the count of files that end with .mp4 extension.  Is there any Ubuntu command for that?


I ran the below code on my computer:  char ch = 'E'; System.out.print(ch + ++ch);   I expected EF but the output was 139. Why is the ASCII value added and printed.  My question is why is the output is 139 not EF?


how to transpose matrix by reference in java

I try to transpose matrix by reference, but without success, the matrix in the main stays in the same state. what can I do?  p.s. the function must to be "void"  thank you!   public static void trans(int a[][]) {         int n = a.length;         int m = a[0].length;         int b[][] = new int[m][n];         for (int i = 0; i < b.length; i++) {             for (int j = 0; j < b[0].length; j++) {                 b[i][j] = a[j][i];             }         }                a = b; }     public static void main(String[] args) {         int a[][] = {{1,2,3},                      {4,5,6}};           trans(a);          System.out.println("*****************************");         for (int i = 0; i < a.length; i++) {             for (int j = 0; j < a[0].length; j++) {                 System.out.print(a[i][j]+"\t");             }             System.out.println();         }     }


Do I need a visa to enter Belarus if I have a visa from Russia?

I am a Cameroonian. I have a Russian visa, but I wish to stop at Belarus for a few days on my way to Russia. Will I need a separate Belarusian visa, or will the Russian visa I have permit me to spend a few days in Belarus?


I am using the amsmath package in latex to align three equations.   \begin{align*}  &x_{1} - 3x_{2} + 4x_{3} = -4 \\ 3&x_{1} - 7x_{2} + 7x_{3} = -8 \\ -4&x_{1} + 6x_{2} - x_{3} = 7  \\ \end{align*}     how do i get the output shown above to align each of the numbers in columns. I need all of the operands in the same spot and in my output the equal sign is way off.  thanks


I am doing a project on wasting food and was wondering which phrase would be grammatically correct. "40% of most household bins are food" or "40% of most household bins is food", thanks :)


Does using a shield as an improvised weapon work with Dual Wielder feat?

Does a shield used as an improvised weapon via Improvised Weapons rules     An improvised weapon includes any object you can wield in one or two   hands... (PHB 147)   count as a melee weapon since it is similar to melee weapons?     In many cases, an improvised weapon is similar to an actual weapon and   can be treated as such. (PHB 147)   If so...  Do you get +2 to AC from a combination of the +1 AC from the Shield and the +1 AC from the first bullet point of the Dual Wielder feat?     You gain a +1 bonus to AC while you are wielding a separate melee   weapon in each hand. (PHB 165)


Researching German soldiers who were prisoners of war in US during WWII?

My father-in-law was in the Latvian army then conscripted into the German army. We believe he was captured by American forces in either North Africa or Italy and brought to the US.  He was in a camp along the East Coast or New England area.  I have contacted both WASt and ICRC who have no records on him.  Where do I look next to find out where he was held and when he was repatriated?


Access local variable from the global context?

function wrapValue(n) {   var localVariable = n;   return function() { return localVariable; }; }  var wrap1 = wrapValue(1); var wrap2 = wrapValue(2); console.log(wrap1()); // → 1 console.log(wrap2()); // → 2     In this example how is it allowed to access localVariable, which is local to wrapValue() function, from the global environment? The book, included this example, stated the reason as follows: "multiple instances of the variable can be alive at the same time". But I didn't understand.


Graphview null object reference how can i solve?

Not same other nulpoint because i am asking to how to draw graph ? I have a temp data type of double but it is not empty.My bluetooth get the temperature data from the devices. I want to real draw graph (x: time, y:temp) I want to draw graph with this code, i cant draw how can i fixed ? I have a lot of Logcat when i draw the graph. I tried at many of times please help me   public class Fragment2 extends Fragment {     // TODO: Rename parameter arguments, choose names that match      private View convertView; GraphView temp_graph;     TextView incomingMessages;     Double messages;     Double [] temp = new Double[1000];     Double [] time = new Double [1000];     Handler mHandler = new Handler();     int i=0;     LineGraphSeries<DataPoint> line_series;       @Override     public View onCreateView(LayoutInflater inflater, ViewGroup container,                              Bundle savedInstanceState) {         if(convertView==null){             convertView=inflater.inflate(R.layout.fragment_fragment2, container, false);             incomingMessages= (TextView) convertView.findViewById(R.id.text);             temp_graph =(GraphView) convertView.findViewById(R.id.graph);               LocalBroadcastManager.getInstance(getActivity()).registerReceiver(mReceiver, new IntentFilter("incomingMessage"));             DataPoint [] dataPoints = new DataPoint[time.length];           }    // Inflate the layout for this fragment         return convertView;     }     BroadcastReceiver mReceiver = new BroadcastReceiver() {         @Override         public void onReceive(Context context, Intent intent) {             String text=intent.getStringExtra("theMessage");             incomingMessages.setText(text);             temp[i]=Double.parseDouble(text);             DataPoint [] dataPoints = new DataPoint[1000];               line_series =                     new LineGraphSeries<DataPoint>(dataPoints);             for (int i=0; i<1000; i++){                 dataPoints[i]= new DataPoint(i,temp[i]);             }             temp_graph.addSeries(line_series);              i++;           Log.d("deneme","temp"+temp[1]+"temp2 "+ temp[2]);         }     };      }   This is my logcat errors :  java.lang.NullPointerException: Attempt to invoke interface method 'double com.jjoe64.graphview.series.DataPointInterface.getX()' on a null object reference                       at com.jjoe64.graphview.series.BaseSeries.checkValueOrder(BaseSeries.java:527)                       at com.jjoe64.graphview.series.BaseSeries.<init>(BaseSeries.java:117)                       at com.jjoe64.graphview.series.LineGraphSeries.<init>(LineGraphSeries.java:163)                       at com.example.duygu.mybluetoothdevicelist.Fragment2$1.onReceive(Fragment2.java:73)                       at android.support.v4.content.LocalBroadcastManager.executePendingBroadcasts(LocalBroadcastManager.java:311)                       at android.support.v4.content.LocalBroadcastManager.access$000(LocalBroadcastManager.java:47)                       at android.support.v4.content.LocalBroadcastManager$1.handleMessage(LocalBroadcastManager.java:120)                       at android.os.Handler.dispatchMessage(Handler.java:102)                       at android.os.Looper.loop(Looper.java:148)                       at android.app.ActivityThread.main(ActivityThread.java:5525)                       at java.lang.reflect.Method.invoke(Native Method)                       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:730)                       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:620)


I have the following files   SSt12.precip.374.sub.climatology.ctl SSt12.precip.2874.sub.climatology.ctl SSt12.precip.3764.sub.climatology.ctl SSt12.precip.6774.sub.climatology.ctl   I want to rename the files as   SSt12.precip.1.sub.climatology.ctl SSt12.precip.2.sub.climatology.ctl SSt12.precip.3.sub.climatology.ctl SSt12.precip.4.sub.climatology.ctl


Where I can buy a CD for Linux Installation?

I would like to know where I can buy a CD/DVD for Linux installation on my old computer. Because recently, twice, from eBay I bought a Linux CD installation, but it did not work. While being installed it just stopped working, freeze.  I tried downloading the installation iso file, but it took too long and I had to cancel the download.  I have a very, very old desktop computer with Windows XP installed. Also I cannot afford to buy a new computer.


$R$ be a ring and $a\in R$ be a non nilpotent element and define $S=\{a,a^2,a^3,\cdots\}$ and if $P$ is maximal ideal of $F$, is $P$ prime ideal?

$R$ be a ring and $a\in R$ be a non nilpotent element and define $S=\{a,a^2,a^3,\cdots\}$ and $F=\{A\subseteq R| A-ideal \;, S\cap A=\emptyset\}$ If $P$ is maximal ideal of $F$, is $P$ prime ideal? I am self studying abstact algebra but I didnot understand first of all is the set $F$ a ring? In what operations? Furthermore, how one can show this ?


would adding the probabilities in a dataset be more accurate than the individual results?

Say I have the titanic kaggle competition, but I'm not interested in the competition for predicting survival for each individual. Instead I want the most accurate estimate of total survivors on the titanic. Would this be achieved by using a probabilistic model, then adding the probabilities for each individual? For example, if I have 3 people and 1 survived, but my model produced 0.4, 0.4, and 0.4 probabilities for each person to survive, I calculate 0 survived. But if I add 0.4 for each person, I get 1.2, which is closer to the actual. Does this make sense?


Welcome! instead of ¡Bienvenido! on es.stackoverflow.com

I created a new account to take a look as new user to new responsive design. After the sign-up page, the right panel shows a "Welcome box". The problem is that the heading is in English instead of Spanish.    We are using traducir.win. It shows that the "Welcome!" string is already translated as ¡Bienvenido!.      Update 2018-10-01  Now the Welcome box heading says Bienvenidos! but it's grammatically wrong. IMNHO the correct is string is ¡Bienenvenido! as it's shown on the traducir.win screenshot.    Related


How to remove status options from Messages Indicator?

I'm using Ubuntu 13.10 with Unity.  I'm willing to have an indicator for my Gmail inbox.      My current situation :   I now use unity-mail, which works great with indicator-messages and is fully integrated in Unity. But I have one thing that I don't like, check this screenshot :     As you can see, indicator-messages still shows me status "available", "away", "invisible", and such. I would like to only have my emails, I don't care about the other things this package can do.      A way to achieve this :   I saw  this screenshot : this is exaclty what I would like to have !    I also saw  that I could use the sources to recompile indicator-messages, by modifying some lines. Unfortunately, the sources seems to have been rewritten, I can't follow the answer given, one file doesn't exist anymore and the code in the second file isn't the same.     So, here's the question :    How can I recompile indicator-messages to hide the status on 13.10 ?


I was thinking about the following problem:    Let $A$ be an $n\times n$ matrix over real numbers such that $AB=BA,$ for all $n\times n$ matrices $B$.Then which of the following options is correct?     (a)$A$ must be zero,   (b)$A$ must be the identity,   (c)$A$ must be a diagonal matrix,   (d)$A$ must be either $0$ or the  identity.     I think the answer will be between $(c)$ and $(d)$. But i am not sure how to get the exact result.Can someone show me the right direction? Thanks in advance for your time.


Is it possible for two finite fields with the same characteristic to not be isomorphic?

Examples of this? I know this is possible with infinite fields but I'm not sure about finite fields.


Are there explicit rules for combining numerical bonuses in 5th edition, or is it just left implicitly to "common sense"?  There are special cases (e.g. damage resistance and vulnerability, choice of base AC formulae, identical spell/item effects) which are well-defined, but I can't find a general rule. Additive and multiplicative bonuses Example: Longstrider and Haste for a creature with 30' base walking speed.  Longstrider: You touch a creature. The target’s speed increases by 10 feet until the spell ends. Haste: Choose a willing creature that you can see within range. Until the spell ends, the target’s speed is doubled [...]  Possible interpretations:  Always multiply first: (30' × 2) + 10' = 70' Always add first: (30' + 10') × 2 = 80' Do it in the order the spells were cast Player chooses GM chooses  Multiplicative bonuses with one another Example: Haste and Boots of Speed for a creature with 30' base walking speed.  Boots of Speed: While you wear these boots, you can use a bonus action and click the boots' heels together. If you do, the boots double your walking speed [...]  Possible interpretations:  Doubling the second time just idempotently repeats the fact that it's been doubled: max(30' × 2, 30' × 2) = 60' Doubling the second time means your speed is quadrupled: 30' × 2 × 2 = 120' Doubling the second time adds another 100% of your base movement, resulting in an overall tripling: 30' × (100% + 100% + 100%) = 90'.  This was the rule in 3rd edition.


After migration to MacOSX 10.11 "El Capitan", how to run simple utilities such as "texdoc" and "kpsewhich"?

Last night, I migrated my MacBook's operating system from 10.10 "Yosemite" to 10.11 "El Capitan". Everything seemed to go smoothly. Happily, regarding my TeX-related work, I am able to use the GUI front ends "TeXworks" and "TeXshop" just fine since completing the OS upgrade. I use MacTeX2015, with all the latest updates installed.  Oddly, though, since completing the upgrade I can no longer run any MacTeX command-line utilities such as texdoc and kpsewhich. (Actually, as I just discovered, I can no longer run pdflatex either from a command line. However, I never do run pdflatex from a command line prompt, so that's not an urgent problem for me -- at least not for now.)  The suggestions given in the posting  do not seem to be applicable to this case, as they all seem to revolve around setting up /usr/texbin correctly -- /usr/texbin is no longer allowed under MacOSX 10.11. The document  by Herb Schulz deals in depth with adjusting settings in the GUI front ends, but it appears not to touch on what to do about /usr/texbin, which appears to be the now-missing link to TeX's command line utilities.   Pointers and solutions most welcome!


I would like to test a linear restriction in R. Instead of the usual $\beta_i=0$, I want to test if $\beta_k=0.5$ and $\beta_j=-0.5$.  Is there a way to do this using lm command, and just writing a different formula for the models that lm command uses?  I was thinking of writing $y-0.5x_k+0.5x_j=\sum_{i\neq j,k} x_i\beta_i+(\beta_k-0.5)x_k+(\beta_j+0.5)x_j$. However, I'm not sure how to code this reparametrization...  P.S:Would writing $y−I(−0.5x_k+0.5x_j)$ ~ $\sum x_i$ as the formula to be run on lm, work as 2 t-tests?   Any help would be appreciated.


Automatic numbering of rows in attribute table - QGIS

In my attribute table, I have districts and cities for Finland as shown in the picture below. Is there a way I can give a number to each city without doing it manually?


Title and tags do not show up while editing a moderator edited question

The following post was edited by :    Attempting to edit the post opens it up without the title and the tags.  The revision history of the post can be accessed .  Surely one could copy/paste the title and add the tags while making the edit, but it seems like a bug.  (Needless to say this issue is not observed on other posts.)


Does my son know I'm using Find my iPhone when I log on?

If I use Find my iPhone to locate my son's phone, does he know I am checking?  Does his phone alert him that I'm checking on him?


How does Newton's cradle with balls of different mass behaves?

Conservation of energy and momentum governs Newton cradle. If $n$ balls were lifted, $n$ balls will bounce of on the other side. This happens if all balls have the same mass. Now, assume that you have a cradle with balls $a,b,c,d,e,f.$ All balls except $f$ has weight 1. Ball  $f$ has mass $n+0.5$ (1.5 or 2.5). We lift ball $f$ and bring it to motion. What will happen on the other side?  I would guess that n balls would fly to the original height and one more ball will fly half way.   =================================================     As far as I can tell physicists never tried this experiment fearing it will destroy the Universe. :-)  The so called duplicate is NOT a duplicate because it talks about integer mass ratios, whereas I ask about fractional mass ratios. Also, that answer provides a link to a single clip about a single case. that doesn't answer anything. Besides, even if that question was related, there is no way for me to revitaliate it.   =================================================


When I click "Start a Bounty" I get the dialog asking me to choose how many points to offer, but when I click Next nothing happens (the dialog stays, no points are subtracted, no bounty is added). Clicking X or pressing ESC will clear the dialog, clicking cancel jumps to the top of the page but the popup is still on the screen.  Tested on several SE sites, on both questions posted by me, and questions posted by others.  This is on the latest version of IE, 11.1358.10586.0 on Windows 10. Tested on two machines (a desktop and a MS Surface).   Both are in the same corporate network, so I suppose that could be a factor, although I can't imagine that firewall settings would prohibit that one specific action, while I can do everything else on SE sites.   EDIT: Still broken. Proof? Had to use Chrome to add a bounty to this question.


Is a complex operator $T$ with $\langle T(v),v \rangle =0$ for all $v$ equal to $0$?

Let $(V,\langle \cdot , \cdot\rangle)$ inner product space on $\mathbb{C}$ and let $T:V \rightarrow V$ prof or disproof. if $\forall v \in V$ $\langle T(v),v\rangle$  $ = 0$ than $T=0$.  I had found very easily counterexample for the case $F= \mathbb{R}$ by defending symmetric matrix that defines the inner product and the same matrix don't work on the complex filed than I thinking that it may be true.  the example for $F= \mathbb {R}$ :  $T(x,y) = (y,y) $ and $A = \begin{pmatrix} 1 & -1 \\ -1 & 1 \end{pmatrix}$  $\langle u,v \rangle = u^T A v$


I recently tried out Pantheon DE and after I purged it from my system, I am seeing a whole host of problems with the DE - improperly sized panels, misfitting windows title etc. The only option is left to reinstall Unity as Pantheon messed by GTK. How do that???


Can I set up and use a Wii U without a separate display?

I don't own a TV or monitor, but I'm interested in a Wii U for games that can be played with only the controller.    Is it possible to go through all the initial console setup, downloading updates, etc, and then connecting to the e-shop to buy software using the Gamepad as my only display?


Rank of the $n \times n$ matrix with ones on the main diagonal and $a$ off the main diagonal

I want to find the rank of this $n\times n$ matrix \begin{pmatrix} 1 & a & a & \cdots & \cdots & a \\ a & 1 & a & \cdots & \cdots & a \\ a & a & 1 & a & \cdots & a \\ \vdots & \vdots & a& \ddots & & \vdots\\ \vdots & \vdots & \vdots & & \ddots & \vdots \\ a & a & a & \cdots  &\cdots & 1 \end{pmatrix}  that is, the matrix whose diagonals are $1's$ and $a$ otherwise, where $a$ is any real number.  My first observation is when $a=0$ the rank is $n$ and when $a=1$ the rank is $1.$ Then I can assume $a\neq 0, 1$ and proceed row reduction to find its pivot rows. I obtain  \begin{pmatrix} 1 & a & a & \cdots  & a \\ 0 & 1+a & a & \cdots & a \\ 0 & a & 1+a & \cdots & a \\ \vdots & \vdots & \vdots & \ddots & \vdots \\ 0 & a & a & \cdots  & 1+a \end{pmatrix} by subtracting the first row multiplied $a$ for each row below the first, and then divides the factor $(1-a)$,  and stuck there. Any hints/helps?


I'm taking my first course in Probability and one of my homework problems is to prove that for any two sets:  $$P(A \cup B) = P(A) + P(B) - P(A \cap B) $$  Note that the function $P$ is the probability of an event happening.  From the third axiom, we are given that for any two disjoint sets, that is $ A \cap B = \emptyset$:  $$P(A \cup B) = P(A) + P(B)$$    My thought process follows from this third axiom, but I run into a problem near the end:  Since $A$ and $B$ are disjoint sets, $P(A)=P(A-B)$ and $P(B)=P(B-A)$, so  $$P(A \cup B) = P(A) + P(B)=P(A-B)+P(B-A)$$  From this, it appears that we are essentially taking the symmetric difference of A and B.  This, to me, seems to be equivalent to:  $$P(A-B)+P(B-A)=P(A)+P(B)-P(A \cap B)$$  Hence, by my logic:  $$P(A \cup B) = P(A)+P(B)-P(A \cap B)$$  Which, in essence, doesn't care whether two sets are disjoint or not as we are subtracting the intersection of them.  If the sets are disjoint, then the intersection is merely null.  If they intersect, then we are removing the "extra pieces".  I feel like this is inadequate proof despite my ability to convince myself that it is true..  Where, if anywhere, did I go wrong?  Thanks!


Why do I still have Green Checkmarks on my desktop folders

Why do I have these green checkmarks on my icons? I have refreshed my desktop and they are still there.


Blender viewport material preview is gray and weird

This is a new project and I didn't change any settings, in the viewport shading material is clipping the background when I rotate the viewport, Please Help!


What are the strange curved lines appearing on fabric in my apparel photos, and how can I remove them?

I ran a clothing photography shoot and encountered an issue in many photos.  If you see this image, there are some curved lines all over the item.  What are they and how could I remove them with Photoshop?


What is the relation between linear purity and von Neumann entropy of a state?

Given a density matrix $\rho$, its linear purity is $\mathrm{Tr} \rho^2$, its von Neumann entropy is $-\mathrm{Tr} \rho \log \rho$. Knowing one how do I calculate the other?  Edit:   My thought is that the linear purity and the von Neumann entropy are a parallel set of benchmarks for mixedness. Their inter-conversion should be like unit conversion.  See it this way, as a state goes from a pure state to a maximally mixed state, $\mathrm{Tr} \rho^2$ goes from $1$ to $0$, and $-\mathrm{Tr} \rho \log \rho$ goes from $0$ to $\log d$, like two rulers. A point on one should correspond to a point on the other.


white-space bug at bottom of page! happening on every page on meta.SE that I've tried!


Prove that every number ending in a $3$ has a multiple which consists only of ones.      Eg. $3$ has $111$, $13$ has $111111$.   Also, is their any direct way (without repetitive multiplication and checking) of obtaining such  multiple of any given number( ending with $3$) ?


Beep sound while starting Windows 7 Lenovo laptop

While starting my Windows 7 Lenova Laptop, a beep sound occurs. If I press arrow buttons continuously, sometimes the laptop starts normally.   How to solve the problem? Is it a hardware problem?


How to set value of file field with entity_metadata_wrapper

How do you set the value of a file field when using the entity_metadata_wrapper?  I've tried doing this in code:  $file = new stdClass(); $file->uid = 1; $file->uri = $file_path; $file->filename = basename($file_path); $file->filemime = file_get_mimetype($file_path); $file->filesize = filesize($file_path); $file->status = FILE_STATUS_PERMANENT; $file->display = '1'; file_save($file); // I also tried: $file = file_save($file);  $node = array(   'type' => 'news_item',   'uid' => 1,   'status' => 1,   'comment' => 0,   'promote' => 0,   'language' => 'en', );  $entity = entity_create('node', $node);  $ewrapper = entity_metadata_wrapper('node', $entity);  $ewrapper->field_document->set((array) $file); // I also tried: $ewrapper->field_document->set($file);  $ewrapper->save(true); entity_save('node', $entity);   But I get this exception:  EntityMetadataWrapperException: Invalid data value given. Be sure it matches the required data type and format. in EntityMetadataWrapper->set() (line 122 of C:\wamp\www\drupal\sites\all\modules\entity\includes\entity.wrapper.inc).   Any help is very mych appreciated.


Is it acceptable to lowercase 'google' in all verb forms?  For example:   He googled the information. He is googling the information. He googles the information. Please google the information.   Is it now acceptable to lowercase the word 'internet'?


How to change the Google Chrome default print margins

In Chrome, the default print margins are narrow. I would like the default to be wider.  Is there a way to make them wider?


Is it possible in D&D 5E to create what is essentially a floating disk powered flying machine that is steerable via moving along a ring?

Would it be possible to create a spoke like (think old cart wheels) structure with a 21 foot radius with a small chamber in the middle for a floating disk, that will hold itself together and is light enough for the disk to hold along with a passenger? Wondering because in a campaign I play a wizard and if it is possible could use my spell slots of all levels to essentially fly, or at least hover. I know that it is possible to move in this way purely on the spells rules, but am more wondering if this specific structure would work so that it is also steerable. ( answers if it could move, but I am asking if this specific structure would move and be steerable)


Do Fire Shield of fire and Fire Shield of ice stack?

If I cast Fire Shield for fire and ice, will they stack?


What bunch of ffmpeg scripts do I need to get HTML5-compatible "Video for everybody"?

What list of commands should I do in ffmpeg/mencoder/some_other_CLI_app to get a video in all the right formats to use ?  i.e. Is there a subtlety that prevents there being a mechanical tutorial that says  VIDEO=video.mp4 TYPE=$(ffmpeg --find-information-about-the-video ... ) ffmpeg ... > video.mov ffmpeg ... > video.flv ffmpeg ... > video.webm ffmpeg ... > video.h.264 ...   Then copy and paste the Video for Everybody code into your page?  My goal is to have an embedded video in my personal webpage hosted by me.  HTML5 with flash fallback is preferred, so the simplest way seems to be Video for Everybody.  But that page leaves the most complicated part, encoding the video into all the different formats, to the reader to figure out by reading .  Surely this isn't necessary.  I could provide a list of commands for a user to blindly convert an audio file into a bunch of different formats.  Hopefully an ffmpeg guru could do the same for video.


Why it's unable to update item value based on a condition using LINQ  Here is my code :  class Program {     public static List<Items> items = new List<Items>();     static void Main(string[] args)     {           // Add items to list         for (int i = 65; i <= 70 ; i++)         {         var RowItem = new Items();             RowItem.Code = i;             RowItem.Char = (char)(i);             items.Add(RowItem);         }           //Update item         items             .Where(s => s.Code == 70)             .Select(s => { s.Char ='*' ; return s; })             .ToList();          Console.WriteLine("\n\n\n");         foreach (var item in items)         {             Console.WriteLine("\t " + item.Code + " ----> " + item.Char);         }          Console.ReadKey(true);     } }   Item class defined as below Item class defined as below Item class defined as belowItem class defined as below  public class Items {     public int Code { get; set; }     public Char Char { get; set; } }


$ \sum{ a_n x^n } $ & $ \sum{ b_n x^n } $ converge at radiuses $ R_a, R_b $. What can be told about radius of $ \sum{(a_n+b_n) x^n} $?

Problem: Suppose the power series $ \sum^\infty_{n=0}{ a_n x^n }  $ converges at radius of convergence $ R_a $ and the power series $ \sum^\infty_{n=0}{ b_n x^n }  $ converges at radius of convergence $ R_b $. What can be said about the radius of convergence of the power series $ \sum^\infty_{n=0}{ (a_n+b_n) x^n }  ~~ $ ? Hint: Handle the case $ R_a = R_b $ and the case $ R_a \neq R_b $ separately. Attempt- I didn't really know what to do but I still tried: If $ R_a \neq R_b $ the sum $ \sum^\infty_{n=0}{ (a_n+b_n) x^n } $ converges iff $ \sum^\infty_{n=0}{ a_n x^n }  $ and $ \sum^\infty_{n=0}{ b_n x^n }  $ converge, hence $ R_{ab} = min\{ R_a , R_b \} $. Let's now look at a case where we'd have $ R_a = R_b $; Define $ S^{a}_n = \sum^{n}_{k=1}(-1)^k x^k $ ,  $ S^{b}_n = \sum^{n}_{k=1}(-1)^{k+1} x^k $ note that $ R_a = R_b =1  $ . But $ S^{ab}_n = \sum^{n}_{k=1}( (-1)^k + (-1)^{k+1} ) x^k = 0 $ hence $ R_{ab} = +\infty $ . Question: I feel very lost at this problem, can you please help me as to what explicitly I should do and what to show? how would you approach this problem?


I think I found someone spamming, but so far they haven't been detected

I was doing some review tasks, and ran into these two responses:    and:   I then checked the .  There are 6 answers there, which are basically all the same (the account was created today).  So, instead of flagging them all, I figured that I would make a meta post.  For future reference, is this the correct course of action?  EDIT: I was going to flag them the first time around, but the questions all asked for C/C++ decompilers, so I wasn't sure what to do.  I wanted to close the questions, but I didn't have that option in the review, so I oked them.


using a class defined in a c++ dll in c# code

I have a dll that was written in c++, I need to use this dll in my c# code. After searching I found that using P/Invoke would give me access to the function I need, but these functions are defined with in a class and use non-static private member variables. So I need to be able to create an instance of this class to properly use the functions. How can I gain access to this class so that I can create an instance? I have been unable to find a way to do this.   I guess I should note that the c++ dll is not my code.


How do I update Python from 3.4.3 to 3.5?

I'm also using Jupyter and Anaconda, will it break/delete them or any python modules?


How to factorise $2 \sin^2θ – 3\sinθ +1 = 0$

This is trigonometry from double angles and compound angles. Thus far I've simplified it up to this point. $$2 \sin^2θ – 3\sinθ +1 = 0$$  I'm trying to factorize this to solve for General Solution. I tried taking out a common but that +1 is giving me a problem. I used the quadratic equation to get 1 and 0.5 as an answer, but i don't know how to write it in terms of 2sin(squared)θ and -3sinθ.  Any help will be appreciated.


\documentclass{report} \usepackage[acronym]{glossaries} \makeglossary \newacronym{svm}{SVM}{Support Vector Machine} \newacronym{wasn}{WASN}{Wireless Sensor Networks} \begin{document} \printglossaries \newpage using \gls{svm} blah blah \gls{wasn}blah blah.....\gls{svm} \end{document}   I am testing with above MWE. The acronyms are correctly displayed in the document body when compiled, but nothing gets printed where I need the List of Acronyms.  I am using TexMakerX as my IDE on Windows 7.  Once I compile the above code a .glo file is created but it is empty. I think this is the problem but I don't know why it is happening.


How to count the number of distinct subgroups of $G$?

Let $G$ denote the group of all the automorphisms of the field $F_{3^{100}}$ that consists of $3^{100}$ elements .How to count the number of distinct subgroups of $G$ ?  I have not gathered enough points to solve it.So cant give my thoughts here.Any hints will be useful


A bash script to start applications in certain workspaces

I'm dreaming of a Bash script that opens applications and places them in certain workspaces.   For example, I'd like to run a script that:   In Workspace 1 opens firefox WS2 - opens term and maximizes it WS3 - opens Sublime Text2 and maximizes it WS4 - opens Pidgin, gpodder, and banshee   Is such a script possible in Ubuntu 13.04 running Cinnamon?


Related:          I have an image file -- a gif file, which is the graph of a function. How do I add it to a LaTeX file? Will it come out OK in the subsequent pdf file?


what is the distinction between /media, /mnt and /run/mount?

In FHS-2.3, we have /media that holds mount points for removable media such as CD-ROMs and we have /mnt that holds temporarily mounted filesystems.  On the other hand, we have /run/media and /run/mount. For me, the CDs and USBs are mounted on /run/media.  I don't see any clear distinction between them(/media, /mnt, /run/mount) . What are their differences?     I have seen similar trend (mount on /run/media) in fedora 20 - GNOME 3.10.4 and ubuntu 14.04.1 (installed on virtual box) with GNOME 3.10.4. But when I plugged in a USB flash (with auto-mounter script) on a system with Centos 6 and GNOME 2.28.2 it was mounted on /media


Mini DVI port male to thunderbolt female

I use the old 2007 white macbook (that works great). There's a thunderbolt display lying idle in our office, and I wish to connect it to my macbook. The macbook has a mini DVI port. I searched online for a mini DVI male to thunderbolt female adapter, but couldn't find anything. Does such a thing not exist?


Show that the logic $ \ \forall x \exists y \ P(x,y) \ $ is not logically equivalent to $ \ \exists x \forall y \ P(x,y) \ $  in the domain $ \ \{-1,0,1 \} \ $ by giving a counter example .  Answer:  Let   $ x=\{0,1 \} \\ y=\{-1,0 ,1 \} \ $  Let $ P(x,y) \ $ be the property such that $ \ x \geq y \ $   Then , $ \forall x \exists y \ P(x,y) \ $ is true.   But, $ \ \exists x \forall y \ P(x,y) \ $ is False. Because for $ x=0 \ $ , we have $ \ 0 \ngeqslant y=1 \ $.  I need confirmation of my work.


How to do a script in BASH which takes random text from file?

I have file like:  aaa  bbb  ccc  ddd  eee    And I want to do a script in BASH which can takes random line of this text file, and return it to me as variable or something.  I hear it can be done with some AWK. Any ideas?  UPDATE: I now using this:  shuf -n 1 text.txt  Thanks you all for help!


How to correctly re-attach onclick events

I have an OL that contains LIs with small inset buttons:  <li id="123">   <button class="action1">Do 1</button>   <button class="action2">Do 2</button> </li>   And my jquery which has set up the functions on document load:  $('.action1').on('click', function() {   // do stuff });   Only, when I'm appending to the list:  li = '<li...' //defines li item here $('#myol').append(li);   The buttons don't do anything. I guess this is because the listeners were attached before the listitem was created, but what is the correct way to attach the listeners to the newly created items (or even better, set them up in such a way that newly created items are accounted for?


Solution for A/C Condensate Drain Line when it is not possible to drain it elsewhere?

I have a split A/C system in a room that runs on low 24 hours a day during Summer that unfortunately cannot be connected to any drain or pipe and which therefore requires a bucket to be used to collect the condensate from the condensate drain line in the exterior unit that sits on my balcony in my apartment building.  I have not yet been able to solve this issue.  This is quite frustrating as the bucket has to be emptied every single day (once a day), so I'm looking for a better solution.  Without going into details, connecting the condensation drain line to any drain of any kind, drain line, drainage hole, ground, etc. is not an option, so I need an outside-the-box solution.  The bucket is already quite large and gets quite heavy at the end of the day when it's full, so maybe something that makes the water evaporate faster than normal so that I don't have to empty the water so often?  The A/C Condensate Drain Line seems to empty about 3 Gallons / 12 L per 24 hour period.  Potential solutions:  Humidifier   Are there outdoor-friendly humidifiers that could get rid of 3 Gallons/ 12 L per day?  The tank would not have to hold that much as the drain line would just drip the water constantly into the tank. CONSIDERATIONS: Would I need to use more than 1 humidifier and serialize them?  Can a humidifier handle being on for 24 hours a day for 4 months straight?  Can a humidifier handle the elements (e.g. could rain affect the circuitry or create any electrical issues)?   Plant/Grass garden   My balcony has 37sqft / 3.4 m2 of area to play with but only 1 hour of direct sunlight (although plenty of indirect sunlight) per day, could I create a garden of plants/grass to absorb the water? -CONSIDERATIONS:  How much garden would I need?  Which plants could meet this criteria?  Could the balcony handle the weight of soil + plants + water?   Any other outside-the-box solutions?  Would any of the solutions listed above work?  If so, what specific details would I need to make it work?  Are there any other solutions?


Possible Duplicate:          A friend of mine asked me this question, and it caught my curiosity.  Is there an explicit opposite of the word postpone?  As in, do something in advance?  Clearly what I just said is functionally equivalent to the answer I am seeking, but I was wondering if there was a single word that is the antonym.  More context: Bob was supposed to start work in July, but due to a work visa issue, he had to begin in advance.


My email ID on Gmail is Sandeep.bhargava@gmail.com. I am getting emails sent to:   sandeepbhargava@gmail.com sandeep_bhargava@gmail.com   I think this is an error in Gmail logic. As a result, I am getting other people’s emails. How can I report this to Google?


This is my first every java project.All was going well and my program compiled. I got a 3D looking object on my screen. But when I use my moveTo(int x,int y) method I get a null pointer exception. I've looked it up and it's obviously a huge issue for a lot of people. But I still can't grasp the concept of it and any of the fixes that worked for other people don't seem to fit my program. I have tried using if statements to check for null and stuff like that but I can't get the syntax right or something. for example the base is an ellipse , the ellipse class has a moveTo(x,y) method.but when I call on it using base.moveTo(x,y) im getting the error. Can anybody help? cylinder1.moveTo(8, 8);     Exception occurred. java.lang.NullPointerException     at Cylinder3D.moveTo(Cylinder3D.java:57) Is this what you ment by stack trace? Here is the code for the moveTo method in the rectangle class. public void moveTo(int x, int y)     {         xPosition = x;         yPosition = y;         makeVisible();         draw();     }  public class Cylinder3D {         private int diameter;     private int height;     private Ellipse top;     private Ellipse base;     private Rectangle wall;     int xPosition;     int yPosition;       public Cylinder3D(int diameter, int height)     {         int x = 0;         int y = 0;         Ellipse top = new Ellipse();         int xdiameter=diameter;         int ydiameter=diameter/2;         int xPosition = 0;         int yPosition = 0;         top.setState(xdiameter,ydiameter,xPosition,yPosition,"black");          Ellipse base = new Ellipse();         int yPositionBase = yPosition + height;         base.setState(xdiameter,ydiameter,xPosition,yPositionBase,"black");           Rectangle wall = new Rectangle();         int xSideLenght = diameter;         int ySideLenght = height;         int yPositionWall = yPosition + (diameter/4);         wall.setState(xSideLenght,ySideLenght,xPosition,yPositionWall,"black");         //....      }        public void moveTo(int x, int y)     {         wall.moveTo(x,y); //here is where I get the error.         base.moveTo(x,y);         top.moveTo(x,y);     } }


Ubuntu 16.04 Gnome default directory for gnome-screenshot?

How can I change default screenshots folder?  I tried to use dconf-editor:     org -> gnome -> gnome-screenshot   At auto-save-directory I typed the desired directory in the following format:  file:///home/user/Desktop/   I tried all format actually, but couldn't find.  Is there anybody who knows how can I change my default directory?


Use regex to parse messy currency strings PostgreSQL

I have strings representing currencies from all over the world, I've stripped the currency symbols but I'm struggling with commas in the output.  sum(CASE            WHEN (t.value ~ '^([0-9]+.?[0-9]*|.[0-9]+)$'::text) THEN (t.value)::numeric            ELSE (0)::numeric            END),   I get the following error with this:   invalid input syntax for type numeric: "750,000"   I can't make sense of the regex, everything here should parse only 0-9 and  escape '.', but there's a comma leaking through and I can't see where that could happen.


How to redirect dd progress in terminal to a log.txt file but still display it on the terminal during the process?

Here is my script :-  sudo mate-terminal --geometry=50x10 -x sh -c "dd if=/dev/sda of=/dev/sdb status=progress 2>&1 | tee log.txt | md5sum > hash.txt | sha1sum > hash1.txt"   I've seen people giving this suggestion all the time; putting 2>&1. But this will only display the progress in the log.txt file and the terminal will display nothing. Here's a picture of what the progress look like on the log.txt file.    If I remove 2>&1 and just go with  command | tee log.txt   Only the terminal will show the progress and nothing will display in the log.txt file  I've also tried:-  (command 2>&1) | log.txt  command 2> | log.txt   and many more I can't recall. So can someone help me?


Difference between reflexive pronouns and by + reflexive pronouns

I'd like to know what's the difference between for example myself and by myself. it would be great if you made some example to be easier to understand. Thank you everyone.


I tried to install Tkinter in python. But I cannot install it

I want to install Tkinter in python 2.7.9 I tried sudo apt-get update sudo apt-get install python-tk i even tried to upgrade python so as to install Tkinter but that didn't work either. Everytime i try to install this is what comes  sudo apt-get install python-tk  Reading package lists... Done  Building dependency tree    Reading state information... Done  Package python-tk is not available, but is referred to by another package.  This may mean that the package is missing, has been obsoleted, or is only available from another source  E: Package 'python-tk' has no installation candidate


Sequelize converts automatically float value 1.36 to 1.3599999999999999

I'm writing an API to get values from MARIADB(10.4.8) by Sequelize.  In Sequelize I have defined the data type as FLOAT, also in table structure it is FLOAT.   When I try to read the value "1.36", it automatically converts it to "1.3599999999999999". I have tried 1.37, 1.35, 1.38 etc but this conversion, if you will, happens only in case the value is 1.36.   It's weird but if anyone can explain why this might be happening, that would be great.


E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied) E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?   I've done everything i could and i still get this can anyone help?


Is it possible to block the (outgoing) network access of a single process?


How can I control the aperture of a Nikon G lens when using extension tubes?

Due to corona lockdown, I'd like to try macro photography. I have two lenses (18–55 and 35 f/1.8) and a Nikon D5300. As I currently do not have the money to buy a real macro lens, I found 3 cheaper ways:  Reverse Ring adapters, extension tubes, and macro filters. I considered building my own extension tube (I found ), but the problem is that my lenses don't have manual aperture control. Does that mean that I'm fixed to the smallest aperture? I found some sort of switch on the lens that lets you control the aperture, but it will be hidden inside the extension tube?  Any tips? I couldn't find "real" extension tubes with electric contacts for Nikon, at leat not in my price range. I'm also aware that reverse ring adapters and macro filters exist, but I decided to stick to extension tubes due to the rear element exposed with reversed lens and lower image quality with filters.


I am currently trying to write a regex code for the following rules in my javascript.   E-mail address must be a valid address ( X @ Y . Z ) Allowed characters for the name part is uppercase and lowercase a-z, digits, dash and dot characters Allowed characters for the domain part is only letters and dot (.).   How could I write whole cases in one regular expression?  What I did so far is /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/  Thanks in advance.