I'm trying to change the submit button text "Save and keep published", but with no luck. I'm using the standard hook_form_FORM_ID_alter().   function mymodule_form_node_news_form_alter(&$form, \Drupal\Core\Form\FormStateInterface $form_state, $form_id) {   // This is the problem, what should I put here   $form['actions']['publish']['#value'] == ''; }   This is what dpm() returns.  'publish' => array(7)   '#value' => object Drupal\Core\StringTranslation\TranslatableMarkup(5)     protected string -> string(18) "Save and keep published"     protected translatedMarkup -> NULL     protected options -> array(0)     protected stringTranslation -> NULL     protected arguments -> array(0)   How do I change text on the submission button in the node form?


Get all results of a One to many in 1 result

I am trying to get all matching results from a one to many relationship in 1 result.  Table structure  Users              owr_rosterdata                --------           --------                  id| name           id | user | info -----------        --------------------- 1 | nealvdv        1  | 1 | aaaa 2 | another        2  | 1 | bbbb                    3  | 2 | cccc                    4  | 2 | dddd   My current query is something like this (without the WHERE clauses)          "         SELECT owr_rosterdata.*, users.id, users.name FROM owr_rosterdata          INNER JOIN users ON owr_rosterdata.user = users.id         "   Current output  User 1: 1, nealvdv, aaaa  User 1: 1, nealvdv, bbbb  User 2: 1, another, cccc  User 2: 1, another, dddd     The whole point of this query is to avoid having multiple queries to   get all matching results of a user into 1 result.   Desired output  User 1: 1, nealvdv, aaaa, bbbb  User 2: 2, another, cccc, dddd  Thank you for any suggestions!


The neutrino decoupling and the photon decoupling happened after the big bang, though at different times. The CMB is very detectable, and although there is no universal reference frame, the CMB is quite often used as some kind of a reference frame.    Now theoretically it is possible that in the future we will be able to detect the CNB, though these neutrinos are much less energetic then the ones currently detected.     Big Bang cosmology makes many predictions about the CνB, and there is very strong indirect evidence that the cosmic neutrino background exists, both from Big Bang nucleosynthesis predictions of the helium abundance, and from anisotropies in the cosmic microwave background.     My question is whether the CNB should be comoving with the CMB or, different from the CMB?  Question:   Should the CNB be comoving with the CMB?


I have dell latitude e4300 core 2 due laptop.  I installed Ubuntu mate 16.04 and properly updated it, but for the past week, the taskbar has not been displaying and other options are not appearing. I have updated it, but problem is not solved.


Getting from Canada to Greenland without flying

Is there a way for me to get to Greenland from Canada without flying? Basically I'm looking for it to be as cheap as possible.


Weird. My Flair now reports the rep from ALL of my SE sites

I just noticed that my flair no longer shows just the pictures and summed reputation from sites that I have 200+ rep. Instead, it's summing the reputation from all of my registered sites (and showing as many site pictures as it can fit), regardless of my total reputation at those sites.  However, the flair page still says:     please note that only sites where you have more than 200 reputation will appear   My flair was not doing this as of earlier this week.  Is this a bug or did the policy/mechanics of how flair works change?


25 horses, 5 race tracks; we need to choose the top 3 horses. What is the minimum number of races you need?  I have thinking deeply and figure out this: First race all 25 horses in groups of 5 to figure out the top 3 in each group (which will leave 15 horses). Call them: A1 B1 C1 D1 E1 A2 B2 C2 D2 E2 A3 B3 C3 D3 E3 Here, A1 is faster than A2. A2 is faster than A3. The same applies for the rest of the groups. Now race A1, B1 C1 D1 E1 Lets say the order of the horses according to ranking was A1, B1,C1,D1,E1  So A1 is No 1. Now A1 is faster than B1 and B1 is faster than C1. So we can get rid of the entire D and E groups. 9 horse remain. Also, A1 is faster than B1 and B1 is faster than C1. So we can get rid of C2 and C3. Now 7 horses remain. A1 is faster than B1. B1 is faster than B2. Get rid of B3, and 6 horses remain.  Out of these, we know A1 is the fastest. So now race A2, A3, B1,B2,C1 to figure out No 2 and No 3 positions.


Limit $\frac{n^{2k+1}}{2k+1}\log(n)-\frac{n^{2k+1}}{(2k+1)^2}$ to evaluate the integral $\int_0^{\infty}\frac{\log x}{x^2-1}dx$

Evaluate the integral $$I=\int_0^{\infty}\frac{\log x}{x^2-1}dx$$   Attempt: $$I=-\int_{0}^{\infty}\log(x)\sum_{k=0}^{\infty}x^{2k}dx=-\sum_{k=0}^{\infty}\lim_{n\to\infty}I_n$$ where $I_n=\int_{0}^nx^{2k}\log(x)dx$.   For computing $I_n$, let $u=\log(x)$ and $dv=x^{2k}dx$. Then $du=(1/x)dx$ and $v=x^{2k+1}/(2k+1)^2$. So,  \begin{equation} I_n=\frac{x^{2k+1}}{2k+1}log(x)-\frac{x^{2k+1}}{(2k+1)^2}\Bigg|_{x=0}^{x=n}=\frac{n^{2k+1}}{2k+1}log(n)-\frac{n^{2k+1}}{(2k+1)^2}-\lim_{x\to 0^{+}}\Big(\frac{x^{2k+1} }{2k+1}\log(x)\Big)\end{equation} On the other hand, $$\lim_{x\to 0^+}x^{2k+1}log(x)=\lim_{x\to 0^+}\frac{1/x}{1/x^{2k+1}}=\lim_{x\to 0^+}\frac{x^{2k+1}}{-2k-1}=0$$ So we have $$I_n=\frac{n^{2k+1}}{2k+1}\log(n)-\frac{n^{2k+1}}{(2k+1)^2}$$ Now we need to compute $\lim_{n\to\infty}I_n$. But I'm stuck here. How can we compute this limit? And can anyone check my attempt? Thanks!


Software Updater is empty in Xubuntu 13.04

I have just installed xubuntu 13.04 on an old laptop, and once a day I get the notification that updates are available.   But When I open Software Updater, it shows that there are some updates, but the list is empty:   What do I need to do to see the names of the packages that have updates?  There are a few similar question already, but they do not solve my issue.    suggests reinstalling gtk3-engines-oxygen but that package is not installed, so it cannot be removed.  talks about apt-get upgrade. I have tried that, but it does not solve the issue.


Connecting to Oracle database with ArcGIS for Desktop?

I installed ArcGIS 10.2.2 ,oracle 11g R2 personal edition and it's client.I try to connect to the database using database connection in ArcMap but the error      Failed to connect to the specified server. Do you want to continue?   Cannot connect to database because the database client software failed   to load. Be sure the database client software is installed and   configure correctly.   raised when i want to connect . How to solve the problem ?


Ubuntu bluetooth audio, no sound after pairing

I've rarely used bluetooth on Kubuntu 14.04 and I'm trying to use a set of Bluetooth speakers (Loewe Speaker 2go). I've done the pairing with the wizard, and the device shows as an "Audio Sink", whatever that is. But no sound comes out. In the [Audio Setup], [Device preference] doesn't show that device, neither does the [Audio Hardware setup]. The backend is GStreamer.  What am I missing ?


How do I get a mesh data-block with modifiers and shape keys applied in Blender 2.8?

I'm trying to update an exporter to work with Blender 2.8 but can't seem to get a mesh data-block modified by modifiers or shape keys. It always gives me the base mesh.  I'm currently using Object.to_mesh(). But reading Object.data or bmesh.from_mesh(obj) all returns only the base mesh. So what is the new function to call for getting a mesh data-block with the modifiers and shape keys applied?


How to add a Login / Logout link in Main navigation menu?

How can I add a Login link to the "Main navigation" menu?  When a user clicks on the link, it should take them to the /user/login page. Once they login, the link should change to say "Logout" instead of "Login".  Is there any way to add such a link?


I installed Node.js with:  sudo apt-get install nodejs   But when I type in a console node I get nothing, no command not found, no any error. But when I type nodejs I get the Node.js prompt >.  Now, I can't install anything with npm, I tried to install yeoman with: sudo npm install -g yo but I got an error, something related to node. I tried to change the command with:  sudo ln -s /usr/bin/nodejs /usr/bin/node   But still nothing happens when I type node  What is the right way to install Node.js on Ubuntu? Or what am I doing wrong? Or what am I missing?


Regular Expression for matching up to a character OR white space OR end of line

I'm a total regex noob and have been struggling with this problem for a while today. I have some content with urls in them. I'd like to simply extract these urls but I am having trouble selecting up to the end of the url.  I have a code sample here:   As you can see it doesn't select correctly, and the last url is not selected at all. Terrible :/  If anyone could steer me in the right direction I would really appreciate it  Update:  To not depend on the above link alone I thought I'd add the regex here as well. Here is the original regex for this question:  /(?:http|ftp)s?:\/\/\S*\.\S*(?="|<)/gi  Here is the content I am testing with:  Here is some content and url
http://www.something.com/index.html

Some more content http://www.something.com/some/path/here.html
 Some more text http://www.something.com/something/somethingelse.html content  continued...


c++ prototyping classes, structs, and functions

I'm attempting to use a class inside a struct, which seems to be no problem if I declare the class first:  class Foo { } stuct Bar {     Foo example[5];    // array of Foos }   This seems fragile. It should work in whatever order like functions use prototypes for. I tried prototyping them, but this doesn't work.  class Foo; struct Bar;  stuct Bar {     Foo example[5]; } class Foo { }   Why doesn't this work?  Error code C2079 (on visual studio): 'Bar::Foo' uses undefined class 'Foo'. Error code C2148: total size of array must not exceed 0x7fffffff bytes. Both on the errors occur on Foo example[5];  Also, would it be appropriate to keep my function prototypes above the ADTs (abstract data types) so I can use the functions inside them, or should I write the function inside the ADT?


An automorphism of a finite group which sends more than three quarters of elements to their inverses

Question is :  Let $G$ be a finite group and suppose the automorphism $T$ sends more than three quarters of elements of $G$ onto their inverses.  Prove that $T(x)=x^{-1}$ for all $x\in G$ and that $G$ is abelian.  What I could see is...  Once I prove $T(x)=x^{-1}$ for all $x\in G$ then I would have that $G$ is abelian.  Because, for any $a,b\in G$ we have   $b^{-1}a^{-1}=(ab)^{-1}=T(ab)=T(a)T(b)=a^{-1}b^{-1}$  Thus, $ab=ba$ for all $a,b\in G$ Thus $G$ is abelian.  So, Only problem is to prove that $T(x)=x^{-1}$ for all $x\in G$  I am unable to use the fact that      "$T$ sends more than three quarters of elements of $G$ onto their inverses"   May be I should take  : $A=\{x\in G : T(x)=x^{-1}\}$ and see if this is a subgroup (It is Not) or something like that.  Please help me to clear this.  I am very excited about this question So please do not spoil my excitement by posting full answer at once (This is a request cum order).  Please help me to do this by myself.   Thank you so much :)


Why is the term "information" used to describe a physical system

(With apologies that my physics background is minimal...)  Why is the term "information" used to , such as the movement of air through a jet engine?   If I understand correctly, this is in part because Shannon's information theory can be used to analyze things like entropy in a system, but I wonder why specifically the term "information" is used. To a layperson suggests data and communication, and seems to be quite metaphorical rather than descriptive.  EDIT: , offers some answers related to my question but they are either far too short (ie just one sentence) or math-heavy. John Forkosh's excellent answer below gets to more of the "why would we call it information" that I'm curious about.


If I form alter a form, I see the form_id as MY_FORM_ID; I see this in the $form_id parameter to hook_form_alter as well as in the $form_state->build_info['form_id']. In the rendered output of the form, however, I see the id attribute has something like MY-FORM-ID--2, with a --INT modifier. If I output the same form twice on a page, while logged in the modifier is changed with each render (e.g. MY-FORM-ID--2 and MY-FORM-ID--4), however the modifier is not changed when viewing as anon. This creates an instance where two elements have the same id attribute which is no good! :(   Where does core add the modifier? How can I add a modifier?


What encryption options are available in SQL server standard edition?

I'm trying to look into what kind of encryption I can do with SQL server standard edition from 2008 and later.    So far, I know that I can't use Transparent Data Encryption (TDE) as that's part of Extensible Key Management (EKM).   When I look up this topic I'm getting the result that column encryption is possible, but then I also find that cell level encryption is sometimes referred to as the same thing and that it is also part of EKM.  These are the sources from which I'm getting the contradictory information:      Any clarity on this subject would be very helpful.


How does one create a Matrix Report to convert sql columns as rows?

I'm trying to create a product listing. Naturally Sql prints the data vertically forming rows after rows like this:  Rowa. product_img#1|Product_name|Product_price|Product_short_description Rowb. product_img#2|Product_name|Product_price|Product_short_description Rowc. product_img#3|Product_name|Product_price|Product_short_description Rowd. product_img#4|Product_name|Product_price|Product_short_description   and so on...  I'm trying to create a query so that I can display 3 products per rows like this:  Product_img#1|             Product_img#2|            Product_img#3| Product_name|              Product_name|             Product_name| Product_price|             Product_price|            Product_price| Product_description|       Product_description|      Product_description|   Looking up the web I found that what i'm trying to do is called pivot table. It was suggested to me to use a service report like SQL Server Reporting Services and create a Matrix Report to print the data the way I want it.  To be honest, I have no idea how to use those services and where to start... This is totally gibberish to me. I'm using Netbeans joined with Mysql. Where do I install those services and how do I use them?  Is there such kind of service integrated in Workbench? Any help/tricks/tips on how to achieve this would be gladly appreciated!


Quantum numbers $n$ and $\ell$ relation in many electrons atom

Solving the Schrodinger equation for hydrogen atom we arrive to the conclusion that quantum numbers $n$ and $\ell$ have the relation $$\ell=0,1,...,n-1.$$   Now,since we can not solve the Schrodinger equation for many electrons atoms we can approximate the potential $V(r_i)$ to be central than Hamiltonian becomes $$ \hat H= \sum_i \left( -\frac{\hbar^2}{2m} \nabla_i^2 +V(r_i) \right).$$  So for each electron we have the following equation  $$-\frac{\hbar^2}{2m} \nabla_i^2\psi_i +V(r_i)\psi_i=E\psi_i.$$  And solution is of the form   $$\psi_i=R_i^{n,\ell}(r)Y^m_{\ell}(\theta, \phi).$$  My question is why quantum numbers $n$ and $\ell$ have the relation $$\ell=0,1,...,n-1.$$  Is this an assumption or can we proof it?


How long should I wait before applying sealant to pressure treated deck lumber?

After reading several comments on how long to wait before applying a sealant, the recommendations were from 3 weeks to 2 years, some of the comments were from states other than where I live.  So does anyone know how long one should wait before applying sealant to pressure treated deck lumber in North Central Texas?


Is there a positive integer $n$ such that $\lfloor 10^n\pi\rfloor$ is palindromic?

$\pi$ is irrational, and of course its digits are not a repeating sequence. However I cannot wrap my head around the following...  Is there a digit $x$ in $\pi$ such that the digits before are repeated in reverse order after that digit? $$\pi = 3.14159\ldots zyxxyz \ldots 951413 [\ldots]$$ In other words, is there a positive integer $n$ such that $\lfloor 10^n\pi\rfloor$ is ?  $\pi$ has infinite digits, but it is unknown whether any sequence of digits will appear at some point. Moreover, this isn't just a requirement for $n$ digits appearing at some position, but for a sequence of $n$ digits has to appear at position $n$.


How to get "Don't Starve" game to work from its .rar file?

I am trying to get Don't starve for my Samsung Chromebook with Ubuntu and I can't figure out if i can play it since it's a .rar file. If anybody knows please let me know.


Double Icons of Favorite Applications in the Dock (Firefox Developer Edition) in Ubuntu 18.04

I'm having an inconsistent user experience here. This is how I've added Firefox Developer Edition (FDE) to the dock:   Searched for FDE in the search dialog brought up with the super key. Right-clicked the icon that came up (I made sure it wasn't some redundant .desktop file floating around on my disk but the actual application launcher). Clicked on "Add to favorites".   Now, when I'm starting the application from the dock (or by searching it in the dash - it doesn't matter), instead of using the existing icon in the dock, another redundant icon appears in the dock, which does indicate open tabs (windows) but the existing icon doesn't and becomes useless.  So, when the application is running, I end up having the FDE icon twice, which looks like this.    When doing the same thing for Chromium, only one icon appears in the dock and a red point left to it indicates open tabs (windows) as expected.  How do I debug this? Is this a known thing? Thanks for your help!


How do I set an environment variable in the shell to be result of python script?

If I run  export TEST=script.py echo $TEST   It outputs script.py  script.py code:  return 5   can TEST be set to 5? Obviously script will do something in future not just return a number


When I'm doing this in erlang, I got following result.  19> re:replace("(9 and 10) or (11 and 12)","(9 and 10)","13",[{return,list}]).   "(13) or (11 and 12)".   Is this correct?, why my answer isn't "13 or (11 and 12)" ?


Why those hexagons appears in sculpting mode?


How do i join 2 vertical windows on a mac with blender 2.78c? Seems to be getting harder and harder to accomplish!


Display the Number of Comment Upvotes In Recent Activity Pages

It would be helpful if we could see the number of upvotes cast for our comments, or other people's comments in response to us directly in the user profile in either the activity tab or the response tab respectively. It should be quite easy to implement (e.g. sharing a single partial view for displaying comments).  It could be useful, since we can evaluate the legitimacy of the comment and address horrible mistakes sooner.


Can I retrofit ground to a two wire outlet from a nearby grounded outlet?

This is in my garage. I am trying to add a second circuit in order to be able to run the dust collector and the table saw at the same time. I did run them on the existing circuit with no load and the breaker did not trip but I want o be on the safe side.  There is one circuit that enters the garage right where you see the GFI power outlet. I extended that to a workbench that I have to the left of the door on the left side (conduit not shown) and to the right to feed the garage door lift and to add one more power outlet also connected with a wire run through plastic conduit. This circuit is grounded.  Now I have wiring coming into the garage from the porch then it is run as seen down to the bottom level of the first garage front light. The cable goes into the wall outside to feed that light bulb and then it comes back it goes above the garage door opening and it lands on the other side of the garage door (not pictured) to feed the other garage door light (extreme right of the picture) The above are on a 15A circuit that has a on/off switch in the house.   Can I run a ground wire from the power outlet that is next to the new power outlet that I want to add (highlighted in blue)?  ..all my regular circuits are 15A ..


Is there value in creating a property for a readonly field

When creating an immutable type is there any value in creating a property for the read only fields?  Public readonly fields:  public class MyClass  {     public readonly string MyText;      public MyClass (string theText)          {         MyText = theText;     } }   or  Private readonly fields with public propery:  public class MyClass  {     private readonly string myText;      public string MyText         {         get { return myText; }     }      public MyClass(string theText)       {         myText = theText;     } }


Do I always need to make a file executable to run it?

I mean if I just use bash to run the file like bash ./myscript.sh will it be enough or there are some pitfalls?


How much does extracurricular matter for admission to PhD program in Computer Science?

I graduated with a B.S. in "Computer & Information Sciences" from a small, insignificant liberal arts school. My overall CGPA was 3.86 and my major CGPA was 3.80. Average GPA, but I am worried about the quality of my studies, not the quantity. During my undergraduate studies I put just enough work into the CS classes to get the grade, and not any more. And I am guessing it is much harder to maintain such GPAs at state universities with more rigorous programs.   I have no extracurricular work to show: never participated in projects, and never done real research work.  Can I still apply to decent PhD programs? Will any PhD programs consider me seriously?  Thank you!


Exercise from Atiyah-Macdonald, Chapter 1, 2.iv)

Let $A$ be a ring and let $A[x]$ be the ring of polynomials in an indeterminate $x,$ with coefficients in $A.$ Let $f=a_0 + a_1x+\cdots+a_nx^n \in A[x].$ $f$ is said to be primitive if $(a_0,a_1,\ldots,a_n)=(1).$     Prove that if $f,g\in A[x],$ then $f$ and $g$ are primitive $\Rightarrow$ $fg$ is primitive.   I know Gauss lemma holds true for UFDs, but in this case it isn't required $A$ to be UFD: is it possible to drop the assumption, or is some hypothesis missing here?


I am trying to understand how to see the total size of my hard drive & how much is left. It was recommended on various searches to use the command below   df -h Filesystem      Size  Used Avail Use% Mounted on udev            7.8G     0  7.8G   0% /dev tmpfs           1.6G  9.6M  1.6G   1% /run /dev/sda1       219G   29G  180G  14% / tmpfs           7.8G   18M  7.8G   1% /dev/shm tmpfs           5.0M  4.0K  5.0M   1% /run/lock tmpfs           7.8G     0  7.8G   0% /sys/fs/cgroup cgmfs           100K     0  100K   0% /run/cgmanager/fs tmpfs           1.6G   64K  1.6G   1% /run/user/1000   However I don't understand any of these directories. I mean what are they, are these all directories or partitions or what? And why do they appear under "mounted on"? How does that bit work. I assume the /dev/sda1 is my solid state drive? So now if I install applications, which one of these directories does my software get installed  into? I assume it just gets installs in the / directory (I haven't even got a clue what the / directory is). Can someone explain what the other directories are and what they are used for?


How to generate 5 columns random data with a specified correlation coefficient

I want to generate 5 columns with data 0 and 1. I want to have a correlation coefficient of 0.70 between individual columns.   I understand we could do it with the mvrnorm function in the MASS package as explained already   But this does not generate data between 0 and 1. I wonder if I have missed something.  It is very good to demonstrate it using R codes.


Why do edits from Community require approval?

has Community User as an editor, not a reviewer*, and it even has summary of its edit:    So I think that there is actually a human behind this. But even so, why would its edit need to be approved?  In the , it appears as an anonymous user:        *So it's not a dupe of


I have three cars — blue, red, and green — , two motorcycles, and four bicycles.   Is this a correct use of comma after an em-dash? It seems quite weird. How should I use an em-dash and a comma here?


What happened on the away mission with Jack Crusher?

I know somebody asked what happened between Jack Crusher and Picard. I also read the answer which I already knew. There was an accident on the Stargazer, Picard had to choose between life or death, Picard is somehow responsible for making a choice that led to Jack Crusher's death. These sets of facts were laid out over many episodes.  Do we know the actual reason how and why Beverly Crusher's husband died? What was the away mission? What were the circumstances? What decision did Picard make?  Is there anything in the novels or anywhere else that describes the details of the away mission any more than what I've stated already?


Confusing placement of headlines in posts

When trying to use simple but good formatting to visually aid in differentiating parts of a slightly longer answer the extents of vertical space seem wrong.  One example:  This is a headline.  The vertical space visually connecting a headline to the previous paragraph is shorter than the vertical space relating it to the following content. But the following content and the headline form one semantic unit. At least in my reasoning they should be.  Looks to me as if visual layout units are disrupting semantic content units.  Shouldn't this be the other way around – more space separating the previous content a from such an element of order, and optically less space than that to unify headline and following content?  I haven't counted the pixels, but to me it looks as if baselines or x-height are used to calculate equidistance and the effect I see is caused by optically protruding elements?  (Please excuse me if I am just using the syntax wrongly and clarify if it is so, and where I might find guides to improve on this.)


I am looking for latitude and longitude coordinates of french subdivision.  I am not used to GIS but I saw that ISO 3166-2 contains default code of such subdivisions, their name etc but where can I download the complete data in a readable format (with python preferred) with name, code and coordinates ?


How can I replace colon with dot in caption figure?

I have a \documentclass[11pt, twoside, a4paper, twocolumn]{article}  I have something like this: Figure: xxxxxxxx  And I need: Figure. xxxxxxxxx  I need change the colon with a dot.   An example of my figures:  \begin{figure*}   \centering   \includegraphics[width=0.7\textwidth]{ZonaInfluencia.png}   \caption{Study area}   \label{AreaInfluencia} \end{figure*}


I have got random weird gaps in my overleaf report like this   Unfortunately I can't give you the full document because it is my dissertation. However, below is my document set-up (according to the outline from my uni)    Thanks in advance!


Why do which and whereis provide different locations and how can I prefer one path over the other?

I recently compiled and installed diffutils-3.3 as I needed the --no-dereference switch that is unavailable in the included version of diff. After configure, make, make check, make clean, and install the new version 3.3 of diff was installed in /usr/local/bin.  Running diff --version resulted in the same 3.2 as before installation.   commands and their output follow:  $ which diff /usr/local/bin/diff  $ whereis -b diff diff: /usr/bin/diff /usr/bin/X11/diff /usr/local/bin/diff  $ echo $PATH /usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games   Using full paths, I can confirm that diff version 3.3 is in /usr/local/bin and version 3.2 is in /usr/bin.  Looking at the path, I would expect that since /usr/local/bin appears first, that particular diff should be executed when I call diff without a path. Clearly this is not the case. My question is why and what can I do to obtain the desired result?  Note: Ubuntu 12.04.5  $ uname -a Linux me-AOD270 3.2.0-80-generic #116-Ubuntu SMP Mon Mar 23 17:11:32 UTC 2015 i686 i686 i386 GNU/Linux


No icons showing in the Start menu on Windows 10

My start menu icons don't show. They look like the screenshot below. Clearing the icon cache database file and restarting explorer.exe doesn't seem to work. Is there another solution?


Evaluating limits at positive and negative infinity

I am studying limits at infinity, and I have a doubt about evaluating them. From what I know, limits only exist if both sides of the limit exist and are equal. For example, take a look at the following limit:  $$\lim_{ x\to \infty}\frac{x}{e^{-x}}$$  As $x \to +\infty$ the function goes to $+\infty$. However, as $x \to -\infty$ the function goes to $0$.   Does this mean that the limit does not exist or I only have to evaluate the limit as x goes to $+\infty$?


Does anyone know a good general measure book that has good examples and theories. I tried reading Royden real analysis but I need more books to help me understand the material. any help is greatly appreciated thank you.


i've been trying to install wine on 18.04 for 7 hours, and i've gotten absolutely no results  every tutorial i find doesn't work  the only thing resembling a hint as to what was wrong i could find was this:  root@valeri-same-pc:~# apt-get update Get:1 file:/var/opt/amdgpu-pro-local ./ InRelease Ign:1 file:/var/opt/amdgpu-pro-local ./ InRelease Get:2 file:/var/opt/amdgpu-pro-local ./ Release [816 B] Get:2 file:/var/opt/amdgpu-pro-local ./ Release [816 B]                    Get:3 file:/var/opt/amdgpu-pro-local ./ Release.gpg                             Ign:3 file:/var/opt/amdgpu-pro-local ./ Release.gpg                             Hit:4 http://repo.steampowered.com/steam precise InRelease                      Hit:5 http://us.archive.ubuntu.com/ubuntu bionic InRelease                      Hit:6 http://dl.winehq.org/wine-builds/ubuntu xenial InRelease                  Get:7 http://us.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]    Hit:8 http://ppa.launchpad.net/gezakovacs/ppa/ubuntu bionic InRelease           Get:9 http://security.ubuntu.com/ubuntu bionic-security InRelease [83.2 kB]     Hit:10 https://dl.winehq.org/wine-builds/ubuntu bionic InRelease                Ign:11 https://dl.winehq.org/wine-builds/ubu... bionic InRelease                Ign:12 https://dl.winehq.org/wine-builds/ubuntu/dists/artful bionic InRelease   Err:13 https://dl.winehq.org/wine-builds/ubu... bionic Release                    404  Not Found [IP: 151.101.4.69 443] Get:14 http://us.archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB] Err:15 https://dl.winehq.org/wine-builds/ubuntu/dists/artful bionic Release       404  Not Found [IP: 151.101.4.69 443] Reading package lists... Done                                                   E: The repository 'https://dl.winehq.org/wine-builds/ubu... bionic Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. E: The repository 'https://dl.winehq.org/wine-builds/ubuntu/dists/artful bionic Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details.


In my Article model, I have 4 different columns: short_effects, long_effects, benefits, and alternatives. They are all text columns.   In my view, I am calling each one in the same basic format:   <% unless @article.short_effects.blank? %>

Short-term side effects

     <% @article.short_effects.split(';').each do |effect| %>
<%= effect.downcase %>
     <% end %>
 <% end %>  <% unless @article.long_effects.blank? %>

Long-term side effects

     <% @article.long_effects.split(';').each do |effect| %>
<%= effect.downcase %>
     <% end %>
 <% end %>  . . .   to eliminate repetition, I would like to create a helper or a partial... however, I do not know which is better for this situation. I know some people frown upon HTML inside of helpers, but since helpers are used to reduce code from views, I feel that may be the best way. Any advice is greatly appreciated.


For example:     There's two options here   or     There are two options here   I hear a lot of people say the first line (or something similar), but isn't that incorrect? Isn't it plural and therefore you should use "there are"?


How to evaluate $\int_{0}^{\pi} \log(2+\cos x)dx$?

I tried integrating it by part but it didn't work. I konw it can be solved by the  .Is there some elementary method for evaluate it or just some others? It seems there are at least (page 4 (17)) but I cannot think out any(the link only says there are four but not give any way).


Is there any way to get real-time compilation for LaTeX?

I would really love to have a software or tool which provided real time compilation of my LaTeX document (to be able to see the final pdf or dvi document as I type the latex code), especially for when I am drawing pictures using tikZ. So far, I know of two things, but none of them work for me. They are:   : This is only for tikZ, which would be perfect for me, but unfortunately as far as I know it only works with Ubuntu and Debian, and I use Mac OS X (so I have never actually tried it, though I did dig a lot to see whether I would be able to install on my mac and from what I see it is really what I want - I am even considering installing Ubuntu just to use it!). : This is a minor mode for Emacs. It was extremely hard to get it to work on the mac (see my quest ), and it is not all that fast. The speed is not all that big of a deal for me, but the fact that it does not work with tikZ pictures is (the nodes all collapse in one point so that the words are all one on the top of the other).   So my question is: is there a software ideally like KtikZ or another type of editor which provides real-time compilation and that I can use on my mac? I guess if you know of a Windows/Linux option I would also like to know, and the same for a way to set up a script to get the document compiled every 5 seconds or so (I am sure I have seen this written somewhere, but I don't know whether I can do it with a mac or whether it is editor/pdf viewer dependent), but what I really want is a software/tool which would work with a mac.  To be clear, I am not after something like LyX, that is, I am not after a WYSIWYG-type thing, but rather something where I can type real LaTeX and see my code, but have at the same time another window showing me the pdf (or dvi) file compiled.


Kids raised in Potemkin-village environments, escape and make contact

Can anyone ID this story? Ca. 1975 I read a YA science fiction novel, which was something like the following. In the future, racial/genetic differences have been gradually lost due to intermarriage, and almost everyone is of the same generic ethnic type, e.g., everyone's skin is sort of the same cafe-au-lait color. However, a small number of humans have been maintained as living artifacts of the historical ethnic groupings: Caucasian, Asian, African, etc. The protagonists are kids of these types, who have been raised in fake Potemkin-village environments that simulate the 20th century. All the adults and other kids are actors who wear makeup. The kids start to notice that something is wrong, and secretly manage to get in contact with one another through hidden messages in letters. They escape from their fake environments and travel around the world in search of the truth and their own destiny.


I'm trying to solve Exercise 8.2.4 in Dummit & Foote   Let $R$ be an integral domain. Prove that if the following conditions hold then R is a Principal domain (1) any two nonzero elements $a$ and $b$ in $R$ have a greatest common divisor which can be written in the form $ra+sb$ for some $r,s$ $\in R$, and (2) if $a_1, a_2 , \cdots ,a_n, \cdots $ are nonzero elements of $R$ such that $a_{i+1} | a_i $, then there is a positive integer $N$ such that $a_n $ is a unit times $a_N$ for all $n \ge N$  I tried to understand the solution in  But I am stuck from the outset. In the solution I put a link above, it claims then for any nonzero ideal $I$ in the ring $R$ of the problem, when we put partial order on $I$ as divisibility relation like  $$x \leq y \; \text{if} \; y|x $$  then each chain $C$ in $I$ with such partial order is a countable sequence $\lbrace C_i \rbrace$ with $C_{i+1} | C_i$ But why should this hold? Does divisibility partial order on (an ideal of) an integral domain make each chain be countable? This seems highly nontrivial and even seems wrong.. Any comment on the claim in the above link or on the problem itself will be a great help to me. Thanks in advance.


What is the purpose of xargs -I command?

Can you explain what this command does:  files=(this_is_filename) for filename in ${files[@]}; do    ls -t1 ../htory/$filename* |     head -1 |     xargs -I fname cp -p fname ../htory2/somefile.CSV done   Especially this part of this command  xargs -I fname cp -p fname ../htory2/somefile.CSV


Regression problem in data with many zeroes

This is my first question here, so please bear with me.  I am working on a regression model to estimate the long term value of users of a certain website. For example, I would like to estimate the value of user $A$ after $180$ days, given their revenue data up to day $30$. To be more specific, denote by $x_{ij}$ the average daily amount of money spent by user $A_i$ up to day $j$. The problem can then be rephrased to predicting $y_i := x_{i, 180}$ from $(x_{i1}, \ldots, x_{i,30})$. After applying some inverse trigonometric transformation to the data to reduce its range, I have tried a few classifiers (linear regression, k-nearest neighbours, random forests) that perform reasonably well, though I feel that my procedure is not optimal.  As you might have guessed, the data is very skewed towards non-paying users. Actually, only 1%-1.5% of the users are paying users, which means that roughly $99$ out of $100$ rows in my dataset consist of all zeroes. How should I deal with this situation?  Option 1: Should I include the non-paying users when training the classifiers? In that case, even a sample of the data would have to be huge to actually include a reasonable amount of paying users (e.g., ~ $100000$ data points would contain ~ $1000$ paying users). More importantly, many models could be biased towards zero, given the disproportionate amount of zero observations. Last but not least, training the model becomes (perhaps unnecessarily) costly.  Option 2: Disregard non-paying users altogether and train the classifier only on paying users. However, I'm unsure whether the regressor would be artificially biased towards nonzero values. This is certainly the case for users having $x_{ij} = 0$ for $j=1, \ldots, 30$, as the prediction will be some nonzero $y'_i$, while the true value $y_i$ is almost surely $0$.  Option 3: Some combination of the above two. Something that comes to mind is to first address the binary nature of the data (paying vs. non-paying) by straight up estimating $y'_i = 0$ for users $A_i$ that are non-paying up to day $30$. On the other hand, if $x_{i,30} > 0$, we predict $y_i$ using a classifier trained only on users that have already paid at day $30$.  Any suggestions about what option above is most suitable? More generally, does anybody have some insight into how this type of problem is usually tackled? Thank you for your time.


How do I change / spoof my MAC address and easily switch between multiple ones?

My router can do port-forwarding based on MAC addresses. That is, a specific MAC will get a specific IP, for which I can configure a set of ports to be forwarded. In order to easily change that set of ports, I'd like to have different connections in the Network manager.  How do I change the MAC address for a network connection?


How does the time loop in Predestination get initialized?

In Predestination starring Ethan Hawke, the idea is plain and simple. However, I do find something very hard to digest:   How could the loop about Ethan Hawke the time travel agent, could meet himself and then conceive himself without some sort of help to initialize the loop?  What I want to say is that, in the first loop of the story, there is only one Ethan Hawke. He then travels back in time and after meeting his past self, he gives birth to himself. But who was responsible for the birth of the first Ethan Hawke?   As a developer this bugs me more than it should. Any theories?


I want to schedule a task to run on a regular basis and have heard that Cron is the way to do this.  How do I add Cron jobs in Ubuntu?


Clone the HDD of a broken PS3 to a new one

My PS3 recently died and I'm planning on getting a new one. Since I won't be able to use the data transfer utility couldn't I clone the HDD to the new PS3 HDD?


How to split subtables across multi pages?

\begin{table}[H] \centering   \begin{subtable}{\textwidth} \centering table materials \caption{sub table 1 } \end{subtable}  \begin{subtable}{\textwidth} \centering table materials \caption{sub table 2 } \end{subtable}   \begin{subtable}{\textwidth} \centering table materials \caption{sub table 3 } \end{subtable}  \caption{Overall caption} \end{table}   It always takes one whole page for a table with its subtables. So the previous page has a lot empty. So does the later page.   Thank you in advance.


Logging into Ask LibreOffice with my Stack Exchange OpenID

If I'm on , I click on OpenID and then enter  and click Log In, I get a page that says:  An error occurred on the server  This event has been recorded.  If you believe you encountered this message in error, please report it.   I clicked report it and here I am reporting it! Using Firefox 26


Remove auto-complete field entries in Google Chrome

Is there a way to stop the gmail address field (on the login page) from displaying all the gmail addresses that you have ever typed in it?   When logging in with Google Chrome or trying to set up a new account, anything you type which starts with the same letter as the one that you are trying to use currently will show up in the auto-complete field, I don't want that.    I understand that this is a convenient feature in some cases, but the thing is--I know this shouldn't've happened, but it has actually happened more than once--I sometimes mistyped my password in the Gmail address field right after the address, mistakingly assuming that the prompt had already been moved to the password field, and then hit "Enter" without looking first. The next time I tried to enter my Gmail address, it popped up the address followed by my password as one of the entries on the list of email addresses that shows up, and I couldn't get rid of the entry.   Is there a way to remove these? The autofill feature in Chrome is a time saver, and so I don't really want to turn it off. It would be helpful to be able to edit out some of the typed info, though, so it won't show up again -- is this possible to do?


Understanding op-amp circuits with extra capacitors in the feedback path

When looking at circuits like this one  (source: ) I often find (see U6-A in linked schematic) extra capacitors in the pF range slapped in parallel with the feedback resistors, although the op-amp has a buffering or gain function:    Doesn't that make it a low-pass filter instead? Is it supposed to filter out high frequencies or what other role does it play?


I looked in the Hegelian dictionary and got more confused.


I was following  on updating an EOL distribution. I want to upgrade from 15.10 (wily).  I am using apt-get rather than aptitude that is used in the guide. I added the .list sources file in my /etc/apt/sources.list.d directory.   when I run sudo apt-get update it tells me it is unable to fetch those packages. I investigated a bit and I can see  that all the old releases are there except Wily. Is this an oversight or am I following an outdated guide?


Would it be better to say:  “If I was in your circumstance, I hope, I truly hope, I’d do the right thing.” OR “If I were faced with your circumstance, I hope, I truly hope, I’d do the right thing.”


Tips for improve photography skills in android phone camera

I am really interested in Photography  but i don't have the money to buy a camera right now  i already started photography using my android phone camera  but i want to improve my photography skills   more like shooting angle, environment management etc.  any suggestion will be appreciated


How quickly is momentum transferred through an object?

If there was a pole, that was a light year long, out in space. (Away from all physical interference.)  If we pushed one end of it, would the other end move instantly? And does it's speed depend on what it's made of?


string and integer concatenation in java

String s1 = "abcd5";  String s2 = "abcd"+"5"; String s3 = "adcd"+s1.length(); System.out.println("s1 == s2 : "+(s1 == s2)); System.out.println("s2 == s3 : "+(s2 == s3)); System.out.println("s1 == s3 : "+(s1 == s3));   Why first statement is true and rest are false. Is String concatenation with int behaves differently?


If I have this string:     2+24*48/32   what is the most efficient approach for creating this list:     ['2', '+', '24', '*', '48', '/', '32']


Levels or First Differences, VECM or VAR for Ultimate Impulse Response Functions?

My final goal is to generate Impulse Response Functions in R.  I have variables that are non stationary when I set k = 5 in a Unit Root test, and they are cointegrated which to my understanding prompts the use of the VECM, from which the Vec2Var argument is used to then generate IRFs. However, my response functions from this methodology do not decay over time and mostly do not revert to the zero line.  Furthermore, I noticed that when I input first differenced variables into the VECM as opposed to level data above, response function do revert to the zero line. Therefore my first question is: 1) is it appropriate to use differenced variables in a VECM model?  Secondly, as an alternative I am considering restricting the number of lags used in the Unit Root tests so that the variables are not all non-stationary; in this case 2) would the use of VECM be void and the VAR with first differences be a more appropriate model? Again, using differenced data is giving me better response functions that revert to zero in the long run. However, 3) is it ok to use the VAR for stationary/non-stationary data in levels where these variables are still cointegrated?  Also, I am using growth rate variables, 4) should I still long transform all variables and use logs in all tests?  Thank you for the help!


Java Calling methods on a reference to an object does affect the caller

in "Oracle Certifi ed Associate Java SE 8 Programmer I Study  Guide" speaking about passsing by value , saying :  Calling methods on a reference to an object does affect the caller     public static void main(String[] args) {     StringBuilder name = new StringBuilder();     speak(name);     System.out.println(name); // Webby     }     public static void speak(StringBuilder s) {     s.append("Webby");     }   In this case, the output is Webby because the method merely calls a method on the parameter. It doesn’t reassign name to a different object.    So what does this mean? I didn't get it. Shouldn't there be 2 different objects?


Is the ring and semi-ring definition of algebra and set linked?

"Ring" and "semiring" are concepts defined both in algebra and set theory.  In Algebra  A  is a set R equipped with two binary operations + and · called addition and multiplication, that Addition (+) is abelian, Multiplication (⋅) is associative, Multiplication distributes over addition, and Multiplicative identity (1) exists.  A ,  is an algebraic structure similar to a ring, but without the requirement that each element must have an additive inverse.   In Set theory  A  is a family of sets closed under unions and set-theoretic differences.  That is, it obeys the two properties $$A \setminus B \in \mathcal{R} $$ $$A \cup B \in \mathcal{R}$$ This implies that it is also closed under intersections, $$A \cap B \in \mathcal{R}$$  A  is a non-empty collection S of sets such that   $\emptyset \in S$ If $E \in S$ and $F \in S$ then $E \cap F \in S$. If $E \in S$ and $F \in S$ then there exists a finite number of mutually disjoint sets $C_i \in S$ for $i=1,\ldots,n$ such that $E    \setminus F = \bigcup_{i=1}^n C_i$.   I wonder, are such definitions somehow linked or equivalent? or they are just coincidence that both fields of mathematics used the same terms?


I have Windows installed on my PC. I have tried to install Ubuntu 14.04, but unfortunately instead of creating a new partition, I chose the first option "Erase everything". I canceled it, but when I restart my PC, no operating system appears.  Could you please help me?


apt-get, unmet dependencies, ... "but it is not going to be installed"

$ apt-get install -f -o 'Dpkg::Options::=--force-confmiss --force-all --force-confnew --overwrite-conffiles' --reinstall at-spi2-core Reading package lists... Done Building dependency tree        Reading state information... Done You might want to run 'apt-get -f install' to correct these: The following packages have unmet dependencies:  kde-workspace-bin : Depends: qdbus but it is not going to be installed  libqt4-dbus : Depends: qdbus (= 4:4.8.5+git192-g085f851+dfsg-2ubuntu4) but it is not going to be installed E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).   I don't quite understand "but it is not going to be installed". Why doesn't it install it then?  apt-get -f install does not help, it does nothing:  $ apt-get install -f Reading package lists... Done Building dependency tree        Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.


Black is the absence of light because it absorbs light, but when we create black paint or black objects, light is always reflected, either in all directions in matte or smoothly in shiny black objects, making it never a true black. Would it be possible to use polarization to create an object that does not reflect any light, creating a truly black substance, without any shadows or reflection of light?


I am not a programmer at all, however I am teaching myself bash scripting and I have a need for a backup script to backup my VMs (I am using KVM/QEMU). I know that you can do snapshots but I need something more permanent a hard copy of the VM if you will and be able to put these on my ZFS Storage system. So I was thinking to write a backup script that runs via cron once a week or so. The file is of course qcow2 or whatever file system is chosen. So far I have a good start on the script.  Some parts of this script has been borrowed from another author  ### kvm-backup.0.0.1 ###  #!/bin/bash # Get the date # BACKUPTIME=`date +%b-%d-%y`  # Affixing the date # Create the backup file and cp to Destination for backups # DESTINATION=/mnt/backups/backup-$BACKUPTIME.tar.gz # Need to define the source folder # SOURCEFOLDER=/mnt/VMs/  # create backup now # tar -cpzf $DESTINATION $SOURCEFOLDER   ### Right here I need a progress bar but I am not sure how put it all together I know the code above will have to be fitted in to one of the progress bar scripts. I am just not smart enough to put it all together. ###  Could someone help me out a little bit, Thanks, Michael


A way to put all real numbers in a set with a countably infinite size

I don't understand how there is an uncountable infinite amount of real numbers. Why can't we do the same thing with fractions (there is a countable amount of fractions). We do this by creating a table where the horizontal axis lists all the numbers from 0 too infinity. The vertical axes lists all the powers of ten from 0 too -infinity. If we would fill the table we would have all real numbers. We can make a list of this by drawing a line criss-cross through the table. This table can be viewed by clicking the link.    Could somebody please explain what is wrong with my thinking. Thank you.


How to change the starting reference number in Natbib in a given bibunit?

I'm using bibunit and Natbib packages with a numerical numbering.   \begin{bibunit}[plainnat]     \nocite{ref1,ref2}     \putbib[mybiblio] \end{bibunit}  \begin{bibunit}[plainnat]     \nocite{ref3,ref4}     \putbib[mybiblio]  \end{bibunit}   How can I set the starting number for ref3 and ref4 to be different from 1 (say 15), without affecting the starting number for ref1 and ref 2? The desired result is the following:   [1] ref 1 [2] ref 2 [15] ref3 [16] ref4


How is conservation of momentum preserved in antimatter annihilation?

If an anti-proton collides with a proton, they are supposed to totally annihilate each other, correct? Then how is conservation of momentum preserved?   Could you launch both protons and antiprotons toward a common point, where they annihilate, and give their energy back, while you keep the gained the momentum from the launch of the particles? This would allow for a closed engine and would seem to violate the conservation of momentum. What would prevent this from working?


Below is the screenshot of negative rep on a question I was never part of. It is now deleted. I have never seen this question before. Still the reputation is not restored. Is this a reputation system bug?


I have downloaded some samples for Google maps API 3 and I can see some code like bellow:   (function (i, marker) {     google.maps.event.addListener(marker, 'click', function () {         if (!infowindow) {             infowindow = new google.maps.InfoWindow();         }         infowindow.setContent("Message" + i);         infowindow.open(map, marker);     }); })(i, marker);   Could some one explain me what this means?  Or can we re-write the above code in different ways? I am bit new to JavaScript and don't know what exactly the above code does?  here  is the full script  function markicons() {      InitializeMap();      var ltlng = [];      ltlng.push(new google.maps.LatLng(17.22, 78.28));     ltlng.push(new google.maps.LatLng(13.5, 79.2));     ltlng.push(new google.maps.LatLng(15.24, 77.16));      map.setCenter(ltlng[0]);        for (var i = 0; i <= ltlng.length; i++) {         marker = new google.maps.Marker({             map: map,             position: ltlng[i]         });          (function (i, marker) {              google.maps.event.addListener(marker, 'click', function () {                  if (!infowindow) {                     infowindow = new google.maps.InfoWindow();                 }                  infowindow.setContent("Message" + i);                  infowindow.open(map, marker);              });          })(i, marker);      }  }


there exsit postive integer $x,y$ such $p\mid(x^2+y^2+n)$

For any give the postive integer $n$,and for any give prime number $p$.  show that  there exsit  postive integer $x,y$ such $$p\mid(x^2+y^2+n)$$  My approach is the following:  Assmue that $n=1,p=2$,we choose$(x,y)=(1,2)$ $$2\mid6=1^2+2^2+1$$  Assmue that $n=1,p=3$, we choose $(x,y)=(1,2)$ $$3\mid6=1^2+2^2+1$$ Assume that $n=1,p=5$,we choose $(x,y)=(2,5)$ $$5\mid30=2^2+5^2+1$$ Assume that $n=2,p=2$, we choose $(x,y)=(2,2)$ $$2\mid10=2^2+2^2+2$$ Assume that $n=2,p=3$ we choose $(x,y)=(2,3)$ $$3\mid15=2^2+3^2+2$$ Assume that $n=2,p=5$,we choose $(x,y)=(3,3)$ $$5\mid20=3^2+3^2+2$$ and so on   Now I'm stuck and don't know how to proceed


I need to force any time related operations to GMT/UTC, regardless the timezone set on the machine. Any convenient way to so in code?  To clarify, I'm using the DB server time for all operations, but it comes out formatted according to local timezone.  Thanks!


I was using Ubuntu 16.04 and switched to windows because of wireless problems of Ubuntu. After a while, I decided to return Ubuntu, but confronted with the exact same problem. I couldn't figure out why Linux Ubuntu conflicts with RT3290 wireless. After installation of system, wifi was working, but enable wi-fi option and available wireless connections was missing after first restart. I downloaded rt3290 driver from  and installed it. This driver seems like solving the problem, I now can connect to wifi, but my connection is still too fragile: it keeps disconnecting often and youtube videos is playing in low quality. Does anyone know permanent solution to this problem? Is there official ticket about this problem?


how do I change the date/time format in the top panel in Ubuntu 14.04

I searched for this answer and have tried dconf-editor and gconf-editor per instructions and nothing changes the top panel time.  When I change the format using the system settings menu it does NOT change the values shown under dconf-editor.  The system settings menu doesn't' allow a custom string for display format.  Obviously these values are stored some place else.  Anybody know WHERE?  Thanks in advance!


We have a sequence $g_0=3$ and $g_n=2+g_0g_1g_2...g_{n-1}$ for $n\in \mathbb{N}$. How can I prove that $\gcd(g_k,g_n)=1$ if $k<n$? I know that this essentially asking to prove that they are relatively prime, but I am unsure where to begin. Could I show that all of the numbers in this sequence are relatively prime?


Will there be an update to Ubuntu for enabling it to easily install alongside Windows 8.1?  I have seen the various options to play with the restrictions made by UEFI and install Ubuntu through the "Something Else" option in installer. Before trying these workarounds, just wanted to check if Ubuntu has any plans to handle this in the installer itself.


Combinatorial proof of $\sum_{k=0}^{n}(-1)^{k}\binom{n}{k}(l-k)^n=n!$, using inclusion-exclusion

If $l$ and $n$ are any positive integers, is there a  proof of the identity     $$\sum_{k=0}^{n}(-1)^{k}\binom{n}{k}(l-k)^n=n!\;$$   which uses the Inclusion-Exclusion Principle?  (If necessary, restrict to the case where $l\ge n$.)    This question is closely related to   and also


Irregular desposits and bank statements for short-term visa for South Africa

I saw this great  and realized I parked funds unwittingly and shared that while doing my visa-application. The thing is, I am a freelancer and do both check and cash transactions with my clients. Whenever I have a size-able sum they go into term deposits of some bank or stocks or bonds or whatever generates the most return in due course of time.   Now about a couple of years back, I have bought a flat (under construction) and have been paying from a single bank account just in case I need to keep track of all the payments.   Now for the visa part, although it is under processing, should I have also added the explanations stating these funds are for a flat I booked ? There is just one more transaction which shows that some amount was given to a Company. What would have been the right way ?  I did share my last 6 months bank account statement instead of the 3 months they asked (from November '15 to May '16.) although not much activity therein.


Problem in booting into windows after installing ubuntu


I know that  mathematics says that $0.99999....=1$. but some say that logic says that $0.99999....<1$. what I want to know, is weather or not there is logical proof (proof without formulas, and that relies solidly on common sense ) that $0.99999....$ must be equal to $1$.  I have heard great arguments for both sides, but they all seem to end with logic and math disagreeing. I want answers that are insightful, and make math and logic agree with each other.   OK a lot of people are asking what the logical proof is, well a few of the ones that I have heard of so far are: If you move a ninth of distance to your destination then a ninth of whats left, then a ninth of whats left after that, and so on, and so on, you will never get there. Another logical question that comes up is: How can an infinite sum be equal to any non fractional whole number, isn't it never ending? can you help me explain why these ideas are flawed without using math?  Also if you'r wondering what I mean when say logical proof, I mean proof by logical deduction with as little use of mathematical formulas as possible, in other words I want proof using common sense. all of the other proofs I have seen are great and fallow the laws of mathematics perfectly, but their are some people that agree with their own common sense more than math. I want an answer I can give to them.  so the less formulas the better, try to rely on firm logic.


Sometimes I want an element on a frame to change in steps. I do this by  \only<2>{   ...   }   \only<3>{   ...   }     etc.  But this causes the frame to jump due to different sizes of the included content. How can this be avoided?


What is wrong with this fake proof that $\lim\limits_{n\rightarrow \infty}\sqrt[n]{n!} = 1$?

$$\lim_{n\rightarrow \infty}\sqrt[n]{n!}=\lim_{n\rightarrow \infty}\sqrt[n]{1}*\sqrt[n]{2}\cdots\cdot\sqrt[n]{n}=1\cdot1\cdot\ldots\cdot1=1$$ I already know that this is incorrect but I am wondering why. It probably has something to do with the fact that multiplication in $n!$ is done infinite number of times.


Calculating my 90 Schengen days precisely

I am a US citizen and know the 90-day allotted rule.  But this time I need clarification.  I am entering France on May 18th and had planned on departing Spain on August 16th - exactly 90 days. But I have booked a repositioning cruise that departs from Lisbon on August 26th.  So I think, or at least hope, I could depart Spain for the UK on August 14th or 15th and would still be able to return to Lisbon for 1 day on the 26th and still be within my 90 days?  Sure hope someone can answer this question for me before I confirm my cruise!    Added from a now deleted answer: I have rearranged my departure from Spain to the UK to give myself a 4-day buffer before I would reach my 90-day limit in the Schengen. I will fly into Lisbon the morning of the 26th of August and the cruise departs (for the States) at 11:00 p.m. that evening.


Python appending to a sublist in a list of lists

I have a list of empty lists as such:  some_lists = [[]] * 3 [[], [], []]   I want to append an integer to the first sublist:  some_lists[0].append(1)   But it appends the integer 1 to all the sublists and generates:  [[1], [1], [1]]   How do I append elements individually to the sublists?


How to find all flights scheduled between a pair of cities?

I am waiting for someone to fly in this week, but have no idea when they are arriving and can't contact them. I looked online and found flight trackers, but they only show flights already "en route" or that have recently arrived. I know both airports, but there's no way I can narrow down when the person would be leaving to know when they are arriving.  I know it's not possible to get flight info using someone's name as that is a breach of privacy, but is there any way to get a list of booked flights and their departures from and to airports to get a better idea of arrival/departure times between travels? Obviously not by name though.  This should help me figure when my friend would be arriving if I knew a list of booked flights so I could figure which ones they'd be getting on based on the time differences from where we are.   Thanks ahead of time!


Can Canon DPP 4 put a watermark on a photo?

I recently downloaded Canon's DPP (Digital Photo Professional) 4. After the new UI improvements, and better algorithms that are incorporated into the new DPP 4, I thought I would give it a try and started using it. Everything looks good and easily understandable in DPP4 except one thing: adding watermark onto the photo? This option is available with Adobe Lightroom, but I'm not sure if DPP has this option or not.  Could anyone confirm whether DPP has this option? If it does, then how I do I put an image watermark when I'm editing in DPP 4?


Visiting US company headquarter on visa waiver program (ESTA) or B-1

I am having trouble finding out which visa I need for visiting the US headquarter of my new company.  Background: I'm starting as a software engineer in my European company. The employment is through a local  since the US company has no presence there yet. To get acquainted with the business, it'd make sense to go to the US and talk to the new colleagues as early as possible. On the other hand, I also don't want to be denied entry for obvious reasons.   is the best discussion of this topic that I could find so far.  However, it is from 2012 and @Doc was working for the local subsidiaries of much larger organizations.  Would this still apply to my situation (PEO not subsidiary, new at the company, 2017)?  The documents I could find mostly mention that business meetings fall under the scope of ESTA. Training is also mentioned in many places but it is never clear what is allowed and what is not.  mentions that "Alien trainees who seek merely to observe the conduct of business or other professional or vocational activity may qualify for B-1 or B-2 classification if the US business does not pay or reimburse expenses. The foreign employer must continue to be the principal employer and pay wages, salary, and/or other compensation from a source abroad." The document goes on to say "Hands-on training, deigned to provide on-the-job experience, is not deemed to fall within the B-1 (or B-2) classification. Even if the foreign employers pays salary and expenses, B-1 classification is inappropriate if the hands-on services performed by the trainee will benefit the US-based company and/or the US-based company would have had to hire an employee but for the services of the alien 'trainee.'" (emphasis mine)  The  does not mention training and mainly refers to the  While I cannot find details at the BVC website either, this looks like the best authority to ask for clarification.  The  says that I may "attend short-term training (you may not be paid by any source in the United States with the exception of expenses incidental to your stay)" and "consult with business associates".  Questions:   VWP is essentially the B1/B2 program for people from pre-approved countries, right? That means that there is no use in applying for B1 because I wouldn't be allowed to do more than on ESTA either, correct? Does it make a substantial difference whether I come for 2 or 6 weeks? I'd argue that a shorter period may look more like discussions and meetings while a longer period would look more like employment. Where does a PEO come in with regards to "not being paid by any source in the United States"? I feel like I could argue either way. Is there any way to get our plans pre-approved without a denial being treated as a "visa rejection" or even a "refusal to enter"?   Thank you for your help.


My scene has multiple cameras. Is there a way to cycle through camera views with a hot key, or a script?


In how many ways can the letters of the word $MISSISSIPPI$ be rearranged ?   I am confused on whether it is  $\dfrac{11!}{4!4!2!}$ or $\dfrac{11!}{4!4!2!}-1$  since it is given rearranged and not arranged.


Calculating concordance using either Pearson or Spearman (rank) correlations

I wish to calculate correlation between external rating of accounts and internal ratings of the accounts in my branch. Which out of Pearson correlation or rank correlation will be better to use and why.


Evaluating Limit Question $\lim\limits_{n\to \infty}\ \frac{1+\sqrt[2]{2}+\sqrt[3]{3}+\cdots+\sqrt[n]{n}}{n}=1$?

Does $\displaystyle\lim_{n\to \infty}\ \frac{1+\sqrt[2]{2}+\sqrt[3]{3}+\cdots+\sqrt[n]{n}}{n}=1$?   Thanks a lot for your time and help.


In what order do creatures return from the graveyard with "March from the Tomb"?

In which order are cards returned from the graveyard with :     Return any number of target Ally creature cards with total converted mana cost 8 or less from your graveyard to the battlefield.   In particular, if one of the returned cards is :     Rally — Whenever Kalastria Healer or another Ally enters the battlefield under your control, each opponent loses 1 life and you gain 1 life.   Can I return Kalastria first such that the additional allies entering the battlefield trigger the Rally ability?


Why does $\lim_{x\to 0^+} x^{\sin x}=1$?

I tried writing $y=x^{\sin x}$, so $\ln y=\sin x\ln x$. I tried to rewrite the function as $\ln(x)/\csc x$ and apply l'Hopital to the last function, but it's a mess.   Is there a by hand way to do it?


I am wondering how to prove $$\lim_{x\to \infty} \frac{e^x}{x^n}=\infty$$  I was thinking of using L'Hospital's rule? But then not sure how to do the summation for doing L'Hospital's rule n times on the denominator? Or whether it would be easier using longs like $\lim_{x\to \infty} \ln(e^x)-\ln(x^n)$?  Thank you!


How can I split a string such as "102:330:3133:76531:451:000:12:44412 by the ":" character, and put all of the numbers into an int array (number sequence will always be 8 elements long)? Preferably without using an external library such as boost.  Also, I'm wondering how I can remove unneeded characters from the string before it's processed such as "$" and "#"?


how can i get the page number or value on this method

this is the code, I m write. so sorry truly I m a newbie in coding. I m ready to find out the number of the PDF file page that appear word"Revenue". After this to print out on the CMD. Could anyone help me? thank a lot. using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using iTextSharp.text.pdf; using iTextSharp.text.pdf.parser;    namespace pdf26052021 {     class Program     {         static void Main(string[] args)         {             PFD PATH = new PFD();             List<int> x = new List<int>( PATH.ReadPdfFile(@"C:\Users\fengs\Desktop\pdf", "test.pdf", "Revenue"));             Console.WriteLine(x);             Console.ReadLine();         }      }     class PFD      {         public List<int> ReadPdfFile(string path,string fileName, String searthText)         {             List<int> pages = new List<int>();             if (System.IO.File.Exists(path + @"\" + fileName))             {                 PdfReader pdfReader = new PdfReader(path + @"\" + fileName);                 for (int page = 1; page <= pdfReader.NumberOfPages; page++)                 {                     ITextExtractionStrategy strategy = new SimpleTextExtractionStrategy();                      string currentPageText = PdfTextExtractor.GetTextFromPage(pdfReader, page, strategy);                     if (currentPageText.Contains(searthText))                     {                         pages.Add(page);                     }                 }                 pdfReader.Close();             }             return pages;         }      } }  thank you


Clipping Rasters with a mask layer error

I've got a NDVI layer that I'm trying to clip with a vector file but when I try and use GDAL Tools clipper I get an error.  That shows up like this:  What am I doing wrong?  This is before I even pick the mask layer!  Traceback (most recent call last):   File "C:/PROGRA~1/QUANTU~1/apps/qgis/./python/plugins\GdalTools\tools\widgetPluginBase.py", line 28, in someValueChanged     self.emit(SIGNAL("valuesChanged(const QStringList &)"), self.getArguments())   File "C:/PROGRA~1/QUANTU~1/apps/qgis/./python/plugins\GdalTools\tools\doClipper.py", line 105, in getArguments     return self.getArgsModeMask()   File "C:/PROGRA~1/QUANTU~1/apps/qgis/./python/plugins\GdalTools\tools\doClipper.py", line 143, in getArgsModeMask     if self.alphaBandCheck.isChecked(): TypeError: 'sip.methoddescriptor' object is not callable  Python version: 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit (Intel)]  QGIS version: 1.7.3-Wroclaw Wroclaw, 00624b3  Python path: ['C:\Users\dean.walker\.qgis\python\plugins\GeoCoding', 'C:\Users\dean.walker\.qgis\python\plugins\GeoCoding', 'C:/PROGRA~1/QUANTU~1/apps/qgis/./python', 'C:/Users/dean.walker/.qgis/python', 'C:/Users/dean.walker/.qgis/python/plugins', 'C:/PROGRA~1/QUANTU~1/apps/qgis/./python/plugins', 'C:\PROGRA~1\QUANTU~1\bin\python25.zip', 'C:\PROGRA~1\QUANTU~1\apps\Python25\DLLs', 'C:\PROGRA~1\QUANTU~1\apps\Python25\lib', 'C:\PROGRA~1\QUANTU~1\apps\Python25\lib\plat-win', 'C:\PROGRA~1\QUANTU~1\apps\Python25\lib\lib-tk', 'C:\PROGRA~1\QUANTU~1\apps\qgis\bin', 'C:\PROGRA~1\QUANTU~1\apps\Python25', 'C:\PROGRA~1\QUANTU~1\apps\Python25\lib\site-packages', 'C:\PROGRA~1\QUANTU~1\apps\Python25\lib\site-packages\win32', 'C:\PROGRA~1\QUANTU~1\apps\Python25\lib\site-packages\win32\lib', 'C:\PROGRA~1\QUANTU~1\apps\Python25\lib\site-packages\Pythonwin', 'C:\PROGRA~1\QUANTU~1\apps\Python25\lib\site-packages\wx-2.8-msw-unicode', '/usr/share/qgis/python', 'C:\PROGRA~1\QUANTU~1\apps\qgis\python\plugins\fTools\tools']


If G is a finite group of even order then G contains an element $a\neq e$ such that $a^2=e$.

For this problem, I'd like to know how I can solve this problem using Lagrange's Theorem.


Give us a flag link in the Edit Review queue

I've been reviewing suggested edits lately, and have come across a problem in the queue: we don't have the normal 'flag' link for the post. I'm not talking about flagging the edit, but the post itself. Often, I will come across a post that, though the edit does improve it, still is low quality, and should be flagged as such. While I want to give the user recognition for trying to improve the post, I also want to let the mods know that it's low quality - and having to go to the question in the normal view isn't very fun for this. So, please add a flag link below posts in the Suggested Edits queue.


Let $C\subset \mathbb{R}^m$ be a convex set, let $A$ be an $m \times n$ matrix and $b \in \mathbb{R}^m$. Show that $S=\{x \in \mathbb{R}^n | Ax+b \in C\}$ is a convex set.   I can't understand why this set is convex. Take $x,y \in S$ such that $Ax+b \in C$ and $Ay+b \in C$, then it follows that $A((1-λ)+λy)=(1-λ)Ax+λAy$. It would be easy if I can use that $Ax=-b$, because in that case I'd say that $A(1-λ)Ax+λAy=(1-\lambda)(-b)+\lambda(-b)=-b$ and hence convex. Then from the assumption it follows that this set is convex. I am, however, not sure whether I can use that or not. Could anyone give me a hint on this proof?


What should we do about *identical* cross-site duplicates? (i.e., copy-and-paste cross-posting)

In principle, asking a question on multiple sites is fine, since each site has a different community that will probably answer the question in a different way. If the user is consciously choosing to cross-post for that reason, as evidenced by them taking the time to phrase the question differently on each site, then it's fine. .  But then there are about the lazy, spammy kind of cross-posts where a user is clearly copy and pasting their entire question from one SE to another simply because they think more posts equals more attention. Often, these cross-posts are on-topic on both sites, and poorly written but probably salvageable, so none of the usual close/migration reasons apply (which is why this isn't a duplicate of all the existing meta questions about cross-posting). All we can do is downvote if the question itself is bad and add a comment that cross-posts are frowned upon.  What is the right way to handle these posts?   Are both communities obliged to help? Since it is exactly the same question that would mean a lot of duplication of effort. Should the site that's "slightly less on-topic" close or ignore it and let the "more on-topic" site deal with it? I fear this might be our de facto behavior on PSE right now. Or should we have some auto-detection that simply looks at what the user has already posted today and warns him that we dislike cross-posting? From what I've seen these cross-posts are from the kind of newbie that might actually listen to a warning.


Is it possible to clean up overlapping faces?

I've been using the Boolean Modifier to union multiple meshes, but it often makes overlapping faces, that are criss-crossing each other, as shown in the image below:  Is there any way that I can remove the unnecessary faces?


How to sort lines with >> double angle brackets?

It seems that sort behaves strangely on lines such as >>b    $ cat test a >>b b c > >>  $ sort test > >> a b >>b c   I would expect the >>b line to be the third line output by sort but it is the fifth. Why does it do this and is there a way to make sort give my expected output?    I'm using GNU/Linux Ubuntu 16.04.


make python react immediately to one character of user input, like "read -n1" in bash

If it was possible to get output from this shell script into a variable I think that would be the ideal solution.  import os os.system('read -s -n 1 -p "Press any key to continue..."')    I have a shell script that reacts to one keypress immediately (because "read" with the option "-n1" is selected)  like this:  #!/bin/bash read -s -n1 -p "" keypress if test "$keypress" = "a" then     open ~/something.txt fi if test "$keypress" = "b" then     open ~/something_else.txt fi exit   How could I modify this to python 2 code to similarly react immediately to user input rather than waiting for the user to press return? (I use osx and would prefer a solution that only relies on the standard library, but anything that could work on both osx and linux would be fine.)  something=raw_input() print "write a or b" user_input_a='a' user_input_b='b' if something == user_input_a:  print 'it was a' if something == user_input_b:  print 'it was b'


Please forgive the obvious question.   H2O2 vapor sterilization is deadly for the layperson but should be workable for hospitals. I can't find the small Chinese study I read the other day about it. Here are two more quickly googled sources.        2.


Can I run packages on an external hard drive?

Can I run packages like metasploit, ngrok, gparted, etc all install from terminal but run or install to external hard drive? I am running Ubuntu on USB 3.0 but I want all packages installed to an external hard drive. Can I do that?


Show that $Int(A)=X\setminus\overline{X\setminus A}$.

Let $A$ be subset in topological space of $(X,\tau)$, show that $\operatorname{Int}(A)=X\setminus\overline{X\setminus A}$.   The definition of interior provided is "largest open set in A", which I don't know how to utilize. Please give me some idea.


Can 3 people fuse using the potara earrings?

Consider the following scenario.  We have Goku, Vegeta and Trunks. Amongst the 3 they have 2 pairs of potara earrings.   Can Goku and Vegeta fuse using 1 pair of potara earrings and then using the other pair of earrings can Vegito and Trunks fuse ?  I understand potara earrings can only be used once in a lifetime, but here we have 2 pairs of potara earrings. So does the rule still apply ? If it does then Goku and Vegeta both use the potara twice, once in the buu saga and now in the next DBS episode. Or does this mean that Goku can only now fuse with Vegeta using the potara earrings ?


How can I change wallpaper automatically?

I have found a guide for that but doesn't sure if it will work or it is safe to use. The guide:  I am asking if is these introductions safe and will work? If not, is there any other solutions for that? I am using Ubuntu 20.04 LTS Thank you.


Product of $x$ consecutive natural numbers is divisible by $x!$

I just figured something out while doing this question : Prove that the product of $5$ consecutive natural numbers is divisible by $120$.  I thought that $5! = 120$ and thought of this : The product of $n$ consecutive natural numbers is divisible by $n!$  Is this some pre-existing property or theorem? If yes, what is it called? I would love to learn about it in-depth.  Let me know, thanks!


I have applied in Munich, Germany to have a tourist visa to visit UK. Usually, from experience, how long does it take to have the decision made? I have tracked my visa through TLS. Thanks in advance!


Rejecting a PhD offer after having accepted it. Advice?

I have accepted a PhD offer from a very good university to do a project very close to my interests. I have told the project supervisor I accept it. In the meanwhile I have managed to secure a PhD offer from another 2 universities much better in world rankings and with better research groups and better faculty. Additionally these 2 universities do research exactly on what I want to devote my PhD research.  My only commitment to the first university is a mail confirming I accept. Nothing else. I understand declining the offer after already having accepted it is quite dishonest but it is a huge decision that will affect my future in a very significant level.   I would like your opinion and I would also like to ask for possible consequences of such an action. As far a postdocs concerned, in the first university there is no chance I ever get a postdoc since they do not actually do research on my area (except for the prospective supervisor and even he not as much).  UPDATE I have decided to do as I was afraid to. I have decided to choose a different university than the first one that I have already accepted the offer. My offer acceptance included:    An online "I accept" statement. An e-mail I sent stating "I accept the scholarship and this University is my first option"   I do not have any legal commitments since I have not signed anything. The supervisor of the first university though is really nice to me and continuously was sending me mails. How do I very nicely tell her I will not be joining in the end? Additionally the place I will go in the end will be for research in Mathematics and not Physics. Can I use this as a part of a sensical excuse?  WHAT I HAVE CHOSEN AND WHAT THE CONSEQUENCES WERE  I think that I should let people, especially other beginning grad students know what happened with my case. I have chosen to nicely tell the first university I got accepted that I will not be attending and will not be pursuing a PhD there since I decided I have different research interests (which is true). I had applied there in the first place since I was not sure what I wanted to do and because it was a nice program. Despite that, I got an offer from a World top university to work on 100% my research interests. I explained this to them, the first uni, and they happily let me go and wished me good luck, especially the supervisor who faught a lot secure me funding. I was lucky.


How would I integrate the following?  $$\int_0^{\pi/2} x^2\sin(x)\,dx$$  I did $u=x^2$ and $dv=\sin(x)$  I got  $x^2-\cos(x)+2\int x\cos(x)\,dx.\quad$ I then used $u=x$ and $dv=\cos(x).$  I got   $$x^2-\cos(x)+2[x-\sin(x)-\int\sin(x)]$$  then  $x^2-\cos(x)+-2 \sin(x)(x)-\cos(x)\Big|_0^{\pi/2} =\dfrac{\pi^2}{4}-0-2$


How do I get evolution items like King's Rock?

How can you obtain the new evolution items like King's Rock after the new update?


I have been presented with an option to make a virtual tour for my school. Kind of like a Google's Street View but for a school building. It should be made so that everyone on the school's webpage can click on it and take a virtual tour of the school.   I am looking for a software that can do that and that is compatible with websites after exporting the tour if it's managed that way. The best would be a free software, if not, what are the best ones?   Any suggestions and precautions I should take before making such a virtual tour?   Thank you!


As a land surveyor, I often bring cad data into a GIS and create polygon representing parcels.  Traditional tools I have for cleaning topology are inappropriate so I am looking for something different - even if it means teaming up with someone to build additional extensions.  (I scanned the list of existing extensions and some pieces are already there).  My idea is to fix minor topology errors by constraining key geometric elements. That is, straight polylines and circular arcs which share a common centre point.  A key requirement is support for true circular curves.  I could keep the data in SQL Server but prefer a GUI for a better user experience.  As I am not familiar with QGIS, I am looking for some indication if the data structure used by QGIS can support this.


I have a question regarding ArcMap. Lets say I have a .shp with watersheds and a .shp with drainage lines. How can I combine both, so that I can display single watersheds and the length of their inner streams. Just like in the nice picture below.    I want to access the length of the stream segments inside each catchment. I have tried several clipping methods but have still no useful results.  Thanks for the help!


How to log in to an account which is hidden from the lightdm login screen?

I followed the accepted answer of  (the one about modifying /var/lib/AccountsService/users/USERNAME) to hide the user guest-config from my lightdm login screen.  This works fine and the account vanished from the user list after a reboot.  However, now I need a way to log into that account anyway. On Windows (at least back on good old Windows XP), I could press Ctrl+Alt+Del twice on the login screen to get an old-school login mask prompting me to type the username and password manually. This does not work on Ubuntu.  How can I get a similar graphical login mask where I must enter the username manually? I don't want to lose the normal user list for all other visible accounts though. Just add this to log into invisible accounts.  System is Ubuntu 16.04 with Unity Desktop.


Is It possible to close window without the alert?

When we open a form in a new window, we would like to click a button to close the window without alert box.  Is it possible?  Any help is appreciated.  Thanks alot


Flying AKL - LHR with layover in LAX, do I have to go through passport control?

I am flying AKL-LHR with a stopover at LAX. Does the Tom Bradley International Terminal (TBIT) force you to go through passport control (and thus, security) if you are connecting to another international flight or am I able to stay in the TBIT without clearing passport control since I am not actually staying in America?  EDIT: I didn't include that I am an American and wouldn't need a visa to enter, which is why I thought the suggested duplicate didn't directly apply. So - lack of clarity on my part. I'll accept the duplicate question hat of shame.


So I have a layman question. If we look at the angle of the sun rays, doesn't sun seem much closer than it is [150 million kilometers]  cant we take those angles that the sun makes with the earth, take approximate distance from those points and use angle-side-angle to calculate the distance from sun to earth?  how can we even get these angles if the sun is so far away


How to sort by values using a TreeMap or Hashmap?

Alright fairly new to Java and coding in general. I've created a program that reads a .txt file containing the results of several soccer matches and then is meant to output a scoreboard displaying their scores numerically ordered and then alphabetically ordered for tied scores. I have gotten the output so far but can't seem to sort the results by value. Any help would be amazing.  public class Scoreboard {  private static class Results {      public int score = 0;      public void addWin() {         score += 3;     }      public void addTie() {         score += 1;     }      public void addlost() {     }      @Override     public String toString() {          return " " + score;     }  }  public static void main(String[] args) throws IOException {     BufferedReader br = new BufferedReader(new FileReader("C:\\Users\\Jeremy\\Desktop\\ADV JAVA\\SoccerProject\\SoccerScoresTest.txt"));     String line;      Map<String, Results> teamResults = new HashMap<>();     while ((line = br.readLine()) != null) {         String[] data = line.split(" ");         Results team1 = teamResults.getOrDefault(data[0], new Results());         Results team2 = teamResults.getOrDefault(data[2], new Results());         if (Integer.valueOf(data[1]) > Integer.valueOf(data[3])) {             team1.addWin();             team2.addlost();         } else if (Objects.equals(Integer.valueOf(data[1]), Integer.valueOf(data[3]))) {             team1.addTie();             team2.addTie();         } else {             team1.addlost();             team2.addWin();         }         teamResults.put(data[0], team1);         teamResults.put(data[2], team2);     }      Formatter formatter = new Formatter();     System.out.println(formatter.format("%20s %20s", "Team", "Score"));     for (String team : teamResults.keySet()) {         Results teamres = teamResults.get(team);         formatter = new Formatter();         System.out.println(formatter.format("%20s %20s", team, teamres));     } }   }  Current Result:              Team                Score        Liverpool                    1       Tarantulas                    6        FCAwesome                    1            Lions                    4         Grouches                    0 ManchesterUnited                    1   Expected Result:              Team                Score       Tarantulas                    6            Lions                    4        FCAwesome                    1        Liverpool                    1 ManchesterUnited                    1         Grouches                    0


How to test membership of sequence in python list?

I have a dictionary which consists of {str: list}.  What I want to do is find out the keys with specific sequnce that may exist in value.  for example, the content of dictionary is like this:  DOC3187 [1, 2, 3, 6, 7] DOC4552 [5, 2, 3, 6] DOC4974 [1, 2, 3, 6] DOC8365 [1, 2, 3, 5, 6, 7] DOC3738 [1, 4, 2, 3, 6] DOC5311 [1, 5, 2, 3, 6, 7]   and I need to find out the keys with sequence of [5,2,3], so desired return should be:  DOC4552, DOC5311   I'm using Python 3.3.2, and the dictionary has about 400 items.


Can't execute files in windows partitions from Ubuntu

I am using Ubuntu 14.04 inside Windows.  I can't execute files in my Windows NTFS partitions. It gives the following error:  root@ubuntu:/media/rakesh/Data/My Codes/Test# ./a.out  bash: ./a.out : Permission denied   I have tried solutions in the following threads but it does not work:


I think that something is invisible if it's isolated particles are smaller than the wavelength of visible light. Is this correct?  Why is air invisible? What about other gases and fumes which are visible?


Is it possible to format an USB external HD keeping intact some directories and files?

Maybe it is a nonsense question, but I would like to format my external HD which contains plenty of files and directories, the HD format is NTFS, if it is possible I would like to format to ext4 but keeping one directory and its files intact. I know that I can backup it before formatting. Is it possible ? I'm running Xubuntu 16.04.5 and this external HD was originally recovered from an old netbook running Windows XP. Thanks, Vladi


When and how do we use the different kinds of brackets/parentheses — (){}[] — while writing English (not code)?


I need to evaluate the series $\sum_{k=2}^{\infty} k^{-1} x^{3k+1}$ for $|x| < 1$, and then say something about the series for when $x=1$ and $x \neq 1$.  So far I have the following work: we note that $\sum_{k=2}^{\infty} k^{-1} x^{3k+1} = x \sum_{k=2}^{\infty} k^{-1} x^{3k}$. Now consider the series $\sum_{k=2}^{\infty} k^{-1} x^\alpha$. Then \begin{align} \sum_{k=2}^{\infty} k^{-1} x^\alpha = \sum_{k=2}^{\infty} (k^{-1} +k - k) x^{\alpha} = \sum_{k=2}^{\infty} (k^{-1} - k) x^{\alpha} + \sum_{k=2}^{\infty} k x^{\alpha}. \end{align}  This is where I'm stuck. The term $\sum_{k=2}^{\infty} k x^{\alpha}$ is easy to handle, but I can't see what to do with the first term.


Find $\int \sqrt{\frac{(1-\sin x)(2-\sin x)}{(1+\sin x)(2+\sin x)}}dx$

How to find $$\int \sqrt{\frac{(1-\sin x)(2-\sin x)}{(1+\sin x)(2+\sin  x)}}dx$$ ?   I could get rid of of $(1+\sin x)$ by multiplying numerator and denominator by $(1-\sin x)$.What about the $(2+\sin x)$ term? Any other method possible?


How to protect/secure the "sudo" log_input/log_output logs?

My Chief Security Officer (CSO) want to log the activity of the privileged account (root). I know I can configure sudo to log user input (key strokes) and console/terminal output (stdout/stderr), as explained in . But the content is always logged to a file locally. That file can easily be wiped by the root user !   I have enable logging in /etc/sudoers:  Defaults>root log_input, log_output Defaults iolog_dir=/var/log/sudo-io   or equivalent  root      ALL = (ALL) LOG_INPUT: LOG_OUTPUT:      ALL   How to protect/secure the file from deletion ?


What qualifies as murder when creating a Horcrux?

Possible Duplicate:          We know that in order to create a Horcrux, murder is necessary:     Riddle's hunger was now apparent; his expression was greedy, he could no longer hide his longing.   "How do you split your soul?"   "Well," said Slughorn uncomfortably, "you must understand that the soul is supposed to remain intact and whole. Splitting it is an act of violation, it is against nature."   "But how do you do it?"   "By an act of evil - the supreme act of evil. By committing murder. Killing rips the soul apart. The wizard intent upon creating a Horcrux would use the damage to his advantage."   Harry Potter and the Half Blood Prince Chapter 23: Horcruxes   Once someone commits murder, they can then use the fragmentation of their soul to create a Horcrux. But my question is, what qualifies as murder? Normally I would assume that murder is plainly using Avada Kedavra on someone, or some equally lethal spell, or by one's own hand causing them mortal injury.  But in  answer, J. K. Rowling is quoted to have said that the diary was made into a Horcrux when Moaning Myrtle died. However, she was not murdered by a spell, nor with an inanimate object, but indirectly through a Basilisk. Quite likely the Basilisk would have killed Myrtle whether or not Riddle told it to. Still, this counted as murder.  What, then, counts as a murder that splits one's soul? If someone orders a hitman to kill somebody else, does that count as murder for the first person? If someone invents a weapon intended to kill people, and somebody else uses it for murder, is the inventor's soul affected?


I would like to change how the FN key affects function keys on Lenovo IdeaPad z500

So, the situation is the following. When I press the F1 button (for example), it mutes the notebook and in order to access the function keys I have to press FN.   However, I'm not happy with this so I'd like to change it "back" to how it should work.  There is no corresponding option in the BIOS menu.  Any help is appreciated!


How to prevent Windows 10 from automatically adding keyboard layouts (i.e. US keyboard)

Update: this is a lengthy post, you can     Note: The quick language list refers to the list in the screenshot below, accessible throught the shortcut Win + Space bar  I have two languages for windows spell check in my system, English (United States) and French (Switzerland), but despite both languages being properly configured with "Swiss French" input keyboard, US Keyboard input keeps appearing on this list:    Here's the settings for English (United States) language, you can see the only input is "Swiss French":    Same for Français (Suisse), the only input is "Swiss French":    In the Control Panel, both are also set as Swiss French:    All my settings are set to use "language list":     Here's a few things that I already tried:   I already managed to remove it by some language configuration gymnastics, by adding and removing languages, it always eventually comes back I have already done this:  There's no mention of US Keyboard in my registry settings either:     Please help, I'm desperate, this is my third computer with Windows 10 and they all do the same thing.


How to show loading spinner in on ajax request?

Hello I have included given html code  #expressShippingCalculation       %li.list-group-item     %label       %input#shipping_method3{:name => "shipping_method", :type => "radio", :value => "1"}         Shipping         %small (Delivery within 4-5 days)   %li.list-group-item#method4     %label       = form_for @order, :url => update_express_shipping_path,:method => 'patch', :html => { :id => "shippingDetails" }, :remote => true do |form|         = form.radio_button :express_shipping, true, :value => true, :id => 'shipping_method4', :name => 'shipping_method'         Express Shipping         %small.maroonColorText (Additional Charge of USD 10 applicable.)   #spinner.spinner{:style => "display:none;"}     %img#img-spinner{:alt => "Loading", :src => "spinner.gif"}/     and js code is   $('#expressShippingCalculation input').change ->     if $('#shipping_method4').is(':checked')       additionalAmountExpress()       data = $('#shippingDetails').serialize()       expressValue = true     else        $('#additional-charge').hide()       expressValue = false     $.ajax       url: '/update_express_shipping?expressShipping=' +expressValue       type: 'PATCH'     return        Now I need to show loading spinner on my ajax request. lease guide me how I will include given code in my ajax request  $('#spinner').bind('ajaxSend', ->   $(this).show()   return ).bind('ajaxStop', ->   $(this).hide()   return ).bind 'ajaxError', ->   $(this).hide()   return   Please guide me how to include this code.


If I follow instructions from a blog or Ask Ubuntu, etc, is it always safe?

I am new to Linux and Ubuntu. When I don't know how to do something with this OS I search on the web and Ask Ubuntu and always find the answer.  But sometimes it's not a great answer nor complete tutorial. I follow the instructions anyway, but I don't know what all the commands mean.  So my question is:   When I follow a tutorial, am I 100% safe? If not, then how can I tell I am in danger?


roots: square roots, cube roots, x^1/4, x^1/5

I was having confusion over the concepts of roots. My confusion begins as: I know that if $x^{1/n}=y$ then $y^n=x$ must be true.   Case 1: With square roots, let's take $y=4^{1/2}$  We know $y=2$ is a solution as $2^2=4$, but $y=-2$ must also be a solution as $(-2)^2=4$ is also true. But I browsing here I read that $(x^2)^{1/2}$ is actually equivalent to absolute value of $x$, hence only $y=2$ is solution of my above case.  Case 2: With cubic root, let's restrict ourselves to the real no.s's domain, let's take $y=(-8)^{1/3}$, then $y=-2$ seems feasible solution as $(-2)^3=-8$ but why in this case absolute value after cube root is not required. Also, why $(-x)^{1/3}=-(x)^{1/3}$, but $(-x)^{1/2}$ is not equal to $-(x)^{1/2}$  The same apparent ambiguity goes with $x^{1/4}$ and $x^{1/5}$  So, in general what is the general function definition of $x^{1/n}$?