How can you solve this "paradox"? Central potential

A mass of point performs an effectively 1-dimensional motion in the radial coordinate. If we use the conservation of angular momentum, the centrifugal potential should be added to the original one.     The equation of motion can be obtained also from the Lagrangian. if we substitute, however, the conserved angular momentum herein then the centrifugal potential arises with the opposite sign. So if we naively apply the Euler-Lagrange equation then the centrifugal force appears with the wrong sign in the equations of motion.   I don't know how to resolve this "paradox".


Notify about an edit when it changes MathJax, even if not "substantive"

I think that whenever a post gets edited by someone other than the person who wrote it and when the edit changes a MathJax formula, then, no matter how small the change was technically, the author of the post should be warned that that editon took place. A small change in a mathematical formula can have huge consequences.


I wrote a code to find a substring within a string in java but i want to know is there a short way to do this or is there a inbuilt function to do this.  Here's the code :  import java.util.*; class substr  {     public static void main (String args [])     {         String str1 = new String();         String str2 = new String();         String str3 = new String();         int check=1,k;         Scanner obj= new Scanner (System.in);         System.out.println("Enter a string");         str1=obj.nextLine();         System.out.println("Enter Sub String");         str2=obj.nextLine();         int len=str1.length();         System.out.println(check);         for( int c = 0 ; c < len&&check!=0 ; c++ )         {             for( int i = 1 ; i <= len - c&& check!=0 ; i++ )             {                 str3 = str1.substring(c, c+i);                 if (str2.equals(str3))                 {                        check=0;                 }             }        }        System.out.println(check);        if (check==0)        {            System.out.println("Sub String");        }        else if ( check==1)        {            System.out.println("No");        }     } }


Transparency from shader becomes white when exporting on transparent background

So first time actually posting a question here, but I just can't seem to find a solution. So I made this fire ramp shader for a project I'm working on, and I want to have a transparent background for comp purposes. However, whenever I try to export using png the albedo details of the shader turns white when there's nothing behind it. I tried exporting it using OpenEXR as well, and that seemed to work for some reason. I don't want a 32bit image though, and would preferably keep it as a png. Below is two images, one from blenders render window, and one exported using png with a solid background for better visualization of the problem.   I'm at a complete loss, so if anyone got a solution I would be grateful!


I've a MacBook w/ the following specs:    Very annoyingly, CommandControlQ locks the screen. I can't even remap it to anything else; trying to do so in Keyboard locks the screen instead of registering the key combination.  Is there a way to get rid of this shortcut?


I have a large table that is already partitioned by an identifier (CustomerId). I have created new customers, and want to add new partitions to the table, and want to confirm the correct way to do this. My predecessor set this up and is no longer available so I cannot confirm.  There are currently partitions for 60 distinct CustomerIds (let's say 1-60), and a filegroup and file for each. I have created new filegroups and files for the new customers (61-68) and need to partition the existing data already in this table. So, the data that's already in the table, with customerId 61-68 needs to be moved into separate partitions.   I tried to use the partition wizard, but couldn't find an option for what I wanted. As far as I can tell, I need to run something like:  ALTER PARTITION SCHEME PS_Details  NEXT USED Filegroup61 ALTER PARTITION FUNCTION PF_Details ()  SPLIT RANGE (61)   I'm looking for someone to point me in the right direction as to best practice for this sort of thing. Do I take the data out of the table, into a new table stored in the Filegroup61 then switch the partition in? Not really sure how to approach this.


Why declaration of a pre defined function and code of that pre defined function are in different files?

Suppose we consider math library functions in c language . declaration's are in header file #include whereas code is in math library (which we link during compilation by -lm) . Why both declaration and code are not in same file ? I am  a beginner .


Are there types of passive RFID tag which can connect to control logic?

its been a few years since i've done any electronics but have been asked to research the viability of an idea and have gotten stuck...  We want to transmit a timing signal from RFID readers which will be picked up by tags and used to control a simple switching of an led. The led will be on a powered circuit, and will fade over a few seconds, but essentially will be turned on when the reader emits the pulse.   I suppose this could be done with a standard RF circuit, but on some of the readers the communication will have to be 2-way (recognising a tag is within range and acting accordingly)  The reading/writing of data to the tags is not necessary at all.  Is it possible to use an RFID tag which can be used as a switch for the LED control circuit?  Would there be a better tech to use for this?  Thanks Sean


I have in stalled a dual boot beside windows and now I'm having a problem checking apt-get update when I type in apt-get update this is the outcome. I don't know what to do   $ apt-get update   E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied)   E: Unable to lock directory /var/lib/apt/lists/   E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)   E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?    $ apt-get upgrade   E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)   E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?


Why was Luca Brasi's life essentially wasted in The Godfather?

I haven't read the novel, I am just basing the question off of what I saw in the movie.  Don Corleone orders Luca Brasi, one of his most trusted muscle men, to infiltrate the ranks of a rival family and gain their trust and information.  The opposing family would have surely known about Luca, and his strong affiliation with the Corleone's.  Any word otherwise would be laughable, given the circumstances.    He is not a particularly smart man, and by no means is he well spoken.  We see him preparing a very short speech, for a relatively long time, and then fumbling over his words wishing the Don and his daughter good tidings on her wedding day.  I see Luca as more of a loyal meathead/hitman than a cunning spy, so I feel like this was either an exceedingly dumb move by Don C, or he wanted Luca out of the picture for reasons that are beyond me.  Why did Don Corleone essentially send Luca Brasi to sleep with the fishes?


Better Circular Polarizer for Sigma 150-500mm APO HSM

I recently used my Sigma 150-500 lens to shoot my son surfing. I was using a circular polarizer. The shots all appear out of focus even though focus was good and depth of field was good, even though the filter was clean. As a guess, I removed the filter and the problem went away. I did not have the same problem with my other lens and its polarizing filter, so I'm thinking I have a cheap filter and need a better one. I was using AGFAphoto CPL 86mm. Do you agree, and if so, what is a recommended circular polarizer please? Thank you


Based on MLE (Maximum Likelihood Estimator), we knew that the puprose is to maximize the likelihood function. Then how about quasi likelihood ? Is quasi likelihood just modelling between mean and variance ?


Why in this sentence "older " is the correct word?  He married the older sister and now they have two sets of twins.   He married the elder sister and now they have two sets of twins.


Login failed for user - Error 18456 - Severity 14, State 38

Message that SQL Server Log File Viewer shows:   Login failed for user [User] Error: 18456, Severity: 14, State 38   What it actually means:  Failed to open the explicitly specified database   My Question:  Is there a list somewhere of all the variations of the 18456 errors (Login failed), for each combination of severity and state, with the helpful description text?  I've had a Google but can't find anything other than specific combinations.


Define a bijection between $(A^B)^C$ and $A^{B \times C}$

I was given the following task  Define a bijection between ${(A^B)}^C$ and $A^{B \times C}$  I have no clue where to start and I don't understand the task. Could you please explain what I am required to show and how should I start the proof ?


Determining if two geometric figures are approximately equal using PostGIS?

I would like to know how to determine if two geometric figures (the_geom) are approximately equals.   By the way, I'm working with Python, PostgreSQL and Postgis  I have the following geometries:   0101000020110F0000FE546AD2413E5EC16D56617C93C74FC1  0101000020110F00009D7E6384413E5EC10185DD7F93C74FC1  When I see both figures on the map, the variation is imperceptible.  Any idea?


Reasons to not answer follow-up questions asked in comments

I'm often helping new users with problems they have while getting started with a particular software. After having solved one problem, it is not unlikely that they run into another problem. The follow-up problems obviously deal with the same software, but they usually have completely different causes, and therefore should be asked as separate questions.  Nevertheless, users often ask these follow-up questions in comments.  I am inclined to not answer these questions (in particular if no-one else will ever be able to find my answer and benefit from it). On the other hand, I still want to be helpful, so I at least try to convince the user to ask a separate questions. However, I find it hard to explain in a short and friendly way why I (and potentially also others) don't want to answer follow-up question in comments.  So I was wondering if there is a good explanation somewhere that I could reference to educate the users? (And if not, could someone write one as answer to this question? ;-)


In Pokemon Alpha Sapphire and Omega Ruby, If You catch Thunderous in the Storm Clouds Mirage Spot using the Eon Flute, than will the Storm Clouds come back so you can catch Landerous, or Tornadous?


sudo apt-get curl and sudo apt-get wget gives "Invalid operation"

I am very fresh in Linux. I tried to use the sudo apt-get command to install both wget and curl utilities. To do that I ran at the following CLI commands:  sudo apt-get curl sudo apt-get wget   Both inputs give the error Invalid operation; No further information is given.  I tried to do man invalid || man Invalid, but there seem to be no entries for these terms.  Google search yielded zero results for "sudo apt-get wget" + "invalid operation".  For curl problem I did found  but I would humbly prefer having an expert's take on this before trying it (as I really need wget as well and want to understand the root of the problem).


What can a soldier requisition and for how long?

In the military rank feature it says the soldier can "requisition simple equipment or a horse for temporary use". What qualifies as simple equipment, any simple weapon or something less complex than a catapult?  Additionally, which part of the sentence is the "for temporary use referring to, the simple equipment and the horse or just the simple equipment?


Create a Q & A community with less than 100 members

If one wishes to use a format similar to stack exchange with only friends from college or coworkers, what would be the best way around it?  Facebook is too permissive of spam and apps like WhatsApp are too far from the idea  Edit: I had already read , but it's oriented to organizations with more than 500 members:     Enterprise is a self-sustaining community, built for large organizations that generally plan to support 500 or more users.


How do I add data to an ArrayList of String data type

This is just a simple problem that I challenged myself to solve: add names to an ArrayList. I think the problem has to do with the while loop I'm using to populate my ArrayList and the Scanner.   I've tried making two separate Scanner objects, but the loop still terminates when it shouldn't.  import java.util.ArrayList; import java.util.Scanner;  public class MyArrayLiat {      public static void main(String[] args) {         // TODO Auto-generated method stub          String finished = "n";         Scanner keyboard = new Scanner(System.in);          ArrayList<String> myArrayList = new ArrayList<String>();          while(finished == "n")         {             System.out.println("Enter data: ");             myArrayList.add(keyboard.nextLine());             System.out.println("Are you finished? y or n");             finished = keyboard.nextLine();          }         System.out.println("myArrayList: " + myArrayList);      }  }   Enter data:  Trevor Are you finished? y or n n myArrayList: [Trevor]   It should keep taking names until I type n, but it terminates after just the first name.


How one can use a `\newcommand` for some formulas?

I have some formula such as \mathbf{x}_{j_{1}}, \mathbf{x}_{j_{2}},..., and \mathbf{x}_{j_{k}}. How can I  define one \newcommand for these formulas?  Thanks in advance.


Hide manage code(C# Code) from .NET Reflector

Hi In C# windows application. I need to know by using .NET Reflector  all source code is viewed by anyone. But I want hide some code(Important secure code) in c# from .Net Reflector.   Anyone help me to hide managed code(C# code) from Reflector. Thanks...


I am trying to find out how on Feb 18th and 19th of 2014, I was in Louisville Ky, but my location history is showing that I was in Somerset Ky.  Why did this happen?


Travel to Italy with Romanian Travel Document 1951

I am a stateless person with a Romanian Travel Document 1951 for refugees. I want to go to Italy. I think I do not need a visa. I asked Embassy of Italy here and they told me it is OK without visa. I am afraid of being denied boarding to airplane or problems at check-in. I saw on this site many problems at check-in.  What advice can you give me to show I do not need visa if problems appear in the airport?    I don't want to miss my plane.


Is the universe expanding or is it simply the matter within it spreading out further?

The way I am thinking about this is thinking of a bomb floating in the middle of a room until it is set off. Once it explodes, the room doesn't expand. Instead the contents of the bomb does.  Is that what universal expansion is? The matter, particles, energy, etc simply moving away from the starting point in all directions. Or can the universe be thought of as a bubble that contains all those things, but is itself expanding and taking along its contents with it?


Prove by induction $\sum_{i=1}^{n} \frac{1}{\sqrt{i}}$ $< 2\sqrt{n}$ for $n \geq 1$

So far I have this. I have a feeling I'm getting off track with the last two steps.  We want to prove  $\sum_{i=1}^{n} \frac{1}{\sqrt{i}}$ $< 2\sqrt{n}$ for $n \geq 1$  Base Case  Prove P(1): $\sum_{i=1}^{1} \frac{1}{\sqrt{1}}$ $< 2\sqrt{1}$. We get $1 < 2$.  Induction Hypothesis  $\sum_{i=1}^{n} \frac{1}{\sqrt{n}}$ $< 2\sqrt{n}$ is true for $n \geq 1$  Induction Step  Prove P(k + 1): $\sum_{i=1}^{k + 1} \frac{1}{\sqrt{k + 1}} < 2\sqrt{k + 1} $  LHS = $\sum_{i=1}^{k + 1} \frac{1}{\sqrt{k + 1}}$  = $\sum_{i=1}^{k} \frac{1}{\sqrt{k}}$ - 1 + $\frac{1}{\sqrt{k + 1}}$ + $\frac{1}{\sqrt{k + 2}}$  $< 2\sqrt{k}$ - 1 + $\frac{1}{\sqrt{k + 1}}$ + $\frac{1}{\sqrt{k + 2}}$


I'm looking to power nichrome wire from battery. The problem I ran into is that desired length/width of the wire has very small resistance ~ 8 Ohm.  Several kinds of batteries I've tested have internal resistance much higher then that, which leads to wire staying cold and battery getting hot.  Is there any way to increase current drawn from the battery? Some kind of amplifier maybe?  Edit:    1.2V(rechargable) and 1.5V one, while not getting hot itself did not provide enough power to heat the wire. 3V did not provide enough power, even stacking 3 of them in series, only provided about 1V of voltage on the wire, and not enough amperage to heat the wire. 9V battery did provide enough amperage to heat the wire, but at the same time got very hot very quickly itself.   PS. I was wondering if  might work for this purpose?


Why is Higgs particle detected much later than top quark when it's lighter?

The Higgs boson is lighter than the top quark. But the top quark was discovered in the mid-1990s where the Higgs boson escaped detection for two more decades. So if the energy has already been achieved to produce Higgs boson, why did it escape detection so far?    I understand that the couplings of Higgs boson to fermions is small and doesn't interact with the detector appreciably.   Does it mean that in LHC, with the increase in energy, the Higgs coupling increased and we finally detected Higgs?


I am very interested in writing my M.Sc. thesis with Latex, and have question:

I am writing my M.Sc. thesis in biochemistry, which has mathematics. I am new to latex, but I am greatly interested in it. I am watching/reading tutorials but was wondering if the community could recommend a good set of video lectures/pdf to write a document such as a thesis?  Thank you very much for your time!


Short story where a scientist uses a time-machine to evolve mice with wings

A scientist encloses a community of mice inside a machine that makes time go much faster inside the machine. Thus he can breed successive generations of mice incredibly quickly. He breeds the population to have wings and to be intelligent.  After innumerable generations he produces the required creatures. He is able to communicate with them but discovers they are curious about their heritage. He invents a mythology that their race comes from the planet Venus.  They somehow obtain a space-craft and take off in search of what they believe to be their 'home' planet.    I believe it might have been part of an anthology and was probably written before 1970 although that's not certain. The language was English but I can't remember if American or British. There were no characters apart from the scientist and the mice as far as I can remember.


Core Workflow: How to add Save as Draft button in form actions?

On we create article we have 'Save' & 'Preview' button.  I would like to add 'Save as draft' button.  I found   But it's not for Drupal 8  Found this URL :   I tried with this  function custom_module_form_node_form_alter(&$form, FormStateInterface $form_state) {   $form['actions']['draft'] = array(     '#type' => 'submit',     '#class' => 'form-submit',     '#name' => 'btn-draft',     '#value' => t('Save as draft'),     '#weight' => '-10',     '#submit' => ['custom_module_node_form_submit']   ); }   In the function  function custom_module_node_form_submit(&$form, FormStateInterface $form_state) {    $button_clicked = $form_state->getTriggeringElement()['#name'];    if ($button_clicked == 'btn-draft') {     if ($entity = $form_state->getFormObject()->getEntity()) {       $entity->set('moderation_state', 'draft');       $entity->save();     }   } }   Using workflow module.   So have state (Draft/Publish/Archive)  Once it save not able to alternative function for node_form_submit($form, $form_state); Currently it's giving error 'title` is missing in DB Query  Error     The website encountered an unexpected error. Please try again   later.Drupal\Core\Entity\EntityStorageException:   SQLSTATE[23000]: Integrity constraint violation: 1048 Column   'title' cannot be null: INSERT INTO {node_field_data} (nid,   vid, type, langcode, status, title, uid, created, changed, promote,   sticky, default_langcode, revision_translation_affected, weight,   publish_on, unpublish_on, publish_state, unpublish_state) VALUES   (:db_insert_placeholder_0, :db_insert_placeholder_1,   :db_insert_placeholder_2, :db_insert_placeholder_3,   :db_insert_placeholder_4, :db_insert_placeholder_5,   :db_insert_placeholder_6, :db_insert_placeholder_7,   :db_insert_placeholder_8, :db_insert_placeholder_9,   :db_insert_placeholder_10, :db_insert_placeholder_11,   :db_insert_placeholder_12, :db_insert_placeholder_13,   :db_insert_placeholder_14, :db_insert_placeholder_15,   :db_insert_placeholder_16, :db_insert_placeholder_17);


Dynamic scale dependency from attribute query using ArcGIS for Desktop?

If I have a feature class called roads with an attribute for type e.g. highway etc.  Is there a way to setup a dynamic scale dependency on the layer based on the type of road?   Like do a SQL query and apply a specific scale dependency range on the  records that match?


Set dynamic window title based on command input

I am looking for a way to dynamically set the urxvt window title based on the command input.  Let's take an example.  If I run mplayer http://66.197.229.245:8082 in an urxvt window, I would like the  title of this window to be set to mplayer http://66.197.229.245:8082 or even better Terminal | mplayer.  Or if I run journalctl -b I want the window title to be set to Terminal | journalctl -b or better Terminal | journalctl.  Is this possible?


Add log in link to menu in Twenty Twelve

I can't find a way to add the log in link to the new theme of WordPress, Twenty Twelve. I did find a lot of answers on the older theme, where . However, this do not work for me.  Does anyone have a solution for this? You can see my homepage here:


A goat is tied to a shed with a barn next to it.

A rectangular shed measuring 4 feet by 5 feet is located along the side of a barn. The barn is 20 feet wide and 45 feet long. A 3 year old goat is tethered to a corner of the shed, not against the barn, with an 8 foot rope. What is the possible amount of space that the goat would have to roam? Express your answer in inequality notation.  Someone help please im so confused. This is word by word. I did research  and I found stuff like this but similar, not like this.


Finding Start and End Point IDs for a Line

I have a simple point feature class and line feature class. Each point has an ID. The Line feature class has a "Start Point ID" and "End Point ID" field, both of which are currently empty. The line start/end points are snapped to points.  I'd like to do some sort of spatial join to populate the Start Point ID and End Point ID fields of the line based on what points the line is touching.   Each line feature is a simple two-vertex line, no polylines.  Any ideas on how to accomplish this without just copying and pasting ids?


Iranian National with U.S. Green Card need a transit visa? U.S > Vienna > Iran

I am planning to travel to Iran (I am Iranian also) from the U.S. (and I have a permanent residency card i.e. Green card holder) ... do I need a transit visa at Vienna airport?


Prove if $|a_{n+1}|/|a_n| \leq |b_{n+1}|/|{b_n}|$ and $\sum |b_n|$ is convergent, then $\sum |a_n|$ is convergent

How do I prove that if $|a_{n+1}|/|a_n| \leq |b_{n+1}|/|{b_n}|$ and $\sum |b_n|$ is convergent, then $\sum |a_n|$ is convergent? I know that if I can get $|b_{n+1}/{b_n}| < 1$ then I can use the ratio test to say $\sum a_n$ is convergent, but I don't know if this the proper way to approach the problem.


Aluminum forks vs. carbon forks (with aluminum frames) what are the trade offs?

The all-aluminum frame bike will be cheaper.  The aluminum fork should be more robust and less prone to breakage.  The carbon fork will be more shock absorbing and comfortable.  That's kind of how I see the basic trade off.  Given that I like to ride a touring bike with wide tires (25 to 28 mm) and I use low pressure, I am wondering if I would feel any comfort benefit at all from the carbon fork.  And, should just go for the aluminum one.    Is that how you see it?


How do I add Headers in List of Tables page?

I'm new to LaTex, so please bear with me if this is a newbie question. I am using a template where \listoftables is defined as follows:  \def\listoftables{\@restonecolfalse\if@twocolumn\@restonecoltrue\onecolumn   \fi\chapter*{List of Tables\@mkboth    {LIST OF TABLES}{LIST OF TABLES}}    \addcontentsline{toc}{chapter}{List of Tables}\@starttoc{lot}\if@restonecol   \twocolumn\fi}   When I add \listoftables to my document, I get something like this:    What I'd like to add is something like this:    How do I add the header row at the top for each column in the list of tables? Thank you in advanced for your answers and suggestions!


How do I prove the multiplicativity of separable degree in general?

Let $K/E/F$ be a tower of algebraic extensions. How do I prove that $[K:E]_s[E:F]_s = [K:F]_s$? This is done in all the books I searched for finite extensions (when it follows trivially from a counting argument).  The corresponding article at stacks project suggests taking $\sup$ in $[K':E']_s[E':F]_s = [K':F]_s$ over $K'/F$ finite, $E' := E \cap K'$, but it is far from obvious that this yields the first relation.  I would appreciate a reference for this; I need it in a proof that all extensions $\mathbb{F}_p \to K$ are separable in the general sense.  Edit: Of course, since the counting argument remains valid in the infinite case, it is enough to check that, for any (infinite) algebraic extension $E/F$, $[E : F]_s = |\mathrm{Hom}(E, \overline{F})|$, where $\overline{F}$ is some algebraic closure of $F$ and the morphisms extend some given morphism $F \to \overline{F}$.


Greatest common divisor for expression given.

Marked as Duplicate question: (Updated) Is there an expression I can derive to get this?   I know the gcd>1 but I don't know how to get an expression for it? Or if this is not possible, how do I show the gcd>1?


Why "grand theft auto", not "grand auto theft"?

There is a video game series called "Grand Theft Auto".  According to its :     The name of the series references the term used in the US for motor   vehicle theft.      [...]      Motor vehicle theft or, grand theft auto, is the criminal act of   stealing or attempting to steal a car (or any other motor vehicle).   I always wondered why this term sounds so strange.   Shouldn't it be "grand auto theft" or maybe "grand theft of auto" instead? Are there any other terms with strange words order and/or missing prepositions like this?


When to use "easy" over "easily" as an adverb?

It's my understanding that "easily" is the regular adverb for "easy", e.g. "He makes friends easily".  But in some collocations one still uses "easy", e.g. "Take it easy", "Rest easy" or "Slow down easy". Is there any rule when "easy" would be used over "easily", or does one just have to know these collocations?


Don't invite people when moving their messages

Every time we move people's messages to some recycle bin/trash can room, they're invited to this room, thus leading to sarcastic comments such as . Should these invitations be disabled? I haven't seen any useful situation for those invitations when moving a message. If you think there are useful cases, could there be some special rooms where people are not invited? Like "Recycle bin" or "Trash can".


Filtering the line with the largest value for a given ID

I have a tabular file in which the first column has IDs and the second one has numeric values. I need to generate a file that contains only the line with the largest score for each ID.  So, I want to take this:  ES.001      2.33 ES.001      1.39 ES.001    119.55 ES.001     14.55 ES.073      0.35 ES.073     17.95 ES.140      1.14 ES.140     53.88 ES.140     18.28 ES.178    150.27   And generate this:  ES.001    119.55 ES.073     17.95 ES.140     53.88 ES.178    150.27   Is there a way of doing this from a bash command-line?


Fingerprint activation in Dell Vostro 14 in Ubuntu 18.04

I have Dell Vostro 14 with OS Ubuntu 18.04.  I tried   sudo apt install -y fprintd libpam-fprintd   but not able to use fingerprint reader of my laptop.


I recently used the GPSlogger app and created KML files from my routes. I haven't been able to successfully convert them to shape files.   Does anyone know a good downloadable program that converts file types?


Following on from a previous question of mine, where I was given coords in degree-mins, I have successfully converted them to decimal degrees, thanks for the help.    I have created a CSV file from the stated coordinates, and then created a shapefile. The CRS was EPSG:4326 (WGS84).  The remainder of my mapping is displayed in TM65/Irish Grid (EPSG:29902). With the on the fly projections activated, everything is displayed properly. I need to provide this to a 3rd party.    How do I use QGIS to add a geometry colunm using the Current CRS? Using either QGIS 1.8 or 2.0.


Can we upgrade AT&T SAMSUNG-SGH-I897 Galaxy S to Android 4.1?

I have the AT&T Samsung Android Mobile with 2.3.5 OS and it's model no is SGH-I897. Now I want to upgrade my mobile os to lates 4.1 or 4.2, So can any body help me how to do that. Thanks in Advance.


What's the best distro/shell-agnostic way to set environment variables?

The question says it all. I currently use Arch Linux and the zsh, but I'd like a solution that (at minimum) works both on VTs and in xterms and also (hopefully, preferably) will continue to work if I switch distros or shells.  I've heard wildly disparate answers to this question in different distros' docs. Ubuntu says "use .pam_environment". I think in Arch what they recommend depends on your shell. Currently I put everything in  and if a shell doesn't source that for some reason (e.g. bash if .bash_profile exists), I override that by manually sourcing it. But it seems like there must be a better way.


Visa expires in May 2015, can I enter the US on January 26?

I am a Mexican citizen with a visa that expires May 31, 2015. I need to enter the US for five days in the last week of January.    Can I do so or do I need to renew it before entering the US?


[Probability]need help to understand the following expression

So assume $Y$ and $X$ are exponentially distributed with parameters $y_1$, and $x_1$ respecitively.  assume c is a constant.  I am having huge trouble to understand the integration of the following expression.  $P(Y<c/u(X))$  $=\int_{t}^{\infty}f_X(x)\int_{0}^{c/u(x)}f_Y(y)dydx +\int_{0}^{t}f_X(x)\int_{c/u(x)}^{\infty}f_Y(y)dydx$  where t is the cross-point that $u(x)$ change sign    here $c/u(x)$ is given by the plot below, t is the point crossing the zero:   Confusion:   I don't understand the second integration of the second term "$\int_{c/u(x)}^{\infty}f_Y(y)dydx$", this isn't right because Y an X only defined for y>0, and x>0. So it's the first quadrant in this plot.


I have an email service which parses responses if my customers send emails to the Salesforce generated email.  I want to know whether it is possible to send out emails from the Salesforce generated email address (using our email templates)?


How to prepare a string with foreign / accented characters for XML in C#?

I would like to transform a string like this  "¿Cómo puede hacerse esto?"   Into something that can be used within an XML resx file like this:  "&#191;C&#243;mo puede hacerse esto?"   I have tried HttpUtility.UrlEncode and WebUtility.HtmlEncode without any success.  I have searched online and can't seem to find the right solution.  I think I may need to put the string into a character array and iterate through each character and work out which one needs to be transformed.  Can anyone help me please?


What rules exist for the druids wild form ability in terms of beasts you have "seen"?

This is regards to Dnd 5e. Do you actually have to see a living creature? Can you see a picture in a book or a script? What if you only see a part of a beast such as only the right hand/claw/etc is visible? What if you see a statue of a creature?


Let $A,B$ be connected subsets of the Real Numbers. Show that $A+B$ is a connected subset of the Real Numbers.


Show actual currency to 2 decimal places in Visual Force Email template

I have an visual force email tempalte however the currency field is giving me some problems:                     We are writing to advise you that an amount of £{!relatedTo.Amount__c} is outstanding on your account    This works ok however if the amount is £200.00 when the email is sent it displays as £200.0  The same thing happens if this is £200.50 it will show as £200.5  It works correctly when the amount is e.g £200.11  Can anybody help?


Allow extra details for standard flag types

Stack Overflow is currently doing a  to avoid use of moderator attention flags in the case where a standard flag would do. In that thread they say it's fine to use a mod attention flag if you want to clarify the reason you're flagging; for example, you might be flagging "not an answer", but want to explain why the answer isn't an answer. This use is also covered in .  However, whether or not a post is obviously not an answer is subjective, and you can end up in the weird case where you think a post isn't an answer, you use a mod flag to explain why, and it gets rejected because the post was too obviously not an answer to warrant that flag -- you should have used the standard flag instead.  My opinions on that practice aside, it seems like it could be avoided if it were possible to provide a description for the standard flags and not just mod attention flags:    Ideally the extra description would appear in the review queue.


Is there a difference between a field and a function?

Any field (in the physics sense of the word) is a function.  But is any function a field? It seems that one might construct a function that returns a tuple consisting of $6$, temperature and electric potential. We would not consider that a field, right? So where is the line?  Basically I am looking for a decent definition of the term field.


Changing wheel size on Jamis Aurora Elite to 26"?

Jamis Aurora Elite comes with disk brakes on 700c wheels. I am wondering is it possible to put 26 inch wheels on?  Since it has disk brakes, I can't see any issues with fitting the brakes. Only problem might be the ground clearance to the pedals.  The 26 inch wheels are good for touring with load, 700c wheels ideal for daily commute. I am looking for a bike which will fit both needs.


Period character used for local computer name

I'm wondering about the period character . used as a shortcut for the local computer name.  You can use it when logging into Windows 7, for example, to specify that the user account you're entering belongs to the local computer rather than to a domain:  .\MyLocalUserAccount   And you can use it within a Windows Management Instrumentation (WMI) query to indicate that the target is the local computer rather than a remote computer.  You can also use it when working with named pipes to for similar purposes.  However, you cannot use it as the UNC network name for the computer, like this:  \\.\MyShare   Does this character have an official name (e.g. "LocalHostToken") and when and where can it be used for this purpose?


How can I share what I know about but nobody hasn't asked that?

I have somethings like a few formulas in mathematics (especially sequences and series) that I'd like to share them with all the people in the site and encourage others to do so but until now nobody hasn't asked something that is relevant to the contents of my findings. I want to know how can I post those formulas in the site?  I know, a similar question has been asked before but I'm asking that I have somethings (just to see) and it's a bit difficult to make a question for somethings like that without getting tons of dislikes. My point is that for showing knowledge like that, you can't just ask it.


Cannot Connect to WiFi After Installing Ubuntu 20.04

This question was closed, and I visited the link provided. It is helpful, but how my problem persists. How can I install firmware b43 and kernel without internet? I do not have internet on my ubuntu device, that is the problem. I also checked out the link to install firmware-83 offline, but that tells me to download certain files. It requires internet to download files, and I tried download it on this iPad device but cannot transfer it to my laptop with Ubuntu with the problem. The WiFi logo does not appear in the drop down system menu. There is only the Bluetooth option. I’ve tried installing an additional driver, the “Broadcom Inc. and subsidiaries: BCM43228 802... WiFi Adaptor” but I get the error “pk-client-error-quark: could not do media change question as no Kyla’s support (8)” One post told the user to type     lshw -C network  into the terminal, and I get the output:     *-network     description: Ethernet Interface     product: 82579LM Gigabit Netwrok Connection (Lewisville)     vendor: Intel Corporation     physical id: 19     bus info: pci@0000:00:19.0     ...etc     *-network     description: Network controller     product: BCM43228 802.11a/b/g/n     ...etc (I am typing all this out because I am  asking on another device)


Multiselect picklist in salesforce lightning

I want to use multi select picklist in lightning.    Can any one help me with code?


How does Joel know where to meet Clementine?

How does Joel know he needs to meet Clementine at Montauk in ? Clementine tells Joel in one of his memories that he should meet her at Montauk. This is Joel's memory. Hence he's telling himself to meet Clementine at Montauk. The next day, because of the subliminal information in his head, he meets her on the train to Montauk. How does Joel know that Clementine is going to be on the train? He's never met her there before. How does he remember something he's not yet done?   Edit: This question assumes that Clementine was always going to be there at Montauk. She has had her memory erased a week earlier. The question is how does Joel know this information about Montauk.


How can they come up with the definition of entropy in information theory?

I have read some books about information theory but I don't have any ideas how can they find the definition of entropy? We have  $$H(X)=-\sum_{x\in X}p(x)\, \text{log}\, p (x)$$ X is a discrete random variable.


Increase min-height on SE code snippets to prevent scrollbar from blocking code

When using Stack Exchange/Stack Overflow, anytime there's a one-line code snippet with a horizontal scrollbar, the majority of the code becomes covered.  I am using Chrome v72.0.3626.109.  Looks something like this:    Can we fix this issue?


Is it good practice to parallel relay contacts for increased current capacity?

Say I have a DPDT relay, like . The contacts of this relay are rated for 30A, but there are two sets of contacts. Can I parallel the contacts to get an effective 60A relay? Further, could I parallel two (or more) relays and get even more current capacity?  I see two possible problems.   Current may not be shared equally between sets of contacts and between relays. One set of contacts could take more than their share of the current and overheat. Switching times may vary between contacts and between relays. When breaking with current through the contacts, the last set of contacts to open may be carrying far more than their recommended current at time of break. This could cause damage.   Are these problems? Are there other problems? If so, can they be quantified and worked around? Or is paralleling contacts and relays always bad design practice?  In my specific application, I'm using these relays as part of precharge for a capacitor bank. They are not expected to switch current. They make once the caps are charged, then hold. They should never open under current flow. Under these specific circumstances, should I still expect problems?


How to imitate early CGI style animation?

I just finished the doughnut tutorial series and wanted to know what I need to learn next. I was wondering whether anyone has any advice about how to make the shading and water/fire simulations/particles look more like 90s oldschool animation (like ,  or ). It would really help me. Thanks a bunch!


I'm trying to construct several GLMMs with my thesis data and I can't solve this question. I have data on pollinator abundance and fruit set from plant individuals sampled at six study sites and during two consecutive years. The problem is that not all individuals (plants) were sampled in both years. My question is: How should i use "Year", as random effect or as fixed effect? I constucted three candidate models and compared the AIC: a) Response variable ~Predictor variables + (1 | year/plant) + (1 | site/plant) b) Response variable ~Predictor variables + (1 | year) + (1 | site/plant) c) Response variable ~Predictor variables * year + (1 | site/plant) Option a) had the lowest AIC, but I read in some papers that is not correct use a variable with less than five levels as random effect...so, anyone could help me? Thanks! Raquel


Fast and memory efficient moving average calculation

I'm looking for a time and memory efficient solution to calculate a  in C. I need to avoid dividing because I'm on a PIC 16 which has no dedicated division unit.  At the moment, I just store all values in a  and simply store and update the sum each time a new value arrives. This is really efficient, but unfortunately uses most of my available memory...


Can't visibly select anything in Object or Edit modes. What have I done?

I haven't had this happen to me before. I can manipulate stuff in edit mode, but I cant see what. Neither can I see the select borders in object or any other mode. How can I fix this?


Windows 10 is killing me. I want to write some file names with more than 80 characters. I have a folder path like that: C:\Users\MyUser\Documents\Formations\Maitriser les outils vectoriels d Illustrator et de Photoshop\Illustrator CC - L art des courbes vectorielles\02 - Demarrer cette formation sur Illustrator CC. When I create a file into that folder and start typing the file name Windows only let me type only 50 characters. For example: Nouveau document texte jhkds fjkdshfkj sfhjsdh.txt. When I get into C:\Users\MyUser\Documents\Formations\Maitriser les outils vectoriels d Illustrator et de Photoshop\Illustrator CC - L art des courbes vectorielles it let me write at maximum 99 characters like Nouveau document texte khfjddjg djfhjdshf jdshf sdfsjdfjsd fds fsd fjsdfjdsjfhsdjfh djsfhjsdhfj.txt. When I get into C:\Users\MyUser\Documents\Formations\Maitriser les outils vectoriels d Illustrator et de Photoshop it allows me to write a file name with maximum 147 characters like Nouveau document texte djkshfkjs djfk hfjdshjf jshfjhsd fjshfjs dhfjhs djfhsjdhf jsdhfjhsdj fhds fhsdj fjdshfj hsdjhf sdhfjh sdjhf shdjf sjdhf .txt. each time I get closer to c:\ it increases the filename maximum length.  I even create a Python script to try to create a filename longer than the maximum allowed by Windows, Python throws an exception like File or directory not found (something like that).  I have LongPathsEnabled set to 1 in HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem.  My Hard drive is GPT and NTFS, it has 2 NTFS partitions.  What is wrong with Windows? How to fix it?


Change Settings' color scheme in Lollipop

Someone was fiddling with my Android (version 5.1.1) phone and somehow managed to change the Settings' color scheme.  I've tried to reset the theme to no avail. I've also noticed some notifications come through with white text (assuming related issue).  (Click image to enlarge)


Why do we derive more fundamental quantum theories from less fundamental classical theories?

In almost every derivation of a quantum theory (quantum mechanics or quantum field theory), we start with a classical theory using classical equations and quantize it (by imposing certain constraints on commutation relations, etc).   My question is, isn't the entire process of starting with a classical theory (which is less fundamental) and deriving a quantum theory (which is presumably more fundamental) backwards? Why should we expect the correct fundamental quantum theory that describes our universe to be derivable from a less fundamental (averaged over, approximation) classical theory?


I'm trying to do something similar to this is Blender:     Animation here:   I can get the shape and animation to look quite similar based on the linked answer, but how do I actually add the text uv texture to my object?


Apply for Schengen visa in a third country

Can a Kenyan citizen studying in Russia and temporarily visiting family in Kenya apply for a Schengen visa in Nairobi and not in Russia, where he has his residence?


What did Johann Bernoulli wrong in his proof of $\ln z=\ln (-z)$?

Some people say, Johann Bernoulli has proven $\ln z=\ln (-z)$ in the following way $$\ln ((-z)^2 )=\ln(z^2)\;\;\;\Rightarrow\;\;\;2\ln(-z)=2\ln z\;\;\;\Rightarrow\;\;\;\ln (-z)=\ln z$$ While the statement is not true, I'm unable to figure out what exactly went wrong:   Since $(-z)^2=z^2$ for all $z\in\mathbb{C}$, it holds $\ln ((-z)^2 )=\ln(z^2)$, too. By definition of $a^b=e^{b\ln a}$ for all $a\in\mathbb{C}^{-},b\in\mathbb{C}$ it follows $\ln (e^{2\ln z})=\ln (e^{2\ln (-z)})$ for all $z\in\mathbb{C}\setminus\mathbb{R}$ Further, for $z=re^{i\varphi}$ we've got $$\ln (e^{2\ln z})=\ln (r^2)+i\pi +i\text{arg}_0(e^{i(2\varphi -\pi)})=2\ln r+2i\varphi$$ and $$\ln z=\ln r+i\varphi$$ So, it seems like $2 \ln z=\ln (z^2)$ holds, too (at least for all $z\in\mathbb{C}\setminus\mathbb{R}$).   So, what is wrong here?  PS: Let's define $$\mathbb{C}^{-}:=\left\{z\in\mathbb{C} : \text{Re }z>0\vee \text{Im}\ne 0\right\}$$


I heard that there was a twitter bot which automatically posted questions and asked for answers for specific questions on every site. How do they work? Is there an algorithm for doing this or is it purely random? I know that it doesn't tweet closed questions, but that's it.


Type object as type argument for generic method

Type bar is specified as an instance of Type class and passed to method Foo(Type bar).  A generic method Foo<bar> is in another assembly that needs the type argument bar.  How can I pass bar as a type argument for Foo<bar>?  It should look something like this:       object Foo(Type bar)     {         return AnotherAssembly.Foo<barAsTypeArgument>();     }


why current is same through each resistance connected in series?

If two resistances R1 and R2 are connected in series then they have different potential difference across their ends say V1 and V2. Now according to ohm's law V=IR, we calculate current through both resistances i.e. I1 = V1/R1 and I2 = V2/R2. My question is that V1 and V2 are different, R1 and R2 are different then how can I1 and I2 can be same???


Find two non-singular matrices such that $AB=-BA$

Question is precisely the title. I've been trying to come up with an example for an hour now and haven't found one. Do such matrices, $A$ and $B$ exist?


Number of equivalence relations on a set

If a set has $n$ elements then what are maximum number of equivalence classes and equivalence relations possible on it?


Are there any hand ciphers not obsoleted by computer cryptanalysis?

Computerized cryptanalysis has obviously made formerly "secure" hand ciphers like Playfair, Four Square, and the Hill Cipher obsolete because they can be defeated in seconds. But is there a hand cipher where a modern computer attack does not have an advantage over a cryptanalysis done by hand? There are certainly tasks that are more quickly done by humans, rather than computers. I'm wondering if there is a hand cipher that takes advantage of this.


Why can't Microsoft store version of Office access redirected folders?

Our client has two computers that had preinstalled Office 365 from the MS store and I believe they are OEM licences for MSO '16 H&B.  The computers were not syncing with group policy because Netlogon was set to manual.  Once I fixed that and folder redirection occurred, no users can access their redirected folders from Office applications.  Explorer can access the folders just fine and so can other applications like notepad.   I have uninstalled the desktop apps package from all users using the powershell command then installed Word from the store and the problem remains. I have tried adding the user's network profile directory to trusted locations but the issue remains. Installing Office 2016 H&B using exe works fine to access the files but I can't tell if it's the same license as there are multiple licenses on this MS account I'm looking at.   It is basically the same as this issue that was reported here but reinstalling did not fix the issue as stated above.


Best method to update ubuntu 13.10 to path the HeartBleed bug

So we are running ubuntu 13.10 in production and they have OpenSSL 1.0.1e 11 Feb 2013, which obviously needs to be patched.   What's the best way to do it without any downtime? What will happen to the existing connections during the upgrade? Will    they be disconnected?  Will I need to reboot my server after the    upgrade?


MacOS partition doesnt boot up and shows as MBR part 255

Sadly the post tagged as duplicated does not work for me  ———————  Quick specs: Macbook Pro Mid2012 500GB SSD thats been in the Macbook for around 4 years MacOS Mojave BOOTCAMP Windows (100GB)  Yesterday while I was browsing on Safari i refreshed a site and my Macbook Pro just hanged and the spinning cursor appeared when hovering over Safari, everything else seemed to be working, so i tried closing Safari via the dock (the icons still enlarged when i moved over then) but as soon as i right clicked on Safari the dock froze as well. So i gave it a few minutes to see if its going to unfreeze but it didnt. So naturally i restarted the machine only for it to show the circle with line across instead of the apple logo. I restarted it and held ALT. A “Mac” came up but not the “Windows” clickable thingy. I selected the Mac and again the same story with the line across the circle.  Restarted the Mac again now holding Command-R for internet recovery. Opened Disk Utility and i could see this   Then i verified the "525.11 GB Crucial..." and i got this:   Then i clicked repair volume and it said it was fixed so i restarted the Macbook but i still got the same cross thing and when i got back to Disk Utility and verified the volume again, it again gave me the same error. (forgot to add, tried to reinstall OSX but only the Windows partition showed up)  Fast forward to today I tried to do what i saw in . I removed the Windows partition and then removed the Mac one, then i tried to remount the OSX partition but i got no space available error  Now instead of showing disk0s2 and BOOTCAMP under the Crucial volume, it only shows the BOOTCAMP one.     Heres the list before i tried to unmount:   And after:   Heres a few more pictures i took:  Heres me retrying to repair disk volume after the Macbook was turned off for a day (but before i unmounted it!!!). I tried to repair it a few times but getting th same error and then after like 3-5 times it just said it repaired. Verify still says theres an error but when i click repair it says its repaired   Heres a repair volume in terminal, it gives me an error of unrecognized file system (also before i unmounted stuff)  -bash-3.2# diskutil repairVolume /dev/disk0s2 Error starting file system repair for disk0s2: Unrecognized file system (-69846)   Heres the CoreStorage and a command i saw someone request it in some other Stack Exchange  -bash-3.2# diskutil cs list No Corestorage logical volume groups found -bash-3.2# gpt -r show /dev/disk0s2      start          size      index      contents          0     829890520


I am a new user to the Ubuntu OS and want to do everything to understand it's complete functionality. Recently I have read so much about it. I have the 12.04 LTS 32bits running on my HP 430 laptop. Installing programs that I like from bloggers and articles on youtube. But I have a big problem installing the adobe flash player. Like for instance, the GLOBAL FLASH SETTINGS page doesn't show with java embeds, rather all I see is just texts and a message saying This page needs Adobe Flash Install. I will appreciate if someone help me get over this problem. Thanks.


How to copy JavaScript object to new variable NOT by reference?

I wrote a quick jsfiddle , where I pass a small JSON object to a new variable and modify the data from the original variable (not the new variable), but the new variable's data gets updated as well. This must mean that the JSON object was passed by reference, right?  Here is my quick code:  var json_original = {one:'one', two:'two'}  var json_new = json_original;  console.log(json_original); //one, two console.log(json_new); //one, two  json_original.one = 'two'; json_original.two = 'one';  console.log(json_original); //two, one console.log(json_new); //two, one   Is there a way to make a deep copy of a JSON object so that modifying the original variable won't modify the new variable?


How to shift window control buttons from left to right in Ubuntu 14.04

I want the minimize, maximize and close buttons on windows to be on the right side. I've been looking for a way to solve this problem, but answers on some older questions didn't work for me.


I keep hearing that  less megapixels = better ISO performance, because larger pixels capture more light  Suppose I shot something with a 4MP sensor and then downscale it to 1MP (4-to-1 pixel binning?). Would that give me the same noise performance of a 1MP sensor of same size and technology? Since noise would average out when downscaling. In other words, are high res sensors still better because they...  can capture more detail in good lighting conditions result in same quality shot in low-light (after downscaling)  PS: Of course, I would rather use a denoise algorithm over downscaling. I'm just trying to understand if the above argument is valid.


Magazine story about traffic cops in the future

This story was about traffic cops in the future that patrolled major highways in a RV-like vehicle that had food preparation facilities, sleeping berths for the off-duty officers and if I remember correctly an execution chamber for second offenders.


How can I make the content list of a PDF expanded by default?

I am using pdflatex to create a rather long document. The document also has a table of contents, and the PDF naturally has some metadata of this list of contents that I can view in my PDF viewer (here: Apple Preview and Skim on OS X). The list of contents is collapsed by default, but people on the Skim mailing list told me, that this is a setting inside of the PDF. So how can I tell pdflatex to create an expanded list of contents then?


bibtex vs. biber and biblatex vs. natbib

I've heard of many different bibliography-related packages/platforms/?. What's the difference between the following, which is good for what tasks, advantages/disadvantages, which one is the most modern, etc.:   BibTeX    (If I missed anything important, please just add it here or answer about it)     Background  So far I've just typed in my citations (i.e. their sources) and lists of references manually (as regular footnotes/text) whichever way I needed them, but I'm considering switching to something more TeX-y. I usually use different literature for each paper, and I often have to switch between radically different styles for citations and the list of references, so flexibility is necessary. I'm trying to find out which platform would be the best for me, a hint at good introductory reading for whatever you recommend would be more than welcome.


statistical significance among three distributions in R

I have three probability distributions (see graph). How can I test if they are statistically different from one another in R? Also, how could I test if one distribution (the purple one) is different than the other two combined?  Distributions:


Links within spoilers are not hidden on the Revisions page

Similar to , links in spoilers aren't properly hidden on Revisions pages like .    Tested on the latest versions of Safari, Firefox and Chrome on macOS 10.13.3.


Why string with encoding 'UTF-8' have broken symbols when I looping the string

I have string with umlauts in utf-8 and it displayed ok:   var_dump($content);   It return me "höst lanseras". But when I try this:  for ($i = 0; $i < strlen($content) - 1; $i++) {     var_dump($content[$i]); }   I have this:   string(1) "h" string(1) "o" string(1) "�" string(1) "�" string(1) "s" string(1) "t" string(1) " " string(1) "l" string(1) "a" string(1) "n" string(1) "s" string(1) "e" string(1) "r" string(1) "a" string(1) "s"   How to get umlaut symbol as element of array?


An $ n × n $ matrix $A$ satisfies $A^2 = 0 $. Can the rank of $A$ be $n$? My opinion is that $A^2 = 0 $ then $A$ is also $0$. Is it correct?


Can't add default comments to custom post type

I am trying to add defualt comments to my custom post type.  I have added to my supports argument:  'supports' => array('title','editor','thumbnail','tags','post-formats','comments','revision'),   I've also tried a few functions like this:  function default_comments_on( $data ) { if( $data['post_type'] == 'your_custom_post_name' ) {     $data['comment_status'] = 1; }  return $data; } add_filter( 'wp_insert_post_data', 'default_comments_on' );   But nothing seems to work.Here is my custom post type:  function spark_register() { $labels = array(     'name' => _x('Spark Garden', 'post type general name'),     'singular_name' => _x('Spark', 'post type singular name'),     'add_new' => _x('Add New Spark', 'sparknz'),     'add_new_item' => __('Add New Spark'),     'edit_item' => __('Edit Spark'),     'new_item' => __('New Spark'),     'view_item' => __('View Spark'),     'search_items' => __('Search Sparks'),     'not_found' =>  __('Nothing found'),     'not_found_in_trash' => __('Nothing found in Trash'),     'parent_item_colon' => ''   );  $args = array(     'labels' => $labels,     'public' => true,     'has_archive' => true,     'publicly_queryable' => true,     'show_ui' => true,     'query_var' => true,     'rewrite' => true,     'capability_type' => 'post',     'hierarchical' => false,     'menu_position' => 8,     'supports' => array('title','editor','thumbnail','tags','post-  formats','comments','revision'),           'taxonomies' => array('post_tag'), );  register_post_type( 'spark' , $args ); }   add_action('init', 'spark_register');   I've tried adding to 'twentysixteen' and activating but that still doesn't show the comments by default. I have it checked to allow comments in my settings, it does appear in my regular 'post' post type, but in my cutom post type the discussion checkbox is not checked and comments are not showing by default?  Thanks in advance..


Index of a sublattice in a lattice and a homomorphism between them

I am asked to show that if $\phi_A$ is the homomorphism from $\mathbb{Z}^k \rightarrow \mathbb{Z}^k$ given by $\phi_A(x)=xA$ then the index of $\phi(\mathbb{Z}^k)$ in $\mathbb{Z}^k$ is finite if and only if $A$ is nonsingular.    While this seems intuitive to me, one obstacle to proving this is that I am not quite sure of how to represent the index of a sublattice in a lattice! The way I understand it, $j\mathbb{Z}^k$ has index $j^k$ in $\mathbb{Z}^k$, for an integer $j$. I am used to indices in finite groups but not infinite groups, so is the trick to show this sort of correspondence?  Furthermore, I would like to know if this is a valid sketch of a proof:   If $A$ nonsingular, $A'$ is in Smith Normal Form ($PAQ=A'$) and $\det A'$ is nonzero, so the columns of $P^{-1}$ form a basis for $\mathbb{Z}^k$ and the columns of $AQ$ form a basis for the sublattice such that each column in the basis for the sublattice is an integral multiple of the columns in the basis for the lattice $\mathbb{Z}^k$, and since these multiples are given by the diagonal entries of SNF, we have that for every one point in the sublattice, there are $\prod a_i=\det A'=\det A$ points in the main lattice. If $A$ singular, we have the same as (1) except now at least one of these columns is a multiple $0$ times the column for the basis in the main lattice, so there are infinitely many points in the main lattice for each point in the sublattice.


how to convert a formula stored in a string to double?

I have a string with values stored as:  string formula = "(10.5+10.5)/(2*5)";   double a=convert.ToDouble((10.5+10.5)/(2*5)) is working fine but i need to solve it like double a=convert.ToDouble(formula). Is it possible? I'm geeting error input string is not in correct format.


The Uniqueness of a Coset of $R[x]/\langle f\rangle$ where $f$ is a Polynomial of Degree $d$ in $R[x]$

Suppose $R$ is a field and $f$ is a polynomial of degree $d$ in $R[x]$.  How do you show that each coset in $R[x]/\langle f\rangle$ may be represented by a unique polynomial of degree less than $d$?  Secondly, if $R$ is finite with $n$ elements, how do you show that $R[x]/I$ has exactly $n^d$ cosets?


Do I need to place a comma before 'and'? 'Trelawny buys a schooner(,)and, with the help of Long John Silver, he puts together a crew.'


What will happen if you drive a car at the speed of light and keep headlights on?   Will it be behind the car or just work like normal?


Totally new to Ubuntu. Need help with nVidia drivers

I'm very new to Ubuntu.  After a fresh install of Ubuntu 14.04 LTS x64, what are the steps I should take to install the nVidia graphics drivers?  I'm using a Gigabyte 980Ti G1 Gaming.  I've been going around and trying different ways. But every time after having installed a driver it forces my screen to a very small resolution.  So I just want to know the steps that you take to successfully install the drivers and getting them to work, in the hope that I can finally continue using Ubuntu for my project.


Casting float to int gives different results


Does $\sum_{n=1}^\infty \frac{\cos(\ln(n))}{n}$ converge?

EDIT: the question is answered here    Using integrals, I managed to prove that $$\displaystyle \forall m, \sin(\ln(m+1))\leq \sum_{n=1}^m \frac{\cos(\ln(n))}{n}\leq 1+\sin(\ln(m))$$ and I noticed that $\sin(\ln(m+1)) - \sin(\ln(m)) \to 0$  I tend to believe that the series diverges, but I  can't prove it with the previous inequality.


When to rationalize numerator and/or denominator?

Sometimes, we have to rationalize either the numerator or the denominator, and sometimes we can still work the problem without rationalizing. So, in some cases, rationalizing can be done, although it is not necessary, but if it is done, it will be equivalent to the original function, correct? Will it be equivalent to the original function at all points?     This is a very general question: when do we have to rationalize either the numerator or denominator, and when can we still work the problem without doing so? By "general question", I'm interested in various fields of mathematics, not necessarily examples from calculus or algebra. Can you provide some examples/explanations? Thank you!  EDIT: please don't close the question. I'm interested in various explanations to understand better the concept of rationalizing.


OS: Ubuntu 18.04    I used to always use the shortcut Ctrl+Alt+F1 to log out of my main user, which will show the GUI listing all users you can login to. However, one day I pressed those keys and suddenly a black screen similar to teletype appeared. The keyboard shortcuts must have reset to default somehow. Even though I don't remember setting Ctrl+Alt+F1 as a special shortcut to log out, which would replace Ctrl+Alt+Del, I imagine the only possible explanation is that I did set that keyboard shortcut to log out, and that it is not the default keyboard shortcut.   I read these two posts:      So, I now understand that, in 18.04, the following shortcuts are available: Ctrl+Alt+F2 exits teletype. Ctrl+Alt+F3-6 takes you to tty3-tty6.    Most AskUbuntu posts I found explain these shortcuts for versions of Ubuntu older than 17.10, so they are not that useful in this case. My question is, what does Ctrl+Alt+F1 do on Ubuntu 18.04 ? (What is that black screen with 15-20 lines of white text that do not let you type in any input? )    And, what does Ctrl+Alt+F7 do on  Ubuntu 18.04?


Make it easier for 20k users to downvote-and-delete

Users with the  privilege (20k rep on most sites, 4k on beta sites) get some handy extra powers.  Among them are:        Voting to delete answers with score of -1 or lower   Voting to delete questions with a score of -3 or lower immediately after they are closed       Both of those abilities depend on the post score, so, if the post is just one downvote away from being eligible for deletion, as a 20k user I can just downvote it, refresh the page and vote to delete it.  This is pretty useful, especially when cleaning up useless crap answers, since those often have no upvotes or downvotes (because most people rarely downvote), and thus sit at score 0.  The only annoying bit in the process is the extra page refresh needed to actually bring up the "delete" link.  There's no real technical reason for it — the AJAX back-end can accept a delete vote just fine as soon as the post has been downvoted.  It's only the link that's missing from the UI.  (And yes, it really is just the link that's missing; the scripts needed to make it work are already there.  If you use developer tools to copy a delete link from another post, and just change the post ID, it will work just fine.)  If downvoting a post makes it eligible for delete votes, please make the "delete" link appear immediately, without requiring a page refresh.


Imagine I have a very long list of images and I want to rank them in order of how 'good' people think they are.  I don't want to get users to assign scores to images outright (1 - 10 etc) and order by that, I'd like to try something new.  What I was thinking would be an interesting way of doing it is:   Show a user two random images, they pick the better one Collect lots of 'comparisons' Use all the comparisons to come up with some ordering   Turns out this is , for example (using features, not images), this appears to be the way  works.  My question is whether there's a good known way to take this long list of comparisons and build a relative ranking for all the images from them but not to the level of complexity found in the research papers.  I've read a bunch of  and research papers but I was wondering if there was any sample code out there people might recommend?


MacBook filesystem FFFFFFFF-FFFF-FFFF-FFFF-FFFFFFFFFFFF after deleting linux partition

So I have MacBook Air late 2015. I’ve been using bootcamp for a while.   Yesterday I installed rEFInd to use triple boot for Linux. Made partition for Linux. Later I decided to delete this partition and extended Macintosh HD. Later when I restarted MacBook it was not able to boot.   I used Internet Recovery and found some threads about this issue:      I tried:  diskutil umountDisk disk0     gpt remove -i 2 disk0   And when I try to:  gpt add -i 2 -b 409640 -s 322344416 -t 7C3457EF-0000-11AA-AA11-00306543ECAC disk0   it says not enough space or something like that. I got stuck in here.      I fixed my problem by this commands!!  gpt remove -i 3 disk0 gpt remove -i 2 disk0 gpt destroy /dev/disk0 gpt create -f /dev/disk0  gpt add -b 40 -s 409600 -t C12A7328-F81F-11D2-BA4B-00A0C93EC93B /dev/disk0 gpt add -b 409640 -s 322344416 -t 7C3457EF-0000-11AA-AA11-00306543ECAC /dev/disk0 gpt add -b 361738240 -s 128495616 -t EBD0A0A2-B9E5-4433-87C0-68B6B72699C7 /dev/disk0   After this commands I was able to boot in macOS, no data loss or anything but unfortunately 20 gb is missing from Macintosh HD which was Linux partition at first. After booting to macOS I tried to sudo diskutil apfs resizeContainer disk0s2 0 but it didn’t work. Also Windows Bootcamp is not working properly: when I boot in Windows 10 it says Error code 0xc000000e.


Why would a journal accept my previous paper for publication, but reject latest manuscript due to being "outside of the journal's scope?"

I submitted a manuscript last year to an IEEE journal, and the paper was accepted for publication. I recently submitted a new manuscript to the same journal, but, this time, the paper was rejected, and I was told that I should submit to another journal since my paper was not within the journal's scope. The two papers both target similar applications. Furthermore, the second paper uses some work in the first paper, making substantial improvements at solving a much more difficult problem. Based on the reviewer's comments (and my own personal assessment), I do not believe that the work presented in the second paper was "incremental" in nature. Far from it. Two of the three reviewers gave positive reviews. The third reviewer, however, mentioned the "outside of journal's scope" issue and the associate editor and editor-in-chief both sided with the 3rd reviewer, and the paper was stopped dead in its tracks.  I'm scratching my head trying to come to terms with how in the world my first paper could be accepted by this journal, but the second paper focused on the same application space and achieving substantial improvements on a much more difficult problem (backed up with measured results) could be rejected. Any ideas?


What are the different ways in declaring functions in javascript and when to use which?

I see that in javascript, sometimes you can write  function thisIsMyFunction(options) {}  and u can write  var myFunction = function(input) {}  also you can write  function() {}  When are the different declaration used?


Will a hole cut into a metal disk expand or shrink when the disc is heated?

Take a metal disc and cut a small, circular hole in the center. When you heat the whole thing, will the hole's diameter increase or decrease? and why?  What will happen to the  diameter of disc?


He looked the same “as she” or “as her”?

"He looked the same as her" or is it "He looked the same as she"  I thought the rule was to complete the clause to figure this out such as "He looked the same as she looked" in which case the answer would be "she" but I'm fighting this conclusion because it just sounds wrong.


I'm currently studying this for an exam and I was wondering why the definition states: "Let E be a Banach space, then it's called reflexive if the canonical injection $J:E\rightarrow E^{**}$ is surjective."  Why must $E$ be a Banach space? My guess is that if $E$ isn't a Banach space then there's some way to see that $J$ can't be surjective, is it correct? How?  Thank you in advance!


What does it mean to have a high/low value for a sample in the 1st principal component?

I applied PCA on an $n\times p$ matrix where $n$ means the number of samples and $p$ means the number of variables, and I am using the 1st principal component (PC) as the new representation of the entire dataset. I confirmed that the 1st PC has the highest variance among all PCs, as expected. But I don't know how to interpret the values in the 1st PC, while before applying PCA a negative or positive value had a meaning. I observed that row means of the original data has a $-0.99$ correlation with the 1st PC, meaning that if a sample had a positive value across all variables, then this sample had a highly negative value in the 1st PC, while a consistent negative value across variables in the original data corresponds to a highly positive sample in the 1st PC. This is extremely confusing. How can I interpret that behavior?  I also realized that all loadings for the 1st PC are negative. I think this might be related to what I observe. Any thoughts?


If ‘i’was invented to take the square roots of negatives, why can’t we invent a concept to divide by zero?

As explained in the title, if i is used to simplify expressions involving the square root of a negative number, is there another concept which allows us to simplify expressions involving zero on the denominator?


NetBeans 8.1 not starting up on Ubuntu 16.04

When starting  netbeans from the terminal, the following error is received.  rishabh@rishabh-HP-Notebook:~$ netbeans WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by org.netbeans.ProxyURLStreamHandlerFactory (file:/opt/netbeans/platform/lib/boot.jar) to field java.net.URL.handler WARNING: Please consider reporting this to the maintainers of org.netbeans.ProxyURLStreamHandlerFactory WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations WARNING: All illegal access operations will be denied in a future release


Is it possible to see tcpdump real source code?

Before question, my question article may have some incorrect content. I am a linux newbie and a newbie developer.   I have a question regarding linux tcpdump source code. As I know tcpdump is implemented using libpcap.   How tcpdump is work? My opinion is that since tcpdump binary executable file is set in PATH. right? My main question is that where is tcpdump c source code? I already knew tcpdump library code which is accessible tcpdump homepage       I want to see tcpdump real c code containing main function, variable header files. Please let me know the location.    I use Ubuntu 16.04 LTS.


Developing Xamarin apps for iOS using a VM with OS X installed

I am interested in developing for Xamarin, but I only have a W10 laptop and no MAC. I have seen different answers to questions very similar to this one like these: , . Even though the accepted responses say it can't be done there are some others good answers that say it can be done. So my question is:  How can I develop iOS apps in Xamarin for Visual Studio 2015 without a MAC available, using some virtualization technology (thinking VMWare/VirtualBox since I don't have any experience in Hyper-V)?


For visual purposes why is there a strong and bold html tag?

Been doing html dev for 15 years and manage a ton of sites.  These tags functionally do the same thing to words.  I can style each similar in css.  I have even found uses for strong and bold by doing stuff like making strong show block lettering or a different color... but really I could have added a class for that.  Why do these exist?  How can I explain this to a new coworker learning html beyond "It's just another whacky/stupid thing you have to deal with and they are in effect the same thing?"  There is already a question- What's the difference between <b> and <strong>, <i> and <em>?   - This question is too old and references and answers are made using old html/css standards that no longer apply.  But this question has an answer that has 425 vote ups that is more or less marred with mistakes.  B and strong are not styles and are just tags that can be styles.  I understand the aspect of handicap reading but that didn't need a new formatting tag to accomplish that.


How much time for connection and customs in Charlotte?

My wife and I are flying back from Jamaica to Dallas through Charlotte with a 1-hour-14-minute connection. Do we have time to make our connection? We've never been to Charlotte.


Suppose you have a friend, named “Sam”. You know each other for example for 3-4 months. You see sometimes he plays some offensive practical jokes or makes some impolite advances to his friends and you do not like it at all. Even it seems too offensive for you. Anyway he has not played such jokes with you yet, (you just came across his jokes with some other people in the past.) Once when you are with a company of your common friends, he starts to play some unpleasant jokes with you in front of your friends. He says some offensive words (he thinks that these all are OK and kind of jokes and you can take these jokes. So everything sounds OK and fun for him up to now.) You “severely” dislike his behaviors. You are getting a little bit annoyed and perhaps angry. (But yet you are controlling yourself.) He sees you are getting upset and as another bizarre practical joke, with a loud laughter, he smacks on the back of your neck. I think saying "Sam, please don’t be overly friendly" sounds quite natural under these circumstances. Am I right? Any other suggestion will be welcome. ;)


Null Pointer exception while Fetching the file path from jfilechooser

On clicking the open button, I am trying to fetch the path of the file, including the file name I opened.  Code:  private void jFileChooser1ActionPerformed(java.awt.event.ActionEvent evt) {        JFileChooser chooser=new JFileChooser();     String path=chooser.getSelectedFile().getAbsolutePath();//error     System.out.println(path); }       But I am getting a null pointer exception in the commented (//errror) line.   Where am I going wrong?


Simple Age Calculator base on date of birth in C#

I have created a simple age calculator. I want to remove decimal places but the problem is when I substract now to bday.     example : I input 2012, 10 and 23 and the date now is 2014-10-22, So when 2014.1022 - 2012.1023 the result would be 1.9999... I want to remove all decimal places and remain the whole number 1, but the time I use String.Format("{0:00}" It rounds off the result to 02even when I use ConvertToInt32, I don't want to use  it needs a lot of code.  Any Ideas?   static void Main(string[] args)         {             string year, month, day = string.Empty;             Console.WriteLine("Enter your Birthdate:");             Console.WriteLine("Year :");             year = Console.ReadLine();             Console.WriteLine("Month :");              month = Console.ReadLine();             Console.WriteLine("Day :" );             day = Console.ReadLine();             try             {                 DateTime date = Convert.ToDateTime(year + "-" + month + "-" + day);                  var bday = float.Parse(date.ToString("yyyy.MMdd"));                  var now = float.Parse(DateTime.Now.ToString("yyyy.MMdd"));                  if (now < bday)                  {                      Console.WriteLine("Invalid Input of date");                      Console.ReadLine();                   }                  Console.WriteLine("Your Age is " + (String.Format("{0:00}", (now - bday)))); //it rounds off my float                  Console.ReadLine();             }             catch (Exception ex)             {                 Console.WriteLine(ex.ToString());                 Console.ReadLine();             }          }   }


Commutative diagram Beamer pauses using \xymatrix

I want to make a commutative diagram that has pauses ingrained in them using the \xymatrix command.  I want to build up a diagram in my presentation piece-by-peace, but I'm not very sure how to make it happen.  Here's a picture of what I want to make.    However, I don't want to make it appear all at once.  I want to start from $X$, then show $f_0$ going to $Y_0$, then show $f_1$ going to $Y_1$, and then show $g_0$ going from $Y_1$ to $Y_0$, etc...  Any help on this would be greatly appreciated.  Here's a mini version of my file code for what I made:  \documentclass[10pt]{beamer}  \usetheme[progressbar=frametitle]{metropolis} \usepackage{amssymb,amscd,amsthm,amsmath,graphicx,color} \usepackage{booktabs} \usepackage{color} \usepackage[color,matrix,arrow]{xy} \usepackage{ragged2e} \usepackage[scale=2]{ccicons} %\usefonttheme{professionalfonts} % using non standard fonts for beamer %\usefonttheme{serif} % default family is serif %\usepackage{fontspec} %\setmainfont{Times New Roman}    \usepackage{pgfplots} \usepgfplotslibrary{dateplot}  \usepackage{xspace} \newcommand{\themename}{\textbf{\textsc{metropolis}}\xspace} \newcommand{\of}[1]{\left(#1\right)} \newcommand{\ofb}[1]{\left[#1\right]} \newcommand{\ofc}[1]{\left\{#1\right\}} \newcommand{\ofi}[1]{\left<#1\right>} \newcommand{\ofa}[1]{\left|#1\right|} \def\R{\mathbb{R}} \def\N{\mathbb{N}} \setbeamertemplate{theorems}[ams style] \newtheorem{thm}{Theorem} \newtheorem*{thm*}{Theorem} \newtheorem{proposition}[theorem]{Proposition}  \begin{document}  \maketitle  \begin{frame} \pause \xymatrix{ & & & & & & X \ar[dllllll]|-{f_0} \ar[dlllll]|-{f_1} \ar@{.>}[dllll] \ar[dlll]|-{f_k} \ar@{.>}[dll] \ar[dl]|-{f_{i-1}} \ar[dr]|-{\color{red}{f_i}}\\ Y_0 & \ar[l]^{g_0} Y_1 & \ar@{.>}[l] \cdots & \ar[l]^{g_{k-1}} Y_k & \ar[l]^{g_k} \cdots & \ar[l]^{g_{i-2}} Y_{i-1} & & \ar[ll]^{\color{red}{g_{i-1}}} \color{red}{Y_i} } \end{frame}  \end{document}


Choosing lens for a studio to record classes

I'm building a home studio to record Math classes: I have a blackboard (1,90m width by 1,20m height) and the distance from the camera to the blackboard would be around 1,80m (on a tripod, 1,70m from the ground).  How can I calculate the lens I should buy to record the full width and height of the blackboard?  I'm planning on buying a Canon 70D for the studio.  Thank you.


How to get parent custom field from attachment

I am able to get standard field of parent object in attachment:  SELECT Id, Parent.Name, CreatedBy.Name FROM Attachment   But how to get custom field from parent attachment, something like:  SELECT Id, Parent.Name, CreatedBy.Name, Parent.Custom_Field__c FROM Attachment   How can I achieve this?


How long exposure to microwave radiation is considered dangerous?

Today I wanted to heat my breakfast in the microwave, when the microwave finished heating my food I pressed the button to open the door, but at that moment the microwave turned again, with the door a little open, then stopped when I opened completely the door. All this happened in a span of 1.5 ~ seconds. I know the exposure was short, but I really want to know if I'm in any danger.


Regular expression to match start of filename and filename extension

What is the regular expression to match strings (in this case, file names) that start with 'Run' and have a filename extension of '.py'?  The regular expression should match any of the following:  RunFoo.py RunBar.py Run42.py   It should not match:  myRunFoo.py RunBar.py1 Run42.txt   The SQL equivalent of what I am looking for is ... LIKE 'Run%.py' ....


Badge overflow on users with too many badges

When a user has "too much" reputation and "too many" badges, the design of the user card breaks:    The badge counters overflowing to another line. Can anything be done about this? For example, expanding the rep and badges to their own lines:  NameRepBadges


Redefining "cited on" string (and others) in biblatex

I'm trying to modify the strings biblatex uses to set the "cited on" string used in the bibliography to identify the pages where a given references has been cited.    What I gather from the biblatex documentation (e.g., § 4.9.2.16) is that something like   \renewbibmacro{backrefpage}{<newtext>} \renewbibmacro{backrefpages}{<newtext>}   ought to work, but they have no effect for me (I'd also like to get this working for the "visited on" string, urlseen).  My MWE is unchanged from , with the addition of these (and related lines) just about anywhere.


I have a menu which works perfect for 1st and 2nd level only, but I need to go deeper and show all sub levels. Maybe it's better to use JQuery function, but I don't know how!  The menu is something like this when it loads:  UPDATE The code that generates sub levels:  foreach ($categories as $category) {     $data['x'] .= '
' . $category['name'] . '
'; }   The code which generates ROOT categories:
     <?php foreach ($categories as $category) { ?>
<a id="<?php echo $category['category_id']; ?>" class="list-group-item active"><?php echo $category['name']; ?>
     <?php } ?>
   Compiled PHP - HTML:

Machinery

Agriculture Machinery Equipment

Apparel Textile Machinery

Building Material Machinery

Packaging &amp; Printing

Mechanical Parts &amp; Fabrication Services

   To achieve this, I'm using such a script:      I tried different ways to get access to 2nd level but it's not successful, I tried many different things.


What vs. Which - correct usage in questions

Today I found myself in a situation that I asked "Which class" to a friend who said that "we are going to the class". Then one of my friends said that I should ask "what class" and another one said both (what class and which class) are correct. Who is right?  This issue I meet often when I'm talking about things, such as:      What day/ which day?      What floor / which floor?      what teacher / which teacher?      What page / which page?      What place / which place?      What line (bus) / Which line?      What /which sentence (do you agree with)?


Fancyhdr header and footer size and font

I am having a hard time formatting fancyhdr's header and footer. I have tried \small or \fontsize{6}{6}... I can't change it.  Here is my code :  \documentclass[12pt,twoside,draft]{book} \usepackage{fancyhdr} \pagestyle{fancy} \usepackage[T1]{fontenc} \usepackage{tikz} \usepackage{titlesec}   % ************************** % Taille de la page et marges % **************************  \usepackage[paperheight=240mm,paperwidth=160mm, left=22mm, right = 20mm, top = 20mm, bottom = 22mm]{geometry}   % ************************** % En-têtes et pieds de page % **************************  \renewcommand{\headrulewidth}{0.3pt} \renewcommand{\footrulewidth}{0pt}  \renewcommand{\sectionmark}[1]{\markright{#1}}  \let\Subsubsectionmark\subsubsectionmark \def\subsubsectionmark#1{\def\Subsubsectionname{#1}\Subsubsectionmark{#1}}  \fancyhead[LO]{ \textsc{\Subsubsectionname}} \fancyhead[RO]{} \fancyhead[C]{} \fancyhead[LE]{} \fancyhead[RE]{\rightmark}  \fancyfoot[LO]{} \fancyfoot[LE]{\fontsize{6}{6} \thepage} \fancyfoot[C]{} \fancyfoot[RO]{\small \thepage} \fancyfoot[RE]{}    % ************************** % Alignement du headerfooter % **************************  \newlength\FHoffset \setlength\FHoffset{0mm} \addtolength\headwidth{2\FHoffset} \fancyheadoffset{\FHoffset} \newlength\FHleft \newlength\FHright \setlength\FHright{19mm}  \newbox\FHline \setbox\FHline=\hbox{\hsize=\paperwidth% \hspace*{\FHleft}% \rule{\dimexpr\headwidth-\FHleft-\FHright\relax}{\headrulewidth}\hspace*{\FHright}% } \renewcommand\headrule{\vskip-.7\baselineskip\copy\FHline}   % Font formatting packages  \usepackage{gensymb} \usepackage{anyfontsize}   \begin{document}   \end{document}     Does anyone have an idea how to do this? Thanks in advance !


Is it possible to install Python 3.x in 14.04 LTS, or upgrade from Python 2.7.6 to 2.7.8?

I'm looking to pick up some programming skills and after looking into it a bit, I came across an article that recommended that I learn Python as a way of getting started at programming before moving on to other languages. I realize Python 2.x.x is preinstalled in Ubuntu, but I was wondering if it's possible to upgrade to Python 3.x.x as the site's documentation seems to indicate that 3.x.x is where the language is going in the future.  Failing that, how do I update Python 2.7.6 to 2.7.8?


How to produce a more condensed document using ieeetran class?

I am revising a document based on the referee's comments. They wanted a list of things to add to a paper otherwise full of mathematical and textual material in just 14 pages using the ieeetran class.  Is there any method for making ieeetran produce a more condensed output? Are there any strategies for making a manuscript more condense while preserving the same material?


Badges not styled according to the site where they're earned

I've earned some badges on both  and . When visiting , I found badges belonging to  became a shield, and vice versa. (Badges on  are circles, while  has shield-like badge icons.)  I think what badges appears to be should be more consistent: they should be styled depending on the site where they're earned, rather than the site users are currently visiting.


A cancer test is 90 percent positive when cancer is present. It gives a false positive in 10 percent of the tests when the cancer is not present. If 2 percent of the population has this cancer what is the probability that someone has cancer given that the test is positive?   I multiplied the 90 by 10 divided by 90 times 10 plus 2.


Number of components of the linear group.

A bit of context. I am reading about differentiable manifolds and the author gives examples, including GL, OL, SO and SL and he then proves SO is compact and connected but doesn't do the same about GL or SL and I thought a bit of it and have the following ideas. Essentialy, I believe GL can be split into positive and negative determinant and each one of these is like the union of homotheties of SL, which makes me think of SL as a "sphere", so I want to show it is connected to prove these components of GL are connected.  --  Consider the linear group of real linear functions $\mathbf{GL}(\mathbf{R}^d) = \mathbf{GL}.$ Define $\mathbf{GL}_\pm$ as those linear functions whose determinant  is $\pm,$ accordingly. We endow $\mathbf{GL}$ with the structure of Lie group. Define $\mathbf{SL}$ to be the kernel of the determinant, the latter being an (analytic) diffeomorphism makes of $\mathbf{SL}$ a Lie subgroup of $\mathbf{GL}.$ Similarly, $\mathbf{GL}_\pm$ is the inverse image of the open set $\pm (0, \infty)$ by the determinant, making $\mathbf{GL}_\pm$ also a submanifold of $\mathbf{GL}$ (in fact, $\mathbf{GL}_+$ is a Lie subgroup).  I originally thought of this: using (canonical) coordinates, the determinant is a polynomial and the linear functions in $\mathbf{SL}$ satisfy the relation $\det f = 1,$  which shows $\mathbf{SL}$ is a compact (becasue $\det f = 1$ is a closed and bounded subset of $\mathbf{R}^{d^2}$). However, the comment below says $\mathbf{SL}$ is not compact. What is wrong with this argument?     How to show $\mathbf{SL}$ is connected?   Consider the function $m:\mathbf{R}_+^* \times \mathbf{SL} \to \mathbf{GL}_+$ given according to the rule $m(t, f) = tf.$ Clearly, $m$ is an action that is differentiable (I believe it is even analytic, but I don't care). Since $m$ is surjective (for if $f \in \mathbf{GL},$ then $t f$ has determinant $t^d \det f$ and $t$ can be chosen to make $t^d \det f = 1$), it would turn out $\mathbf{GL}_+$ is connected having the connectedness of $\mathbf{SL}.$


Is Linear transformations $T_1,T_2 : \mathbb{R}^n\rightarrow \mathbb{R}^n$ Invertible?

Let $T_1$ and $T_2$ be two Linear transformations from $\mathbb{R}^n$ to $\mathbb{R}^n$.  Let $\{x_1,x_2,\cdots,x_n\}$ be a basis of $\mathbb{R}^n$. Suppose that $T_1(x_i)\neq 0$ for every $1\leq i\leq n$ and that $x_i\perp Ker (T_2)$ for every $1\leq i\leq n$.   Which of the following is true?   $T_1$ is invertible $T_2$ is invertible Both $T_1$ and $T_2$ are invertible Neither $T_1$ nor $T_2$ is invertible.   As $T_1(x_i)\neq 0$ for each $1\leq i\leq n$ we do not have $T_1(a_1x_1+a_2x_2+\dots+a_nx_n)=0 $ unless each $a_i=0$ i.e.,$a_1x_1+a_2x_2+\dots+a_nx_n=0$ i.e., $T_1$ is one one thus invertible.  I am not sure if $T_2$ is invertible or not.  we have $x_i\perp Ker (T_2)$ for all $x_i$. Would that be a good idea say something like  $\langle x_i :1\leq i\leq n\rangle \perp Ker(T_2)$ and as they span whole space we would have   $\mathbb{R}^n\perp Ker(T_2)$ and thus $Ker(T_2)=0$ so it is injective so it is invertible...  Thus both $T_1$ and $T_2$ are invertible?  I would be so thankful if someone can assure what it has been done here is sufficient/clear.  THank you


The tags at Stack Exchange search page are not linked properly

Try , for example.  And click on any one of the tags, it will result in a page not found error.


Inheritance in Java - creating an object of the subclass invokes also the constructor of the superclass. Why exactly?

I have a question about inheritance in Java.  I have two classes A and B , and class B, inherits from A:  public class A {      public A() {          System.out.println("Hi!");      } }   public class B extends A {      public B() {          System.out.println("Bye!");      }       public static void main(String[] args) {          B b = new B();      } }   When I run program B, the output is:  Hi! Bye!      Question : why the constructor of class A is invoked, when I create and object of class B ?    I know that B inherits everything from A - all instance or class variables, and all methods, and in this sense an object of B has all characteristics of A plus some other characteristics defined in B. However, I didn't know and didn't imagine that when I create an object of type B, the constructor of A is also invoked. So, writing this:  B b = new B();   creates Two objects - one of type B, and one of type A.  This is getting interesting,   can somebody explain why exactly this happens?


How would one make an if statement that would take user input and then take that word I asked them to use and choose between either the uppercase or lowercase version and still run the same line of code?  import java.util.Scanner; //text game practice  public class textGame {    public static void main(String[] args) {      Scanner scan = new Scanner(System.in);      int goblin;     int troll;     int spider;      System.out.println("Would you like to play as the Mage, Warrior, or Rouge?");     String line1 = scan.next();      System.out.println("Okay " + line1 + " what is your name?");     String name = scan.next();      if (name.equals("Mage" || "mage")) {         System.out.println("You are a mage named " + name + " from a small wizardry school in the north.");     }     if (name == "Warrior" || "warrior") {         System.out.println("You are a warrior named " + name + " fresh out of the new cadets at the Gambleton Outpost.");     }     if (name == "Rouge" || "rouge") {         System.out.println("You are a rouge named " + name + " you were trained by petty theives in the streets of Limburg.");     }         else {         System.out.println("You did not answer the question correctly please try again.");     }    } }


It seems that the commands \xrightarrow, etc. in mathtools package don't allow me to put text above or below two arrows (\rightrightarrows). Is there any way to do this with extensible arrows? A crude way would be  \overset{b}{\underset{a}{\rightrightarrows}}   but the arrows are not extensible. For that matter, it also doesn't support \twoheadrightarrow, etc.


Particle system doesn't affect part of mesh?

I'm trying to create a grass effect on a small landscape I've created. My current approach is to use a hair particle system, and style the hairs to look like grass. I've got a simple particle system added, and adjusted a few settings (note: I haven't made the grass green yet. It's just grey for now), but for some reason the particles don't go on certain parts of the mesh:  You can see that to the left of the "lake" there is a lot of missing particles, in triangular areas. Although this screenshot was taken in rendered 3d view, it also has the same issue when I press the render button and do a "true" render. Here's some of the geometry:   Any ideas why it isn't completely covered with particles?


Python program to translate a text into Swedish (robber's) language

I'm just new to python and I was trying to write this program but there is a error and I'm unable to sort it out.  I have seen some other programs on internet for performing this, but all of them has some different logic.  Here the logic that i'm thinking is, if any of the letter in the string a is a vowel then I'll store in string b as it is and if its a consonant then I'll append three more letters to it.  I know I'm doing something wrong with the string but still I'm unable to figure it out.  The program is :-  a = "" b = ""   def translate(a):     for i in a:         if (i == 'a' or i == 'e' or i == 'i' or i == 'o' or i == 'u'):             b = b + i         else:             b = b + i             b = b + "o"             b = b + i           #  b.append("   ")           #  b[-3] = b[-1] = i           #  b[-2] = 'o'     return b a = input("Enter a string in English : ") a = a.lower() string = translate(a) print("The Sring in spanish language is ", string)   Error in this program is : -  amitwebhero@AmitKali:~/python/python_home_work$ python3.5 5.py  Enter a string in English : amit upadhyay Traceback (most recent call last):   File "5.py", line 19, in <module>     string = translate(a)   File "5.py", line 8, in translate     b = b + i UnboundLocalError: local variable 'b' referenced before assignment   Thank's


How do I unset an element in an array in javascript?

How do I remove the key 'bar' from an array foo so that 'bar' won't show up in  for(key in foo){alert(key);}


I have installed youtube-dl but I can not find out how to use it

Hello I have downloaded youtube-dl through the terminal but I can not use it. I can't even find the icon for it on my screen. Help, please.


My website is listed on Google fine but not showing in search result

Hostokay(.)com  I have added my site to Google webmaster and there is no errors but Google shows only home page link when i search for my site in Google search.  Inner pages are not showing.  I have well structured site with XML sitemap and valid robots.txt file, nothing is blocked in Google crawl   Please suggest any edit in my site.


I have one question, is it possible to download .apk file from Google Play directly to the PC (without any ADB or device emulators?) I have tried this one ->  but I can't download the app that I need. (I want to download it for my research, but I can't do it ), Also I have read about Chrome/FF extension which helps to download apps, but i need to insert my credentials to this extension (GMail for account + device id), and I don't think that is a good idea for safety.  So does anyone have any other ideas about my question?


Morita equivalence and right and left ideals of a Ring

I have been thinking a bit about Morita equivalence   and I would like to know whether it also applies to subrings such as right or left ideals.  And, if so, how specifically? Could you illustrate if with the example of 2x2 matrices with zero entries in the bottom row? Since Morita equivalence concerns non-commutative rings, I am assuming it should apply, but I am just guessing.  Thanks in advance.


Can I view Shared Albums in the iCloud Photos web interface?

I just switched to using the iCloud Photo Library and I enjoy the possibility to view my photos on any computer via the icloud.com web interface.  However, my  do not appear in the iCloud Photos web interface.  Is that a limitation of icloud.com, or are there any steps to enable shared albums on icloud.com?


"Have you gone" vs. "have you ever gone"

When talking about past experience, what is the difference between these two sentences?        Have you gone to Hong Kong?   Have you ever gone to Hong Kong?


I have read in textbooks (such as Griffiths electrodynamics) that magnetic forces do no work. Then i don't see how a magnetic force does no work when a magnet is attracting or repelling another magnet. Can anybody explain me this?


So I've tried new Gmail design. I couldn't believe it was that ugly and unpleasant to use.  How to roll back to previous normal Gmail design?  New Gmail design: