Ubuntu 16.04 Meltdown patch - kernel version

I just downloaded and installed the latest security patch for Ubuntu 16.04 LTS using Update Manager as instructed.    I was under the impression that the new kernel version after upgrade would be 4.13, however when running this command uname -r in my terminal, it is still showing 4.10.0-42-generic  Is this correct? Is there a way to confirm that the patch has been successful?


I'm working on a GitHub project. It's a text editor built in Python. I need to be able to run error.vbs from test.py.  How or is this possible?


KVM switch, many console to one computer

I understand KVM's purpose is to control multiple computers from one place (one set of KVM). I am looking for a device that functions the other way around! That is, control/work-on single computer from many places (multiple set of KVM). Planning to run a computer training centre where each student can login to the server and work using his/her KVM. My objective here is cost cutting.   Is there such a device? Is what I am looking for makes sense?


how to find the current version of gnome

I'm using ubuntu 12.04.   I tried   $ gnome-about –gnome-version gnome-about: command not found  $ gnome-session --version gnome-session 3.2.1   Why I need is because my desktop environment doesn't look like   though wikipedia states that the default gnome version on 12.04 is 3.4.1.


Prevent newly created feature class being automatically added by ArcPy (Python AddIn) to Map Document?

I have a python addin, which as part of its function checks to see if a template point feature class exists on the user's machine.  If it doesn't, it creates this file.  This template file is used elsewhere in the addin to create other files.  I do not want this template file to be added to the map document.  When the addin is run, if the template file doesn't exist it gets created and automatically added into the currently active data frame.  Is there something I can add to the scrip to prevent this from happening?  Or is the neatest way to let the feature class be added to the data frame and then add a line to the script to remove it from the map document?  My code is currently as follows:  coordsys = arcpy.SpatialReference(27700)  #Define the schema file for the output schemafile = defgdb + "/Template"  #Check to see if the schema file exists, if it doesn't, create it. if arcpy.Exists(schemafile):     pass else:     arcpy.CreateFeatureclass_management(defgdb, "Template", "POINT", "", "", "", coordsys)   My current method for removing the layer from the map document (rather than preventing the layer from being added) is:  for layer in arcpy.mapping.ListLayers(mxd, "Template"):     arcpy.mapping.RemoveLayer(df,layer)


Encrypt old Time Machine backup for archival purposes?

I have a couple of old Time Machine backups (for computer A and B) that are stored unencrypted on an unencrypted drive. I would like to encrypt them for archival purposes but they need to remain working with TM (e.g. browse using the TM interface, restorable to a new computer using TM and so on). I followed the instructions at  but since A and B are long gone I used computer C. That didn't work out very well, at the final step, instead of starting to encrypt I got this message:  How can I encrypt an old TM backup when I no longer have access to the machine that was the source for that backup?


Does a generating function for $\zeta(2k+1)$ exist?

I know that a generating function for the Zeta function at the even integers already exists, but how about the Zeta function at the odd integers?  I've done some research, and found some alternative formulas for the harmonic numbers that allowed me to create a generating function for $\zeta(2k+1)$, but I'd like to know if it'd be new.  That would be nice if the answer is no, after all, it gets me really frustrated when I find out that all my discoveries in Math are actually just rediscoveries. And that's been the case in like 99% of the times I found something.  Just found out the answer is yes, but my formula is different anyway, less bad.


We have a preferences option to enable auto-run of python scripts when opening blend files. We can also add paths that are excluded from auto-running scripts. Then we have a cli options to enable or disable auto-running scripts and to bypass the startup.blend with --factory-startup.  In regard to auto-running scripts which of these options overrides all others?  If my startup.blend disables auto-run, can a python script be run from the cli to enable auto-run for the blend being opened?  Does --factory-startup bypass my auto-run settings?


Calculate: $27^{162} \pmod {41}$  So we need to calculate x which is a remainder of $$\frac{27^{162}}{41}$$  $27 = 3^3$ so we can write such equation: $$3^{486} = 41k + x$$ or  $$3^{3 \times 162} = 41k + x$$ where x is a reminder.  But what do I do next to calculate this without using calculator(or using simple one)?


Lead actor/actress VS Supporting actor/actress

On what basis,  is considered as a Lead actor in the movie ?  In the movie, both characters have equal importance and both narrated the story in equal measure and occupied same amount of screen space, how come  is a supporting actor in the movie Rush?  I’m very intrigued to know on what basis Leading Actor and Supporting Actor is categorized in Hollywood.


Multicollinearity when individual regressions are significant, but VIFs are low

I have 6 variables ($x_{1}...x_{6}$) that I am using to predict $y$. When performing my data analysis, I first tried a multiple linear regression. From this, only two variables were significant. However, when I ran a linear regression comparing each variable individually to $y$, all but one were significant ($p$ anywhere from less than 0.01 to less than 0.001). It was suggested that this was due to multicollinearity.  My initial research on this suggests checking for multicollinearity by using . I downloaded the appropriate package from R, and ended up with the resulting VIFs: 3.35, 3.59, 2.64, 2.24, and 5.56. According to various sources online, the point you should be worried about multicollinearity with your VIFs is either at 4 or 5.   I am now stumped about what this means for my data. Do I or do I not have a multicollinearity problem? If I do, then how should I proceed? (I cannot collect more data, and the variables are parts of a model that aren't obviously related) If I don't have this problem, then what should I be taking from my data, particularly the fact that these variables are highly significant individually, but not significant at all when combined.  Edit: Some questions have been asked regarding the dataset, and so I would like to expand...  In this particular case, we're looking to understand how specific social cues (gesture, gaze, etc) affect the likelihood of someone producing some other cue. We would like our model to include all significant attributes, so I am uncomfortable removing some that seem redundant.  There are not any hypotheses with this right now. Rather, the problem is unstudied, and we are looking to gain a better understanding of what attributes are important. As far as I can tell, these attributes should be relatively independent of one another (you can't just say gaze and gestures are the same, or one the subset of another). It would be nice to be able to report p values for everything, since we would like other researchers to understand what has been looked at.  Edit 2: Since it came up somewhere below, my $n$ is 24.


LaTeX problem with position of large table or large algorithm

I am using the following packages to submit a paper in International Journal of Communication Systems:  \documentclass[12pt,peerreview,draftcls,onecolumn]{IEEEtran} \usepackage{amsmath} \usepackage{amssymb} \usepackage[numbers]{natbib} \usepackage{graphicx} \usepackage[tight,footnotesize]{subfigure} \usepackage{algorithmic} \usepackage{algorithm} \usepackage[dvips,colorlinks,bookmarksopen,bookmarksnumbered,citecolor=red,urlcolor=red]{hyperref}  \newcommand\BibTeX{{\rmfamily B\kern-.05em \textsc{i\kern-.025em b}\kern-.08em T\kern-.1667em\lower.7ex\hbox{E}\kern-.125emX}} \def\volumeyear{2010} \begin{document} ... \end{document}   However, when I insert a table which has for example more than 5 rows or when I write an algorithm which fill entire of a page, the LaTeX put them at the end of the paper!!!  One of my table:  \begin{table}[h!] \caption{Parameter's Values of Environment}\centering \begin{tabular}{p{25mm} p{20mm} p{22mm}} \hline Parameter &various SUs  & various K \\ \hline Environment & $500\times500[m]$  & $500\times500[m]$ \\ \hline $|\mathcal{M}|$ &10 &5 \\ \hline $|\mathcal{N}|$ &5-50 &50 \\ \hline $r^{PU}(.)$ &150(meter) & 150(meter) \\ \hline $r^{SU}(.)$ &100(meter) & 100(meter) \\ \hline No. Rounds &100& 100 \\ \hline No. Time slots &$3\times |\mathcal{N}|$ &100 \\ \hline No. Iteration &1000& 100 \\ \hline \end{tabular} \label{table5} \end{table}   My algorithm style:  \begin{algorithm}[tb] \caption{Distributed SCG-RP Algorithm} \label{algorithm1} \begin{algorithmic}[1] ... some \IF some \STATE ... \end{algorithmic} \end{algorithm}


Integer solutions to $x^2(y-1)+y^2(x-1)=1$

Find all values of $(x,y)$ where $x,y$ belongs to integers if:   $$x^2(y-1)+y^2(x-1)=1$$    I m a beginner so I do need some help.


Java null pointer exception for Array List

I am trying to return a list of integers having length of the list/array passed.  But it's returning null pointer exception error. Should I use any other data structure for the same List, array etc.   What would be the best to be used.   import java.util.ArrayList;  public class App {      private static ArrayList<Integer> a;      public static ArrayList<Integer> map(String[] x) {          for (int i = 0; i < x.length; i++) {              a.add(x[i].length());          }          return a;     }      public static void main(String[] args) {          String[] string = { "hello", "how", "r", "you" };          System.out.println(map(string).toString());     }  }


I am a new user to LaTex. Is there an upper limit to the PDF generable from Latex?  What about performance? Suppose I would want to write a 500 pg long book on PDF, at what point is it going to seriously hinder the speed for viewing my PDF file?


Do the stellar remnant in a black hole have spatial extent?

I am not talking about event horizons. I am talking about the actual remnant of stellar collapse.  Is it just a point, hence the problem with the singularity? Or does it have a finite volume that we can infer from observable quantities?


Can I take my battery backup/energizer/secondary power source in flight?

I have bought one battery backup/energizer/secondary power source (2500 mAh). I am going to India this week but not sure whether I can carry battery backup on flight. The website of Air Canada does not specify whether a battery backup is allowed on flight.  To make it more clear for you I have attached the images:


Yahoo! email signup without mobile phone

How do I sign up for a Yahoo! email account without a mobile phone? Can't afford one on SSD.


How do I win "Twilight of the Gods" final mission in Warcraft 3?

I've difficulties surviving in the last campaign mission in Warcraft 3 on the highest difficulty settings. After capturing the mines and building as much of an army as possible, I get decimated by the incoming forces faster than I can rebuild. I usually end up as sole survivor (Hu/Orc base destroyed) after 10 minutes. I tried various stuff, including building wells near the place of battle and walls of ancient protectors, but to no avail.  I'm wondering if it is actually that hard, or if I just do something wrong. I was about level 30 on the solo ladder so I think my micro and macro is not utterly crappy in general.


In my add-on, I would like to add a property that is not scene-specific but unique for the entire project file so I can call it from any scene and always get the same value. In case you need to know, in my situation it would be a PointerProperty that points to a list of properties of different types. I know how to add a Scene-specific property by adding a line like this in the register function: bpy.types.Scene.my_prop = PointerProperty(type=my_list_of_properties)  But what about a Project File property? Is that even a thing?


Creating variable in class or in __init__ in python3

where is a difference between creating a variable in a class and assign it a value in __init__ and creating the variable directly in __init__?  For example:  Example 1:  # I create the var color outside __init__ and assigns a value to it inside __init__  class Car:    color = ""    def __init__(self):       self.color = "green"   Example 2:  # I directly create the variable inside __init__ and not outside __init__ and just assign a value in __init__  class Car:     def __init__(self, color):         self.color = color   Does it make a difference?


Is the plural of CV: CV or CVs when the pluralised noun does not end in -s?

to  outlines a general rule for pluralising acronyms:     The general rule is that you should not use an apostrophe to form the plurals of nouns, abbreviations, or dates made up of numbers: just add -s (or -es, if the noun in question forms its plural with - es).    However, it is not clear from that answer what should be done if the noun in question uses does not end in either -s or -es.  What is the correct plural abbreviation for Curriculum Vitae?  I think the plural is Curriculum Vitarum (or possibly Curricula Vitae), which would make the plural abbreviation CV too. Use of the -s suffix suggests Curriculum Vitaes (or possibly Curriculums Vitae) which seems wrong.  What is correct?


He alleges another £1m had gone on material purchases based on projections of Arcadia orders he was told were coming down the line.  I can't understand the meaning of this sentences.This sentence is seems simple sentence because there is no connector. As I know a simple sentence has one clause , that's mean one subject and one finite verb but here I can see more than one clause and more than subject and verb came here.


What's the easiest way to profile a PHP script?  I'd love tacking something on that shows me a dump of all function calls and how long they took but I'm also OK with putting something around specific functions.  I tried experimenting with the  function:  $then = microtime(); myFunc(); $now = microtime();  echo sprintf("Elapsed:  %f", $now-$then);   but that sometimes gives me negative results.  Plus it's a lot of trouble to sprinkle that all over my code.


Sign In with Apple will be required in the Stack Exchange iOS app

This is just a heads up to the people working on the iOS Stack Exchange app that a Sign In With Apple button will be required to be next to the Facebook and Google login buttons.  From :     Sign In with Apple will be available for beta testing this summer. It will be required as an option for users in apps that support third-party sign-in when it is commercially available later this year.


Trying to connect object when mirrored over center?

I am still very new to blender. I am trying to make one connected bit of teeth, but the two faces/edges will not merge at the center of the mirror and I don't know why. the edges seem to connect when I turn off one of the modifiers, but won't once I turn it on again. Please help


how to ignore gender nicely in english? can i make the sentence plural?

why is this possible to replace:  someone removed his/her with someone removed their  can I also change:  The user clicks on the button. He/She then sees.. with The user clicks on the button. They then sees..  or how would you ignore gender more elegantly?


Greater Than/Less Data Driven Page Definition Query?

I'm using data driven pages where each page is representing a series of points for a particular year.  The problem I have is that I want to not only show the points for a particular year, I want to show each point before said year as well.  So as I go through the pages, points are only being added to the map, not removed. I want to do a page definition query so that it would say:  "year" <= DataDrivenPageYear    The problem is that the Page Definition query only offers "Match" and "Don't Match."  Is there something I can type in the regular query builder to tell it that I want the year less than or equal to the Data Driven Page year?


Why atomic is not sufficient in thread safety for complex objects

atomic keyword is applied to properties of a class, for thread safety.  Usage of atomic is thread safe for primitive data types but not the complex objects (modal objects). Why ?  Thanks in advance for the kind reply!  Update  If Person is a Class having properties name, age, address.  Consider   @property(atomic, strong) Person *adam;  How far is the object adam thread safe ?


If $\sum \limits_{n=1}^\infty a_n$ diverges, then does $\sum \limits_{n=1}^\infty a_{2n}$ diverge too?

Assume $a_n \geq 0$ and a decreasing sequence and $\lim a_n = 0$  The examples I have in mind are $\sum \limits_{n=1}^\infty \frac{1}{n}$ and $\sum \limits_{n=1}^\infty \log \left ( 1 + \frac{1}{n} \right ) $ both diverge. But what if we extract a subsequence of even numbered indices.  What about for a general subsequence?


Preview on the right please, optionally?

When posting a question with some code (or generally any question with more detailed description and some explaining) you have to do lots of scrolling when reviewing the changes. While there is huge amount of empty space on both sides. So many people have wide screens these days, I think they might appreciate the question preview instead of that empty space so there would be way less scrolling.  Also note this suggestion does not say "screw those with lower res. screens".


Where in the world is tikzlibraryhobby.code.tex?

I was trying to reproduce Claudio Fiandrino's answer to .  However, I do not have the hobby package by Andrew Stacey in my local distribution.  After reading  and , I looked at the latest  (build on December 7, 2012) but could not located the hobby package in it.  I found  but do not know where each file is supposed to go in my distribution.  How do I add the hobby package? In general, what would be the easy way to get any new TikZ package installed in a Mac?  EDIT:  I have used the drag-and-drop (mac) method as described below.  (1) Drag pml3array.sty file to /Users/Username/Library/texmf/tex/latex folder. (2) Drag hobby.code.tex file to /Users/Username/Library/texmf/tex/generic/pgf/math folder. (3) Drag pgflibraryfpu.code.tex to /Users/Username/Library/texmf/tex/generic/pgf/libraries folder. (4) Drag tikzlibraryhobby.code.tex to /Users/Username/Library/texmf/tex/generic/pgf/frontendlayer/tikz/libraries folder.  I no longer get the hobby cannot be found error message.  But, is this correct?


Transfering files from QGIS to ArcGIS, wrong topology and fantoms objects

I am working in a project with both QGis and ArcGIS. I do mostly cosmetic work and digitalize with QGIS then transfer the shapefiles on ArcGIS. At work I am the only one to work on QGIS, the other members have ArcGIS, (not our choice, question of tight budget). This also mean I have no support, no one is familiar with the program.  This worked fine as long as I was only transfering ready files to ArcGIS, but lately I worked for a short time on the files in ArcGIS (I projected the files and edited) and eventually I had to take back the files from ArcGIS and edit further with QGIS.  When I send back those files in ArcGIS they are messed up.  The edited shapefiles are right on QGIS (topology fine, TOC fine), but on ArcGIS I have "fantoms" polygons or objects (without any geometry) AND overlapping polygons: the old version of the edited polygon/object plus the new polygon/object.  Though I have a column with unique IDs to help sort that out, some of the fantoms/old polygons get a "0" for ID some other the same ID as the original polygon.   So I delete the mistakes in ArcGIS, the file is fine according to ArcGIS. I double check on QGIS, and surprise, I am now missing polygons there!  This is becoming a big mess, and I am unable to understand where are my mistakes coming from so I can avoid them in the future.  I also have problems with special signs (Swedish signs, ö, ä, å) translating in other signs or letters from on program to the other. I have made some reference excel table to join to the gibberish TOC, but when constantly editing, it is complicated to keep track of the newest version. Any other solution is welcome!


How to keep Blender from adding frame numbers to output filename?

When you render something, Blender will automatically append the frame number to all output files' names, producing filenames something like render_0001.png, render_0002.png, render_0003.png, etc.  For frames of an animation this is great, since it keeps the same file from being overwritten for each frame.  But for videos this is usually unnecessary.  Is there a way to keep Blender from adding the frame number to every render output file?


Invariant factors of $\mathbb Z_m\times\mathbb Z_n$

Prove that the invariant factors of $\mathbb Z_m\times\mathbb Z_n$ are $mn$ if $m$ and $n$ are relatively prime and are the greatest common divisor and the least common multiple of $m$ and $n$ if they are not relatively prime.


I am writing a text which I will review later again and want to comment out only a part of a line (in between), something like this:  Once upon a time, there was %in some galaxy far away% a nice and cute rabbit...   When I review it again, I could decide if it is better to include that part or not.   Is it possible to do such a thing?


I have an object like these  var itemlist= {"50271":2,"50025":1,"90012":3}1   It indicates the reagent to include in a mixture. The property name is the ID of the reagent and the property value the quantity. I would like to generate HTML to display the reagents of a mixture as follows   x 2  x 1  x 3   How can I loop the object to get my expected output?


What is the difference between the following sentences:     He may have arrived now.   He might have arrived now.   He could have arrived now.


CBC MAC attack using Arbitrary-length Messages

This is from a lecture :  The adversary sees the message-tag pair(m,τ), where m= (m1,m2,...,mn)The adversary sees the message-tag pair(m′,τ′), where m′= (m′1,m′2,...,m′n)The adversary computes m''=(m1,...,mn,m′1⊕τ,m′2,...,m′n) The message-tag pair( m'',τ′)is a forgery   But I don't understand why xoring the tag τ of the first message with the 2nd message gives a message whose tag is the tag of the second message.  How is first tag used to determine that the tag of m'' is τ′?


How can I reduce spacing between parenthesis

How can I reduce space between parenthesis?   For example:     How can I reduce the space marked by the red?


How many spell slots should an Arcane Trickster / Wizard have?

I know probably find in the book but kind of confusing to me. I was just wanting to know how many spells should I have being a arcane trickster rogue 7/ Wizard level 2?


I tried leaving a comment on  that says 'What have you tried?', but was unable to post my comment. I've seen this comment posted on other questions where the OP requests code to be spoon fed to him so I assumed it was proper etiquette, but apparently not.  I've noticed one of two things will happen:   People will post quick and dirty code to get the easy rep There will be several comments between the OP and commenters about elaborating on the details of the question, what he's tried, etc.   I see this comment: How about you go and attempt this yourself instead of being lazy and just asking someone else to do it? StackOverflow expects you to show any attempts made, which is clearly a more inflammatory way of saying 'What have you tried'?  Can anyone elaborate on this?


Nilpotent Lie Algebra with determinant 0

If I have a nilpotent Lie Algebra $\mathfrak{g}$ and a representation $\rho(X)$ in a vector space $V$ such that $det \rho(X) = 0 $ for all $X \in \mathfrak{g}$, then how do I show that there is a vector $v \in V$ such that $\rho(X)v = 0$ for all $X \in \mathfrak{g}$? I know it involves Engel's theorem but I'm not sure how.


different interpretation of varialble as pattern

I would like someone to clarify this because I don't understand it. Here is a sample code, that tests an argument if it is numeric or not (integer) #/bin/env bash pattern="^[+|-]?[0-9]+$" [[ "$1" =~ "$pattern" ]] && echo "1:number" || echo "1:NOT number" [[ "$1" =~ $pattern ]] && echo "1:number" || echo "1:NOT number"  it is advisable to quote always the variables, but here, if you make the test with this simple script with various inputs, you will see that if you enter a number, the quoted pattern variable returns an erroneous result (first test) Why is that? thanks in advance for anyone who will take the trouble to explain this to me. Finally, sorry if that is already answered but I haven't found that particular one.


Is everyone in favor of the new "everyone can edit" idea? Is this really such a good idea?

As  and described in :      [The team is] planning to open the floodgates and allow everybody to submit content edits on posts   Am I the only one who sees this undesirable? In fact, the more I think about it the more I think it has the possibility to be a really bad idea.   I think that, to provide good edits, you must have a good idea of how the site works. I am very afraid that if you give everyone the power to edit, we'll get a lot of low quality edits. The /review link was just added to help weed out low quality questions and answers... if there's a need for such a facility for questions and answers, why do we believe that edits will be much different?  I understand that these edits will have to be approved by the community:     2 Users with N reputation will have to approve each edit. There may be a capped reputation incentive (at the moment we are thinking you can get up to 1000 points 2 at a time for good edits) – waffles♦ yesterday   But I think that this potentially doubles the work for people (like myself) who like to edit. Now, instead of just doing the edits ourselves, we have to review someone else's edits and it now takes two users to approve the edit another user made, so what could previously have been done with one user now takes three.  There's another consequence to this:     @Robert ... this helps fight information rot... so many old questions need TLC. pending edit will block further edits and be actionable inline. – waffles♦ 23 hours ago   So, if I understand that correctly, that means that if some low-rep user makes a bad edit, A higher rep user can't correct it until a second higher rep user concurs the first edit was bad?  Or even if a low rep user makes a small, good edit, a higher rep user can't make a second edit until the first one is approved? I foresee all sorts of problems here.  As it stands, reaching 2,000 reputation is a great milestone on the sites. It means you have proven yourself and, most likely, you know the flow of the sites and what's good and what needs work. Congratulations, you now have the power to edit and make these sites you clearly love a better place. I think that giving editing powers to everyone greatly diminishes the privilege of being able to edit at 2k, and I think that's a bad thing.  Am I the only one who feels this way?  Is the new "everyone can edit" feature set in stone or do we, the community, have any say?


If I change my name spelling from S to Z in passport will my US visit Visa still be valid

I want to change the spelling of my first name just 1 alphabet From S to Z . Will I be able to travel to US on my US visit Visa valid for 10 years


update firefox to firefoxx 57 on ubuntu 16.04 LTS

How do I update firefox on ubuntu 16.04 LTS please help


Could you help me to prove the following: If $M$ is a transitive class such that $Def(M)\subseteq M$, then $On^M =On$ (only using this assumptions)?


Why could the dwarves only enter Erebor with the secret passage?

Please bear with me as I've never read any of the LOTR books or the Hobbit, only seen the movies so far...  But when the sunlight fades and the dwarves think they've lost their only chance to enter Erebor using the secret passage and the key, they turn around to head home. Why is it that the dwarves would be unable to enter Erebor the way they did years ago, using regular doors to get inside? I'm assuming that's how they entered Erebor years ago?


Mac keyboard - lopsided power button symbol

There is this lopsided power button symbol in the AppCode (XCode replacement) keymap.  Any long time Mac users know which button it refers to?


Simple Continued Fraction of the Natural Numbers

According to  the continued fraction $[0, 1, 2, 3, 4...]$ is equal to $\frac{I_1(2)}{I_0(2)} \approx 0.697774657964...$, where $I_n$ is the Modified Bessel Function of the First Type.  This is rather surprising to me, I can't think of a good reason why Bessel Functions ought to be involved.  Why is this the case?


Error: java.lang.IllegalStateException: failed to create a child event loop how to resolve?

"Error: java.lang.IllegalStateException: Failed to create a child event loop" but I have a different antivirus from the ones you guys have been mentioning on all the other questions. I am using Quick Heal total security, does this affect anything because also some other games of mine are not working. Please help.


Show that the integral of absolute value of $f$ exists if $f$ is integrable.

Let $f$ be a real-valued function on $A$ in $E^n$. Show that is $∫_Af$ exists, then so does $∫_A|f|$.   I have been given an outline of what I need to do, however, I have been unable to actually formulate it into a rigorous proof. Here is the outline:   By definition, Riemann integrable functions are bounded. Note that for every partition $P$ and every cell $c$ in $P$, $\sup_c|f|−\inf_c|f|⩽\sup_c f−\inf_c f$ hence $U(|f|,P)−L(|f|,P)⩽U(f,P)−L(f,P)$, this should show that $|f|$ is Riemann integrable.   EDIT: The hint above was given .


Disable window grouping in the Dock on Ubuntu 18.04

Is there any way in Ubuntu 18.04 that windows of the same application can be opened with each window having its own icon in the Dock, i.e. if you open Firefox twice that makes two separate Firefox icons in the Dock and not a single Firefox icon with little black triangle(s) indicating that there are multiple Firefox windows open at the same time?


Can a confidence interval straddle the zero mark?

From the section on  in onlinestatbook:     Whenever an effect is significant, all values in the confidence interval will be on the same side of zero (either all positive or all negative).   Why? Can't a confidence interval be positioned both sides of the zero? Say, can't its range be [-12; +12]?


How to draw line pointing in compass bearing direction from point shapefile?

I captured waypoint data in the field including the compass azimuth when looking at some summits.   I want to use these waypoints, that I have now in Shapefile format, to draw line shapefiles that point in the compass azimuth that I defined for each waypoint.  Do you know an elegant solution for this problem?


Why is ‘Earth’ often spelt with a lowercase e, even when referring to the planet?

The word earth has several meanings; the most central one is ‘soil, dirt’, that thing we walk on when we’re outside. It’s also used as a name for the planet we live on.  The  for this sense has:     (also Earth)   The planet on which we live; the world   Note the word also: the entry is lowercase, and this sense, in which it functions as a proper noun, also appears capitalised.  But proper nouns are as a rule always capitalised. Mars, Pluto, Venus, and all the other planet names in our solar system are always capitalised.  The first two of the following examples of lowercase earth are from the King James Bible and show that this isn’t a new thing; it’s been like this for a long time:  , Authorized (King James) Version (AKJV)        Dead things are formed from under the waters,   and the inhabitants thereof.   Hell is naked before him,   and destruction hath no covering.   He stretcheth out the north over the empty place,   and hangeth the earth upon nothing.   He bindeth up the waters in his thick clouds;   and the cloud is not rent under them.   He holdeth back the face of his throne,   and spreadeth his cloud upon it.   He hath compassed the waters with bounds,   until the day and night come to an end.   The pillars of heaven tremble   and are astonished at his reproof.   He divideth the sea with his power,   and by his understanding he smiteth through the proud.   By his spirit he hath garnished the heavens;   his hand hath formed the crooked serpent.        , Authorized (King James) Version (AKJV)        The earth is the Lᴏʀᴅ’s, and the fulness thereof;   the world, and they that dwell therein.   For he hath founded it upon the seas,   and established it upon the floods.   Who shall ascend into the hill of the Lᴏʀᴅ?   or who shall stand in his holy place?        , Folio 1, 1623     The Lunaticke, the Louer, and the Poet,   Are of imagination all compact.   One sees more diuels then vaste hell can hold;   That is the mad man. The Louer, all as franticke,   Sees Helens beauty in a brow of Egipt.   The Poets eye in a fine frenzy rolling, doth glance   From heauen to earth, from earth to heauen.     , 2011     What makes earth feel like hell is our expectation that it should feel like heaven.     But why is the Earth’s name so different from the other planets’ names? Why is this proper noun so inconsistently capitalised in English?


I ran a full backup on SQL server 2008, but the transaction log stayed in tact. I though a full backup would make a new transaction log. What do I need to do to get my trn to a normal size?


Joining shapefiles is a relatively straightforward proess in QGIS using 'add vector join' in the layer properties menu. I can add a csv file as a vector layer, as well as a shapefile, and join the two using a common field.   I would like to do a similar join using pyQGIS, however I can't seem to find any documentation on how to go about this. Is this possible to do programmatically using pyQGIS with 'add vector join' or the older 'Join by Attributes'? Or, alternately, might there be any other Python modules that might be able to merge a csv with a shapefile before loading as a map layer with pyQGIS?


Index like layout with dates instead of page numbers

I am trying to improve upon this, which is just really horrible I think.  I want the sorted grouped index like layout, but it seems to be quite a fight to get rid of the page numbers which are kind of meaningless in this case, since I just want an index that gives the persons name, and a date associated with them in a kind of book of anniversaries.  \documentclass[twoside, 12pt]{book} \RequirePackage[a5paper,includehead,top=0.5in,inner=0.75in,outer=0.5in,bottom=0.5in]{geometry}   \usepackage{imakeidx}  % this hides the commar \begin{filecontents*}{necrology-book.ist} delim_0 " " delim_1 " " delim_2 " " \end{filecontents*}  \makeindex[name=persons,title={Table of Names in Alphabetical Order}, options=-s necrology-book] \def\todayentrydate{} \usepackage[]{idxlayout}  \newcommand*{\nop}[1]{} % this eats pages numbers  \makeatletter \renewcommand{\index}[2][]{     \imki@wrindexentry{#1}{#2 \todayentrydate|nop}{0} } \makeatother  \begin{document}     \def\todayentrydate{2000 May 19}      \index[persons]{Member!Joe Blow}     Joe Blow did a lot of nice stuff.      \index[persons]{Boss!Jane Doe}     Jane Doe was the boss.      \printindex[persons] \end{document}


What is the irreducible set of fundamental principles of Special Relativity?

This is something that I have been pondering for some time. The fundamental principles of special relativity are usually presented as forming a twofold:   There is no absolute reference frame of inertia, i.e. the laws of physics do not depend on the frame of reference.  The speed of light is a constant in every reference frame.    To me, it always felt like the second one might actually be regarded as a consequence of the first one. That is, the propagation of light being an electromagnetic phenomenon, its physical description ought not to depend on the reference frame. Thus, the speed of light should be a constant.   Yet, once I get it written down, this does not seem right either.  As, what we call the speed of light, is really the speed of any massless particle, its invariability should not really depend on its electromagnetic nature.   Is there not a way to derive the fact that all massless particles travel at the speed of light in every reference frames from principle 1 only?  Any thought?


Sometimes I need to quote some larger blocks of code. Pasting that from an IDE, I have to add four spaces at the beginning of every line to get the text formatted as code.  That is a little bit annoying, if I have to add those foure spaces for a larger amount of lines of code.  Is there an easyier way to format blocks of text as code. (Except for using pastebin and linking it ;))  Thanks in advance


Preserve list values during list-to-set conversion in Python

When one converts a list to a set in Python using the set() function, Python tries to simplify the set by removing repeated values from the list, as in the following example.  In [1]: list = [1,4,1]  In [2]: list Out[2]: [1, 4, 1]  In [3]: set = set(list)  In [4]: set Out[4]: {1, 4}   This is inconvenient when using sets to calculate properties of the list and converting back, as in the following vector subtraction example.  In [1]: a = [1,1,1]  In [2]: a Out[2]: [1, 1, 1]  In [3]: b = [1,2,3]  In [4]: b Out[4]: [1, 2, 3]  In [5]: list( set(a) - set(b) ) Out[5]: []   Clearly something went wrong: we were expecting the operation {1-1, 1-2, 1-3} = {0, -1, -2}. Instead, we have the following stored values.  In [6]: set(a) Out[6]: {1}  In [7]: set(b) Out[7]: {1, 2, 3}   This means we are calculating {1-1, ?-2, ?-3} = ?, which cannot be done.  Is there a way to retain the structure and values of a list when converting to a set in order to avoid this problem?  Clearly I am not talking about subtracting lists: I am talking about subtracting sets.


Prove that the product of four consecutive positive integers plus one is a perfect square

I need to prove the following, but I am not able to do it. This is not homework, nor something related to research, but rather something that came up in preparation for an exam.     If $n = 1 + m$, where $m$ is the product of four consecutive positive   integers, prove that $n$ is a perfect square.   Now since $m = p(p+1)(p+2)(p+3)$;     $p = 0, n = 1$ - Perfect Square      $p = 1, n = 25$ - Perfect Square      $p = 2, n = 121$ - Perfect Square   Is there any way to prove the above without induction? My approach was to expand $m = p(p+1)(p+2)(p+3)$ into a 4th degree equation, and then try proving that $n = m + 1$ is a perfect square, but I wasn't able to do it. Any idea if it is possible?


When it's OK to omit "where?" For example, is it OK to omit it in the following sentence?     This is the one of the few places (where) you can breathe real air.   In which situations one's not allowed to do this?


Sentence structure of "It is time we found out"

I've heard in a lot of movies they use this format :  "It is time we found out"  Now I would like to know if the sentence " It is time we find out " incorrect and why we are using a past tense in the first place although the action has not taken place yet.


Valid visa on old passport, one time going to Canada

I am Indian passport holder, i have Canada visa stamped on old passport, as per PoE letter mentioned I need to apply for visa again if have new passport. Please advise


Prove a real $f$ is injective if for all open sets $U$ in $\mathbb{R}$, $f(U)$ is open.

Question  Let $f:\mathbb{R}\rightarrow\mathbb{R}$ be a continuous function such that for all open sets $U$ in $\mathbb{R}$, $f(U)$ is open. Prove that $f$ is injective.  My proof  Suppose $f$ is not injective. Then there exists $x, y\in \mathbb{R}$ such that $f(x) = f(y)$ but $x\neq y$. WLOG assume $x<y$. Then $d_{\mathbb{R}}(x,y) = |x-y|>0$. So $(x,y)$ is open and non-empty. Let this open set be $U$.  Suppose that, for all $z\in U$, $f(z) = f(x) = f(y)$. Then $f(U)$ is a singleton set, not open, a contradiction.  So suppose that there exists at least one $z\in U$ such that, WLOG, $f(z)>f(x)=f(y)$. Since $f$ is continuous, and $[x,y]$ compact, $f([x,y])$ compact, closed, (connected?) therefore there exists $\alpha\in[x,y]$ such that $f(\alpha) = \sup f([x,y])$ (connected?). By assumption $f(\alpha)\geq f(z)>f(x)=f(y)$, so clearly $\alpha\in U$. But since $f(\alpha)$ is an upper bound of $f(U)$, for all $\epsilon>0$, $(\alpha-\epsilon, \alpha + \epsilon)$ is not a subset of $f(U)$, despite $\alpha\in U$, so $f(U)$ not open, a contradiction. Other cases are handled similarly.  My questions  Not sure if I need connectedness (as in I know intervals are connected but I can't tell if it's crucial for the proof) or completeness of $\mathbb{R}$, and whether this proof is correct.


Does $\lim_{x \to 0+} \left(x\lfloor \frac{a}{x} \rfloor\right)=a?$   I'm going to say this statement is false, and try to use the properties of limits  $$\lim_{x \to 0+} \left(x\lfloor \frac{a}{x} \rfloor\right)=\lim_{x \to 0+} x.\lim_{x \to 0+}\lfloor \frac{a}{x}\rfloor$$ =$0.\infty$ which is undefined.  Or is it $\infty $ because x ends up being a little bigger than 0?


I was given this $4$ by $4$ determinant  $$ \begin{vmatrix} x & a & a & a \\ a & x & a & a \\ a & a & x & a \\ a & a & a & x  \end{vmatrix}  = 0 $$  Clearly one of the answers is $x=a,$ how do i find the other answer?   I've tried splitting it into $4$  "$3$ by $3$" determinants but that didnt work well...


Windows installer for Ubuntu not available anymore?

In my Windows 8, I am trying to install Ubuntu in a new partition I´ve made. I am following a tutorial, and it says that I can get the Windows Installer from   However, the installer is not there anymore.  Is it possible to install Ubuntu with this installer from Windows 8 or this is not possible anymore?  Thanks.


Why is it more natural to say "when I had opened the windows, I sat down and had a cup of tea" than "when I opened...?

The book Practical English Usage by Michael Swan says that the sentence     When I had opened the windows, I sat down and had a cup of tea.    is more natural than     When I opened the windows, I sat down and had a cup of tea.   because the first action is separate from the second. But I cannot see how it is separate. The same is with     When I opened the window, the cat jumped out.      When I had opened the window, the cat jumped out.    In this pair of sentences, however, it says that the first one is more natural. And it also says that it should be     When I had answered my emails, I did some gardening.   not     When I answered my emails, I did some gardening.   Why? Help me please to see the difference.


Consider  proof of the triple product identity. In this proof, they state that $\lambda $ does not depened on any choice of three vectors $A,B,C$. I don't understand why is that true? I'll appreciate any help!


Find all integers n > 1 so that n, n + 2, n + 4 are all prime.  Have no idea what to do, anyone know how to solve this one?


Two calls to cycle, only one appears to work. Why?

I'm curious by the two tikzpictures below behave differently.  \documentclass{article} \usepackage{tikz}   \begin{document}  \begin{tikzpicture}    \node[circle,draw,inner sep=2pt] (t1)  at  (0,0)   {};   \node[circle,draw,inner sep=2pt] (t2)  at  (1,0.5) {};   \node[circle,draw,inner sep=2pt] (t3)  at  (3,4)   {};   \draw[color=red,line width=4pt] (t1) -- (t2) -- (t3) -- cycle; \end{tikzpicture} \hspace*{\fill} versus \hspace*{\fill} \begin{tikzpicture}    \draw[color=blue,line width=4pt] (0,0) -- (1,0.5) -- (3,4) -- cycle; \end{tikzpicture}  \end{document}


What makes one wizard more powerful than another?

In the Harry Potter universe, a recurring theme is that some wizards are more powerful than others. For instance, Voldemort is considered to be an immensely powerful wizard, and so is Dumbledore.  However, I struggle to see how exactly this power could be quantified, or what exactly it would mean for a wizard to be more powerful than another.  Do any of the books mention how power is quantified? Or how a wizard becomes more powerful?


Making Windows Boot Loader the default instead of Grub 2

So basically before Ubuntu 13.04 I was running 12.10. I had Windows Boot Loader the default. If I chose to boot to Ubuntu, it would go into grub, but grub was set to 0 seconds so it would basically skip grub and just go straight into ubuntu.  Now, after upgrading, Grub is back. I used EasyBCD to get everything correct on the Windows side but now I cannot figure out for my life how to get grub to appear AFTER Windows Boot Loader.  I tried to go into the grub config and change the default to 4, which is the line where Windows is on. All that did was highlight Windows on start instead of going straight into the Windows Boot Loader first.  I also tried to use Boot Repair to change "OS to boot to by default" to Windows, which also did not work.  Can someone please help me get it back to how it was? I've been trying for hours.


How can I deal with unwanted system applications without rooting?

There are a lot of system apps in my mobile that I do not use, and have no intention of ever using. I know that is is possible to , but is it possible without root?  Are there any non-root options that will help me to deal with unwanted system applications?


When I hit 2000+ reputation, I can no longer suggest edits.  It seems to be the general view that forced edits are strictly better (for the editor) than suggested edits, and as such once you can do it, you no longer need to suggest.  I disagree. I've had times where I've wanted to make a significant change to a question, but would rather run the edit by the asker first in case I was actually out to lunch on what the asker wanted.  What would be the downside of adding a "Make this edit a suggestion" button when making an edit? I don't care about the 2 rep either, just the ability to suggest.


How to draw tangent vectors and component vectors on a curve

I am searching for a way to have a figure drawn using LaTeX. I am aware of some packages TikZ and PSTricks that could accomplish this, and have been tinkering around with them recently but do not have enough skill set at the moment to accomplish this drawing. Is there a way someone can accomplish the drawing, preferably with TikZ but could be any package your most comfortable with in a reduced amount of coding (non-advanced) to where I could understand what is happening from the code to the picture. If this is not possible, then I will have to study the package more and work with it until I understand the method (code) to create the graphic. The drawing is below.  Note: This is a rough sketch. The optimal output would have smooth quadratic curves and all quantities are vectors.


The  has been used to ask questions about:        etc.   Lots of questions use the tag only to indicate "my question is about code" which would apply to 90% of the question on SO.   I suggest we burninate it.


Prevent fluid to flow through the walls of an obstacle

I am trying to make a fluid simulation flow out of the orbits of this skull (I hope this doesn't violate any guidelines), as a little experiment / practice with fluid simulation.    The result is not too bad, but the liquid flows through the walls of the skull, on the left/right temples as well as the nasal cavities.  I have read that in order to prevent that from happening, thickening the obstacle was a good solution. However, when I thicken the skull I get a very crude (albeit somewhat funny) result:     Ideally, I would like the fluid simulation to be not only realistic, but the container / obstacle as well!  Also, for some reason, I feel that the liquid should flow out a little sooner than it does. I'm not really sure how to troubleshoot fluid simulations, and the questions I have found so far didn't help.  Blend:


I have a command that I want to have run again automatically each time it terminates, so I ran something like this:  while [ 1 ]; do COMMAND; done;   but if I can't stop the loop with Ctrl-c as that just kills COMMAND and not the entire loop.  How would I achieve something similar but which I can stop without having to close the terminal?


Count Subsets of size less than equal to k

This is a variation of question asked on this site before.  Consider a set with $𝑎_1$ 'distinct' 1s, $𝑎_2$ 'distinct' 2s, ... , $𝑎_𝑛$ 'distinct' ns. You have $𝑎_1+1$ choices for the 1s (including the option of none of them being chosen) and similarly for the other elements. The total number of subsets is therefore  $(𝑎_1+1)(𝑎_2+2)...(𝑎_𝑛+1)$  Now how to find the number of subsets with size $\leq $ 'k'.


Generate (pseudo-) base-26 number representation (similar to Excel column names)

I want to generate consecutive alphabetic strings from an integer index, which serve as automatic object names. I know how to generate base-26 from int32, which requires 7 digits. But this is not exactly what I want because for low indices I would still get 7 digits where I would like to get short names starting with a, b, c...  Suppressing leading zeros (a's) is also not an option because then the transition from one-digit to two-digit names is irregular:  a,..., z, ba, bb, bc,...,zy, zz, baa, bab,...  like in this code:      public static string autoVarName(int i)     {         string result = "";          do         {             int j = i % 26;             result = (char)('a'+j) + result;             i /= 26;         }         while (i>0);          return result;     }   What I would like to get is rather similar to how Excel generates column names:  a,..., z, aa, ab, ac,...,zy, zz, aaa, aab,...  I can't seem to be able to wrap my head around how to do this. Any search has just brought up true base-26 numbers. Does anyone know how to modify the above code to get what I want?


IndentationError: unindent does not match any outer indentation level (request module)

import requests import json   session = requests.session()  headers = {     'Accept-Encoding': 'gzip, deflate, br',     'Accept-Language': 'en-US,en;q=0.9',     'Upgrade-Insecure-Requests': '1',     'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.167 Safari/537.36',     'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8', }   def ATCbuilder():     global session     response = session.get("https://www.glidesoftwares.com/products.json", headers=headers)     data = json.loads(response.text)     stock = data['products'][0]['variants'][0]['available']     variant = data['products'][0]['variants'][0]['id']     atclink = 'https://www.glidesoftwares.com/cart/{}:1'.format(variant)     print(atclink)      IndentationError: unindent does not match any outer indentation level   why??


I need to detect Image format to save a image like image1.jpg, image2.gif, but i only have a stream, and i do not know the image format(gif, jpeg, png, etc)  Is there a way to detect imageformat from a stream?


Python 3.6.1 Update System (IDLE, console..)

I have installed python3.6.1 I want to make it the default for the system when python is called. I also want IDLE to open to that version.   After installing python3.6.1:  Requirement already up-to-date: setuptools in /usr/local/lib/python3.6/site-packages Requirement already up-to-date: pip in /usr/local/lib/python3.6/site-packages   After running alias python=python3  - python runs 3.5.2 - IDLE3 also runs 3.5.2  /usr/bin $ ls | grep python dh_python2 dh_python3 idle-python2.7 idle-python3.5 python python2 python2.7 python2.7-config python2-config python3 python3.5 python3.5m python3m python-config x86_64-linux-gnu-python2.7-config x86_64-linux-gnu-python-config


How to fix a terminal after a binary file has been dumped inside it?

After having played with curl, a binary file has been dumped inside my terminal. For example, the horizontal lines: ─ I use to format my prompt are replaced by 'q', and it can be much worse.   Why does this happen, and how can you fix it without having to close the terminal ?


Hope someone can help me. I want to add many records into a table from a statement I build. For example:  ProjectSQL = "INSERT ALL " For each Proj in split(Request.Form("ShowProjects"))   ProjectSQL = ProjectSQL & "  INTO proj_tbl (proj_id) VALUES ('" & Proj & "') " Next db.Execute ProjectSQL  The SQL is: INSERT ALL    INTO proj_tbl (proj_id) VALUES ('45)    INTO proj_tbl (proj_id) VALUES ('56)    INTO proj_tbl (proj_id) VALUES ('92)     Oracle SQL wants a Select statement at the end.   I don't want to hammer the database with each loop because there could be many records to add (and the dba will cut off my balls).  Can someone tell me how to do this?  Thanks.


How do I get the saved wifi passwords from my android kitkat phone. It is rooted and I have the adb tool. How do I do this? I know that I can download stuff to do it but I do not want to download any application as my device has no more storage. What other options do I have? I have looked around but I do not know what to do.


Marketing Cloud Landing Page: pass values to a data extension

I created a landing page which auto-populates first name, last name and the email. Now I need to pass these 3 along with what radio buttons are selected by the user to a data extension other than the sent one.   I guess is something to do with the submit button for the radio buttons form but how? I have to tell somehow which data extension and what fields/values to add but I don't know how.  Is there any easy way to do that?  Thanks, VD


How to find directories (or files, etc.) based on an expression that applies to the file pathname

I'm trying to find/extract directories based on an expression that applies to the file path. For example, I used the command: find . -type d -links 2  To get a list of directories that looks something like this: ./foo/ABC/W ./foo/ABC/X ./foo/ABC/Y ./foo/ABC/Z ./foo/BCD/W ./foo/BCD/X ./foo/BCD/Y ./foo/BCD/Z ./foo/CDE/W ./foo/CDE/X ./foo/CDE/Y ./foo/CDE/Z ./bar/CDE/V ./bar/CDE/Q ./bar/BCD/V ./bar/BCD/Q ./bar/ABC/V ./bar/ABC/Q  I'm wondering how to take this list, and extract only filepaths containing say, "CDE" in them: ./foo/CDE/W ./foo/CDE/X ./foo/CDE/Y ./foo/CDE/Z ./bar/CDE/V ./bar/CDE/Q  This is what I've tried so far, which outputs nothing when I try it: find . -type d -links 2 -name "CDE" -print


Is there another way to solve this integral? (A bit long for my method)


When constructor raises, should/could I call destructor ? Possibly on attributes?

I have a class DLXMatrix with constructor delegation. it as a simple constructor: DLXMatrix::DLXMatrix(int nb_col);  And another more advanced one which is currently: DLXMatrix::DLXMatrix(int nb_col, const std::vector<std::vector<int>> &rows)     : DLXMatrix(nb_col) {     for (const auto &r : rows)   // TODO : cleanup if an exception is raised         add_row_sparse(r); }  However, depending on the input, the call to add_row_sparse(r) may raise a std::out_of_range exception. I understand that if I simply let the exception pass, I'll be leaking memory in the various attribute (typically one of the attribute is a vector)... Note that, at this stage, this already points to a valid objects since, by delegation, it was constructed by another constructor. Therefore, I'm tempted to call the destructor as in DLXMatrix::DLXMatrix(int nb_col, const std::vector<std::vector<int>> &rows)     : DLXMatrix(nb_col) {     try {         for (const auto &r : rows)             add_row_sparse(r);     } catch (std::out_of_range e) {         this->~DLXMatrix();         throw std::out_of_range(e);     } }   Unfortunately this segfaults. Am I totally out of my mind ? Should I call the destructors only on the  attributes.


A non abelian group of order 12 as a Galois group

Does there exist a polynomial over the rational Field $\mathbb Q$ whose Galois group is a non abelian group of order 12? If we consider the cyclotomic polynomial containing the primitive 13th roots of unity, its Galois group turns out to be the cyclic group of order 12. But the question wants me to find a polynomial for which we get a non abelian group of order 12 as its Galois group, if it exists. Is it possible? Please give one example. Thank you for the help.


Do I need to delete a post myself for the peer pressure badge?

I asked a question, which was poorly received. At the time of writing I wasn't thinking straight so I ended up asking a primarily opinion based question. Usually when this happens I just let the question sit there with its downvotes. That's when I noticed the peer pressure badge. I tried deleting the question, but it wouldn't let me since it had an upvoted answer. So now if I'd flag it for moderation asking for it to be deleted, will it earn me the peer pressure badge? Because I do feel pressured to get this post deleted!


Tips to design an analog automatic switch selection circuit for CT (Current Transformer)

I've been beating my brains out in a circuit I attached a figure below. Well I have 2 current transformers(CT). First from current on secondary 100A:50mA and second from voltage on secondary 100A:1V. In my first CT, I need to add burden resistance to measure current on secondary and add an offset of +2.5V because of my ADS1115 (16 bit ADC) Im going to read on its analog input, however for second CT I just need to add offset. About this circuit its done and you can find more info to get update about my following problem:     I want to know if is possible to have 1 KRE 2 connector on the board im going to design and when I connect 1º CT (100A:50mA) on my KRE 2 connector I should select its circuit (with burden resistance) and then go to my A0 ADS1115 input while my 2ºCT keep disconnect of course. However, if I wanna plug my 2ºCT on my KRE 2 connector, I need to switch for its circuit and then go to ADS1115. Signal track for ADS gonna have 2.5V because my offset. I just would like to know how to do it automatically if possible just using analog components. Any doubt, let me know  Thanks


I have an annoying issue, I can detect mobile devices ( with wp_is_mobile() ) on WordPress.  But I want to detect only Tablet devices. How can I do it?


run bash script from bash script preserve directory

I have 2 bash scripts: tmp/a.sh #!/bin/bash cd frontend yarn install yarn build  docker-compose build docker-compose up -d  b.sh #!/bin/bash ./tmp/a.sh  I want to launch a.sh from b.sh but when ls runs, it prints directory of b.sh(parent process). How do I preserve its path when a.sh runs?


Why unix mv program doesn't need -R (recursive) option for directories but cp does need it?

I always get messed up when need to use cp or mv: "do I need -R option when working with dir?" In GNU coreutils cp does need -R and mv doesn't.   I just can not find any reason why cp needs -R option for copying dirs and mv doesn't. I think that cping dirs without -R (but behaving recursively like there's -R and like mv does) wouldn't cause any problems except breaking someone's habits on using the tool.  Do you know any explanation? May be it had a reason long time ago?    Additional question: why don't coreutils developers make cp copy dirs recursively by default?


How to apply style to a div which is inside an iframe of the page?

I have been working with css and html for about 6 months. I am confused: why can't I apply styles to a div which is inside an iframe of my current page?


If $V$ is a $KG$-Module whose only endomorphisms are scalar multiples of $\operatorname{id}_V$, then $V$ is irreducible

Let $K$ be a field, $G$ a finite group and $V$ a finite-dimensional $KG$-module. Consider the endomorphisms of $V$, i.e. linear mappings $\phi : V \rightarrow V$ such that $g\phi(v) = \phi(gv)$ for all $g \in G, v \in V$. Now, if the characteristic $\operatorname{char} K$ is coprime to $|G|$ (or $0$), then by Maschke's theorem, we can decompose $V$ into a direct sum of irreducible $KG$-Modules, and easily show the following property: if $V$ isn't irreducible (i.e. it is a direct sum of at least 2 summands), it has an endomorphism that is not simply a scalar multiple of $\operatorname{id}_V$: we can permute the summands, which is clearly an endomorphism (even an automorphism!) of $V$. Equivalently, if the only endomorphisms of $V$ are scalar multiples of $\operatorname{id}_V$, then $V$ is irreducible. My question is now, whether this property holds in the case that $\operatorname{char} K$ and $|G|$ share some divisor. Since Maschke can fail in this case, my intuition would be that this shouldn't hold, but I cannot seem to construct a counterexample. For an "easy" example, I thought about using $V = \mathbb{F}_2^2$ over $K = \mathbb{F}_2$. To ensure that the only endomorphisms of $V$ are scalar multiples of $\operatorname{id}$, $G$ should at least contains elements that act on $V$ like the matrices $\begin{pmatrix} 0 & 1 \\ 1 & 0 \end{pmatrix}$ and  $\begin{pmatrix} 1 & 1 \\ 0 & 1 \end{pmatrix}$, since the only matrices that commute with both of these are the identity and the zero-matrix. However, this also has the consequence that $V$ has no non-zero $KG$-subspaces. If the property does hold in this case as well, how would I go about proving this?


Returns in java function parameters in easy way

I can't get return in function's aaa parameters a and b like:  public static void aaa( boolean a , Integer b) {     a=true;     b =2; } public static void main(String[] args) {      boolean a=false;     int b=1;     aaa(a,b);     lg.info("{} {}",a,b ); }   I will get same false 1 in output.  Each time when I need to have more than one return in function I must create class-holder:  public static class BoolAndIntHolder {     boolean a ;      Integer b ; }   public static void aa(BoolAndIntHolder s) {     s.a =true;     s.b =2; }  public static void main(String[] args) {     BoolAndIntHolder s= new BoolAndIntHolder();     s.a = false;     s.b=1;     aa(s);     lg.info("{} {}",s.a,s.b ); }   This gives true 2 in output as wanted.  But this looks so horrible each time to create different class holders. Is here any hacks how to write code in such situation in less dramatic way?   UPD  Looks like I must use data class'es in order to return several values since it is less complicated way. Solution bellow looks ugly for me. Is it possible to solve task in more elegant way?  enum TRUE_FALSE_ERR {TRUE,FALSE,ERR};  static TRUE_FALSE_ERR aaa() {     if (isConnected())     {         if getResult() return TRUE_FALSE_ERR.TRUE else              return TRUE_FALSE_ERR.FALSE;     } else     return TRUE_FALSE_ERR.ERR; }   public static void main(String[] args) {     switch (aaa()) {     case ERR:         lg.info("ERR");         break;     case TRUE:         lg.info("TRUE");         break;     case FALSE:         lg.info("FALSE");         break;     default : lg.info("default");      } }


Installing WebStorm, not appearing in programs?

I am new to Linux. I want to install webstorm.   I have the files and run the .sh file in terminal which launches the software.  However it seems I always have to do this, I cant run it without having to launch it via terminal and I don't have any entry for it when I search my programs.  Is there no way to permanently install it like all other software?


Is the function $f(x) = \sqrt{x^{2} - 9}$ continuous at $x = 3$?  I tried to check by solving each requirement for continuity, which are the following:  The limit at the point must exist; The function at the point must exist; The limit at the point must be equal to the function at the point.  The second requirement can be easily checked as 'satisfied' as $f(3) = 0$. Thus, I only need to check if the first requirement is satisfied. I started by solving for the left-hand limit as follows: \[L^{-} = \lim_{x \to 3^{-}}\left[\sqrt{x^{2} - 9}\right]\] Then, I eventually got $L^{-}$ to be zero.  My question is this: Is it correct to rewrite the problem by substituting $x = 3 - a$, where $a \geqslant 0$, then solving for the limit as $a$ approaches zero?  Edit: This is a question about solving one-sided limits, and not about the continuity of the square root function.


Is there a way to run the "Wireless Network Connection" applet in vb.net or from the shell?

I know that I can open the "Network Connections" control panel location by executing "ncpa.cpl", but that is not good enough for my application.  I want to actually open the list of available networks (the equivalent of clicking on the "Wireless Network Connection" option on the "Network Connections" page.  I have searched high and low for a solution, and I have found nothing.  The only reason I even need to do this is because windows doesn't update the available networks in a timely fashion unless you open the "Wireless Network Connection" list.  I can sit here and use "netsh wlan show networks" all day and it will not detect new networks until I simply click on the "Wireless Network Connection".  I don't even have to hit the refresh button - I only bring up the native list.  I have had mixed results by disconnecting (netsh wlan disconnect) and waiting for several minutes, but this is unacceptable.  I'm trying to incorporate a handy feature in a VB.NET tool that will filter the available WiFi networks and allow the user to connect to one by selecting it in a listview and pressing a "connect" button.  I have the code working just fine, but I am limited by this insanely slow refresh rate.  If I simply click on the internet access applet in the tray my list will refresh, but it kind of defeats the point.  I have already done a fair bit of work to get around netsh's limitation of needing a profile to connect to a network, so this is a frustrating development.  If I can simply run the applet, even in the background, it would solve this problem.  If that's not possible, is there a service that I can refresh/restart without admin privileges that would cause windows to get an updated list?  It's kind of ridiculous that netsh does not actually update the list...  Edit:  And in case I am asking an XY problem, I just want to be able to get an accurate and current list of available WiFi networks from within a .NET application.  I'd also like to be able to connect to said network from within .NET, although my netsh "solution" does the job just fine as long as I can get an SSID.  If you could also explain to me why .NET/Java/etc higher-level languages can't provide a platform-agnostic abstraction of the network interface I would give you bonus points.  I am aware of the native API solution, but that seems to me like complete overkill for my application (and is beyond my skillset/time capabilities right now).  If there is a good tutorial/document about including small native code modules in a .NET solution I am all ears, though.  Thanks in advance


Python query.  I want to take a copy of a file, called randomfile.dat, and add a timestamp to the end of the copied file.  However, I want to keep the original file too. So in my current directory (no moving files) I would end up with: randomfile.dat randomfile.dat.201711241923 (or whatever the timestamp format is..)  Can someone advise? Anything I have tried causes me to lose the original file.


Addons Not showing up in Toolbar (Blender 2.8 Alpha)

After installing the addons in the user preferences, they don't show up anywhere in blender 2.8 except from workspace addons tab in the properties and clicking it doesnt do anything. In user preferences next to the addons list, it also says that "Upgrade to 2.8x required". Does that mean that we can't use any addons in 2.8 unless they are upgraded for 2.8 builds?


Me and two more friends bought the same game for Steam, can one of us (me in this case) download it and then send the files to my friends so they don't have to download it again?


I am trying to prove that  $A∆B⊆C$ iff $A∪C=B∪C$. I know that I am going to have to convert them to this form.... $AΔB⊆C$  is equivalent to $∀x:((x∈A∧x∉B)∨(x∉A∧x∈B))→x∈C$  and $A∪C=B∪C$ is equivalent to $∀x:(x∈A∨x∈C)↔(x∈B∨x∈C)$  How do I even go about proving this once I have written them out in set theory notation?


What is the correct way to use "neither" and "nor" in a sentence together?

Given these facts:   The tool cannot be found in the kitchen. The tool cannot be found in the bathroom.   Which is the correct sentence to represent the situation above?        I can find the tool neither in the kitchen nor in the bathroom.   I cannot find the tool neither in the kitchen nor in the bathroom.   I cannot find the tool, neither in the kitchen nor in the bathroom.


Cartoon Network show. Monster hunting. Dark theme. Monsters looked to be done by CGI

Okay so I remember almost nothing of this show. The only thing I know is that I used to watch this show on Cartoon Network and it had a hero who used a sword to fight monsters and a girl who used bow and arrows. Also, the monsters kind of looked like computer generated and there was a book and stones which were somewhat related to the story?


How to add csv file in QGIS 2.0 using Delimited Text Layer Plugin?

I used to import csv files in previous versions of QGIS using the format below, but when I upgraded to QGIS 2.0 the delimited text layer plugin was changed and I can't import the file anymore. The plugin can't also detect the x,y or long lat field unlike in previous versions. Any ideas how to add the file? Thanks      Heres what it looks in Text Editor:


Evaluate : $1+\frac{2}{6}+\frac{2\cdot 5}{6\cdot 12}+\frac{2\cdot 5\cdot 8}{6\cdot12\cdot 18}+\ldots$

Evaluate : $$1+\frac{2}{6}+\frac{2\cdot 5}{6\cdot 12}+\frac{2\cdot 5\cdot 8}{6\cdot12\cdot 18}+\ldots$$  thought: I have tried to manipulate the series so that the sum upto n terms , can be simplified. But I can't figure out any profitable result.


Is a continuous function defined on a closed interval always riemann integrable

Is a continuous function defined on a closed interval on $R$ always Riemann integrable or are there counter examples?  I'm thinking it is true because it sounds like it would always be possible to find step functions to bound it?


Google ranks for joined words ("foobar") but not separated phrase ("foo bar")

I have a business name containing two words, say Foo and Bar. The name is always stylized as "Foo Bar", but my domain name is foobar.com. The business name is very unique, so I would expect it to rank highly for both "Foo Bar" and "FooBar".  However, I rank #1 for the phrase "FooBar" but cannot get above page 3 for the phrase "Foo Bar". This problem is on Google only, Bing works fine.  What can I change to rank for the space-separated search phrase?


I recently changed the default font using dconf tool. That was ok, and after trying that font, I opened dconf again and clicked "Restore Default" button. Then the screen was unresponsive, I forced it to shutdown. Next when I tried to login, the login screen was ok, but after logging in, nothing would show up, not even launcher, terminal, folders on Desktop etc.,. Only visible things are alert box to ask me to confirm shutting down when I press power button. What might be the reason for this and what are possible solutions?  I tried the solution mentioned for the original question, but I get the error   GtkWarning: Default font does not have a family set GtkWarning: Default font does not have a positive size set   Is there any way to correct this without logging in as a new user?  Tried Solutions:     (for this, I get an error saying  ERROR unity.launcher.trashlaunchericon TrashLauncherIcon.cpp:62 Could not create file   monitor for trash uri:Operation not supported  Segmentation fault(core dumped)             (all the above links are different).  All the above solutions didn't work and one more thing that started happening is when I do  export DISPLAY=:0 ccsm   and enter UI by Ctrl+Alt+F7, it says, CompizConfig-Settings-Manager has stopped working unexpectedly.  I tried re-installing ccsm but, it says, it is already installed and it is the newest version.  OS: Ubuntu 12.04


Lighting in Minecraft/Block-esque worlds

Chaps, I'm sure we all know at a high level how Minecraft's lighting engine works. Light sources flood surrounding blocks with light, which themselves flood their neighbors and so forth. However, I believe this doesn't fully explain the picture. For example, consider this image:     Clearly the vertical faces of the sand are lower light level than the horizontal faces. With the left faces being even darker than the front faces. I'm unable to see how any incarnation of the above method would produce such results - all faces are exposed to sunlight, they should all be the same brightness surely...  Does Minecraft use an additional layer of OpenGL diffuse lighting? If so, where is the light source? The Sun? What about in caves? Any insight on this would be much appreciated - Many Thanks!!!


Why do I have to double escape a dot inside a regex?

In c++11, if I want to match all txt files starting with only lower characters e.g. [a-z]+\.txt writing in regular expression syntax, why do I have to use double escape which is std::regex txt_regex("[a-z]+\\.txt");  Is there any special meaning for \. in C++?


Find the count of text files in a directory recursively

I am trying to make some code to count all text files in a directory and its sub directories. I have tried below code:  private void button1_Click_1(object sender, EventArgs e) {     FolderBrowserDialog folderBrowserDialog1 = new FolderBrowserDialog();     DialogResult result = folderBrowserDialog1.ShowDialog();     if (result == DialogResult.OK)     {         string[] files = Directory.GetFiles(folderBrowserDialog1.SelectedPath);         MessageBox.Show("Files found: " + files.Length.ToString(), "Message");     } }


Motivation behind the definition of ideal class group

Let $O$ be a Dedekind domain and $K$ its field of fractions. The set of all fractional ideals of $K$ form a group, the ideal group $J_K$ of K. The fractional principal ideals $(a) = aO, a \in K^*$, form a subgroup of the   group of ideals $J_K$, which will be denoted $P_K$. The quotient group   $$CL_K=J_K/P_K$$ is called the ideal class group of $K$.   This definition looks completely arbitary, I fail to see why the class group or the ideal class group is worth studying. So, why is the class group or ideal class group interesting? I've read that ideal class group "measures" how much unique factorization fails in a domain, but I don't understand how it does so.  This from Algebraic Number Theory by Neukirch.     The class group $C_K$ measures the expansion that takes place when we pass from numbers to ideals, whereas the unit group $O^*$ measures the contraction in the same process. This immediately raises the problem of understanding these   groups $O^*$ and $C_K$ more thoroughly.   I don't understand the above paragraph. What does it mean by  "the expansion that takes place when we pass from numbers to ideals"? And why should we even bother about such "expansion"?


Rotating phone with achievements shown shows strange things

In the Android app, I clicked the Achievements in the top bar.  When I rotated my phone, the achievements disappeared ... sort of.  It actually became transparent, so I saw my achievements and my search results at the same time.


Why do verbs go without an "S" in these cases?

Here are two examples of the word "lest":  They should fill in the hole on that playground lest anyone fall into it.  She was not ready and was worried lest anyone see her naked.   I'm wondering why there are no "s'-s added to the verbs even though the subjective is anyone, which as far as I know do require an s .  Thank you for your help! :)


In a normed space, we know that if a set is open and connected, it is path connected. Is it true for general metric space or general topological space?


Do photons lose energy due to gravitational redshift? If so, where does the lost energy go?

In the gravitational redshift, the frequency of photons radiated from some source is reduced. As the energy of a photon is given by $\hbar\omega$, if the frequency is reduced where is the lost energy?


Choosing better samples for downsampling

I'm training a classification model for highly unbalanced data where hits are pairs that have similarity of almost 1 on independent metric. Everything else are non hits. Does it make sense to pick negative samples from pairs which are at least to some extent similar?  Will it make the model more powerful?


Can I move the delete the swap partition in an existing installation?

I'm just learning best practices on partitioning. I want to move my swap partition to the right end of my disk.    Am I not breaking anything if I delete the swap? How about it being partition number 3?


Can't run a background process and other command from bash in one line: unxepected token `;'

I have a program that receives an argument and prints it every second:    ~# ./myapp 234 234 234 234 234 ...     I want to be able to run it in the background and right after a shell but it must be in one line (I don't want to explain why I need it because I don't want to make the discussion too complicated right now).    This is what I tried and the error I received:    ~# bash -c "./myapp 234 &; sh"  bash: -c: line 0: syntax error near unexpected token `;' bash: -c: line 0: `./myapp 234 &; sh'   I also tried with && as separator:    ~# bash -c "./myapp 234 & && sh"  bash: -c: line 0: syntax error near unexpected token `&&' bash: -c: line 0: `./myapp 234 & && sh'   Any idea how I can solve it?    EDIT: Thanks to @roaima. I also found a link that talks about it:


Cannot log in after migration from 16.04 to 18.04 -- opening log file fails?

After upgrading from 16.04 to 18.04 (keeping home directories, formating root) I cannot log in. After the password is accepted, gdm silently goes back to the login screen.  I can change run levels and log in there. In /var/log/syslog I find:  Fatal server error:   Cannot open log file "/home/myuser/.local/share/xort/Xorg.pid-1768.log"   ...   Unable to run X server   How is that even possible?  Checking the home folder, I note that there's a readme and some Access-Your-Private-Data.desktop; I can access neither. What happened here?


3rd conditional form ("If I had X, I would ..."?)

If I had learnt that, I would have been doing much better right now.   Is that correct? If not, how do you say it correctly?


Why didn't Voldemort put fragments of his soul into bodies like the one he used to return with, rather than inanimate objects?

So, just as the question states, what if Voldemort had thought ahead enough to put pieces of his soul into other bodies? In this way, wouldn't there simply be more than one Voldemorts at any given time?  Also, what if Voldemort never had a helper in order to assist him in returning? Then he would just a miserable fragment of a soul, wondering around. The horcruxes would guarantee him life but he would be only barely that.


I alt tabbed out of Skyrim and there's no way to tab back in

After spending an hour in character creation I needed to alt+tab. I then tried to tab back in as usual, and it just goes to a black screen. Tabbing again does nothing. How do I fix this?


Why are all light bulbs in a series circuit equally bright?

I understand that a circuit with just one bulb will be brighter than a circuit with two, because Ohm's law states that current is inversely proportional to distance, and therefore the greater resistance presented by two bulbs will cause a lower current to pass through the circuit.  The thing that I am unsure about is why all of the bulbs in a series circuit will have the current shared equally and therefore be equally bright, as my intuition would say the first bulb would receive more energy than the second, and that more than the third etc. At the risk of asking a silly question, how do the electrons 'know' how much energy to give the first bulb without having any obvious way of 'knowing' the number of bulbs / total resistance of the system?  My teacher said he thought it might have something to do with the idea that the electrons pass round the circuit repeatedly, so the charge averages in some sense, but if this is true would the first light seem brighter if the circuit was only activated for long enough for the electrons to complete a single circuit?


The if statement is not properly executing after user inputs which if-statement they want to input

package temperatureconversion; import java.util.Scanner; public static void main(String[] args) { Scanner keyboard = new Scanner(System.in); System.out.println("Please enter Conversion type: Press C for Celsius to Fahrenheit or press F     For Fahrenheit to Celsius.");   String Vctype = keyboard.next();      if (Vctype == "f" || Vctype == "F"){         System.out.println("Please enter fahrenheit");         double Vfahrenheit = keyboard.nextInt();         Vfahrenheit = (Vfahrenheit)*(9/5)+(32);             System.out.println(Vfahrenheit);     }     if (Vctype == "c" || Vctype == "C"){         System.out.println("Please enter celcius");         double Vcelcius = keyboard.nextInt();         Vcelcius = (Vcelcius - 32)*(5/9);                System.out.println(Vcelcius) ;     }           }    }   Hello guys I was wondering if anyone could help me with the above code. Basically in the output console in netbeans the program just seems to end after I hit C or F, but instead it should ask for a number then allow a number input, then calculate and finally display the calculation. It doesn't seem to be executing the if statements Where am I going wrong?


I like to create a friendly SEO web application, so I choosed Angular 6 framework Universal to render pages on server side, that's make my applications pages reachable to Google crawlers.  But even if for a small application the average page size is more than 3 MB due a bulk of code added.  So do you recommend me to use Angular framework?


$X$ compact Hausdorff space, characterize the maximal ideals of $C(X)$

I know this question has been asked before, but I think I'm very close to a new solution and wanted to know if it is a viable approach.  Let $C(X)$ be the ring of continuous functions $X \rightarrow \mathbb{C}$ where $X$ is compact Hausdorff, and let $\mathfrak M$ be a maximal ideal.  We want to show that $\mathfrak M = I_{x_0} = \{ f \in C(X) : f(x_0) = 0\}$ for some $x_0$.  For each nonempty closed set $A$, we define the ideal $I_A = \{ f \in C(X) : f(x) = 0, \forall x \in A\}$.  Clearly $A \subset B$ implies $I_B \subset I_A$ (I also need to show that $I_B \subseteq I_A$ implies $A \subseteq B$, which I haven't done yet).  We let $\mathcal S$ be the set of ideals $I_A$ which are contained in $\mathfrak M$.  An ascending chain $I_{A_i} \in \mathcal S$ corresponds to a descending chain of closed sets $A_i$, whose intersection is nonempty because $X$ is compact.  Thus the union $J$ of the chain $I_{A_i}$ is an ideal which is contained in $I_{\bigcap A_i}$ (now we have to show that $I_{\bigcap A_i} \subseteq \mathfrak M$ to show that it is an upper bound for the chain, I haven't been able to do this).  So by Zorn's Lemma, $\mathcal S$ has a maximal element $I_D$ for some nonempty closed set $D$.  Now, I just want to show that $D$ is a singleton set $\{x_0\}$; then $I_D$ is a maximal ideal contained in $\mathfrak M$, whence $I_D = \mathfrak M$.  That will finish the proof.  Edit: Assuming I can fix the holes, I finished the problem (answered below).    Current problems with the proof:   (i) Need to show that $I_B \subseteq I_A$ implies $A \subseteq B$.  (ii) Need to finish the Zorn's lemma argument by showing that $I_{\bigcap\limits_i A_i} \subseteq \mathfrak M$.  Second edit: (i) follows from the Urysohn lemma.  A compact Hausdorff space is normal.  If $x \in A$, but not in $B$, then $\{x\}$ and $B$ are disjoint closed sets, so by Urysohn there exists a continuous function $f: X \rightarrow [0,1] \subseteq \mathbb{C}$ for which $f(x) = 1$ and $f(b) = 0$ for all $b \in B$.  Thus $f \in I_B$, but not in $I_A$.  So there is only one hole in the proof left.    Third edit: (ii) also follows from the Urysohn lemma. See the edited answer for details.


Ignore the rep change caused by placing bounties in the achievements reputation indicator

This idea was inspired by . Quick summary of that post: OP placed a bounty, decreasing rep by 500. After that, new rep increases were not shown by the top bar achievements indicator icon (until the OP clicked on it to view the details, which reset the calculation).  Apparently, the indicator is currently set up to show the difference between your current rep and what your rep was at the last time you clicked the indicator to view the details, but only if that number is positive (personally, I think we should , but that's another story). So -500 rep from a bounty obscures all rep increases until 500 more rep is gained (or until the calculation is reset).  So my proposal is simply to adjust the calculation to ignore the effect of placing bounties. The rep change from placing bounties is really just an artifact of bookkeeping, and thus it doesn't make sense to even take into account for reporting positive rep changes in the achievements indicator.  Implementation of course depends on how the system is set up, but it seems like it would be a relatively straightforward task, however it works. There has to be something tracking the state of the indicator for each user. So when a user places a 500-point bounty, just adjust whatever is tracking their indicator state by the same amount. That way they'll continue to receive notifications about upvotes et al.  Don't deprive bounty-placers of the little dopamine rushes that seeing a green +X in the top bar provides. Hurrah for positive reinforcement.  As Richard Tingle points out in the comments, when the bounty is eventually awarded, that rep increase on the person who received it should definitely still be reported and included in the indicator calculation. It's just the loss of rep for placing a bounty that should not be included.


What is a "balanced" force, and do the Jedi want it?

The Prophecy of the Chosen One says that it will lead to "ultimate balance in the Force be restored". What does this actually mean? Is the goal to wipe out the Sith? If so, how is that balance? Wouldn't true balance be one Jedi and one Sith (or, I suppose, any n:n ratio thereof)?  Regardless of the above, does the Jedi Order want balance in the force? Or do they want dominance over it?


Bibliography per chapter with continuous numbering

I would like to create a document with two chapters. After the first chapter there should be a bibliography. The next chapter should be able to reference items of the former chapter, but only show the new items in its bibliography, starting with the next number from the first bibliography.  Example:     Chapter 1 - The Fu   Fu has been done by Bar [1]. Early versions ...   Bibliography   [1] Bar et. al., Doning the Fu      Chapter 2 - Compining Fu with Herp   Doning Fu as described in [1]   neglects the advantages of Herp pointed out by Derp [2].   Consequently ....   Bibliography   [2] Derp et. al., The Advantages of Using Herp   Please not too much discussion about if that is a friendly-to-use idea, it is not my own demand :)


How to sum BigDecimal as class variables

I have this class:  public class Period { private BigDecimal periodAmount;  public BigDecimal getPeriodAmount() {     return periodAmount; }  public void setPeriodAmount(BigDecimal periodAmount) {     this.periodAmount = periodAmount; }   And I was testing this on Main:  public static void main(String[] args){     BigDecimal total = new BigDecimal(0);     List<Period> periods = new ArrayList<Period>();      Period periodOne = new Period();     Period periodTwo = new Period();     Period periodThree = new Period();     Period periodFour = new Period();     periodOne.setPeriodAmount(new BigDecimal(33564899.47));     periodTwo.setPeriodAmount(new BigDecimal(22978517.87));     periodThree.setPeriodAmount(new BigDecimal(19526899.32));     periodOne.setPeriodAmount(new BigDecimal(18056899.98));      periods.add(periodOne);     periods.add(periodTwo);     periods.add(periodThree);     periods.add(periodFour);      for(Period b : periods){         total.add(b.getPeriodAmount());     }     System.out.println(total); }   But it throws me a NullPointerException that I couldn't find the reason. I tried without a list, like this:  BigDecimal total = new BigDecimal(0); Period periodOne = new Period(); periodOne.setPeriodAmount(new BigDecimal(33564899.47)); total.add(periodOne.getPeriodAmount()); System.out.println(total);   And then I get the total printed as 0. What am I doing wrong?


Comments containing long words causes comments to run off the edge of the screen

The first post I've seen this on is .        Note how the text in the comments runs off the right hand side of the page.  This seems to be due to the programmers.SE link in one of the comments, and might need some break-word styling...  What makes this even more of a problem is that the page is fixed to the width of my screen, so I can't scroll horizontally to get the rest of the comments.


From what I've read the UEFI replaces the BIOS. BIOSs can be flashed though, so is it possible to install UEFI on a computer using a BIOS?  If it's possible, how to do it? I'm guessing this'd be different for every motherboard?


How to fetch from MySQL database “Hindi” (Indian local language) हिन्दी text in websites    when i fetch data from database it show   ??????????????????????????????????????? ???????????????????????? ?????????????????????????????????????? ??????????????????????????????????????   Referring to this question I have changed my database charset to "utf8_unicode_ci", but Still not working. I have written following code to fetch the data  connection.php page   <?php      $DB_HOST = 'localhost';     $DB_USER = 'xxxxxxxx_usr';     $DB_PASS = 'xxxxxxxxxxxxxxxxx';     $DB_NAME = 'xxxxxxxs_dta';      try{         $DB_con = new PDO("mysql:host={$DB_HOST};dbname={$DB_NAME}",$DB_USER,$DB_PASS);         $DB_con->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);     }     catch(PDOException $e){         echo $e->getMessage();     }   index.php page  <?php include("../header.php"); ?>    <?php      require_once 'connect.php';?> <link href='/Lang/style.css' rel='stylesheet' type='text/css'> <?php    $iddd =$_GET['id']; $d = $browser_t; ?>

        <?php      mysqi_set_charset( $DB_con, 'utf8');     $stmt = $DB_con->prepare('SELECT id, title, post, viewers, author, external FROM getpost  WHERE id =:vid');        $stmt->execute(array(':vid'=>$iddd));     $stmt->execute();      if($stmt->rowCount() > 0)     {         while($row=$stmt->fetch(PDO::FETCH_ASSOC))         {             extract($row);             ?>

<?php echo $row['title']; ?> Tutorials

 <?php echo $row['post']; ?>

<?php echo $row['external']; ?>

Author
<a href="http://www.mrtutorials.net/Author/<?php echo $row['author']; ?>"><?php echo $row['author']; ?>

         <?php         }     }     else          ?>

      <?php include("../footer.php"); ?>


I just installed php5 on my newly setup Ubuntu Server 12.04. However, I noticed why does the PHP version is kind of too low? As compared to the official PHP.net website, the recent version is at PHP 5.4.17 or PHP 5.3.27. Is there anything I am missing?  PHP 5.3.10-1ubuntu3.6 with Suhosin-Patch (cli) (built: Mar 11 2013 14:31:48) Copyright (c) 1997-2012 The PHP Group Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies


After trying both commands, I noticed that \hspace* opposite to \hspace will insert a space over the end of the line.  So I was wondering if someone could explain how that works and also when to use either command.


How to draw an equilateral triangle inscribed in another triangle?

Given a triangle $\Delta$ABC, how to draw any inscribed equilateral triangle whose vertices lie on different sides of $\Delta$ABC?


Excel create table with all combinations

Let's assume I have 3 columns with labels   A B C D  a b c d e 1 2 3 4 5 6 7 8 9 10   Is there a quick and easy way to create an empty table with all permutations? i.e.   A - a - 1  A - a - 2 ....  D - e - 10


How can Loki's default appearance be like Asgardians/Humans?

Loki is by-birth a blue frost giant. A frost giant's appearance isn't like that of Asgardians/Humans.  In Thor movie, Casket of Ancient Winter was able to transform Loki to original form temporarily. And, Loki was surprised with this. Meaning, Loki wasn't actively transforming his appearance using his imagery tricks. Plus, his imagery tricks don't work when his concentration is lost. But yet, we can see his Asgardian appearance everytime. Means, it's not his imagery trick.  How is Loki's default appearance like Asgardians/Humans?


ffmpeg is not even cutting this and other mp4s to the nearest second

I have a file  Other - Analogue Clock-JEJqy1Wlovw.mp4  which is just a download from     It's 2 minutes 13 seconds long.  I had some issues cutting it to the second.  I was able to use this command   ffmpeg -ss 0 -i infile.mp4 -c copy -t 60 output.mp4  to make a file that was 60 seconds, so no problem so far.  That's the file exactly 1 minute, no issue there so far.  C:\vids\a>dir blahhclo.mp4   9,590,540 bytes  C:\vids\a>   C:\vids\a>mediainfo blahhclo.mp4 General Complete name                            : blahhclo.mp4 Format                                   : MPEG-4 Format profile                           : Base Media Codec ID                                 : isom File size                                : 9.15 MiB Duration                                 : 1mn 0s Overall bit rate                         : 1 278 Kbps Writing application                      : Lavf58.3.100  Video ID                                       : 1 Format                                   : AVC Format/Info                              : Advanced Video Codec Format profile                           : High@L4.0 Format settings, CABAC                   : Yes Format settings, ReFrames                : 3 frames Codec ID                                 : avc1 Codec ID/Info                            : Advanced Video Coding Duration                                 : 1mn 0s Bit rate                                 : 1 146 Kbps Width                                    : 1 920 pixels Height                                   : 1 080 pixels Display aspect ratio                     : 16:9 Frame rate mode                          : Constant Frame rate                               : 25.000 fps Color space                              : YUV Chroma subsampling                       : 4:2:0 Bit depth                                : 8 bits Scan type                                : Progressive Bits/(Pixel*Frame)                       : 0.022 Stream size                              : 8.21 MiB (90%)  Audio ID                                       : 2 Format                                   : AAC Format/Info                              : Advanced Audio Codec Format profile                           : LC Codec ID                                 : 40 Duration                                 : 1mn 0s Bit rate mode                            : Constant Bit rate                                 : 126 Kbps Channel count                            : 2 channels Channel positions                        : Front: L R Sampling rate                            : 44.1 KHz Compression mode                         : Lossy Delay relative to video                  : 40ms Stream size                              : 920 KiB (10%)    C:\vids\a>   But I do have an issue when I try to cut it at the following times, and it's whether I try to cut the 1 minute one or the whole 2 min 13sec one.  If I cut with -ss 0 -t 1,   it produces a file that is 1s 22ms.  So that's not too bad that's fairly close to one second. 1.022 seconds is quite good for an attempt to cut one second.  If I cut with -ss 0 -t 2, it produces a file that is 3s 19ms   That is terrible! it's meant to be one second!  If I cut with -ss 0 -t 30 then it is fine it does 30s 1ms.  Or this video for example, also an mp4   C:\blah>ffmpeg -ss 189 -i vid.mp4 -c copy -t 6 someoutput.mp4  C:\blah>mediainfo someoutput.mp4   produces a duration of 8s 383ms  That is so wrong though 'cos it should be 6 seconds! So that is two seconds too long!  C:\blah>ffmpeg -ss 191 -i vid.mp4 -c copy -t 6 someoutput2.mp4  C:\blah>mediainfo output2.mp4   shows that ffmpeg produced a duration of 10s 403ms  which is crazily wrong 'cos the ffmpeg command specified 6 seconds!  So that's not just one second out, that is 4 seconds out!  That's almost 50% longer than it should be!


Why is an array multiplied by [0] equal to the first element?

I have the following code:  print ([12,2][0])   The result is 12  print ([12,2][1])   The result is 2. Why?  Question update  I can't understand:  target_f = self.model.predict(state) target_f[0][action] = target     Why does target_f have an index [0] then another index [action]? What is this doing?  In my C programming experience, it should be a 2D array index. Is it the same here?


I'm trying to repair an 800W power supply (see my previous question on this.) One thing that gets me is that the design has two schottky diode packages (in TO-220) in parallel. I was always told this was A Bad Idea, but since they are thermally coupled to the same heatsink, does it present a problem in this instance? I've also noticed the same for the input bridge rectifier, two are used in parallel.