i have trying to create a document libary by using SharePoint rest api  but how do i add the body content with the post in Java?   body: { '__metadata': { 'type': 'SP.List' }, 'AllowContentTypes': true, 'BaseTemplate': 101,  'ContentTypesEnabled': true, 'Description': 'My Documents Library', 'Title': 'Documents' }


when I copy a pose (ctrl + c) and then flip it with this shortcut(shift+ctrl+c) the I see some weird result don't know why.    then this happens after I've pasted it    You can check the  if you want. I've uploaded it in my google drive.


I've been wanting to play some old games using  (PS2 Emulator) but every time I load the games up, I get massive frame drops. I get around 13 frames in game, but cut scenes I get full frames (30-60).   The games I'm testing are Area 51 and Metal Gear Solid: Sons of Liberty  I've researched and tested a few things but nothing has worked so far. Does anyone know what could cause this?   My specs for my computer are:   AMD Athlon 7850 Dual-Core Processor (2.8 GHz) ATI Radeon HD 4650 4 GB DDR2 RAM


I am a new Ubuntu user and I am using Ubuntu 14.04. When I try to change root permissions, I get some error reports. I have already tried sudo chown -R 777 / and sudo chmod -R 777 /. Please help me if I am doing any mistakes. Is there any command to access my root folder or root user?


lsusb does see the device. Sierra EM7455  Tried to add a new mobile broadband connection.   Under all connections "mobile broadband not enabled" grayed out  Any help would be appreciated


The cantrip's description states you can make a sound that can be "your voice or someone else voice."  could a spellcasting Kenku use it to speak regularly without mimickry?


80s/90s Post-apocalyptic novel, medieval with a "great fire" and a "mystic / shaman"

I remember reading this novel back in High School in the late 90s, possible early 00s.  The novel in paperback form was quite substantial, must have been at least 600 pages long.  The main character was a middle aged (I think) man.  The world was living a medieval-esque way of life. I imagine the actual apocalypse happened many decades, if not centuries, before, as no one could remember what happened. I recall people referring to a "great fire".  There were no aliens or other supernatural forces at work. It seems as though society as we know it just ceased to function, either because of war or something else.  Some technology from the pre-apocalyptic world was still being used.  There was this Shaman/Mystic character who I think knew more about the truth of what happened than he was letting on. I'm pretty sure he was able to generate and manipulate electricity to dupe the local populace into thinking he had powers.  The main character eventually goes on a journey over "cooled lava" (roads?), and that's as far as we got with the story before the end of the school year, sadly.


Below is a problem that I did from Chapter 4 of the book "Intoduction to Probability Theory". The book was written by Hoel, Port and Stone. The answer I got is wrong. I would like to know what I did wrong. Thanks, Bob    Problem: Let $X$ be a Poisson with parameter $\lambda$. Compute the mean of $(1+X)^{-1}$. Answer: The density function for the Poisson distribution is:     $$f(x) = \frac{\lambda^x e ^ {-x}}{x!}$$ Let $u$ be the mean that we seek. \begin{eqnarray*} u &=& \sum_{x = 0}^{\infty} \frac{\lambda^x e ^ {-x}}{x!((1+x))} =   \sum_{x = 0}^{\infty} \frac{\lambda^x e ^ {-x}}{(x+1)!} \\ u &=& \sum_{x = 1}^{\infty} \frac{\lambda^x e ^ {-(x-1)}}{(x)!} \\ u &=& \sum_{x = 1}^{\infty} \frac{\lambda^x e ^ {-x + 1}}{(x)!} \\ u &=& e \sum_{x = 1}^{\infty} \frac{\lambda^x e ^ {-x}}{(x)!} \\ \end{eqnarray*} Observe that when $\lambda$ is very large that $u$ is very large. Therefore, I conclude that I am already wrong. The books answer is: $$ \lambda^{-1}(1-e^{-\lambda}) $$


$f_n,f_n^{\prime}\rightarrow 0$ pointwise. But $(f_n^{\prime}) $ is not uniformly convergent. Find an example of such a sequence of functions.

I was studying uniform convergence of sequence and series. I encounter this problem. Trying to find an example. Any help will be appreciated. The domain of the function can be any closed interval. For example, [0,1] will suffice.  I am looking for an example to show that the conditions of the following theorems are necessary but not sufficient:  Let $f_n\colon [a,b]\rightarrow \mathbb{R}$ be a sequence of differentiable functions on $[a,b]$, and let $f_n\rightarrow f$ pointwise on $[a,b]$. If $f_n^{\prime}\rightarrow g$ uniformly on $[a,b]$, then $f$ is differentiable on $[a,b]$ and $f^{\prime} = g$.


Computation of a limit involving factorial $\lim_{n \to \infty} \sqrt[n+1] {(n+1)!} - \sqrt[n] {(n)!} = \frac{1}{e}$

I want to prove the following limit:  $$\lim_{n \to \infty} \sqrt[n+1\;] {(n+1)!} - \sqrt[n] {(n)!} = \frac{1}{e}.$$  I searched the forum & found the link here:  .  But still, there is no way out of the problem. So, please solve it.


what do it mean by "A real nxn matrix always has a real eigenvalue when n is odd?" Shouldnt it be that regardless of odd or even there will always have a real root?  hope to hear from you guys soon:)


Is it okay to incorporate a block of citations from a review paper into my own paper?

I'm currently writing a paper on a certain topic for which a review article was recently published. Of course, I want to contrast my new approach to existing techniques. For that purpose, I have identified the relevant prior work with the help of the above-mentioned review article.  However, in my current version, I simply reuse the whole block of citations from the review article with no change at all. I have consulted each reference individually and they do seem appropriate for citation.   Is taking a pre-existing block of citations and using it in my own manuscript considered plagiarism?


Why can't I use this proof to prove that the countable union of countable sets is countable without the axiom of countable choice?   Take the set of integers; some proper subset of it, call it $A$, can be mapped, with $f$, a 1-1 and onto function, to the set of even integers.   Some proper subset of the set of even integers, call it $B$, can be mapped, with $g$, a 1-1 and onto function, to the integers. Take the subset of $A$, call it $C$, which is mapped, with the use of $f$, to $B$ which is mapped, with the use of $g$, to the set of integers. Then find the subset of $A$ which is mapped, in a similar fashion, to $C$. Continue doing this forever.   Each one of these sets is countable, given that that they map to $A$ in a 1-1 and onto fashion.   We can find a countable amount of them (just keep doing the same thing). They are all subsets of $A$ and so their union is a subset of $A$.   One can therefore easily show, using the Cantor Bernstein Theorem, that they have the same carnality as $A$. We can easily show that every union of countable sets can easily be placed in a 1-1 and onto fashion with this specific union of countable set.  I assume that I never used the Axiom of Countable Choice in this proof, so what is the problem?


order topology and subspace topology for a convex subspace

can someone prove the following statement: Let X is an ordered set with the order topology. Let Y be a convex subset of X. Then the order topology on Y is the same as the subspace topology on Y.  intuitively it's kind of obvious but i can't prove it...


wp enqueue inline script due to dependancies

Is there a way to use wp_enqueue_script() for inline scripts?   I'm doing this because my inline script depends on another script and i would like the flexibility of inserting it after it's loaded.  Also, It's an inline script because i'm passing php variables into the javascript (like theme path, etc)  Thanks in advance.


I went through all the steps of setting up authorship on my website, but it doesn't seem to be working. My photo appears in some search results, but not for my website. I attached a screen shot of search results which shows my website at the top (without photo thumbnail) and other results with the photo.   How can I get it to show up with my website?


Does the bi prefix mean that it is every second month or twice a month?


Email sent to spam folder instead of Inbox using Codeigniter

I am developing an e-commerce system. My e-commerce system is up in my hosting called zoom. I am done in the part of ordering and right now, I'm having difficulty in sending the email.   It is working but it goes in the spam folder instead of inbox.   NOTE: I already created an email account in my hosting zoom and I used it in my code(you can see below)  Question: I want to send the email without being labeled as spam. Is there something missing or wrong in my code? Please point me towards right direction.  Controller    public function process()     {                  $id = $this->session->userdata('id');         $where = array('id' => $id);         $get_orders  = $this->Crud_model->join_orders_customer('*','orders',$id);         $get_invoice = $this->Crud_model->get_invoice('*','orders',$id);          $email = $this->Crud_model->get_email($id);          $config = array(                     'smtp_timeout' => '4',                     'charset' => 'utf-8',                     'mailtype'=> 'html'                     );                     $this->load->initialize($config);                     $fromemail="zeesdelivery@zessdelivery.com";                     $to = $email->email_address;                     $subject = "Your Order is not Processing";                     foreach($get_orders as $row){                      $mesg = "
Schedule Accepted!!!

Thank you for trusting and using Exclure Pest Control. $row->product_name

Your reserve inspection is accepted. We sure to call you as soon as possible

--------------------------------------------------------------------------------------

For more details contact us at,

Exclure Pest Control

Email : exclure@exclure.com.ph

Contact Number: 525-5399/ 498-1626

Facebook : https://web.facebook.com/ExclurePestControl/
";                     }                     $this->load->library('email');                     $this->email->clear();                     $this->email->from($fromemail, 'Zees Delivery');                     $this->email->to($to);                     $this->email->set_header('Header1', 'Value1');                     $this->email->set_newline("\n");                     $this->email->subject($subject);                     $this->email->message($mesg);                     $this->email->set_mailtype('html');                     $this->email->send();                     $this->cart->destroy();                     echo json_encode("success");             }


Transfer .tex file from LyX into LaTeXmk

Does anyone know the command that could export .tex file from my lyx?  I did this because I want to compile tex file with latexmk in terminal since it is really slow to compile in lyx. I feel exhausted that I Haven to click  several times whenever I want to export a Tex file. I could create a button to achieve my goal if I know the command.  Thanks in advance.


I know i have Nvidia card, and i want to make sure I'm using the resources on my computer. Is this how my driver should be set up for maximum efficiency? Can someone explain what these options are?


Changing the order of crossreferences in biblatex footnotes

I'm trying to use biblatex-dw and the crossref functionality to make my bibliography more structured and easier to edit. I'm using the mvcollection, collection, and incollection types for the inheritance/tree structure. My problem is that when I define things as in the MWE below, the footnote comes out wrong.   What I want to achieve -- but only for the archival document types -- is to organize the data into a hierarchy, starting with the most detailed (i.e. the specific document) and ending with the leaste detailed (i.e. the archive institution where the archive is situated):   document - volume - archive - archive institution  Therefore, the date would look strange at the end of the line as it refers to the document and not the archive institution. I think it looks much better if the data is clustered. But for normal references like books and articles, I agree the default biblatex ordering is great.   See image example below.  Update: I also tried this with biblatex-chicago and the same thing happens there.  \documentclass{article} \usepackage[backend=biber,citestyle=verbose-ibid,style=footnote-dw,autocite=footnote,idembibformat=dash,idemtracker=false,pageref=true,xref=true, date=iso8601]{biblatex}  \begin{filecontents*}{refs.bib} @mvcollection{MA,     title = {Museum archives}, }  @collection{ClockExhib,     crossref = {MA},     title = { Clocks Project}, }  @incollection{foo,     crossref = {ClockExhib},     author = {Committee},     title = {Meeting notes},     volume = 1,     date = {1979-11-19}, }  \end{filecontents*} \bibliography{refs}  \begin{document}  This is a document.\autocites{foo}  \end{document}   I want to change the order of the details (and as a bonus also learn how to change the field separators...commas, dots, or whatever).   Any ideas would be much appreciated.  By the way, I really want to stick to biblatex-dw.  Actual output of footer:   Desired output:


Cubic polynomial with three (distinct) irrational roots

I am looking for an equation     $$x^3+ax^2+bx+c=0, \qquad a, b, c \in \Bbb Z,$$   of degree $3$ that has $3$ different roots.  For an equation of degree $2$ it is easy---for example $x^2-2=0$---but I can't find an example for degree $3$.  if there is a method for finding this kind of Equation I will be grateful.


I recently built an Ubuntu machine and having no knowledge at all about Linux, I was curious about what it's like :)  I used 1 HDD when I installed Ubuntu. A couple of days ago I decided to add one more HDD connected directly into the motherboard using SATA cable.  My question is: How do I make that 2nd HDD permanent, just like my main HDD?  It seems that my computer recognizes my additional HDD as a removable drive (it has a "unmount button" next to it).  If you could please guide me a step-by-step procedure, it would be greatly helpful. Thanks


How to solve "Error: Exported bands must have compatible data types; found inconsistent types: Float32 and Float64"

I get an error when attempting to export an image from Earth Engine:     Error: Exported bands must have compatible data types; found inconsistent types: Float32 and Float64   I checked these links:       How can I solve this?   Here is my code:  var area = ee.FeatureCollection('users/wandygs8/municipal_boundaries'); var name = 'Batallas_Jan_March_2017-'; var period = 2018; var version = 2; var SRTM = ee.Image("USGS/SRTMGL1_003"); function maskS2clouds(image) {   var qa = image.select('QA60');    var cloudBitMask = 1 << 10;   var cirrusBitMask = 1 << 11;    var mask = qa.bitwiseAnd(cloudBitMask).eq(0)       .and(qa.bitwiseAnd(cirrusBitMask).eq(0));    return image.updateMask(mask).divide(10000); }  var indices = function(image) {   var ndvi = image.normalizedDifference(['B8', 'B4']).rename('NDVI');   var ndwi = image.normalizedDifference(['B8', 'B11']).rename('NDWI');   return image.addBands(ndvi).addBands(ndwi); }; var dataset = ee.ImageCollection('COPERNICUS/S2')                   .filterBounds(area)                   .filterDate('2017-11-01', '2018-05-01')                   .filter(ee.Filter.lt('CLOUDY_PIXEL_PERCENTAGE', 100))                   .map(maskS2clouds)                   .map(indices); var rgbVis = {   min: 0.0,    max: 0.3,    bands: ['B4', 'B3', 'B2'],  }; var imagen = dataset.median(); var maxNDVI = dataset.select("NDVI").max().rename('ndvimax'); var minNDVI = dataset.select("NDVI").min().rename('ndvimin'); var meanNDVI = dataset.select("NDVI").mean().rename('ndvimean'); var desvNDVI = dataset.select("NDVI").reduce(ee.Reducer.stdDev()).rename('ndvidesv'); var maxNDWI = dataset.select("NDWI").max().rename('ndwimax'); var minNDWI = dataset.select("NDWI").min().rename('ndwimin'); var meanNDWI = dataset.select("NDWI").mean().rename('ndwimean'); var desvNDWI = dataset.select("NDWI").reduce(ee.Reducer.stdDev()).rename('ndwidesv'); var dem = SRTM.select('elevation').clip(area).rename('dem'); var CompImagen = imagen.addBands(maxNDVI).addBands(minNDVI).addBands(meanNDVI).addBands(desvNDVI).addBands(maxNDWI).addBands(minNDWI).addBands(meanNDWI).addBands(desvNDWI).addBands(dem);  Map.centerObject(area, 10); Map.addLayer(CompImagen, rgbVis, 'Imagen S2'); print('Metadatos',CompImagen); Map.addLayer(area,{color:'red'}, 'Area Estudio'); Map.addLayer(CompImagen.select('ndvidesv'),{},'DesvStandart'); Map.addLayer(CompImagen.select('NDVI'),{},'NDVI'); Map.addLayer(CompImagen.select('NDWI'),{},'NDWI') Export.image.toDrive({   image: CompImagen,   description: 'iS2_'+ name + '_'+period+'_'+version,   scale: 20,   region: area });   I must also export the algorithm training points in a shapefile for another job, how can I do it?


How does one generate epub/mobi eBooks from LaTeX?

I can think of a couple of ways:   PlasTeX + manual .epub manipulations. See:    @salimfadhley Did you end up going this way? tex4ht / latex2html / etc. See:   MathJax rendering on .epub devices which run js. But what about the fonts?   I am not sure which way to go though and I would appreciate any pointers.


I am non-EU citizen working in Germany. Can I travel to UK without a visa?

I am from Non-EU country (from Nepal to be precise) and recently moved to Germany for work. I am applying for BlueCard. I would like to travel to UK later this year, can I go there without visa as I am resident in another EU country?  I can't find this information online. Any links/references will be much appreciated.


Regression coefficient greater than 1: is it possible?

I was reading an article about the polar motion of the Earth: . A regression is performed between observed and modelled complex time series of data - the type of regression is not specified. The regression coefficient is then calculated for different values of the estimated parameter (quality factor); its amplitude and phase are shown in Figure 2 (I don't know if I am allowed to post it directly here). My question is why can the amplitude of the regression coefficient be as high as 2.3? I thought that the absolute value of the regression coefficient, for real series, had to be in the range 0-1. Therefore I was expecting a maximum amplitude of $\sqrt{2}$ for a complex series. The definition of regression coefficient is not mentioned in the article. At first I thought it may be a linear regression since if the model is correct, the modelled and observed series should be very close; however, this seems incompatible with a value of 2.3. Is there a more general definition that I'm missing?


class Process          {           int PID;         }          Process[] processes = new Process[n];          for(int i=0;i<n;i++)         {             System.out.println("Enter PID for process " + (i+1) );             >>>processes[i].PID = Integer.parseInt(br.readLine());         }   I got the exception in ">>>" What am i doing wrong?


Can I put a bib file somewhere on the tex tree so its found by biber or bibtex like a package is found by pdflatex?

To elaborate a bit more, let's say I have a tex file like this:  \documentclass{article} \usepackage[style=ieee,backend=biber]{biblatex} \addbibresource{references-global.bib}  \begin{document} \cite{myref1,myref2} \printbibliography \end{document}   In its folder, there is no references-global.bib file, so naturally I have an error when biber is called:  ERROR - Cannot find 'references-global.bib'!   My question therefore is: can I place this references-global.bib in a location where it would be found by biber regardless of where my tex file is located (much like a package or so)


Can I ask a list of questions based on how code really works?

Actually on Stack Overflow most of the time we delicately ask one problem at a time.  But what if I or some one other have a list of problems and really want to know?  Mainly I focused on how to ask a list of questions.  A list of programs that based on what is the output of this code. How this program really work. etc.


How can I define every 1 hour plus half in crontab?

Here is my current command:  */30 */1 * * * wget http://mywebsite.com   But it doesn't work as expected. Expected period is every 90min. How can I do that?  Noted that this doesn't work either:  */90 * * * * wget http://mywebsite.com


Is there a log4net pattern for machineName

I'm having a hard time finding documentation on the various 'in the box' patterns like  %logger   %level   %timestamp     There is of course  but I'm not sure that's the full list of options.  I also know that it's possible to MDC parameters out of the app to the logger, but that involves a code change which is a different beast than a config change.  Is there a %machineName option, or machineIP option?  The issue is that we have all our servers in the web farm log into the same database log, and we're now thinking that a disproportionate number of messages are coming from one machine.


My question is next: "Can I modify some version of Ubuntu Linux, add some software related to electrical engineering, modify look and some functions of Ubuntu, basically customize the entire system so it suits the needs of electrical engineers working on the field or in the office, and then that customized system sell in order to make profit?"   I'm not sure am I allowed to do that (is it legal?), so I would appreciate answer.


Why does a lot of water vapour come suddenly after the heat source of boiling water is removed?

I have noticed this several times. When I am boiling water, a few seconds before its boiling point, vapours are formed as usual. But if I turn the gas off before boiling, the moment it turns off, I see a lot of vapours being formed all of a sudden from the hot water for a second or two. Can anyone tell me why this happens?


A continuous function on the real line such that the preimage of every point is either empty of has exactly 3 points

Let $f : \mathbb{R} \to \mathbb{R}$ be a function with all fibres $(\lbrace{x \in \mathbb{R}| f(x) = c\rbrace} = f^{−1}(c)$, $c \in \mathbb{R})$ either empty or consisting of exactly three points. Find such a function which is continuous.  No clue


A ruminant's digestive system contains 4 chambers: The rumen, reticulum, omasum and abomasum. The food travels from the mouth to the rumen, then to the reticulum, back to the mouth, then back to the reticulum and to the omasum as can be seen in the below diagram:  After the cud (the regurgitated food from the reticulum) is further chewed in the mouth, how does it pass back to the reticulum (and subsequently omasum) instead of the rumen? In other words, how does the cow choose in which way the food should go?


Both layers are in same CRS but in a different place

I'm facing a problem with QGIS and have no clue what I'm doing wrong here. I've tried everything I know of.  I have polygon layer in CRS 2180. I add another layer that should be overlapping perfectly - and it does.  When I simply drag the layer to QGIS it fits perfectly fine, but when I change that new layer CRS to 2180 (THE SAME CRS THAT IM WORKING WITH) it goes somewhere far far away. I don't get it. Both layers are in the same CRS and they don't fit but when they're in different CRS then they fit. What am I doing wrong here?  I need them to be in the same CRS because otherwise the clip function doesn't work and I want to clip these new layers to only fit my original layer.


How to prove $x^{n}$ is not uniformly continuous on the interval $[0, +\infty)$?


Comma before "respectively" — Is it needed?

Is the comma before "respectively" needed when "respectively" is the last word in a sentence?  Garry, Michael and John scored 10, 26 and 18 points, respectively.


Is it legitimate to award a bounty to a very good answer?

My understanding is bounties are used to attract more viewers for a possible difficult or an urgent question.  My question is: what if I already see somebody is answering my question and putting extra effort to provide very clean and working code, and I'm so happy with the answer?  In this case I really want to reward that person with more than just an up-vote.   Is it legitimate that I put a bounty on my question (which already has a solid answer) and then award it to that person?


Show that there cannot be a analytic function on $B(0,1)$ s.t if $|z|\to 1$, $|f(z)|\to \infty$. I saw a proof on here but I dont quite understand it.  The trick is to consider $1/f(z)$. Since then if $|z|\to 1$ then $1/f(z)\to 0$ and so we can continuously extend $1/f(z)$ to the closed unit ball to be zero on the boundary. Now we are done if we can extend $1/f(z)$ to be holomorphic in  the closed unit ball by maximum modulus principle. However, to do so, i need $f(z)$ to have finite zeroes in the unit ball which I cannot seem to prove. I can prove it has finite zeros if $f(z)$ was holomorphic on a compact set. But an open ball is not compact and so $f$ could have infinite zeroes, at least i think. Could someone fill in the details for me here?


Pixel Perfect collision detection on rotated bitmaps

I have two bitmaps which are being drawn onto a canvas using a matrix   canvas.drawBitmap(bitmap, matrix, paint);   first to work out if I need to check for a collision i am using eucilidean vectors as such  //vector between the bitmaps float vx = bitmap2.x - bitmap1.x; float vy = bitmap2.x - bitmap1.x;  //magnitude of the vector between the two bitmaps float m = Math.sqrt( (vx*vx)+(vy*vy) );  if( m < bitmap1.getDiagonalWidth() + bitmap1.getDiagonalWidth()) {      //pixel perfect collision detection required }   Firstly, is this the best way to approach this part of the collision detection?  Secondly once I have found that a collision is possible, do I need to do anything before throwing the bitmaps into a method that runs pixel perfect collision detection? basically, is the issue complicated because of the rotation of the images?  edit* it is possible that the bitmaps will also be scaled by the matrix. i would imagine that this will complicate things further.


Distribution of X-U(0,1) conditioned on sigma algebra of Y/X, where is Y is U(0,1)?

The question I have is:  Define X,Y to be two independent uniform(0,1) random variables and $Z:=\frac{Y}{X}$  Compute $P(X<x|\sigma(Z))$  The answer given apparently by "straightforward elementary computations" is for $x\geq 0$  $P(X<x|\sigma(Z))$=min$\{{x^2,1}\}\mathbb{I}_{Z\leq 1}$ $+$ min$\{{x^2 Z^2,1}\}\mathbb{I}_{Z\geq 1}$.  My idea was to condition on the $Z\leq 1$ and ${Z\geq 1}$  then compute using the joint density of X and Y, but this seems to work for the first term but doesn't for the second? Any help would be much appreciated.


I have heard there's a 90 days in every 180 days rule about staying in the Schengen zone, but there are also rumours about resetting the time, so I thought of asking here what's the case exactly.  I stayed in Germany Nov 25th 2018 - Dec 16th 2018 (22 days), and again Jan 10th 2019 - Apr 9th 2019 (90 days). Am I overstaying my tourist visa?


I've a set of files named in the following manner:  _9978967868768763ghjgj7598983678hjva_week1-6.pdf _78637832bdsjh275637bkkaww786b_week12-32.pdf 8786767867868978713bkwkhjhkjqw_week1-622.pdf 867813567bdjsbgbadsyu6712353125561235_week100-6.pdf   I'm intersted in making use of  utility to obtain names:   week1-6.pdf  week12-32.pdf  week1-622.pdf  week100-6.pdf   The regex to achieve that could be be:  (.*)(week.*)   which works fine :    Question  How do I translate this syntax into rename's expression of format:  s/expr1/expr2/[gi]   In effect, I want to delete first group.  Notes  I'm not interested in using mv or sed-based solution. I want to use rename  utility only.


Can I extract VB6.0 Source Code using its EXE File

I have an VB6.0 Application designed by a programmer. Unfortunately we are not able to reach this guy and we badly need to do some modifications in the application at the earliest.   The software was designed and complied on Windows XP device. We only have is EXE File.  I would appreciate if anybody could help me in extracting the source code using its EXE file.  Thanks in Advance


I'm trying to find a book I remember reading a long time ago.  In it the main character could teleport or "cast" objects.  A few of the details I remember (here's hoping I don't have multiple books mixed in my mind):  Teleporters could cast 1000 kg and not a bit more.  They had to go to a school to learn to compensate for momentum differences between the start and the target location.  The main character ran into someone who called themselves an 'anchor' who could block the teleportation.  They got past the anchor by teleporting drugs meant for him directly into the anchor.  I think there was a part at the beginning about someone who seemed to be in withdrawal finding him as a baby by following a ringing noise and saying he had 'rung a gold' or something like that.  The guy seemed to recover once he hung around the boy and trained him.  That last part could be a different book however...


Does having the "elf" subtype qualify you for character options which require you to be an elf?

Can any creature with the  (such as the third-party race ) qualify for character options which require the character to be an elf (such as the  feat), or are such options limited to full-blooded elves (and creatures with the Elf Blood racial trait)?


Let $m$ be Lebesgue measure and $a \in R$. Suppose that $f : R \to R$ is integrable, and $\int_a^xf(y) \, dy = 0$ for all $x$. Then $f = 0$ a.e.

This is a corollary to a proof in Bass, but I don't understand why it follows from the proof he gives. I follow everything up until the last statement. Why is it that proving that the integral is $0$ for all Borel measurable sets guarantees it is true for all Lebesgue measurable sets? Am I missing something vital about the relationship between Lebesgue measurable sets and Borel measurable sets? Statement: Let $m$ be Lebesgue measure and $a \in\mathbb R$. Suppose that $f : \mathbb R \to\mathbb R$ is integrable, and $\int_a^xf(y) \, dy = 0$ for all $x$. Then $f = 0$ a.e. Proof: We prove the conclusion first for intervals, then for unions of intervals, then for open sets, then for Borel measurable sets. For any interval $(c,d)$, we have $$\int_c^df = \int_a^d f - \int^c_a f = 0.$$ By linearity, if $G$ is the finite union of disjoint open intervals, then $\int_G f = 0$. Now, if $G$ is open, then $G$ is the countable union of disjoint, open intervals, $G = \bigcup^n_{i=1}I_i$. We have $$\int_G f = \int \lim_{n\to\infty} f \cdot \chi_{\bigcup^n_{i=1} I_i}$$ and since $f_n$ is integrable for all $n$, and $|f_n| \le f$ for all $n$, by the dominated convergence theorem, $$\int_G f = \lim_{n\to\infty} \int_{\bigcup^n_{i=1}I_i} f =0.$$ Now, if $G_n$ is a decreasing sequence of open sets converging to $H$, since $|f \cdot \chi_{G_n}| \le f \cdot \chi_{G_1}$ for all $n$, we again have by the DCT that $\int_H f = 0 = \lim_{n\to\infty} \int_{G_n}f = 0$. Finally, if $G$ is a Borel measurable set, then we know that there exists a sequence $G_n$ of decreasing, open sets, that converge to some set $H$, where $H \setminus G$ is a null set. Thus, $$\int_G f = \int_H f = 0.$$ We have found that for every Borel measurable set $G$, $\int_G f =0$. Since $f$ is real valued and measurable, $f = 0$ a.e.


Evaluating $\int \frac{\operatorname dx}{x\log x}$

How to integrate $\frac{1}{x\log x}$?  Could you give me some ideas on how to integrate this? thanks.  i've tried setting $u=(\log x)^{-1}$.   $\dfrac{\mathrm du}{\mathrm dx} = x^{-1}$  But it didnt work...


The locked post FAQ says locked posts cannot be edited, yet  can be edited (at least, the lock message says so, and I can open the edit dialogue).


I am trying to append one vector to another vector, both vectors being same in "dimension".   int main() { std::vector<int> v1={1,2,3,4,5},v2={10,11,12}; //v1.push_back(v2)? //v1 and v2 have same dimensions  }   Without creating loops and pushing back individual element, is there any way to achieve similar to this python statements?  v1=[1,2,3,4,5] v2=[10,11,12] v1.extend(v2) print(v1)   gives [1, 2, 3, 4, 5, 10, 11, 12]


Why can "find" not be used in PowerShell?

What does find.exe find objectionable about the parameters when it is used in a PowerShell console shell?  These commands work as expected in a cmd.exe shell:  PS C:\Windows\System32\WindowsPowerShell\v1.0> find /i "System.Diagnostics.Process" *.ps1xml FIND: Parameter format not correct PS C:\Windows\System32\WindowsPowerShell\v1.0> find /i "System.Diagnostics.Process" *.ps1xml FIND: Parameter format not correct PS C:\Windows\System32\WindowsPowerShell\v1.0> C:\Windows\System32\find.exe /i "System.Diagnostics.Process" *.ps1xml FIND: Parameter format not correct PS C:\Windows\System32\WindowsPowerShell\v1.0> C:\Windows\System32\find.exe /i "System.Diagnostics.Process" .\DotNetTypes.format.ps1xml FIND: Parameter format not correct


I would like to know how to draw two Cayley tables side by side for a project I am working on. How do I do it?


I defined a macro which is essentially a wrapper for \meaning to check macro definitions  \def\whatis#1{{\ttfamily\string#1: \meaning#1}}   (The actual form I'm using goes one step further and checks whether the command is robust, but this is irrelevant here.) More often than not, the result involves some internal macro containing the token @. If I want to check this macro, I must then write something like  \makeatletter \whatis\MacroNameWith@InIt \makeatother   As I'm very lazy :-) I would like to activate \makeatletter within the scope of \whatis, so I tried  \def\whatis#1{{\makeatletter\ttfamily\string#1: \meaning#1\makeatother}}   (Actually I'd guess that \makeatother isn't necessary because of the grouping.) Needless to say, this isn't working, otherwise I wouldn't be posting this question :-)  My questions:   Why is this not working? How can I define \whatis such that \whatis{\MacroNameWith@InIt} behaves as I wish?


Strategy for determining the number of homomorphisms between two Groups

The Gallian Abstract Algebra text has a number of exercises of the form 'Determine the number of homomorphisms between two groups $G$ and $H$'. It is pointed out that, in the case of a cyclic $G$, determining the image of a generator of $G$ under a homomorphism $\phi$ suffices to specify the entire mapping, since $\phi(g^n)=\phi(g)^n$ for any $g \in G$. Hence determining the number of homomorphisms simplifies to counting generators of $H$ and applying Lagrange's Theorem. Are there any other useful properties of homomorphisms that can be used as tricks for this type of problem or just general strategies when counting maps between $\textbf{non-cyclic groups}$? Two examples I see in the text exercises are:  (1): Determine all homomorphisms from $S_3$ to $G$, where $G$ is Abelian.  (2): Determine the number of homomorphisms from $Z_p\oplus Z_p\to Z_p$, where $p$ is prime ($Z_p$ being a subgroup of the additive integers).  Thanks in advance!


Java ActionListener error expected and illegal start of type

I know these questions have been asked and I have searched for it on stackoverflow but my problem didn't get solved. I am getting error while setting actionlistener to a button but i am always getting errors:  Talk.java:25: error: <identifier> expected                 button.addActionListener(new ActionListener());                                         ^  Talk.java:25: error: illegal start of type                     button.addActionListener(new ActionListener());                                          ^   THE CODE:  import java.util.Scanner; import java.awt.*; import java.awt.event.ActionListener; import java.awt.event.ActionEvent;  import javax.swing.JFrame; import javax.swing.*; import java.io.BufferedReader; class Talk extends javax.swing.JFrame    { public  void main(String args[]) {             JFrame frame = new JFrame("LET'S TALK");             frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);             frame.setExtendedState(Frame.MAXIMIZED_BOTH);             JLabel textLabel=new JLabel("What's up.",SwingConstants.CENTER);             textLabel.setPreferredSize(new Dimension(530,100));             frame.getContentPane().add(textLabel, BorderLayout.CENTER);             frame.setLocationRelativeTo(null);             frame.pack();             frame.setVisible(true);             JButton button=new JButton("OK");             JPanel panel1=new JPanel();             panel1.add(button);             frame.add(panel1, BorderLayout.SOUTH);}             private class ActionListener {             button.addActionListener(new ActionListener());                     public void actionPerformed(ActionEvent e){                     final TextField tf=new TextField();                     tf.setText("welcome");                   }              } }


About two years ago, I used the Exercise package with Babel to obtain a document of exercises in French. Now, I can't get it to work : it's always in English, with the exercise header as "Exercise" instead of "Exercice". I recompiled some old source files, and the localization didn't work as well. I tried with MacTex on Mac OS X, and TeXlive 2015 on Windows 10, as well as MikTex, all with the same non-localized result. I'm missing something here, any clue?  Here's a sample code.  \documentclass[a4paper]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[frenchb]{babel}  \usepackage{amsmath,amssymb} \usepackage{mathrsfs}  % Ralph Smith’s Formal Script Font (rsfs)  \usepackage{exercise} % for exercises and answers  \begin{document}  \begin{Exercise}[title={Lorsque $f(x)$ dépasse $k$}, label=ex1]  Dans le programme ci-contre, $F1$ est la fonction définie par : \begin{equation*} F1(x) = 2x^2 + 5x + 7 \end{equation*}  \Question Justifier le sens de variation de cette fonction, puis dresser son tableau de variation sur l'intervalle $]0;+\infty[$.   \end{Exercise}  \end{document}


class User:      def __init__(self, username, mail, date_of_birth, gender, password):         self.username = username         self.mail = mail         self.date_of_birth = date_of_birth         self.gender = gender         self.password = password      def get_username(self):         return self.username      def get_mail(self):         return self.mail      def get_date_of_birth(self):         return self.date_of_birth     def get_gender(self):         return self.gender      def get_password(self):         self.password    Matt = User("Matterson", "ville@gmail.com", 15.08.1999, "Password987")  Hi, this is my code but the date is invalid syntax, how do i write the date as a parameter?


How do I set spawn point using command block with coordinates 8,462 4,00000 8,591?I have been trying, but haven't been able to do it right.


is it possible to set a variable to an insert statement in a stored procedure?   Something like:   set variable1 = insert into table(field1, field2, field3) values(val1, val2, variable2);   If so, how should it be written?   I keep throwing errors and documentation in the wild is inconclusive.   I was going for brevity but the entire procedure is thus:   -- -------------------------------------------------------------------------------- -- Routine DDL -- Note: comments before and after the routine body will not be stored by the server -- -------------------------------------------------------------------------------- DELIMITER $$  CREATE DEFINER=`root`@`localhost` PROCEDURE `new_accession`(in barcode int, in accepted  varchar(11), in wt float(11,2), in wtunit varchar(3),in draw date, in chist varchar(256), in ghist varchar(256), in meds varchar(256), in diffdiag varchar(256),in diseasesus varchar(256),in volume int, in facility int, in patient int, in employ int, in compromised int, in receiving int, in test int) BEGIN declare accessionId int; declare accessionTest int; declare tkInsert varchar(256); declare hptInsert varchar(256); declare calInsert varchar(256); declare pthInsert varchar(256); declare vitdtkInsert varchar(256); declare cnpInsert varchar(256);  if wtunit = 'lb' then set wt = convertLbKg(wt); end if;  INSERT INTO accession(barcode_accession,accepted_accession,weight_accession,req_weight_units,draw_date_accession,cancer_history_accession,general_history_accession,medication_accession,differential_diagnosis_accession,disease_suspect_accession,volume_accession,facility_doctor_index_id_facility_doctor_index,patient_id_patient,employee_id_employee,accession_compromised_id_accession_compromised,receiving_id,accession_typeof_id_accession_typeof) VALUES (barcode,accepted,wt,wtunit,draw,chist,ghist,meds,diffdiag,diseasesus,volume,facility,patient,employ,compromised,receiving,1);  set accessionId = last_insert_id();  set tkInsert = insert into pending(accession_facility_index,reagent_type,`status`)values(accessionId,1,'Pending'); set hptInsert = insert into pending(accession_facility_index,reagent_type,`status`)values(accessionId,2,'Pending'); set calInsert = insert into pending(accession_facility_index,reagent_type,`status`)values(accessionId,3,'Pending'); set pthInsert = insert into pending(accession_facility_index,reagent_type,`status`)values(accessionId,4,'Pending');  if test = 1 then tkInsert,calInsert; elseif test =2 the hptInsert,pthInsert; else pthInsert; end if;    END


Does an Indonesian need a visa for a long layover in Korea?

I'm Indonesian passport holder and planning to go back to Indonesia from China through South Korea. I will have a long layover of about 12 hours in Korea. Can I go outside during my layover without having a visa?


How to fill "department" for the author actually without department?

I found many journals require the department information for all authors during submitting manuscript. However, some authors indeed don't have department information. How can I fill this form in this condition?


How to get reflections from 3D to show up on real images

Andrew Price released a nice tutorial on how to nicely put 3D objects on top of a real image:   I have seen images, such as this:  which have 3D elements over images and have actual reflections from the object showing up on the wet asphalt.  How can this effect be achieved using render passes (or any other way)?  Here is another example (from ):


I am very new to the python and playing around the print statement and found something unexpected. print(0.3 + 0.1==0.4)  ANS : True  but when I tried print(0.2 + 0.1==0.3)  ANS : False   Could Any one explain why is this so? Thanks


Proof about divisibility and greatest common divisor that doesn't use Bezout's formula

Suppose the $\gcd(a,b) = 1$ and $c$ divides $a + b$. Prove that $\gcd (a,c) = 1 = \gcd (b,c)$.  This is relatively easy using Bezout's formula. See . But is there a way to do it without Bezout?


Is it possible to create global .lnk Windows' files?

I tried to research for this, but nothing was clear to me. I'm a true newbie when talking about coding, as it has been a while I don't work with it. All I've found was VB, and some weird hex registry entries fiddling on Windows' .lnk shortcuts.  What I'm trying to figure out: If it is possible to create global shortcut .lnk files (using wildcards or Regex), so that way I could make a portable app, place a shortcut on the upper directory, and zip it, hence the software which is within the folder among a bunch of files don't become a mess to find/run.  I found a few system variables which can be used to open on specific Windows directories (like %ProgramFiles%, %WinDir%, %HomeDrive%, %HomePath%, and etc), but nothing so reasonable. Also found some cmd commands in order to create them, but not so sure about symbolic and hard links (how to use them in syntax).  I've made a few autorun.inf and .bat files that opened sub-directories, but I couldn't figure out how to do it with .lnk files.  Then, in terms of dummies, is there an easy way to do that?  Thanks.  EDIT: Went a little further on my research and figured out that it's related directly to symbolic links and directory junctions. Found this thread, which gave me a few more informations:      Here are some useful links from my research:


Is there a single word which means "a person, and all of his ancestors", or "a person, and all of his descendants"?

There are a lot of words describing ancestral relationships between people, such as:  parent grandparent great-grandparent any of the above can be described as an "ancestor".  child grandchild great-grandchild any of the above can be described as a "descendant".   I am wondering if there are single words (nouns) which describe any of the following concepts:  A person and all of his/her ancestors A person or any of his/her ancestors A person and all of his/her descendants A person or any of his/her descendants   Any ideas?


Systemctl service dependency without changing service file

I want to make nginx service dependent on a service I wrote, say abc.service. By dependent, I mean:   nginx service should stop when I stop abc nginx service should start when I start abc   A typical way would be to modify /lib/systemd/system/nginx.service and add Wants abc directive. However, I don't want to modify nginx.service file - as this is shipped with nginx package.  Any other way to do this?


I tried to coax google into finding results for "am not preceded by I", but failed.  Now my question is: Is saying "Am" instead of "I am" valid slang?  Examples:   Am a God. Obey. Am driving. Can't talk now. Am a cat. Food plz.   By "grammatically correct slang", I mean if it's okay to use such sentences when talking, writing signs, registering domains, et al, when the intention is to not be serious, i.e. will native speakers understand?


jS how to resize a text field? dynamics CRM 2011

I'm wondering about how to resize a text feild automatically in crm 2011. Is it possible there?  For example, I've got a simple text field that has 3 lines by default. And I'm looking for a method, which will resize a text field in order to show a data there without any scroll, if a wrote down 20 lines,.. whateever  Did anyone face that issue?


I (the room owner) was going to remove stars from an old chat message that no longer appeared in the sidebar. However, I can't find any moderation options either in the full list of starred messages or in the transcript. I couldn't load the chat back to that point either.  How can I moderate an old message? Is there some way to get the same moderation options in the transcript, instead of only in the real-time chat section?


How can I typeset this equation (standard model of physics)?

So, there's this picture   Floating around on the internet for the standard model of physics in a relatively short form. I want to typeset this in LaTeX in order to print it. However, I can't find a way to typeset the crossed out D in the second line.  So far, I have this      \documentclass[a4paper,10pt]{scrartcl}       \usepackage{amsmath,amssymb}      \begin{document}     What part of      \begin{align*}     \mathcal{L} &= - \frac{1}{4} F_{\mu \nu} F^{\mu \nu} \\         &+ i \bar{\psi} D \psi + h.c. \\         &+ \bar{\psi}_i y_{ij} \psi_j \phi + h.c. \\         &+ |D_\mu \phi|^2 - V(\phi)     \end{align*}      didn't you understand?      \end{document}


Divisibility problem. Prove or disprove if 𝑎|𝑏c, then 𝑎|𝑏 or 𝑎|𝑐

I understand the problem very well. I just don't how to go at it.  Prove or Disprove: For all 𝑎, 𝑏, 𝑐 ∈ ℤ+, if 𝑎|𝑏c, then 𝑎|𝑏 or 𝑎|𝑐.


Proving that if $A^n = 0$, then $I - A$ is invertible and $(I - A)^{-1} = I + A + \cdots + A^{n-1}$

Let $A$ be a squared matrix, and suppose there exists an $n\in \Bbb N$ in a way that $A^n=0$. Show that $I-A$ is invertible and that $(I-A)^{-1}=I+A+\cdots+A^{n-1}$    I don't have a clue where to start from.


Classify all groups with order $pq$, $p$ is not equal to $q$

I am reading the following material:  . At page 5, there is a proof classifying all groups with order $pq$(they are all primes and $p$ is not equal to $q$). I am lost in the last two sentence, which claims the semidirect product are all isomorphic. Could someone help me to understand it? Thanks!


Best way to recover mysql from a "chmod -R 777 /" with databases intact

Question: What is the best way to recover mysql (or worst case: migrate away) from a "chmod -R 777 /" with databases intact?  System: Ubuntu 12.04 LTS MySQL 5.5.24 64 bit Amazon EC2 cloud server.  Background: Attempting to recover (or at least recover data from) a system which had this done to it:        chmod -R 777 /   No point in worrying about the why.  It was a manager with too much access and too little experience who likes to swim in deep waters.  It was a pure accident on his part, not actually meaning to hit enter when he did.  I have recovered much of the system, but am really hung up on getting mysql working again.  I have already worked through such pages as:         Have already done this:        sudo chmod 644 my.cnf     chown mysql:mysql my.cnf   At which point attempting to start mysql:        sudo service mysql start   Produces this output in syslog:      Apr 12 20:51:42 ip-10-10-25-143 kernel: [18632541.774742] type=1400 audit(1365799902.306:41): apparmor="STATUS" operation="profile_replace" name="/usr/sbin/mysqld" pid=18210 comm="apparmor_parser"     Apr 12 20:51:42 ip-10-10-25-143 kernel: [18632541.964496] init: mysql main process (18214) terminated with status 1     Apr 12 20:51:42 ip-10-10-25-143 kernel: [18632541.964542] init: mysql main process ended, respawning     Apr 12 20:51:43 ip-10-10-25-143 kernel: [18632542.959796] init: mysql post-start process (18215) terminated with status 1     Apr 12 20:51:43 ip-10-10-25-143 kernel: [18632543.002041] type=1400 audit(1365799903.534:42): apparmor="STATUS" operation="profile_replace" name="/usr/sbin/mysqld" pid=18238 comm="apparmor_parser"     Apr 12 20:51:43 ip-10-10-25-143 kernel: [18632543.098490] init: mysql main process (18242) terminated with status 1     Apr 12 20:51:43 ip-10-10-25-143 kernel: [18632543.098536] init: mysql main process ended, respawning     Apr 12 20:51:43 ip-10-10-25-143 kernel: [18632543.140706] init: mysql post-start process (18244) terminated with status 1     Apr 12 20:51:43 ip-10-10-25-143 kernel: [18632543.158681] type=1400 audit(1365799903.690:43): apparmor="STATUS" operation="profile_replace" name="/usr/sbin/mysqld" pid=18258 comm="apparmor_parser"     Apr 12 20:51:43 ip-10-10-25-143 kernel: [18632543.285087] init: mysql main process (18262) terminated with status 1     Apr 12 20:51:43 ip-10-10-25-143 kernel: [18632543.285133] init: mysql respawning too fast, stopped   What I read from that is mysql is terminating with a status 1, and it loops a few times trying to start up and gets stopped from doing that after too many attempts.  I've looked into status 1 but haven't found solutions that seem applicable.


Having issues installing qemu, pixman autoreconfig missing

i dont understand this error message from the "make" function.     qemu-1.7.0-rc1/pixman; autoreconf -v --install)      /bin/sh: 1: autoreconf: not found make: *   [/home/alex/Desktop/qemu-1.7.0-rc1/pixman/configure] Error 127   how would i get this to work? do i install pixman or autoreconfig?


Is it appropriate to buy a "thank you" gift for a PhD supervisor?

I am nearing the end of my PhD and I would quite like to buy a "thank you" gift for my supervisor (although, she's the socially awkward type who I'm sure will be greatly embarrassed to receive one).  I'm just wondering whether a gift is the done thing? And if so, what sort of gift seems appropriate? I suppose a bottle of wine would be a safe choice?


How to copy files in Terminal as root user

I have 7000 files I would like to copy to a folder from home/Videos to /usr/share/someplace. How do I do this?


TeX editor with line-spacing preferences

Do you know a TeX editor where one can increase the line spacing/change the line spacing in preferences?  LibreOffice Writer could do the trick provided it did not prepend 0xfeff to files encoded in UTF-8, which prevents LaTeX engines from working.  I'm happy with VIm. It's just that I like writing prose in a double-spaced environment.


How does player level and difficulty affect story mode gameplay?

A story mission might have several difficulties, e.g., normal level 14, hard level 18, hard level 20, impossible level 24. What actually changes across these difficulties? Enemy health? Player health? Enemy weapon power? Drops and in-map vehicles? Experience and glimmer gain? The only difference I can see from the settings is that there is a greater XP bonus for finishing on a higher difficulty, but I don't know what that entails. What are the differences between story difficulty levels?  This is also to ask how player level affects story mode gameplay. I heard someone say that every level difference added/removed 20% of difficulty, but I couldn't verify this anywhere else.


What are the IPv6 Public and Private and Reserved ranges

I just want to know what are all the public IPv6 ranges which ISPs or other users can use? Also need a list of addresses which can be used in private networks and also the list of addresses which never can be used in any network. I have been searching through different web sites. But none gives a reliable answer.  Actually we are developing an application which allows user to plan their IP address(create supernets, subnets, hosts, assign host to ports etc). So my application should be able to distinguish between all kinds of address ranges, whether it is reserved, public, private, multicast etc


What order should I watch Love, Chunibyo & Other Delusions in?

I would like to watch Love, Chunibyo & Other Delusions, but I'm not sure where to start.  What is the watching order of the series?


Centering a smaller div inside a larger div

I've tried to search around for some answers, but still haven't found any.  Basically what I'm trying to do is center my green box within my blue box.  The blue box is 100%, the green is 80%, and I figured I'd just give my green box a margin-left of 10%, but for some reason it doesn't seem to work.  Here's a screenshot of what I'm talking about --     #content_wrapper {   height: 30rem;   width: 100%;   background-color: blue;   position: relative;   margin: 0; }  .content {   height: 30rem;   width: 80%;   background-color: green;   position: absolute;   margin-left: 10%;   display: inline-block; }

     I've usually been able to do this before, but I must be missing something somewhere.  Thanks in advance!


Need to download Census 2010 population,aging and housing information at block group level

I would like to download 2010 census population,aging and housing information at blockgroup level.Such as Total population,age_5_9...,age_85_up,Household Count,Housing_units,SQML etc


I just looked on SO, and found that there are about 12,880 tags with only a single use. There are 26,250 used less than 10 times.  That's just too many for the community to fix. I think we need some automatic cleanup here.  I suggest you add a cleanup process to remove all tags used less than a certain number of times more than a month after their creation. That would give a legitimate tag a while to become used more, while removing those that will never be used more than a few times.    Edit: Here are the tags from page 512. I've highlighted the ones I think are most likely bad tags. I even fixed a few:   installer-class inspector installation-tools insert-worksheet insets insomnia-mysteries inorder inprivate inprocfactory inprocserver in-progress input-button input-buffer input-mask inputformsection insert-nested-select insert-parameters insert-img-to-option insert-data insertdate insert-delayed insertafter insertchildbefore input-mode input-simulation inputpanel inputrc input-redirection inquiry-management inputstreamreader input-string input-testing infocards infochannel infogrid inflector influence info-plist inforeader inform inform7 information-base information-card information-dispersal informed-search information-sources information-technology information-ownership information-science info-vis informx (fixed now) info-window infralution inheritence (typo - fixed) initialcapacity initial-context initialization-block initfileurlwithpath inline-comments inline-cpp inline-edit inlinec initialize-request-handl injectable injectors init-script inittab initwithcontentsoffile initwithcontentsofurl inlinks


Proving there are an infinite number of pairs of positive integers $(m,n)$ such that $\frac{m+1}{n}+\frac{n+1}{m}$ is a positive integer

The question is:     Show that there are an infinite number of pairs $(m,n): m, n \in \mathbb{Z}^{+}$, such that: $$\frac{m+1}{n}+\frac{n+1}{m} \in \mathbb{Z}^{+}$$   I started off approaching this problem by examining the fact that whenever the expression was a positive integer, the following must be true:  $$\frac{m+1}{n}+\frac{n+1}{m} - \left\lfloor\frac{m+1}{n}+\frac{n+1}{m}\right\rfloor = 0$$  However, I was unable to do much more with this expression, so I abandoned it and started the problem again from a different angle.  Next I re-arranged the expression to state that:  $$\frac{m^2+m+n^2+n}{mn} \in \mathbb{Z}^{+} \implies \frac{m(m+1) + n(n+1)}{mn} \in \mathbb{Z}^{+}$$  And therefore:  $$mn \mid (m(m+1) + n(n+1))$$  However, I'm unsure how to demonstrate there are infinitely many occurances of $(m, n)$ for which this is true. So I'd appreciate any help.   Thanks in advance


strange output of array as function argument in C

i am taking a C pointer course on  this is the code in C: #include<stdio.h> int SumOfElements(int A[]) {     int i, sum = 0;     int size = sizeof(A)/sizeof(A[0]);     printf("SOE size of A = %d, size of A[0] = %d\n", sizeof(A), sizeof(A[0]));     for(i = 0;i< size;i++)     {         sum+=A[i];     }     return sum; } int main() {     int A[] = {1,2,3,4,5};     int total = SumOfElements(A);     printf("Main size of A = %d, size of A[0] = %d\n", sizeof(A), sizeof(A[0]));     printf("Sum of elements = %d\n", total); }  according to the output should be:  instead this code i got the output:  according to the tutorial he explained that when the complier see an array as function argument it does not copy the whole array, it just creates a pointer variable instead of creating the whole array. so in this case the compiler just copy the address of the first element in the array of the calling function(which is the main function). so the size of A in 's code is 4 which makes sense. but why my output of sizeof(A) is 8?


Artificial lifeform trying to establish contact through compiler bugs

I am looking for a short story I read online a few years ago, about artificial lifeform, with a hard sci-fi taste.  A couple of software engineers were trying to identify a strange program behavior on a new system in development, but digging through the outer layers of software source didn't explain the seemingly random issues they observed. After hours of debugging, they identified unexpected output at the compiler level.  One of the developers manages to craft a workaround, only to see additional issues appear around the fixes, and he begins to fear a backdoor might have been planted in the compiler, which seemed tainted much like the Ken Thompson hack. As this might eventually jeopardize the entire project, they spend more and more time on the issue itself, but as time passes, the deeper bugs they discover and fainter they become.  In the end, it seems like some artificial intelligence tried to emulate evolutionary pressure by establishing a form of communication channel, and having groups of humans around the world fixing the most obvious software outer layers. Even computer-assisted hardware design could be contaminated at this time, but in such complex a way they might go undetected for a long time, now adapted to the silicon environment.  I've been literally searching this story for months, and begin to believe I dreamt of it and should start writing myself.


Error 000725 importing Python (Arcpy) script into tool of standard toolbox?

I have created a Python script. When I run the script as a standalone by make this a hard set path instead of sys.argv, the script really runs fine.   When I import this script as a python tool box then I get the error at output workspace that dataset is already existed. But there is no dataset in the GDB. I have attached the error file and the script file as well. I think i have set up the parameters  right as well.


Grammar Nazi is usually how they describe someone who corrects other people's grammar (or spelling, or other errors).  Is there any expression that shows such a person in a positive light?  I ask because the person being corrected might actually be grateful about it and want to show this Grammar Nazi in a positive light.  For example:      John Doe is a real ____ . If he hadn't pointed out all the mistakes in my résumé , everyone would think I was a fool and I'd still be looking for a job.   I'm not looking for terms implying generic smartness. This term should specifically imply John Doe is good at English (or any other language).    EDIT:  asks for an "alternative expression" which should be  "funny, slightly reproachful, but not really offensive". It accepts the answer 'Grammar police', and other top answers include 'pedant' and 'fascist'.  I'm looking for a positive term. And those answers aren't applicable here.


How to convert "YYYY/MM/DD HH:MM" to "MMM DD" and "HH:MM"?

I am new in android. Now I am struggling with a time stamp. I will get data from api in the form "2014/10/31 00:49".. I need the format as "OCT 31" in one variable and "00:49" in an another variable. How can i solve it. Thanks in advance.


Evaluating a summation of inverse squares over odd indices

$$ \sum_{n=1}^\infty \frac{1}{n^2}  = \frac{\pi^2}{6}$$  I want to evaluate this sum when $n$ takes only odd values.


Evaluating $\sqrt{1 + \sqrt{2 + \sqrt{4 + \sqrt{8 + \ldots}}}}$

Inspired by Ramanujan's problem and solution of $\sqrt{1 + 2\sqrt{1 + 3\sqrt{1 + \ldots}}}$, I decided to attempt evaluating the infinite radical $$ \sqrt{1 + \sqrt{2 + \sqrt{4 + \sqrt{8 + \ldots}}}} $$ Taking a cue from Ramanujan's solution method, I defined a function $f(x)$ such that $$ f(x) = \sqrt{2^x + \sqrt{2^{x+1} + \sqrt{2^{x+2} + \sqrt{2^{x+3} + \ldots}}}} $$ We can see that $$\begin{align} f(0) &= \sqrt{2^0 + \sqrt{2^1 + \sqrt{2^2 + \sqrt{2^3 + \ldots}}}} \\ &= \sqrt{1 + \sqrt{2 + \sqrt{4 + \sqrt{8 + \ldots}}}} \end{align}$$ And we begin solving by $$\begin{align} f(x) &= \sqrt{2^x + \sqrt{2^{x+1} + \sqrt{2^{x+2} + \sqrt{2^{x+3} + \ldots}}}} \\ f(x)^2 &= 2^x + \sqrt{2^{x+1} + \sqrt{2^{x+2} + \sqrt{2^{x+3} + \ldots}}} \\ &= 2^x + f(x + 1) \\ f(x + 1) &= f(x)^2 - 2^x \end{align}$$ At this point I find myself stuck, as I have little experience with recurrence relations.  How would this recurrence relation be solved? Would the method extend easily to $$\begin{align} f_n(x) &= \sqrt{n^x + \sqrt{n^{x+1} + \sqrt{n^{x+2} + \sqrt{n^{x+3} + \ldots}}}} \\ f_n(x)^2 &= n^x + f_n(x + 1)~\text ? \end{align}$$


C++ what is the difference between "Obj" and "Obj*" and how can I know when to use which?

Sorry for the messy title, I'm not quite sure how I should word it to better get my meaning across.  So, I have   struct Person {     std::string id_ = NO_ID;     int height_ = NO_HEIGHT;     std::vector<Person*> parents_{nullptr, nullptr};     std::vector<Person*> children_; };   and I want to be able to populate a map of Person(s) with data.   I made   using Personmap = std::map<std::string, Person >;   for it, but I'm not sure whether I should use *Person or Person here.   When I use Person, I at least know how to work with it, but when I try populating the vectors with data using anything like       persons_[child].parents_[0]  = ( persons_[parent_1] );   or similar, I'm getting an error because I'm trying to populate it with Person instead of Person*. Apart from the error message, I don't quite understand their difference and I'm not sure what I should utilize to make it work. The struct is not something I can change, but anything else here is free for scrutiny


Large value of exp (B) in binary logistic regression SPSS what is wrong?

I had a very large value for Exp(B) in SPSS binary logistic regression. What is wrong and what should I do?


Why is there a greater-than symbol on sites without a custom design?

I'm relatively certain that's not supposed to be there.


I have a code like that:  SELECT .... FROM .... LIMIT (SELECT COUNT(*) FROM ...)   How do I get the SELECT in LIMIT to be a number?


Mathematical model of the temperature of resistors/heatsinks?

I want to model the transfer function of a resistor mathematically, and am after some resources / tips on if it's possible to do so.  For example, if I put 1V into a 1 Ohm resistor, I want to know how long and how (shape) it will take to reach a steady state temperature, given 25 deg C ambient.  I.e.   $$ \frac{T(s)}{V(s)} = ??? $$  Where T(s) is the laplace transform of temperature T(t), measured in say Kelvin.  I understand there are a lot of factors which will affect this model (material, size, shape, ambient (?)), but I'm not sure where to even start. A  shows the heat rise at a certain load, but not really how it gets there. I can't find a time-domain function for the temperature rise either.


Is $\bar X$ a minimum variance unbiased estimator of $\theta$ in an exponential distribution?

I proceeded by finding $\operatorname E(\bar X).$ I considered $\bar X$ as a constant and simply got the term itself. This should suggest that $\bar X$ is not an unbiased estimator of $\theta$. That's obvious too cuz it's a constant(from what I assumed). However, I'm also aware that $\mu = \theta$ so that's probably not right.  I have to demonstrate first that $\bar X$ is an unbiased estimator of $\mu$.


Support for proxy-questions on other SE sites

Sometimes a question can be on-topic for one site, but more likely to get answers from a different community, for example:   In this case the question is on-topic for Ask Different and perhaps off-topic for Electrical Engineering. However it's likely to have more understanding and knowledge and get better answers in Electrical Engineering since it's about the Arduino. Many variants of this example case also exist where the question is on-topic on both sites or somehow sits in the middle, etc.  Something very similar to my suggestion below has been asked before:  however I have incorporated the feedback to that suggestion into my suggestion so that it avoids the problems detailed there and hopefully makes it work better for the asker, answerers, and the communities and moderators of both sites.  The suggestion:  When positing such a question you would post it on the site where it's more on-topic (Primary site) and select an option to create a proxy on another site (Secondary site), you would choose the other site and at the same time pick the tags from the other site.   Posting this question would NOT create the question on the secondary site as well, it would create a proxy-object for the question and tag it with the correct tags. The primary site would post the question immediately as normal, but on the secondary site the proxy-question would need to be be moderated and approved before the proxy object becomes widely visible. When browsing the secondary site, users would only see proxy-questions for questions held on sites on which they already have an account (There could be a user setting to show proxies from all sites if desired). When clicking on a proxy-question you would be taken to the primary site in a new tab (the question is only in one place). Answers would only be posted on the primary site. Proxy questions could be visually distinguished from normal questions by various means: using different colours/style, an icon or obvious 'proxy' tag, putting them in a separate section, etc.   This idea of using proxy-questions may also help to solve a few other cross-site issues. For example when closing off-topic questions, moderators may also be able to convert the question into a proxy-object of a duplicate question on another site (I've seen suggestions around this too).


I Can't Install Ubuntu 13.04 alongside windows 7

I download ubuntu-13.04-desktop-amd64.iso and write on a DVD then check it with a MD5 checker and it's OK. I decide to Install Ubuntu on my PC that have Windows 7 sp1 64-bit simultaneously. I follow  from Ubuntu website.  In step 4 when I choose "Install Ubuntu alongside Windows 7" and click continue my screen turn black and DVD would be ejected and When I press Enter the system would be restarted.   Also in windows I can't use wubi, When I Run wubi with administrator permission it show nothing, I try wubi.exe --force-wubi and did nothing.  I have this problem with Ubuntu 12.04.2.  :  ASUS N53SV  CPU: Intel Corei7 2630QM  RAM: 4.00 GB  Graphic Card: Nvidia Geforce GT 540M & Intel HD Graphic Family


Can the cross product of two non-invertible matrices be invertible?

To put it better, if A and B are non-invertible matrices (for whatever reason), can the matrix AB be invertible?  Just used to help understand a Linear Transformation assignment question, don't necessarily need an explanation as to why, but it would help. Thankyou.


Is it possible to show the output on terminal while writing the output of a command to a file?

I am running a command say nmap www.somesite.com>file.txt so that i can get the output to file.txt. But if I do so, I am not able to see the output of that command on terminal. Is it possible to make it visble on terminal also.  I know the usage of tee, but I wish to do this specifically in this way.


Why do the elements have to be distinct within hypergeometric distribution

I am trying to understand the hypergeometric distribution I looked at , I can see that it makes sense when we force each object to be distinct, though I am wondering why this is correct when each element is not distinct. For example if I am choosing from red und black balls the formula $\Pr(X = k)  = \frac{\binom{K}{k} \binom{N - K}{n-k}}{\binom{N}{n}}$ states that I would have to choose k out of the red balls and n - k out of the black balls. But in reality there is just one possibility to choose $\binom{K}{k}$ since every chosen red ball is the same und not distinct. It would just be a set $(r, ... , r)$ k times without being able to say what $r_i$ with $0 \leq i \leq k$ actually is. We could even choose $\Omega := {(𝑟,𝑟,𝑟,...𝑟,𝑟),(𝑟,𝑟,...𝑟,𝑏),...,(𝑏,𝑏,...,𝑏)} $ as sample space. Why is it not done in this way? So why do we have to enforce distincness of the objects when they are actually not distinct to get the disired result and why is this still correct?


Does the order of columns in a non-clustered ColumnStore index matter?

I'm reading about creating a non-clustered ColumnStore index. I noticed that when I modify an already created non-clustered ColumnStore in SQL Server Management Studio I have an option to change the order of the columns. Does the order of the columns matter?


How to access external hard drive from Ubuntu Shell and Python code

I am running out of space in my local device. I have external hard disk. I want to point my python code to write to directory there. How can I know the full path for the hard disk?  I tried to go to media directory. I used ls and found only one directory with the same user name x. I cd to x, and found the hard disk name. When I try to cd to the hard disk name I get this message: too many arguments  x@x-device:/media$ ls x x@x-device:/media$ cd x x@x-device:/media/x$ ls 'Seagate Backup Plus Drive' x@x-device:/media/x$ cd Segate Backup Plus Drive bash: cd: too many arguments   Q: How to find the full path of a directory in an external hard disk? How can I open a file in my external hard disk in python program?  v = open("my_file_in_the_external_hard_disk.txt","r")   EDIT: File system is: NTFS/exFAT/HPFS  Edit: I changed the hard disk name to remove spaces. I will post this as an answer.


On our linux server we have a lot of entries.    Many entries look like this:  15 13 * * 3 /very/long/path/to/binary/run.sh ...   These entries would be easier to maintain if I could write:  15 13 * * 3 $FPATH/run.sh   Where could I write this mapping:   FPATH=/very/long/path/to/binary


I am developing a multiplayer RPG-like strategic combat game.  If I use the formulas of Pokemon games in this game for damage calculation, does I risk any copyright issue ? What areas of the game is copyrighted ?


Show that    $$\frac{\sum_{i=0}^n\binom{k}{i}\binom{M-k}{n-i}\frac{k-i}{M-n}}{\binom{M}{n}}=\frac{k}{M},$$ where $M-k>n$ and $k>n$   From Vandermonde's identity, I get $\sum_{i=0}^n\binom{k}{i}\binom{M-k}{n-i}=\binom{M}{n}$.   But what about the sum of the product in the numerator? Any hint will be helpful.


I was in my home folder and I moved my .minecraft folder to the desktop and it disappeared! I know it is still because if i create a new folder called .minecraft on the desktop, it says I can't do that because there is already a folder called that on the desktop. I have very little Ubuntu experience and I am running 12.04 unity.  Do you have any idea of how to get it back?


Hi I'm new in Linux and I need your help :)  Every time when i type sudo apt-get update it shows:  alphaog@alphaog-HP-Pavilion-DV7:~$ sudo apt-get update E: Type 'ain' is not known on line 3 in source list /etc/apt/sources.list.d/ricotz-testing-precise.list E: The list of sources could not be read.   I tried   gksu gedit /etc/apt/sources.list   and put # in front third line but it still doesn't work.  Please Help! :)


How to expand my Ubuntu's space with unallocated space

I've created a partition of 50GB to my Ubuntu on my SSD (using Win10 with 200GB), I want to expand my Ubuntu's space by say, 20GB. So I've de-allocated that space from my /sda2 (ntfs) partition.  Now I would like to merge the unallocated space with /dev/sda5 which is an extended partition.  I've tried using AOEI software on win10 but it said it doesn't take care of extended paritions. Tried to unmount sda5 (with --force or -f too, and with -l too), and it just made my system laggy, couldn't do anything and had to restart, and eventually the key stayed.  I guess the steps should be to unlock the extended parition and then move the unallocated space down, and then I would be able to extend my Ubuntu's space, but I'm not able to do it.   I've also read many posts and watched some YouTube videos which didn't help me before asking here. Any help is highly appreciated, I need that space :(


Do the breaker amp readings sum up to dictate my current panels total / possible amperage?

So I know practically nothing about houses having rented for many years, just bought a house and was told by my inspector the panel is only a 70 amp panel and will need to be upgraded before I go to install AC.  I took him at his word, and had one AC consult, mentioning this to the guy he looked at my panel and agreed it needed an upgrade.  He gave a terrible quote ($5500 for a 3 ton goodman AC install without the electrical work, no ducting work necessary), so I got somebody else to give me a quote.  Now here's the problem: Fellow comes over and says I have a 150 amp panel and there's room (which I can see) for a couple more breakers on it, and gives me a considerably better AC quote (3500 for a lennox 3 ton 14 seer, all the same bells and whistles).  So now I'm thinking, considering how terrible the quote was from the first consult, perhaps he was just trying to squeeze even more money out of me? Why did my inspector tell me it was a 70 amp panel?  I look at the panel and there's like 6 or 8 15/20 amp breakers on it as well as a 30 amp double-breaker thingy (not sure if this is 30 per or 30 total) and a 50 amp double-breaker thingy.  I'll get a picture when I get home to post here, but off hand my question is:  Is it accurate to say I definitely have over a 70 amp panel due to the sum of amps on breakers in there right now? Is the sum of those little labels on the breakers make up my panels current amperage?  I look online for 70 amp panel and it's this tiny dinky thing with 3 breakers on it..  Edit: Here are the pictures, if this is not a 70 amp can anybody identify the amps?  Appearances to me are the diagram on the box does not match the actual panel, as the panel has 20 breaker spots (as I read it) while the diagram shows 14. And yes, I realize it's missing a main breaker, so I included the other two pieces I understand identify the max amp load; the conduit and the meter.


How to prepare cinnamon tea without sludge?

When I prepare my cinnamon tea in hot water it produced a sludge at the bottom but I don't drink the sludge. Is there a way to make this tea so that there is no cinnamon remaining in the cup?


“The group of fifty people {is / are} going to arrive Thursday” - which is preferred?

Isn't the following sentence grammatically correct?     The group of fifty people are going to arrive Thursday.   What's wrong with it? Someone said it should be      The group of fifty people is going to arrive Thursday.   Why? People is plural so why is people is better than people are?


Inequality with one equality constraint ....

Let $x,y,z$ be positive real numbers satisfying $x^2+y^2+z^2=1$. Prove that : $$\frac {1}{x} + \frac {1}{y}+\frac {1}{z} \geq 3{\sqrt{3}}.$$  I derived the equality case easily. I was able to prove the inequality with the help of Lagrange Multipliers, which made it look very easy. Is there any other way to prove the same inequality without calculus ?  I tried AM-GM and Cauchy-Schwarz but could not find a proper set of values to apply these on so as to obtain the inequality. Any help would be appreciated . :)


Is there a way to edit the tags of a question without editing the text of the question?

Here's a question where the user obviously made a mistake when choosing tags:   I wanted to change the "etymology" tag to "entomology", but I can't validate my edit: "Edits should be at least 6 characters."  I fail to find the "edit tags" button indicated here:   I'm probably missing the correct way to do this.


I am unsure of the best approach to this problem. I can think of some ways of doing it which I will list below but I am looking for the best and most efficient way of doing this.  Problem   Given a variable number of points, create a "route" or line between the points. Create a bounding box (of 50km[arbitrary]) around the route. Return all points within this bounding box Points must be returned in order along the route (A->D)   Note: The radius does not have to be circles. A,B,C,D can use rectangular bounding boxes.    Data   Table with points (x,y - technically lat/lon) Input points to create a route Distance from route to include points   We are using PostgreSQL (8.4) and PostGIS (1.3.6) and Python.  This is the solution I came up with. Thoughts? Ideas? Input?  Possible Solution   Create three polygon "tubes" (A->B, B->C, C->D) Filter points to only those in the polygons. Subtract B->C from A->B so the polygons do not overlap (no duplicates) Subtract C->D from B->C so the polygons do not overlap (no duplicates) For each polygon Calculate vector (A->B, B->C, C->D) Find furthest point opposite of vector in the polygon. Calculate distance from furthest point to each site in polygon. Return points in order of distance (smallest -> largest) Join all the points together (A->B points, B->C points, C->D points)   Solution  My approach was naive, after taking some time and looking at the PostGIS methods I came up with this single SQL call. Note its specific to our database but might help someone in the future. Im sure it could be improved as well.      SELECT aerodrome_id     FROM       geo_aerodromecustom_view,        (SELECT ST_Buffer(           ST_Transform(               (SELECT ST_MakeLine(geom)                FROM                    (SELECT geom                    FROM geo_aerodromecustom_view                   WHERE aerodrome_id IN ('CYOW','CYVR')                    ORDER BY CASE aerodrome_id WHEN 'CYOW' THEN 1 WHEN 'CYVR' THEN 2 ELSE 5 END                   ) sites               ),               900913           ),           50000) as geo       ) as line     WHERE ST_Intersects(ST_Transform(geom, 900913), line.geo)     ORDER BY ST_Line_Locate_Point(       ST_Transform(           (SELECT ST_MakeLine(geom)             FROM                (SELECT geom                 FROM geo_aerodromecustom_view                WHERE aerodrome_id IN ('CYOW','CYVR')                 ORDER BY CASE aerodrome_id WHEN 'CYOW' THEN 1 WHEN 'CYVR' THEN 2 ELSE 5 END               ) sites           ),           900913       ),       ST_Transform(geom, 900913)     )   I had to project the data because I am using PostGIS 1.3.4 which doesnt support Geography type.  Basically what I am doing is I am  using ST_MakeLine and a query to locate "aerodromes" and return their geometry.  I had to order them (using the CASE directive) so that the line would be connected in the right order.  I then project and buffer this line to create a Polygon that I can then use to see what other aerodromes intersect with the buffered polygon.  Using the unbuffered line (route) and the call ST_Line_Locate_Line I then order the discovered aerodromes as they appear appear along the path.


Why is PHP ignore session.gc_maxlifetime?

We have a WAMP based server set up. php.ini is set up with the following:  session.gc_maxlifetime = 60*60*12 session.save_path = "d:/wamp/tmp"   The problem we are facing is that session files inside the tmp folder are being sporadically deleted and we can't tell why. Sessions will last anything from about 10 minutes to 40 minutes, when they should be lasting 12 hours.  This is a virtual host environment, but none of the code we use in these sites overrides this setting (with ini_set, apache config PHP values or otherwise) so we can't see why they are being deleted. There are also no scheduled tasks deleting the files.  Is there a way to successfully figure out why gc_maxlifetime is being ignored? For the record, I changed one of our sites to use session_save_path('D:/wamp/tmptmp'); temporarily just to double check it was the garbage collection, and session files remain in there untouched - though admittedly this doesn't give really many more clues.


Are there currently problems with the 'Announcer' badge?

Nine hours ago I got the  ("Shared a link to a question that was visited by 25 unique IP addresses...") for following question: .  But   this question is not mine there is and was no link in the question there is no comment (with question from me) I haven't edited the question   (Also see .)  Can somebody explain me why I got the badge or is there currently a bug with this badge?


Why are relays so frequently driven by optocouplers?

Since the advent of the many microcontroller development boards, like Arduino, there have been a number of relay modules sold to drive mains AC loads.  A lot of these seem to use an optocoupler, driver transistor and a relay to drive the load (example on )  Why are they implemented like this?   Some of my thoughts:   Relays provide as good or better isolation than most optocouplers There is still a driver transistor present, so it is not component saving  There is still inductive kickback protection, so it is not component saving Optocouplers are not as cheap as transistors, so additional cost compared to just a driver transistor There is no need to meet any regulatory requirements as these are DIY products I have never seen small mains relays driven by optocouplers in commercial equipment A number of these boards don't seem to be designed brilliantly (no regard to clearance or creepage), so even if the optocoupler is simply to provide two layers of isolation, the board fails at this.


IndexOutOfRangeException for some strange reasons

I came across this strange IndexOutOfRangeException exception. The code I am working with was originally a C code, I have managed to translate it to C#  So I the followin loop gives me the error:  for (int i = 0; i < 6; i++) {     L[0] = new double[]{ T[0] + rxp[0][i] - (p[0][i]) }   According to the 'Locals' tab, rxp has only 3 'children' with only 1 items / child.  So I guess the problem is here:  void getrxp() {     for (int i = 0; i < 6; i++)     {         rxp[0] = new double[]{ M[0][0] * (re[0][i]) + M[0][1] * (re[1][i]) + M[0][2] * 0};         rxp[1] = new double[]{ M[1][0] * (re[0][i]) + M[1][1] * (re[1][i]) + M[1][2] * 0};         rxp[2] = new double[]{ M[2][0] * (re[0][i]) + M[2][1] * (re[1][i]) + M[2][2] * 0};     } }   Am I getting this to to create a double rxp[3][6]; array wrong or there is something else?   The original code looks like this (C):  void getrxp() {   for(int i=0;i<6;i++){     rxp[0][i] = M[0][0]*(re[0][i])+M[0][1]*(re[1][i])+M[0][2]*0;     rxp[1][i] = M[1][0]*(re[0][i])+M[1][1]*(re[1][i])+M[1][2]*0;     rxp[2][i] = M[2][0]*(re[0][i])+M[2][1]*(re[1][i])+M[2][2]*0;     } }


In the ring $\mathbb{Z}$ the following conditions on a nonzero ideal $I$ are equivalent: (i) $I$ is prime; (ii) $I$ is maximal; (iii) $I=(p)$ with $p$ prime.


Why use expression-bodied properties for primitive values?

What are the pros and cons of expression-bodied properties vs straight property declarations? For example, is there any advantage to using; public string Foo => "Bar"  vs simply public string Foo = "Bar"  My understanding was the => is used when the value comes from a method, like a lambda function. If the value is a primitive like a string or int, why would anyone use an expression-bodied property for that?


Download the output of a command line program using PuTTy/WinSCP

I have ssh-access to a linux server. My account is running out of free space and I am forced to remove some data from the server. I would love to download my mysql database (and delete if afterwards) but because I have no more space I can not dump my database using mysqldump to my ~.   Is it possible to download the stdout of a remote linux system using PuTTY/WinSCP on my windows 7 machine? So I could directly download the output of mysqldump without saving to the harddisk of the remote system? Or is there any other way?


If $gcd(a,b)=1$ then $gcd\big(\frac{a^{p}+b^{p}}{a+b},a+b\big)=1$ unless $p|a+b$

If $\gcd(a,b)=1$ then $$\gcd\left(\frac{a^{p}+b^{p}}{a+b},a+b\right)=1$$ unless $p|(a+b)$ Where $p$ is any prime. Use of modular arithmetic is restricted. Can you prove it just using basic divisiblity and definition of gcd ?


I'm fairly familiar with using Tikz. I've used it to make simple logos before. Now, I'd like to create this diagram, which is a little more complicated:    Does anyone have any advice on what the best way to do this would be?  I'm aware that it's very easy to use the image file in my output (\includegraphics). However, I'd like to make it in Tikz if possible, for infinite scalability.  BTW, the blue is #080f6a.


Im having a problem with my xubuntu script. This is the script: #!/bin/bash/ cd / touch ~/.config/zoomus.conf cd ~/Desktop 'home/oem/Desktop/Zoom.desktop'  This is my error: bash: ./zoom.sh: /bin/bash/^M: bad interpreter: Not a directory  Please help me fix this. Im writing the script bc zoom wont run on here without the terminal. So im writing the script.  this is another error: /home/oem/Desktop/Zoom.desktop: line 1: [Desktop: command not found /home/oem/Desktop/Zoom.desktop: line 3: Video: command not found /home/oem/Desktop/Zoom.desktop: line 4: fg: no job control /home/oem/Desktop/Zoom.desktop: line 9: Application: command not found /home/oem/Desktop/Zoom.desktop: line 11: x-scheme-handler/zoomus: No such file or directory /home/oem/Desktop/Zoom.desktop: line 11: x-scheme-handler/tel: No such file or directory /home/oem/Desktop/Zoom.desktop: line 11: x-scheme-handler/callto: No such file or directory /home/oem/Desktop/Zoom.desktop: line 11: x-scheme-handler/zoomphonecall: No such file or directory /home/oem/Desktop/Zoom.desktop: line 11: application/x-zoom: No such file or directory /home/oem/Desktop/Zoom.desktop: line 12: X-KDE-Protocols=zoommtg: command not found /home/oem/Desktop/Zoom.desktop: line 12: zoomus: command not found /home/oem/Desktop/Zoom.desktop: line 12: tel: command not found /home/oem/Desktop/Zoom.desktop: line 12: callto: command not found /home/oem/Desktop/Zoom.desktop: line 12: zoomphonecall: command not found


Prove that there is a subgroup of index 2

Let $G$ be a group, and $N \lhd G$ so that $[G:N]=2014$. I need to prove that there is a subgroup of index 2.  Indeed, since $N \lhd G$, $o(G/N)=2014$, but I  couldn't find how to go on.


Do cards that say "all creatures" affect creatures with hexproof?

When a creature or player has hexproof and a player casts a card such as :     Choose one —         Destroy all creatures.   Destroy all artifacts and enchantments.      Do creatures with hexproof die too?


2D array, prototype function and random numbers

A part of my program is supposed to create an array holding either an asterisk or a dot. I have to use a prototype function where if the random number generated(between 0 and 1) is less than a variable p, the array should hold '*'. otherwise it should hold '.'. The array created is only producing dots. What's wrong? (i have declared the function earlier in the program)  else { for( i = 0; i<m;i++){     for( j = 0; j<n; j++){                 array[i][j] = assignBomb(p);                 printf("%c", array[i][j]);      }     printf("\n"); }  return 0; }  int assignBomb(double p) {  srand((int)time(0)); //random number seed double random; random = ((double) rand() / RAND_MAX); //generates random number betwn 0 & 1 char cellchar; //declaring a character variable  if (random < p) {     cellchar = '*'; } else {     cellchar = '.'; }  return cellchar; //function returns cellchar }


In what way are each intended to be used? Also the differences between them?  For an example:  sbyte myByte = 1; SByte myByte = 1;


Identifying German soldier in WWII from single photo?

I found out that my grandfather was actually a German soldier in WWII who was in Austria in the year of 1945 but I only have a photograph and no other information.   Is there any way I can search for his identity?


Virtual inheritance and function members

Let's consider the following code snippet:  struct A { void f(); }; struct B : virtual A {}; struct C : virtual A {}; struct D : B, C {};   What can I say? that D has two different member functions B::A::f and C::B::f which are called over a same object? or they are just aliases of a same member function?  For example, for the non-virtual case,   struct A { void f(); }; struct B : A {}; struct C : A {}; struct D : B, C {};   D has two different member functions B::A::f and C::A::f because they just have different names, so, calling D().f() is an ambigüity because I have to specify to which member I want to call.  However, in the virtual inhericante case, that isn't required anymore because calling by one path or another resolves to call the function over a same object, and I don't know anymore if, in the virtual inheritance case, I have two different member functions which resolves or are executed over a same object, or they are just aliases of a same member function.  Anyway, from a practical point of view that difference doesn't matter, but from a more formal point of view I'm not sure about what to say.


How do I tell Maven to use the latest version of a dependency?

In Maven, dependencies are usually set up like this:  <dependency>   <groupId>wonderful-inc</groupId>   <artifactId>dream-library</artifactId>   <version>1.2.3</version> </dependency>   Now, if you are working with libraries that have frequent releases, constantly updating the <version> tag can be somewhat annoying. Is there any way to tell Maven to always use the latest available version (from the repository)?


I installed gksudo on Ubuntu 14.04 LTS and when i run nautilus with gksudo  gksudo nautilus it asks for password, then gives error and then crashes   (nautilus:19688): GLib-GObject-WARNING **: invalid cast from 'GtkMessageDialog' to 'NautilusWindow'  **  ERROR:nautilus-window.c:2116:nautilus_window_get_slots: assertion failed: (NAUTILUS_IS_WINDOW (window))   Though sudo nautilus seems to work fine  Thanks in Advance    Well, the problem has stopped occurring and gksudo nautilus works just fine. And I have absolutely no idea why this happened.   Any insight on  what my original problem was and how it got solved is highly appreciated.  Again thanks in advance.


Can I dual boot Windows and Ubuntu with Ubuntu installed on a different drive than Windows?

This might be a silly question but I'm kind of unsure whether dual boot will still work if I've got the two operating systems on two different drives... If it does work, is there something I need to take in consideration?


Where / which is the actual kernel source?

I am following  to learn to compile the kernel. I used   apt-get source linux-image-$(uname -r)   to download the source code of the Linux kernel I am curretly using.  After running the above command, the following files (and directories) were downloaded.  user $ ls -l total 130972 drwxrwxr-x 27 sps sps      4096 Oct 16 03:10 linux-lts-vivid-3.19.0 -rw-rw-r--  1 sps sps  10980684 Oct  5 10:54 linux-lts-vivid_3.19.0-30.34~14.04.1.diff.gz -rw-rw-r--  1 sps sps      7396 Oct  5 10:54 linux-lts-vivid_3.19.0-30.34~14.04.1.dsc -rw-rw-r--  1 sps sps 123115155 May  6 21:35 linux-lts-vivid_3.19.0.orig.tar.gz user $    In the  page it is mentioned:     Building the kernel is quite easy. Change your working directory to the root of the kernel source tree and then type the following commands:   But I am not sure which is the "root of the kernel source tree".   Is it the current directory (where I ran apt-get source ... and where I have the above listed files)?  Or, is it the directory:  drwxrwxr-x 27 sps sps      4096 Oct 16 03:10 linux-lts-vivid-3.19.0   or, should I extract the tarball   -rw-rw-r--  1 sps sps 123115155 May  6 21:35 linux-lts-vivid_3.19.0.orig.tar.gz   Output for uname -r:  user $ uname -r 3.19.0-30-generic user $


VMware licnesing for vdi and server virtualisation

I am planning to virtualise 50 desktops as thin clients(concurrent users). Well i will need 5 servers where 3 will be used for server virtualisation and 2 for desktop virtualsiation.All the servers will be Hexa Core with 2 CPU's.I want to know the number of licenses i will be requiring for Vmware vSphere 5 Enterprise Plus ,Vmware vCenter Server 5 Standard,Vmware Horizon Advanced edition.I am purchasing 50 TSA licenses separately.


How do I create an edge on a non-standard shape?

I am trying to create a horizontal line around a corner but Blender won't allow me to do cuts with crtl+r.  My intent is to make 4 edges so that i can make it go inward (it's supposed to be the lid of a box)    Some extra info: I am unable to use the knife tool (K) because from the front and rear view the box is obstructed and I don't want to cut a line through the entire model.  If there is a way for me to add a Vert on an edge with it being able to slide, much like the crtl+r shortcut does for edges that would be a way.  Edit: This was marked as possible duplicate where the solution was using the knife tool but like I said above I'd like to avoid using this as I'll have to make it "cut-through" which will cut the entire length of a 6m long model with a bunch of details.


An apparent contradiction to $m = m_0/\sqrt{1-v^2/c^2}$

Using theoretical framework of the special relativity, we can show that the quantity that we classically regard as energy does have a property of inertia. And particularly, if the total energy of a box is $L$ then its inertia is $L/c^2$. Now suppose I have an infinitely large parallel plate capacitor which is at rest in an inertial frame $O$. Uniformly charged plates of the capacitors have such a charge density so that the uniform electric field between the plates is $E$.   Now in a frame of reference $O'$ which is moving uniformly along the area vector of the plate plane with respect to $O$, the electric field will be $E$ and magnetic field would still remain zero.  In $O$ frame, the total energy of capacitor is $L_1 = l_0 \int\frac{1}{2}\epsilon_0E^2 dA $ and thus its mass is $m_1 = L_1/c^2$.Where $l_0$ is the perpendicular separation between the plates and $dA$ is the infinitesimal small area element of one of the plates in $O$ frame.  In $O'$ frame, the total energy of the capacitor is $L_2 = l_0\sqrt{1-v^2/c^2} \int\frac{1}{2}\epsilon_0E^2 dA $ . The infinitesimal $dA$ and limits of integration remain exactly the same because no length contraction happen in the direction perpendicular to the relative motion. Here also the mass is thus $m_2 = L_2/c^2$.  So, $m_2$ = $m_1$ $\sqrt{1-v^2/c^2}$. But in general, in relativity we prove that $m = m_0/\sqrt{1-v^2/c^2}$. So why does this apparent contradiction is happening? Does it have to do anything with the fact that actually both the $m_1$ and $m_2$ are infinities? Because I doubt that it might be the case that we cannot directly write  $m_2$ = $m_1$ $\sqrt{1-v^2/c^2}$ because $m_2$ and $m_1$ are infinities. But on the other hand that relation seems to hold pretty well from their corresponding expressions in the integral form.


Why Hibernate queries gets stuck in 'idle in transaction' in Postgres

Our Grails app recently has shown signs that it's getting stuck sometimes out of nowhere. There are no exceptions or errors.   But when I check the pg_stat_activity I can see some queries there related to stuck process in 'idle in transaction'.  Any clues why this is happening?  I'm using Grails, and Postgres as a database. Those specific query is not a 'for update' lock.


Generated material in Blender, export to Unity

I'm trying to do something I believe should be very simple. But I am also very new to blender.  I have created a material, very simply, and applied it to an object (through the node editor - sorry if my vocabulary is off). It works just fine in the Blender Renderer.   It fits perfectly on the object, but I want to now export this from Blender, to be used in Unity.   I have a UV map of this object. But that doesn't help if I can't get the image of the material I generated. Sorry if this is unclear.   Basically, I want to generate the appropriate image, that (if used with my UV map of the object) would produce what I'm seeing rendered here in Blender.   Perhaps I'm going about it backwards, but this seems like I'm just missing some last step of this workflow. Ultimately this would be used in Unity; not sure if that changes things.


Please help me to get my original account

I was trying to re-do recover my Gmail account; I now have two Gmail accounts. I'd really like my first original one back, as I have business cards using the first Gmail account. Can you help me on if there's a way to fix this issue?


Prevent long running javascript from locking up browser

I have JavaScript which performs a whole lot of calculations as well as reading/writing values from/to the DOM. The page is huge so this often ends up locking the browser for up to a minute (sometimes longer with IE) with 100% CPU usage.  Are there any resources on optimising JavaScript to prevent this from happening (all I can find is how to turn off Firefox's long running script warning)?